OptimumP2P: Fast and Reliable Gossiping in P2P Networks

Nicolas Nicolaou, Onyeka Obi, Aayush Rajasekaran, Alejandro Bergasov, Aleksandr Bezobchuk, Kishori M. Konwar, Michael Meier, Santiago Paiva, Har Preet Singh, Swarnabha Sinha, Sriram Vishwanath, Muriel Médard

Abstract

In decentralized peer-to-peer (P2P) networks, the efficient broadcast of information is critical for maintaining consensus and system health. Traditional gossip protocols, such as the industry-standard Gossipsub, often face a trade-off between bandwidth efficiency and propagation latency, particularly under high network load. This paper introduces OPTIMUMP2P, a high-performance gossip protocol that integrates Random Linear Network Coding (RLNC) into the libp2p stack. By utilizing the Galois Gossip protocol for dissemination and the Rugby Protocol for security, OPTIMUMP2P achieves significantly lower latency, higher reliability, and improved resilience against pollution attacks compared to existing solutions.

1. Introduction

Decentralized systems like Ethereum rely on gossip protocols to broadcast blocks and transactions across a global network of nodes. The current standard, Gossipsub, manages bandwidth by organizing peers into a sparse mesh. While effective at scale, this architecture introduces significant "hop" counts, leading to increased latency and potential bottlenecks during traffic bursts. Furthermore, traditional protocols are often redundant, transmitting the same full messages multiple times. Attempts to use coded fragments to mitigate this often fall victim to pollution attacks, where malicious actors inject corrupted data to prevent honest nodes from reconstructing the original message.

OPTIMUMP2P addresses these challenges by replacing whole-message forwarding with a coded approach that maximizes information flow while providing a robust mechanism to identify and isolate malicious participants.

2. Methodology

2.1 Random Linear Network Coding (RLNC)

At the core of OPTIMUMP2P is RLNC. Instead of transmitting a message as a single unit, a publisher divides it into $k$ fragments and generates $p \cdot k$ "shards"—linear combinations of the original fragments. A receiving peer can reconstruct the original message upon collecting any $k$ linearly independent shards. This approach ensures that every packet transmitted has a high probability of being "innovative" (providing new information) to the receiver.

2.2 The Galois Gossip Protocol

To optimize dissemination, OPTIMUMP2P employs the Galois Gossip protocol, which features two key mechanisms:

  • Publisher Flooding: To minimize initial latency, the original publisher sends shards to all its neighbors immediately, bypassing the standard mesh restrictions for the first hop.
  • Recoding: Intermediate nodes do not merely forward received shards. Instead, they generate new linear combinations from their local buffer. This ensures that the data remains diverse as it traverses the network, preventing the "duplicate packet" problem common in traditional gossip.

2.3 The Rugby Protocol: Pollution Mitigation

To secure the network against malicious data, the authors developed the Rugby Protocol. It operates through four stages:

  1. Detection: Nodes use cryptographic hashes to verify the integrity of a decoded message.
  2. Identification: If pollution is detected, the node employs a brute-force verification process to determine which specific neighbor provided the corrupted shard.
  3. Finger-Pointing: Once an attacker is identified, the node broadcasts a signed alert containing the invalid shard as proof, allowing the network to blacklist the offender.
  4. Self-Quarantine: To prevent the accidental spread of bad data, honest nodes that have received (but not yet verified) corrupted shards can "self-quarantine," temporarily ceasing transmissions until they have cleared their buffers.

3. Experimental Evaluation

3.1 Setup

The protocol was evaluated in two distinct environments against a baseline of standard libp2p Gossipsub:

  • Ethshadow Simulation: A large-scale simulation of 1,000 nodes with realistic geographic latencies and a mix of high-speed (20%) and consumer-grade (80%) bandwidth.
  • GCP Deployment: A real-world testbed of 36 nodes distributed across Google Cloud Platform regions, mirroring the actual distribution of Ethereum validator nodes.

3.2 Key Results

The experimental results demonstrate that OPTIMUMP2P outperforms the baseline in three critical areas:

  • Scalability: Under high load (20 messages per second), OPTIMUMP2P maintained a propagation latency of approximately 2.0 seconds, while Gossipsub latency doubled to 4.0 seconds due to network saturation.
  • Reliability: When handling large 10MB payloads, Gossipsub delivery rates dropped to 84%. In contrast, OPTIMUMP2P maintained 100% delivery with a latency of 1.3 seconds, compared to 15.6 seconds for the baseline.
  • Stability: OPTIMUMP2P showed remarkably low variance in arrival times (standard deviation of ±0.2–0.3s vs. ±0.9s for Gossipsub). This predictability is vital for blockchain protocols that require strict timing for block production and attestation.

4. Discussion and Limitations

While OPTIMUMP2P offers significant performance gains, it introduces computational overhead due to the matrix operations required for RLNC. While negligible on modern server-grade CPUs, this could impact resource-constrained IoT devices. Additionally, the efficiency of the protocol is linked to the finite field size (set to $F_{2^8}$ in this study); extremely large networks may require further analysis of the relationship between field size and the probability of linear independence.

5. Conclusion

OPTIMUMP2P demonstrates that integrating Random Linear Network Coding into P2P gossip protocols can resolve the long-standing tension between bandwidth efficiency and low latency. By combining innovative dissemination techniques with the Rugby Protocol's security measures, OPTIMUMP2P provides a robust foundation for the next generation of high-throughput decentralized networks.

Summary updated

BibTeX
@inproceedings{nicolaou2025optimump,
  author = {Nicolas Nicolaou and Onyeka Obi and Aayush Rajasekaran and Alejandro Bergasov and Aleksandr Bezobchuk and Kishori M. Konwar and Michael Meier and Santiago Paiva and Har Preet Singh and Swarnabha Sinha and Sriram Vishwanath and Muriel Médard},
  title = {{OptimumP2P: Fast and Reliable Gossiping in P2P Networks}},
  booktitle = {CNSM},
  year = {2025},
  doi = {10.23919/cnsm67658.2025.11297457},
}
Figure