arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1804.00399cs.DCcs.CRcs.DB
收藏

通过分片扩展区块链系统

Towards Scaling Blockchain Systems via Sharding

Hung Dang, Tien Tuan Anh Dinh, Dumitrel Loghin, Ee-Chien Chang, Qian Lin, Beng Chin Ooi

摘要:

现有的区块链系统由于其分布式共识协议而扩展性很差。目前提高区块链可扩展性的尝试仅限于加密货币。在一般工作负载下扩展区块链系统(即,非加密货币应用)仍然是一个悬而未决的问题。在这项工作中,我们采取了一种原则性的方法来将分片应用于区块链系统,分片是一种经过充分研究和验证的扩展数据库的技术,以提高其大规模的交易吞吐量。然而,由于数据库和区块链之间故障模型的根本差异,这是具有挑战性的。为了实现我们的目标,我们首先提高拜占庭共识协议的性能,通过这样做,我们提高了单个分片的吞吐量。接下来,我们设计了一个高效的分片形成协议,利用可信的随机信标安全地将节点分配到分片中。我们依靠可靠的硬件,即英特尔SGX,实现共识和分片形成协议的高性能。第三,我们设计了一个通用的分布式事务协议,即使在事务协调器是恶意的,也能确保安全性和活性。最后,我们在本地集群和Google Cloud Platform上对我们的设计进行了广泛的评估。结果表明,我们的共识和分片形成协议在规模上优于最先进的解决方案。更重要的是,我们的分片区块链达到了高吞吐量,可以处理Visa级别的工作负载,并且是现实环境中有史以来最大的。

英文摘要:

Existing blockchain systems scale poorly because of their distributed consensus protocols. Current attempts at improving blockchain scalability are limited to cryptocurrency. Scaling blockchain systems under general workloads (i.e., non-cryptocurrency applications) remains an open question. In this work, we take a principled approach to apply sharding, which is a well-studied and proven technique to scale out databases, to blockchain systems in order to improve their transaction throughput at scale. This is challenging, however, due to the fundamental difference in failure models between databases and blockchain. To achieve our goal, we first enhance the performance of Byzantine consensus protocols, by doing so we improve individual shards' throughput. Next, we design an efficient shard formation protocol that leverages a trusted random beacon to securely assign nodes into shards. We rely on trusted hardware, namely Intel SGX, to achieve high performance for both consensus and shard formation protocol. Third, we design a general distributed transaction protocol that ensures safety and liveness even when transaction coordinators are malicious. Finally, we conduct an extensive evaluation of our design both on a local cluster and on Google Cloud Platform. The results show that our consensus and shard formation protocols outperform state-of-the-art solutions at scale. More importantly, our sharded blockchain reaches a high throughput that can handle Visa-level workloads, and is the largest ever reported in a realistic environment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