Topology Analysis of the XRP Ledger

Vytautas Tumas, Sean Rivera, Damien Magoni, Radu State

TL;DR

Researchers have finally peeked under the hood of the XRP Ledger’s peer-to-peer network, revealing a structure that is significantly smaller and more centralized than Bitcoin or Ethereum. The study uncovers a "hub-and-spoke" topology dominated by a few authoritative nodes and major cloud providers, characterized by high turnover where a third of the network changes every five days.

What Problem Does This Paper Address?

While the XRP Ledger (XRPL) is one of the oldest and most valuable blockchains, its underlying peer-to-peer (P2P) overlay network has remained largely unstudied. In decentralized systems, the "topology"—how nodes are physically connected—dictates everything from transaction speed to resistance against censorship and DDoS attacks.

Unlike Bitcoin, which often tries to obscure its topology for security, XRPL natively supports network crawling. The authors leverage this to close the knowledge gap, asking: How "decentralized" is the physical network? Is it resilient to targeted attacks? And how stable are the nodes that keep the ledger running?

Methods

The researchers utilized the XRP Ledger Crawler to map the network. Starting from a single trusted rippled server, the crawler recursively queried peers to discover every reachable node in the overlay.

Key methodological highlights include:

  • Temporal Sampling: They collected 1,290 unique network snapshots over a two-month period (January to March 2022) at one-hour intervals.
  • Graph-Theoretic Analysis: They applied standard metrics like clustering coefficients, path lengths, and assortativity to define the network's shape.
  • Statistical Modeling: Using the fitter library, they tested the degree distribution against various models (Power-law, Gamma, etc.) to see if the network qualifies as "scale-free."
  • AS Mapping: They enriched node data with Autonomous System (AS) information to identify geographical and infrastructure-level centralization.

Datasets

The study produced a new longitudinal dataset of the XRPL overlay:

  • 1,290 Snapshots: Captured over 60 days.
  • 3,000 Unique Nodes: Discovered over the total duration of the study.
  • Metadata: Includes IP addresses, AS numbers, and uptime reports. The authors have made these datasets available online for further research.

Key Insights and Ideas

  • The "Selfish" Node Phenomenon: There is no direct financial incentive to run an XRPL node. Consequently, 60% of nodes accept zero incoming connections. They act as "consumers," establishing outgoing links to stay synced but refusing to help others join the network.
  • A Hub-and-Spoke Reality: The network is disassortative ($r = -0.48$). In plain English: small, low-degree nodes prefer to connect to high-degree "hubs" rather than each other. This creates a highly centralized backbone where 11% of nodes handle 85% of all incoming traffic.
  • Infrastructure Fragility: The network is heavily reliant on "Big Tech." Nearly 62% of all XRP nodes are hosted by just 10 Autonomous Systems, dominated by Amazon, Google, and Microsoft. A major outage at AWS could theoretically cripple more than half the network.
  • High Churn: The network is surprisingly "leaky." While the total node count stays stable at around 950, a third of those nodes disappear and are replaced every five days. Only a small "backbone" of nodes remains consistently online.

Key Results

  • Network Size: XRPL is relatively small, averaging 948 nodes and 15,010 edges. For context, Bitcoin has roughly 50,000 nodes.
  • Small-World Property: The network exhibits "small-world" characteristics ($S = 8.3$). The average shortest path between any two nodes is only 2.3 hops, allowing for very rapid message propagation.
  • Centralization: The in-degree distribution follows a power-law ($\alpha \approx 1.2$), a classic sign of a network that relies on a few critical hubs.
  • Uptime: The average node uptime is a mere 9.7 days. However, a elite group of "backbone" nodes showed uptimes exceeding 250 days, acting as the permanent anchors of the ledger.

Limitations and Future Work

The authors acknowledge that their crawler can only see nodes that are part of the same "connected component" as the entry point. If the network were to fork or partition, the crawler might miss entire segments.

Furthermore, while the paper identifies structural vulnerabilities (like the reliance on a few hubs), it does not perform active "stress tests" or simulated attacks to see exactly how much pressure the network can take before failing. The authors suggest that future work should focus on simulating targeted attacks on these identified "backbone" nodes to quantify the ledger's actual resilience.

Summary updated

BibTeX
@inproceedings{tumas2023topology,
  author = {Vytautas Tumas and Sean Rivera and Damien Magoni and Radu State},
  title = {{Topology Analysis of the XRP Ledger}},
  booktitle = {SAC},
  year = {2023},
  url = {https://openreview.net/forum?id=s26SaA45oZ},
}

Loading related content...

Figure