skip to main content
article

QFQ: efficient packet scheduling with tight guarantees

Published: 01 June 2013 Publication History
  • Get Citation Alerts
  • Abstract

    Packet scheduling, together with classification, is one of the most expensive processing steps in systems providing tight bandwidth and delay guarantees at high packet rates. Schedulers with near-optimal service guarantees and O(1) time complexity have been proposed in the past, using techniques such as timestamp rounding and flow grouping to keep their execution time small. However, even the two best proposals in this family have a per-packet cost component that is linear either in the number of groups or in the length of the packet being transmitted. Furthermore, no studies are available on the actual execution time of these algorithms. In this paper we make two contributions. First, we present Quick Fair Queueing (QFQ), a new O(1) scheduler that provides near-optimal guarantees and is the first to achieve that goal with a truly constant cost also with respect to the number of groups and the packet length. The QFQ algorithm has no loops and uses very simple instructions and data structures that contribute to its speed of operation. Second, we have developed production-quality implementations of QFQ and of its closest competitors, which we use to present a detailed comparative performance analysis of the various algorithms. Experiments show that QFQ fulfills our expectations, outperforming the other algorithms in the same class. In absolute terms, even on a low-end workstation, QFQ takes about 110 ns for an enqueue()/dequeue() pair (only twice the time of DRR, but with much better service guarantees).

    References

    [1]
    "The network simulator--ns-2," 2012 [Online]. Available: http://www.isi.edu/nsnam/ns/
    [2]
    J. C. R. Bennet and H. Zhang, "Hierarchical packet fair queueing algorithms," IEEE/ACM Trans. Netw., vol. 5, no. 5, pp. 675-689, Oct. 1997.
    [3]
    J. C. R. Bennett and H. Zhang, "WF2Q: Worst-case fair weighted fair queueing," in Proc. IEEE INFOCOM, Mar. 1996, pp. 120-128.
    [4]
    M. Carbone and L. Rizzo, "Dummynet revisited," Comput. Commun. Rev., vol. 40, no. 2, pp. 12-20, 2010.
    [5]
    F. Checconi, P. Valente, and L. Rizzo, "QFQ: Efficient packet scheduling with tight bandwidth distribution guarantees (full paper and experimental code)," 2012 [Online]. Available: http://info.iet.unipi.it/ ~luigi/qfq/
    [6]
    C. Guo, "SRR: An O(1) time complexity packet scheduler for flows in multi-service packet networks," in Proc. ACM SIGCOMM, Aug. 2001, pp. 211-222.
    [7]
    C. Guo, "G-3:An time complexity packet scheduler that provides bounded end-to-end delay," in Proc. IEEE INFOCOMM, May 2007, pp. 1109-1117.
    [8]
    M. Karsten, "SI-WF2 Q: WF2 Q approximation with small constant execution overhead," in Proc. IEEE INFOCOM, Apr. 2006, pp. 1-12.
    [9]
    M. Karsten, "Approximation of generalized processor sharing with stratified interleaved timer wheels," IEEE/ACM Trans. Netw., vol. 18, no. 3, pp. 708-721, Jun. 2010.
    [10]
    A. Kortebi, L. Muscariello, S. Oueslati, and J. Roberts, "Evaluating the number of active flows in a scheduler realizing fair statistical bandwidth sharing," Perform. Eval. Rev., vol. 33, no. 1, pp. 217-228, 2005.
    [11]
    L. Lenzini, E. Mingozzi, and G. Stea, "Tradeoffs between low complexity, low latency, and fairness with deficit round-robin schedulers," IEEE/ACM Trans. Netw., vol. 12, no. 4, pp. 681-693, Aug. 2004.
    [12]
    L. L. Peterson and B. S. Davie, Computer Networks--A Systems Approach . San Mateo, CA: Morgan Kaufmann, 2010.
    [13]
    S. Ramabhadran and J. Pasquale, "The stratified round robin scheduler: Design, analysis and implementation," IEEE/ACM Trans. Netw., vol. 14, no. 6, pp. 1362-1373, Dec. 2006.
    [14]
    L. Rizzo, "Revisiting network I/O APIs: The netmap framework," Commun. ACM, vol. 55, no. 3, pp. 45-51, Mar. 2012.
    [15]
    M. Shreedhar and G. Varghese, "Efficient fair queuing using deficit round robin," IEEE/ACM Trans. Netw., vol. 4, no. 3, pp. 375-385, Jun. 1996.
    [16]
    S. J. Golestani, "A self-clocked fair queueing scheme for broadband applications," in Proc. IEEE INFOCOM, Jun. 1994, pp. 636-646.
    [17]
    D. C. Stephens, J. C. R. Bennett, and H. Zhang, "Implementing scheduling algorithms in high-speed networks," IEEE J. Sel. Areas Commun., vol. 17, no. 6, pp. 1145-1158, Jun. 1999.
    [18]
    D. Stiliadis and A. Varma, "A general methodology for designing efficient traffic scheduling and shaping algorithms," in Proc. IEEE INFOCOM , Apr. 1997, pp. 326-335.
    [19]
    I. Stoica and H. Abdel-Wahab, "Earliest eligible virtual deadline first: A flexible and accurate mechanism for proportional share resource allocation," Department of Computer Science, Old DominionUniversity, Norfolk, VA, Tech. Rep. 95-22, Nov. 1995.
    [20]
    S. Suri, G. Varghese, and G. Chandranmenon, "Leap forward virtual clock: A new fair queuing scheme with guaranteed delays and throughput fairness," in Proc. IEEE INFOCOM, Apr. 1997, pp. 557-565.
    [21]
    P. Valente, "Exact GPS simulation and optimal fair scheduling with logarithmic complexity," IEEE/ACM Trans. Netw., vol. 15, no. 6, pp. 1454-1466, Dec. 2007.
    [22]
    P. Valente, "Extending WF2Q+ to support a dynamic traffic mix," in Proc. AAA-IDEA, Jun. 2005, pp. 26-33.
    [23]
    J. Xu and R. J. Lipton, "On fundamental tradeoffs between delay bounds and computational complexity in packet scheduling algorithms," IEEE/ACM Trans. Netw., vol. 13, no. 1, pp. 15-28, Feb. 2005.
    [24]
    X. Yuan and Z. Duan, "Fair round-robin: A low complexity packet scheduler with proportional and worst-case fairness," IEEE Trans. Comput., vol. 58, no. 3, pp. 365-379, Mar. 2009.

    Cited By

    View all
    • (2023)Boosting TCP & QUIC Performance in mmWave, Terahertz, and Lightwave Wireless Networks: A SurveyIEEE Communications Surveys & Tutorials10.1109/COMST.2023.330182025:4(2862-2891)Online publication date: 1-Oct-2023
    • (2019)EiffelProceedings of the 16th USENIX Conference on Networked Systems Design and Implementation10.5555/3323234.3323237(17-31)Online publication date: 26-Feb-2019
    • (2019)The Good, the Bad and the WiFiComputer Networks: The International Journal of Computer and Telecommunications Networking10.1016/j.comnet.2015.07.01489:C(90-106)Online publication date: 6-Jan-2019
    • Show More Cited By

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image IEEE/ACM Transactions on Networking
    IEEE/ACM Transactions on Networking  Volume 21, Issue 3
    June 2013
    336 pages

    Publisher

    IEEE Press

    Publication History

    Published: 01 June 2013
    Accepted: 10 March 2012
    Revised: 26 August 2011
    Received: 25 November 2010
    Published in TON Volume 21, Issue 3

    Author Tags

    1. algorithms
    2. communication systems
    3. computer network performance
    4. data structures
    5. packet scheduling

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)4
    • Downloads (Last 6 weeks)0

    Other Metrics

    Citations

    Cited By

    View all
    • (2023)Boosting TCP & QUIC Performance in mmWave, Terahertz, and Lightwave Wireless Networks: A SurveyIEEE Communications Surveys & Tutorials10.1109/COMST.2023.330182025:4(2862-2891)Online publication date: 1-Oct-2023
    • (2019)EiffelProceedings of the 16th USENIX Conference on Networked Systems Design and Implementation10.5555/3323234.3323237(17-31)Online publication date: 26-Feb-2019
    • (2019)The Good, the Bad and the WiFiComputer Networks: The International Journal of Computer and Telecommunications Networking10.1016/j.comnet.2015.07.01489:C(90-106)Online publication date: 6-Jan-2019
    • (2018)PSPATComputer Communications10.1016/j.comcom.2018.02.018120:C(32-45)Online publication date: 1-May-2018
    • (2017)Delay-constrained routing problemsComputers and Operations Research10.1016/j.cor.2016.12.00981:C(67-77)Online publication date: 1-May-2017
    • (2017)QoS routing with worst-case delay constraintsComputer Communications10.1016/j.comcom.2016.09.006103:C(104-115)Online publication date: 1-May-2017
    • (2016)Measurement Based Fair Queuing for Allocating Bandwidth to Virtual MachinesProceedings of the 2016 workshop on Hot topics in Middleboxes and Network Function Virtualization10.1145/2940147.2940153(14-19)Online publication date: 22-Aug-2016
    • (2016)Design and Implementation of the Traffic Control Module in ns-3Proceedings of the 2016 Workshop on ns-310.1145/2915371.2915382(1-8)Online publication date: 15-Jun-2016
    • (2016)Deadline scheduling in the Linux kernelSoftware—Practice & Experience10.1002/spe.233546:6(821-839)Online publication date: 1-Jun-2016
    • (2014)SENICProceedings of the 11th USENIX Conference on Networked Systems Design and Implementation10.5555/2616448.2616492(475-488)Online publication date: 2-Apr-2014

    View Options

    Get Access

    Login options

    Full Access

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media