Optimal Scheduling Algorithms for Input-Queued Switches

Devavrat Shah, Damon WischikINFOCOM 2006

Introduction

In modern high-speed Internet routers, input-queued (IQ) switches are the standard architecture because they require significantly lower memory bandwidth than output-queued alternatives. However, the performance of these switches depends entirely on the efficiency of their scheduling algorithms—the logic that determines which input ports transmit to which output ports in any given time slot. This task is essentially a matching problem within a bipartite graph.

Architecture of an Input-Queued (IQ) switch with Virtual Output Queues (VOQs)

While the Maximum-Weight Matching (MWM) algorithm is proven to provide 100% throughput, its delay performance—the time a packet spends waiting in a queue—has remained a complex area of study. Researchers have observed that a variant called MWM-$\alpha$, which weights queues by $Q_{ij}^\alpha$, performs better as $\alpha$ approaches zero. This paper provides a rigorous mathematical framework to explain this phenomenon and proposes a new, potentially optimal algorithm.

Theoretical Framework: Fluid Models and Heavy Traffic

Traditional packet-level analysis of switch dynamics is often mathematically intractable due to the discrete nature of arrivals. To overcome this, the authors employ Fluid Model Equations, which treat queue lengths as continuous flows, and Heavy Traffic Theory, which analyzes the switch in a critically loaded state (near saturation).

By applying these tools, the authors demonstrate a phenomenon known as State Space Collapse. In heavy traffic, the $n^2$ individual queue sizes in an $n \times n$ switch are not independent. Instead, they collapse onto a lower-dimensional $(2n-1)$ workload vector. This reduction in dimensionality allows for a much clearer analysis of how different scheduling policies affect queue growth.

Demonstration of state space collapse in a 3x3 switch

The Geometry of Delay and the Invariant Set

The core insight of the paper is that delay is fundamentally tied to the geometry of a "collapsed invariant set" ($\mathcal{W}$). When the workload vector hits the boundaries of this set, certain ports become idle—a state of "wasted service"—even if there is traffic waiting elsewhere. This wasted service is the primary driver of average queue size and, by extension, packet delay.

The authors prove that for a $2 \times 2$ switch, decreasing $\alpha$ in the MWM-$\alpha$ algorithm expands the invariant set $\mathcal{W}$. A larger set allows the workload vector to roam more freely without hitting the boundaries, thereby minimizing wasted service. This explains why lower values of $\alpha$ lead to superior delay performance.

Proposing the MWM-$0^+$ Algorithm

Building on these insights, the authors propose a new algorithm, MWM-$0^+$, derived by taking the formal limit of MWM-$\alpha$ as $\alpha \to 0$. This is a two-stage process:

  1. Identify all matchings of maximum size to ensure maximum work is performed.
  2. Among those matchings, select the one that maximizes the sum of the logarithms of the queue sizes.

While the logarithmic weight function introduces mathematical complexities near $Q_{ij} = 0$, it represents a theoretical frontier for minimizing delay in IQ switches.

Conclusion

This research provides a rigorous mathematical foundation for long-standing empirical observations in networking. By demonstrating that switch behavior can be understood through lower-dimensional workload vectors and invariant sets, the authors have simplified the analysis of complex $n \times n$ switches. Future work will focus on overcoming the analytical hurdles of the MWM-$0^+$ algorithm and calculating the exact stationary distributions of queue sizes in heavy traffic limits.

Summary updated

BibTeX
@inproceedings{shah2006optimal,
  author = {Devavrat Shah and Damon Wischik},
  title = {{Optimal Scheduling Algorithms for Input-Queued Switches}},
  booktitle = {INFOCOM},
  year = {2006},
  doi = {10.1109/infocom.2006.238},
}
Figure