Polylog-Competitive Deterministic Local Routing and Scheduling

Bernhard Haeupler, Shyamal Patel, Antti Roeyskoe, Cliff Stein, Goran Zuzic · DOI

Introduction

In the field of theoretical computer science, a long-standing challenge has been the design of network routing protocols that are both local and deterministic. In any network, moving data from one point to another involves two critical decisions: path selection (determining the route) and packet scheduling (resolving contention when multiple packets require the same link).

To be practical for high-speed networking, these decisions must be made locally at each router without waiting for a global coordinator. While randomized algorithms have long provided efficient solutions to this problem, deterministic rules were historically prone to massive traffic jams on specific graph topologies. This paper bridges the gap, proving that every undirected network possesses deterministic, local routing tables that are nearly as efficient as the best possible global offline schedule.

The Problem: Local vs. Global Efficiency

The efficiency of a routing algorithm is often measured by its "competitiveness"—how much slower it is compared to an optimal (OPT) global schedule that has perfect knowledge of all traffic. A "polylog-competitive" algorithm is one where the completion time is only $poly(\log n)$ times slower than OPT, where $n$ is the number of nodes.

Until now, achieving this deterministically and locally was considered an open hurdle. Simple deterministic rules often fail because they cannot adapt to adversarial traffic patterns without the "entropy" provided by randomness. This paper asks whether a universal deterministic rule exists that can maintain near-optimal performance across any possible graph structure.

Methodology

The authors combine three sophisticated mathematical frameworks to solve the deterministic routing puzzle:

1. Semi-Oblivious Path Selection

Rather than forcing a packet onto a single fixed path, the authors utilize a "menu" of candidate paths. In a global setting, one would simply pick the best path from the menu. In this local, deterministic setting, the authors treat the presence of "extra" or sub-optimal paths as adversarial noise that the scheduler must be robust enough to ignore.

2. Robust Local Scheduling and Virtual Times

The core technical innovation is a new scheduling algorithm based on Virtual Times. Each packet is assigned a schedule derived from a specific hash function. To prevent total gridlock, the router employs a "drop" mechanism: if too many packets arrive at a router at the same virtual time, the router conceptually drops the excess to maintain flow for the remaining packets. This ensures that even without global coordination, the network remains stable.

3. The Probabilistic Method for Existence

To prove that these deterministic tables exist, the authors employ the probabilistic method. They demonstrate that if a routing table is selected at random from a specific distribution, it will succeed with extremely high probability. Because the probability of success is non-zero, a perfect deterministic table must mathematically exist for every graph.

Key Insights

  • Noise Robustness: The authors reframe the lack of global coordination as a noise problem. By proving their scheduler can handle a high degree of "bad" candidate paths, they ensure that the "good" paths can still traverse the network quickly.
  • Greedy-Enableness: The algorithm is designed to be "greedy-enabled." If a packet encounters an idle wire, it can jump ahead of its pre-calculated schedule. This flexibility ensures the algorithm remains performant in real-world scenarios where traffic may be lighter than the theoretical worst-case.
  • Domain Set Knowledge: The system assumes routers know the "domain"—the set of all possible paths that might be used. This allows for the pre-calculation of schedules that avoid catastrophic collisions without needing to know which specific paths are active at any given millisecond.

Results and Implications

The paper establishes several breakthrough results in distributed computing:

  • Theorem 1.1: For any undirected graph, there exists a deterministic, stateless routing table that delivers packets with a completion time within a $poly(\log n)$ factor of the absolute theoretical optimum.
  • Universal Optimality: This work provides the final "missing piece" required to derandomize the framework for universally-optimal distributed algorithms.
  • Algorithmic Breakthroughs: The authors prove the existence of deterministic algorithms in the supported-CONGEST model that are nearly optimal for fundamental tasks, including:
  • Exact Minimum Spanning Trees (MST).
  • $(1+\epsilon)$-approximate Single-Source Shortest Paths (SSSP).
  • Part-wise aggregation.

Limitations and Future Directions

While the paper proves the existence of these near-optimal deterministic tables, the current construction of these tables requires global knowledge of the graph and is performed offline. The routing itself is local and deterministic, but setting up the table initially is not yet a distributed process.

Furthermore, while the core results are stateless, some optimizations for "greedy" advancements require a single bit of state in the packet header. Future research will likely focus on whether these tables can be constructed efficiently in a fully deterministic and distributed manner.

Summary updated

BibTeX
@inproceedings{haeupler2024polylog,
  author = {Bernhard Haeupler and Shyamal Patel and Antti Roeyskoe and Cliff Stein and Goran Zuzic},
  title = {{Polylog-Competitive Deterministic Local Routing and Scheduling}},
  booktitle = {STOC},
  year = {2024},
  doi = {10.1145/3618260.3649678},
}
Figure