arXiv:2501.08760cs.NIcs.AI2025-01中稿 · The 33rd IEEE Inte…被引 17

用大模型理解网络配置意图,自动翻译设备间配置

INTA: Intent-Based Translation for Network Configuration with LLM Agents

  • 以配置意图作中间表示,分步解析并生成目标配置
  • 翻译准确率达98.15%,命令召回率84.72%,支持跨设备迁移
  • 适合网络运维自动化、新旧设备替换场景使用

在现代网络运维中,不同网络设备间的配置翻译是一项常见但极具挑战的任务,尤其在替换老旧硬件或适配软件定义网络(SDN)与网络功能虚拟化(NFV)等新范式时尤为突出。工程师需深入理解源与目标设备的配置规范,而这些规范复杂且持续演进,人工转换成本高。为推动配置翻译的自动化,本文提出INTA框架,基于大语言模型(LLM)代理实现意图驱动的翻译。其核心思路是将配置意图作为中间表示:首先利用LLMs分解配置文件并提取细粒度意图;随后根据意图检索目标设备手册;再通过语法检查器逐步生成目标配置,并进行语义一致性验证与优化。我们在工业级真实配置数据集上实现了INTA,结果表明其翻译准确率达到98.15%(语法与视图正确性),目标配置命令召回率达84.72%,具备优异的泛化能力,显著优于现有方法。

原文摘要 · Abstract (English)

Translating configurations between different network devices is a common yet challenging task in modern network operations. This challenge arises in typical scenarios such as replacing obsolete hardware and adapting configurations to emerging paradigms like Software Defined Networking (SDN) and Network Function Virtualization (NFV). Engineers need to thoroughly understand both source and target configuration models, which requires considerable effort due to the complexity and evolving nature of these specifications. To promote automation in network configuration translation, we propose INTA, an intent-based translation framework that leverages Large Language Model (LLM) agents. The key idea of INTA is to use configuration intent as an intermediate representation for translation. It first employs LLMs to decompose configuration files and extract fine-grained intents for each configuration fragment. These intents are then used to retrieve relevant manuals of the target device. Guided by a syntax checker, INTA incrementally generates target configurations. The translated configurations are further verified and refined for semantic consistency. We implement INTA and evaluate it on real-world configuration datasets from the industry. Our approach outperforms state-of-the-art methods in translation accuracy and exhibits strong generalizability. INTA achieves an accuracy of 98.15% in terms of both syntactic and view correctness, and a command recall rate of 84.72% for the target configuration. The semantic consistency report of the translated configuration further demonstrates its practical value in real-world network operations.

网络配置大模型应用自动化运维

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。