
A Scalable Content-Addressable Network
Sylvia Ratnasamy
Paul Francis
Mark Handley
Richard Karp
Scott Shenker
Dept. of Electrical Eng. & Comp. Sci.
ACIRI
University of California, Berkeley AT&TCenter for Internet Research at ICSI
Berkeley, CA, USA Berkeley, CA,USA
Abstract
Hash tables – which map “keys” onto “values” – are an essential build-
ing block in modern software systems. We believe a similar functionality
would be equally valuable to large distributed systems. In this paper, we
introduce the concept of a Content-Addressable Network (CAN) as a dis-
tributed infrastructure that provides hash table-like functionality on Internet-
like scales. The CAN design is scalable, fault-tolerant and completely self-
organizing, and we demonstrate its scalability, robustness and low-latency
properties through simulation.
1 Introduction
A hash table is a data structure that efficiently maps “keys” onto
“values” and serves as a core building block in the implementa-
tion of software systems. We conjecture that many large-scale dis-
tributed systems could likewise benefit from hash table functional-
ity. We use the term Content-Addressable Network (CAN) to de-
scribe such a distributed, Internet-scale, hash table.
Perhaps the best example of current Internet systems that could
potentially be improved by a CAN are the recently introduced peer-
to-peer file sharing systems such as Napster [20] and Gnutella [11].
In these systems, files are stored at the end user machines (peers)
rather than at a central server and, as opposed to the traditional
client-server model, files are transferred directly between peers.
These peer-to-peer systems have become quite popular. Napster
was introduced in mid-1999 and, as of December 2000, the soft-
ware has been downloaded by 50 million users, making it the fastest
growing application on the Web. New file sharing systems such as
Scour, FreeNet, Ohaha, Jungle Monkey, and MojoNation have all
been introduced within the last year.
While there remains some (quite justified) skepticism about the
business potential of these file sharing systems, we believe their
rapid and wide-spread deployment suggests that there are important
advantages to peer-to-peer systems. Peer-to-peer designs harness
huge amounts of resources - the content advertised through Nap-
ster has been observed to exceed 7 TBof storage on a single day1,
without requiring centralized planning or huge investments inhard-
ware, bandwidth, or rack space. As such, peer-to-peer file sharing
may lead to new content distribution models for applications such
as software distribution, file sharing, and static web content deliv-
ery.
Unfortunately, most of the current peer-to-peer designs are not
scalable. For example, in Napster a central server stores the in-
dex of all the files available within the Napster user community.
To retrieve a file, a user queries this central server using the de-
sired file’s well known name and obtains the IP address of a user
1Private communication with YinZhang and Vern Paxson
machine storing the requested file. The file is then down-loaded di-
rectly from this user machine. Thus, although Napster uses a peer-
to-peer communication model for the actual file transfer, the pro-
cess of locating a file is still very much centralized. This makes it
both expensive (to scale the central directory) and vulnerable (since
there is a single point of failure). Gnutella goes a step further and
de-centralizes the file location process as well. Users in a Gnutella
network self-organize into an application-level mesh on which re-
quests for a file are flooded with a certain scope. Flooding on every
request is clearly not scalable [12] and, because the flooding has to
be curtailed at some point, may fail to find content that is actually
in the system.
We started our investigation with the question: could one make
a scalable peer-to-peer file distribution system? We soon recog-
nized that central to any peer-to-peer system is the indexing scheme
used to map file names (whether well known or discovered through
some external mechanism) to their location in the system. That is,
the peer-to-peer file transfer process is inherently scalable, but the
hard part is finding the peer from whom to retrieve the file. Thus,
a scalable peer-to-peer system requires, at the very least, a scal-
able indexing mechanism. We call such indexing systems Content-
Addressable Networks and, in this paper, propose a particular CAN
design.
However, the applicability ofCANs is not limited to peer-to-peer
systems. CANs could also be used in large scale storage manage-
ment systems such as OceanStore [15], Farsite [3], and Publius
[18]. These systems all require efficient insertion and retrieval of
content in a large distributed storage infrastructure, and a scalable
indexing mechanism is an essential component. In fact, as we dis-
cuss in Section 5, the OceanStore system already includes a CAN in
its core design (although the OceanStore CAN, based on Plaxton’s
algorithm[21], is somewhat different from what we propose here).
Another potential application for CANs is in the construction of
wide-area name resolution services that (unlike the DNS) decou-
ple the naming scheme from the name resolution process thereby
enabling arbitrary, location-independent naming schemes.
Our interest in CANs is based on the belief that a hash table-
like abstraction would give Internet system developers a powerful
design tool that could enable new applications and communication
models. However, in this paper our focus is not on the use of CANs
but on their design. In [1], we describe, in some detail, one possi-
ble application, which we call a “grass-roots” content distribution
system, that leverages our CAN work.
As we have said, CANs resemble a hash table; the basic oper-
ations performed on a CAN are the insertion, lookup and deletion
of (key,value) pairs. In our design, the CAN is composed of many
individual nodes. Each CAN node stores a chunk (called a zone) of
the entire hash table. In addition, a node holds information about
a small number of “adjacent” zones in the table. Requests (insert,