Distances for K-Buckets

Each Kademlia node keeps a list of n k-buckets, where n is the number of bits in a key/node ID.

For i <= 0 < n, the i-th k-bucket for a node contains up to k (IP address, UDP port, Node ID) triples for nodes of distance between 2i and 2i+1 from itself.

In other words, the nodes in originNode's i-th k-bucket have IDs such that longestCommonPrefixLength(originNode.id, kbucketNode.id) = i.

Hover over a leaf node to view the ID candidates for each k-bucket.

i
(longest common prefix length)
distances from originNode.id
0 [32..63]
1 [16..31]
2 [8..15]
3 [4..7]
4 [2..3]
5 [1]