Quantifying Liveness and Safety of Avalanche's Snowball

Quentin Kniep, Maxime Laval, Jakub Sliwinski, Roger Wattenhofer

Abstract

While the Avalanche blockchain has gained significant traction due to its high throughput and unique metastable consensus mechanism, its theoretical resilience bounds have remained a subject of academic debate. This paper summarizes a quantitative investigation by researchers from ETH Zurich and EPFL into Snowball, the core protocol of Avalanche. Through high-fidelity simulations, the study demonstrates that Snowball's resilience to adversarial influence is significantly lower than the 33% threshold typically associated with Byzantine Fault Tolerant (BFT) systems. Specifically, the research reveals that an adversary with as little as 2.8% of the stake can indefinitely stall the network, while a 25% stake can lead to safety violations in a matter of minutes.

Introduction

Avalanche distinguishes itself from traditional Proof-of-Stake (PoS) protocols by utilizing a metastable consensus mechanism based on repeated random sampling. While traditional protocols aim for a resilience threshold of $n/3$, the original Avalanche whitepaper only proved liveness for up to $O(\sqrt{n})$ malicious nodes. As the network grows, this fraction becomes increasingly small. This research seeks to move beyond these theoretical bounds to provide concrete, experimental data on two critical properties: liveness (the ability to reach a decision) and safety (the prevention of conflicting decisions, such as double-spending).

Methodology

The researchers developed a simulation environment in Rust, leveraging the avalanche-consensus library to ensure high fidelity to the official Go implementation used by Ava Labs. The simulations modeled networks of up to 20,000 nodes with equal stake, utilizing standard Avalanche parameters ($k=20, \alpha=15, \beta=20$).

The study evaluated two adversarial models:

  1. Naive Adversary: Queries honest nodes like a standard participant and estimates the network state based on those results.
  2. Informed Adversary: Possesses perfect knowledge of the current preferences of all honest nodes, though it lacks extra communication or speed advantages.

Both adversaries employed a "strategic rebalancing" strategy. When queried, the adversary responds with whichever "color" (transaction choice) is currently in the minority among honest nodes, effectively attempting to maintain a 50/50 split in the network and prevent consensus.

Liveness Vulnerabilities

The most significant finding is that Snowball’s resilience to liveness attacks decreases as the network scales. Because the protocol relies on random sampling, the statistical "noise" available for an attacker to exploit becomes easier to manipulate in larger populations relative to the total size.

In a network of 2,000 nodes, a naive adversary required only 5.2% of the stake to stall the network indefinitely. An informed adversary was even more efficient, requiring only 2.8% of the stake. This confirms the $O(\sqrt{n})$ vulnerability: as $n$ increases, the percentage of stake required to break liveness drops, suggesting that the protocol's liveness is not robust against even small, coordinated attackers in large-scale deployments.

Safety Analysis

Unlike liveness, which can be broken with a very small stake, breaking safety (causing a double-spend) is a probabilistic challenge. An attacker must "tilt" specific nodes toward a wrong decision while keeping the remainder of the network undecided, eventually flipping the rest of the network to a conflicting choice.

The research shows that safety is exponentially dependent on the attacker's stake. In a network of 3,000 nodes, an adversary with 25% stake could cause a safety violation in an average of 265 rounds. However, when the stake was reduced to 20%, the expected time to a violation jumped to 940,000 rounds. While 25% is still below the traditional 33% threshold, the exponential nature of the risk suggests that safety is more resilient than liveness in the Snowball protocol.

Discussion and Implications

The findings suggest that Avalanche functions more as a Byzantine Reliable Broadcast protocol than a true consensus protocol. In standard consensus, the network must eventually decide on one of two conflicting choices (Termination). In Snowball, the network can hang indefinitely if a conflict exists, failing this requirement.

Avalanche mitigates this by distinguishing between "virtuous" transactions (no conflicts) and "rogue" ones. While the protocol handles virtuous transactions efficiently, it struggles with conflicts. This vulnerability likely explains why Avalanche utilizes a different, more traditional protocol called Snowman for its smart contract chain (C-Chain), where total ordering and termination are strictly required.

Conclusion

This quantitative analysis highlights a critical trade-off in the Snowball protocol: while it offers high throughput and scalability, it does so at the expense of traditional resilience thresholds. The $O(\sqrt{n})$ liveness vulnerability and the 25% safety threshold indicate that the protocol relies heavily on the assumption that conflicting "rogue" transactions are rare or difficult for an adversary to force upon honest users. Future research is required to determine how these vulnerabilities manifest within the full Avalanche Directed Acyclic Graph (DAG) structure and under non-synchronous network conditions.

Summary updated

BibTeX
@inproceedings{kniep2024quantifying,
  author = {Quentin Kniep and Maxime Laval and Jakub Sliwinski and Roger Wattenhofer},
  title = {{Quantifying Liveness and Safety of Avalanche's Snowball}},
  booktitle = {ESORICS Workshops},
  year = {2024},
  doi = {10.1007/978-3-031-82349-7\_18},
}
Figure