《计算机应用》唯一官方网站 ›› 2022, Vol. 42 ›› Issue (5): 1500-1507.DOI: 10.11772/j.issn.1001-9081.2021050772

• 网络空间安全 • 上一篇    下一篇

基于实用拜占庭容错的改进的多主节点共识机制

任秀丽, 张雷()   

  1. 辽宁大学 信息学院,沈阳 110036
  • 收稿日期:2021-05-13 修回日期:2021-09-09 接受日期:2021-09-16 发布日期:2022-03-08 出版日期:2022-05-10
  • 通讯作者: 张雷
  • 作者简介:任秀丽(1965—),女,吉林四平人,教授,博士,主要研究方向:无线网络与通信、区块链
    张雷(1996—),男,江苏徐州人,硕士研究生,CCF会员,主要研究方向:区块链。 1638938145@qq.com
  • 基金资助:
    辽宁省自然科学基金资助项目(201202089)

Improved multi-primary-node consensus mechanism based on practical Byzantine fault tolerance

Xiuli REN, Lei ZHANG()   

  1. College of Information,Liaoning University,Shenyang Liaoning 110036,China
  • Received:2021-05-13 Revised:2021-09-09 Accepted:2021-09-16 Online:2022-03-08 Published:2022-05-10
  • Contact: Lei ZHANG
  • About author:REN Xiuli,born in 1965,Ph. D.,professor. Her research interestsinclude wireless network and communication,blockchain.
    ZHANG Lei, born in 1996,M. S. candidate. His research interestsinclude blockchain.
  • Supported by:
    Natural Science Foundation of Liaoning Province(201202089)

摘要:

针对实用拜占庭容错(PBFT)共识协议通信复杂度高导致的共识效率低、单一主节点发生故障或存在拜占庭行为时会导致共识过程停止的问题,提出了改进的多主节点实用拜占庭容错(IMPBFT)共识机制。首先,通过节点的共识轮数、存在拜占庭行为的共识轮数以及节点被赋予的优先值,计算出节点的有效共识轮数,再依据有效共识轮数的大小选出多个主节点。其次,对原共识机制进行改进,使所有节点利用改进的机制进行共识。最后,引入流水线来实现IMPBFT共识的并发执行。在进行流水线操作时,不同轮共识的多阶段消息统一签名,并且不再使用固定周期来控制流水线。理论研究和实验结果表明,IMPBFT的多主节点结构相较单一主节点的共识结构更加安全稳定;与平方级通信量的PBFT和信用委托拜占庭容错(CDBFT)共识相比,IMPBFT将通信量降至线性级;在交易吞吐量、扩展性和交易时延方面,IMPBFT的性能要优于PBFT和CDBFT;使用“多阶段消息统一签名、无固定周期”流水线的IMPBFT,比未使用流水线的IMPBFT在交易吞吐量上提高了75.2%。

关键词: 区块链, 联盟链, 共识机制, 实用拜占庭容错, 流水线

Abstract:

The high communication complexity of Practical Byzantine Fault Tolerance (PBFT) consensus protocol will lead to low consensus efficiency, the failure or the existing of Byzantine behavior of the single primary node will lead to the stop of consensus process. In order to solve these problems, an Improved Multi-primary-node Practical Byzantine Fault Tolerance (IMPBFT) consensus mechanism was proposed. Firstly, the number of effective consensus rounds of nodes was calculated by the number of consensus rounds of nodes, the number of consensus rounds with Byzantine behavior and the priority values assigned to the nodes, and several primary nodes were selected according to the size of effective consensus rounds. Then, the original consensus mechanism was improved to make all nodes use the improved consensus mechanism for consensus. Finally, pipeline was introduced to implement the concurrent execution of IMPBFT consensus. In the pipeline operation, multi-stage messages of different rounds’ consensus were signed together, and no fixed cycle was used to control the pipeline. Theoretical research and experimental results show that, the multi-primary-node structure of IMPBFT is more secure and stable than the consensus structure of single primary node. Compared with PBFT and Credit-Delegated Byzantine Fault Tolerance (CDBFT) consensus with square level traffic, the proposed IMPBFT reduces the traffic to linear level. The IMPBFT has better performance than PBFT and CDBFT in terms of transaction throughput, scalability and transaction delay. The IMPBFT using the “multi-stage messages signed together with no fixed cycle” pipeline has improved the transaction throughput by 75.2% compared with the IMPBFT without pipeline.

Key words: blockchain, consortium chain, consensus mechanism, Practical Byzantine Fault Tolerance (PBFT), pipeline

中图分类号: