ZooRoute: Enhancing Cloud-Scale Network Reliability via Candidate Path Provisioning and Overlay Proactive Rerouting
Xiaoqing Sun (Alibaba Cloud), Xing Li (Zhejiang University and Alibaba Cloud), Xionglie Wei (Alibaba Cloud), Tian Pan (Alibaba Cloud), Ju Zhang (Alibaba Cloud), Bowen Yang (Alibaba Cloud), Yi Wang (Alibaba Cloud), Ye Yang (Alibaba Cloud), Yu Qi (Alibaba Cloud), Le Yu (Alibaba Cloud), Chenhao Jia (Alibaba Cloud), Zhanlong Zhang (Alibaba Cloud), Xinyu Chen (Alibaba Cloud), Xiaobo Xue (Alibaba Cloud), Jianyuan Lu (Alibaba Cloud), Shize Zhang (Alibaba Cloud), Enge Song (Alibaba Cloud), Yang Song (Alibaba Cloud), Rong Wen (Fudan University and Alibaba Cloud), Biao Lyu (Alibaba Cloud and Hangzhou Alibaba Cloud Feitian Information Technology and Hangzhou Alibaba Feitian Information Technology), Yang Xu (Fudan University), Shunmin Zhu (Alibaba Cloud and Hangzhou Feitian Cloud)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Clouds with Benefits
Overview
Modern cloud computing infrastructure operates at a planetary scale, hosting complex workloads for millions of tenants where network reliability is paramount. However, at this magnitude, network failures are statistically inevitable. Analyzing over 115 distinct production failures across Alibaba Cloud over a 50-month period reveals a critical operational bottleneck: while telemetry and monitoring systems (such as TraceRoute or Zoonotic Central) can detect network anomalies rapidly, the actual recovery process remains unacceptably slow. Depending on the root cause, diagnosis and repair processes often rely on human intervention from on-call engineers, resulting in recovery times that stretch from minutes to hours—roughly three to ten times longer than the initial detection time.

