Logical Synchrony Networks: A formal model for deterministic distribution
Logan Kenwright, Partha Roop, Nathan Allen, Sanjay Lall, Calin Cascaval, Tammo Spalink, Martin Izzard
TL;DR
This work introduces Logical Synchrony Networks (LSN), a deterministic MoC that decouples process execution from synchronization by enforcing invariant logical delays on edges. It demonstrates that classic Kahn Process Networks (KPN) are instances of LSN and presents two bounded, realizable realizations—Finite FIFO Platforms (FFP/LSFP) and Google's bittide—that support decoupled, pipelined execution while preserving determinism. LSFP provides a bounded-buffer, blocking-based realization, whereas bittide employs a clock-control system with elastic buffers to achieve higher throughput and more uniform latency. Across analytical mappings and comparative simulations, bittide shows superior average throughput and stable latency, suggesting two viable paths for scalable, deterministic distributed computation. Collectively, the work establishes a formal framework for deterministic distributed systems with bounded resources and guides practical design choices between hardware-assisted clock control and blocking buffer approaches.
Abstract
Kahn Process Networks (KPNs) are a deterministic Model of Computation (MoC) for distributed systems. KPNs supports non-blocking writes and blocking reads, with the consequent assumption of unbounded buffers between processes. Variants such as Finite FIFO Platforms (FFP) have been developed, which enforce boundedness. One issue with existing models is that they mix process synchronisation with process execution. In this paper we address how these two facets may be decoupled. This paper explores a recent alternative called bittide, which decouples the execution of a process from the control needed for process synchronisation, and thus preserves determinism and boundedness while ensuring pipelined execution for better throughput. Our intuition is that such an approach could leverage not only determinism and buffer boundedness but may potentially offer better overall throughput. To understand the behavior of these systems we define a formal model -- a deterministic MoC called Logical Synchrony Networks (LSNs). LSNs describes a network of processes modelled as a graph, with edges representing invariant logical delays between a producer process and the corresponding consumer process. We show that this abstraction is satisfied by KPNs. Subsequently, we show that both FFPs and bittide faithfully implement this abstraction. Thus, we show for the first time that FFPs and bittide offer two alternative ways of implementing deterministic distributed systems with the latter being more performant.
