CLEC: Combination Locality Based Erasure Code for Permissioned Blockchain Storage

Jiabin Wu, Boai Yang, Yang Liu, Fang Liu, Nong Xiao, Shuo Li2022

Abstract

CLEC (Combination Locality Based Erasure Code) is a novel storage scheme for permissioned blockchains that slashes storage costs from $O(n)$ to $O(1)$ while significantly boosting performance. By grouping nodes into "delay circles" based on network latency and using local parity chunks, CLEC achieves up to 6x faster repair speeds and 1.7x faster read speeds compared to existing state-of-the-art erasure coding methods.

Introduction: The Storage Bottleneck in Blockchains

Traditional blockchains rely on full replication, meaning every node in the network stores a complete copy of the ledger. While this ensures high availability, it creates a massive storage bottleneck—as the chain grows, the storage overhead becomes $O(n)$ for $n$ nodes, making it prohibitively expensive for new nodes to join.

To solve this, researchers previously introduced Erasure Coding (EC), which breaks data into chunks and distributes them across nodes. However, standard EC comes with a "read/repair penalty." To reconstruct a block, a node must fetch many chunks from across the entire network. In a global system, this means high latency and massive bandwidth consumption, especially in "Byzantine" environments where some nodes might be malicious or unresponsive.

Methods: Combination Locality

The authors propose CLEC, which introduces the concept of Combination Locality. This approach combines two strategies:

  1. Topology Locality (Delay Circles): Nodes are grouped into "delay circles" based on their communication latency (ping times). Nodes physically closer to each other (e.g., in the same data center or region) form a circle.
Nodes are grouped into delay circles based on measured network latency (t1-t4).
  1. Parity Locality: Within these groups, the system generates local parity chunks.

The "Combined Chunk" Innovation

When a node needs to recover a missing block, it doesn't ask every node for individual chunks. Instead, a "lead node" within each delay circle collects chunks from its local peers, performs an XOR operation to create a single combined chunk, and sends only that one chunk to the requester.

The CLEC repair process uses inter-DelayCircle and cross-DelayCircle transmission to reconstruct data blocks.

To ensure security in a Byzantine environment (where a lead node might send a fake combined chunk), CLEC generates and stores the hash values of these combined chunks during the initial encoding phase. This allows the requesting node to verify the data's integrity without needing the original individual chunks.

Experimental Evaluation

The researchers evaluated CLEC using a practical implementation on Tendermint, an open-source permissioned blockchain. The infrastructure consisted of 20 virtual machines on the Ali Cloud platform, distributed across 7 regions (including Beijing, Shanghai, and Guangzhou) to simulate real-world network delays. The system was tested with 4MB block sizes and varying "faulty factors" simulating different consensus protocols like Ripple or PBFT.

Key Insights

  • Network Heterogeneity is an Asset: Most coding schemes treat all network links as equal. CLEC recognizes that intra-region communication is orders of magnitude faster than cross-region communication and offloads the "heavy lifting" of data reconstruction to the local level.
  • Verification without Storage: A major innovation is the realization that you don't need to store the combined chunks to benefit from them. By storing only their hashes, CLEC maintains a tiny storage footprint while enabling fast, verifiable recovery.
  • O(1) Scaling: By using local groups, the number of chunks transmitted across the wide-area network remains constant regardless of how many nodes are in the total network. This moves blockchain storage from a linear growth model to a constant growth model.

Results and Performance

The experiments compared CLEC against BFT-Store, a leading erasure-coded blockchain storage scheme:

  • Repair Performance: CLEC demonstrated a maximum repair speed 6 times faster than BFT-Store. This is because it avoids the "network storm" of fetching dozens of individual chunks across regions.
  • Read Performance: Read speeds were approximately 1.7 times faster than the baseline.
  • Storage Efficiency: While CLEC adds a small amount of local parity, its storage overhead is only 1.17 times that of BFT-Store. Crucially, it still reduces the per-block storage consumption to $O(1)$, a massive improvement over the $O(n)$ of traditional blockchains.

Limitations and Future Work

The current paper focuses on a static set of nodes. The authors plan to investigate how the coding scheme should adapt dynamically as nodes join or leave. Additionally, the performance gains of CLEC are most pronounced when there are few faulty nodes in a single group; multiple simultaneous failures in one circle require a slower "global repair." Finally, the computational impact of XOR operations on lead nodes in very high-throughput systems remains an area for further study.

Summary updated

BibTeX
@inproceedings{wu2022clec,
  author = {Jiabin Wu and Boai Yang and Yang Liu and Fang Liu and Nong Xiao and Shuo Li},
  title = {{CLEC: Combination Locality Based Erasure Code for Permissioned Blockchain Storage}},
  booktitle = {Computers,},
  year = {2022},
  doi = {10.32604/cmc.2022.028305},
}
Figure