Cultural advice

The Australian National University acknowledges, celebrates and pays our respects to the Ngunnawal and Ngambri people of the Canberra region and to all First Nations Australians on whose traditional lands we meet and work, and whose cultures are among the oldest continuing cultures in human history.

Aboriginal and Torres Strait Islander peoples are advised that ANU Library collections may include images, names, voices, and other representations of deceased persons.

Material in the collection may contain terms, language or views that reflect the period in which the item was created and may be considered inappropriate today.

Engineering with logic: Rigorous test-oracle specification and validation for TCP/IP and the Sockets API

dc.contributor.authorBishop, Steve
dc.contributor.authorFairbairn, Matthew
dc.contributor.authorMehnert, Hannes
dc.contributor.authorNorrish, Michael
dc.contributor.authorRidge, Tom
dc.contributor.authorSewell, Peter
dc.contributor.authorSmith, Michael
dc.contributor.authorWansbrough, Keith
dc.date.accessioned2023-11-30T01:21:56Z
dc.date.issued2018
dc.date.updated2022-08-28T08:16:27Z
dc.description.abstractConventional computer engineering relies on test-and-debug development processes, with the behavior of common interfaces described (at best) with prose specification documents. But prose specifications cannot be used in test-and-debug development in any automated way, and prose is a poor medium for expressing complex (and loose) specifications. The TCP/IP protocols and Sockets API are a good example of this: they play a vital role in modern communication and computation, and interoperability between implementations is essential. But what exactly they are is surprisingly obscure: their original development focused on “rough consensus and running code,” augmented by prose RFC specifications that do not precisely define what it means for an implementation to be correct. Ultimately, the actual standard is the de facto one of the common implementations, including, for example, the 15 000 to 20 000 lines of the BSD implementation—optimized and multithreaded C code, time dependent, with asynchronous event handlers, intertwined with the operating system, and security critical. This article reports on work done in the Netsem project to develop lightweight mathematically rigorous techniques that can be applied to such systems: to specify their behavior precisely (but loosely enough to permit the required implementation variation) and to test whether these specifications and the implementations correspond with specifications that are executable as test oracles. We developed post hoc specifications of TCP, UDP, and the Sockets API, both of the service that they provide to applications (in terms of TCP bidirectional stream connections) and of the internal operation of the protocol (in terms of TCP segments and UDP datagrams), together with a testable abstraction function relating the two. These specifications are rigorous, detailed, readable, with broad coverage, and rather accurate. Working within a general-purpose proof assistant (HOL4), we developed language idioms (within higher-order logic) in which to write the specifications: operational semantics with nondeterminism, time, system calls, monadic relational programming, and so forth. We followed an experimental semantics approach, validating the specifications against several thousand traces captured from three implementations (FreeBSD, Linux, and WinXP). Many differences between these were identified, as were a number of bugs. Validation was done using a special-purpose symbolic model checker programmed above HOL4. Having demonstrated that our logic-based engineering techniques suffice for handling real-world protocols, we argue that similar techniques could be applied to future critical software infrastructure at design time, leading to cleaner designs and (via specification-based testing) more robust and predictable implementations. In cases where specification looseness can be controlled, this should be possible with lightweight techniques, without the need for a general-purpose proof assistant, at relatively little cost.en_AU
dc.format.mimetypeapplication/pdfen_AU
dc.identifier.issn0004-5411en_AU
dc.identifier.urihttp://hdl.handle.net/1885/307554
dc.language.isoen_AUen_AU
dc.publisherAssociation for Computing Machinary, Inc.en_AU
dc.rights© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACMen_AU
dc.sourceJournal of the ACMen_AU
dc.subjectRigorous engineering,en_AU
dc.subjectspecificationen_AU
dc.subjectnetwork protocolsen_AU
dc.titleEngineering with logic: Rigorous test-oracle specification and validation for TCP/IP and the Sockets APIen_AU
dc.typeJournal articleen_AU
local.bibliographicCitation.issue1en_AU
local.bibliographicCitation.lastpage77en_AU
local.bibliographicCitation.startpage1en_AU
local.contributor.affiliationBishop, Steve, University of Cambridgeen_AU
local.contributor.affiliationFairbairn, Matthew, University of Cambridgeen_AU
local.contributor.affiliationMehnert, Hannes, Center for the Cultivation of Technologyen_AU
local.contributor.affiliationNorrish, Michael, College of Engineering and Computer Science, ANUen_AU
local.contributor.affiliationRidge, Tom, University of Leicesteren_AU
local.contributor.affiliationSewell, Peter, University of Cambridgeen_AU
local.contributor.affiliationSmith, Michael, University of Cambridgeen_AU
local.contributor.affiliationWansbrough, Keith, University of Cambridgeen_AU
local.contributor.affiliationRidge, Tom, University of Cambridgeen_AU
local.contributor.authoruidNorrish, Michael, u4087502en_AU
local.description.embargo2099-12-31
local.description.notesImported from ARIESen_AU
local.identifier.absfor461303 - Computational logic and formal languagesen_AU
local.identifier.absfor460609 - Networking and communicationsen_AU
local.identifier.ariespublicationu3102795xPUB161en_AU
local.identifier.citationvolume66en_AU
local.identifier.doi10.1145/3243650en_AU
local.identifier.scopusID2-s2.0-85058808144
local.identifier.thomsonIDWOS:000457117400001
local.publisher.urlhttps://dl.acm.org/en_AU
local.type.statusPublished Versionen_AU

Downloads

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Engineering with logic.pdf
Size:
3.84 MB
Format:
Adobe Portable Document Format
Description: