AnyPro: Preference-Preserving Anycast Optimization based on Strategic AS-Path Prepending

Minyuan Zhou, Yuning Chen, Jiaqi Zheng, Yifei Xu, Pan Hu, Yongping Tang, Wendong Yin, Jie Lin, Qingyan Yu, Yuanchao Su, Guihai Chen, Wanchun Dou, Songwu Lu, Wan Du

TL;DR

AnyPro is the first system to systematically harness AS-path prepending (ASPP) at scale to optimize IP anycast routing. By combining an efficient max-min polling mechanism with constraint-based optimization, it steers client traffic to performance-optimal sites, reducing 90th-percentile tail latency by 37.7% compared to standard baselines.

What Problem Does This Paper Address?

IP anycast is a fundamental routing technique where multiple geographically distributed servers (Points of Presence, or PoPs) advertise the exact same IP address prefix. In an ideal world, the Internet's routing protocol, BGP (Border Gateway Protocol), would naturally send users to the closest or fastest PoP.

In reality, BGP prioritizes policy and autonomous system (AS) relationships over physical distance. This mismatch often causes severe "path inflation," where a user in one country is routed to a PoP on another continent, adding over 100ms of unnecessary latency.

Network operators can use AS-path prepending (ASPP)—artificially lengthening a routing path to make it less attractive—to subtly nudge BGP traffic elsewhere. However, doing this at scale is incredibly difficult. For a network with dozens of entry points (ingresses) and multiple possible prepend lengths, the search space of configurations is exponentially large ($O(m^n)$). Testing every combination via brute force would take weeks and destabilize the network.

Methods

AnyPro tackles this massive search space through a three-phase architecture:

  1. Max-min Polling: Instead of scanning every combination, AnyPro uses a targeted exploration strategy. It initializes all ingress points to a maximum prepend length (MAX) and then iteratively drops them to zero one by one. This efficiently isolates which clients are sensitive to ASPP adjustments and establishes preliminary routing constraints.
  2. Optimization Solving: The system models the anycast optimization problem as a constraint satisfaction problem, reducing it to a classic Max-SAT formulation. It uses a commercial solver (OR-Tools) to find a configuration that satisfies as many client routing preferences as possible.
  3. Contradiction Resolution: Because different clients have conflicting routing needs, their constraints often clash. AnyPro introduces a coordinated binary search algorithm (bisection refinement) to systematically tighten threshold bounds and resolve these contradictions without expensive brute-force testing.
AnyPro system overview

Datasets

The authors evaluated AnyPro on a real-world, production-grade global testbed:

  • Infrastructure: 20 globally distributed PoPs across major cities (e.g., Ashburn, Frankfurt, Singapore, Tokyo), totaling 38 distinct network ingresses.
  • Client IP Set: To ensure generalizability, they curated a stable set of ~2.4 million active IPv4 addresses from the authoritative ISI IPv4 hitlist, filtered to ensure under 10% packet loss.

Key Insights and Ideas

  • The Power of Client Aggregation: Although testing 2.4 million IPs seems daunting, AnyPro discovered that clients naturally cluster into just ~14,700 unique routing behavior groups. Furthermore, 58% of these groups only have 1–2 viable candidate ingresses, drastically simplifying the optimization complexity.
  • The "Third-Party" Ripple Effect: Surprisingly, the authors found that 4.9% of client groups shift their preferred ingress due to changes made at an entirely unrelated, third-party ingress. This happens because of low-level BGP tie-breaking rules (like MED or Router ID). AnyPro explicitly accounts for this behavior by dynamically adapting its constraint format.
  • ASPP Stability: The paper highlights that ASPP policies across the broader Internet are remarkably stable—only 0.3% of paths change their prepending configurations frequently. This predictability makes ASPP an ideal lever for long-term anycast tuning.
An illustrative example of max-min polling

Key Results

  • Latency Reduction: AnyPro alone significantly cuts down tail latency. When integrated with PoP-level selection techniques (like AnyOpt), it reduced the 90th-percentile RTT from a baseline of 271.2 ms down to 58.0 ms.
  • High Accuracy: In predicting client-to-PoP mappings across a massive 20-PoP deployment, AnyPro achieved 88.5% accuracy, proving its real-world reliability.
  • Operational Efficiency: A full optimization cycle with AnyPro requires only 160 ASPP adjustments, taking roughly 26.6 hours (accounting for BGP convergence delays). This is a massive improvement over previous state-of-the-art frameworks like AnyOpt, which require up to 190 hours.

Limitations and Future Work

While highly effective, AnyPro's Max-SAT optimization naturally prioritizes the "greater good." Because it maximizes total satisfied constraints based on traffic volume, smaller client populations or lower-traffic regions can be deprioritized when severe routing contradictions arise, potentially leaving them with suboptimal paths.

Additionally, the system currently excludes BGP community tags from its primary pipeline due to a lack of universal standardization across different ISPs. The authors note that integrating community-based controls for localized anomaly detection is a promising avenue for future work.

Summary updated

BibTeX
@inproceedings{zhou2026anypro,
  author = {Minyuan Zhou and Yuning Chen and Jiaqi Zheng and Yifei Xu and Pan Hu and Yongping Tang and Wendong Yin and Jie Lin and Qingyan Yu and Yuanchao Su and Guihai Chen and Wanchun Dou and Songwu Lu and Wan Du},
  title = {{AnyPro: Preference-Preserving Anycast Optimization based on Strategic AS-Path Prepending}},
  booktitle = {NSDI},
  year = {2026},
}
Figure