Timing UDP: Mechanized Semantics for Sockets, Threads, and Failures

  • Authors:
  • Keith Wansbrough;Michael Norrish;Peter Sewell;Andrei Serjantov

  • Affiliations:
  • -;-;-;-

  • Venue:
  • ESOP '02 Proceedings of the 11th European Symposium on Programming Languages and Systems
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper studies the semantics of failure in distributed programming. We present a semantic model for distributed programs that use the standard sockets interface; it covers message loss, host failure and temporary disconnection and supports reasoning about distributed infrastructure. We consider interaction via the UDP and ICMP protocols. To do this, it has been necessary to: 驴 construct an experimentally-validated post-hoc specification of the UDP/ICMP sockets interface; 驴 develop a timed operational semantics with threads, as such programs are typically multithreaded and depend on timeouts; 驴 model the behaviour of partial systems, making explicit the interactions that the infrastructure offers to applications; 驴 integrate the above with semantics for an executable fragment of a programming language (OCaml) with OS library primitives; and 驴 use tool support to manage complexity, mechanizing the model with the HOL theorem prover. We illustrate the whole with a module providing naive heartbeat failure detection.