Basalt: A Rock-Solid Byzantine-Tolerant Peer Sampling for Very Large Decentralized Networks

Alex Auvolat, Yérom-David Bromberg, Davide Frey, Djob Mvondo, François TaïaniMiddleware 2023

Introduction

In massive decentralized systems like blockchains or peer-to-peer (P2P) networks, nodes cannot maintain a global directory of every other participant. Instead, they rely on a Random Peer Sampling (RPS) service to provide a continuous stream of random neighbors. This stream is the lifeblood of epidemic (gossip) protocols used for consensus and data dissemination.

However, malicious "Byzantine" nodes often attempt to "pollute" these samples. If an attacker can ensure that an honest node only receives samples of malicious peers, they can execute an Eclipse attack, effectively isolating the honest node from the rest of the network. Basalt is a novel peer sampling algorithm designed to protect large-scale networks from such threats. By using a "stubborn chaotic search" driven by random hashing, it provides near-optimal protection against Eclipse attacks and significantly outperforms existing state-of-the-art solutions like Brahms in both security and convergence speed.

The Basalt Methodology

Basalt introduces a technique the authors call stubborn chaotic search. This approach moves away from complex statistical filtering—which often requires "warming up" and can be gamed—toward pure cryptographic ranking.

Core Mechanism: Ranking via Hashing

Each node maintains a view of $v$ slots. Each slot is associated with a unique, locally generated random seed. To fill a specific slot, the node searches for the peer whose ID, when hashed with that slot's seed, produces the smallest value (a "min-wise independent permutation").

The Basalt view management mechanism using local seeds and ranking to select peers.

Because the seeds are local and random, an attacker cannot predict which peer an honest node will "prefer" for any given slot. This makes the selection process "stubborn" against external manipulation. To ensure the network graph remains dynamic and samples stay fresh, nodes periodically reset their seeds and start the search for the "best match" anew using a round-robin strategy.

Integrated Gossip and Sampling

Unlike previous designs that maintained separate "gossip views" and "sampler views," Basalt uses the current winners of its chaotic search to drive its gossip exchanges. This tight feedback loop prevents attackers from polluting a secondary gossip layer to eventually take over the samplers. By forcing the gossip protocol to use the results of the secure sampling, the system becomes significantly harder to subvert.

Evaluation and Results

The authors evaluated Basalt using a combination of theoretical differential equation modeling, large-scale Monte Carlo simulations, and live deployment on the Avalanche cryptocurrency network.

Parameters used for the environment, algorithm, and comparative Brahms simulations.

Simulation Findings

In simulations with up to 20% Byzantine nodes, Basalt provided samples that were nearly as clean as a "full knowledge" protocol (where every node knows everyone). In contrast, the state-of-the-art Brahms protocol began to collapse under the same conditions. Furthermore, Basalt demonstrated remarkable resilience to "attack force." Even if a Byzantine node sends 20x more "push" messages than an honest node, Basalt’s hashing-based selection remains stable.

Basalt also reaches a stable, high-quality network state much faster than its competitors. In scenarios where Brahms failed to converge entirely, Basalt succeeded within 20-40 rounds.

Real-World Validation

The authors implemented Basalt as a 500-line patch to AvalancheGo and ran it against 100 adversarial nodes on the public Avalanche network. Basalt delivered samples containing 17.5% malicious nodes when the true proportion was approximately 18.8%. This proved that the algorithm can replace Proof-of-Stake-based sampling with a purely algorithmic approach without sacrificing security.

Discussion and Limitations

While Basalt is highly effective against Eclipse attacks, it is not a silver bullet for all network threats. The authors explicitly state that Basalt protects against isolation but not Sybil attacks, where one attacker creates millions of fake IDs. Basalt assumes an underlying mechanism (like Proof-of-Work, Proof-of-Stake, or IP-based rate limiting) exists to make ID generation costly.

Additionally, as an application-layer protocol, Basalt does not protect against adversaries who control physical routing infrastructure (e.g., BGP hijacking). Future work may involve exploring Trusted Execution Environments (TEEs) to further harden the protocol or combining Basalt with IP-tree-based sampling to mitigate Sybil attacks originating from specific network blocks.

Summary updated

BibTeX
@inproceedings{auvolat2023basalt,
  author = {Alex Auvolat and Yérom-David Bromberg and Davide Frey and Djob Mvondo and François Taïani},
  title = {{Basalt: A Rock-Solid Byzantine-Tolerant Peer Sampling for Very Large Decentralized Networks}},
  booktitle = {Middleware},
  year = {2023},
  doi = {10.1145/3590140.3629109},
}
Figure