应用科学学报 ›› 2023, Vol. 41 ›› Issue (4): 577-589.doi: 10.3969/j.issn.0255-8297.2023.04.003

• 区块链 • 上一篇    下一篇

一种面向联盟链优化的PBFT共识算法

王微渊, 毕远伟, 陈霄汉, 李传彪   

  1. 烟台大学 计算机与控制工程学院, 山东 烟台 264000
  • 收稿日期:2022-10-26 发布日期:2023-08-02
  • 通信作者: 毕远伟,副教授,研究方向为计算机视觉。E-mail:biyuanwei@126.com E-mail:biyuanwei@126.com
  • 基金资助:
    国家自然科学基金(No. 61801414)资助

A PBFT Consensus Algorithm for Consortium Chain Optimization

WANG Weiyuan, BI Yuanwei, CHEN Xiaohan, LI Chuanbiao   

  1. College of Computer and Control Engineering, Yantai University, Yantai 264000, Shandong, China
  • Received:2022-10-26 Published:2023-08-02

摘要: 针对在联盟链中实用拜占庭容错(practical Byzantine fault tolerance,PBFT)算法所存在的通信开销过大、节点信誉度无法保证、算法无法动态地增删节点等问题,提出了基于决策树改进的PBFT(decision tree Byzantine fault tolerance,DTBFT)算法。首先,针对联盟链的应用场景,简化了PBFT算法的一致性协议,降低了通信开销;其次,考虑到系统安全性的问题,引入信誉积分机制,增加决策树分类算法,在每轮共识完成后,统计节点行为,对节点分类,使得系统可以动态地剔除拜占庭节点,提高系统的安全性;最后,为了防止拜占庭节点当选主节点,视图频繁切换,导致系统运行效率低的问题,改进了视图切换协议,将主节点的选取范围缩小到节点信誉好的高级节点,保证主节点的可信度。实验表明,DTBFT算法在吞吐量、算法安全性等方面较PBFT算法具有一定的提升。

关键词: 区块链, 联盟链, 共识算法, 实用拜占庭容错, 决策树分类

Abstract: This paper proposes a decision tree Byzantine fault tolerance (DTBFT) algorithm to address the problems of communication overhead, unguaranteed node reputation, and inability to dynamically add or delete nodes in the PBFT algorithm for consortium chains. Firstly, according to the application scenario of the alliance chain, the consensus protocol of the PBFT algorithm is simplified, and the communication overhead is reduced. Secondly, a reputation score mechanism and a decision tree classification algorithm are introduced to improve security of the system. Finally, the selection range of master nodes is narrowed to high-level nodes with good node reputation to prevent frequent view switches. Experiments show that the DTBFT algorithm enhances throughput and algorithm security compared with PBFT.

Key words: blockchain, alliance chain, consensus algorithm, practical Byzantine fault tolerance (PBFT), decision tree classification

中图分类号: