Abstract
Currently, Raft, as an mainstream consensus mechanism, has received widespread attention. Partition consensus can reduce the number of nodes involved in a single consensus and improve consensus efficiency. However, existing algorithms suffer from unreasonable partitioning and intolerance of Byzantine nodes. To address these problems, this paper proposes a novel Raft consensus algorithm combining comprehensive evaluation partitioning and Byzantine fault tolerance, CB-Raft. First, a comprehensive evaluation of nodes is conducted from the perspectives of consensus behavior and location, and the nodes are evenly divided based on the parity of the comprehensive ranking. Second, the leader is selected from the nodes with the top rankings in the comprehensive evaluation, and the nodes communicate with each other based on BLS signatures. Finally, a fast response mechanism based on cross-partition leader-follower communication is proposed to avoid the continued evil behavior of the leader, and a pipeline mechanism based on changeable signature thresholds is proposed to solve consensus blocking. The experimental results show that compared with the existing partitioning methods, the proposed partitioning scheme has significant advantages in terms of consensus latency, throughput, and the probability of partition success. Compared with the similar Raft algorithms, CB-Raft has high consensus performance and good resistance to Byzantine nodes.











Similar content being viewed by others
Availability of data and materials
The coding data that support the findings of this study are available from the corresponding author upon request.
References
Ongaro D, Ousterhout J (2014) In search of an understandable consensus algorithm. Annu Tech Conf, pp 305–319
Shen T, Li T, Yu Z et al (2023) Gt-nrsm: efficient and scalable sharding consensusmechanism for consortium blockchain. J Supercomput 79(17):20041–20075
Li SZ, Zou YJ, Deng XH et al (2022) Rb-raft:raft consensus algorithm for anti-byzantine nodes. Appl Res Comput 39(9):2591–2596
Zou X, Shen L, Zhang W et al (2022) Improved raft consensus mechanism for power transaction blockchain based on credit scoring. Southern Power Syst Technol 16(6):132–139
Huang DY, Li L, Chen B et al (2021) Rbft: a new byzantine fault-tolerant consensus mechanism based on raft cluster. J Commun 42(3):209–219
Guo H, Li WX, Nejad M (2022) A hierarchical and location-aware consensus protocol for iot-blockchain applications. IEEE Trans Netw Serv Manage 19(3):2972–2986
Shu JQ (2021) Optimization study of raft consistency algorithm. Master’s thesis, Xidian University
Cao W, Liu ZJ, Wang P et al (2018) Polarfs: an ultra-low latency and failure resilient distributed file system for shared storage cloud database. Proc VLDB Endow 11(12):1849–1862
Lin S (2021) Optimization study of consensus algorithm for blockchain networks. Master’s thesis, China University of Mining and Technology
Liu ZM, Hou L, Zheng K et al (2022) A dqn-based consensus mechanism for blockchain in iot networks. IEEE Internet Things J 9(14):11962–11969
Yang J, Jia ZH, Su RG et al (2022) Improved fault-tolerant consensus based on the pbft algorithm. IEEE Access 10:30274–30283
Wu KD, Ma Y, Cai HQ et al (2023) Betasco: Consortium blockchain system based on smart contract-oriented sharding. J Softw 34(11):5042–5057
Li JZ, Wang ZH, Li MH et al (2020) Spectrum sharing management method for the small-area-blockchain based on district partition. J Xidian Univ 47(6):122–130
Li Y, Zou YF, Xu MH et al (2022) Distributed consensus for blockchains in internet-of-things networks. Tsinghua Sci Technol 27(5):817–831
Castro M, Liskov B (1999) Practical Byzantine fault tolerance. In: Proceedings of the Third Symposium on Operating Systems Design and Implementation,New Orleans,USA, pp 173–186 (1999)
Deng XH, Luo ZQ, Zou YJ et al (2022) A novel semifragile consensus algorithm based on credit space for consortium blockchain. Security Commun Netw 2022:1955141
Funding
This work was supported by the National Natural Science Foundation of China (No. 61762046, No.62166019), the National Natural Science Foundation of Jiangxi Province (No. 20224BAB202019), and the Science and Technology Research Project of the Education Department of Jiangxi Province (No. GJJ218506).
Author information
Authors and Affiliations
Contributions
XH Deng, ZW Yu, and HW Liu contributed the main ideas and wrote the main manuscript texts. WZ Xiong and KT Li established the evaluation and provided the simulation experimental ideas. All authors reviewed the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Deng, X., Yu, Z., Xiong, W. et al. A novel Raft consensus algorithm combining comprehensive evaluation partitioning and Byzantine fault tolerance. J Supercomput 80, 26363–26393 (2024). https://doi.org/10.1007/s11227-024-06438-6
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11227-024-06438-6