Modeling Buffer Occupancy in bittide Systems
Sanjay Lall, Tammo Spalink
TL;DR
This paper addresses steady-state buffer occupancy in bittide-based logically synchronous systems.It develops a fluid abstract-frame model and proves convergence of buffer occupancy to a steady state, deriving an explicit expression $\beta^{ss} = \lambda + Y L S^\mathsf{T} H v + k^{-1} B^\mathsf{T} Q^\# (H - I) v$ that ties occupancy to network topology, latencies, and gains.The results express $\beta^{ss}$ in terms of graph-related operators $Q$, $S$, $B$, the latency matrix $L$, and the controller gain $k$, enabling practical buffer sizing and latency minimization for large-scale distributed systems.Limitations arise from the fluid approximation and neglect of quantization and discrete-time effects; future work includes incorporating sampling, quantization, dynamic topology, and fault scenarios.
Abstract
The bittide mechanism enables logically synchronous computation across distributed systems by leveraging the continuous frame transmission inherent to wired networks such as Ethernet. Instead of relying on a global clock, bittide uses a decentralized control system to adjust local clock frequencies, ensuring all nodes operate with a consistent notion of time by utilizing elastic buffers at each node to absorb frequency variations. This paper presents an analysis of the steady-state occupancy of these elastic buffers, a critical factor influencing system latency. Using a fluid model of the bittide system, we prove that buffer occupancy converges and derive an explicit formula for the steady-state value in terms of system parameters, including network topology, physical latencies, and controller gains. This analysis provides valuable insights for optimizing buffer sizes and minimizing latency in bittide-based distributed systems.
