Virtual-Time-Accelerated Emulation for Blockchain Network and Application Evaluation

Virtual-Time-Accelerated Emulation for Blockchain Network and Application Evaluation
复制标题

区块链网络和应用评估的虚拟时间加速仿真

DOI:
10.1145/3316480.3322889
复制
发表时间:
2019
期刊:
Proceedings of the 2019 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation
影响因子:
--
通讯作者:
Dong Jin
Dong Jin
中科院分区:
--
文献类型:
--
作者:
Xiaoliang Wu;Jiaqi Yan;Dong Jin

文献摘要

被引文献

相似文献

区块链技术正在改变我们管理合同、进行交易和证明财产所有权的方式。这一趋势要求为区块链应用程序和系统提供一个现实的测试和评估平台。我们介绍了Minichain,一个基于容器的模拟器,允许在商品计算机上测试基于工作量证明的区块链。Minichain包含一个现实且可配置的网络环境,这是当今区块链测试平台所缺少的。这种独特的功能使我们能够评估网络事件的影响(例如,网络攻击)和条件(例如,拥塞或失败的链接)。同时,Minichain允许在容器中直接执行未经修改的应用程序代码以实现保真度,并利用虚拟时间技术来加速实验并提高可以准确仿真的系统规模。特别是,我们从数学上分析了基于工作量证明的共识算法的收敛性,以显示虚拟时间的有效性。我们评估了Minichain在网络层和应用层的性能,并通过模拟从网络层发起的自私挖掘攻击来证明其可用性
Blockchain technologies are in the ascendant of transforming the ways we manage contracts, make transactions, and manifest own- ership of property. The trend calls for a realistic testing and evalua- tion platform for blockchain applications and systems. We present Minichain, a container-based emulator that allows testing proof- of-work-based blockchains on a commodity computer. Minichain contains a realistic and configurable network environment, which is missing in today's blockchain testbeds. This unique feature enables us to evaluate the impact of network events (e.g., cyber-attacks) and conditions (e.g., congested or failed links) on blockchain appli- cations. Meanwhile, Minichain allows the direct execution of un- modified application code in the containers for fidelity, and utilizes the virtual time technique to speed up experiments and improve the system scale that one can accurately emulate. In particular, we mathematically analyze the convergence of the proof-of-work- based consensus algorithm to show the effectiveness of virtual time. We evaluate the performance of Minichain across both net- work layer and application layer, and demonstrate its usability by emulating a selfish mining attack initiated from the network layer