• Home
  • Search
  • Consensus Algorithm Analysis in Blockchain: PoW and Raft
  • Cite Icon10
  • https://doi.org/10.1002/9781119790839.ch2Copy DOI Icon

Consensus Algorithm Analysis in Blockchain: PoW and Raft

  • Oct 22, 2021
  • Taotao Wang +2 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

This chapter theoretically and experimentally analyzes the consensus algorithms in blockchains. Consensus is one of the key problems in blockchains, and there are several candidate consensus algorithms for public and consortium/private blockchains with different security and performance levels.The first part of this chapter analyzes the proof‐of‐work (PoW) consensus algorithm. In PoW‐based public blockchains, miners can conduct different mining strategies to selfishly increase their own revenues. Previously, the most profitable mining strategy was believed to be honest mining encoded in the default blockchain protocol. It was shown later that it is possible to gain more mining rewards by deviating from honest mining and conducting some malicious mining strategies. In particular, the mining problem can be formulated as a Markov decision process (MDP), which can be solved to give the optimal mining strategy. However, solving the mining MDP requires knowing the values of various parameters that characterize the blockchain network model. In real blockchain networks, these parameter values are not easy to obtain and may change over time. This hinders the use of the MDP model‐based solution. In the first part of this chapter, we employ RL to dynamically learn a mining strategy with performance approaching that of the optimal mining strategy. Since the mining MDP problem has a nonlinear objective function (rather than linear functions of standard MDP problems), we design a new multi‐dimensional RL algorithm to solve the problem. Experimental results indicate that, without knowing the parameter values of the mining MDP model, our multi‐dimensional RL mining algorithm can still achieve optimal performance over time‐varying blockchain networks.The second part of this chapter analyzes the Raft consensus algorithm that is usually adopted in the consortium/private blockchains. There are many articles analyzing the performance of threat models for blockchains. However, the issue of network stability has not received much attention, which in fact affects the blockchain performance. This part studies the performance of Raft in networks with non‐negligible packet loss rate. In particular, we propose a simple but accurate analytical model to analyze the distributed network split probability. At a given time, we explicitly present the network split probability as a function of the network size, the packet loss rate, and the election timeout period. To validate our analysis, we implement a Raft simulator and the simulation results coincide with the analytical results. With the proposed model, one can predict the network split time and probability in theory and optimize the parameters in Raft consensus algorithm.

Similar Papers
  • Research Article
  • Citations64

When blockchain meets AI: Optimal mining strategy achieved by machine learning

  • Feb 01, 2021
  • International Journal of Intelligent Systems
  • Taotao Wang +2
  • Research Article

МОДЕЛЮВАННЯ ПРОЦЕСУ ФОРМУВАННЯ БЛОКІВ У БЛОКЧЕЙНІ ТА ЙОГО ВПЛИВ НА МАСШТАБОВАНІСТЬ

  • Dec 01, 2024
  • Computer systems and network
  • O Vovchak +1
  • Conference Article
  • Citations75

State aggregation in Markov decision processes

  • Dec 10, 2002
  • Zhiyuan Ren +1
  • Conference Article
  • Citations4

Research on Optimization of Efficient and Scalable Mutli-Raft Consensus Algorithm for Supply Chain Finance

  • Aug 05, 2022
  • Na Du +5
  • Research Article
  • Citations6

Proof of Work Is a Stigmergic Consensus Algorithm: Unlocking Its Potential

  • Jun 01, 2022
  • IEEE Robotics & Automation Magazine
  • Onder Gurcan
  • Conference Article
  • Citations585

Comparative analysis of blockchain consensus algorithms

  • May 01, 2018
  • L M Bach +2
  • Research Article

BillingOpsSC: Smart Contract-based Service Billing Management Method for Consortium Blockchain-based Systems

  • Jan 01, 2024
  • Journal of Information Processing
  • Tatsuya Sato +2
  • PDF
  • Research Article
  • Citations2

RSA Based Consensus Algorithm for Lightweight Private Blockchain Network

  • Jan 01, 2023
  • ITM Web of Conferences
  • Nishant Gupta +1
  • PDF
  • Research Article
  • Citations1

To Exit or Not to Exit: Cost-Effective Early-Exit Architecture Based on Markov Decision Process

  • Jul 19, 2024
  • Mathematics
  • Kyu-Sik Kim +1
  • Conference Article
  • Citations23

Analysis on Blockchain Consensus Mechanism Based on Proof of Work and Proof of Stake

  • Aug 01, 2022
  • Shi Yan
  • PDF
  • Book Chapter
  • Citations3

An Improved Raft Consensus Algorithm Based on Asynchronous Batch Processing

  • Jan 01, 2022
  • Hao Li +2
  • Research Article
  • Citations80

A Lightweight and Attack-Proof Bidirectional Blockchain Paradigm for Internet of Things

  • Mar 15, 2022
  • IEEE Internet of Things Journal
  • Chenhao Xu +5
  • Book Chapter
  • Citations6

Proof of Policy (PoP): A New Attribute-Based Blockchain Consensus Protocol

  • Aug 20, 2020
  • R Mythili +1
  • Book Chapter
  • Citations3

Node Security Metric: Proof of Conformity Blockchain Consensus Protocol

  • Jan 01, 2022
  • Abdellah Ouaguid +2
  • PDF
  • Research Article
  • Citations74

Designing a Permissioned Blockchain Network for the Halal Industry using Hyperledger Fabric with multiple channels and the raft consensus mechanism

  • Jan 06, 2021
  • Journal of Big Data
  • Isti Surjandari +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.