RoutingBench: Can Agentic Routing Analysis Scale to Production Datacenter Networks?

Wenlong Ding, Zhixiong Niu, Jianan Yang, Fajun Zhang, Bo Zhang, Ling Liang, Yongqiang Xiong, Tianyin Xu, Hong XuarXiv 2026

TL;DR

Traditional symbolic verification tools fail to scale when analyzing routing paths in hyperscale datacenter networks, often running out of memory or taking hours to complete. This paper introduces RoutingBench, a benchmark designed to evaluate AI agents on network routing-path analysis under various configuration changes. The authors demonstrate that an LLM agent equipped with specialized "Agent Skills" and guided by the principle of "explore more; digest less" can scale to networks of 50,000 routers with 99.5% accuracy, vastly outperforming traditional symbolic analysis and alternative agent architectures.

What Problem Does This Paper Address?

In large-scale cloud networks, a single local configuration change (such as adjusting a Border Gateway Protocol (BGP) attribute or adding a static route) can cause a ripple effect, altering traffic paths across the entire network. Network Operations (NetOps) teams rely on routing-path analysis to predict these end-to-end changes to prevent catastrophic outages.

Figure 1: An example of routing-path analysis. In this example, a local BGP LP change on router Aggr-1 would direct the queried endpoint-prefix pair onto a globally different path. Along the new path, determining the path outcome requires reasoning across network devices and protocols.

Currently, this analysis is performed using traditional symbolic verification tools (like Batfish) that simulate network behavior by building massive mathematical routing tables. However, these tools suffer from severe scalability bottlenecks: as the number of devices and routing policies grows, the state space explodes. For networks exceeding a few thousand routers, traditional tools either take hours to run or completely run out of memory (OOM), making them impractical for modern hyperscale datacenters that house tens of thousands of devices.

Figure 3: Batfish runtime across topology sizes. Neither runtime nor memory can scale to a single production-size datacenter with 10K+ routers.

Methods

The paper explores whether LLM-based AI agents can overcome these scalability limits. The authors design and evaluate three distinct agentic paradigms:

  1. In-Context Learning (ICL): The agent receives the entire network topology and all raw device configuration files within a single prompt. The LLM must find the relevant evidence and reason out the path entirely within its context window.
  2. Iterative Reasoning: The agent is given the topology but no configurations. It must iteratively request and read the full .cfg files of specific routers over multiple rounds to trace the path.
  3. Agent Skills: Instead of reading raw, multi-thousand-line configuration files, the agent starts with no topology or configurations in its context. It operates in a plan-invoke-reason loop, utilizing 14 specialized routing skills (e.g., find-lp-for-prefix, get-topology-adjacency) that use low-level tools like regex matching to extract only compact, task-relevant snippets.

The core philosophy behind the successful Agent Skills paradigm is "explore more; digest less"—aggressively invoking targeted tools to gather minimal data rather than forcing the LLM to ingest massive amounts of raw text or overthink internally.

Datasets

The authors introduce RoutingBench, an automated framework that generates realistic network instances to benchmark these agents:

  • Topologies: Generates intra-datacenter Clos (fat-tree) networks and complex inter-datacenter networks parameterized by size ($k$-port fat trees), scaling up to 50,000+ routers.
  • Configurations: Automatically generates realistic Cisco IOS-style configurations with conflict-free IP addressing and eBGP sessions.
  • Queries: Synthesizes path-analysis queries featuring both individual configuration changes (BGP Local Preference, MED, static routes, interface shutdowns) and compound changes (combinations of multiple protocol modifications).

To validate the benchmark's fidelity, the authors also evaluated the top-performing agent on a real-world hyperscale production network consisting of two datacenters with over 10,000 routers each.

Key Insights and Ideas

  • The "Explore More; Digest Less" Principle: General-purpose LLMs excel at network analysis when they act as coordinators rather than readers. Ingesting raw configuration files quickly overwhelms context windows and degrades reasoning. Using skills to fetch precise, parsed snippets keeps token counts flat and accuracy high.
  • Thinking Models vs. Tool-Driven Models: Interestingly, specialized "thinking" models (like OpenAI o3) occasionally underperformed general models (like GPT-5.4) because they tended to spiral into excessive internal reasoning rather than executing efficient tool calls, leading to token and runtime spikes.
  • The Capability Boundary: While AI agents easily handle single-protocol changes within a single datacenter, their performance drops when facing inter-datacenter topologies (due to longer path lengths leading to lazy reasoning) and compound changes (where multiple competing protocols interact across different routers).

Key Results

  • Unprecedented Scalability: GPT-5.4 using the Agent Skills paradigm successfully scaled to a network of 50,000 routers, achieving 99.5% accuracy while consuming fewer than 120K tokens and finishing in under an hour. In comparison, traditional symbolic analysis (Batfish) crashed due to out-of-memory errors on networks larger than 8,000 routers.
  • Paradigm Comparison: Under the same network scale, In-Context Learning overflowed the context window at just 500 routers, and Iterative Reasoning failed at 3,100 routers due to accumulating too much irrelevant configuration text.
  • Real-World Validation: When tested on actual production datacenter configurations, the Agent Skills model maintained a high accuracy of 92% for intra-datacenter analysis and 73% for inter-datacenter analysis, proving that RoutingBench accurately mirrors real-world complexities.

Limitations and Future Work

Despite the breakthrough in scalability, the paper highlights clear boundaries for current AI capabilities. Agent accuracy degrades to roughly 70-80% when dealing with compound changes and inter-datacenter environments where multiple protocols overlap.

Additionally, RoutingBench currently focuses strictly on routing-related configurations. Real production networks feature a messy mix of non-routing complexities, such as security policies, bandwidth allocations, and login authentications, which inflate token costs. The authors note that future work will expand RoutingBench to incorporate these heterogeneous protocols and support alternative network topologies like leaf-spine and dragonfly.

Summary updated

BibTeX
@misc{ding2026routingbench,
  author = {Wenlong Ding and Zhixiong Niu and Jianan Yang and Fajun Zhang and Bo Zhang and Ling Liang and Yongqiang Xiong and Tianyin Xu and Hong Xu},
  title = {{RoutingBench: Can Agentic Routing Analysis Scale to Production Datacenter Networks?}},
  year = {2026},
  eprint = {2609.22848},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.22848},
}
Figure