《计算机应用》唯一官方网站

• •    下一篇

基于多阶段传播的区块链网络低延迟邻居选择方案

李功丽1,陈晓迪2,李露3   

  1. 1. 河南师范大学 计算机与信息工程学院, 河南 新乡 453007
    2. 河南师范大学 计算机与信息工程学院
    3. 河南师范大学
  • 收稿日期:2024-12-02 修回日期:2025-01-16 接受日期:2025-02-11 发布日期:2025-02-14 出版日期:2025-02-14
  • 通讯作者: 李功丽
  • 基金资助:
    国家自然科学基金资助项目;河南省科技攻关计划项目

Low-latency neighbor selection scheme for blockchain networks based on multi-stage propagation

  • Received:2024-12-02 Revised:2025-01-16 Accepted:2025-02-11 Online:2025-02-14 Published:2025-02-14

摘要: 摘 要: 区块链基于非结构化的点对点覆盖网络传播交易和区块。在这种网络结构上,传播具有延迟性且传播的长尾问题显著,这会导致节点存储信息的不一致,即区块链的分叉现象。分叉不仅浪费了整个区块链网络的算力资源,还带来了一系列的安全问题。为了减少区块链网络的传播延迟,提出一种基于多阶段传播的邻居选择方案(NSMP),通过邻居节点的选择优化网络拓扑结构。该方案中节点根据传播能力和邻近度两个因素,将节点Outbound邻居分为强传播和弱传播两部分,针对网络传播的不同阶段应用不同的邻居方案,从而达到减少传播跳跃、缩短传播时间的效果;并且该方案进一步解决了现有方案和默认方案都存在的传播长尾问题;最后根据节点的局部特征拟合函数量化节点的传播能力,通过Ping协议量化节点的邻近度信息,使用网络模拟器Sim block对设计的方案进行模拟实验。实验结果表明NSMP比默认方案分叉率降低了52.17%,证明了NSMP的可行性和有效性;根据实验模拟数据,确定了邻居节点邻近度远近分配的最佳参数设置。

关键词: 区块链, 点对点网络, 分叉, 传播延迟, 邻居选择

Abstract: Blockchain relies on an unstructured peer-to-peer overlay network for the propagation of transactions and blocks. In this network structure, propagation is delayed, and the long-tail propagation problem is significant, which leads to inconsistencies in the information stored by nodes, i.e., the phenomenon of blockchain forks. Forks not only waste computational resources across the entire blockchain network but also introduce a series of security issues. To reduce propagation delays in blockchain networks, a Neighbor Selection Based on Multi-stage Propagation (NSMP) is proposed, which optimizes the network topology by selecting neighbor nodes. In this scheme, nodes are divided into strong and weak propagators for their outbound neighbors based on two factors: propagation ability and proximity. Different neighbor selection schemes are applied at different stages of network propagation, thereby reducing propagation hops and shortening propagation time. This scheme further addresses the long-tail propagation problem present in both existing and default schemes. Finally, the propagation ability of nodes is quantified by fitting a function based on local node characteristics, and the proximity of nodes is quantified using the Ping protocol. The designed scheme is tested through simulation experiments using the network simulator Sim Block. Experimental results show that NSMP reduces the fork rate by 52.17% compared to the default scheme, demonstrating the feasibility and effectiveness of NSMP. Based on the simulation data, the optimal parameter settings for the distribution of neighbor node proximity are determined.

Key words: block chain, Peer-to-Peer (P2P), network, fork, propagation delay, neighbor selection