arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.13248cs.NIcs.LG
收藏

基于LLM智能体的自动化网络协议测试

Automated Network Protocol Testing with LLM Agents

Tsinghua University(清华大学);Beijing Xinertel Technology Co., Ltd.(北京新ertel技术有限公司);Tencent(腾讯)

Yunze Wei, Kaiwen Wei, Shibo Du, Jianyu Wang, Zhangzhong Liu, Yawen Wang, Zhanyou Li, Congcong Miao, Xiaohui Xie, Yong Cui

AI总结:

提出NeTestLLM系统,利用多智能体大语言模型实现端到端自动化网络协议测试,通过分层理解、迭代生成和反馈分析,显著提升测试覆盖率和效率。

摘要:

网络协议测试对于现代网络基础设施至关重要。然而,传统的网络协议测试方法劳动密集且容易出错,需要人工解读规范、设计测试用例并将其转换为可执行工件,每个测试用例通常需要一个人日的工作量。现有的基于模型的方法提供了部分自动化,但仍涉及大量人工建模和专家干预,导致成本高昂且对多样化和不断演进的协议适应性有限。在本文中,我们提出了一个首创的系统NeTestLLM,利用多智能体大语言模型(LLMs)实现端到端的自动化网络协议测试。NeTestLLM采用分层协议理解来捕获复杂规范,通过迭代测试用例生成来提高覆盖率,使用任务特定工作流生成可执行工件,并利用运行时反馈分析进行调试和优化。NeTestLLM已在生产环境中部署数月,获得了领域专家的积极反馈。在实验中,NeTestLLM为OSPF、RIP和BGP生成了4,632个测试用例,覆盖了41个历史FRRouting漏洞,而当前国家标准仅覆盖11个。生成可执行工件的过程相比人工方法也将测试效率提高了8.65倍。NeTestLLM为异构网络协议的自动化端到端测试提供了首个实用的LLM驱动解决方案。

英文摘要:

Network protocol testing is fundamental for modern network infrastructure. However, traditional network protocol testing methods are labor-intensive and error-prone, requiring manual interpretation of specifications, test case design, and translation into executable artifacts, typically demanding one person-day of effort per test case. Existing model-based approaches provide partial automation but still involve substantial manual modeling and expert intervention, leading to high costs and limited adaptability to diverse and evolving protocols. In this paper, we propose a first-of-its-kind system called NeTestLLM that takes advantage of multi-agent Large Language Models (LLMs) for end-to-end automated network protocol testing. NeTestLLM employs hierarchical protocol understanding to capture complex specifications, iterative test case generation to improve coverage, a task-specific workflow for executable artifact generation, and runtime feedback analysis for debugging and refinement. NeTestLLM has been deployed in a production environment for several months, receiving positive feedback from domain experts. In experiments, NeTestLLM generated 4,632 test cases for OSPF, RIP, and BGP, covering 41 historical FRRouting bugs compared to 11 by current national standards. The process of generating executable artifacts also improves testing efficiency by a factor of 8.65x compared to manual methods. NeTestLLM provides the first practical LLM-powered solution for automated end-to-end testing of heterogeneous network protocols.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