AnyPro: Preference-Preserving Anycast Optimization based on Strategic AS-Path Prepending
Minyuan Zhou (Nanjing University and Alibaba Cloud), Yuning Chen (University of California, Merced, and Alibaba Cloud), Jiaqi Zheng (Nanjing University), Yifei Xu (University of California, Los Angeles, and Alibaba Cloud), Pan Hu (Alibaba Group), Yongping Tang (Alibaba Group), Wendong Yin (Alibaba Group), Jie Lin (Alibaba Group), Qingyan Yu (Alibaba Group), Yuanchao Su (Alibaba Group), Guihai Chen (Nanjing University), Wanchun Dou (Nanjing University), Songwu Lu (University of California, Los Angeles), Wan Du (University of California, Merced)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Cloud Systems, Shared and Scalable
Overview
AnyPro is a novel systems framework designed to optimize global IP anycast routing without requiring machine learning models or infrastructure overhauls. Presented at USENIX NSDI, the work addresses a fundamental limitation in large-scale content delivery, Domain Name System (DNS) resolution, and DDoS mitigation: despite deploying numerous Points of Presence (PoPs) worldwide, client traffic frequently suffers from severe path inflation, with round-trip times (RTTs) exceeding 120 milliseconds. This mismatch occurs because Border Gateway Protocol (BGP) routing policies are fundamentally performance-agnostic and unanalyzable regarding intermediate AS-path decisions.

