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 Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Programmable packet scheduling with a single queue cites SP-PIFO: Approximating Push-In First-Out Behaviors using Strict-Priority Queues
- Programmable packet scheduling with a single queue cites Programmable Calendar Queues for High-speed Packet Scheduling
- Fast, Scalable, and Accurate Rate Limiter for RDMA NICs cites SP-PIFO: Approximating Push-In First-Out Behaviors using Strict-Priority Queues
- Fast, Scalable, and Accurate Rate Limiter for RDMA NICs cites Programmable packet scheduling with a single queue
- Fast, Scalable, and Accurate Rate Limiter for RDMA NICs cites Programmable Calendar Queues for High-speed Packet Scheduling
- Fast, Scalable, and Accurate Rate Limiter for RDMA NICs cites Enabling Programmable Transport Protocols in High-Speed NICs
- Enabling Virtual Priority in Data Center Congestion Control cites Programmable packet scheduling with a single queue
- PANIC: A High-Performance Programmable NIC for Multi-tenant Networks cites Enabling Programmable Transport Protocols in High-Speed NICs
- ClubHeap: A High-Speed and Scalable Priority Queue for Programmable Packet Scheduling cites SP-PIFO: Approximating Push-In First-Out Behaviors using Strict-Priority Queues
- ClubHeap: A High-Speed and Scalable Priority Queue for Programmable Packet Scheduling cites Programmable packet scheduling with a single queue
- ClubHeap: A High-Speed and Scalable Priority Queue for Programmable Packet Scheduling cites Programmable Calendar Queues for High-speed Packet Scheduling
- ClubHeap: A High-Speed and Scalable Priority Queue for Programmable Packet Scheduling cites PANIC: A High-Performance Programmable NIC for Multi-tenant Networks
Cited 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
