Automated Network Protocol Testing with LLM Agents

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wei, Yunze, Wei, Kaiwen, Du, Shibo, Wang, Jianyu, Liu, Zhangzhong, Wang, Yawen, Li, Zhanyou, Miao, Congcong, Xie, Xiaohui, Cui, Yong
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908594157387776
author Wei, Yunze
Wei, Kaiwen
Du, Shibo
Wang, Jianyu
Liu, Zhangzhong
Wang, Yawen
Li, Zhanyou
Miao, Congcong
Xie, Xiaohui
Cui, Yong
author_facet Wei, Yunze
Wei, Kaiwen
Du, Shibo
Wang, Jianyu
Liu, Zhangzhong
Wang, Yawen
Li, Zhanyou
Miao, Congcong
Xie, Xiaohui
Cui, Yong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_13248
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Automated Network Protocol Testing with LLM Agents
Wei, Yunze
Wei, Kaiwen
Du, Shibo
Wang, Jianyu
Liu, Zhangzhong
Wang, Yawen
Li, Zhanyou
Miao, Congcong
Xie, Xiaohui
Cui, Yong
Networking and Internet Architecture
Machine Learning
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.
title Automated Network Protocol Testing with LLM Agents
topic Networking and Internet Architecture
Machine Learning
url https://arxiv.org/abs/2510.13248