Manuscript Offprint
arXiv:2608.24622Scalable datacenter replication with mostly-synchronous consensus on hardware
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Consistent replication of data among distributed processes – a task involving the well-known consensus problem – is notoriously expensive and hard to scale, affecting especially datacenter services with stringent performance requirements. To mitigate this problem, we introduce scalable replication in-hardware (scarHW): a network card design that improves throughput and latency of consistent replication even when increasing the number of replicas, whereas current systems operate at a small scale or with relaxed consistency guarantees. At the heart of scarHW is our novel POPUC consensus algorithm, implemented in an FPGA smartNIC to take full advantage of the “mostly synchronous” behavior of programmable network devices in the datacenter. Unlike widely-adopted “mostly asynchronous” coordination protocols such as Paxos or leaderless alternatives, POPUC implements a generalized variant of consensus dubbed collaborative consensus which allows for several simultaneous decisions, achieving great scalability without compromising availability. POPUC preserves safety guarantees in the presence of process crash-stop and message send/receive omission failures (capturing incidental asynchrony) and has been formally specified and verified in TLA . Our FPGA prototype improves throughput and latency of widely-used services Redis and Zookeeper by up to two orders of magnitude compared to the state of the art. scarHW-based services also achieve zero downtime upon failure of a minority of replicas, offering a highly-robust, wire-speed, scalable replication system.
1 Introduction
State machine replication (SMR) is a mechanism at the heart of countless highly-available services which need to ensure a consistent state across nodes. These services include heavily-demanded online applications running in datacenters, such as for coordination [30], event streaming [37], data storage [71, 82], key-value storage [61, 74], memory disaggregation [28, 41], and resilient large language model training [46]. Because they form the backbone of critical infrastructure, SMR implementations need to be robust to
Philipp Berdesinski
turbalance
Heidelberg, Germany
Patrick Eugster
Università della Svizzera Italiana (USI)
Lugano, Switzerland
failures. This leads to the long-standing challenge of achieving fault-tolerant coordination among distributed processes, i.e., achieving consensus, efficiently.
Constraints of asynchronous protocols. Current coordination services still predominantly assume the “mostly asynchronous” partial synchrony model [22] in which, prior to a (unknown) global stabilization time (GST), computing and communication times are unbounded due to arbitrary resource contention on end nodes and in the network. This assumption introduces several costs in protocol design, which the community has embraced as the inevitable price to pay for fault tolerance. The vast majority of state-of-the-art SMR services thus rely on variants of popular (mostly) asynchronous protocols Paxos [38] and Raft [51]. Recent works propose optimizations using modern datacenter technologies such as programmable switches [19, 42], smart network interface controllers (smartNICs) with field programmable gate arrays (FPGAs) [7, 13, 31, 33], remote direct memory access (RDMA) [3, 21, 26], and OS-bypass frameworks [34, 83]. While boosting performance, most such solutions inherit the fundamental limitations of the underlying system model and algorithms. Crucially, by funneling replication requests through a leader process, they induce three major constraints:
C1. Single-process bottleneck: the leader processes client requests, forwards them to all replicas and receives acknowledgments from a majority of them. Resources available at the leader significantly constrain the performance of the whole cluster [5, 6, 21].
C2. Low scalability and fault tolerance: The leader bottleneck incurs particularly rapid performance degradation as the number of replicas increases. System architects mitigate this issue by restricting replication to few nodes [11, 73]. This, however, strongly limits the number of tolerated failures given that a correct majority quorum is needed for liveness.
C3. Service downtime: During leader election or cluster reconfiguration the system cannot process requests.
Multi-leader and leaderless SMR. Other classical consensus protocols on top of mostly asynchronous models, e.g., rotating coordinator [15], may rely on leaders less (explicitly), but exhibit other constraints [49, 76]. More popular solutions to circumvent C1 and C2 include multi-leader versions of Paxos which use small replication groups/shards with consensus mechanisms on top to coordinate group management [6, 40, 72], and others attempts at decentralization [35, 45, 48]. Alas, such approaches pay the price of loosening consistency guarantees (e.g., sharding implies partial instead of total order), or degrading C3 and response latency in the face of contention [48] or stragglers [35, 78].
Mostly synchronous datacenters. We instead propose to tackle C1-C3 more fundamentally by building a solution ground-up on top of a different system model. We start from the observation that programmable datacenter networks can provide stable, low time bounds [57, 80], further supported by the rise of ultra-low latency network protocols claiming bounded datacenter communication latency [34, 55]. Moreover, now widely-available smartNICs can significantly strengthen synchrony in practice through fast, uninterrupted packet processing at the endhost [65]. However, though rare, synchrony violations have to be taken into account, as a single violation can otherwise lead to inconsistencies.
ScarHW: collaborative consensus on FPGA. In light of these insights, we propose the scalable replication in-hardware (scarHW): a network card design providing a robust and efficient SMR service offloaded to an FPGA in order to leverage the predictability and speed of datacenter networks. At the heart of scarHW is the popular uniform consensus (POPUC): a novel consensus algorithm which exploits “mostly synchronous” systems for performance while ensuring fault tolerance in the presence of process crash-stop as well as message send/receive omission failures to capture any incidental late or lost messages. By relying on a correct majority quorum, POPUC has the same message complexity, safety guarantees, and actual fault tolerance as Paxos (including when a majority fails, cf. Tab. 1), but has crucial advantages. Most importantly, POPUC is leaderless, solving a variant of consensus which we call collaborative consensus (co-consensus), that allows several simultaneous decisions from multiple propositions. This approach allows client requests to be issued across replicas without impacting latency, unlike classic batching strategies (which scarHW can also use). By harnessing load distribution and hardware acceleration, scarHW-based services thus allow the increase of fault tolerance by adding more replicas while also maintaining or even improving throughput and latency of consistent replication, overcoming C1 and C2. However, unlike asynchronous leaderless protocols, scarHW does not compromise latency, does not require partitioning/sharding (which would make it even more scalable) and achieves negligible service downtime up to failures, eliminating C3. In short, by leveraging hardware support with our system/failure model, scarHW reaps all the 1. pros of synchrony without suffering any 2. cons often attributed with it: 1. inherently leaderless coordination without 2. rigid lock-step execution (early termination in absence of failures) or conservatively high latency bounds (stable maximum interaction latencies below average of asynchronous approaches).
Our prototype – implemented on an AMD/Xilinx Alveo U50 [9] smartNIC – can saturate a 100Gbps network with worst-case 5.4μs response latency. With more than 3 replicas, scarHW delivers up to 2.5× higher replication throughput than Raft-based Waverunner [7], the fastest (to our knowledge) hardware SMR service. The full potential of scarHW emerges when integrated into microservices: when scaling up to 59 nodes, scarHW improves Redis by up to two orders of magnitude in both throughput and latency compared to NOPaxos [42].
- proposes the design of scarHW: a novel, flexible network card design which harnesses the power of distribution and hardware acceleration ( 3);
• specifies POPUC: scarHW’s novel leaderless protocol solving co-consensus, whose correctness has been formally verified via TLA model checking ( 4);
• presents the implementation of our prototype on the AMD/Xilinx Alveo U50 [9] FPGA smartNIC ( 6);
• empirically evaluates scarHW in terms of raw performance, impact for real-world applications, and fault tolerance ( 7). We show that scarHW-based services are not affected by traditional bottlenecks (C1, C2, C3), achieving unprecedented performance.
§ 8 presents related work. § 9 draws conclusions. App. A details POPUC and algorithms for SMR built on top of it, and argues for correctness.
2 System and Failure Model
2.1 Specification
We consider a message-passing distributed system with a set of processes, also called replicas. We consider mostly synchronous systems, assuming two bounds and for performance only, not correctness. bounds most interaction latency between any two processes , i.e., communication between processes together with end-to-end processing happens most of the time within . bounds clock drifts between two processes, which is easily achieved in practice and assumed by state-of-the-art datacenter coordination works, including for correctness, e.g. [26].
Table 1. scarHW vs state-of-the-art SMR approaches w.r.t.: consensus variant, system and failure models, model (and mechanisms in algorithms) handling disruptions, failure bound and guarantees. , .
| Approach | Consensus variant | Model | Model handling disruption | Quorum size | Guarantees | ||||
|---|---|---|---|---|---|---|---|---|---|
| System | Failure | Process fault | Delay | Message loss | size | Safety | Liveness | ||
| Standard SMR | Selective (1 decision) | Partially synchronous | Process crash-stop | Failure (quorums) | System (quorums) | System (quorums/resend) | (timely > GST) commun. processes | Always (blocking with ) | >GST |
| scarHW | Collaborative ( decisions) | Synchronous | Process crash-stop, omission | Failure (quorums) | Failure (drop cf. loss) | Failure (quorums) | timely communicating processes | Always (blocking with ) | rounds |
Processes can suffer from crash-stop failures, and omission failures defined below.
Omission failure: Processes fail to send or receive messages. Omission failures capture messages dropped (e.g., due to network faults) or with latency > (which are discarded).
A process is faulty if it commits a crash-stop failure or at least one omission failure, otherwise it is correct. We assume a majority quorum of correct processes exists such that and , where is the maximum numb/er of faulty processes. We use to denote the number of actually faulty processes. The majority quorum assumption is proven to be necessary to solve uniform consensus in synchronous systems with omission failures [53, 58]. When , our consensus protocol remains safe but not live (i.e., it may block), as detailed in § 4.
2.2 Paradigm shift to better model datacenters
Apart from a small number of algorithms explored more in theory [14, 18, 54, 56, 58, 68], distributed coordination algorithms developed over the past 20+ years largely focused on crash-stop failures without omissions (unless as part of Byzantine failures) in the partial synchrony model based on a conservative view: interactions between distributed nodes can be highly unreliable because endhost processing times can be unbounded due to resource contention, and networks can arbitrarily delay or drop packets. This leads to the common misbelief that assuming synchrony in the presence of crash-stop failures must be unsafe, since a single delayed packet can be misinterpreted as a failure and hamper consistency. Yet, solutions including omission failures in the failure model, like scarHW, can handle such synchrony violations (see Tab. 1 for comparison with the standard SMR model).
Such solutions could be deemed impractical as frequent packet delays or drops captured as failures could quickly degrade the availability of a cluster [14]. While this may be the case in some systems, recent advances seriously challenge this common assumption for datacenters [57, 64, 80]. Modern programmable datacenter hardware, e.g., FPGA smartNICs, namely not only allows for very fast access to the network (as exploited to achieve ultra-low tail latency in coordination [3, 7, 26, 31, 33]), but also make communication and computation times very deterministic. Several state-of-the-art datacenter coordination services recently enforce synchrony for a subset of a datacenter, claiming reliable upper bounds on latency achieved through isolated OS packet processing pipelines on commodity NICs and network redundancy to overcome packet losses [63, 65]. However, even if strongly reducing the probability of network failures being witnessed, these can not be fully ruled out.
We propose a fundamental model shift for datacenter applications, based on the intuition that failure models (rather than system models) should focus on rare cases like message losses and latency outliers. We use the synchronous system model to better represent interaction reliability among scarHWs with (in practice few) glitches captured as omission failures, rather than assuming asynchrony, pessimistically, as the norm, or then perfect synchrony. This allows scarHW to reap all the 1. pros of synchrony without suffering any 2. cons often attributed with it: 1. inherently leaderless coordination without 2. rigid lock-step execution or conservatively high latency bounds as substantiated in the following.
2.3 How practical is “mostly synchronous”?
We offload scarHW to FPGA smartNICs to fully leverage the predictability and speed of datacenter networks. To assert the synchrony assumptions of our model, we ran initial evaluations to quantify the reliability of modern network hardware. The microbenchmark consists in a simple ping-pong protocol between two nodes connected via a top-of-rack switch (see § 7.1 for hardware specification). We compute the one-way latency for every packet as half of the round-trip time (RTT). We ran our benchmark in a production datacenter of a major cloud provider for 40 consecutive days collecting measurements for a total of 115 billion packets. For scarHW, we sent packets at a constant throughput of 10KHz and measured the latency including the hardware packet processing pipeline. We also evaluate latency of two modern high-performance networking solutions: RDMA unreliable connection (UC)
Anonymized for double-blind submission.

