BlockSim: An Extensible Simulation Tool for Blockchain Systems

Maher Alharby, Aad van Moorsel
4/28/2020
cs.CRcs.PF

Official code: maher243/BlockSim (104 stars, Python, last commit 2022-03-26).

Abstract

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.

Show full abstract

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. This 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.

View on arXivView PDF

Code Implementations(1)

maher243/BlockSimOfficial100%

BlockSim: An Extensible Simulation Tool forBlockchain Systems

10464PythonApr 25, 20194 years ago

Similar Papers

Cite this paper

@article{alharby2020blocksim,
  title  = {BlockSim: An Extensible Simulation Tool for Blockchain Systems},
  author = {Maher Alharby and Aad van Moorsel},
  year   = {2020},
  eprint = {2004.13438},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.13438}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.13438.svg)](https://codeofpaper.com/paper/2004.13438)

Discussion