TL;DR
Existing "Trust-BFT" protocols use trusted hardware (like Intel SGX) to reduce the number of required servers from $3f+1$ to $2f+1$. This paper reveals that this reduction comes with hidden costs—specifically poor responsiveness, vulnerability to rollback attacks, and a lack of parallelism—and proposes FlexiTrust, a suite of protocols that returns to $3f+1$ nodes to achieve up to 185% higher throughput by using trusted components more intelligently.
What Problem Does This Paper Address?
In Byzantine Fault-Tolerant (BFT) systems, we assume some participants ($f$) are malicious and can "equivocate"—telling different things to different people to cause chaos. Traditionally, this requires $3f+1$ replicas to reach a consensus.
To save on hardware, researchers created "Trust-BFT" protocols. By using a Trusted Execution Environment (TEE) at each replica to sign and sequence messages, these protocols prevent double-speaking, allowing the system to work with only $2f+1$ replicas (the same as crash-tolerant systems like Paxos).
However, the authors argue that the community has been optimizing for the wrong metric. Reducing the node count to $2f+1$ introduces three "fundamental limitations":
- Limited Responsiveness: If a single honest replica is slow, a client might never receive enough matching responses ($f+1$) to verify a transaction, even if the system has technically committed it.
- Rollback Vulnerability: Most TEEs (like SGX) are vulnerable to rollback attacks. Defending against these using "persistent counters" is incredibly slow, adding tens of milliseconds of latency to every message.
- Sequential Bottlenecks: Current designs force the TEE to order every message one-by-one, preventing the system from processing multiple consensus rounds in parallel.
Methods
The authors introduce FlexiTrust, which sidesteps these issues by moving back to a $3f+1$ replica model while still leveraging trusted components.
Key Innovations: * Primary-Only TEE Usage: Unlike previous protocols where every node hits the TEE for every message, FlexiTrust only requires the primary (leader) to access the TEE once per transaction to bind it to a sequence number. * Parallel Consensus: By relaxing the TEE constraints and using larger quorums ($2f+1$ out of $3f+1$), FlexiTrust allows replicas to process many transactions concurrently rather than waiting for the TEE to finish one before starting the next. * Protocol Conversions: The authors demonstrate their approach by transforming two famous protocols: Flexi-BFT (based on PBFT/MinBFT) and Flexi-ZZ (based on Zyzzyva/MinZZ). * Quorum Intersection: By using $3f+1$ nodes, any two quorums of $2f+1$ are guaranteed to overlap by at least $f+1$ nodes. This ensures that at least one honest node is always present in every decision, making the system safe even if a malicious leader tries to roll back their TEE state.
Datasets
The authors evaluated their protocols using:
- ResilientDB: An open-source, high-performance BFT fabric used to implement all baseline and proposed protocols.
- YCSB (Yahoo! Cloud Serving Benchmark): A standard industry benchmark for evaluating the performance of "key-value" databases.
- Infrastructure: Experiments were run on the Oracle Cloud Infrastructure (OCI) using up to 97 replicas distributed across six global regions (San Jose, Ashburn, Sydney, Sao Paulo, Montreal, and Marseille) to test Wide-Area Network (WAN) performance.
Key Insights and Ideas
- The "Resource Efficiency" Paradox: Reducing the number of replicas to $2f+1$ seems efficient on paper, but the resulting reliance on slow, sequential TEE operations actually makes the system significantly slower and more expensive per transaction.
- TEEs as Accelerators, Not Just Crutches: Instead of using TEEs just to reduce node count, FlexiTrust uses them to reduce the number of communication phases. For example, Flexi-BFT reaches consensus in two phases instead of PBFT's three.
- Safety without Persistence: Because FlexiTrust uses $3f+1$ nodes, it remains safe even if the TEE's internal state is lost or rolled back. This removes the need for "persistent counters," which are the primary source of TEE-related latency.
Key Results
- Throughput: FlexiTrust protocols achieved up to 185% more throughput than their $2f+1$ Trust-BFT counterparts and 100% more than traditional BFT protocols like PBFT.
- Scalability: As the number of faults ($f$) increased from 4 to 32, FlexiTrust maintained a significant performance lead, proving it handles large-scale deployments better than sequential TEE-based models.
- WAN Performance: In global deployments, FlexiTrust's ability to run consensus in parallel allowed it to maintain high throughput despite high network latency, whereas sequential protocols saw their performance crater.
- TEE Latency Tolerance: FlexiTrust remains performant even if TEE access is relatively slow (up to 2.5ms), whereas $2f+1$ protocols become bottlenecked almost immediately.
Limitations and Future Work
- Hardware Dependency: While FlexiTrust minimizes TEE usage, it still requires hardware support (like Intel SGX), which is not available on all cloud providers.
- Replica Count: The protocol requires $3f+1$ nodes. In environments where hardware costs are the absolute primary constraint (and performance is secondary), the $2f+1$ model might still be preferred.
- Future TEEs: The authors note that if future hardware (like ADAM-CS) makes persistent, rollback-protected counters extremely fast (sub-millisecond), the trade-offs between $2f+1$ and $3f+1$ might shift again.
Summary updated