Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Key-based routing
(KBR) is a lookup method used in conjunction with distributed hash
tables (DHTs) and certain other overlay networks. While DHTs provide a
method to find a host responsible for a certain piece of data, KBR
provides a method to find the closest host for that data, according to
some defined metric. This may not necessarily be defined as physical
distance, but rather the number of network hops. Distributed hash tables
(DHTs) are a class of decentralized distributed systems that provide a
lookup service similar to a hash table; (key, value) pairs are stored in
the DHT, and any participating node can efficiently retrieve the value
associated with a given key. Responsibility for maintaining the mapping
from keys to values is distributed among the nodes, in such a way that a
change in the set of participants causes a minimal amount of disruption.
This allows DHTs to scale to extremely large numbers of nodes and to
handle continual node arrivals, departures, and failures.