Blockchain Machine: A Network-Attached Hardware Accelerator for Hyperledger Fabric

Haris Javaid, Ji Yang, Nathania Santoso, Mohit Upadhyay, Sundararajarao Mohan, Chengchen Hu, Gordon J. Brebner

TL;DR

Researchers have developed BMac (Blockchain Machine), a network-attached FPGA accelerator that offloads the heavy lifting of Hyperledger Fabric’s validation phase. By replacing slow software-based bottlenecks with a custom hardware pipeline and a lean communication protocol, BMac achieves up to a 12x speedup in block validation and pushes throughput to nearly 69,000 transactions per second (tps).

What Problem Does This Paper Address?

While permissioned blockchains like Hyperledger Fabric are much faster than Bitcoin or Ethereum, they still struggle to meet the demands of global enterprise applications (like Visa-scale payments requiring >65,000 tps).

In Fabric’s "execute-order-validate" model, the validation phase is a notorious bottleneck. Every "validator peer" must unmarshal complex data structures (Protobufs), verify cryptographic signatures (ECDSA), and check for data conflicts. Currently, these tasks are handled by general-purpose CPUs, which are ill-equipped for the massive parallel processing required. Even with multi-core servers, software overhead and inefficient networking protocols (gRPC/TCP) limit how many transactions a network can finalize per second.

Methods

The authors propose a hardware/software co-designed platform called BMac. Key innovations include:

  • Network-Attached FPGA: Instead of sending data through the host CPU first, the FPGA (a Xilinx Alveo U250) sits directly on the network. It intercepts block data as it arrives, bypassing the CPU to reduce latency.
  • BMac Protocol: The standard Gossip protocol used by Fabric is "heavy" due to its use of Protobufs and TCP. BMac introduces a hardware-friendly protocol using self-contained UDP packets. It strips out redundant data—like repetitive identity certificates—and replaces them with short 16-bit IDs.
  • Pipelined Block Processor: Inside the FPGA, the authors built a multi-stage pipeline. One stage handles block-level verification, while another handles transaction-level validation (VSCC) using multiple parallel ECDSA engines.
  • Early Abort Logic: The hardware is designed to "fail fast." If a transaction is found to be invalid early in the pipeline, the machine skips the remaining expensive cryptographic checks for that transaction.
  • Hybrid Execution: Bottleneck operations (parsing, hashing, signature verification) happen on the FPGA, while non-bottleneck tasks (like final ledger commits to disk) remain on the host CPU.

Datasets

The system was evaluated using Hyperledger Caliper, the standard benchmarking tool for the Fabric ecosystem. The authors tested two primary workloads:

  1. Smallbank: A benchmark simulating basic banking operations (transfers, balance checks).
  2. DRM (Digital Rights Management): A benchmark simulating the management of digital assets. Performance was compared against a standard software-only validator peer running on a server with Intel Xeon processors.

Key Insights and Ideas

  • The "Identity Tax": The researchers discovered that at least 73% of a block's size in Fabric is often just repetitive identity certificates. By caching these identities in hardware and using short IDs, they reduced network bandwidth usage by up to 85%.
  • Parallelism is King: Software validators process transactions sequentially or with limited threading. BMac’s hardware architecture allows for "parallel-pipelined" execution, where multiple ECDSA engines work on different signatures simultaneously while the next block is already being parsed.
  • Protocol Matters: Moving from a stream-based protocol (TCP) to a packet-based one (UDP) allowed for "cut-through" processing. The FPGA can start validating the beginning of a block before the end of the block has even arrived over the wire.

Key Results

  • Throughput: BMac reached a commit throughput of 68,900 tps, a massive leap from the ~5,600–7,200 tps achieved by the software-only baseline.
  • Validation Speedup: The hardware-accelerated validation phase was up to 12x faster than the software equivalent.
  • Latency: The 95th percentile for end-to-end block transmission time was reduced by 30% (from 26ms down to 18ms).
  • Efficiency: Even the largest BMac configuration used less than half of the available FPGA resources, suggesting room for even more complex logic or higher parallelism in the future.

Limitations and Future Work

  • Database Scaling: The current implementation uses a small in-hardware key-value store (using FPGA BRAM/URAM). For massive real-world ledgers, the authors suggest a hybrid approach where the FPGA handles "hot" (frequently accessed) data while the host CPU manages the full persistent database.
  • Reliability: The BMac protocol currently lacks a retransmission scheme for lost UDP packets. While suitable for controlled datacenter environments, a more robust mechanism (like Go-Back-N) would be needed for less stable networks.
  • Version Compatibility: The work was integrated with Fabric v1.4 LTS. While the principles apply to newer versions (like v2.2+), the software shims would need updating to support the latest Fabric features.

Summary updated

BibTeX
@inproceedings{javaid2022blockchain,
  author = {Haris Javaid and Ji Yang and Nathania Santoso and Mohit Upadhyay and Sundararajarao Mohan and Chengchen Hu and Gordon J. Brebner},
  title = {{Blockchain Machine: A Network-Attached Hardware Accelerator for Hyperledger Fabric}},
  booktitle = {ICDCS},
  year = {2022},
  doi = {10.1109/icdcs54860.2022.00033},
}
Figure