[Paper Review] GossipSub: Attack-Resilient Message Propagation in the Filecoin and ETH2.0 Networks
GossipSub is a resilient, gossip-based pubsub protocol designed for permissionless blockchains like Filecoin and ETH2.0, combining a mesh-based eager push model with a peer scoring system and attack-specific mitigation strategies to ensure low-latency message propagation while resisting Sybil and eclipse attacks. It achieves high performance with only 227k duplicate messages at default settings and remains immune to all tested attacks in a 5,000-node AWS testbed.
Permissionless blockchain environments necessitate the use of a fast and attack-resilient message propagation protocol for Block and Transaction messages to keep nodes synchronised and avoid forks. We present GossipSub, a gossip-based pubsub protocol, which, in contrast to past pubsub protocols, incorporates resilience against a wide spectrum of attacks. Firstly, GossipSub's mesh construction implements an eager push model keeps the fan-out of the pubsub delivery low and balances excessive bandwidth consumption and fast message propagation throughout the mesh. Secondly, through gossip dissemination, GossipSub realises a lazy-pull model to reach nodes far-away or outside the mesh. Thirdly, through constant observation, nodes maintain a score profile for the peers they are connected to, allowing them to choose the most well-behaved nodes to include in the mesh. Finally, and most importantly, a number of tailor-made mitigation strategies designed specifically for these three components make GossipSub resilient against the most challenging Sybil-based attacks. We test GossipSub in a testbed environment involving more than 5000 VM nodes deployed on AWS and show that it stays immune to all considered attacks. GossipSub is currently being integrated as the main messaging layer protocol in the Filecoin and the Ethereum 2.0 (ETH2.0) blockchains.
Motivation & Objective
- To design a message propagation protocol resilient to Sybil and eclipse attacks in permissionless blockchain networks.
- To balance low message propagation latency with minimal bandwidth overhead in large-scale P2P networks.
- To enable fast, reliable dissemination of block and transaction messages across untrusted, open peer-to-peer networks.
- To provide a production-grade messaging layer for high-value blockchains like Filecoin and ETH2.0.
- To integrate real-time peer behavior monitoring and dynamic mesh management for adaptive resilience.
Proposed method
- GossipSub uses a mesh construction where each node maintains a fixed-degree, globally connected mesh for direct, eager message pushing to reduce latency and duplicate traffic.
- It employs a lazy-pull model via gossip to reach non-mesh peers, ensuring wide dissemination without overloading mesh nodes.
- A local, peer-specific score function tracks behavior—rewarding fast delivery and penalizing dropped messages—enabling dynamic mesh membership decisions.
- The protocol applies targeted mitigation strategies based on mesh and score properties, such as rate-limiting and peer isolation, to counteract Sybil and eclipse attacks.
- It uses a configurable D-value (mesh degree) to tune trade-offs between latency, bandwidth, and redundancy, with D=8 selected as optimal.
- The system is evaluated in a 5,000-node AWS testbed with tunable network conditions, using Testground for reproducible, large-scale experimentation.
Experimental results
Research questions
- RQ1How can a pubsub protocol achieve low-latency message propagation while remaining resilient to Sybil-based eclipse attacks in permissionless blockchains?
- RQ2What trade-offs exist between mesh degree (D), message latency, and bandwidth overhead in large-scale P2P networks?
- RQ3Can a combination of mesh-based pushing and score-based peer selection effectively resist coordinated Sybil attacks?
- RQ4How does the protocol perform under realistic network conditions, including high packet loss and variable latency?
- RQ5To what extent can the protocol self-heal after initial network compromise, such as during cold boot or covert flash attacks?
Key findings
- GossipSub achieved a median message propagation latency of 139ms at p99 under default settings (D=8), with only 227,000 duplicate messages in a 1,000-node network.
- Increasing the mesh degree from D=8 to D=32 reduced latency by only 25ms but increased duplicate messages by 100%, from 227k to 995k.
- The protocol remained immune to all tested attacks, including high-volume Sybil and eclipse attacks, even when attackers spent up to $40,000/month in a 1,000-node network.
- The most effective attacks—cold boot and covert flash—only caused temporary disruption, with full recovery achieved within seconds.
- Bandwidth usage scaled linearly with transaction rate: at 64 tx/sec, GossipSub required 1.99 TB/month, compared to 44.1 TB/month for Bitcoin’s broadcast protocol.
- The default D=8 setting was found to offer the best balance of performance and efficiency, with minimal impact on latency and redundancy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.