Figure 1. Latency of different network stacks at the endhost.
and express data path (XDP) AF_XDP sockets through the same ping-pong test, but using a much smaller sample base of 10 million packets (advantaging them over scarHW). We add UDP as a baseline. Throughout the experiment, we periodically applied up to 100% network traffic and CPU load using iperf3 and stress-ng. We manually reserved high-priority queues on switches for the benchmark traffic and left best-effort queues for the other traffic to replicate the effect of low-latency communication protocols [25, 34, 55].
Fig. 1 shows that pushing logic to dedicated processing resources close to the wire leads to extremely stable latency of a few s while approaches involving software show spikes towards the tail. scarHW interactions register no outlier over 4.41 s and no packet drops, suggesting that upper time bounds can be confidently established with s margins. scarHW's maximum interaction latency measured is even below the minimum of the other approaches, including RDMA.
The use of synchrony as default in practice is further motivated by a wide range of available options for ultra-reliable network communication which can enable bounded-latency communication, allowing datacenter operators to navigate the tradeoff between network utilization and reliable traffic [65, 80]. Moreover, while reliable communication requires resource reservation in scarHW, deployment of targeted critical services in practice with current solutions includes comparable yet error-prone manual reservation of resources [73, 74], e.g., bandwidth or priority queues, to decrease the possibility of congestion for prime performance.
In the following we use high-priority queues reserved on switches (like for Fig. 1), to showcase how this simple mechanism can effectively support robust synchrony despite concurrent regular traffic. However, it is important to note that traffic prioritization is not required for safety. scarHW guarantees consistent replication despite any number of omission failures, including delays, packet drops, and network faults, allowing fine-tuning of upper time bounds to optimize performance without compromising safety. Although asynchronous models are more tolerant of short transient omission failures (which are rare in well-provisioned environments),

(a) scarHW vanilla

(b) scarHW pipelined
Figure 2. Architecture of scarHW variants. Hardware modules use advanced extensible interface (AXI) interconnects.
scarHW offers the distinct advantage of providing hardware-precise notifications of unexpected delays. This signaling can be leveraged for congestion control, rapid response to network partitions, or detecting a cluster stall when more than t failures occur (cf. § 5.1). Combining scarHW with further techniques like traffic engineering as in prior works [34, 63] could further improve performance.
3 Design
3.1 Architecture
Fig. 2 outlines the architecture of scarHW in two variants: vanilla (2a), containing one replication unit (green box), and pipelined (2b), aggregating multiple units. Every smartNIC running scarHW is a replica executing the same logic. The brain of the system is the consensus engine module which implements the POPUC algorithm (cf. Alg. 1). In short, the module takes arbitrary values from one or more applications as inputs, proposes them with a unique ID for the current consensus instance, and outputs consensus decisions. The consensus engine operates in synchronous rounds in which all replicas disseminate messages to each other. In a failure-free execution, all replicas propose values simultaneously and, after two rounds, output an ordered array of all proposed values as the consensus decision. This key feature of scarHW enables load distribution, which we will discuss in later sections. The engine keeps track of packets it receives in every round and flags a remote replica as faulty if its message is not received within the expected timeframe, i.e., it observes an omission failure. To avoid false positives, replicas can send empty heartbeat values in absence of pending proposals. Otherwise, replicas can choose to not send a heartbeat on purpose to scale up/down, or allowing re-configuration during “quiet” periods with few requests. In the presence of up to t failures, a decision can take between 2 and t rounds, and replicas can decide in different rounds. When a replica observes more than t failures, e.g., due to a network outage, the consensus engine self-declares itself faulty and quits execution.
To avoid costly retransmissions, which would compromise our algorithm’s performance, scarHW replicas communicate via UDP over Ethernet through the UDP/IP4 and MAC modules. The communication between the host and the consensus engine involves two memory-mapped buffers separated for input proposals and consensus decisions using memory-to-stream (MM2S) interfaces which bridge the stream nature of the UDP/IPv4 layer and the memory-oriented structure of host-FPGA transfers. Host processes interact with scarHW via scarHW-server: a thin software layer that can handle client requests, seamlessly integrate with applications, and configure hardware settings. The packet broadcaster turns the payload supplied by the consensus engine module into a suitable stream for the UDP/IP4 layer, while the parser performs the opposite function. The bootstrapper module is of particular relevance since it allows the synchronization of the replicas before the start of the first consensus instance by adequately triggering the round timer after an initial message exchange. After this bootstrap sequence, the consensus engine is normally set to run back-to-back consensus instances in sequence in order to achieve SMR (cf. § 5.1) while maintaining synchronization. The consensus engine can adjust the round timer dynamically to correct timer drift, in a similar fashion as clock synchronization methods [32].
The replication throughput of scarHW vanilla is limited by the round time, i.e., worst-case latency of the setup plus a safety margin, since replicas have to wait for the decision from a consensus instance before starting the next one. scarHW pipelined uses multiple consensus engines, timers and packet handling modules in parallel (grouped into a green module in Fig. 2a) to maximize decision rate. Individual green modules in different scarHWs have matching IDs and form a replication group to avoid overlapping protocol states. Dispatcher and aggregator modules provide basic functionalities to respectively parallelize and serialize consensus decisions. Serialization sorts parallel decisions by green module IDs to ensure deterministic order across different replicas. Dispatcher and aggregator settings allow a single application to use different replication groups to increase throughput and also multiple applications to use different replication groups as unrelated SMR instances.

Figure 3. Possible deployments for replication clusters using scarHW. Classical leader-based consensus solutions allow only one clients-service interaction (left) while scarHW enables two additional configurations (center and right).
3.2 Deployment modes
Consistently-replicated services running on top of scarHW can leverage the power of load distribution since all replicas can propose values simultaneously. This allows programmers to choose among the different deployment options outlined in Fig. 3. In scarHW leader (scarHW-L) mode, all clients forward requests to one node which in turn forwards requests to the replication cluster. This option is the least beneficial and is included only to compare scarHW against other leader-based approaches. scarHW load-balanced (scarHW-B) mode mitigates the bottleneck by using a load balancer to dispatch the requests to all remote replicas, allowing for custom load shaping strategies. Lastly, scarHW microservice (scarHW-u) is tailored to microservices architectures where client processes are co-located with application server processes. Here, clients interact with respective local instances of scarHW-server to safely replicate requests before sending them to application processes. The separation between scarHW processes, assuming mostly synchronous behavior thanks to deployment on programmable hardware, and (asynchronous) application processes naturally fits modern sidecar [67, 84] microservice architectures. scarHW-u also allows seamless integration with popular container orchestration services such as Kubernetes [75] and docker-swarm [20].
4 Popular uniform consensus (POPUC)
4.1 Collaborative consensus
Our novel POPUC algorithm solves (uniform) collaborative consensus – or co-consensus for short – a generalized variant of the classical (uniform) “selective” consensus with the following properties:
Validity: If a process decides set V, then every element was PROPOSED by some process.
Termination: Every correct process eventually decides some set of values V.
Uniform agreement: No two processes , decide different sets of values .
Thus, co-consensus can decide several proposed values simultaneously. We assume that proposed values are distinct, e.g., messages with unique identifiers. We use CRASH to denote when a process recognizes that it is faulty (delayed) and quits execution and DECIDE to denote a decision after which the process quits the consensus instance. We further assume that all processes propose within a fixed time window .
4.2 POPUC algorithm
The core logic of POPUC was inspired by the consensus algorithm for omission failures of Parvédy & Raynal [53] (similarly to Paxos for countless asynchronous variants e.g., [6, 7, 19, 35, 42, 57]), with several key modifications to fit practical applications and enhance performance.
Overview. We first give an intuitive overview of POPUC (Alg. 1, example executions in Fig. 4) behavior and correctness. Please refer to App. A for a detailed specification.
POPUC uses a classical round-based approach and optimal early stopping, i.e., it is guaranteed to terminate in rounds . In every round a process multi-sends its set of proposed values it has seen so far. At the start, contains only proposal (line 1). When receives other processes' proposal sets (during the same or later rounds), it adds them to (line 16). In case receives a message from a process in the next round, it immediately starts the next one (line 14) so that the receive routine always follows the send routine of the same round enforcing (not assuming) round alignment. The protocol uses the following mechanisms to determine whether it is safe to decide on :
Active exclusion: suspect tracks possibly failed senders; these are permanently excluded from send (line 4) and receive (line 15) operations. Late messages are also filtered out, resulting in omission failures (cf. Fig. 4b).
Locking: we say that is “locked” when it heard all the values that can be known at (and consequently no more can be learned in the future [24, 53]). This occurs when has completed more rounds than the number of processes which suspects are faulty (line 9). Intuitively, at that
Algorithm 1: POPUC. Executed by .
1 (can be a heartbeat) 2 , 3 start of round 4 SEND( , , ) to every 5 end of round 6 processes which have not sent a message in 7 if then CRASH 8 if then 9 if or then 10 11 elif then DECIDE( ) 12 if then DECIDE( ) 13 RECV( , , ): 14 if then end , start , continue below 15 if and then 16 17
point some round must have passed in which detected no new failure, so it has heard everything its peers knew, and by active exclusion it cannot hear from any more processes. can also become locked if it receives a message (with ) from another process that is already locked (line 17 then line 9).
Decide or quit: if suspects more than processes, it learns that it does not belong to a correct quorum and quits execution (line 7). When knows of a majority ( out of ) of locked processes, or it reaches its last round, it decides (line 11). Requiring a genuine majority is what makes the agreement uniform: any two processes deciding this way have seen locked sets that overlap, so neither can decide on knowledge the other lacks. Processes also decide if they reach round (line 12); by then, they know that at least one failure-free round has passed in which all processes fully exchanged their (i.e., the classical “pidgeonhole” principle [4, 23]). Most of the time no failures occur and the decision takes two rounds (cf. Fig. 4a): round 1 for locking, round 2 for locked majority.
Important differences to Parvédy & Raynal [53]. To fit practical applications, POPUC differs in three key aspects.
- Deciding on sets. POPUC decides a set of values V rather than a single value – solving co-consensus as opposed to classical “selective” consensus. This simple optimization is highly effective as it substantially increases throughput and mitigates the cost of all-to-all message relays.
min( ) is a lower bound on the number of rounds for uniform consensus in synchronous systems with omission failures [4, 14].
POPUC instance #1 →

