Blockchain in a box: A portable blockchain network implementation on Raspberry Pi's

Matija Piškorec,Anton Ivaskevich,Said Haji Abukar,Lundrim Azemi,Md Rezuanul Haque,Mostafa Chegenizadeh,Claudio J. Tessone
2024-04-22
Abstract:In this paper we describe a prototype of a blockchain-in-a-box system which allows users to easily bootstrap the whole Ethereum Proof-of-Work (PoW) network running on multiple Raspberry Pi nodes - an inexpensive modular computers. Users are able to orchestrate the whole blockchain network using a single web based interface, for example they are able to set the topology of the peer-to-peer (P2P) connections and control the initialization parameters. Each Raspberry Pi has a screen attached which visualizes current state of local blockchain, allowing users to easily visualize the consensus of the network in real time. We show how this platform can be used to perform experiments on consensus quality while using different P2P topologies. Similar experiments can be used for demonstration purposes in a workshop or other educational settings.
Distributed, Parallel, and Cluster Computing
What problem does this paper attempt to address?
This paper presents a prototype system of a portable blockchain network called "Blockchain-in-a-box", which operates an Ethereum Proof-of-Work (PoW) network on multiple Raspberry Pi devices. This system allows users to easily set up and control the blockchain network through a web-based interface, including the topology and initialization parameters of the peer-to-peer (P2P) connections. Each Raspberry Pi has a screen that displays the real-time status of the local blockchain, facilitating the observation of network consensus. The paper addresses the following issues: 1. How to enable ordinary users to easily build and manage blockchain nodes, especially considering the increasing resource demands. 2. How to achieve modularity and low-cost hardware deployment of blockchains to promote demonstrations in education and experimental environments. 3. How to study consensus quality through different P2P topology structures and provide a tool for teaching and experimentation. The authors demonstrate how this platform can be used to evaluate consensus quality through a series of experiments, particularly by changing the P2P network topology (e.g. ring, star, and grid). The experimental results indicate that network topology has a significant impact on consensus quality and efficiency. For example, the ring topology performs better than the grid topology in terms of main chain rate, while the grid topology outperforms the star topology. This is mainly due to the differences in communication overhead and information transmission speed in different topology structures. In conclusion, the paper proposes a practical educational tool for understanding the workings and consensus mechanisms of blockchain networks, highlighting the importance of network design on blockchain performance.