Key moments
- 0:00 Introduction and background on cloud network reliability challenges
- 2:18 Key idea: exploiting ECMP source port for overlay rerouting
- 3:04 System architecture and distributed agent design
- 4:20 Tackling scaling challenges: on-demand probing and CPU overhead
- 5:32 Compressing path tables to fit ASIC memory limitations
- 7:03 Packet-triggered updates and stateful middlebox handling
- 8:00 Production results and outage reduction over 26 months
- 9:36 Key lessons learned and limitations of the ZooRoute system
ZooRoute: Enhancing Cloud-Scale Network Reliability via Candidate Path Provisioning and Overlay Proactive Rerouting
Speakers: Xiaoqing Sun, Engineer, Alibaba Cloud (and co-authors from Alibaba Cloud, Zhejiang University, and Fudan University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=NKXrwJ854cc
Overview
Modern cloud computing infrastructure operates at a planetary scale, hosting complex workloads for millions of tenants where network reliability is paramount. However, at this magnitude, network failures are statistically inevitable. Analyzing over 115 distinct production failures across Alibaba Cloud over a 50-month period reveals a critical operational bottleneck: while telemetry and monitoring systems (such as TraceRoute or Zoonotic Central) can detect network anomalies rapidly, the actual recovery process remains unacceptably slow. Depending on the root cause, diagnosis and repair processes often rely on human intervention from on-call engineers, resulting in recovery times that stretch from minutes to hours—roughly three to ten times longer than the initial detection time.
To address this gap, Alibaba Cloud developed ZooRoute, a production-grade system designed to make network failure recovery a fast, deterministic, packet-transparent cloud-native service. Operating entirely at the virtual network overlay layer, ZooRoute bypasses physical underlay limitations without requiring hardware upgrades or tenant modifications. By pre-validating alternative paths and instantly switching traffic upon failure detection, ZooRoute has been deployed in production across Alibaba Cloud for over 26 months, successfully reducing network outage time by over 93% and masking more than 98% of underlying failures from tenant visibility.
Background
▶ Watch: Introduction and background on cloud network reliability challenges (0:00)
In public cloud architectures, the network stack is traditionally divided into three distinct strata: the physical underlay layer comprising underlying networking devices and switches; the virtual overlay layer providing customized virtual networks for tenants; and the application layer where tenants execute their proprietary workloads. When physical faults materialize, traditional underlay recovery mechanisms—such as Traffic Engineering (TE), IP Fast Reroute (IPFRR), or protective rerouting—face severe operational constraints. They frequently incur prolonged recovery windows, mandate disruptive underlay hardware upgrades, or fail completely when confronted with unexpected, multi-point anomalies.
Consequently, cloud tenants are often compelled to engineer bespoke high-availability workarounds. These typically involve provisioning expensive redundant resources or altering custom protocol stacks. Unfortunately, these ad-hoc tenant-side measures drive up operational expenditures and can inadvertently amplify infrastructure failures by failing to coordinate with the underlying cloud fabric. Addressing these systemic challenges requires a unified framework capable of handling diverse network traffic patterns—including intra-region and inter-region movement, virtual machine (VM) to internet traffic, and VM to application delivery controller (ADC) traffic—while strictly preserving tenant transparency.
Key Findings
▶ Watch: System architecture and distributed agent design (3:04)
An extensive empirical analysis of 115 major failures over 50 months on Alibaba Cloud's infrastructure provided the foundational insights guiding ZooRoute’s design. The primary finding is that detection mechanisms vastly outpace remediation workflows, leaving a dangerous window of vulnerability where application SLAs are breached while operators manually diagnose root causes.
When evaluated in production over a 26-month deployment window, ZooRoute yielded several headline results:
- Outage Reduction: Eliminated over 93% of cumulative network outage time across spatial and temporal dimensions.
- Failure Masking: Successfully masked over 98% of physical infrastructure failures from tenant awareness, maintaining continuous application uptime.
- Probing Efficiency: Achieved a greater than 95% reduction in probing overhead through demand-driven and adaptive probing algorithms.
- Mitigation Speed: Bypassed transient anomalies and switch failures within sub-second to 3-second windows, vastly outperforming manual or control-plane recovery loops.
Categorizing incidents by root cause demonstrated peak effectiveness in three distinct operational scenarios:
- Long-Haul Inter-Region Link Jitters: Transient jitters lasting 5 to 15 seconds that routinely disrupt latency-sensitive distributed applications are bypassed within 1 second, typically with zero packet loss.
- Switch Card or Port Anomalies: Localized hardware anomalies lasting seconds to minutes are successfully mitigated within 3 seconds.
- External ISP Failures (e.g., Fiber Cuts): While multi-hour external fiber cuts lie outside direct cloud control, ZooRoute significantly dampens their blast radius and mitigates user-facing impact.
Technical Deep Dive
▶ Watch: Compressing path tables to fit ASIC memory limitations (5:32)
The core architectural insight behind ZooRoute leverages the mechanics of VXLAN (Virtual Extensible LAN) overlay networks. In standard VXLAN encapsulations, the outer source port within the tunnel header is fully configurable. Modern underlay switches utilize this outer five-tuple for Equal-Cost Multi-Path (ECMP) routing hash calculations. By deterministically altering the outer source port, ZooRoute can actively steer tenant traffic across entirely distinct physical paths without altering any underlay hardware or routing protocols.
The system operates across three phases:
- Candidate Path Probing: Actively probing path health to each peer using distinct source ports.
- State Tracking: Tracking which specific ports map to verified healthy paths.
- Instant Failover: Executing a one-shot, deterministic switch to a pre-validated healthy port the moment a degradation is detected on the active path.
System Architecture & Distributed Agents
ZooRoute is implemented as a distributed agent running directly on VXLAN Tunnel Endpoints (VTEPs)—including hypervisors, network gateways, and middleboxes. Eschewing a centralized controller, this decentralized design guarantees instantaneous response times and eliminates single points of failure. End-to-end probing is decomposed into segmented probing among different types of VTEP endpoints to provide comprehensive coverage across complex cloud network topologies. Each agent maintains a dual-path architecture: a slow path dedicated to background path probing and metric analysis, and a fast path optimized for real-time path selection and packet forwarding.
Tackling Scale and Hardware Constraints
Deploying this architecture across a production environment with over 200,000 servers per region introduced three primary systems challenges:
- CPU Overhead of Full-Mesh Probing: Full-mesh probing across hundreds of thousands of nodes is computationally prohibitive. ZooRoute solves this by implementing on-demand and adaptive probing. Agents exclusively probe VTEPs carrying active tenant traffic and execute partial probing targeting only actively utilized ports. For stateful middleboxes, probing is bypassed entirely; these devices maintain session tables mapping source ports, allowing them to mirror peer ports for return traffic. Furthermore, probing frequencies dynamically scale relative to local CPU load to prevent resource contention with primary tenant workloads.
- Hardware Accelerator Resource Limits: Alibaba Cloud heavily utilizes Barefoot Tofino programmable ASICs for gateways, which possess restricted on-chip memory for storing candidate path states. Updating these states over the PCIe bus between the host CPU and the Tofino ASIC is inherently slow. ZooRoute resolves this via aggressive path table compression:
- Cross-Region Traffic: Utilizes a bitmap per destination IP (one bit per source port, where
1indicates available and0indicates bad). Tofino ASICs execute random port selection via packet-header five-tuple hashing combined with priority-based bitmap matching, achieving roughly a 15x compression ratio. - Intra-Region Traffic: Employs hierarchical indexing grouping every $M$ source ports into a single entry. If all ports within the group are healthy, the entry remains empty; if failures occur, a working port is explicitly recorded. This yields approximately a 25x compression ratio, with a minor trade-off in worst-case corner scenarios.
To accelerate state updates without saturating the PCIe bus, ZooRoute introduces packet-triggered updates. The CPU dispatches specialized packets embedded with markers; Tofino ASICs freeze these packets and update on-chip registers at line rate. Multiple updates are batched per packet using loopback reinjection, accelerating state synchronization by a factor of 1,000 compared to direct PCIe writes and shrinking update times from minutes to milliseconds.
- Stateful Middlebox Session Preservation: Changing source ports dynamically on stateful firewalls or load balancers can inadvertently rehash active flows to alternate instances, breaking established sessions and triggering connection resets. ZooRoute overcomes this by embedding a backend ID field inside probe packets. Middleboxes populate this field with their MAC address, allowing source VTEPs to group candidate ports by backend ID. Upon failure detection, the system prioritizes replacement ports belonging to the same backend group, ensuring sessions remain pinned to the correct instance.
Experimental Setup & Results
▶ Watch: Packet-triggered updates and stateful middlebox handling (7:03)
The system was evaluated across Alibaba Cloud's production infrastructure over a 26-month continuous deployment timeline spanning planet-scale cloud networks.
- Scale: Deployed across regions housing over 200,000 servers each.
- Hardware Stack: Deployed on enterprise hypervisors, distributed VTEP nodes, and Barefoot Tofino ASIC-based gateways.
- Key Metrics: Outage duration reduction, failure masking percentage, packet loss rates during transitions, CPU/memory overhead on VTEPs, and state synchronization latency.
- Headline Results:
- Cumulative network outage time reduced by >93%.
- Infrastructure failures masked from tenant awareness: >98%.
- Probing cost reduction: >95% via adaptive pruning.
- State update latency reduced from minutes to milliseconds (~1,000x speedup over PCIe operations).
- Inter-region jitter mitigation latency: <1 second with zero packet loss.
- Switch anomaly mitigation time: <3 seconds.
Ablation and limitation analyses revealed that ZooRoute operates under bounded capacity: when spare network capacity is critically constrained (e.g., severe multi-path failures where two of four core routers fail simultaneously), overlay rerouting cannot fully compensate, necessitating eventual intervention by underlying traffic engineering loops. Additionally, ZooRoute cannot resolve failures originating internally within a virtual machine's own guest data path, which require fine-grained VM-level telemetry.
Practical Implications
▶ Watch: Key lessons learned and limitations of the ZooRoute system (9:36)
For infrastructure architects, network engineers, and cloud platform operators, ZooRoute establishes a compelling paradigm shift: network reliability should be delivered as an automated, tenant-transparent cloud service rather than delegated to ad-hoc, tenant-side high-availability engineering.
Tradeoffs and Limitations:
- State vs. Memory Tradeoff: Aggressive compression schemes (such as hierarchical indexing for intra-region traffic) save precious on-chip ASIC memory but can marginally reduce the pool of instantly usable backup ports in adversarial worst-case failure distributions.
- Stability vs. Sensitivity Balance: While rapid routing adjustments insulate applications from transient jitters, tuning probing frequency requires careful balance to avoid oscillating routing states or introducing unnecessary packet reordering, even though modern kernel buffers tolerate mild reordering gracefully.
- Scope Boundaries: Overlay rerouting is an immediate mitigation layer. It successfully suppresses the immediate blast radius of physical anomalies, but complete structural remediation and capacity re-balancing still rely on underlying global traffic engineering systems.
Key Takeaways
- Deterministic Failover Wins: In high-scale cloud environments, deterministic, pre-validated candidate path provisioning vastly outperforms opportunistic, trial-and-error rerouting, especially for SLA-sensitive tenants.
- Overlay Agnosticism: Operating entirely at the VXLAN overlay layer via outer source-port manipulation bypasses the need for disruptive underlay hardware upgrades while remaining completely transparent to tenants.
- Overcoming Hardware Bottlenecks: Line-rate state updates on programmable ASICs like Tofino can be achieved via packet-triggered updates and loopback reinjection, successfully bypassing slow PCIe CPU-to-ASIC buses.
- Massive Operational Impact: Production deployment across Alibaba Cloud over 26 months proved that overlay proactive rerouting can eliminate over 93% of outage time and mask 98% of failures.
- Complementary Architecture: While highly effective at network-layer mitigation, overlay rerouting complements—rather than replaces—deep VM-level telemetry and global underlay traffic engineering.
About the Speaker(s)
Xiaoqing Sun is an engineer and researcher at Alibaba Cloud, specializing in cloud-scale networking, systems reliability, and high-performance infrastructure. He presented this work on behalf of a large collaborative research and engineering team spanning Alibaba Cloud, Zhejiang University, and Fudan University, reflecting deep industry-academia cooperation in solving planetary-scale cloud networking challenges.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)