一种提高网络应用协议实现鲁棒性的方法
A Language-Based Approach for Improving the Robustness of Network Application Protocol Implementations
摘要:
网络的安全和稳健运行依赖于网络应用程序的无缺陷实现。然而,随着网络协议变得越来越复杂,手写网络消息处理代码变得越来越容易出错。在本文中,我们提出了一个特定领域的语言,Zebu,用于描述协议的消息格式和相关的处理约束。根据Zebu规范,编译器自动生成应用程序用来解析网络消息的存根。Zebu很容易使用,因为它建立在RFC中用来描述协议语法的符号上。Zebu也是高效的,因为内存使用量是根据应用程序的需要定制的,并且可以指定消息片段以按需处理。最后,基于Zebu的应用程序是健壮的,因为Zebu编译器会自动检查规范的一致性,并生成包括消息结构验证的解析存根。在SIP和RTSP的上下文中使用突变分析,我们表明,Zebu显着提高应用程序的鲁棒性。
英文摘要:
The secure and robust functioning of a network relies on the defect-free implementation of network applications. As network protocols have become increasingly complex, however, hand-writing network message processing code has become increasingly error-prone. In this paper, we present a domain-specific language, Zebu, for describing protocol message formats and related processing constraints. From a Zebu specification, a compiler automatically generates stubs to be used by an application to parse network messages. Zebu is easy to use, as it builds on notations used in RFCs to describe protocol grammars. Zebu is also efficient, as the memory usage is tailored to application needs and message fragments can be specified to be processed on demand. Finally, Zebu-based applications are robust, as the Zebu compiler automatically checks specification consistency and generates parsing stubs that include validation of the message structure. Using a mutation analysis in the context of SIP and RTSP, we show that Zebu significantly improves application robustness.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。