Rigorous specification and conformance testing techniques for network protocols, as applied to TCP, UDP, and sockets

Author:

Bishop Steve1,Fairbairn Matthew1,Norrish Michael2,Sewell Peter1,Smith Michael1,Wansbrough Keith1

Affiliation:

1. University of Cambridge Computer Laboratory

2. NICTA, Canberra

Abstract

Network protocols are hard to implement correctly. Despite the existence of RFCs and other standards, implementations often have subtle differences and bugs. One reason for this is that the specifications are typically informal, and hence inevitably contain ambiguities. Conformance testing against such specifications is challenging.In this paper we present a practical technique for rigorous protocol specification that supports specification-based testing. We have applied it to TCP, UDP, and the Sockets API, developing a detailed 'post-hoc' specification that accurately reflects the behaviour of several existing implementations (FreeBSD 4.6, Linux 2.4.20-8, and Windows XP SP1). The development process uncovered a number of differences between and infelicities in these implementations.Our experience shows for the first time that rigorous specification is feasible for protocols as complex as TCP@. We argue that the technique is also applicable 'pre-hoc', in the design phase of new protocols. We discuss how such a design-for-test approach should influence protocol development, leading to protocol specifications that are both unambiguous and clear, and to high-quality implementations that can be tested directly against those specifications.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Networks and Communications,Software

Cited by 20 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. 5G-Enabled Internet of Musical Things Architectures for Remote Immersive Musical Practices;IEEE Open Journal of the Communications Society;2024

2. Model-Agnostic and Efficient Exploration of Numerical Congestion Control State Space of Real-World TCP Implementations;IEEE/ACM Transactions on Networking;2021-10

3. Layered Formal Verification of a TCP Stack;2021 IEEE Secure Development Conference (SecDev);2021-10

4. Toward formally verifying congestion control behavior;Proceedings of the 2021 ACM SIGCOMM 2021 Conference;2021-08-09

5. Semi-automated protocol disambiguation and code generation;Proceedings of the 2021 ACM SIGCOMM 2021 Conference;2021-08-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3