FTMPST: Fault-Tolerant Multiparty Session Types
Kirstin Peters, Uwe Nestmann, Christoph Wagner
TL;DR
This work extends multiparty session types (MPST) to cover fault-tolerant distributed algorithms by integrating failure-pattern semantics that model unreliable communication and crashes. It develops a fault-tolerant type system with global/local types, projections, and labels, and proves subject reduction and progress under carefully chosen failure-pattern conditions. The rotating coordinator algorithm serves as a concrete case study, illustrating how masking fault tolerance can be verified within this extended MPST framework and how termination, agreement, and validity can be achieved under standard fault-model assumptions. The approach provides a path toward formal verification of distributed protocols in fault-prone environments, with potential extensions to recursive and delegated fault-tolerant interactions.
Abstract
Multiparty session types are designed to abstractly capture the structure of communication protocols and verify behavioural properties. One important such property is progress, i.e., the absence of deadlock. Distributed algorithms often resemble multiparty communication protocols. But proving their properties, in particular termination that is closely related to progress, can be elaborate. Since distributed algorithms are often designed to cope with faults, a first step towards using session types to verify distributed algorithms is to integrate fault-tolerance. We extend multiparty session types to cope with system failures such as unreliable communication and process crashes. Moreover, we augment the semantics of processes by failure patterns that can be used to represent system requirements (as, e.g., failure detectors). To illustrate our approach we analyse a variant of the well-known rotating coordinator algorithm by Chandra and Toueg.
