Specifying and Verifying a Real-World Packet Error-Correction System

被引:0
|
作者
Cohen, Joshua M. [1 ]
Appel, Andrew W. [1 ]
机构
[1] Princeton Univ, Princeton, NJ 08544 USA
关键词
METRICS;
D O I
10.1007/978-3-031-66064-1_4
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Automated and semi-automated formal methods have been widely employed to verify properties of network models and per-packet network functions, which operate on single packets in the middle of a network (firewall, NAT, etc.). But these methods do not extend to end-to-end network functions, those whose specification relates a stream of packets sent at one endpoint of the network with a stream received at the other end. Among other complications, such specifications must account for the network's behavior, including packet reordering, duplication, delay, and loss. We develop a methodology for formally specifying and verifying such code, demonstrating our techniques on a real-world packet error-correction system that encounters all of these challenges and whose specification had been highly unclear. We prove a close model of this system correct in the Coq proof assistant; along the way, we formalize more general networking constructs including IP/UDP packets, a metric for packet reordering, and sequence number comparison. Finally, through our specification, we develop an improved version of the error-correction system, giving a more predictable, provably correct program that recovers more packets. We show that formal specification and verification can be powerful tools to clarify assumptions, improve code quality, and find and fix bugs in complex, real-world systems.
引用
收藏
页码:44 / 63
页数:20
相关论文
共 50 条
  • [1] Cryptology and Error Correction An Algebraic Introduction and Real-World Applications
    Teschl, G.
    MONATSHEFTE FUR MATHEMATIK, 2021, 196 (03): : 643 - 643
  • [3] ERROR-CORRECTION SYSTEM FOR MACHINE-TOOLS
    BURDEKIN, M
    COWLEY, A
    FIELDS, K
    DIXON, R
    MACHINERY AND PRODUCTION ENGINEERING, 1976, 128 (3306): : 377 - 378
  • [4] MULTICHANNEL ADAPTIVE FORWARD ERROR-CORRECTION SYSTEM
    KOUSA, MA
    TURNER, LF
    IEE PROCEEDINGS-I COMMUNICATIONS SPEECH AND VISION, 1993, 140 (05): : 357 - 364
  • [5] Real-time error-correction method for photoelectrical theodolite
    Changchun Institute of Optics, Fine Mechanics and Physics, Chinese Academy of Sciences, Changchun 130022, China
    不详
    Guangxue Jingmi Gongcheng, 2007, 6 (846-851):
  • [6] Optimizing Joint Erasure- and Error-Correction Coding for Wireless Packet Transmissions
    Berger, Christian R.
    Zhou, Shengli
    Wen, Yonggang
    Willett, Peter
    Pattipati, Krishna
    IEEE TRANSACTIONS ON WIRELESS COMMUNICATIONS, 2008, 7 (11) : 4586 - 4595
  • [7] The Error-Correction of AAL2 in ATM System
    Tan, Mingxin
    Wei, Yanwei
    Chen, Wei
    Tang, Qi
    Liu, Cheng
    2012 INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS, NETWORKING AND MOBILE COMPUTING (WICOM), 2012,
  • [8] Error-correction Device Increases System Reliability.
    Streit, Dieter
    Elektronik Munchen, 1980, 29 (26): : 57 - 60
  • [10] Error-correction detection and response generation in a spoken dialogue system
    Bulyko, I
    Kirchhoff, K
    Ostendorf, M
    Goldberg, J
    SPEECH COMMUNICATION, 2005, 45 (03) : 271 - 288