BlockSim: An Extensible Simulation Tool for Blockchain Systems

被引:49
作者
Alharby, Maher [1 ,2 ]
van Moorsel, Aad [1 ]
机构
[1] Newcastle Univ, Sch Comp, Newcastle Upon Tyne, Tyne & Wear, England
[2] Taibah Univ, Dept Comp Sci, Medina, Saudi Arabia
来源
FRONTIERS IN BLOCKCHAIN | 2020年 / 3卷
关键词
blockchain; performance; simulation; analysis; proof of work; consensus; Ethereum; Bitcoin;
D O I
10.3389/fbloc.2020.00028
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Both in the design and deployment of blockchain solutions many performance-impacting configuration choices need to be made. We introduce BlockSim, a framework and software tool to build and simulate discrete-event dynamic systems models for blockchain systems. BlockSim is designed to support the analysis of a large variety of blockchains and blockchain deployments as well as a wide set of analysis questions. At the core of BlockSim is a Base Model, which contains the main model constructs common across various blockchain systems organized in three abstraction layers (network, consensus, and incentives layer). The Base Model is usable for a wide variety of blockchain systems and can be extended easily to include system or deployment particulars. The BlockSim software tool provides a simulator that implements the Base Model in Python. The paper describes the Base Model, the simulator implementation, and the application of BlockSim to Bitcoin, Ethereum and other consensus algorithms. We validate BlockSim simulation results by comparison with performance results from actual systems and from other studies in the literature. We close the paper by a BlockSim simulation study of the impact of uncle blocks rewards on mining decentralization, for a variety of blockchain configurations.
引用
收藏
页数:16
相关论文
共 28 条
  • [1] Performance Benchmarking of Smart Contracts to Assess Miner Incentives in Ethereum
    Aldweesh, Amjad
    Alharby, Maher
    Solaiman, Ellis
    van Moorsel, Aad
    [J]. 2018 14TH EUROPEAN DEPENDABLE COMPUTING CONFERENCE (EDCC 2018), 2018, : 144 - 149
  • [2] Alharby Maher, 2018, ACM SIGMETRICS Performance Evaluation Review, V46, P135, DOI 10.1145/3308897.3308956
  • [3] Alharby M., 2020, ARXIV PREPRINT ARXIV
  • [4] Alharby M, 2018, 2018 INTERNATIONAL CONFERENCE ON CLOUD COMPUTING, BIG DATA AND BLOCKCHAIN (ICCBB 2018), P96
  • [5] The Impact of Profit Uncertainty on Miner Decisions in Blockchain Systems
    Alharby, Maher
    van Moorsel, Aad
    [J]. ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2018, 340 : 151 - 167
  • [6] Alharby Maher, 2017, Proceedings of the Fourth International Conference on Computer Science and Information Technology (CSIT-2017), Dubai, Emiratos Arabes Unidos, 26-27 de Agosto 2017, DOI DOI 10.5121/CSIT.2017.71011
  • [7] Anderson D.R., 2015, An introduction to management science: Quantitative approaches to decision making, V14th
  • [8] [Anonymous], 2014, DRAFT
  • [9] Aoki Y, 2019, IEEE CONF COMPUT, P325, DOI [10.1109/INFCOMW.2019.8845253, 10.1109/infcomw.2019.8845253]
  • [10] Banks J., 1984, DISCRETE EVENT SYSTE