用AI自动翻译网络配置为可验证逻辑模型,提升故障定位与变更分析效率。
Let AI Agents Translate Networks, Not Reason About Them

- 让大模型将网络配置转化为形式化逻辑规则,替代人工建模
- 在模拟的生产级广域网中实现快速可达性验证与变更影响分析
- 适合网络运维、自动化工具开发人员,降低故障排查成本
形式化模型可验证可达性、定位故障或预测变更影响范围,但几乎无生产网络使用,因手工建模需稀缺技能且难以随频繁变化的网络保持同步。本质上,网络建模是将网络文档(如配置、拓扑、路由状态)转化为形式逻辑规则的文本转换任务,而大语言模型(LLM)正擅长此类翻译。与自由推理不同,此类翻译可被形式化验证。一旦建模不再是瓶颈,依赖AI进行长程推理便不再合理。因此,我们反对端到端由自主AI代理主导的潮流,转而将AI限制在翻译环节,由求解器完成可靠长程推理。我们构建了TypoNet,从网络自身数据构建并验证一个符号化模型,覆盖模拟的生产规模广域网(WAN)。初步评估表明:一方面,TypoNet独立运行时,比LLM更快、更廉价、更可靠地回答运维问题(如可达性验证、变更影响分析);另一方面,作为AI代理的工具,其显著降低故障定位成本。该结果支持构建可验证网络模型,并依赖求解器实现可靠推理的AI范式。
原文摘要 · Abstract (English)
A formal model enables verifying reachability, localizing an outage, or anticipating the blast radius of a change. Yet, virtually no production network has one, since writing a model by hand demands rare expertise and is hard to keep current as the network changes frequently. At its core, network modeling is a typographical exercise: it translates network artifacts (e.g., configurations, topology, and routing state) into rules in formal logic. Translation of this kind is what large language models (LLMs) nowadays do well. Unlike free-form AI reasoning, such translation can be formally verified. Once modeling is no longer the bottleneck, trusting AI to reason over large, complex networks no longer makes sense. Our position therefore cuts against the prevailing race to put autonomous AI agents in charge end-to-end. We instead confine AI to translation and rely on a solver for reliable long-horizon reasoning, building a reusable formal model of general network behavior that can then be specialized to specific tasks, e.g., root-cause analysis (RCA). We build TypoNet that constructs and validates a symbolic model of an emulated production-scale WAN from the network's own artifacts. Our preliminary evaluation shows TypoNet helps in two ways. On its own, TypoNet answers operational questions (e.g., reachability verification and change-impact analysis) faster, more cheaply, and more reliably than an LLM. As a tool for an AI agent, TypoNet boosts fault localization at lower cost. The result makes the case for AI that builds verifiable network models and relies on a solver for reliable long-horizon reasoning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。