Introduction
In large-scale distributed systems such as sensor networks or peer-to-peer (P2P) grids, data is often generated at disparate locations. Ensuring data persistence against node failure typically involves erasure codes (e.g., Reed-Solomon codes). However, traditional implementations rely on a central server to collect, encode, and redistribute data, creating a significant scalability bottleneck and a single point of failure. This paper introduces Decentralized Erasure Codes, a method for robustly storing data across a distributed network without central coordination.
Problem Statement
The authors address the challenge of creating erasure codes "on the fly" in a completely decentralized manner. The goal is a system where:
- No central coordination is required.
- Storage is limited: Each node stores only a small amount of data.
- Reconstruction: A data collector can reconstruct all original $k$ data packets by querying any $k$ out of $n$ storage nodes.
Methodology: Randomized Sparse Constructions
The proposed solution utilizes a randomized construction based on random bipartite graphs. The process involves:
- Pre-routing: Each of the $k$ data-generating nodes sends its packet to $d(k)$ storage nodes, chosen uniformly at random.
- Random Linear Combination: Each storage node creates a random linear combination of all received packets over a finite field ($GF(q)$).
- Sparsity: The authors demonstrate that if each source node connects to $O(\ln k)$ storage nodes, the resulting generator matrix is "optimally sparse" while maintaining decodability.
This approach is inspired by network coding but focuses on creating a "stateless" robust storage layer rather than optimizing a specific flow.
Simulation and Evaluation
The theory was evaluated using synthetic simulations of a "Perimetric Storage" scenario. In this setup, $N$ nodes are placed on a grid in a unit square. Data is generated by $k$ nodes within the grid and stored in $n$ nodes located on the perimeter for easier access. The evaluation measured total communication cost, storage node degree, and success probability as the network size $N$ scaled up to 10,000 nodes.
Key Insights
- The Power of Logarithms: The proof that $d(k) = c \ln(k)$ is the magic threshold is a central finding. This degree ensures the random bipartite graph has a perfect matching, a necessary condition for successful decoding.
- Decentralized Robustness: Since source nodes make independent random choices, the system is inherently robust to the addition or removal of nodes without requiring global reconfiguration.
- Efficiency of Sparsity: While previous work suggested dense random linear codes, this paper proves that sparsity provides equivalent reliability with significantly lower communication and decoding overhead.
- Inversion of Fountain Codes: The authors note that their decentralized property is essentially the transpose of the property used in Digital Fountain codes (like LT or Raptor codes). While Fountain codes focus on independent columns of a matrix, decentralized erasure codes focus on independent rows.
Results and Scalability
The authors proved that $d(k) = \Theta(\ln k)$ is both necessary and sufficient for successful decoding with high probability. By exploiting the sparsity of the generator matrix, decoding can be performed in $O(k^2 \log k)$ time using the Wiedemann algorithm—a significant improvement over the $O(k^3)$ required for dense codes.
As shown in the simulation results, the communication cost per node grows logarithmically with the total number of nodes $N$, confirming the theoretical predictions of scalability.
Conclusion and Future Work
Decentralized erasure codes offer a scalable, robust alternative to centralized storage schemes. While highly effective, the method currently assumes an underlying routing layer can reliably deliver packets to random nodes. Future research may explore performance in lossy wireless environments without feedback and the joint optimization of data compression and storage for correlated sensor data.
Summary updated