Large Language Models for Validating Network Protocol Parsers

Network protocol parsers are essential for enabling correct and secure communication between devices. Bugs in these parsers can introduce critical vulnerabilities, including memory corruption, information leakage, and denial-of-service attacks. An intuitive way to assess parser correctness is to compare the implementation with its official protocol standard. However, this comparison is challenging because protocol standards are typically written in natural language, whereas implementations are in source code. Existing methods like model checking, fuzzing, and differential testing have been used to find parsing bugs, but they either require significant manual effort or ignore the protocol standards, limiting their ability to detect semantic violations. To enable more automated validation of parser implementations against protocol standards, we propose Parval, a multi-agent framework built on large language models (LLMs). Parval leverages the capabilities of LLMs to understand both natural language and code. It transforms both protocol standards and their implementations into a unified intermediate representation, referred to as format specifications, and performs a differential comparison to uncover inconsis-tencies. We evaluate Parval on the Bidirectional Forwarding Detection (BFD) protocol. Our experiments demonstrate that ParValsuccessfully identifies inconsistencies between the implementation and its RFC standard, achieving a low false positive rate of 5.6%. Parval uncovers seven unique bugs, including five previously unknown issues.

Authors

Institutions

Publication Details

Published
2025-05-15
DOI
https://doi.org/10.1109/spw67851.2025.00009
Citations
1
Primary Topic
Network Packet Processing and Optimization
Type
article
Field-Weighted Citation Impact
2.27

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Large Language Models for Validating Network Protocol Parsers

Danning Xie, Xiangyu Zhang, Mingwei Zheng
1 citations
Network Packet Processing and Optimization
2.27
article

Large Language Models for Validating Network Protocol Parsers

Danning Xie, Xiangyu Zhang, Mingwei Zheng
article en
1 citations

Abstract

Network protocol parsers are essential for enabling correct and secure communication between devices. Bugs in these parsers can introduce critical vulnerabilities, including memory corruption, information leakage, and denial-of-service attacks. An intuitive way to assess parser correctness is to compare the implementation with its official protocol standard. However, this comparison is challenging because protocol standards are typically written in natural language, whereas implementations are in source code. Existing methods like model checking, fuzzing, and differential testing have been used to find parsing bugs, but they either require significant manual effort or ignore the protocol standards, limiting their ability to detect semantic violations. To enable more automated validation of parser implementations against protocol standards, we propose Parval, a multi-agent framework built on large language models (LLMs). Parval leverages the capabilities of LLMs to understand both natural language and code. It transforms both protocol standards and their implementations into a unified intermediate representation, referred to as format specifications, and performs a differential comparison to uncover inconsis-tencies. We evaluate Parval on the Bidirectional Forwarding Detection (BFD) protocol. Our experiments demonstrate that ParValsuccessfully identifies inconsistencies between the implementation and its RFC standard, achieving a low false positive rate of 5.6%. Parval uncovers seven unique bugs, including five previously unknown issues.

Purdue University West Lafayette (US)
National Science Foundation
Openalex Percentile: Top 14%
Network Packet Processing and Optimization
2.27
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Large Language Models for Validating Network Protocol Parsers — Danning Xie, Xiangyu Zhang, et al. · (2025) | TGRS Research Map | TGRS