Key moments
- 0:00 Introduction to IP Anycast and the core routing challenges
- 3:03 Limitations of existing Anycast optimization and regional approaches
- 4:15 Introducing AS-Path Prepending (ASPP) as a fine-grained control knob
- 6:15 Problem formulation as a weighted max satisfaction problem
- 8:25 AnyPro design: Probing architecture and max-min pooling algorithm
- 11:55 Resolving constraint contradictions using iterative binary scan
- 13:27 Evaluation results on RTT performance and preference alignment
- 17:50 Comparison with machine learning approaches and conclusion
AnyPro: Preference-Preserving Anycast Optimization based on Strategic AS-Path Prepending
Speakers: Minyuan Zhou (Nanjing University and Alibaba Cloud); Yuning Chen (University of California, Merced, and Alibaba Cloud); Jiaqi Zheng (Nanjing University); Yifei Xu (University of California, Los Angeles, and Alibaba Cloud); Pan Hu (Alibaba Group); Yongping Tang (Alibaba Group); Wendong Yin (Alibaba Group); Jie Lin (Alibaba Group); Qingyan Yu (Alibaba Group); Yuanchao Su (Alibaba Group); Guihai Chen (Nanjing University); Wanchun Dou (Nanjing University); Songwu Lu (University of California, Los Angeles); Wan Du (University of California, Merced)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=8tIJvHfARgs
Overview
AnyPro is a novel systems framework designed to optimize global IP anycast routing without requiring machine learning models or infrastructure overhauls. Presented at USENIX NSDI, the work addresses a fundamental limitation in large-scale content delivery, Domain Name System (DNS) resolution, and DDoS mitigation: despite deploying numerous Points of Presence (PoPs) worldwide, client traffic frequently suffers from severe path inflation, with round-trip times (RTTs) exceeding 120 milliseconds. This mismatch occurs because Border Gateway Protocol (BGP) routing policies are fundamentally performance-agnostic and unanalyzable regarding intermediate AS-path decisions.
The core innovation of AnyPro lies in its systematic use of AS-Path Prepending (ASPP) as a fine-grained tuning knob. Rather than coarsely toggling entire PoPs on and off—which leads to resource underutilization—AnyPro computes strategic prepending configurations that steer client traffic globally toward optimal catchment locations. By formulating the routing optimization as a weighted maximum satisfaction problem and introducing a linear-complexity discovery algorithm called max-min pooling, AnyPro aligns actual client-to-PoP mappings with desired preferences while resolving complex inter-client path conflicts.
This work matters because it bridges the gap between theoretical routing objectives and the messy, decentralized reality of global interdomain routing. Deployed and evaluated in production-scale environments at Alibaba Cloud, AnyPro slashes the 90th percentile RTT from hundreds of milliseconds down to 58 milliseconds, drastically outperforming existing binary on/off mitigation strategies and highlighting how principled systems design can solve hard networking problems without deep learning overhead.
Background
▶ Watch: Introduction to IP Anycast and the core routing challenges (0:00)
IP anycast is a foundational networking technique where the exact same IP prefix is announced from multiple geographically distributed sites. Clients are automatically routed by interdomain BGP policies to whichever site aligns with prevailing AS-level path selection rules. Services ranging from authoritative DNS infrastructure and content delivery networks (CDNs) to large-scale DDoS mitigation systems rely heavily on anycast for resilience and performance. If a specific PoP fails, BGP automatically drains traffic and reroutes clients to surviving locations.
However, scaling anycast systems introduces severe steering challenges. In an ideal deployment, clients map exclusively to the closest physical PoP, minimizing geographic distance and network latency. In reality, BGP path selection is opaque, traversing anywhere from 5 to 30 autonomous system (AS) hops across the global internet. BGP is completely agnostic to application-level performance metrics such as latency, jitter, or throughput. Consequently, adding more PoPs does not guarantee better performance; network operators frequently observe extreme path inflation where clients in Asia or Europe are steered to far-flung PoPs across continents, generating RTTs over 120 milliseconds.
Prior academic and industrial systems have attempted to resolve this. AnyOpt constructs a total preference order for anycast catchments by executing global pairwise comparisons—systematically turning PoPs on and off to observe client migration patterns, and subsequently selecting a static subset of active sites. While effective at dampening extreme inflation, AnyOpt suffers from major drawbacks: it results in the severe underutilization of available site resources, and binary on/off switching is too coarse-grained for modern business requirements. Another approach, Regional IP Anycast, assigns multiple discrete IP segments to geographical regions to limit cross-continental path inflation. Yet, this approach inflates IP segment resource consumption, harms global resilience, and fails to optimize routing within individual regions.
These limitations created an urgent need for a fine-grained steering knob that operates globally with minimal infrastructure modification, setting the stage for AnyPro's strategic exploitation of BGP path prepending.
Key Findings
▶ Watch: Introducing AS-Path Prepending (ASPP) as a fine-grained control knob (4:15)
AnyPro demonstrates that AS-path prepending can be systematically harnessed as a precise optimization vector rather than a blunt administrative tool. The primary discoveries and performance metrics from the deployment include:
- Dramatically Lower Latency: At the 90th percentile, leaving prepending unmanaged (all zero) yields a high RTT of 271 ms. Coarse-grained binary site-toggling (AnyOpt) reduces the 90th percentile RTT to 87 ms, while AnyPro further drops it to 58 ms, successfully eliminating long-tail inflated paths.
- Superior Preference Alignment: Measured against an optimization objective defining ideal catchment mapping (e.g., geographic distance under 800 km or RTT under 60 ms), baseline configurations satisfy only 68% of client preferences. AnyPro elevates preference alignment to 85%.
- Linear Computational Complexity: Through the introduction of max-min pooling, AnyPro identifies ASPP-sensitive clients in $O(N)$ time, avoiding the intractable combinatorial explosion associated with exploring the full $10 \times 20$ configuration space.
- Synergy with Binary Toggling: AnyPro is fully compatible with AnyOpt. Combining AnyPro's fine-grained prepending refinement with site-selection mechanisms yields performance superior to either technique operating in isolation.
- Superiority Over Machine Learning: Direct comparisons against classical decision trees and deep neural networks trained on over 1,000 exploration traces revealed that ML models perform poorly when deployed without explicit BGP topological context.
Technical Deep Dive
▶ Watch: AnyPro design: Probing architecture and max-min pooling algorithm (8:25)
The AnyPro architecture relies on a specialized out-of-band testing infrastructure running alongside production IP segments. It deploys dedicated probers and listeners at each PoP. The prober transmits ICMP echo requests, while the listener records which PoP successfully captures incoming responses from a large client pool (e.g., 240,000 active client IPs). This setup maps the empirical catchment basin of every PoP under varying BGP configurations.
Problem Formulation
AnyPro formulates the anycast routing optimization as maximizing the alignment between desired client preferences and actual network mappings. Let $C$ represent the set of clients and $P$ represent the set of PoPs. An actual mapping $M$ dictates that each client connects to exactly one site at any given time. A preferred mapping defines optimal criteria, such as measured RTT falling below a strict threshold. Partial order preferences dictate that a client $C_k$ prefers site $P_{ij}$ over $P_{mn}$.
Max-Min Pooling Algorithm
The search space for AS-path prepending configurations is combinatorially massive. AnyPro bypasses exhaustive enumeration via max-min pooling, which operates in linear time ($O(N)$):
- Baseline State: All prepending configurations are initialized to their maximum value (equivalent to all zeros in relative routing weight).
- Pop Isolation: Each PoP is iteratively set to a prepending value of zero while keeping others at maximum, making that specific PoP maximally attractive among all global ingresses.
- Constraint Extraction: When client traffic shifts to the zero-prepending PoP, AnyPro records the attraction signal, deriving preliminary constraints (e.g., requiring a specific client IP to observe a path length to Ashburn shorter than Frankfurt minus maximum prepending).
Conflict Resolution via Binary Scans
Global routing introduces hard conflicts: an Ashburn user may benefit from prepending Frankfurt, while a Frankfurt user simultaneously demands prepending Ashburn. To resolve these contradictions, AnyPro executes an iterative measurement-tuning loop. For contradicted constraint pairs, the system conducts a binary scan to determine whether parameters can be halved and satisfied simultaneously. If a conflict cannot be completely resolved, AnyPro adjusts parameters (e.g., setting ASPP values to intermediate integers like 9, 5, and 0) to satisfy the highest-weight client constraints first.
Experimental Setup & Results
▶ Watch: Resolving constraint contradictions using iterative binary scan (11:55)
AnyPro was evaluated on a production-grade enterprise network topology featuring 20 globally distributed PoPs servicing approximately 240,000 distinct client IPs.
- Datasets & Probing: Empirical measurements were gathered using active ICMP probing across testing IP segments, collecting over 1,000 exploration traces to construct baseline performance profiles.
- Metrics: Evaluation metrics included 90th percentile RTT, normalized objective alignment scores, and Pearson correlation coefficients between theoretical optimization objectives and measured network latency.
- Headline Numbers:
- The 90th percentile RTT dropped from 271 ms (unmanaged) to 87 ms (AnyOpt binary site selection) and finally to 58 ms (AnyPro fine-grained ASPP optimization).
- Preference alignment increased from 68% under baseline conditions to 85% under AnyPro optimization.
- Pearson correlation coefficients between the normalized theoretical objective and measured RTT reached 0.95 and 0.96 across tested topologies, proving that the abstract optimization formulation accurately tracks physical network latency.
- Ablations: Experiments isolating regional subsets (such as Southeast Asia) confirmed that AnyPro maintains high normalized objective scores (>80%) across varying scales, and that computation times for optimal configurations remain under 100 milliseconds, even when scaling calculations locally.
Practical Implications
▶ Watch: Comparison with machine learning approaches and conclusion (17:50)
For network infrastructure teams, site reliability engineers (SREs), and CDN architects, AnyPro offers a powerful operational paradigm: fine-grained interdomain traffic engineering without modifying BGP protocol standards or upgrading client-side software.
- Low Infrastructure Friction: Because AS-path prepending is a standard feature supported by all commercial routers and BGP implementations, deploying AnyPro requires no specialized hardware, software upgrades, or changes to core routing daemons.
- Resource Efficiency: Unlike binary on/off switching (AnyOpt) or multi-prefix allocation (Regional IP Anycast), AnyPro preserves full site capacity utilization. All PoPs remain active and ready to absorb traffic during failover events, avoiding stranded capital or capacity bottlenecks.
- Tradeoffs and Limitations: The primary limitation highlighted in the evaluation is the handling of hard, cross-continental routing conflicts where two disjoint client populations demand mutually exclusive prepending configurations. While AnyPro's binary-scan resolution handles these gracefully by prioritizing high-weight clients, extreme topological growth past thousands of PoPs would increase convergence search times, though early-stopping heuristics effectively mitigate this in practice.
Key Takeaways
- BGP Blindness Solved: Standard IP anycast suffers from severe path inflation (RTT > 120 ms) because BGP is performance-agnostic and unanalyzable; AnyPro fixes this using strategic AS-path prepending.
- Linear-Time Discovery: Max-min pooling discovers ASPP-sensitive clients in $O(N)$ time, avoiding intractable combinatorial searches across complex configuration spaces.
- Significant Latency Reductions: In production evaluations across 20 PoPs, AnyPro slashed 90th percentile RTT from 271 ms to 58 ms, significantly outperforming coarse binary site-toggling.
- Conflict Resolution Engine: An iterative binary scan framework successfully resolves hard inter-client routing conflicts by tightening constraints and prioritizing high-weight traffic.
- No Machine Learning Required: Despite the ubiquity of ML in systems optimization, AnyPro proves that domain-specific algorithmic formulations grounded in BGP context vastly outperform neural networks and decision trees for interdomain routing.
About the Speaker(s)
Minyuan Zhou is a joint researcher affiliated with Nanjing University and Alibaba Cloud. In the conference presentation, Zhou noted that despite conducting extensive machine learning research, this work stands out as a source of particular pride precisely because it solves a complex systems and networking problem efficiently and robustly without relying on machine learning. The author list represents a collaborative engineering and academic effort between Nanjing University, the University of California (Merced and Los Angeles), and engineering teams at Alibaba Group and Alibaba Cloud.
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)