Abstract: Traditional approaches to network management have been accessible only to a handful of highly-trained network operators with significant expert knowledge. This creates barriers for lay users to easily manage their networks without resorting to experts. With recent development of powerful large language models (LLMs) for language comprehension, we design a system to make network management accessible to a broader audience of non-experts by allowing users to converse with networks in natural language. To effectively leverage advancements in LLMs, we propose an agentic framework that uses an intermediate representation to streamline configuration across diverse vendor equipment, retrieves the network state from memory in real-time, and provides an interface for external feedback. We also conduct pilot studies to collect real user data of natural language utterances for network control, and present a visualization interface to facilitate dialogue-driven user interaction and enable large-scale data collection for future development. Preliminary experiments validate the effectiveness of our proposed system components with LLM integration on both synthetic and real user utterances. Through our data collection and visualization efforts, we pave the way for more effective use of LLMs and democratize network control for everyday users.
Introduction
Network management has traditionally been a "high-walled garden," requiring deep expertise in vendor-specific Command Line Interfaces (CLIs)—such as Cisco IOS or Juniper Junos—which possess vastly different syntaxes and underlying logic. For example, setting up a simple routing policy might require "include/exclude" directives in one system and complex "affinity bits and masks" in another. This complexity creates a steep learning curve that prevents developers and end-users from managing their own networks. While Large Language Models (LLMs) are adept at language processing, they often struggle with technical hallucinations or real-time network states. This research presents a reliable, agentic bridge to handle these nuances automatically.
The Agentic Framework
The proposed framework moves beyond simple prompt engineering to create a multi-component system designed for reliability and vendor-neutrality.
Intermediate Representation (IR)
Instead of tasking the LLM with writing vendor-specific code directly, the system generates YANG models. YANG is a vendor-agnostic data modeling language that allows the system to support multiple hardware vendors by using existing compilers to translate the IR into specific machine code.
System Architecture and Feedback Loops
The framework utilizes a Retrieval-Augmented Generation (RAG) approach, employing a vector database to store the current network state and IR documentation. When a user makes a request, the agent retrieves relevant context to ground its reasoning.
Crucially, the framework includes an automated Schema Verifier. If the LLM generates a configuration that violates the YANG schema, error logs are fed back into the LLM for an iterative self-correction cycle. A visualization interface also allows for human-in-the-loop verification before deployment.
Experimental Evaluation
The study evaluated the framework using three distinct sources: synthetic network intents (alpha), real-world intents from university documentation (campi), and a new dataset of 13 complex requests for 3-stage Clos networks gathered from professional operators.
Key Results
- Entity Recognition: The LLM-based approach achieved an F1 score of 0.83, slightly outperforming specialized LSTM-based models.
- Intent Matching: On the campi dataset, the system achieved a 75.83% fuzzy match accuracy, demonstrating robustness against the variability of human speech.
- End-to-End Success: In complex Clos network scenarios, the full system reached a final deployment accuracy of 76.92%.
- The Power of Natural Language Retrieval: Accuracy jumped from 46.15% to 76.92% when retrieved network states were converted into natural language descriptions before processing, rather than feeding the LLM raw configuration files.
- Verification Efficacy: Without the automated verifier, only 33% of outputs were syntactically correct. With the verifier, the system corrected 87.5% of errors within five iterations.
Conclusion and Future Work
While the system effectively handles syntax errors, future work will focus on addressing "logic" errors—such as syntactically valid but operationally broken IP assignments—and reducing latency, which currently averages 86.43 seconds per query. By utilizing an intermediate representation and automated verification, this framework paves the way for democratizing network control for non-expert users.
Summary updated