(a) Failure free
POPUC instance #2 →
(b) Late message omitted through active exclusion
POPUC instance #3 →
(c) Crash-stop failure
Figure 4. Sample POPUC instances (executed back-to-back in SMR). Green locks represent processes in the “locked” state.
-
Handling round mismatch and late messages. POPUC explicitly considers initial synchronization window and bounded clock drift, rather than a perfectly synchronized round counter [53] which makes algorithms more compact but is unimplementable in practical systems. As a result, a process may lag behind, e.g., receive a message before even starting. POPUC processes explicitly handle messages from processes one round ahead of them by immediately triggering the start of the next round in advance (line 14). Processes also explicitly discard late messages from slow peers (line 15) to avoid polluting their V and locked sets, which would otherwise lead to inconsistent decisions (Fig. 4b).
-
Full value set relay to simplify verification. Processes in POPUC always multi-send the full value set instead of just the values learned in the previous round [53]. This does not improve efficiency, but it makes the algorithm easier to understand and considerably cheaper to model check, which is what allowed us to verify POPUC with the APALACHE model checker [52]. Full-relay keeps the reachable state graph smaller than new-relay does, mainly by removing the per-process new variable and the round-boundary action resetting it, as a message payload is simply a projection of the sender's current state. Furthermore, POPUC increases the bandwidth consumption only in the occurrence of failures, i.e., with more than 2 rounds, as both versions have processes multi-send V in the second round. As failures are extremely rare, POPUC benefits from verified correctness at little practical cost.
Liveness, safety and automatic model checking. POPUC ensures Termination if a quorum of correct processes exists (cf. § 2). Intuitively, in the worst-case with a different process failing at every round, processes in Q still decide in rounds (line 12). POPUC always ensures Uniform agreement through active exclusion and locked majorities. In short, once a process is locked, it will never receive another new proposal since late messages from faulty processes are discarded. However, it still cannot decide since it does not know whether other correct processes will adopt the same decision. This condition, i.e., uniformity, is met once learns of a majority of locked processes in line 11. For pen-and-paper proofs of the algorithm's properties, we refer the reader to App. A. To enhance correctness guarantees including for optimizations, we specified POPUC in TLA [39] and checked its properties using the APALACHE model checker [52]. All properties of POPUC were shown to hold. The full formal specification for independent verification are readily available upon request.
4.3 Consistent replication with POPUC
Execution. POPUC instances, like the ones in Fig. 4, are executed back-to-back to achieve SMR. At a high-level, every process receives requests from clients, buffers them and proposes them at the beginning of the first incoming POPUC instance. At the end an instance, correct processes deliver values in the decision set V in a deterministic order, e.g., by proposer ID. In instance #1 (Fig. 4a), all processes successfully multi-send their proposals in round 1, becoming locked. All processes learn about a majority of locked processes in round 2, hence they all decide the entire proposal set. Instance #2 (Fig. 4b) presents a scenario where 's messages are delayed, e.g., due to a rare network or computational delay. Processes exclude from their sender list at the beginning of round 2, leading to quitting execution when it realizes a majority of processes has excluded it. In instance #3 (Fig. 4c), sends a message to then crashes. becomes locked at the end of round 2 but not , which witnessed the failure. The decision is shifted to round 3 where all hear from a majority of locked processes and all safely DECIDE on the entire value set . Importantly, scarHW can be set so that a process that self-quits (e.g., in Fig. 4b) is not (immediately) excluded from future instances, allowing it asynchronously to ask for missing values (i.e., state transfer) and start reproposing once it has caught up.
Heartbeats and dynamic reconfiguration. Processes running SMR might send empty heartbeat values in absence of pending proposals to avoid being excluded from the set of correct processes (cf. § 3.1). Processes can choose to not send a heartbeat in order to block on purpose to allow reconfiguration when the load on the system is low, e.g., scale up/down, fine-tune the round time to avoid excessive heartbeat traffic. Custom dynamic heartbeat settings allow scarHW
Table 2. POPUC vs leader-based, multileader and leaderless asynchronous algorithms. All tolerate failures (cf. Tab. 1). is the number of shards. *Importantly: scarHW's maximum latency is much lower than other's average latency, i.e., .
| System | # decisions (latency) without batching | # messages per decision | Load balance | Downtime on | Primary bottleneck |
|---|---|---|---|---|---|
| VR [50], Raft [51] | 1 (2) | 2N | no | Leader crash | Leader (C1) |
| NOPaxos [42] | 1 (2 from client) | 2N | no | Leader/switch crash | Replica gets all client requests |
| WPaxos [6] | 1 (2 to 4) | 2N to 4N | S leaders | Leader crash | Cross-shard requests |
| Derecho [35] | 1 (2) | N replicas | Replica crash | Slow replica slows others (C3) | |
| POPUC | (2*) | 2N | N replicas | None | Relies on |
to operate in intermittent “on and off” mode, naturally enabling the combination with flow control and/or traffic engineering. App. A provides a detailed specification of the total order broadcast (TOB) primitive on top of POPUC used to achieve SMR.
5 Traditional solutions vs scarHW
5.1 POPUC-based SMR vs asynchronous algorithms
Tab. 2 shows characteristics of POPUC when used for SMR comparing it to Viewstamped Replication (VR) [50] (a widely adopted Paxos-like [38] SMR protocol), Raft [51] and fast state-of-the-art multi-leader/leaderless algorithms.
Leveraging costless synchrony. POPUC shows the same best-case message delays, complexity and fault-tolerance as Paxos-like solutions, but unlike them, provides great scalability through load-balancing and does not compromise downtime. POPUC to that end relies on maximum latency ( round time) as opposed to average latency ( ), which is however not an issue here: scarHW's stability ensures that the difference between scarHW's and is very small (<0.5 s) and, importantly, scarHW's smaller than of software-based systems (2.2 s vs 3–10 s, cf. Fig. 1). This nullifies a commonly perceived implicit cost of synchrony while preserving its benefits. In NOPaxos, client send requests directly to replicas. scarHW-u (Fig. 3) achieves a similar effect by deployment, as we will show in the evaluation.
High throughput without batching. POPUC and other leaderless algorithms in Tab. 2 are designed to overcome the leader bottleneck (C1) of classical solutions (VR, Raft) in order to achieve high replication throughput. Popular network-supported solutions NOPaxos [42] and works [17, 57] use in-network serialization to avoid the usual replica ACK message exchange (i.e., phase 2B) to greatly reduce the load on the leader which is left to process client requests only. The ACK phase is still present in POPUC but is offloaded to fast smartNIC hardware in scarHW consensus engine, keeping it outside the critical path. Crucially, unlike NOPaxos, POPUC, WPaxos [6] and Derecho [35] allow load distribution of client requests across a number of replicas, which we show to be a key enabler of high-throughput in the evaluation. Like all considered approaches, POPUC can also batch requests into a single instance to further increase throughput. Importantly, the higher number of decisions reported in Tab. 2 is due to co-consensus and not batching, i.e., processes proposing simultaneously without impacting latency.
Downtime and up-to-date replicas. Paxos-like solutions (VR, Raft, NOPaxos and WPaxos) require leader election upon the crash of a leader, leading to downtime. Derecho, which separates broadcast from view change, is more fragile as the failure or slowdown of any process slows or blocks other replicas (cf. Tab. 2). Thanks to its different approach, POPUC achieves negligible downtime up to (crash or omission) failures. This is because POPUC tackles failures with only short, bounded extra rounds (of a few in scarHW) in which processes converge to a decision and, unlike asynchronous solutions, does not require external election/view change routines based on large unsafe timeouts which can still lead to false positives. Furthermore, all POPUC replicas have an up-to-date state which clients can read, unlike leader-based solutions in which non-leader processes might have a stale state and require quorum reads leading to performance degradation (cf. § 7). Additionally, recovery mechanisms can exploit “self faults” as explicit notification of a communication issue, e.g., a message drop caused by port flapping.
5.2 Practical advantages of scarHW in the absence of failures
Fig. 5 shows a breakdown of C1 which scarHW addresses via a combination of its two performance-enhancing features: hardware acceleration and POPUC-enabled load distribution.
Accelerating the protocol core with hardware. Given a request load of L client requests and a cluster of N nodes, every replica in scarHW receives and processes POPUC's round 2 messages, each of which contains L values simultaneously proposed. scarHW eliminates this major bottleneck by offloading the protocol core to FPGA-smartNIC, greatly outperforming state-of-the-art software-based replication solutions (cf. § 7.2).

Figure 5. Bottlenecks in traditional leader-based solutions (right) vs scarHW (left)
In general, under a purely algorithmic perspective, the amount of work is the same for one POPUC replica as for the leader in a leader-based SMR, i.e., they both process values (cf. Fig. 5). Practical advantages of scarHW come down to whether it can fit L values in a single round 2 packet (remember that scarHW-pipeline can handle multiple POPUC instances at the same time, c.f. Fig. 2b), hence reducing the wasted bandwidth, e.g., packet headers. We show that this is the case for small to medium value sizes in § 7.2. As outlined earlier, this process is not equivalent to batching as scarHW instances do not wait for L values, but rather propose them as they arrive.
Load distribution improves application performance. Alas, hardware-accelerated replication does not necessarily translate into performance improvements for end applications running in the endhost OS. These commonly struggle to keep up with very high throughputs, unless they are configured to handle line-rate requests, which is hard to achieve and requires a large number of resources hence likely disruptive to other applications. This is where the advantage of POPUC-enabled load distribution comes into play: as the bottleneck shifts to the application layer (cf. Fig. 5), each application associated with a scarHW replica processes only L/N client incoming requests, leave the heavy lifting to scarHW and executes the compact decision set. Typical leader-based replication systems, whether hardware [7, 42] or software [3, 21], suffer from one application having to process all the client requests (C1), resulting in limited effectiveness in practice, as we show in § 7.3.
The combination of hardware acceleration and load distribution allows scarHW to achieve high throughput and low latency, turning the cluster size N into a performance enhancer rather than a bottleneck.
6 Implementation
6.1 FPGA image
We implemented scarHW vanilla on an AMD/Xilinx Alveo U50 [9] FPGA smartNIC. We used Vivado and the v++ compiler from the Vitis 2023.2 suite to compile and package all binary FPGA images. For the MAC and UDP/IP4 layer, we used the following open source modules: UltraScale+ Devices Integrated 100G Ethernet Subsystem by AMD/Xilinx [8] and the project 100G-fpga-network-stack-core [66, 69, 70].
All other hardware modules are custom-built and use a modular design consisting of a kernel providing raw functionality and a wrapper exposing the required ports through AXI-lite interfaces to facilitate simulation and integration into the whole FPGA image. We employed four additional hardware timestamping modules for clock-accurate latency measurements: two between host-FPGA buffers and the consensus engine and two between the UDP/IP4 and MAC layer in both directions. Timestamps are inserted directly into the UDP payload for post-processing. All modules interact via AXI interfaces, specifically AXI4, AXI4-lite and AXI-stream. During development, we extensively evaluated latency and throughput of AXI interfaces and host-FPGA interactions, observing that MM2S buffers of over 1MiB can easily saturate a 100Gbps link. Similar iterative testing showed that kernel processing time is very stable and negligible compared to network latency. Overall, custom hardware modules amount to 1577 lines of SystemVerilog. Refer to anonymous [10] for a detailed overview of the hardware implementation.
6.2 Optimizations and software layer
We implement a dynamic round timer adjustment mechanism in-hardware to keep replicas synchronized in the presence of clock drift or of a large initial synchronization window. In short, in the occurrence of a round mismatch (cf. Alg. 1 line 14), the consensus engine adjusts the round timer of Fig. 2a by not only anticipating the next round but also slightly reducing the round duration. In our setup, scarHW cluster size (N) is limited by Ethernet’s maximum transmission unit (MTU) as follows: , which is over the size of common replication clusters [3, 7, 26, 30]. scarHW-server is a lightweight multi-threaded TCP server implemented in 466 lines of C++ exposing an API for scarHW settings and (consistent) GET/SET requests.
The number of parallel consensus (green) modules for scarHW pipelined is limited to 31 by the available FPGA area on the Alveo U50. scarHW-server interacts with scarHW via the AMD/Xilinx XRT library. scarHW source code is available online .
7 Evaluation
We evaluate scarHW by comparison with state-of-the-art services and applications, addressing three research questions:
RQ1: What is scarHW peak performance (C1, C2)?
RQ2: How does scarHW perform when combined with real-world SMR applications (C1, C2)?
All source code will be made available upon publication.
RQ3: What is the impact of failures on the performance of scarHW-based services (C2, C3)?
7.1 Methodology
Evaluation cluster. We use a cluster with 3× Supermicro SYS-120U-TNR servers with Dual Xeon Gold 5315Y processors and 190GiB DDR4 RAM in line with state-of-the-art works compared against. Each server is equipped with one AMD Xilinx Alveo U50 [9] running scarHW (serving up to 59 applications) and one NVIDIA Mellanox ConnectX-7 used by all other compared approaches. Both NICs are connected to an Edgecore Wedge100BF-32X-O-AC-F Tofino switch via a 100G DAC QSFP28 cable. All endhosts run Ubuntu Server 22.04 with Linux 5.15.0-125 and use Xilinx runtime (XRT) version 2.16.204, xocl and xclmgmt from Vitis 2023.2.
Comparison. We compare scarHW against the following state-of-the-art replication systems:
Waverunner [7], the fastest SMR module to our knowledge, using Alveo U280 [79] FPGA smartNICs to accelerate failure-free execution of Raft [51].
Mu [3], a low-latency Paxos-based algorithm leveraging one-sided RDMA writes.
P4ce [21], a protocol similar to Mu implementing RDMA write multicast on programmable switches to reduce network load on the leader.
NOPaxos [42], a fast SMR protocol offloading request serialization to a network switch to eliminate C1.
We thoroughly evaluate the integration of scarHW into two widely used applications – Redis [59], a (non-consistent) distributed key-value store, and Zookeeper [30], a consistent distributed configuration service – by comparing their performance with and without scarHW. Additionally, for Redis, we compare scarHW against RedisRaft [61], an official module developed by RedisLabs that implements Raft-based SMR.
Breakdown. The first set of microbenchmarks (§ 7.2) puts scarHW in perspective w.r.t. the state of the art in terms of peak performance in failure-free executions. These isolate the effect of hardware acceleration (cf. § 5.2) showing the advantages of scarHW and Waverunner. Full-system benchmarks (§ 7.3) highlight the benefits of POPUC-enabled load distribution combined with hardware acceleration when scarHW is integrated into real-world applications, i.e., the key performance features of scarHW (cf. § 5.2). Finally, we evaluate the impact of failures on scarHW-based services (§ 7.4).
7.2 Microbenchmarks: peak performance (RQ1)
Settings. We re-implement the NOPaxos “normal operation” protocol [42] assuming perfectly ordered, lossless packets, hence capturing its best-case performance (and outperforming the full protocol’s latest evaluation [17]). Due to

