iPanda: An LLM-based Agent for Automated Conformance Testing of Communication Protocols
Xikai Sun, Fan Dang, Shiqi Jiang, Jingao Xu, Kebin Liu, Xin Miao, Zihao Yang, Weichen Zhang, Haimo Lu, Yawen Zheng, Yunhao Liu

TL;DR
iPanda leverages large language models to automate communication protocol conformance testing, significantly improving test program success rates through automated test case generation, interpretation, and iterative refinement.
Contribution
This paper introduces iPanda, the first framework that uses LLMs for automated protocol conformance testing, combining test case generation, implementation interpretation, and iterative optimization.
Findings
Outperforms pure LLM approaches in success rate (Pass@1) by 4.675 to 10.751 times.
Automates comprehensive test case generation from protocol specifications.
Effectively verifies implementation compliance with protocol standards.
Abstract
Conformance testing is essential for ensuring that protocol implementations comply with their specifications. However, traditional testing approaches involve manually creating numerous test cases and scripts, making the process labor-intensive and inefficient. Recently, Large Language Models (LLMs) have demonstrated impressive text comprehension and code generation abilities, providing promising opportunities for automation. In this paper, we propose iPanda, the first framework that leverages LLMs to automate protocol conformance testing. Given a protocol specification document and its implementation, iPanda first employs a keyword-based method to automatically generate comprehensive test cases. Then, it utilizes retrieval-augmented generation and customized CoT strategy to effectively interpret the implementation and produce executable test programs. To further enhance programs'…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
