uBFT: Microsecond-Scale BFT using Disaggregated Memory

Marcos K. Aguilera, Naama Ben-David, Rachid Guerraoui, Antoine Murat, Athanasios Xygkis, Igor Zablotchi

TL;DR

uBFT is the first State-Machine Replication (SMR) system to achieve microsecond-scale latency while tolerating Byzantine (malicious) failures. By leveraging disaggregated memory as a simple, hardware-enforced "source of truth," uBFT provides strong security with only $2f+1$ replicas—matching the efficiency of systems that only handle simple crashes.

What Problem Does This Paper Address?

In modern data centers, applications like high-frequency trading engines and distributed caches (Redis, Memcached) require microsecond-scale performance. However, they are vulnerable to "Byzantine" failures—where a system component doesn't just crash but behaves arbitrarily due to bugs, hardware glitches, or malicious hacks.

Traditionally, protecting against these failures via Byzantine Fault Tolerance (BFT) has been prohibitively expensive. Standard protocols like PBFT require $3f+1$ replicas (e.g., 4 servers to tolerate 1 failure) and incur millisecond-scale latencies due to heavy cryptography. While some "hybrid" systems reduce the replica count to $2f+1$ using Trusted Computing Bases (TCBs) like Intel SGX, these TCBs are complex, have large attack surfaces, and add significant performance overhead. Furthermore, most BFT protocols require unbounded memory to track message history and prevent "equivocation" (a leader telling different things to different followers).

Methods

The authors introduce uBFT, which achieves its performance through three main innovations:

  1. Consistent Tail Broadcast (CTBcast): This is a new communication primitive. Unlike previous "Consistent Broadcast" models that require infinite memory to prevent a leader from lying about the past, CTBcast only guarantees the delivery of the last $t$ messages (the "tail"). This relaxation allows the system to operate with strictly bounded memory while still preventing the leader from contradicting itself.
  2. Disaggregated Memory as a TCB: Instead of using a complex CPU enclave (like SGX), uBFT uses disaggregated memory (memory accessible over the network via RDMA) as its trusted component. It assumes these memory nodes fail only by crashing. By using hardware-enforced "single-writer" permissions, uBFT creates a tamper-proof log that prevents a Byzantine leader from equivocating.
  3. Fast/Slow Path Design:
    • Fast Path: In the common case (no failures, low network jitter), uBFT uses a signature-less protocol that leverages unanimity to order requests in just $\sim10\mu s$.
  4. Slow Path: If the system detects slowness or faults, it falls back to a protocol using digital signatures and the disaggregated memory TCB to ensure safety and progress.

Datasets

The authors evaluated uBFT using a cluster of servers connected via 100 Gbps RDMA. They integrated uBFT with three real-world, high-performance applications to measure "Byzantine-resilience" overhead:

  • Memcached & Redis: Widely used key-value stores.
  • Liquibook: An open-source financial order matching engine.
  • Flip: A "no-op" toy application used to measure the absolute baseline latency of the replication layer.

Key Insights and Ideas

  • Simplicity is Security: By moving the TCB from a complex software enclave (SGX) to simple memory regions with hardware access control, the authors reduce the "attack surface" and the performance penalty of trust.
  • Equivocation is the Core Challenge: The primary reason BFT usually needs $3f+1$ replicas is to handle a leader that sends different values to different groups. uBFT proves that a very small amount of reliable, shared memory (< 1 MiB) is enough to "lock" a leader's decision and reduce the required replicas to $2f+1$.
  • The "Tail" is Enough: You don't need to remember every message since the beginning of time to stay safe. By combining checkpoints with a "tail" of recent messages, you can bound memory usage without sacrificing Byzantine security.

Key Results

  • Ultra-Low Latency: uBFT achieves end-to-end latency as low as 10 µs.
  • Massive Speedup: It is at least 50× faster than MinBFT (a state-of-the-art $2f+1$ BFT system based on SGX) in its fast path.
  • Low Overhead: Compared to Mu (the fastest known crash-only replication system), uBFT only adds about 2× latency overhead while providing much stronger Byzantine protection.
  • Practical for Apps: Adding Byzantine tolerance to Redis or Memcached using uBFT adds only about 10 µs of overhead to their native unreplicated performance.

Limitations and Future Work

  • Reliable Memory Assumption: uBFT assumes the disaggregated memory nodes themselves only fail by crashing. While the authors show how to replicate these nodes for reliability, if the memory hardware itself were "Byzantine," the safety guarantees would break.
  • Throughput vs. Latency: The paper focuses heavily on microsecond latency. While throughput is respectable (~91 kops for small requests), the authors note that further optimizations like batching could improve throughput at the cost of some latency.
  • State Transfer: The current prototype does not implement full application state transfer (the process of a new or recovering replica catching up on the entire database state), which is a standard but complex requirement for production SMR systems.

Summary updated

BibTeX
@inproceedings{aguilera2023ubft,
  author = {Marcos K. Aguilera and Naama Ben-David and Rachid Guerraoui and Antoine Murat and Athanasios Xygkis and Igor Zablotchi},
  title = {{uBFT: Microsecond-Scale BFT using Disaggregated Memory}},
  booktitle = {ASPLOS},
  year = {2023},
  doi = {10.1145/3575693.3575732},
}
Figure