← 🕸️ Distributed Systems

🕸️ Kademlia Distributed Hash Table

Hop Count:
XOR Distance:
Drag — rotate · Scroll — zoom

🕸️ Kademlia Distributed Hash Table

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.