SimBlock: A simulator for testing improvements to real-world blockchain networks

SimBlock: A simulator for testing improvements to real-world blockchain networks
Figure 1. Visualization of a blockchain network. Credit: OpenStreetMap contributors

Kazuyuki Shudo, his colleagues, and the Cybersecurity Research Center at Tokyo Institute of Technology (Tokyo Tech) developed a public blockchain simulator called "SimBlock" for use in testing blockchain performance and security. The software can run on a single PC. It is now publicly available as open source.

SimBlock allows a user to simulate a blockchain consisting of a large number of nodes (servers), and modify behavior of the nodes to test effects on performance and security. Users can simulate the impact of changes to an existing blockchain, such as Bitcoin, or to a blockchain of their own design.

Blockchain was first implemented for cryptocurrency, serving as the basis of the Bitcoin network, which began operating in 2009. But now other are being found in areas such as resource and rights management, product (e.g., food) traceability, voting, and business process automation.

These days, a number of conferences on blockchain technology are held, including IEEE ICBC, CryBlock, and IEEE Blockchain. Yet despite the activity in the field, it has been almost impossible to test improvements on a real-world blockchain network. Such an experiment requires updating the software of all nodes, which is not practical for a working network due to the risk of causing disruptions. Even in cases where a blockchain has a problem that needs fixing, testing the fix may be difficult, as it could break something else.

A blockchain simulator called SimBlock

Shudo and colleagues developed SimBlock, which can simulate behavior of about 10,000 nodes on the Internet using a single typical PC. The software, which was made in July 2018, allows engineers to test improvements on an existing or original blockchain, or even simulate malicious nodes and measure success rates of attack, then apply countermeasures to test its effects.

SimBlock: A simulator for testing improvements to real-world blockchain networks
Demonstrating SimBlock at IEEE ICBC 2019 Credit: Kazuyuki Shudo

SimBlock can currently simulate the parameters of Bitcoin, Litecoin, and Dogecoin, mirroring blockchain network size, block generation interval, and communication speed over the Internet. Users can see what changes to node behavior do to a blockchain network by modifying Java code in SimBlock. It is also possible to modify parameters of the blockchain and communication speed.

SimBlock also has a visualizer that shows communication between nodes and block height animated on a world map. A demonstration of the visualizer is available at this web page.

Demonstration of visualizer: Bitcoin network (scaled down to 600 nodes)

The research team gave a demonstration of SimBlock at IEEE ICBC 2019 held in Seoul, attracting much attention from the participants (Figure 2).

Application examples

The team members also used SimBlock in their other studies. The following are such research topics to improve performance of blockchains.

  • Neighbor selection (Figure 3)
  • Effect measurement of a relay network (Figure 4)
SimBlock: A simulator for testing improvements to real-world blockchain networks
Figure 3 Proximity Neighbor Selection and Figure 4 Effect Measurement of a Relay Network. Credit: Proc. IEEE Blockchain 2019 for Fig 3 and Proc. AINTEC 2019 for Fig 4.

Figure 3 shows the effect of applying a technique called proximity neighbor selection, where each node connects with its near nodes on the network. This results in reduced time for blocks to propagate over the network. The reduction of propagation time leads to improvement of security. It also leads to improvement of transaction process performance without sacrificing security.

Figure 4 illustrates the benefit of nodes utilizing a relay network[c,4]. By using a relay network, a node can dramatically lower the probability that a block it generated becomes an orphan block[d]. It means that a node can increase its revenue by utilizing the relay network because such an orphan block does not give mining reward to the node that generated the orphan block.

A node utilizing a relay network can receive a newly generated block quickly. It seems that mining[e] success rate of the node increases because of the quick receipt. However, using SimBlock, the research team did not observe any obvious increase. On the other hand, the research team found another benefit of relay networks. A node could lower the probability that a block it generated becomes an orphan block. A relay network naturally lowers the orphan block rate of the entire blockchain network and it has previously been pointed out. The research team found that nodes benefit much from a relay network even if the ratio of nodes utilizing the relay network is very low (e.g., 1%).

The research team will continue working on performance improvement of blockchains utilizing SimBlock. They also started working on security studies by simulating attacks on a blockchain and countermeasures. On-going and planned improvements for SimBlock include support for other blockchains such as Ethereum, further updating of Internet parameters such as communication speed, and support for newer communication protocols such as Compact Block Relay.

The team strongly believes that engineering and research communities can benefit from SimBlock and its contributions to technology and our society supported by the technology.

More information: Simblock: https://dsg-titech.github.io/simblock/

Citation: SimBlock: A simulator for testing improvements to real-world blockchain networks (2019, June 27) retrieved 28 March 2024 from https://phys.org/news/2019-06-simblock-simulator-real-world-blockchain-networks.html
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.

Explore further

Researchers enhance security in proof of stake blockchain protocols

1 shares

Feedback to editors