Performance Analysis of Blockchain Systems with Wireless Mobile Miners
Gilsoo Lee, Jihong Park, Walid Saad, Mehdi Bennis

TL;DR
This paper proposes a framework using wireless mobile miners in blockchain systems, analyzing how low-latency communication affects forking events and energy efficiency, with simulations showing significant energy savings with more miners.
Contribution
It introduces a novel wireless mobile miner framework for blockchain, analyzes forking probability related to latency, and derives energy consumption models with validation through simulations.
Findings
Lower latency reduces forking events.
Increasing number of MMs significantly decreases energy consumption.
Simulation confirms analytical models and energy savings up to 94.5%.
Abstract
In this paper, a novel framework that uses wireless mobile miners (MMs) for computation purposes in a blockchain system is proposed. In the introduced system, the blockchain ledger is located at the communication nodes (CNs), and the MMs associated with CNs process the blockchain's proof-of-work (PoW) computation to verify the originality of the data. The MM that is the first to finish its PoW will receive a reward by sending its computing result to the CNs that are connected to other MMs. In the considered scenario, a blockchain forking event occurs if the MM having the shortest PoW delay fails to be the first to update its computing result to other MMs. To enable such mobile operations for a blockchain with minimum forking events, it is imperative to maintain low-latency wireless communications between MMs and CNs. To analyze the sensitivity of the system to latency, the probability…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Performance Analysis of Blockchain Systems with Wireless Mobile Miners
Gilsoo Lee, Jihong Park, Walid Saad, and Mehdi Bennis
Abstract
In this paper, a novel framework that uses wireless mobile miners (MMs) for computation purposes in a blockchain system is proposed. In the introduced system, the blockchain ledger is located at the communication nodes (CNs), and the MMs associated with CNs process the blockchain’s proof-of-work (PoW) computation to verify the originality of the data. The MM that is the first to finish its PoW will receive a reward by sending its computing result to the CNs that are connected to other MMs. In the considered scenario, a blockchain forking event occurs if the MM having the shortest PoW delay fails to be the first to update its computing result to other MMs. To enable such mobile operations for a blockchain with minimum forking events, it is imperative to maintain low-latency wireless communications between MMs and CNs. To analyze the sensitivity of the system to latency, the probability of occurrence of a forking event is theoretically derived. The system is then designed so as to compute the forked block’s PoW again to recover from a forking event. For this case, the average energy consumption of an MM is derived as a function of the system parameters such as the number of MMs and power consumed by the computing, transmission, and mobility processes of the MMs. Simulation results verify the analytical derivations and show that using a larger number of MMs can reduce the energy consumption by up to 94.5% compared to a blockchain system with a single MM.
I Introduction
As Internet of Things (IoT) connects physical systems to a network, and edge computing enables to offload the computationally intensive tasks to the network edge, the emergence of blockchain is instrumental in spearheading various verticals such as manufacturing, logistics, and autonomous systems [2, 3]. Blockchain applications can securely store data without a central trusted authority by leveraging distributed consensus mechanisms such as the so-called proof-of-work (PoW). Recently, blockchains have been adopted in the wireless domain [4, 5, 6, 7, 8]. For instance, the authors in [4] proposed a mobile blockchain network architecture that enables mobile devices to store sensory data by using a blockchain. The work in [5] proposed a blockchain framework that uses drones to gather data that is then processed at cloud servers by carrying out a mining process. The authors in [6] developed a mobile blockchain application that executes a mining process on a mobile device platform. Also, the authors in [7] applied a game-theoretic framework to solve a resource management problem in a mobile blockchain system where miners offload their mining tasks to the cloud. Moreover, the work in [8] investigates the probability that a blockchain fork occurs for a given Bitcoin network protocol.
This prior art on mobile blockchains [4, 5, 6, 7, 8] generally assumes that the miners store the ledger while updating their ledger by communicating with each other. However, if the miners cannot maintain a stable network connectivity due to the randomness of the wireless channel, or if the devices used to deploy a blockchain system do not have sufficient computing capabilities, a device cannot perform both mining and networking functions. Therefore, it is more effective to consider a novel architecture for a blockchain system where mining and networking functions are migrated to two different types of nodes, respectively. Moreover, the prior works in [6, 7, 5, 8] do not account for the impact of the transmission latency at the wireless link of mobile devices on the blockchain performance. Finally, the prior art mostly relies on isolated experimental results focused on simplistic use cases. However, a rigorous and generalized performance analysis of mobile blockchains in a wireless environment is needed to show how the parameters of a wireless blockchain system can affect its performance metrics such as forking (i.e., a situation when the node having the shortest PoW delay fails to be the first to update its computing result to other nodes) and device energy consumption. Consequently, unlike the existing literature [6, 7, 5] which investigates the use cases of mobile blockchains that store the ledger at the miners, our goal is to design and analyze a novel blockchain system using wireless mobile miners (MMs) such as drones or computationally capable moving nodes to process the mining computation while the ledgers are stored at the communication nodes (CNs) connected to MMs.
The main contribution of this paper is a novel, mobile blockchain system architecture and the performance analysis of the proposed system. In our architecture, each MM is connected to a CN via a wireless link, and the computing result of an MM is transmitted to other MMs through the backhaul network that interconnects the CNs. In such an architecture, forking events can occur when an MM propagates its computing result to other MMs, since the transmission latency between an MM and its associated CN can be large due to the wireless and mobile nature of the system. To this end, we derive an exact closed-form expression for the probability of occurrence of a forking event, as a function of the wireless network parameters such as the number of MMs and the MM power consumed by the MMs for computing, transmission, and mobility. We use the derived metric to find the average energy consumption required to process the PoW computation of a block. Our analytical result shows that the delay required for movement and the possibly high latency resulting from a wireless link can incur a forking event. Simulation results corroborate the analytical derivations and show that the energy consumption for PoW computation can be reduced by using a lower transmission power and decreasing movement of each MM.
II Mobile Blockchain Architecture
Consider a blockchain network consisting of a set of MMs and CNs as shown in Fig. 1. CNs can be seen as a fixed wireless network infrastructure such as base stations associated with MMs that can be computationally capable devices that can move such as industrial drones or ground vehicles gathering transaction data from other ground devices. When mining computation is executed by MMs, an MM can refer an independent computing node, and, also, an MM can refer the head node of a local computing cluster as shown in Fig. 1 [9]. We mainly focus on drone-type MMs due to their ability to flexibly deploy and move in nearly unconstrained locations111For example, when a smart factory consisting of industrial IoT devices owned by multiple operators calls for consensus, MMs can be wireless surveillance UAVs and warehouse robots, while CNs are wired-networked, fixed robotic assemblers and machines. Also in a vehicular network, MMs are vehicles, and CNs are road-side units and infrastructure [2].. However, our model can accommodate any other type of MMs. In Fig. 1, MMs in remote locations are able to directly communicate each other. Therefore, each MM is associated with a different CN that is connected to a backhaul network. In the considered system, the ledger is located at the CNs while the MMs are used for computing. When transaction records are stored as blocks at the CNs, those blocks must be validated by PoW schemes so as to guarantee that the transaction in the block is original. Then, the CNs can delegate the PoW computation needed for this validation to the wireless MMs. Once each MM completes its PoW computation, an acknowledgment (ACK) message is sent from the MM to the associated CN, called the source CN. The source CN propagates the reception of the ACK message to other CNs though the backhaul links among the CNs. We assume high-bandwidth, fiber backhaul links between CNs and, hence, the message propagation latency in backhaul network will be negligible.
In a blockchain system, the reception order of the ACK messages from multiple MMs to the backhaul network should be identical to the order of completion of the PoW computation. If the ACK message sent earliest arrives to the CNs interconnected by the backhaul network later than other ACK messages, it will lead to a so-called forking event. In a blockchain system, the MM that completes the PoW with the shortest delay will receive a unit of reward. However, when a forking event occurs, the MMs can no longer discern which MM completed the current PoW computation with the shortest delay. Therefore, if a forking event occurs, the MMs must recover from it by repeating the computation of the PoW of the forked block to decide which MM will be rewarded. This recovery from a forking event will clearly increase the total latency required to complete the PoW computation of a block. Thus, the probability of occurrence of a forking event is an important metric in a blockchain system that we will derive in Section III. This metric will also allow us to analyze the average number of PoW computations and average MM energy consumption required to recover from a forking event.
II-A System Model: Computation, Mobility, and Transmission
In Fig. 1, the computing latency and transmission latency of an MM are the realization of random variables and , respectively. We assume that and , for all MMs , will follow identical probability distributions. This is reasonable for the case in which all independent MMs are set to use the same computing power and wireless parameters. For notational simplicity, we use and to denote and , respectively. Therefore, we will derive the probability distributions of and .
According to the PoW, all MMs start their PoW computation at the same time and keep executing the PoW computation until one of the MMs completes the computational task by finding the desired hash value [6]. When an MM executes the computational task for the PoW of the current block, the time period needed to finish this PoW computation will be an exponential random variable whose distribution is where refers to the computing speed of an MM with being the power consumption for computation of an MM and being a constant scaling factor.
Once an MM finishes its PoW computation for the current block, the ACK message must be delivered to the associated CN so that other MMs can stop their current PoW computation. We derive the transmission latency when an MM transmits the ACK message to the associated CN through a wireless link. Under a Rayleigh fading channel, the small-scaling fading gain between an MM and the CN is a random variable with distribution where the statistical average gain of the Rayleigh fading is unity. We assume that MMs move along a circular trajectory around the associated CN and, thus, they have a constant path loss . Then, the signal-to-noise-ratio (SNR) of any MM at its associated CN is the realization for the random variable given by:
[TABLE]
where is the transmit power of an MM, and is the noise power. Since is the only random variable in , the distribution of the random variable will be where .
An MM transmits the ACK if the channel gain is higher than a threshold that can be seen as the minimum SNR required to decode the transmitted data at the receiver. Hence, achieving an SNR higher than is necessary to transmit the ACK data from an MM to the CN. In particular, each MM observes the SNR at any given location, and if the SNR is lower than , the MM moves to another location to obtain a better SNR. Hence, each MM will dynamically seek a location that yields an SNR higher than . The number of new location that an MM needs to visit can be given by n+1,n\in\mathbb{Z^{\geq\textrm{0}}}. At a given location, the probability that a certain MM achieves an SNR higher than is where is the cumulative probability distribution of random variable . Hence, the number of movements, , can be modeled using a geometric distribution with the probability mass function:
[TABLE]
In order to change the small-scale fading gain by moving from one location to another, an MM needs to move by a distance of where is the wavelength of the carrier frequency. The time period needed to move by a distance of is given by where is the speed of the MM. The power consumed222The power consumption needed to move a drone-type MM will be [10]. The closed-form equations of and , are given in [[10, Equations (57)-(59)]]. to move an MM is . Therefore, the movement latency of the MM during movements becomes .
After finishing movements333By setting zero velocity in our system model, a MM can be seen as a stationary mining node connected to backhaul network via a wireless link., the probability density function of SNR , will be where if , and , otherwise. Therefore, the probability distribution of is rewritten as
[TABLE]
The data rate of the MM is where is the bandwidth. The wireless transmission latency of the MM in the uplink will then be where is the size of the ACK message. Then, the probability density function of becomes where , and, therefore, we have
[TABLE]
where is the largest wireless transmission latency in the uplink since the SNR is higher than . Thus, the total transmission latency including both movement and wireless transmission latencies becomes .
By using the random variables , , and , the energy consumption of an MM in a single round of the PoW computation becomes a random variable given by:
[TABLE]
Next, we analyze the performance of the proposed system by deriving the probability of no forking and the average energy consumption of an MM.
III Average Energy Consumption Analysis
We now analyze the performance of the proposed mobile blockchain system in terms of the occurrence of a forking event and the MM energy consumption. The occurrence of a forking event increases the energy consumption required to complete the current block’s PoW due to the increment of the total computing and transmission latency used for the PoW re-computation. Therefore, the probability of having no forking event (called no-forking probability hereinafter), that we derive next, is essential to derive the average MM energy consumption until one block is generated.
III-A No-forking Probability
For the PoW computation of a block, the MM that is the first to finish its PoW is indexed by , i.e., . Therefore, when , the ACK of MM should arrive to the source CN so that the ACK information is propagated to all CNs via the backhaul network before any ACKs from other MMs arrive, i.e., as shown in Case 1 of Fig. 1. However, the order of arrival of ACK messages from multiple MMs to the source CN can be different, i.e., as shown in Case 2 of Fig. 1. The change in the order of arrival happens when the transmission latency of MM is shorter than that of MM , i.e., , due to the different mobility patterns and the wireless transmission latency. Therefore, the ACK message of MM can arrive at the source CN earlier than the ACK message of MM , thus resulting in a forking event. We next derive the no-forking probability by calculating the probability that the ACK from MM arrives earlier than any ACK from any other MM .
Theorem 1**.**
The no-forking probability is given by (2).
Proof.
See Appendix A. ∎
The no-forking probability is derived as a closed-form function of the wireless parameters such as the number of MMs, the MMs’ transmission power, and the computing speed. If a forking event occurs, additional energy is needed for recovering from a forking event and, hence, we analyze the average MM energy consumption next.
III-B Average Energy Consumption
Since a forking event incurs a PoW recomputation, the number of PoW computations needed to complete the current block’s PoW follows a geometric distribution with mean of . Also, MM in each PoW computation will consume the average energy . Our goal is to derive the average energy consumption of MM in each PoW computation round until a block’s PoW computation is completed without forking, i.e., .
We outline how to derive by finding the average latency of the computation, movement, and wireless transmission, i.e., , , and , respectively. Since the shortest computing latency among all MMs is , the complementary cumulative probability distribution (CCDF) of is given by \textrm{Pr}\left(S_{i^{*}}>z\right)=\textrm{Pr}\left(\min_{i\in\mathcal{I}}\left(S_{i}\right)>z\right)=\prod_{i=1}^{J}\textrm{Pr}\left(S_{i}>z\right)=\left(1-\textrm{Pr}\left(S\leq z\right)\right)^{\color[rgb]{0,0,0}I}. Therefore, the average computational latency of MM is derived as \mathbb{E}[S_{i^{*}}]=\int_{0}^{\infty}\left(1-\textrm{Pr}(S\leq z)\right)^{\color[rgb]{0,0,0}I}dz=\int_{0}^{\infty}e^{-\lambda_{c}{\color[rgb]{0,0,0}I}z}dz={1}/(\lambda_{c}{\color[rgb]{0,0,0}I}).
The average latency due to mobility is given by since the average of is . Also, the average wireless transmission latency can be calculated by using the CCDF of the probability of given by
[TABLE]
The average of the transmission latency is:
[TABLE]
Hence, by combining , , and , we can have a closed-form expression of .
IV Simulation Results
For our simulations, we consider that an MM is associated with a CN at a distance of , and the path loss gain is calculated by using a free space model due to air-to-air communications. The power spectral density of the noise is dBm/Hz, and the bandwidth is kHz. The ACK message size is set to Mbits. To model the computational speed of an MM, the power consumption for computation is set to W and the scaling factor is .
Figs. 4 and 4 show the no-forking probability and the average energy consumption per MM. First of all, Figs. 4 and 4 show that simulation and analysis results are matched. In Fig. 4, a forking event can occur with a high probability as the number of the MMs increases. This is due to the fact that, as more MM join in the PoW computing, the blockchain network is more likely to use an MM having a lower ACK reception period than that of MM . Fig. 4 shows that the average energy consumption to complete the PoW computation decreases as the number of MMs increases because using more MMs reduces the PoW computation time period, thus decreasing the energy consumption. For example, using 20 MMs can reduce the energy consumption by up to 94.5 % compared to using 1 MM in a blockchain system.
Fig. 4 shows the energy consumption required to complete the PoW computation. The energy consumption of an MM increases with the SNR threshold and the transmission power . This is because the energy consumption for mobility increases with . Also, the total energy consumption can increase with the transmission power because a high transmission power increases the forking probability, thus increasing the number of repeated PoW computations.
V Conclusion
In this paper, we have proposed a novel blockchain architecture with MMs. We have derived the no-forking probability and the average MM energy consumption. Simulation results have shown that the wireless transmission power, SNR threshold, and the number of MMs significantly impact the energy consumption of the MMs. The analytical results serve as a nexus to minimize the forking probability over wireless and device energy consumption as a future work.
Appendix A Proof of Theorem 1
Proof.
As a first step, suppose that the shortest computing latency is , and that MM has a transmission latency . Given and , the probability that all MMs other than MM , do not incur a forking event becomes:
[TABLE]
[TABLE]
The equality (a) in (4) holds since the MMs independently process the computation and transmit the ACK message. Also, equality (b) in (4) holds since all MMs have identical distributions for and . From the equality (c) in (4), the computing latency of an MM is non-negative and is greater than , i.e., . To avoid a forking event, the value of the computing latency has to be greater than , i.e., . Therefore, the range of the computing latency is . Moreover, if and are given, the PoW computing latency of all MMs other than MM must be greater than . Therefore, the computing latency of MM becomes the conditional probability distribution given by:
[TABLE]
Thus, given and , the no-forking probability yields (4).
Next, the values of and in (4) follow the probability distributions and , respectively. By integrating (4) multiplied with and over the intervals of and , the no-forking probability is derived as in (2). ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1]
- 2[2] H.-N. Dai, Z. Zheng, and Y. Zhang, “Blockchain for internet of things: A survey,” ar Xiv preprint ar Xiv:1906.00245 , Jun. 2019.
- 3[3] H. Kim, J. Park, M. Bennis, and S. Kim, “Blockchained on-device federated learning,” IEEE Commun. Lett. , Jun. 2019.
- 4[4] J. C. Song, M. A. Demir, J. J. Prevost, and P. Rad, “Blockchain design for trusted decentralized iot networks,” in Proc. Annual Conference on System of Systems Engineering , Paris, France, Jun. 2018, pp. 169–174.
- 5[5] X. Liang, J. Zhao, S. Shetty, and D. Li, “Towards data assurance and resilience in iot using blockchain,” in Proc. IEEE Military Communications Conference (MILCOM) , Baltimore, MD, USA, Oct. 2017, pp. 261–266.
- 6[6] K. Suankaewmanee, D. T. Hoang, D. Niyato, S. Sawadsitang, P. Wang, and Z. Han, “Performance analysis and application of mobile blockchain,” in Proc. Int. Conf. on Comput., Networking and Commun. (ICNC) , Maui, HI, USA, Mar. 2018, pp. 642–646.
- 7[7] Z. Xiong, Y. Zhang, D. Niyato, P. Wang, and Z. Han, “When mobile blockchain meets edge computing,” vol. 56, no. 8, pp. 33–39, Aug. 2018.
- 8[8] C. Decker and R. Wattenhofer, “Information propagation in the bitcoin network,” in Proc. IEEE Peer-to-Peer Computing , Trento, Italy, Dec. 2013.
