Load Balancing in Sharded Blockchains
Load Balancing in Sharded Blockchains
复制标题
分片区块链中的负载均衡
DOI:
10.1007/978-3-030-54455-3_36
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
and Takashi Nishide
中科院分区:
文献类型:
--
作者:
Naoya Okanami;Ryuya Nakamura;and Takashi Nishide
Sharding is an approach to designing a highly scalable blockchain. A sharded blockchain achieves parallelism by dividing consensus nodes (validators) into groups called shards and making them process different transactions in each shard. In this paper, we economically analyze users’ behavior on sharded blockchains and identify a phenomenon that users’ accounts and smart contracts eventually get concentrated in a few shards, making shard loads unfair. This phenomenon leads to bad user experiences, such as delays in transaction inclusions and increased transaction fees. To solve the above problem, we propose a load balancing framework in sharded blockchains in which accounts and contracts are frequently reassigned to shards to reduce the difference of loads between shards. We formulate the contract reassignment as an optimization problem and present the algorithm to solve it. Further, we apply the framework to an existing sharding design (Ethereum 2.0) and modify the protocol to do load balancing. Finally, we simulate the protocol and observe smaller transaction delays and fees.