Semi-automated protocol disambiguation and code generation
Jane Yen, Tamás Lévai, Qinyuan Ye, Xiang Ren, Ramesh Govindan, Barath Raghavan
摘要
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.
问问这篇 Paper
智能体会读完全文。
Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。
引用它的顶会 Paper13
- Automated Attack Synthesis by Extracting Finite State Machines from Protocol Specification DocumentsMaria Leonor Pacheco, Max von Hippel, Ben Weintraub, Dan Goldwasser 等S&P 2022 · 被引用 58 次
- Hermes: Unlocking Security Analysis of Cellular Network Protocols by Synthesizing Finite State Machines from Natural Language SpecificationsAbdullah Al Ishtiaq, Sarkar Snigdha Sarathi Das, Syed Md. Mukit Rashid, Ali Ranjbar 等USENIX Security 2024 · 被引用 28 次
- iSyn: Semi-automated Smart Contract Synthesis from Legal Financial AgreementsPengcheng Fang, Zhenhua Zou, Xusheng Xiao, Zhuotao LiuISSTA 2023 · 被引用 11 次
- DAInfer: Inferring API Aliasing Specifications from Library Documentation via Neurosymbolic OptimizationChengpeng Wang, Jipeng Zhang, Rongxin Wu, Charles ZhangFSE 2024 · 被引用 5 次
- 3DGen: AI-Assisted Generation of Provably Correct Binary Format ParsersSarah Fakhoury, Markus Kuppe, Shuvendu K. Lahiri, Tahina Ramananandro 等ICSE 2025 · 被引用 2 次
它引用的顶会 Paper3
- ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 被引用 7,418 次
- Switch Code Generation Using Program SynthesisXiangyu Gao, Taegyun Kim, Michael D. Wong, Divya Raghunathan 等SIGCOMM 2020 · 被引用 51 次
- Learning from Explanations with Neural Execution TreeZiqi Wang, Yujia Qin, Wenxuan Zhou, Jun Yan 等ICLR 2020 · 被引用 41 次
相关 Paper
- LLMs Unleashed: Generating Protocol Code from RFC SpecificationsJunfeng Long, Jinshu Su, Biao HanAAAI 2026
- Generating Precise Format Specification for Network Protocols Through Adversarial LLM InteractionsHengdi Ye, Bing Shui, Jielun Wu, Yufan Zhou 等USENIX Security 2026
- Spec2Code: Mapping Protocol Specification to Function-Level Code ImplementationYuekun Wang, Lili Quan, Xiaofei Xie, Junjie Wang 等ASE 2025
- Enhancing REST API Testing with NLP TechniquesMyeongsoo Kim, Davide Corradini, Saurabh Sinha, Alessandro Orso 等ISSTA 2023 · 被引用 34 次
- ProtocolGuard: Detecting Protocol Non-compliance Bugs via LLM-guided Static Analysis and Dynamic VerificationXiangpu Song, Longjia Pei, Jianliang Wu, Yingpei Zeng 等NDSS 2026 · 被引用 3 次