Figure 6. Latency at increasing throughput (64B requests, 5 replicas). Vertical lines show hardware bottlenecks.

Figure 7. Goodput and relative wasted bandwidth (e.g., headers, ACKs) of hardware replication systems with increasing cluster and proposal value sizes.
the impossibility of fully re-implementing other compared approaches, all requiring very specialized hardware (namely specific smartNIC models, Infiniband, P4-enabled switch), we simulate their performance based on their complexities and using real measurements to infer parameters. To obtain the best-case consensus decision latency for prior methods, we measure 1 million FPGA-FPGA packet RTTs for Waverunner and single RDMA write latencies for Mu and P4ce at a low throughput of 1K packets-per-second with payloads from 64B to 1024B. We use the minimum latency observed to scale throughput curves taken from [7] for Waverunner and [21] for Mu and P4ce. We use the same benchmark settings as both cited works (with similar server specifications) to approximate real performance as closely as possible. We measure latency and throughput of scarHW vanilla by running several billion consensus instances with a round period of 2.7μs. This includes a safety margin of 0.3μs over the worst-case latency ever observed although not required for correctness or performance. Values are proposed by a leader node for all approaches except scarHW, in which all replicas propose values simultaneously and NOPaxos in which clients broadcast requests to all replicas.
Latency vs throughput. Fig. 6 shows the replication latency at increasing throughput with a standard cluster size of 5 replicas, using small 64B packets. Performance differences across the evaluated approaches are primarily driven by whether they rely on software for handling replication requests or not. NOPaxos, Mu and P4ce are constrained by the host's software stack, hitting a maximum throughput wall at around ~1Mpps. Among these, P4ce achieves the best performance by leveraging RDMA and switch-level message aggregation, which reduces load on the leader (C1). In contrast, the FPGA-offloaded designs Waverunner and scarHW operate at line rate on dedicated hardware, maintaining ultralow, stable latency up to extremely high throughput. Both approaches saturate the 100Gbps network: Waverunner's large number of pipelined proposals clog the output bandwidth of a single smartNIC, while scarHW's POPUC round 2 messages saturate the replicas ingress bandwidth. scarHW advantage comes from condensing multiple values into a single packet, which reduces the impact of packet headers to the overall throughput (see Fig. 5). Waverunner shows slightly better latency than scarHW (5.4μs vs 3.41μs) because the latter is limited by (cf. Tab. 2) which also includes a safety margin.
Throughput at scale and batching. Fig. 7 shows goodput and wasted bandwidth (throughput - goodput) per replica of scarHW and Waverunner with standard SMR cluster sizes [3, 7, 21, 26] (cf. C2) and different proposal value sizes, to showcase the effect of batching on throughput. While scarHW's pipelined parallel instances for 16B and 128B at 3 nodes maximize the FPGA area of the Alveo U50, commonly available FPGA smartNICs with larger area, e.g., Alveo U280 [79], would extend scarHW's improvements at small scale. All other points for both approaches saturate a 100Gbps network. In general, scarHW achieves better goodput best on small to medium value sizes and less wasted bandwidth because it can pack all values of a single consensus instance into a single packet, minimizing the impact of packet headers. Waverunner shows slightly better goodput (but higher wasted bandwidth) for large 1024B values because scarHW-pipelined is limited by the number of parallel instances (cf. Fig. 2b) that it can run without exceeding the bandwidth. For instance, with 5 replicase, scarHW would need to run 2.5 parallel instance to saturate the network, but it defaults to 2 since it needs to keep the same size for all instances.
7.3 End-to-end application performance (RQ2)
Network-speed processing rates of hardware replication systems such as scarHW, Waverunner, and similar systems [33, 65] put huge pressure on endhost (software) applications which can easily become the bottleneck unless they use heavily-parallelized, dedicated packet processing pipelines [7, 65]. Crucially, scarHW also accelerates applications which go at “software speed” out-of-the box thanks to POPUC’s properties (cf. § 5.2), namely by allowing load distribution.
Settings. This set of benchmarks tests the failure-free performance of our scarHW vanilla implementation integrated into Redis and Zookeeper to provide consistent replication. We evaluate latency and throughput of SET and GET requests from 60 clients, each sending 100k requests for each measurement using 24 keys and random 8B integers as values. SET requests are blocking and servers also do not use batching. Cluster sizes larger than 3 co-locate replicas uniformly across the 3 physical nodes. Zookeeper SET requests, NOPaxos GET, and RedisRaft SET requests are forwarded directly to the leader as required. For all approaches we evaluate consistent GET requests: we set the quorum read option in RedisRaft [62] and issue GET requests to a follower node for Zookeeper, forcing it to synchronize with the leader beforehand. For scarHW, GET requests are consistent by default as all nodes are updated synchronously. We also include results for un-replicated Redis as a baseline. scarHW is evaluated in all its deployment modes (cf. § 3). In scarHW-B, we use Linux IP Virtual Server [81] as a thin client-side load balancer to forward request to all replicas using a round-robin scheme. SET requests for scarHW-based Redis and Zookeeper are handled by scarHW-server, which consistently replicates the request through scarHW, responds to clients, and asynchronously delivers the request to the application. Waverunner [7] adopts a similar strategy. We use the official redis-benchmark [60] for Redis and RedisRaft. For Zookeeper, we implement simple C clients using the Zookeeper API. We use the same implementation of NOPaxos described in § 7.2, with each replica interfacing with a local Redis instance.
Results. Fig. 8 shows that scarHW applications maintain or even improve performance when scaling to more replicas, as opposed to the typical performance degradation of SMR observed with RedisRaft, native Zookeeper, and leaderless NOPaxos at large scale. This is due to scarHW benefiting from (1) synchrony, i.e., load distribution in this specific benchmark, without suffering from (2) relying on conservatively high latency bounds thanks to protocol hardware offload (cf. § 5.1, § 5.2). For instance, with 59 replicas, every Redis/Zookeeper application instance with scarHW-B or scarHW-u has to handle ~1 client request at a time, with scarHW handling the core protocol heavy-lifting. scarHW-L, RedisRaft, and Zookeeper each replica or leader has to handle 60 requests in software (C1). While NOPaxos significantly reduces the load on the leader by offloading the leader to the network, replicas do not benefit from (1) as they still have to process all client requests. Avoiding (2) makes the cost of POPUC negligible w.r.t. the speed at which application threads can receive/respond to client requests, resulting in substantial scaling improvements (C2). Overall, scarHW-B outperforms native Zookeeper and RedisRaft in all metrics and performs slightly better than Redis-NOPaxos in throughput and GET latency despite the load-balancer and protocol

Figure 8. Application performance comparison with respect to the number of replicas. Throughput is on the y-scale in the top row (higher is better) and latency in the bottom row (lower is better); both use logarithmic y-scales.
overhead. scarHW-u embodies the benefits of distribution since clients send requests to respective co-located replicas, achieving from to over better performance than all approaches in all metrics. The improvements decrease at yet larger scales as application servers start idling due to the small number of client requests.
Due to the SMR overhead, replication clusters are usually limited to a small number of replicas reaching at most 7 or 9 [3, 26, 30, 83], explaining the drop in performance of RedisRaft and Zookeeper. scarHW overturns this common constraint making replication an appealing tool to distribute load and increase performance, particularly for microservices.
7.4 Failure impact (RQ3)
Description. This benchmark evaluates the impact of failures on scarHW-B and scarHW-u integrated into Zookeeper by injecting process failures in a 5-replica cluster. We omit direct evaluation of omission failures since POPUC treats crashes and omissions the same way (they have the same effect), and we actually observed no message drops in our setup with 1% (0.2μs) safety margin over our 40-days-long latency stability benchmark (cf. Fig. 1). Just like for the previous benchmark, scarHW does not use the optimization of only relaying value IDs. We monitor the throughput of SET requests from 60 concurrent clients over 10s, and manually stop the leader for Zookeeper and one of the replicas for scarHW-Zookeeper at ~4s. Clients send 100K requests each. For Zookeeper, we configure clients to continuously query the cluster upon failure and immediately switch to the new leader once leader election terminates. In scarHW-B + Zookeeper, the load-balancer reconfigures itself to remove the faulty replica, while in scarHW-u we assume that the clients associated with the faulty replica crash alongside it, thus terminating co-located microservices. We also report Waverunner metrics from the original evaluation [7] to give a rough comparison with another state-of-the-art SMR system using asynchronous consensus (Raft).
Results. Fig. 9 shows the inherent advantage of scarHW's POPUC with respect to asynchronous consensus algorithms used by both native Zookeeper (ZAB [36]) and Waverunner (Raft [51]). Since POPUC is fully peer-based, failures cause negligible slowdown (cf. C3), which we experimentally find to be one extra round of POPUC (2.7μs) most of the time. The effect is a decrease in throughput due to the increase in request load on every active replica. The election procedure upon leader failure in both Zookeeper and Waverunner results in a much longer downtime of hundreds of ms where clients stall until the service comes back up. When the election terminates (with no recovery), Zookeeper and Waverunner do not observe a change in throughput as the same request load applies to the new leader node, which processes the same number of acknowledgments from replicas. Recoveries in scarHW are treated as process joins resulting from membership changes proposed and agreed upon through POPUC which trivially follow the inverse trend of failover leading to an increase in throughput. Failure of replicas results in a system stall for scarHW as well as for asynchronous consensus services.
8 Related Work
Asynchronous algorithm acceleration. Mu [3], P4ce [21], and Kharon [26] propose asynchronous consensus-based algorithms heavily optimized for RDMA networks. Consensus in a Box [33] spearheaded FPGA-based coordination by offloading Zookeeper Atomic Broadcast (ZAB) to a smartNIC. Waverunner [7] accelerates only failure-free operations of Raft with a NIC, leaving failover routines to software. Similarly, systems to offload Paxos to network switches

