Skip to main content
QUICK REVIEW

[Paper Review] Network Hardware-Accelerated Consensus

Huynh Tu Dang, Pietro Bressana|arXiv (Cornell University)|May 18, 2016
Distributed systems and fault toleranceComputer Science41 references8 citations
TL;DR

This paper proposes CAANS, a network hardware-accelerated consensus system that implements the full Paxos protocol directly in programmable network devices using P4, achieving line-rate throughput and latency only slightly above packet forwarding. By offloading consensus logic from servers to the network, CAANS reduces latency and increases throughput, making it a drop-in replacement for software-based Paxos with portability across FPGAs, NPUs, and ASICs.

ABSTRACT

Consensus protocols are the foundation for building many fault-tolerant distributed systems and services. This paper posits that there are significant performance benefits to be gained by offering consensus as a network service (CAANS). CAANS leverages recent advances in commodity networking hardware design and programmability to implement consensus protocol logic in network devices. CAANS provides a complete Paxos protocol, is a drop-in replacement for software-based implementations of Paxos, makes no restrictions on network topologies, and is implemented in a higher-level, data-plane programming language, allowing for portability across a range of target devices. At the same time, CAANS significantly increases throughput and reduces latency for consensus operations. Consensus logic executing in hardware can transmit consensus messages at line speed, with latency only slightly higher than simply forwarding packets.

Motivation & Objective

  • To address the performance bottleneck of software-based consensus protocols in data centers by moving consensus logic into the network infrastructure.
  • To enable high-throughput, low-latency consensus operations by leveraging programmable network hardware such as FPGAs, NPUs, and ASICs.
  • To provide a portable, application-level compatible implementation of Paxos that functions as a drop-in replacement for existing software libraries.
  • To evaluate the performance of hardware-accelerated consensus across diverse programmable network devices using a high-level data-plane programming language.
  • To demonstrate that network hardware can significantly improve consensus performance without requiring changes to application logic or network topology.

Proposed method

  • Implementing the full Paxos consensus protocol in P4, a high-level data-plane programming language, to enable portability across programmable network devices.
  • Deploying the consensus logic directly in network switches and NICs, allowing consensus messages to be processed and forwarded at line rate.
  • Using commodity programmable hardware such as Barefoot P4-enabled switches, FPGAs (e.g., Xilinx VC709, NetFPGA SUME), and NPUs (e.g., Netronome NFP-6xxx) to execute consensus logic in the data plane.
  • Designing the system to maintain compatibility with existing software-based Paxos APIs, enabling seamless integration with existing applications.
  • Optimizing message transmission by eliminating software protocol stack overhead and reducing network hops through in-network processing.
  • Evaluating performance across multiple hardware platforms, including real hardware (FPGAs, NPU) and simulation, under varying network conditions and workloads.

Experimental results

Research questions

  • RQ1Can consensus logic be effectively offloaded from servers to network devices without sacrificing protocol correctness or compatibility?
  • RQ2To what extent can programmable network hardware improve the throughput and latency of consensus protocols compared to software implementations?
  • RQ3How does the performance of hardware-accelerated consensus vary across different programmable network devices (e.g., FPGAs, ASICs, NPUs)?
  • RQ4Can a P4-based implementation of Paxos achieve line-rate performance while remaining portable across diverse network hardware platforms?
  • RQ5What is the impact of moving consensus from the application layer to the network layer on end-to-end system performance and scalability?

Key findings

  • CAANS achieves line-rate throughput on 10G links, saturating the network capacity with consensus traffic.
  • Latency for consensus message transmission in CAANS is only slightly higher than simple packet forwarding, demonstrating minimal overhead from in-network processing.
  • The system significantly reduces end-to-end latency compared to software-based Paxos by eliminating software stack processing and reducing network hops.
  • CAANS is a drop-in replacement for software Paxos, maintaining the same API and enabling direct performance comparison without application changes.
  • The implementation is portable across multiple hardware platforms, including FPGAs, NPUs, and ASICs, thanks to the use of P4 as the programming abstraction.
  • Evaluation on real hardware and simulation confirms that the network becomes the performance bottleneck only when learners and applications are saturated, not the consensus logic itself.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.