Squirrel: a Decentralized Peer-To-Peer Web Cache

Squirrel: a Decentralized Peer-To-Peer Web Cache

To appear in the 21th ACM Symposium on Principles of Distributed Computing (PODC 2002) Squirrel: A decentralized peer-to-peer web cache ∗ Sitaram Iyer Antony Rowstron Peter Druschel Rice University Microsoft Research Rice University 6100 Main Street, MS-132 7 J J Thomson Close 6100 Main Street, MS-132 Houston, TX 77005, USA Cambridge, CB3 0FB, UK Houston, TX 77005, USA [email protected] [email protected] [email protected] ABSTRACT There is substantial literature in the areas of cooperative This paper presents a decentralized, peer-to-peer web cache web caching [3, 6, 9, 20, 23, 24] and web cache workload char- called Squirrel. The key idea is to enable web browsers on acterization [4]. This paper demonstrates how it is possible, desktop machines to share their local caches, to form an ef- desirable and efficient to adopt a peer-to-peer approach to ficient and scalable web cache, without the need for dedicated web caching in a corporate LAN type environment, located hardware and the associated administrative cost. We propose in a single geographical region. Using trace-based simula- and evaluate decentralized web caching algorithms for Squir- tion, it shows how most of the functionality and performance rel, and discover that it exhibits performance comparable to of a traditional web cache can be achieved in a completely a centralized web cache in terms of hit ratio, bandwidth us- self-organizing system that needs no extra hardware or ad- age and latency. It also achieves the benefits of decentraliza- ministration, and is fault-resilient. The following paragraphs tion, such as being scalable, self-organizing and resilient to elaborate on these ideas. node failures, while imposing low overhead on the participat- The traditional approach of using dedicated hardware for ing nodes. centralized web caching is expensive in terms of infrastructure and administrative costs. Large corporate networks often em- 1. INTRODUCTION ploy a cluster of machines, which usually has to be overprovi- Web caching is a widely deployed technique to reduce the sioned to handle peak load bursts. A growth in user popula- latency observed by web browsers, decrease the aggregate tion causes scalability issues, leading to a need for hardware bandwidth consumption of an organization’s network, and upgrades. Another drawback is that a dedicated web cache reduce the load incident on web servers on the Internet [5, 11, may represent a single point of failure, capable of denying 22]. Web caches are often deployed on dedicated machines at access to cached web content to all users in the network. the boundary of corporate networks, and at Internet service In contrast, a decentralized peer-to-peer web cache like providers. This paper presents an alternative for the former Squirrel pools resources from many desktop machines, and case, in which client desktop machines themselves cooperate can achieve the functionality and performance of a dedicated in a peer-to-peer fashion to provide the functionality of a web cache without requiring any more hardware than the web cache. This paper proposes decentralized algorithms for desktop machines themselves. An increase in the number of the web caching problem, and evaluates their performance these client nodes corresponds to an increase in the amount against each other and against a traditional centralized web of shared resources, so Squirrel has the potential to scale au- cache. tomatically. The key idea in Squirrel is to facilitate mutual sharing of Squirrel uses a self-organizing, peer-to-peer routing sub- web objects among client nodes. Currently, web browsers on strate called Pastry as its object location service, to iden- every node maintain a local cache of web objects recently ac- tify and route to nodes that cache copies of a requested ob- cessed by the browser. Squirrel enables these nodes to export ject [15]. Squirrel thus has the advantage of requiring al- their local caches to other nodes in the corporate network, most no administration, compared to conventional coopera- thus synthesizing a large shared virtual web cache. Each tive caching schemes. Moreover, Pastry is resilient to concur- node then performs both web browsing and web caching. rent node failures, and so is Squirrel. Upon failure of multiple nodes, Squirrel only has to re-fetch a small fraction of cached ∗ This work was done during a summer internship at Microsoft objects from the origin web server. Research, Cambridge. The challenge in designing Squirrel is to actually achieve these benefits in the context of web caching, and to exhibit performance comparable to a centralized web cache in terms of user-perceived latency, hit ratio, and external bandwidth Permission to make digital or hard copies of all or part of this work for usage. Finally, Squirrel faces a new challenge: nodes in a personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage, and that copies decentralized cache incur the overhead of having to service bear this notice and the full citation on the first page. To copy otherwise, to each others’ requests; this extra load must be kept low. The republish, to post on servers or to redistribute to lists, requires prior specific rest of the paper shows how Squirrel achieves these goals, permission and/or a fee. supported by trace-based simulation results. PODC-21 7/2002 Monterey, California c 2002 ACM . $5.00 Section 2provides background material on web caching and number of other applications have been built on top of Pastry, on Pastry. Section 3 describes the design of Squirrel, and including an archival storage utility (PAST) [16] and an event Section 4 presents a detailed simulation study using traces notification system (Scribe) [17]. Pastry assigns random, uni- from the Microsoft corporate web caches. Section 5 discusses formly distributed nodeIds to participating nodes (say N in related work, and Section 6 concludes. number), from a circular 128-bit namespace. Similarly, ap- plication objects are assigned uniform random objectIds in 2. BACKGROUND the same namespace. Objects are then mapped to the live This section provides a brief overview of web caching, and node whose nodeId is numerically closest to the objectId. To the Pastry peer-to-peer routing and location protocol. support object insertion and lookup, Pastry routes a message towards the live node whose nodeId is numerically closest to 2.1 Web caching a given objectId, within an expected log2b N routing steps. In a network of 10,000 nodes with b = 4, an average message Web browsers generate HTTP GET requests for Internet ob- would route through three intermediate nodes. Despite the jects like HTML pages, images, etc. These are serviced from possibility of concurrent failures, eventual message delivery the local web browser cache, web cache(s), or the origin web is guaranteed unless l/2 nodes with adjacent nodeIds fail server – depending on which contains a fresh copy of the ob- simultaneously. (l has typical value 8 ∗ log16N). Node ad- ject. The web browser cache and web caches receive GET ditions and abrupt node failures are efficiently handled, and requests. For each request, there are three possibilities: the Pastry invariants are quickly restored. requested object is uncacheable, or there is a cache miss, or the object is found in the cache. In the first two cases the Pastry also provides applications with a leaf set, consisting request is forwarded to the next level towards the origin web of l nodes with nodeIds numerically closest to and centered server. In the last case, the object is tested for freshness (as around the local nodeId. Applications can use the leaf set to described below). If fresh, the object is returned; otherwise identify their neighbours in the nodeId space, say for repli- a conditional GET (cGET) request is issued to the next level cating objects onto them. for validation. There are two basic types of cGET requests: an If-Modified-Since request with the timestamp of the last 3. SQUIRREL known modification, and an If-None-Match request with an The target environment for Squirrel consists of 100 to 100,000 ETag representing a server-chosen identification (typically a nodes (generally desktop machines) in a typical corporate hash) of the object contents. This cGET request can be ser- network. We expect Squirrel to operate outside this range, viced by either another web cache or the origin server. A but we do not have workloads to demonstrate it. We as- web cache that receives a cGET request and does not have sume that all nodes can access the Internet, either directly or a fresh copy of the object forwards the request towards the through a firewall. Each participating node runs an instance origin web server. The response contains either the entire of Squirrel with the same expiration policy, and configures object (sometimes with a header specifying that the object is the web browser on that node to use this Squirrel instance uncacheable), or a not-modified message if the cached object as its proxy cache. The browser and Squirrel share a sin- is unchanged [11, 21, 22]. gle cache managed by Squirrel; one way to achieve this is Freshness of an object is determined by a web cache using by disabling the browser’s cache. No other changes to the an expiration policy. This is generally based on a time-to-live browser or to external web servers are necessary. This paper (ttl) field, either specified by the origin server, or computed focusses on the scenario where Squirrel nodes are in a sin- by the web cache based on last modification time. The object gle geographic region. We then assume that communication is declared stale when its ttl expires.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us