[Paper Review] Eiffel: Efficient and Flexible Software Packet Scheduling
Eiffel proposes a novel software packet scheduling system that leverages integer priority queues based on the Find First Set (FFS) instruction and an approximate queue variant to achieve O(1) per-packet operations, reducing CPU overhead and enabling 3–40× higher performance than state-of-the-art systems. It also introduces new programming abstractions to support complex, flexible scheduling policies.
Packet scheduling determines the ordering of packets in a queuing data structure with respect to some ranking function that is mandated by a scheduling policy. It is the core component in many recent innovations to optimize network performance and utilization. Our focus in this paper is on the design and deployment of packet scheduling in software. Software schedulers have several advantages over hardware including shorter development cycle and flexibility in functionality and deployment location. We substantially improve current software packet scheduling performance, while maintaining flexibility, by exploiting underlying features of packet ranking; namely, packet ranks are integers and, at any point in time, fall within a limited range of values. We introduce Eiffel, a novel programmable packet scheduling system. At the core of Eiffel is an integer priority queue based on the Find First Set (FFS) instruction and designed to support a wide range of policies and ranking functions efficiently. As an even more efficient alternative, we also propose a new approximate priority queue that can outperform FFS-based queues for some scenarios. To support flexibility, Eiffel introduces novel programming abstractions to express scheduling policies that cannot be captured by current, state-of-the-art scheduler programming models. We evaluate Eiffel in a variety of settings and in both kernel and userspace deployments. We show that it outperforms state of the art systems by 3-40x in terms of either number of cores utilized for network processing or number of flows given fixed processing capacity.
Motivation & Objective
- Address the inefficiency of current software packet schedulers, which rely on O(log n) comparison-based priority queues and incur high CPU overhead.
- Overcome the limitations of existing scheduler programming models (e.g., PIFO, OpenQueue) that lack support for per-flow scheduling and dynamic reordering.
- Enable high-performance, scalable packet scheduling in software by exploiting the fact that packet ranks are integers within a bounded range.
- Support a wide range of scheduling policies with minimal performance cost, even under high line rates and large numbers of flows.
- Provide a foundation for rethinking hardware packet scheduler design by demonstrating the feasibility of efficient, programmable software-based scheduling.
Proposed method
- Design an integer priority queue using the Find First Set (FFS) instruction to achieve O(1) packet insertion and extraction operations.
- Introduce a compact FFS-based queue (cFFS) that uses bit operations to efficiently locate the first non-empty bucket in a multi-level array structure.
- Propose an approximate priority queue that trades exactness for performance, outperforming FFS-based queues in specific workloads.
- Develop new programming abstractions to express complex, policy-driven scheduling logic, including per-flow scheduling and dynamic reordering after dequeue.
- Implement Eiffel in both kernel and userspace environments to evaluate real-world performance across diverse deployment scenarios.
- Use a hierarchical data structure with bucket arrays to map integer ranks to queue positions, minimizing memory and cache pressure.
Experimental results
Research questions
- RQ1Can integer-based priority queues using low-level CPU instructions like FFS achieve O(1) packet scheduling operations in software?
- RQ2How does the performance of an approximate priority queue compare to exact FFS-based queues under real-world scheduling workloads?
- RQ3To what extent can novel programming abstractions in Eiffel express complex scheduling policies beyond the capabilities of existing models like PIFO and OpenQueue?
- RQ4What is the impact of Eiffel’s design on CPU utilization and throughput in high-line-rate environments with thousands of flows?
- RQ5Can Eiffel’s approach serve as a blueprint for improving future hardware packet schedulers by reducing reliance on parallel comparisons?
Key findings
- Eiffel achieves 3–40× higher performance than state-of-the-art software schedulers, measured either by reduced core count usage or increased number of supported flows under fixed processing capacity.
- The FFS-based integer priority queue enables O(1) packet enqueue and dequeue operations, reducing the per-packet cost from O(m log n) to O(m) for m ranking functions.
- The approximate priority queue outperforms the FFS-based queue in certain workloads, demonstrating that controlled approximation can yield better performance in practice.
- Eiffel’s design reduces CPU overhead significantly—demonstrating that even basic scheduling policies can be implemented efficiently, avoiding the 10–12% CPU overhead seen in prior systems.
- The system supports complex, policy-driven scheduling including per-flow scheduling and dynamic reordering, which are not expressible in existing models like PIFO or OpenQueue.
- Eiffel’s design enables deployment in both kernel and userspace, showing strong performance across diverse network processing environments, including VNFs and end-hosts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.