BBQ: A Fast and Scalable Integer Priority Queue for Hardware Packet Scheduling
Nirav Atre, Hugo Sadok, Justine Sherry
Abstract
The need for fairness, strong isolation, and fine-grained control over network traffic in multi-tenant cloud settings has engendered a rich literature on packet scheduling in switches and programmable hardware. Recent proposals for hardware scheduling primitives (e.g., PIFO, PIEO, BMW-Tree) have enabled run-time programmable packet schedulers, considerably expanding the suite of scheduling policies that can be applied to network traffic. However, no existing solution can be practically deployed on modern switches and NICs because they either do not scale to the number of elements required by these devices or fail to deliver good throughput, thus requiring an impractical number of replicas.
In this work, we ask: is it possible to achieve priority packet scheduling at line-rate while supporting a large number of flows? Our key insight is to leverage a scheduling primitive used previously in software -called Hierarchical Find First Set -and port this to a highly pipeline-parallel hardware design. We present the architecture and implementation of the Bitmapped Bucket Queue (BBQ), a hardware-based integer priority queue that supports a wide range of scheduling policies (via a PIFO-like abstraction). BBQ, for the first time, supports hundreds of thousands of concurrent flows while guaranteeing 100 Gbps line rate (148.8 Mpps) on FPGAs and 1 Tbps (1,488 Mpps) line rate on ASICs. We demonstrate this by implementing BBQ on a commodity FPGA where it is capable of supporting over 100K flows and 32K priorities at 300 MHz, 3× the packet rate of similar hardware priority queue designs. On ASIC, we can synthesize 100K elements at 3.1 GHz using a 7nm process.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e25797ca-4a3f-42a3-b0b4-89ee1ba488c2Cited by top-tier papers4
- Fast, Scalable, and Accurate Rate Limiter for RDMA NICsZilong Wang, Xinchen Wan, Luyang Li, Yijun Sun et al.SIGCOMM 2024 · 17 citations
- Enabling Virtual Priority in Data Center Congestion ControlZhaochen Zhang, Feiyang Xue, Keqiang He, Zhimeng Yin et al.EuroSys 2025 · 6 citations
- ClubHeap: A High-Speed and Scalable Priority Queue for Programmable Packet SchedulingZhikang Chen, Haoyu Song, Zhiyu Zhang, Yang Xu et al.NSDI 2025 · 2 citations
- Themis: Scheduling-Aware Buffer Management for HBM-Based Hybrid BuffersZhiyu Zhang, Minkun Xue, Kan Yu, Ruyi Yao et al.NSDI 2026
Builds on12
- SP-PIFO: Approximating Push-In First-Out Behaviors using Strict-Priority QueuesAlbert Gran Alcoz, Alexander Dietmüller, Laurent VanbeverNSDI 2020 · 140 citations
- Programmable Calendar Queues for High-speed Packet SchedulingNaveen Kr. Sharma, Chenxingyu Zhao, Ming Liu, Pravein G. Kannan et al.NSDI 2020 · 119 citations
- PANIC: A High-Performance Programmable NIC for Multi-tenant NetworksJiaxin Lin, Kiran Patel, Brent E. Stephens, Anirudh Sivaraman et al.OSDI 2020 · 104 citations
- Programmable packet scheduling with a single queueZhuolong Yu, Chuheng Hu, Jingfeng Wu, Xiao Sun et al.SIGCOMM 2021 · 100 citations
- Enabling Programmable Transport Protocols in High-Speed NICsMina Tahmasbi Arashloo, Alexey Lavrov, Manya Ghobadi, Jennifer Rexford et al.NSDI 2020 · 96 citations
Related papers
- Everything Matters in Programmable Packet SchedulingAlbert Gran Alcoz, Balázs Vass, Pooria Namyar, Behnaz Arzani et al.NSDI 2025
- vPIFO: Virtualized Packet Scheduler for Programmable Hierarchical Scheduling in High-Speed NetworksZhiyu Zhang, Shili Chen, Ruyi Yao, Ruoshi Sun et al.SIGCOMM 2024 · 11 citations
- BMW Tree: Large-scale, High-throughput and Modular PIFO Implementation using Balanced Multi-Way Sorting TreeRuyi Yao, Zhiyu Zhang, Gaojian Fang, Peixuan Gao et al.SIGCOMM 2023 · 14 citations
- Gearbox: A Hierarchical Packet Scheduler for Approximate Weighted Fair QueuingPeixuan Gao, Anthony Dalleggio, Yang Xu, H. Jonathan ChaoNSDI 2022
- Twenty Years After: Hierarchical Core-Stateless Fair QueueingZhuolong Yu, Jingfeng Wu, Vladimir Braverman, Ion Stoica et al.NSDI 2021 · 45 citations
