Skip to main content
QUICK REVIEW

[Paper Review] Making Network Configuration Human Friendly

Changjie Wang, Mariano Scazzariello|arXiv (Cornell University)|Sep 12, 2023
Software System Performance and ReliabilityComputer Science10 citations
TL;DR

The paper introduces NetBuddy, an LLM-based system that translates natural-language network requirements into low-level configurations (P4 and BGP), demonstrated via a GPT-4-based proof-of-concept and a runtime BGP modification scenario, with a multi-stage generation pipeline and a verifier to improve correctness.

ABSTRACT

This paper explores opportunities to utilize Large Language Models (LLMs) to make network configuration human-friendly, simplifying the configuration of network devices and minimizing errors. We examine the effectiveness of these models in translating high-level policies and requirements (i.e., specified in natural language) into low-level network APIs, which requires understanding the hardware and protocols. More specifically, we propose NETBUDDY for generating network configurations from scratch and modifying them at runtime. NETBUDDY splits the generation of network configurations into fine-grained steps and relies on self-healing code-generation approaches to better take advantage of the full potential of LLMs. We first thoroughly examine the challenges of using these models to produce a fully functional & correct configuration, and then evaluate the feasibility of realizing NETBUDDY by building a proof-of-concept solution using GPT-4 to translate a set of high-level requirements into P4 and BGP configurations and run them using the Kathará network emulator.

Motivation & Objective

  • Motivate and assess how Large Language Models can simplify and automate network configuration tasks.
  • Propose NetBuddy, a multi-stage LLM-based pipeline for translating high-level requirements into low-level configurations.
  • Evaluate the challenges, limitations, and feasibility of implementing NetBuddy in real networks.

Proposed method

  • Propose a three-stage pipeline: (1) translate natural language inputs to a formal specification, (2) convert the formal specification to a high-level configuration, (3) generate low-level configurations and commands for devices.
  • Incorporate a verifier component to check syntax, compilability, and correctness, and provide feedback to the LLMs.
  • Demonstrate a proof-of-concept using GPT-4 to generate P4 paths and BGP-related configurations, validated in a Kathará network emulator.
  • Discuss use of multi-modal inputs and potential fine-tuning or network-specific information to handle proprietary devices and protocols.
  • Analyze model behavior, batching strategies, and the trade-offs between model accuracy, requirement complexity, and cost.
  • Showcase scenarios: MPLS routing for P4-enabled switches and runtime BGP router modifications.

Experimental results

Research questions

  • RQ1Can state-of-the-art LLMs translate high-level natural-language network requirements into formal specifications and then into correct low-level configurations?
  • RQ2Is a multi-stage NetBuddy pipeline feasible and effective for generating P4 and BGP configurations from natural-language requirements?
  • RQ3What are the main challenges, limitations, and cost/accuracy trade-offs when using LLMs for network configuration?
  • RQ4How can verification and feedback loops improve the correctness and robustness of LLM-generated network configurations?

Key findings

  • LLMs can generate working P4 and BGP configurations from natural-language requirements without fine-tuning in a proof-of-concept
  • There is a trade-off between model accuracy, requirement complexity, and economic cost when translating requirements
  • Batching requirements (e.g., 10 at a time) improves translation accuracy and reduces per-requirement cost
  • Explicit contradictions in requirements can be detected by GPT-4, while implicit conflicts remain challenging without additional tooling
  • A verifier and iterative feedback can fix syntax and functional errors in generated configurations
  • The approach enables re-use of existing configurations when new requirements are added, rather than starting from scratch

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.