arXiv(opens in a new tab)cs.NIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.23179

NetConfArena: An Executable Benchmark for LLM Agents in Closed-Loop Network Configuration

Chang Liu, Xiaohui Xie, Xinyi Chen, Yong Cui

Chang Liu, Xiaohui Xie ∗^{*}, Xinyi Chen, and Yong Cui ∗^{*}

Department of Computer Science and Technology, Tsinghua University, Beijing, China

Abstract—Large language model (LLM) agents are increasingly attractive for automating network configuration, yet their reliability and failure patterns are poorly understood. An essential prerequisite is to assess such agents in a realistic but risk-free environment. Existing benchmarks, however, fall short: they often treat configuration as static command generation or rely on overly simplified settings. Such evaluations understate the core challenges of network configuration, where correctness requires reasoning about protocol complexity and topology dependence. We present NetConfArena, an executable benchmark for evaluating LLM agents in closed-loop network configuration. NetConfArena places agents in emulated multi-device networks, provides a standardized and compact action interface for task execution, and evaluates the resulting network behavior with hidden task-specific executable test cases. The benchmark relies on an LLM-assisted, emulation-grounded pipeline, which converts human-oriented network materials into reusable parameterized task templates. We evaluate representative LLM agents on 480 task instances instantiated from 96 protocol-focused task templates, yielding 3840 execution trajectories, and show that failures are not limited to command errors. The failures also reveal gaps in task-specification adherence and robust planning and execution. These findings suggest two future directions: using validated trajectories as supervision signals to improve foundation models, and designing harness mechanisms that make agent execution more reliable and accountable.

I. INTRODUCTION

Network configuration is a core operational task for maintaining connectivity, policy compliance, and predictable routing. Although operators often express their intent at a high level, realizing it usually requires coordinated updates across multiple devices and protocols [1]−[8][1]-[8]. Therefore, configuration correctness cannot be equated with whether configuration commands are accepted by a single device; it depends on whether the resulting network behavior satisfies that intent.

Recent progress in large language models (LLMs) has created substantial interest in using LLM agents to automate network configuration [9], [10]. Such agents appear well suited to this setting because they can interpret natural-language intent, reason over intermediate observations, and invoke tools over multiple steps [11], [12]. In practice, however, few operators would be willing to let an LLM agent configure a production network directly. This caution is warranted: network configuration is error-sensitive, and an unintended change can disrupt network-wide connectivity and cause service outages. Without a trustworthy understanding of LLM agent reliability and failure modes, direct deployment in such a high-stakes setting remains difficult to justify. Accordingly, a necessary first step is to evaluate these agents in a risk-free environment [11], [13]–[17]. Such assessment must also reflect how network configuration is actually performed. The agent should not be judged only by its final output, because network configuration is naturally an iterative process in which operators observe the current network state, apply changes cautiously, check their effects carefully, and correct mistakes promptly when the network does not behave as expected. Moreover, network configuration does not have a unique valid solution, as many different command sequences can be acceptable if they lead to the intended network state. For these reasons, evaluating LLM agents for network configuration requires closed-loop interaction and behavioral validation, rather than static comparison with a single reference configuration.

However, existing benchmarks for LLM-based network configuration still fall short of capturing realistic closed-loop configuration in three key respects. First, benchmarks based on synthetic or manually labeled datasets typically evaluate static outputs against reference answers, primarily testing whether a model has covered the required configuration knowledge [18]. Second, benchmarks that execute generated configurations in emulators often use emulation only for post hoc validation, thereby measuring intent understanding and single-shot generation more than interactive execution, diagnosis, and repair [19]. Third, the closest closed-loop settings are often limited to simplified single-router scenarios, which do not expose the protocol complexity or topology dependence of realistic network configuration [20]. Consequently, existing evaluations provide limited evidence on whether current agents can reliably complete network configuration through vendor-specific command-line interfaces (CLIs).

To address this gap, we present NetConfArena, an executable benchmark for evaluating LLM agents in closed-loop network configuration. Compared with prior benchmarks, NetConfArena goes beyond simplified settings toward more realistic scenarios by supporting a vendor-specific CLI configuration process and multi-device, protocol-rich tasks. NetConfArena relies on an LLM-assisted, emulation-grounded pipeline to build a task suite that is executable and reusable. The pipeline starts from human-oriented network materials, including vendor manuals, public tutorials, and community lab scenarios, and converts them into validated and parameterized

This work was supported by NSFC Project under Grant 62132009 and Grant 62221003.

∗^{*}Corresponding Authors: Xiaohui Xie and Yong Cui.

