arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.04801cs.NI
收藏

半自动协议消歧和代码生成

Semi-Automated Protocol Disambiguation and Code Generation

Jane Yen, Tamás Lévai, Qinyuan Ye, Xiang Ren, Ramesh Govindan, Barath Raghavan

摘要:

几十年来,互联网协议一直使用自然语言来指定。考虑到这种文本中固有的模糊性,协议实现长期存在错误也就不足为奇了。在本文中,我们应用自然语言处理(NLP)的效果半自动生成的协议实现规范文本。我们的系统,SAGE,可以发现在规范中的歧义或不明确的句子,一旦这些是由规范作者澄清,SAGE可以自动生成协议代码。使用SAGE,我们发现了5个模糊的实例和6个实例下规范的RFC中,澄清后,SAGE能够自动生成代码,完美地与Linux实现互操作。我们表明,SAGE推广到BFD,IGMP和NTP。我们还发现,SAGE支持许多关键协议中发现的概念组件,这表明,与一些额外的机器,SAGE可能能够推广到TCP和BGP。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