私有区块链的Raft共识算法性能分析
Performance Analysis of the Raft Consensus Algorithm for Private Blockchains
摘要:
共识是区块链的关键问题之一。有许多文章分析了区块链威胁模型的性能。但网络稳定性似乎缺乏关注,这实际上影响了区块链的性能。本文研究了一种广泛采用的共识算法Raft在丢包率不可忽略的网络中的性能。特别是,我们提出了一个简单但准确的分析模型来分析分布式网络分裂概率。在给定的时间,我们明确提出的网络分裂概率作为网络规模,数据包丢失率,和选举超时期间的函数。为了验证我们的分析,我们实现了一个筏模拟器和模拟结果与分析结果相吻合。利用该模型,可以从理论上预测网络分裂时间和分裂概率,优化Raft共识算法中的参数。
英文摘要:
Consensus is one of the key problems in blockchains. There are many articles analyzing the performance of threat models for blockchains. But the network stability seems lack of attention, which in fact affects the blockchain performance. This paper studies the performance of a well adopted consensus algorithm, Raft, in networks with non-negligible packet loss rate. In particular, we propose a simple but accurate analytical model to analyze the distributed network split probability. At a given time, we explicitly present the network split probability as a function of the network size, the packet loss rate, and the election timeout period. To validate our analysis, we implement a Raft simulator and the simulation results coincide with the analytical results. With the proposed model, one can predict the network split time and probability in theory and optimize the parameters in Raft consensus algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。