作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2024, Vol. 50 ›› Issue (3): 137-147. doi: 10.19678/j.issn.1000-3428.0066930

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

自适应节点规模的区块链分片可扩展模型

李宝莹*(), 李志淮, 王成爱, 杨锋   

  1. 大连海事大学信息科学技术学院, 辽宁 大连 116026
  • 收稿日期:2023-02-13 出版日期:2024-03-15 发布日期:2023-07-05
  • 通讯作者: 李宝莹
  • 基金资助:
    国家科技支撑计划(2008BAH37B05)

Blockchain Sharding Scalable Model of Adaptive Node Scale

Baoying LI*(), Zhihuai LI, Chengai WANG, Feng YANG   

  1. School of Information Science and Technology, Dalian Maritime University, Dalian 116026, Liaoning, China
  • Received:2023-02-13 Online:2024-03-15 Published:2023-07-05
  • Contact: Baoying LI

摘要:

分片是解决区块链可扩展性问题的核心技术,然而现有分片方案普遍采用预定分片规模的静态分片方式,这与公链开放低门槛的分布式环境不匹配。当网络中的节点数大幅增加时静态分片方式难以及时充分地发挥全部节点的性能,当网络中的节点数大幅减少时又会增加分片内的安全隐患。为此,构建一种自适应节点规模变化的动态分片可扩展模型(DSSM)。在基础分片上建立分层的逻辑分片,通过支持状态归约允许节点在不同层级的分片上进行状态同步。在逻辑与基础分片间建立满二叉树的逻辑关系,通过分片的动态分裂和合并来扩张和收缩分片规模,实现分片规模的自适应调整。实验结果表明,DSSM在节点数量大幅增加时通过自适应扩展分片规模使网络吞吐量得到了近乎翻倍的提升,在节点数量大幅减少时通过自适应收缩分片规模保证了网络的最低安全要求。

关键词: 区块链, 自适应节点规模, 状态分片, 归约节点, 状态冗余

Abstract:

Sharding is one of the core technologies to address the scalability of blockchains. However, the existing sharding schemes generally adopt a static sharding method with a predetermined shards' scale, which does not match the open and low-threshold distributed environment of the public blockchain. When the number of nodes in the network increases significantly, it is difficult for the static sharding method to fully utilize the performance of all nodes in a timely manner, and when the number of nodes in the network is significantly reduced, it will increase the security risks in the shards. Accordingly, a Dynamic Sharding Scalable Model(DSSM) with an adaptive change of nodes' scale is constructed. On the basis of basic shards, this model establishes layered logical shards, supports state reduction, and allows nodes to synchronize the state of shards at different levels. A logical relationship of a full binary tree is established between logical and basic shards. To achieve adaptive adjustment, the scale of the shards is expanded and shrunk through dynamic splitting and merging of the shards. The experiments have demonstrated that when the number of nodes increases significantly, the DSSM can nearly double the throughput by adaptively expanding the scale of shards, and when the number of nodes is significantly reduced, the DSSM guarantees the minimum security requirements of the network by adaptively shrinking the scale of shards.

Key words: blockchain, adaptive node scale, state sharding, reduction node, state redundancy