NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Breaking the Barrier of 2 for the Competitiveness of Longest Queue Drop

Antonios Antoniadis, Matthias Englert, Nicolaos Matsakis, Pavel Veselý

TL;DR

This paper achieves a major theoretical breakthrough by proving that the Longest Queue Drop (LQD) algorithm for network switch buffer management is 1.6918-competitive. This result finally breaks the "barrier of 2" upper bound that has stood for over two decades, significantly narrowing the gap between the known performance of this fundamental online algorithm and its theoretical limits.

What Problem Does This Paper Address?

In the world of high-speed networking, shared-memory switches are workhorses that must manage a finite buffer shared across multiple output ports. When traffic spikes and the buffer fills up, the switch faces a critical decision: which packets should be dropped to maximize total throughput?

The Longest Queue Drop (LQD) algorithm is a simple, intuitive, and practically relevant solution: if the buffer is full, drop a packet from the longest currently stored queue. While LQD has been a standard benchmark since 1991, its theoretical performance guarantee—expressed as a competitive ratio (the ratio of packets sent by an optimal offline "god-like" algorithm vs. the online algorithm)—has been stuck at 2 since 2001. Researchers knew LQD performed better in practice, but proving an upper bound strictly less than 2 remained a long-standing open problem in the field of online algorithms.

An example of the buffer configuration for LQD and OPT during a time step. Blue areas are LQD packets, red are OPT packets.
Figure 1: A snapshot of buffer states. LQD tries to keep queues balanced, while an optimal offline algorithm (OPT) might prioritize queues differently based on future knowledge.

Methods

The authors move away from the traditional "discrete" proof techniques used in earlier work, which typically tried to match specific packets transmitted by LQD to specific extra packets held by an optimal offline algorithm (OPT). Instead, they employ a more "continuous" charging scheme.

Key technical innovations include:

  • Profit Distribution: Rather than 1-to-1 matching, they take LQD's total profit in each step and distribute it among all "potential extra packets" that OPT holds.
  • Amortized Analysis via Potential Functions: They introduce a potential function to move "profit slack" from easy time steps to more difficult ones where the buffer is under pressure.
  • Phased Analysis: They divide the timeline into "phases" based on when specific queues overflow for the last time, allowing for a more granular mathematical treatment.
  • "Live and Let Die" Framework: They classify queues as "live" or "dying" relative to a specific target queue. This helps track how LQD's buffer state evolves compared to OPT's, accounting for the fact that LQD might run out of packets for a specific port before OPT does.
  • Mathematical Optimization: The final competitive ratio is derived by solving a complex optimization problem involving the Lambert W function and Stirling’s approximation for factorials.

Datasets

Not discussed in the paper. This is a theoretical research paper that relies on formal mathematical proofs rather than empirical datasets or benchmarks.

Key Insights and Ideas

  • Identifying "Slack": The authors pinpointed three specific sources of inefficiency in previous proofs: (1) assuming OPT always fills the entire buffer with extra packets, (2) ignoring OPT-extra packets that remain after LQD's queue is empty, and (3) failing to use "LQD-extra" packets to cancel out OPT's advantages.
  • Non-Uniform Profit Splitting: A major "aha moment" was realizing that profit shouldn't be split perfectly evenly. By slightly favoring "short" queues (those with fewer pending OPT-extra packets), they could achieve a tighter bound.
  • The Power of Amortization: Using a potential function to account for the slight differences in queue lengths (which can differ by one packet during evictions) was crucial for handling the "messiness" of real-world buffer states.

Key Results

  • Theorem 1: The LQD algorithm is 1.6918-competitive.
  • This is the first $(2 - \epsilon)$ upper bound established for LQD without restrictions on the number of output ports or the size of the buffer.
  • The result holds regardless of how LQD breaks ties when multiple queues have the same maximum length, even if an adversary controls the tie-breaking.

Limitations and Future Work

While this paper breaks the "barrier of 2," a gap still remains. The best-known lower bound for LQD is approximately 1.44. Closing this gap further is the most immediate direction for future research.

Additionally, the authors note that their analysis focuses on deterministic algorithms. To date, no randomized algorithms for this specific shared-memory switch problem have been studied, representing a wide-open area for exploration that could potentially yield even better competitive ratios.

Summary updated

BibTeX
@article{antoniadis2024breaking,
  author = {Antonios Antoniadis and Matthias Englert and Nicolaos Matsakis and Pavel Veselý},
  title = {{Breaking the Barrier of 2 for the Competitiveness of Longest Queue Drop}},
  journal = {ACM Trans. Algorithms},
  year = {2024},
  doi = {10.1145/3676887},
}
Figure