On the Latency Performance in Private Blockchain Networks
- 7 April 2022
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Internet of Things Journal
- Vol. 9 (19) , 19246-19259
Abstract
Blockchain technologies have been emerging with the potential to disrupt many fields (e.g., cryptocurrencies replacing the traditional ones, enabling trustworthy voting, etc.). The Internet of Things (IoT) has been predictably strengthened when integrating to the private blockchain, such as Ethereum. In an IoT deployment with private Ethereum, a thorough understanding of the latency is a critical issue that has not been adequately understood in the literature. Motivated by that, this work aims to comprehend the latency performance in the IoT Ethereum with two popular consensus algorithms: Proof of Work (PoW) and Proof of Authority (PoA). Initially, we clarify different latency segments from transaction submission to execution, namely, the transaction lifecycle in a private blockchain. We then consider the three related latency metrics: 1) transaction-oriented latency; 2) mining time; and 3) block-oriented latency in the PoW case. With PoA, the mining time’s consideration is omitted since the mining process is not necessary. After that, we construct a realistic private Ethereum IoT network (i.e., using a laptop and seven Raspberry Pi 3b+ nodes) and a large-scale emulated one with 30 nodes. We write and deploy a smart contract to read and write data to the blockchain and measure the latencies in various scenarios. The measurement results reveal the values of transaction-oriented and block-oriented latency with PoW and PoA in both the actual and emulated networks. Moreover, we derive the expected value for the PoW’s mining time by fitting the probabilities to an exponential curve.Keywords
Funding Information
- Vingroup Joint Stock Company (Vingroup JSC), Vingroup through Vingroup Innovation Foundation (VINIF.2020.DA09)
- Japan Society for the Promotion of Science KAKENHI (20H0417)
This publication has 42 references indexed in Scilit:
- Can Blockchain Strengthen the Internet of Things?IT Professional, 2017
- Performance Analysis of Private Blockchain Platforms in Varying Workloads2017
- An Overview of Blockchain Technology: Architecture, Consensus, and Future Trends2017
- BLOCKBENCH2017
- Predicting Latency of Blockchain-Based Systems Using Architectural Modelling and Simulation2017
- Blockchain for IoT security and privacy: The case study of a smart home2017
- Blockchains and Smart Contracts for the Internet of ThingsIEEE Access, 2016
- Mininet-WiFi: Emulating software-defined wireless networks2015
- Information propagation in the Bitcoin network2013
- Kademlia: A Peer-to-Peer Information System Based on the XOR Metric2002