HomeDistributed & Parallel ComputingKademlia Distributed Hash Table

🕸️ Kademlia Distributed Hash Table

Explore how Kademlia lets thousands of peers find data without any central server, using XOR distance and k-buckets to route lookups in just a handful of hops.

Distributed & Parallel Computing3DModerate60 FPS
kademlia-dht-lab ↗ Open standalone

The simulator visualizes a Kademlia identifier space and lets you watch how XOR distance shapes each node's k-buckets, how a lookup narrows in on a target key hop by hop, and how passive updates from ordinary traffic keep routing tables fresh as nodes join and leave.

🔬 What It Demonstrates

The simulator visualizes a Kademlia identifier space and lets you watch how XOR distance shapes each node's k-buckets, how a lookup narrows in on a target key hop by hop, and how passive updates from ordinary traffic keep routing tables fresh as nodes join and leave.

🎮 How to Use

Add nodes to the network and pick a target key to look up. Step through the lookup one hop at a time to see which contacts are queried, how the candidate set shrinks toward the target, and how the remaining XOR distance roughly halves at each step. Toggle node churn on to watch buckets self-heal through passive updates and periodic refreshes.

💡 Did You Know?

Because the XOR metric guarantees exactly one node exists at any given distance from you, no two nodes ever perceive the network's shape identically, yet every one of them can still reach the same correct answer to 'who is closest to this key' using only its own local, partial view.

⚙ Under the hood

Explore how Kademlia lets thousands of peers find data without any central server, using XOR distance and k-buckets to route lookups in just a handful of hops.

kademliadhtpeer-to-peernetworkingxor-metricbittorrentipfsdistributed-systems

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)