Imagine you share a file across a million computers with no central server to ask "who has what." How does any node find what it needs? The naive answer is to ask everyone — flooding the network. The clever answer is Chord, published by Ion Stoica and colleagues at MIT in 2001.
Chord maps every node and every key to a point on a circular number line — a ring of IDs from 0 to 2ᵐ − 1 (typically m = 160 bits). Each key is owned by the node whose ID comes next clockwise, its successor. That rule alone means every key has exactly one responsible node, even as machines join and leave.
The genius is in the lookup. A naive ring would forward each query one step at a time — hops. Chord adds a finger table: each node stores shortcuts to nodes at distances , , , … ahead on the ring. Those exponentially growing jumps halve the remaining distance with every hop, reaching any key in hops — a provable guarantee that holds even as the network churns.
Like consistent hashing, Chord belongs to the class of solved problems: the algorithm is known, its correctness is proven, and its worst-case complexity is tight.
Comments
Loading comments...