templates, allowing controlled variations of addresses, interfaces, and protocol parameters without changing the underlying intent or test-case logic. During evaluation, NetConfArena places agents in emulated networks and gives them a standardized and compact action interface for task execution. Each task specifies an operator intent together with an executable environment context, and the submitted result is evaluated by hidden task-specific test cases that check the final network behavior. In addition to outcome scores, NetConfArena records complete interaction trajectories, making it possible to analyze how an agent reaches the final state.

Using this benchmark, we evaluate representative LLM agents on 480 seeded task instances derived from 96 task templates and collect 3840 execution trajectories. The results show that agents built on state-of-the-art foundation models can solve many tasks, but their reliability varies across different settings. For agents built on less capable models, failures are not limited to misunderstandings of protocol or command semantics. Instead, many failures arise because agents deviate from task-provided specifications, plan and execute ineffectively, or give up after unexpected feedback. These findings show that realistic network configuration stresses not only command generation, but also specification adherence and robust closed-loop execution.

The trajectories produced by NetConfArena also point to future directions beyond benchmarking. Successful trajectories can serve as validated supervision signals for improving foundation models, while failed trajectories and process metrics can guide the design of better agent harnesses. In particular, harness mechanisms that improve state management and enforce safety constraints may make agent execution more reliable and accountable. In this sense, NetConfArena is not only a measurement tool, but also a source of high-quality validated trajectories for model training and practical guidance for agent-system design. We have released the NetConfArena benchmark framework and task suite as open source 1^{1} to support reproducible evaluation and future research.

In summary, this paper makes the following contributions:

  • We develop an emulator-backed benchmark framework in which agents try to complete configuration tasks with vendor-specific CLIs. The framework also combines a standardized and compact action interface with hidden executable test cases to support evaluation from both process- and outcome-level perspectives (Sec. III).

  • We design an LLM-assisted, emulation-grounded pipeline that transforms human-oriented materials into validated and parameterized task templates. Using this pipeline, we construct 96 protocol-focused task templates with controlled variation and deterministic test cases (Sec. IV).

  • We evaluate representative LLM agents over 3840 execution trajectories, identify four major knowledge-level and interaction-level failure patterns, and discuss two directions for improving agent reliability (Secs. V and VI).

Figure

(a) Task topology and per-prefix routing objectives

Figure

(b) Actual agent execution trace and process-level evidence

Fig. 1. Motivation example from NetConfArena, illustrating the closed-loop workflow of a network configuration agent.

References (35)

  • A general approach to network configuration analysis
  • A general approach to network configuration verification
  • Network-wide configuration synthesis
  • NetComplete: Practical Network-Wide configuration synthesis with autocompletion
  • Don’t mind the gap: Bridging network-wide objectives and device-level configurations
  • Network configuration synthesis with abstract topologies
  • Safely and automatically updating in-network acl configurations with intent language
  • Practical intent-driven routing configuration synthesis
  • A survey on intelligent network operations and performance optimization based on large language models
  • Large language models for networking: Workflow, advances and challenges
  • React: Synergizing reasoning and acting in language models
  • Learning to reason with llms
  • Swe-agent: Agent-computer interfaces enable automated software engineering
  • Autowebglm: A large language model-based web navigating agent
  • Webpilot: A versatile and autonomous multi-agent system for web task execution with strategic exploration
  • MetaGPT: Meta Programming for Multi-Agent Collaborative Framework
  • Pc-agent: A hierarchical multi-agent collaboration framework for complex task automation on pc (opens arXiv in a new tab)
  • NetConfEval: Can LLMs facilitate network configuration?
  • Netllmbench: A benchmark framework for large language models in network configuration tasks
  • Netarena: Dynamic benchmarks for ai agents in network automation
  • Gns3 — the software that empowers network professionals
  • Direct preference optimization: Your language model is secretly a reward model
  • Cisco networking academy
  • Qwen3 technical report
  • Deepseek v4 preview release
  • Qwq-plus model overview
  • What do llms need to synthesize correct router configurations?
  • {CEGS}: Configuration example generalizing synthesizer
  • Large language models as configuration validators
  • Caip: Detecting router misconfigurations with context-aware iterative prompting of llms (opens arXiv in a new tab)
  • Genet: A multimodal llm-based co-pilot for network topology and configuration (opens arXiv in a new tab)
  • Switch: Switch configuration assistant with llm and prompt engineering
  • Enhancing network management using code generated by large language models
  • Fast control plane analysis using an abstract representation
  • Lessons from the evolution of the batfish configuration analysis tool