Rateless Coded Blockchain for Dynamic IoT Networks

Changlin Yang, Alexei Ashikhmin, Xiaodong Wang, Zibin Zheng

TL;DR

This paper introduces a rateless coded blockchain specifically designed for the volatile environment of Internet of Things (IoT) networks. By replacing traditional fixed-rate error-correcting codes with rateless Raptor codes, the system achieves a 99.6% reduction in storage and communication overhead while maintaining extreme reliability (decoding failure probability of $10^{-12}$) even as nodes frequently join and leave the network.

What Problem Does This Paper Address?

The "blockchain bloat" problem is a major hurdle for IoT integration. Traditionally, a "full node" must store the entire history of the blockchain—hundreds of gigabytes for networks like Bitcoin. IoT devices (sensors, smart appliances) simply don't have the disk space or bandwidth for this.

While "coded blockchains" have been proposed to distribute data across nodes (storing only $1/k$ of the data per node), existing solutions use fixed-rate codes (like Reed-Solomon). These work poorly in dynamic networks: if the number of nodes changes or too many nodes leave permanently, the data can become unrecoverable. Furthermore, when a new node joins a fixed-rate system, it often faces a massive communication overhead to "catch up" and decode the existing data.

Methods

The authors propose a decentralized framework using Raptor codes, a class of high-performance rateless codes. Their approach involves several novel components:

  1. Rateless Systematic Encoding: Blocks are partitioned into groups. Instead of a fixed number of parity symbols, nodes can generate a potentially infinite stream of coded symbols. By using a "systematic" approach, the original blocks are preserved at some nodes, making simple data retrieval faster.
  2. Enhanced Blocks: To ensure the entire network agrees on coding parameters (like group size $k$ and the generator matrix), the authors introduce a new block structure. These "enhanced blocks" are mined into the chain and contain metadata that synchronizes coding parameters across all nodes.
  3. Network Maintenance Algorithm (NMA): This protocol handles node churn. When a new node joins, it doesn't download the whole chain. Instead, it uses the NMA to collect a small number of coded symbols from peers and "repairs" or generates its own unique coded block to store.
  4. Dynamic Group Sizing: The system calculates the optimal group size ($k_m$) based on current network conditions (node join/leave rates) to ensure that the probability of losing data stays below a strict target (e.g., $10^{-12}$).

Datasets

The researchers evaluated their scheme using two primary sources:

  • Synthetic Data: Used to simulate "Rapidly Reducing Networks" to test how the algorithm handles extreme scenarios where nodes leave the network in large waves.
  • Real-world Bitcoin Data: They pulled historical data from the Bitcoin blockchain (Nov 2018 to Nov 2020), including block sizes and node count fluctuations, to simulate how their system would have performed in a real-world deployment.

Key Insights and Ideas

  • Flexibility is Key: Fixed-rate codes are "brittle." Rateless codes are "fluid"—they naturally adapt to a network where the number of participants ($n$) is constantly shifting.
  • The "Repair" Shortcut: One of the biggest "aha" moments is that a new node doesn't always need to perform a full, computationally expensive decode of a group to join. Often, it can simply XOR a few existing coded symbols to create its own unique piece of the puzzle, drastically saving CPU and bandwidth.
  • Consensus on Coding: You can't have a distributed storage system if nodes don't agree on how the data is encoded. By embedding coding parameters into the blockchain headers themselves (the "Enhanced Blocks"), the authors leverage the blockchain's own consensus mechanism to manage its storage layer.

Key Results

  • Massive Efficiency: In Bitcoin-based simulations, both storage requirements and communication overhead for new nodes were reduced by 99.6% compared to traditional full replication.
  • Practical Storage: For a Bitcoin node in late 2020, instead of needing ~300+ GB, a node using this scheme would only need about 7 GB (mostly for the active UTXO set and headers).
  • Low Failure Rate: Even with high node churn, the system maintained a decoding failure probability as low as $10^{-12}$, making it viable for high-security financial applications.
  • Joining Speed: A new node only needs to download roughly 8 GB of data to become a functional participant, compared to the hundreds of gigabytes required by a standard Bitcoin Core client.

Limitations and Future Work

  • Computational Complexity: While Raptor codes are efficient, the "peeling" decoding process still requires more CPU power than simple replication. This might be a factor for the absolute lowest-power IoT microcontrollers.
  • Malicious Actors: While the paper mentions Sybil attacks and basic verification, a deeper exploration of "adversarial" coding—where malicious nodes intentionally provide corrupted coded symbols—is a suggested area for future research.
  • Parameter Optimization: The authors note that future work could further optimize the "degree distribution" (how many blocks are XORed together) to push the decoding failure probability even lower without increasing overhead.

Summary updated

BibTeX
@article{yang2024rateless,
  author = {Changlin Yang and Alexei Ashikhmin and Xiaodong Wang and Zibin Zheng},
  title = {{Rateless Coded Blockchain for Dynamic IoT Networks}},
  journal = {IEEE Internet of Things Journal},
  year = {2024},
  doi = {10.1109/jiot.2023.3328648},
}
Figure