Figure 9. Impact of a failure on leader-based consensus applications vs applications using scarHW. Note that – for fair comparison against Waverunner (*data points taken from [7]) – all approaches show performance with reduced number of replicas after the failure (no process replacement).
have been explored [13, 19]. Notably, NOPaxos [42] (follow-up of SpecPaxos [57]) is a high-performance “leaderless” solution that instruments network switches to achieve network ordering to effectively circumvent item C1. scarHW goes beyond bare acceleration of asynchronous algorithms introducing a novel consensus algorithm which leverages synchrony to enable load-balancing, greatly improving throughput over solutions above.
Note that many asynchronous consensus works assume (eventually) reliable communication [12] (via resends), while quorums (used originally to handle process failures) can inherently handle some message losses (cf. Tab. 1). The extent of this has only been explicitly considered recently [47].
Synchronous algorithms. The consensus problem in synchronous systems has been well explored in theory for (pure) process crash-stop failures [44, 58, 77]. Like POPUC, many synchronous protocols could also reach several decisions, but choose one deterministically to implement standard (selective) consensus. POPUC can be trivially adapted.
Unlike recent systems using synchrony for efficient coordination like FiDe [63] and Nano-consensus [65], scarHW tolerates communication failures, increasing robustness. Chora [78] uses synchrony for pipelining, but carries on the drawbacks of the partially synchronous model.
A few works consider synchrony with omission [14, 53, 54, 58] and timing failures [18]. scarHW is the first system leveraging the predictability of modern FPGAs for efficient distributed coordination while tolerating omission failures.
The seminal XFT [43], which uses a synchronous quorum, as well as several recent works [1, 2, 29], assume synchrony for Byzantine fault tolerance (BFT) (even in wide-area setups [47]) on top of a commodity software stack without support for it. scarHW uses dedicated resources on network hardware to support synchrony ground-up.
Partitioning and relaxing consistency. Several multi-leader and leaderless variants of Paxos [5, 6, 19, 35, 40, 45, 48] mitigate C1 and C2 through partitioning/sharding and separation of group management from data replication logic. Derecho [35] separates asynchronous atomic broadcast and view change achieving high throughput at the expense of latency degradation with failures or stragglers (C3). scarHW fully embraces synchrony proposing a consensus engine suited for the stability of datacenter smartNICs that allows it to improve over previous systems by achieving zero downtime and low latency while being scalable also within a single partition. Clearly, scarHW can also benefit from partitioning or sharding at very large scales.
Similarly to batching and sharding, limiting consensus to a small set of “consensus(-as-)service” [27] nodes can help mitigate bottlenecks (tolerating more failures among “general” nodes), but retains fundamental limitations of the underlying algorithm (scaling poorly to more replicas ) which be improved with our approach though. Lastly, collaborative consensus differs from -set agreement [16], where processes each decide one from at most different values.
9 Conclusions
We present scarHW: a network card design that provides fast and robust SMR to highly available distributed applications running in datacenters. scarHW differs from traditional approaches in that it uses a novel synchronous consensus algorithm which exploits the reliability and stability of modern datacenter networks. Through careful algorithm design on an off-the-shelf FPGA smartNIC, scarHW mitigates the traditional cost of synchrony while preserving its key benefit: inherently leaderless coordination. scarHW-based services can easily scale (hence supporting better fault tolerance) while also improving performance, overturning common system design principles.
References
[1] Ittai Abraham, Dahlia Malkhi, Kartik Nayak, Ling Ren, and Maofan Yin. 2020. Sync HotStuff: Simple and Practical Synchronous State Machine Replication. In 2020 IEEE Symposium on Security and Privacy (SP '20), Vol. 1. IEEE, Piscataway, NJ, USA, 106–118. doi:10.1109/SP40000.2020.00044
[2] Ittai Abraham, Kartik Nayak, and Nibesh Shrestha. 2021. Optimal Good-case Latency for Rotating Leader Synchronous BFT. In 25th International Conference on Principles of Distributed Systems (OPODIS 2021) (LIPIcs, Vol. 217). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 27:1–27:19. doi:10.4230/LIPIcs.OPODIS.2021.27
[3] Marcos K. Aguilera, Naama Ben-David, Rachid Guerraoui, Virendra J. Marathe, Athanasios Xygkis, and Igor Zablotchi. 2020. Microsecond Consensus for Microsecond Applications. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI '20). USENIX Association, USA, 599–617.
[4] Marcos Kawazoe Aguilera and Sam Toueg. 1999. A simple bivalency proof that t-resilient consensus requires rounds. Inform. Process. Lett. 71, 3 (1999), 155–158. doi:10.1016/S0020-0190(99)00100-3
[5] Ailidani Ailijiang, Aleksey Charapko, and Murat Demirbas. 2019. Dissecting the Performance of Strongly-Consistent Replication Protocols. In SIGMOD/PODS '19: International Conference on Management of Data. Association for Computing Machinery, New York, NY, USA, 1696–1710. doi:10.1145/3299869.3319893
[6] Ailidani Ailijiang, Aleksey Charapko, Murat Demirbas, and Tevfik Kosar. 2020. WPaxos: Wide Area Network Flexible Consensus. IEEE Transactions on Parallel and Distributed Systems 31, 1 (2020), 211–223. doi:10.1109/TPDS.2019.2929793
[7] Mohammadreza Alimadadi, Hieu Mai, Shenghsun Cho, Michael Ferdman, Peter Milder, and Shuai Mu. 2023. Waverunner: An Elegant Approach to Hardware Acceleration of State Machine Replication. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23). USENIX Association, Boston, MA, 357–374. https://www.usenix.org/conference/nsdi23/presentation/alimadadi
[8] AMD 2024. UltraScale+ Devices Integrated 100G Ethernet Subsystem LogiCORE IP Product Guide (PG203). AMD. https://docs.amd.com/r/en-US/pg203-cmac-usplus/Introduction_UltraScale+Devices_Integrated_100G_Ethernet_Subsystem_LogiCORE_IP_Product_Guide (PG203).
[9] AMD. 2025. AMD Alveo™ U50 Data Center Accelerator Card. https://www.amd.com/en/products/accelerators/alveo/u50/a-u50-p00g-pq-g.html Accessed: 2025-04-02.
[10] Authors and details omitted for double blind review. 2024. Analysis and development of an FPGA coordination protocol. M.S. Thesis. Omitted, Omitted. Available at: omitted.
[11] Kubernetes Authors. 2025. Operating etcd clusters for Kubernetes. https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/ Accessed: April 6, 2025.
[12] A. Basu, B. Charron-Bost, and S. Toueg. 1996. Simulating Reliable Links with Unreliable Links in the Presence of Failures. In 10th International Workshop on Distributed Algorithms (WDAG'96). Springer, Berlin, Heidelberg, 105–122.
[13] Giacomo Belocchi, Valeria Cardellini, Aniello Cammarano, and Giuseppe Bianchi. 2020. Paxos in the NIC: Hardware Acceleration of Distributed Consensus Protocols. In 2020 16th International Conference on the Design of Reliable Communication Networks DRCN 2020. IEEE, Piscataway, NJ, USA, 1–6. doi:10.1109/DRCN48652.2020.1570611009
[14] Martin Biely, Ulrich Schmid, and Bettina Weiss. 2011. Synchronous consensus under hybrid process and link failures. Theoretical Computer Science 412, 40 (2011), 5602–5630. doi:10.1016/j.tcs.2010.09.032 Stabilization, Safety and Security.
[15] Tushar Deepak Chandra and Sam Toueg. 1996. Unreliable Failure Detectors for Reliable Distributed Systems. J. ACM 43, 2 (March 1996), 225–267. doi:10.1145/226643.226647
[16] S. Chaudhuri. 1993. More Choices Allow More Faults: Set Consensus Problems in Totally Asynchronous Systems. Information and Computation 105, 1 (1993), 132–158.
[17] Inho Choi, Ellis Michael, Yunfan Li, Dan R. K. Ports, and Jialin Li. 2023. Hydra: Serialization-Free Network Ordering for Strongly Consistent Distributed Applications. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23). USENIX Association, Boston, MA, 293–320. https://www.usenix.org/conference/nsdi23/presentation/choi
[18] F. Cristian and C. Fetzer. 1999. The Timed Asynchronous Distributed System Model. IEEE Transactions on Parallel and Distributed Systems 10, 6 (June 1999), 642–657.
[19] Huynh Tu Dang, Daniele Sciascia, Marco Canini, Fernando Pedone, and Robert Soulé. 2015. NetPaxos: consensus at network speed. In Proceedings of the 1st ACM SIGCOMM Symposium on Software Defined Networking Research (SOSR). Association for Computing Machinery, New York, NY, USA, 5:1–5:7. doi:10.1145/2774993.2774999
[20] Docker Inc. 2024. Docker Swarm: Native Clustering for Docker. https://docs.docker.com/engine/swarm/. Accessed: 2025-04-12.
[21] Rémi Dulong, Nathan Felber, Pascal Felber, Gilles Hopin, Baptiste Lepers, Valerio Schiavoni, Gaël Thomas, and Sébastien Vaucher. 2024. P4ce: Consensus over RDMA at Line Speed. In 2024 IEEE 44th International Conference on Distributed Computing Systems (ICDCS). IEEE, Piscataway, NJ, USA, 508–519. doi:10.1109/icdcs60910.2024.00054
[22] C. Dwork, N.A. Lynch, and L. Stockmeyer. 1988. Consensus in The Presence of Partial Synchrony. J. ACM 35, 2 (1988), 288–323.
[23] Michael J. Fischer and Nancy A. Lynch. 1982. A Lower Bound for the Time to Assure Interactive Consistency. Inform. Process. Lett. 14, 4 (1982), 183–186.
[24] Vijay K. Garg. 2002. Elements of Distributed Computing. Wiley-Interscience, Hoboken, NJ, USA. 423 pages.
[25] Matthew P. Grosvenor, Malte Schwarzkopf, Ionel Gog, Robert N. M. Watson, Andrew W. Moore, Steven Hand, and Jon Crowcroft. 2015. Queues Don’t Matter When You Can JUMP Them!. In 12th USENIX Symposium on Networked Systems Design and Implementation (NSDI 15). USENIX Association, Oakland, CA, 1–14. https://www.usenix.org/conference/nsdi15/technical-sessions/presentation/grosvenor
[26] Rachid Guerraoui, Antoine Murat, Javier Picorel, Athanasios Xygkis, Huabing Yan, and Pengfei Zuo. 2022. uKharon: A Membership Service for Microsecond Applications. In 2022 USENIX Annual Technical Conference (USENIX ATC 22). USENIX Association, USA, 101–120.
[27] Rachid Guerraoui and André Schiper. 2001. The Generic Consensus Service. IEEE Trans. Softw. Eng. 27, 1 (Jan. 2001), 29–41.
[28] Zhisheng Hu, Pengfei Zuo, Yizou Chen, Chao Wang, Junliang Hu, and Ming-Chang Yang. 2024. Aceso: Achieving Efficient Fault Tolerance in Memory-Disaggregated Key-Value Stores. In Proceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles (Austin, TX, USA) (SOSP '24). Association for Computing Machinery, New York, NY, USA, 127–143. doi:10.1145/3694715.3695951
[29] Kaiwen Huang, Ronghui Hou, and Yingming Zeng. 2022. LWSBFT: Leaderless weakly synchronous BFT protocol. Computer Networks 219 (2022), 109419. doi:10.1016/j.comnet.2022.109419
[30] Patrick Hunt, Mahadev Konar, Flavio P. Junqueira, and Benjamin Reed. 2010. ZooKeeper: Wait-free Coordination for Internet-scale Systems. In 2010 USENIX Annual Technical Conference (USENIX ATC 10). USENIX Association, USA, 14 pages. https://www.usenix.org/conference/usenix-atc-10/zookeeper-wait-free-coordination-internet-scale-systems
[31] Stephen Ibanez, Alex Mallery, Serhat Arslan, Theo Jepsen, Muhammad Shahbaz, Changhoon Kim, and Nick McKeown. 2021. The nanoPU: A Nanosecond Network Stack for Datacenters. In 15th USENIX Symposium on Operating Systems Design and Implementation (OSDI 21). USENIX Association, USA, 239–256. https://www.usenix.org/conference/osdi21/presentation/ibanez
[32] IEEE Instrumentation and Measurement Society. 2020. IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems. IEEE Instrumentation and Measurement Society. doi:10.1109/IEEESTD.2020.9120376
[33] Zsolt István, David Sidler, Gustavo Alonso, and Marko Vukolic. 2016. Consensus in a box: inexpensive coordination in hardware. In Proceedings of the 13th Usenix Conference on Networked Systems Design and Implementation (NSDI'16). USENIX Association, USA, 425–438.
[34] Patrick Jahnke, Vincent Riesop, Pierre-Louis Roman, Pavel Chuprikov, and Patrick Eugster. 2021. Live in the Express Lane. In 2021 USENIX Annual Technical Conference (USENIX ATC 21). USENIX Association, USA, 581–597.
[35] Sagar Jha, Jonathan Behrens, Theo Gkountouvas, Mae Milano, Weijia Song, Edward Tremel, Robbert Van Renesse, Sydney Zink, and Kenneth P. Birman. 2019. Derecho: Fast State Machine Replication for Cloud Services. ACM Transactions on Computer Systems 36, 2 (April 2019), 4:1–4:49. doi:10.1145/3302258
[36] Flavio P. Junqueira, Benjamin C. Reed, and Marco Serafini. 2011. Zab: High-performance broadcast for primary-backup systems. In 2011 IEEE/IFIP 41st International Conference on Dependable Systems & Networks (DSN). IEEE, Piscataway, NJ, USA, 245–256. doi:10.1109/DSN.2011.5958223
[37] Jay Kreps, Neha Narkhede, and Jun Rao. 2011. Kafka: A Distributed Messaging System for Log Processing. In Proceedings of the 6th International Workshop on Networking Meets Databases (NetDB). Association for Computing Machinery, New York, NY, USA, 1–7.
[38] Leslie Lamport. 1998. The Part-Time Parliament. ACM Trans. Comput. Syst. 16, 2 (may 1998), 133–169. doi:10.1145/279227.279229
[39] Leslie Lamport. 2002. Specifying Systems: The TLA+ Language and Tools for Hardware and Software Engineers. Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA.
[40] Leslie Lamport, Dahlia Malkhi, and Lidong Zhou. 2009. Vertical Paxos and Primary-Backup Replication. In Proceedings of the 28th ACM Symposium on Principles of Distributed Computing (PODC 2009). Association for Computing Machinery, New York, NY, USA, 312–313.
[41] Youngmoon Lee, Hasan Al Maruf, Mosharaf Chowdhury, Asaf Cidon, and Kang G. Shin. 2022. Hydra: Resilient and Highly Available Remote Memory. In 20th USENIX Conference on File and Storage Technologies (FAST 22). USENIX Association, Santa Clara, CA, 181–198. https://www.usenix.org/conference/fast22/presentation/lee
[42] Jialin Li, Ellis Michael, Naveen Kr. Sharma, Adriana Szekeres, and Dan R. K. Ports. 2016. Just Say NO to Paxos Overhead: Replacing Consensus with Network Ordering. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16). USENIX Association, USA, 467–483. https://www.usenix.org/conference/osdi16/technical-sessions/presentation/li
[43] Shengyun Liu, Paolo Viotti, Christian Cachin, Vivien Quema, and Marko Vukolic. 2016. XFT: Practical Fault Tolerance beyond Crashes. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16). USENIX Association, Savannah, GA, 485–500. https://www.usenix.org/conference/osdi16/technical-sessions/presentation/liu
[44] Nancy A. Lynch. 1996. Distributed Algorithms. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.
[45] Parisa Jalili Marandi, Marco Primi, Nicolas Schiper, and Fernando Pedone. 2010. Ring Paxos: A High-Throughput Atomic Broadcast Protocol. In 2010 IEEE/IFIP International Conference on Dependable Systems & Networks (DSN). IEEE, Piscataway, NJ, USA, 527–536. doi:10.1109/DSN.2010.5544305
[46] Avinash Maurya, Robert Underwood, M. Mustafa Rafique, Franck Cappello, and Bogdan Nicolae. 2024. DataStates-LLM: Lazy Asynchronous Checkpointing for Large Language Models. In Proceedings of the 33rd International Symposium on High-Performance Parallel and Distributed Computing (Pisa, Italy) (HPDC '24). Association for Computing Machinery, New York, NY, USA, 227–239. doi:10.1145/3625549.3658685
[47] Nenad Milosevic, Daniel Cason, Zarko Milosevic, and Fernando Pedone. 2024. How Robust Are Synchronous Consensus Protocols?. In 28th International Conference on Principles of Distributed Systems, OPODIS 2024, December 11-13, 2024, Lucca, Italy (LIPics, Vol. 324). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 20:1–20:25.
[48] Iulian Moraru, David G. Andersen, and Michael Kaminsky. 2013. There is more consensus in Egalitarian parliaments. In Proceedings of the Twenty-Fourth ACM Symposium on Operating Systems Principles (SOSP '13). Association for Computing Machinery, New York, NY, USA, 358–372. doi:10.1145/2517349.2517350
[49] Achour Mostefaoui and Michel Raynal. 2001. Leader-based consensus. Parallel Processing Letters 11, 01 (2001), 95–107.
[50] Brian M. Oki and Barbara H. Liskov. 1988. Viewstamped Replication: A New Primary Copy Method to Support Highly-Available Distributed Systems. In Proceedings of the Seventh Annual ACM Symposium on
Principles of Distributed Computing (Toronto, Ontario, Canada) (PODC '88). Association for Computing Machinery, New York, NY, USA, 8–17. doi:10.1145/62546.62549
[51] Diego Ongaro and John Ousterhout. 2014. In Search of an Understandable Consensus Algorithm. In 2014 USENIX Annual Technical Conference (USENIX ATC '14). USENIX Association, USA, 305–319.
[52] Rodrigo Otoni, Shon Feder, Jure Kukovec, Andrey Kupriyanov, Gabriela Moreira, Philip Offtermatt, Thomas Pani, Thanh-Hai Tran, and Igor Konnov. 2026. The TLA+ Model Checker Apalache. In Proceedings of the 38th International Conference on Computer Aided Verification. Springer, Cham, Switzerland, 151–166. doi:10.1007/978-3-032-32519-8_8
[53] Philippe Raipin Parvédy and Michel Raynal. 2004. Optimal early stopping uniform consensus in synchronous systems with process omission failures. In Proceedings of the Sixteenth Annual ACM Symposium on Parallelism in Algorithms and Architectures (Barcelona, Spain) (SPAA '04). Association for Computing Machinery, New York, NY, USA, 302–310. doi:10.1145/1007912.1007963
[54] Philippe Raipin Parvédy, Michel Raynal, and Corentin Travers. 2006. Strongly Terminating Early-Stopping k-Set Agreement in Synchronous Systems with General Omission Failures. In Structural Information and Communication Complexity, Paola Flocchini and Leszek Gásieniec (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 182–196.
[55] Jonathan Perry, Amy Ousterhout, Hari Balakrishnan, Devavrat Shah, and Hans Fugal. 2014. Fastpass: a centralized "zero-queue" datacenter network. In Proceedings of the 2014 ACM Conference on SIGCOMM (Chicago, Illinois, USA) (SIGCOMM '14). Association for Computing Machinery, New York, NY, USA, 307–318. doi:10.1145/2619239.2626309
[56] Kenneth J. Perry and Sam Toueg. 1986. Distributed agreement in the presence of processor and communication faults. IEEE Transactions on Software Engineering SE-12, 3 (1986), 477–482. doi:10.1109/TSE.1986.6312888
[57] Dan R. K. Ports, Jialin Li, Vincent Liu, Naveen Kr. Sharma, and Arvind Krishnamurthy. 2015. Designing Distributed Systems Using Approximate Synchrony in Data Center Networks. In 12th USENIX Symposium on Networked Systems Design and Implementation (NSDI 15). USENIX Association, Oakland, CA, 43–57. https://www.usenix.org/conference/nsdi15/technical-sessions/presentation/ports
[58] M. Raynal. 2002. Consensus in synchronous systems: a concise guided tour. In 2002 Pacific Rim International Symposium on Dependable Computing, 2002. Proceedings. IEEE, Piscataway, NJ, USA, 221–228. doi:10.1109/PRDC.2002.1185641
[59] Redis Labs. 2025. Redis. https://redis.io. Accessed: 2025-04-04.
[60] Redis Labs. 2025. Redis-benchmark. https://redis.io/docs/management/optimization/benchmarks/. Accessed: 2025-04-04.
[61] Redis Labs. 2025. RedisRaft, consistent key-value store. https://github.com/RedisLabs/disraft. Accessed: 2025-04-04.
[62] RedisLabs. 2025. RedisRaft Documentation - Quorum Reads. https://github.com/RedisLabs/disraft/blob/master/docs/Using.md#quorum-reads Accessed: 2025-04-04.
[63] Davide Rovelli, Pavel Chuprikov, Philipp Berdesinski, Ali Pahlevan, Patrick Jahnke, and Patrick Eugster. 2025. FiDe: Reliable and Fast Crash Failure Detection to Boost Datacenter Coordination. In 2025 USENIX Annual Technical Conference (ATC'25). USENIX Association, USA, 765–788.
[64] Davide Rovelli and Patrick Eugster. 2025. Digital Cluster Circuits for Reliable Datacenters. In 2025 55th Annual IEEE/IFIP International Conference on Dependable Systems and Networks - Supplemental Volume (DSN-S). IEEE, Piscataway, NJ, USA, 201–205. doi:10.1109/DSN-S65789.2025.00065
[65] Davide Rovelli, Christian Faerber, Graham McKenzie, Ali Pahlevan, Sina Darabi, Patrick Jahnke, and Patrick Eugster. 2025. Nanoconsensus: ultra-fast, quorum-less coordination on the wire. In Proceedings of the ACM Symposium on Cloud Computing (Online) (SOCC '25). Association for Computing Machinery, New York, NY, USA, 659–672. doi:10.1145/3772052.3772268
[66] Mario Ruiz, David Sidler, Gustavo Sutter, Gustavo Alonso, and Sergio López-Buedo. 2019. Limago: an FPGA-based Open-source 100 GbE TCP/IP Stack. In 2019 29th International Conference on Field Programmable Logic and Applications (FPL). IEEE, Piscataway, NJ, USA, 286–292. doi:10.1109/FPL.2019.00053
[67] Prateek Sahu, Shijia Wei, Neeraja J. Yadwadkar, and Mohit Tiwari. 2025. Understanding Sidecars in Cloud Orchestration. In 3rd Workshop on Serverless Systems, Applications and Methodologies (SESAME '25). Association for Computing Machinery, New York, NY, USA, 1–11.
[68] Nicola Santoro and Peter Widmayer. 2007. Agreement in synchronous networks with ubiquitous faults. Theoretical Computer Science 384, 2 (2007), 232–249. doi:10.1016/j.tcs.2007.04.036 Structural Information and Communication Complexity (SIROCCO 2005).
[69] Gustavo Sutter, Mario Ruiz, Sergio López-Buedo, and Gustavo Alonso. 2018. FPGA-based TCP/IP Checksum Offloading Engine for 100 Gbps Networks. In 2018 International Conference on ReConFigurable Computing and FPGAs (ReConFig). IEEE, Piscataway, NJ, USA, 1–6. doi:10.1109/RECONFIG.2018.8641729
[70] Systems Group of ETH Zürich, Switzerland and HPCN Group of UAM, Spain. 2025. 100G-fpga-network-stack-core Github page on the UDP branch. https://github.com/hpcn-uam/100G-fpga-network-stack-core/tree/872d53d706c04dad50fc50faeb1bb96256060ffe. Accessed: 2025-04-04.
[71] Rebecca Taft, Irfan Sharif, Andrei Matei, Nathan VanBenschoten, Jordan Lewis, Tobias Grieger, Kai Niemi, Andy Woods, Anne Birzin, Raphael Poss, et al. 2020. CockroachDB: The resilient geo-distributed SQL database. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data. Association for Computing Machinery, New York, NY, USA, 1493–1509. doi:10.1145/3318464.3386134
[72] Rebecca Taft, Irfan Sharif, Andrei Matei, Nathan VanBenschoten, Jordan Lewis, Tobias Grieger, Kai Niemi, Andy Woods, Anne Birzin, Raphael Poss, Paul Bardea, Amruta Ranade, Ben Darnell, Bram Gruneir, Justin Jaffray, Lucy Zhang, and Peter Mattis. 2020. CockroachDB: The Resilient Geo-Distributed SQL Database. In Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data (Portland, OR, USA) (SIGMOD '20). Association for Computing Machinery, New York, NY, USA, 1493–1509. doi:10.1145/3318464.3386134
[73] The Apache Software Foundation. 2025. ZooKeeper Administrator's Guide. https://zookeeper.apache.org/doc/r3.1.2/zookeeperAdmin.html. Accessed: April 6, 2025.
[74] The etcd Authors. 2025. etcd: Distributed Reliable Key-Value Store. https://etcd.io/. Accessed: April 6, 2025.
[75] The Kubernetes Authors. 2024. Kubernetes: Production-Grade Container Orchestration. https://kubernetes.io. Accessed: 2025-04-12.
[76] P. Urban, N. Hayashibara, A. Schiper, and T. Katayama. 2004. Performance comparison of a rotating coordinator and a leader based consensus algorithm. In Proceedings of the 23rd IEEE International Symposium on Reliable Distributed Systems (SRDS 2004). IEEE, Piscataway, NJ, USA, 4–17. doi:10.1109/RELDIS.2004.1352999
[77] P. Verissimo and A. Casimiro. 2002. The timely computing base model and architecture. IEEE Trans. Comput. 51 (8 2002), 916–930. Issue 8. doi:10.1109/tc.2002.1024739
[78] Yiliang Wan, Nitin Shivaraman, Akshaye Shenoi, Xiang Liu, Tao Luo, and Jialin Li. 2025. Building State Machine Replication Using Practical Network Synchrony. arXiv:2507.12792 [cs.DC] https://arxiv.org/abs/2507.12792
[79] Xilinx. 2025. Xilinx Alveo U280 Product Brief. https://www.xilinx.com/content/dam/xilinx/publications/product-
briefs/alveo-u280-product-brief.pdf. Accessed: 2025-04-04.
[80] Tian Yang, Robert Gifford, Andreas Haeberlen, and Linh Thi Xuan Phan. 2019. The Synchronous Data Center. In HotOS '19: Workshop on Hot Topics in Operating Systems. Association for Computing Machinery, New York, NY, USA, 142–148. doi:10.1145/3317550.3321442
[81] Wensong Zhang and Linux Virtual Server Project. 2025. IP Virtual Server (IPVS). http://www.linuxvirtualserver.org/software/ipvs.html. Accessed: 2025-04-04.
[82] Siyuan Zhou and Shuai Mu. 2021. Fault-tolerant replication with pull-based consensus in MongoDB. In Proceedings of the 18th USENIX Symposium on Networked Systems Design and Implementation (NSDI 21). USENIX Association, USA, 687–703. https://www.usenix.org/conference/nsdi21/presentation/zhou
[83] Yang Zhou, Zezhou Wang, Sowmya Dharanipragada, and Minlan Yu. 2023. Electrode: Accelerating Distributed Protocols with {eBPF}. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23). USENIX Association, USA, 1391–1407. https://www.usenix.org/conference/nsdi23/presentation/zhou
[84] Xiangfeng Zhu, Guozhen She, Bowen Xue, Yu Zhang, Yongsu Zhang, Xuan Kelvin Zou, XiongChun Duan, Peng He, Arvind Krishnamurthy, Matthew Lentz, Danyang Zhuo, and Ratul Mahajan. 2023. Dissecting Overheads of Service Mesh Sidecars. In 2023 ACM Symposium on Cloud Computing (SoCC '23). Association for Computing Machinery, New York, NY, USA, 142–157.
A Popular uniform consensus (POPUC)
This section provides the fully-detailed specification of the POPUC protocol, and provides pen and paper proofs for its correctness.
A.1 Detailed specification
POPUC (Alg. 2, the fully-detailed version of the protocol presented in Alg. 1) uses a classical round-based approach and optimal early stopping. The core logic of POPUC was inspired by the algorithm for omission failures of Parvédy & Raynal [53], with substantial differences to fit practical applications, as we will discuss in ??.
Properties of collaborative consensus. POPUC solves a variant of consensus that we call collaborative consensus (co-consensus). Uniform co-consensus has a PROPOSE downcall and DECIDE upcall, satisfying the following properties:
Validity: If a process DECIDES set V, then every element v of V was PROPOSED.
Termination: Every correct process eventually DECIDES some set of values V.
Uniform agreement: No two processes , DECIDE different sets of values .
Thus, co-consensus can decide several proposed values simultaneously. We assume that proposed values are distinct, e.g., messages with unique identifiers. We use CRASH to denote when a process recognizes that it is faulty and quits execution. We also assume that processes quit execution after the DECIDE event and that all calls execute atomically.
System model reminders and timer primitives. POPUC assumes a synchronous model with crash-stop and omission failures, like [53], to better capture the stability of programmable network hardware in modern datacenter environments. Synchrony assumptions are required to guarantee liveness, but not safety, as we will discuss shortly. We break down the synchrony assumptions into three parameters: , and . bounds most interaction latency between any two processes , i.e., communication between processes together with end-to-end processing happens most of the time within . bounds clock drifts between two processes, which is easily achieved in practice and assumed by state-of-the-art datacenter coordination works, including for correctness, e.g. [26]. We further assume that all processes call PROPOSE within a fixed time window . POPUC interacts with a timer abstraction through the START-TIMER and RESTART-TIMER. The timer calls TIMEOUT every time interval of duration , i.e., the maximum delay in which correct processes can expect to receive a message.
Failure model reminders. A process is faulty if it commits a crash-stop or at least one omission failure, otherwise it is correct. Omission failures occur when processes fails
Algorithm 2: POPUC (detailed). Executed by every .
1 , suspect , locked
2 roundLiveset
3
4 to PROPOSE(val):
5
6 START-TIMER
7 upon TIMEOUT:
8 suspect
9 if then CRASH
10 if then
11 if or then
12
13 elif then DECIDE( )
14 if then DECIDE( )
15 // advance to next round
16 roundLiveset
17 RESTART-TIMER
18 SEND( , , ) to every
19 upon RECV( , , ):
20 if then Lines 8-18
21 if and then
22
23
24 roundLiveset
to send of receive a message, capturing both message loss and arbitrary delays. We consider a system of processes with at most faulty processes (crash-stop or omission failures). A quorum of correct processes exists, where with being the maximum number of faulty processes. We use to denote the actual number of faulty processes in a given execution. POPUC is live as long as a quorum of correct processes exists, and always safe, even if .
Algorithm (Alg. 2). Unlike common specifications of synchronous algorithms, rounds are driven by the timer abstraction rather than by a global round counter: PROPOSE (called asynchronously by processes) arms the timer through START-TIMER, while TIMEOUT closes the current round (lines 8-15) and opens the next one (line 15-18). The body of the TIMEOUT routine, i.e., the round change routine, is also invoked in advance through whenever a message from a process that is one roundfurther ahead is received (line 20). This mechanism ensures that processes always multi-SEND their value before receiving any message from that round, proceeding synchronously, unlike common synchronous algorithms which assume perctly synchronized rounds [14, 58]. We will discuss below how, in practice, never receives messages with a round larger than .
At the core, in every round, a process multi-sends its own proposal set containing all the values it knows together with its locked set (line 18); in the first round, will contain only the 's proposal (line 5). Incoming values and locks are merged into and locked (line 22 and line 23) and relayed in later rounds.
The protocol uses the same mechanisms as Alg. 1 (highlighted with matching colors) to determine whether it is safe to decide on :
Active exclusion: roundLiveset records the processes from which has received a message in the current round (line 24) and is reset to whenever a round is closed, so that suspicions are always recomputed on evidence gathered within a single round. At the start of a round, every process missing from roundLiveset is added to suspect and is permanently excluded from the send (line 18) and receive (line 19) operations of all future rounds: an excluded process can never re-enter roundLiveset, hence it remains suspected forever. This mechanism filters out late messages, so arbitrary delays are turned into omission failures. Hence, a process can never learn a new value from a process it suspects. Active exclusion also implies that can only receive messages from processes which are at most one round ahead of it, i.e., , since a process that is two rounds ahead will have already excluded from its send set.
Locking: a process is “locked” when it knows all the values that can be known in the current round, and consequently no further value can be learnt. This mechanism is presented in related synchronous protocols and it is necessary to guarantee Uniform Agreement [24, 53, 58]. The locking condition evaluates when has completed more rounds than the number of processes it suspects (line 11), since by then it has heard everything its peers know, including (possibly) values from processes that has suspected earlier than its peers. Intuitively, thanks to the active exclusion mechanism, late messages from cannot reach after it is locked, hence it will not learn any new values. Also, updates its locked set when it receives a non-empty locked from another process , in which case adopts locked (line 23) and later adds itself to it (line 12) since it has now all the values that knows.
Decide or quit: if suspects more than processes, it learns that it is faulty, i.e., does not belong to the quorum of correct processes. Hence, it declares itself faulty and quits execution (line 9). decides early when it receives a message from a majority of locked processes, i.e., (line 13); out of is a majority, so any two processes that decide this way have seen locked sets that overlap, and no process can decide on knowledge that such a majority does not share. This is what guarantees the uniformity of the agreement property. Even if the “locked majority” condition is not met, processes can still decide in in round if they are still alive by then (line 13). The sufficiency of follows from the classical pigeonhole argument [4, 23]: faulty processes can each spoil at most one round, so among rounds at least one must be failure-free (pigeonhole); once that clean round happens, all correct processes end up with the same information.
The protocol terminates in rounds, a proven lower bound – a proven lower bound for uniform consensus in synchronous systems with omission failures [4, 14].
Important differences to Parvédy & Raynal [53]. To fit practical applications, POPUC differs in three key aspects.
-
Deciding on sets. POPUC decides a set of values V rather than a single value – solving co-consensus as opposed to classical “selective” consensus. This simple optimization is highly effective as it substantially increases throughput and mitigates the cost of all-to-all message relays.
-
Handling round mismatch and late messages. POPUC explicitly considers initial synchronization window and bounded clock drift, rather than a perfectly synchronized round counter [53] which makes algorithms more compact but is unimplementable in practical systems. As a result, a process may lag behind, e.g., receive a message before even starting. POPUC processes explicitly handle messages from processes one round ahead of them by immediately triggering the start of the next round in advance (line 20). Processes also explicitly discard late messages from slow peers (line 21) to avoid polluting their V and locked sets, which would otherwise lead to inconsistent decisions.
-
Full value set relay to simplify verification. Processes in POPUC always multi-send the full value set instead of just the values learned in the previous round [53]. This does not improve efficiency, but it makes the algorithm easier to understand and considerably cheaper to model check, which is what allowed us to verify POPUC with the APALACHE model checker [52]. Full-relay keeps the reachable state graph smaller than new-relay does, mainly by removing the per-process new variable and the round-boundary action resetting it, as a message payload is simply a projection of the sender's current state. Furthermore, POPUC increases the bandwidth consumption only in the occurrence of failures, i.e., with more than 2 rounds, as both versions have processes multi-send V in the second round. As failures are extremely rare, POPUC benefits from verified correctness at little practical cost.
A.2 Formal verification
We specified POPUC in TLA [39] and checked its properties using the APALACHE model checker [52]. All properties of POPUC were shown to hold. The full formal specification and instructions for independent checking are readily available upon request and will be published upon acceptance of the paper. In addition we provide a detailed correctness pen-and-paper proof of POPUC below.
A.3 Correctness
We prove that Alg. 2 satisfies Validity, Termination and Uniform agreement in a system of processes, of which at most t are faulty. The proof follows the structure of Parvédy & Raynal [53].
Notation. A process closes round when it runs the round change routine (lines 8 to 18), either on TIMEOUT or through the catch-up of line 20. It crashes at, becomes locked at, or decides at when it executes line 9, line 12, or one of lines 13 and 14 while closing . We write , and for the values of the corresponding variables at the end of that routine, and for the value of when line 11 is evaluated, i.e. after all the merges of round but before may add itself. If decides at we let for every , since is no longer updated. We also write:
• for the set of processes whose round message merged;
• stopped[r] for the processes that crashed at some round
• good[r] = for those still running or already decided;
- for the values known by the processes of good[r].
A process knows at if , and learns at if . The round message of is the one it sends at line 18 while closing round ; it carries and .
Preliminary observations
Observation A.1 (Asynchronous round alignment). A message is merged only by a process that is in the round the message is tagged with. Hence merges the round message of only while it is in round , and that message carries and .
Proof. line 21 merges only when . A message with first triggers the round change of line 20, after which and the test succeeds; messages with or are discarded. Note that this is a property of the protocol text alone: it holds whatever the message delays.
Assumption A.1 (Synchronous rounds). The timeout duration is chosen so that the round message of a correct process reaches every correct process before the latter closes round . In particular correct processes never lag behind one another by more than one round, so their messages are never discarded as stale.
Note that safety properties (Theorem A.1 and Theorem A.2) rely only on Observation A.1 and not assumed time bounds. Timing assumptions (Assumption A.1) are used only for liveness (Theorem A.3), through the following property:
Observation A.2 (Active exclusion). If closes round , then . In particular, if then merged the round message of every process it does not suspect at . Moreover, if and , then merges no further message of and sends it none.
Proof. roundLiveset is reset to when round is closed (line 16) and then grows, at every merge, with the sender and with the current value of (line 24); since only grows, the union of these values is , which subsumes . line 8 takes the complement. The last claim is the guard of line 19 and the send set of line 18. The exception on plays the role of the one used in [53]: a process that decides early stops sending, and without the exception a correct process could accumulate more than suspicions and quit at line 9 without deciding.
Observation A.3 (Relay). If merges the round message of , then and (lines 22 and 23).
Observation A.4 (Locking). never shrinks and a process becomes locked at most once. Moreover:
-
if then is locked at at the latest; equivalently, if is locked at no round then for every ;
-
implies that became locked at some round , unless .
Proof. The first point is the test of line 11. For the second, a process enters a lock set either by adding itself (line 12) or by relay of a set that already contained it (line 23), and by Observation A.1 a relay carries , hence costs at least one round.
Observation A.5 (Survivors keep a majority). If then , so has at least elements.
Safety.
Theorem A.1 (Validity). If a process DECIDES V, then every was PROPOSED.
Proof. is initialised with the proposal of (line 5) and grows only with sets received from other processes (line 22). By induction on rounds, every message carries proposed values only. The decided set is .
Lemma A.1 (Local knowledge grows). If and , then .
Proof. No value is ever removed from .
Lemma A.2 (Global knowledge shrinks). If , then .
Proof. It suffices to prove . Let with . If then the condition holds due to . Otherwise learns at from the round message of some , so (Observation A.1 and A.3). As sent that message while closing , it did not crash at , hence and .
Lemma A.3 (Lock implies knowledge completeness). Assume no process decides before , and let become locked at . Then .
Proof. The locking condition is or (line 11), hence we have two cases:
Case (i) : , hence .
Consider a process and a value . We show that . Assume as the round at which learns . Since , then . Specifically, we have two subcases:
-
Subcase . Assume by contradiction that . By Lemma A.1, does not know at . As processes always forward the full value set, it follows that has passed through a chain of distinct processes before reaching . As , must suspect at least processes, i.e., , contradicting .
-
Subcase . Assume by contradiction as above. Here must suspect processes plus , from which it would learn at (Observation A.3). Hence , again contradicting .
-
Subcase . By Observation A.5 both and have at least elements, and , so there is some . If then by Observation A.3 must have relayed to in later rounds, so , contradicting the case assumption. Otherwise, is not locked at any round because , so (Observation A.4) and : merged the round message of , so sent to at and . As , Observation A.2 gives , so merged the round message of , which carries . Hence , contradicting .
Case (ii) :
must have locked through Case (i) or received a lock from some that locked through Case (i). In either case, , by Observation A.3. By Lemma A.2, , so . The reverse inclusion is always true, so .
Lemma A.4. Let be locked at some round , and assume no process decides before . Then .
Proof. , by Lemma A.3, Lemma A.1, the definition of , and Lemma A.2.
Lemma A.5. A process is locked when it decides.
Proof. line 13 is the elif branch of line 10, so it is reached only when already. A process reaching line 14 closes round without crashing, so ; the test of line 11 then holds and is locked at at the latest, before line 14 is evaluated.
Lemma A.6 (Locks carry knowledge). If , then became locked at some round and .
Proof. By induction on ; lock sets are initially empty. There are three ways for to be in . If added itself at (line 12), then and the claim is trivial. If was already in , the induction hypothesis and Lemma A.1 give . Otherwise arrived with the round message of some , which carries and (Observation A.1). Applying the induction hypothesis to at yields and , and by Observation A.3.
Theorem A.2 (Uniform agreement). No two processes decide different sets of values. This holds for any number of faulty processes.
Proof. Let be the first round at which a process decides, and let decide at . By Lemma A.5 is locked at some round , so decides (Lemma A.4). The same argument applies to any process deciding at , so all decisions taken at are identical.
Let now decide at . Every process of good decides while closing (line 14), so and ; at round the test of line 14 fails, so decided at line 13 with , i.e. . Since , Observation A.5 gives , and , so there is some . By Lemma A.6, became locked at some , and by Lemma A.3 and Lemma A.2, .
It remains to show . By Observation A.2, . If , then by Lemma A.1. If , the same follows from Lemma A.6. If , its round message carries (Observation A.1 and
Lemma A.1), which merges. In all cases , so decides as well.
The proof uses only , the bound enforced at line 9, and the early decision threshold . No assumption on the actual number of faulty processes is made.
Liveness
Lemma A.7. No correct process ever suspects a correct process. Consequently for every correct and every , and no correct process crashes.
Proof. By induction on ; assume that up to round no correct process suspected a correct one, so no correct process crashed. Let and be correct. While both are running there is no omission between them, and by Assumption A.1 the round message of reaches before closes , so . Assume instead that decided at some and stopped. By Lemma A.5 it is locked at some . If , its round message carries and is merged by , so from then on and the exception of Observation A.2 applies. If , then decided at line 14 while closing , so , also decides while closing , and no round is closed. In all cases , hence and the test of line 9 never holds for .
Theorem A.3 (Termination). Every correct process decides.
Proof. By Lemma A.7 a correct process never crashes at line 9, and by Assumption A.1 its timer makes it close one round after the other. It therefore closes round unless it decided earlier, and decides at line 14.
B POPUC-based state machine replication (SMR)
This section presents the TOB abstraction built on top of POPUC to achieve SMR, a variant of POPUC that relays full value sets and a discussion of possible algorithmic optimizations.
B.1 Building blocks for total order broadcast
To simplify presentation, we introduce in this section the abstractions that are used as part of the full TOB specification, and then detail TOB itself in the next section. To better distinguish between different algorithms, we refer in the following to the latter algorithm from ??, dubbed simply POPUC in the main paper, explicitly as POPUC in the following.
Synchronized start. Synchronous algorithms that are round-based, including POPUC, leverage the assumption that all processes start within a fixed time window. In real-world applications, we need a way to enforce this by transitioning from the asynchronous model to the synchronous
Algorithm 3: SYNC-START. Uses reliable failure detector P. Executed by every .
1 leader ← MIN(Π) 2 started ← FALSE 3 to SYNC-START: 4 if and started = FALSE then 5 SEND(START) to every 6 started ← TRUE 7 else 8 SEND(START-REQUEST) to leader 9 upon RECV(START-REQUEST): 10 SEND(START) to every 11 started ← TRUE 12 upon RECV(START): 13 START 14 upon FAILURE and started = FALSE: 15 16 leader ← MIN(Π) // leader election 17 SYNC-START
one. Alg. 3 introduces a SYNC-START primitive for this purpose, using a leader to unequivocally broadcast a starting signal for a round-based synchronous algorithm. A reliable (“perfect”) failure detector P ensures that a group of correct processes will eventually start. The maximum synchronization time window is equal to twice the upper-bounded interaction latency of our model. Note that P (commonly approximated in practice by the use of worst-case timeouts and selective process killing) is needed exclusively for this primitive, whose use is limited to the first phase of the TOB algorithm, as we will see shortly. Recent work [63] demonstrates the feasibility of implementing such P in datacenters. SYNC-START uses similar logic as precise clock synchronization (e.g., precision time protocol [32]) mechanisms, which can be used instead or in combination with SYNC-START to trigger the start of round-based synchronous algorithm.
Popular uniform consensus for multiple instances (POPUC ). The second building block is an adaptation of POPUC to account for multiple sequential consensus instances used by the TOB abstraction. In POPUC , a process adds a consensus instance number ( ) to relayed messages. is used to keep track of possible mismatching consensus instances between different processes, e.g., when advances to the next consensus instance before . Processes proceed with POPUC logic only when they receive messages belonging to the current consensus instance, ignore messages from prior instances, and declare themselves faulty through CRASH when they notice they are a number of instances “behind”.
B.2 Popular total order broadcast (POPTOB)
The POPTOB primitive uses SYNC-START and multiple sequential instances of POPUC to implement TOB. We use the uniform variant of TOB with a BROADCAST downcall and a DELIVER upcall which satisfies the following properties:
Validity: If a correct process BROADCASTS a message , then eventually DELIVERS .
No duplication: No message is DELIVERED twice.
No creation: If a process DELIVERS a message m with sender , then m was previously BROADCAST by process .
Uniform agreement: If a message m is DELIVERED by some process (correct or not), them m is eventually DELIVERED by every correct process.
Uniform total order: Let and be any two messages and suppose and are any two processes (correct or faulty) that DELIVER and . If DELIVERS before , then DELIVERS before .
Algorithm 4: POPTOB. Executed by every . Uses POPUC .
1 pending, delivered 0 2 3 to BROADCAST(v): 4 pending pending 5 if then 6 7 SYNC-START(PROPOSE( , v)) 8 upon DECIDE( ): 9 for all | do 10 if delivered then 11 DELIVER(v) 12 pending pending 13 delivered delivered 14 15 if pending = 0 then 16 PROPOSE( , ) 17 else 18 PROPOSE( , NEXT(pending))
Algorithm. Alg. 4 outlines POPTOB. It uses a series of monotonically-increasing, back-to-back consensus instances to order a list of values. POPTOB uses the SYNC-START primitive at the first BROADCAST call to ensure that all processes POPUC -PROPOSE within a fixed time window . Future BROADCAST events add values to the pending set which acts as a buffer for BROADCAST calls in quick succession (line 4). The NEXT primitive is used to randomly pick a value from pending to propose in the following consensus instance (line 17). If there are no pending values, the value is proposed instead to serve as a heartbeat for other processes (line 16). This is a key mechanism to avoid false positives, since processes not participating in a round are considered to be faulty in our model with omission failures. Furthermore, heartbeats maintain the synchronous operation of the algorithm in the temporary absence of a message: running consensus instances independently, i.e., not back-to-back, would require to SYNC-START every consensus instance, leading to expensive message relays. Heartbeat values are filtered before delivery (line 10). forall to be deterministic and cycle through elements of the set in the same order for all processes which is easily achieved, e.g., by using message and sender IDs. In failure-free executions, all processes execute a series of consensus instances, each of which take exactly 2 rounds thanks to the early stopping feature of POPUC ( rounds as lower bound). Upon failures, some processes might take additional rounds, leading to overlapping consensus instances. The POPUC abstraction (??) deals with this issue by ensuring that only instance-aligned processes participate in POPTOB.