Semi-Automated Protocol Disambiguation and Code Generation
Not on the map. Why?
Abstract (arXiv)
For decades, Internet protocols have been specified using natural language. Given the ambiguity inherent in such text, it is not surprising that protocol implementations have long exhibited bugs. In this paper, we apply natural language processing (NLP) to effect semi-automated generation of protocol implementations from specification text. Our system, SAGE, can uncover ambiguous or under-specified sentences in specifications; once these are clarified by the spec author, SAGE can generate protocol code automatically. Using SAGE, we discover 5 instances of ambiguity and 6 instances of under-specification in the ICMP RFC; after clarification, SAGE is able to automatically generate code that interoperates perfectly with Linux implementations. We show that SAGE generalizes to BFD, IGMP, and NTP. We also find that SAGE supports many of the conceptual components found in key protocols, suggesting that, with some additional machinery, SAGE may be able to generalize to TCP and BGP.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). First posted on arXiv 9 Oct 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 0; 2025: 4; 2026: 1.
9 papers.
- 2022Automated Attack Synthesis by Extracting Finite State Machines from Protocol Specification Documentscited by 8
- 2023Adapting Foundation Models for Information Synthesis of Wireless Communication Specificationscited by 7
- 2023Hermes: Unlocking Security Analysis of Cellular Network Protocols by Synthesizing Finite State Machines from Natural Language Specificationscited by 4
- 2023Toward Reproducing Network Research Results Using Large Language Modelscited by 3
- 2025Synthesizing Precise Protocol Specs from Natural Language for Effective Test Generationcited by 2
- 2025MCP2OSC: Parametric Control by Natural Languagecited by 0
- 2025RFSeek and Ye Shall Findcited by 0
- 2025Automated Network Protocol Testing with LLM Agentscited by 0
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoningcited by 0
- 2026Detecting Inconsistencies in Model Specifications with LLM-as-Verifier Reasoning1 Oct 2026
- 2025Synthesizing Precise Protocol Specs from Natural Language for Effective Test Generation22 Nov 2025
- 2025Automated Network Protocol Testing with LLM Agents15 Oct 2025
- 2025RFSeek and Ye Shall Find12 Sep 2025
- 2025MCP2OSC: Parametric Control by Natural Language14 Aug 2025
- 2023Hermes: Unlocking Security Analysis of Cellular Network Protocols by Synthesizing Finite State Machines from Natural Language Specifications6 Oct 2023
- 2023Toward Reproducing Network Research Results Using Large Language Models9 Sep 2023
- 2023Adapting Foundation Models for Information Synthesis of Wireless Communication Specifications8 Aug 2023
- 2022Automated Attack Synthesis by Extracting Finite State Machines from Protocol Specification Documents18 Feb 2022