The Case for Accelerating BFT Protocols Using In-Network Ordering

Guangda Sun, Xin Zhe Khooi, Yunfan Li, Mingliang Jiang, Jialin LiarXiv 2022 · DOI

Abstract

Consensus in decentralized systems is notoriously slow due to the "Byzantine tax"—the heavy communication and cryptographic overhead required to handle malicious nodes. This paper introduces Matrix, a Byzantine Fault Tolerant (BFT) protocol that offloads message ordering to programmable network switches. By utilizing a new network primitive called Authenticated Ordered Multicast (AOM), Matrix achieves consensus in a single round-trip, outperforming state-of-the-art protocols by up to 3.4× in throughput and 42× in latency.

Introduction: The Byzantine Tax

In modern data centers, State Machine Replication (SMR) ensures that a cluster of servers acts as a single, reliable entity. While Crash Fault Tolerance (CFT) handles simple node failures, mission-critical applications like permissioned blockchains require Byzantine Fault Tolerance (BFT). BFT protocols must account for nodes that act maliciously, lie, or send conflicting information (equivocation).

Traditional BFT protocols, such as PBFT or HotStuff, treat the network as a "dumb" pipe. To reach agreement, replicas engage in multiple rounds of all-to-all communication and perform expensive digital signatures. This "Byzantine tax" creates a massive performance bottleneck, leading to high latency and low throughput that makes BFT impractical for high-speed data center environments.

The Matrix Protocol and AOM

Matrix addresses these bottlenecks by moving the responsibility of message ordering from the application layer to the network layer. The core of Matrix is a new network primitive called Authenticated Ordered Multicast (AOM). AOM ensures that all correct receivers deliver multicast messages in the same sequence and provides transferable authentication, allowing a receiver to prove to others that a message was the official next entry in the sequence.

Matrix achieves lower complexity and message delay compared to traditional BFT protocols.

By leveraging AOM, Matrix eliminates most cross-replica coordination in the common case. Replicas receive an ordered request from the switch, verify its authenticity, and execute it immediately. This hardware-rooted defense against "equivocation" prevents a malicious leader from sending conflicting requests to different nodes.

Hardware-Software Co-Design

Implementing AOM on resource-constrained hardware required significant co-design. The authors developed two distinct versions:

  1. HMAC-based: Implemented on programmable switch ASICs (e.g., Intel Tofino) using "pipeline folding" to fit complex logic into limited hardware stages.
  2. Public-Key-based: Uses a heterogeneous architecture where the switch is coupled with an FPGA-based cryptographic accelerator (Xilinx Alveo U50) to handle high-speed ECDSA signatures.
Architectural overview of (a) HMAC-based switch logic and (b, c) the Public-Key accelerator design.

Evaluation and Key Results

The authors evaluated Matrix using synthetic Echo-RPC and the Yahoo! Cloud Serving Benchmark (YCSB) against industry standards like PBFT, HotStuff, and Zyzzyva.

  • Throughput: The HMAC version of Matrix achieved 2.5× higher throughput than PBFT and 3.4× higher than HotStuff.
  • Latency: Matrix reduced end-to-end latency by 42× compared to HotStuff and 14.6× compared to PBFT.
  • Scalability: While traditional protocols suffer from $O(N^2)$ communication overhead, Matrix’s performance remains nearly flat as replicas are added, scaling to 13 replicas with minimal throughput degradation.
  • Resilience: Matrix remains stable under packet loss, using AOM’s built-in drop detection to recover messages without triggering expensive global agreement rounds.

Conclusion

Matrix demonstrates that the network can be a proactive participant in consensus. By offloading ordering and authentication to the switch, Matrix collapses multiple communication rounds into a single step. While it currently requires specialized hardware like programmable switches and FPGAs, it points toward a future where BFT performance is no longer a barrier to high-speed decentralized applications. Future work involves refining failure models for malicious switches and optimizing header sizes for larger clusters.

Summary updated

BibTeX
@misc{sun2022case,
  author = {Guangda Sun and Xin Zhe Khooi and Yunfan Li and Mingliang Jiang and Jialin Li},
  title = {{The Case for Accelerating BFT Protocols Using In-Network Ordering}},
  year = {2022},
  eprint = {2210.12955},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.12955},
}
Figure