Ajitesh-kumar-soni
BiniBFT - An Optimized BFT on Fabric
Evaluation 2 - Report
Submitted By: Ajitesh kumar soni
Collaborative Learning Program
Engagement Details
Name of Mentee | Aijtesh kumar soni |
Evaluation Period | 19-08-2023 to 09-11-2023 |
Task | Comparative study of BFT Protocols |
Date Submitted | 09-11-2023 |
Mentor | Dr. Anasuya Threse Innocent |
Tasks, Objectives, and Results
This Evaluation report consolidates the candidate’s work for Hyperledger CLP - BiniBFT project by BiniWorld Innovations Pvt Ltd during the internship (Weeks 6-12). The report has been categorized into two sections: outline the key task assigned to the candidate and day-to-day activities undertaken by the candidate.
Key Outline of the Task assigned to the candidate (This includes Project name, Problem statement, expected Output and other relevant details)
Comparing Consensus Protocol in Hyperledger Fabric
BFT SMART
How Challenges Are Addressed in the New Attempt:
- Simplified Architecture: The new implementation simplifies the system by using a single process and a consistent Go language for both orderer front-end and BFT server.
- MSP Integration: It seamlessly integrates with Fabric's MSP, ensuring compliance with Fabric's standards and including BFT cluster server identities in Fabric's configuration.
- Enhanced Block Validation: The new approach includes the signatures of 2F + 1 BFT cluster servers in blocks for better verification.
- Optimized Communication Rounds: Communication rounds are reduced to three by optimizing the consensus protocol, with acceptable performance for most use cases.
- Effective Transaction Validation: The new BFT ordering service enables followers to validate leader-proposed transactions effectively, enhancing the correctness of the BFT protocol.
The BFT-SMART protocol in Hyperledger Fabric provides the following key features:
- Simplified Message Pattern: The protocol simplifies the message pattern, making it easier to understand and implement.
- View Change Protocol: It includes a view change mechanism to elect a new leader when the current leader is faulty.
- Consensus Safety and Liveness: BFT-SMART ensures that all correct nodes agree on the same valid values (safety) and guarantees that if one correct node delivers a value, others will eventually do so (liveness).
- MSP Integration: It integrates seamlessly with Fabric's Membership Service Provider (MSP), ensuring compliance with Fabric's security and identity framework.
- Proper Transaction Validation: BFT-SMART enables proper validation of transactions against Fabric's semantics without excessive code overhead.
- Dynamic Consenter Set: The protocol allows dynamic updates to the consenter set, ensuring only authorized nodes participate in consensus.
it's important to note that BFT-Smart may not be the best choice for scenarios where high throughput and low latency are the primary requirements, as it might exhibit slightly lower performance
MIR-BFT
1. Multiple Parallel Leaders: Supports concurrent proposal by multiple leaders, increasing throughput and eliminating single-leader bottlenecks.
2. Request Authentication: Uses signatures for request authentication, enhancing security and preventing faulty client attacks related to MAC authenticators.
3. Batching and Watermarks: Processes requests in batches and utilizes request and batch watermarks to improve throughput.
4. Request Duplication Prevention: Prevents request duplication attacks by partitioning the request hash space and assigning subsets to different leaders.
5. Client Signature Verification Sharding Optimization: Optimizes throughput by offloading CPU overhead through client signature verification sharding.
6. Robustness and Performance: Designed to be robust to Byzantine faults and delivers high performance, especially in wide-area networks (WANs).
Overall, Mir-BFT combines robustness, high throughput, and security features to provide an efficient Byzantine fault-tolerant total order broadcast protocol for decentralized networks.
Zyzzyva
- Speculative Byzantine Fault Tolerance: Zyzzyva implements speculative BFT, reducing replication costs by avoiding a three-phase commit protocol.
- Optimistic Order Adoption: Zyzzyva quickly processes requests based on the primary server's order proposal, minimizing all-to-all communication and replication overhead.
- Reduced Replication Overheads: Zyzzyva minimizes all-to-all communication and required replicas, achieving high throughput and practical BFT replication.
- Support for High-Contention Workloads: Designed to efficiently handle concurrent requests and high-contention workloads.
- Simplified State Machine Replication Semantics: Zyzzyva simplifies replication semantics for easier implementation and understanding.
- Ability to Handle Faulty Clients: Ensures consistent processing of erroneous or malicious client requests, helping correct replicas converge on a single order.
- Scalability and Performance: Zyzzyva achieves high throughput and low latency, outperforming other BFT protocols like PBFT and HQ in terms of performance and cryptographic overhead.