This NSDI '08 Best Paper addresses one of the most persistent challenges in modern networking: the convergence period of the Border Gateway Protocol (BGP). By applying classic distributed systems principles to Internet routing, the authors propose a mechanism to eliminate the transient loops and blackholes that frequently disrupt web traffic.
The Problem: Consistency vs. Responsiveness
The Internet functions as a massive distributed system, yet its primary routing protocol, BGP, often behaves recklessly. When a network link fails or a policy changes, BGP routers prioritize responsiveness over consistency. A router will update its forwarding table the moment it receives a change notification, often before its neighbors have processed the same information.
This "shoot first, ask questions later" approach leads to:
- Transient Loops: Router A directs traffic to B, while B still believes the path is through A, causing packets to bounce until they expire.
- Blackholes: Traffic is sent to a neighbor that has already dropped the route.
- Unavailability: These issues can cause up to 30% packet loss for several minutes during a single routing change.
Proposed Architecture: Decoupling Safety and Liveness
The authors introduce a two-mode architecture that separates safety (consistency) from liveness (responsiveness). This system sits on top of BGP, changing how routers decide when to commit BGP updates to their forwarding hardware without requiring changes to the protocol itself.
Stable Mode (The Safety Layer)
Routers only adopt new routes in synchronized "epochs." This layer ensures that the network always moves from one consistent state to another.
- Distributed Snapshots: Using a Chandy-Lamport style algorithm, routers take a global snapshot of pending updates.
- Consensus: A group of "consolidators" (typically Tier-1 providers) use the Paxos algorithm to agree on which updates have been fully processed by all dependent routers.
- Stable Forwarding Tables (SFTs): Routers only use routes that are part of this confirmed global state, mathematically guaranteeing loop-freedom.
Transient Mode (The Liveness Layer)
Because waiting for consensus takes time, routers need a way to handle packets if a "stable" link physically fails. They use heuristics like deflections (sending to a neighbor with a different path), backtracking, or detouring (tunneling the packet to a Tier-1 provider) to keep traffic moving until the next stable epoch is reached.
Evaluation and Key Results
The authors evaluated Consensus Routing using CAIDA AS-level topologies (~23,000 ASes), RouteViews BGP tables for realistic policy modeling, and PlanetLab for real-world latency testing.
- Eliminating Loops: Standard BGP causes widespread loops in 13% of link failures. Consensus Routing eliminates these entirely in stable mode.
- High Availability: When combining stable mode with "detouring," the system maintained 98.5% connectivity during failures that caused massive drops in standard BGP.
- Low Overhead: The consensus process is surprisingly fast. Using 9 consolidators on PlanetLab, the system reached agreement in under 500ms, with negligible extra control traffic.
- Incremental Deployment: The authors demonstrated that only transit ASes (~3,000) need to run the consensus logic; edge "stub" networks can remain unchanged.
Insights and Limitations
The core contribution of this work is the recognition that routing loops are a violation of safety. By separating the stable path (which must be safe) from the transient path (which must be fast), the system achieves the best of both worlds.
However, challenges remain. The system relies on Tier-1 ISPs to act as honest consolidators (though Byzantine fault tolerance could be added). Additionally, there is a fundamental trade-off: longer epochs reduce overhead but increase the time routers spend relying on transient heuristics rather than guaranteed stable paths. Despite these hurdles, Consensus Routing offers a robust framework for bringing distributed consistency to the global internet.
Summary updated