Skip to main content
QUICK REVIEW

[Paper Review] Programmable Packet Scheduling

Anirudh Sivaraman, Suvinay Subramanian|arXiv (Cornell University)|Feb 19, 2016
Interconnection Networks and SystemsComputer Science29 references3 citations
TL;DR

This paper proposes a programmable packet scheduler for line-rate switches using a push-in first-out queue (PIFO) abstraction, enabling runtime programming of diverse scheduling algorithms—such as WFQ, LSTF, and hierarchical schedulers—without hardware redesign. The design achieves 1 GHz operation with under 4% chip area overhead in a 16-nm process, proving PIFOs are feasible for high-performance, flexible scheduling in modern switches.

ABSTRACT

Switches today provide a small set of scheduling algorithms. While we can tweak scheduling parameters, we cannot modify algorithmic logic, or add a completely new algorithm, after the switch has been designed. This paper presents a design for a programmable packet scheduler, which allows scheduling algorithms---potentially algorithms that are unknown today---to be programmed into a switch without requiring hardware redesign. Our design builds on the observation that scheduling algorithms make two decisions: in what order to schedule packets and when to schedule them. Further, in many scheduling algorithms these decisions can be made when packets are enqueued. We leverage this observation to build a programmable scheduler using a single abstraction: the push-in first-out queue (PIFO), a priority queue that maintains the scheduling order and time for such algorithms. We show that a programmable scheduler using PIFOs lets us program a wide variety of scheduling algorithms. We present a detailed hardware design for this scheduler for a 64-port 10 Gbit/s shared-memory switch with <4% chip area overhead on a 16-nm standard-cell library. Our design lets us program many sophisticated algorithms, such as a 5-level hierarchical scheduler with programmable scheduling algorithms at each level.

Motivation & Objective

  • To enable network operators to deploy custom scheduling algorithms in line-rate switches without hardware redesign.
  • To overcome the limitation of fixed-function schedulers that only support a small set of pre-defined algorithms.
  • To design a hardware-efficient, high-performance scheduler that supports programmable, hierarchical, and non-work-conserving algorithms.
  • To demonstrate feasibility of implementing PIFO-based schedulers in modern silicon with minimal area and power overhead.
  • To establish a programming model that allows expressing complex scheduling policies through rank-based transactions and PIFO abstractions.

Proposed method

  • The paper introduces the PIFO (push-in first-out queue) data structure, which maintains packet scheduling order and time based on a rank assigned at enqueue time.
  • It defines 'scheduling transactions'—small programs that compute a packet's rank before enqueueing, enabling algorithmic flexibility.
  • The design leverages the observation that many scheduling decisions (order and time) can be made at enqueue time, simplifying implementation.
  • A hierarchical scheduler is built by composing multiple PIFOs, allowing different algorithms at each level, such as 5-level hierarchical scheduling.
  • The hardware is synthesized in a 16-nm standard-cell library, showing that PIFO sorting operations are feasible with low area overhead.
  • The implementation supports 64-port 10 Gbps switches, operates at 1 GHz, and handles buffering for ~60K packets and 1K flows.

Experimental results

Research questions

  • RQ1Can a programmable packet scheduler be built using a single abstraction that supports a wide range of scheduling algorithms?
  • RQ2Is it feasible to implement PIFO-based scheduling in modern silicon with minimal area and performance overhead?
  • RQ3Can scheduling decisions like order and time be determined at enqueue time, enabling efficient hardware design?
  • RQ4What are the limitations of the PIFO abstraction in expressing certain scheduling algorithms?
  • RQ5Can hierarchical and non-work-conserving scheduling algorithms be efficiently programmed using PIFOs and scheduling transactions?

Key findings

  • The PIFO abstraction enables programming of a wide range of scheduling algorithms, including WFQ, LSTF, HPFQ, and fine-grained priority scheduling.
  • The hardware design achieves 1 GHz clock frequency, sufficient for 64-port 10 Gbps shared-memory switches, with no performance bottleneck.
  • The design incurs less than 4% chip area overhead compared to a baseline switch with fixed scheduling algorithms in a 16-nm standard-cell library.
  • The implementation supports 5-level hierarchical scheduling, where each level can run a different, programmable scheduling algorithm.
  • The PIFO design is feasible in modern transistor technology, contradicting prior assumptions that sorting operations in schedulers are too expensive for area-constrained switches.
  • The approach enables deployment of new, custom scheduling algorithms by network operators, moving beyond vendor-hardcoded logic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.