A grammar-based methodology for protocol specification and implementation

  • Authors:
  • David P. Anderson;Lawrence H. Landweber

  • Affiliations:
  • Computer Sciences Department, University of Wisconsin Madison, Madison, Wisconsin;Computer Sciences Department, University of Wisconsin Madison, Madison, Wisconsin

  • Venue:
  • SIGCOMM '85 Proceedings of the ninth symposium on Data communications
  • Year:
  • 1985

Quantified Score

Hi-index 0.00

Visualization

Abstract

A new methodology for specifying and implementing communication protocols is presented. This methodology is based on a formalism called “Real-Time Asynchronous Grammars” (RTAG), which uses a syntax similar to that of attribute grammars to specify allowable message sequences. In addition RTAG provides mechanisms for specifying data-dependent protocol activities, real-time constraints, and concurrent activities within a protocol entity. RTAG encourages a top-down approach to protocol design that can be of significant benefit in expressing and reasoning about highly complex protocols. As an example, an RTAG specification is given for part of the Class 4 ISO Transport Protocol (TP-4).Because RTAG allows protocols to be specified at a highly detailed level, major parts of an implementation can be automatically generated from a specification. An RTAG parser can be written which, when combined with an RTAG specification of a protocol and a set of interface and utility routines, constitutes an implementation of the protocol. To demonstrate the viability of RTAG for implementation generation, an RTAG parser has been integrated into the kernel of the 4.2 BSD UNIX operating system, and has been used in conjunction with the RTAG TP-4 specification to obtain an RTAG-based TP-4 implementation in the DoD Internet domain.