Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems Antony Rowstron and Peter Druschel, Middleware 2001.

Slides:



Advertisements
Similar presentations
Pastry Peter Druschel, Rice University Antony Rowstron, Microsoft Research UK Some slides are borrowed from the original presentation by the authors.
Advertisements

Peter Druschel, Rice University Antony Rowstron, Microsoft Research UK
Storage management and caching in PAST Antony Rowstron and Peter Druschel Presented to cs294-4 by Owen Cooper.
Storage management and caching in PAST, a large-scale, persistent peer-to-peer storage utility Antony Rowstron, Peter Druschel Presented by: Cristian Borcea.
Storage management and caching in PAST, a large-scale, persistent peer- to-peer storage utility Antony Rowstron, Peter Druschel.
The Chord P2P Network Some slides have been borowed from the original presentation by the authors.
Chord: A scalable peer-to- peer lookup service for Internet applications Ion Stoica, Robert Morris, David Karger, M. Frans Kaashock, Hari Balakrishnan.
Peer-to-Peer Structured Overlay Networks
SCRIBE A large-scale and decentralized application-level multicast infrastructure.
Pastry Peter Druschel, Rice University Antony Rowstron, Microsoft Research UK Some slides are borrowed from the original presentation by the authors.
1 PASTRY Partially borrowed from Gabi Kliot ’ s presentation.
1 Accessing nearby copies of replicated objects Greg Plaxton, Rajmohan Rajaraman, Andrea Richa SPAA 1997.
Common approach 1. Define space: assign random ID (160-bit) to each node and key 2. Define a metric topology in this space,  that is, the space of keys.
Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems Antony Bowstron & Peter Druschel Presented by: Long Zhang.
Scribe: A Large-Scale and Decentralized Application-Level Multicast Infrastructure Miguel Castro, Peter Druschel, Anne-Marie Kermarrec, and Antony L. T.
Peer to Peer File Sharing Huseyin Ozgur TAN. What is Peer-to-Peer?  Every node is designed to(but may not by user choice) provide some service that helps.
Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems Antony Rowstron and Peter Druschel Proc. of the 18th IFIP/ACM.
Storage Management and Caching in PAST, a large-scale, persistent peer- to-peer storage utility Authors: Antony Rowstorn (Microsoft Research) Peter Druschel.
Secure routing for structured peer-to-peer overlay networks Miguel Castro, Ayalvadi Ganesh, Antony Rowstron Microsoft Research Ltd. Peter Druschel, Dan.
Pastry Partially borrowed for Gabi Kliot. Pastry Scalable, decentralized object location and routing for large-scale peer-to-peer systems  Antony Rowstron.
Looking Up Data in P2P Systems Hari Balakrishnan M.Frans Kaashoek David Karger Robert Morris Ion Stoica.
1 Pastry and Past Based on slides by Peter Druschel and Gabi Kliot (CS Department, Technion) Alex Shraer.
Spring 2003CS 4611 Peer-to-Peer Networks Outline Survey Self-organizing overlay network File system on top of P2P network Contributions from Peter Druschel.
SCRIBE: A large-scale and decentralized application-level multicast infrastructure Miguel Castro, Peter Druschel, Anne-Marie Kermarrec and Antony Rowstron.
Secure routing for structured peer-to-peer overlay networks (by Castro et al.) Shariq Rizvi CS 294-4: Peer-to-Peer Systems.
Content Addressable Networks. CAN Associate with each node and item a unique id in a d-dimensional space Goals –Scales to hundreds of thousands of nodes.
Pastry And Squirrel Presented by Eirik T. Laberg Håvard Semundseth Orri G. Pálsson.
Application Layer Multicast for Earthquake Early Warning Systems Valentina Bonsi - April 22, 2008.
Decentralized Location Services CS273 Guest Lecture April 24, 2001 Ben Y. Zhao.
P2P Course, Structured systems 1 Skip Net (9/11/05)
1 Peer-to-Peer Networks Outline Survey Self-organizing overlay network File system on top of P2P network Contributions from Peter Druschel.
Tapestry: A Resilient Global-scale Overlay for Service Deployment Ben Y. Zhao, Ling Huang, Jeremy Stribling, Sean C. Rhea, Anthony D. Joseph, and John.
Tapestry An off-the-wall routing protocol? Presented by Peter, Erik, and Morten.
 Structured peer to peer overlay networks are resilient – but not secure.  Even a small fraction of malicious nodes may result in failure of correct.
1CS 6401 Peer-to-Peer Networks Outline Overview Gnutella Structured Overlays BitTorrent.
Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems (Antony Rowstron and Peter Druschel) Shariq Rizvi First.
Mobile Ad-hoc Pastry (MADPastry) Niloy Ganguly. Problem of normal DHT in MANET No co-relation between overlay logical hop and physical hop – Low bandwidth,
Tapestry GTK Devaroy (07CS1012) Kintali Bala Kishan (07CS1024) G Rahul (07CS3009)
1 Plaxton Routing. 2 Introduction Plaxton routing is a scalable mechanism for accessing nearby copies of objects. Plaxton mesh is a data structure that.
1 PASTRY. 2 Pastry paper “ Pastry: Scalable, decentralized object location and routing for large- scale peer-to-peer systems ” by Antony Rowstron (Microsoft.
PIC: Practical Internet Coordinates for Distance Estimation Manuel Costa joint work with Miguel Castro, Ant Rowstron, Peter Key Microsoft Research Cambridge.
Security Considerations for Structured p2p Peng Wang 6/04/2003.
A Scalable Content-Addressable Network (CAN) Seminar “Peer-to-peer Information Systems” Speaker Vladimir Eske Advisor Dr. Ralf Schenkel November 2003.
An IP Address Based Caching Scheme for Peer-to-Peer Networks Ronaldo Alves Ferreira Joint work with Ananth Grama and Suresh Jagannathan Department of Computer.
Chord: A Scalable Peer-to-peer Lookup Service for Internet Applications.
P2p file storage and distribution Team: Brian Smith, Daniel Suskin, Dylan Nunley, Forrest Vines Mentor: Brendan Burns.
Secure Routing for Structured Peer-to-Peer Overlay Networks M. Castro, P. Druschel, A. Ganesh, A. Rowstron and D. S. Wallach Proc. Of the 5 th Usenix Symposium.
Peer to Peer A Survey and comparison of peer-to-peer overlay network schemes And so on… Chulhyun Park
DHT-based unicast for mobile ad hoc networks Thomas Zahn, Jochen Schiller Institute of Computer Science Freie Universitat Berlin 報告 : 羅世豪.
Pastry Antony Rowstron and Peter Druschel Presented By David Deschenes.
Plethora: Infrastructure and System Design. Introduction Peer-to-Peer (P2P) networks: –Self-organizing distributed systems –Nodes receive and provide.
Squirrel: A decentralized peer-to- peer web cache Paper by Sitaram Iyer, Antony Rowstron and Peter Druschel (© 2002) Presentation* by Alexander Prohaska.
LOOKING UP DATA IN P2P SYSTEMS Hari Balakrishnan M. Frans Kaashoek David Karger Robert Morris Ion Stoica MIT LCS.
Scribe: A Large-Scale and Decentralized Application-Level Multicast Infrastructure Miguel Castro, Peter Druschel, Anne-Marie Kermarrec, and Antony I.T.
Large Scale Sharing Marco F. Duarte COMP 520: Distributed Systems September 19, 2004.
1 Tuesday, February 03, 2009 “Work expands to fill the time available for its completion.” - Parkinson’s 1st Law.
Plethora: A Locality Enhancing Peer-to-Peer Network Ronaldo Alves Ferreira Advisor: Ananth Grama Co-advisor: Suresh Jagannathan Department of Computer.
Peer-to-Peer Networks 05 Pastry Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg.
Fabián E. Bustamante, Fall 2005 A brief introduction to Pastry Based on: A. Rowstron and P. Druschel, Pastry: Scalable, decentralized object location and.
Chord: A Scalable Peer-to-Peer Lookup Service for Internet Applications * CS587x Lecture Department of Computer Science Iowa State University *I. Stoica,
Chapter 29 Peer-to-Peer Paradigm Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The Chord P2P Network Some slides taken from the original presentation by the authors.
Pastry Scalable, decentralized object locations and routing for large p2p systems.
The Chord P2P Network Some slides have been borrowed from the original presentation by the authors.
Controlling the Cost of Reliability in Peer-to-Peer Overlays
(slides by Nick Feamster)
Accessing nearby copies of replicated objects
PASTRY.
Applications (2) Outline Overlay Networks Peer-to-Peer Networks.
A Semantic Peer-to-Peer Overlay for Web Services Discovery
Presentation transcript:

Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems Antony Rowstron and Peter Druschel, Middleware 2001

Outline Introduction Design of Pastry Experimental Results Discussion Node state & routing Pastry API Self-organization and adaptation Locality Experimental Results Discussion

Introduction: What is Pastry? It’s a scalable, distributed, decentralized object location and routing substrate Serves as a general substrate for building P2P applications: SCRIBE, PAST,…etc. Seeks to minimize distance messages travel Pastry’s main capability

Pastry Node Represented by 128-bit randomly chosen nodeId (Hash of IP or public key) NodeId is in base 2b (b is a configuration parameter; b typical value 2 or 4) Evenly distributed nodeIds along the circular namespace (0-2128 – 1 space). Routes a message in O(log N) steps to destination N: size of network Node state contains: Leaf Set ( L ) Routing table ( R ) Neighborhood Set ( M )

Design of Pastry: Node state Leaf set: L/2 Numerically closest nodes (L is a configuration parameter = 16, 32 typically ) Routing Table (Prefix-based) Neighborhood Set: M physically closest nodes

Pastry node state (Leaf Set) Serves as a fall back for routing table and contains: L/2 numerically closest and larger nodeIds L/2 numerically closest and smaller nodIds Size of L is typically 2b or 2 x 2b Nodes in L are numerically close (could be geographically diverse)

Pastry node state: Neighborhood set (M) Contains the IP addresses and nodeIds of closest nodes according to proximity metric Size of |M| is typically 2b or 2x2b Not used in routing, but instead for maintaining locality properties

Node state: Routing Table Matrix of Log2b N rows and 2b – 1 columns (N is the number of nodes in the network) Entries in row n match the first n digits of current nodeId AND Column number follows matched digits: Format: matched digits–column number–rest of ID Log2b N populated on average

Node10233102 (2), (b = 2, l = 8) 1 2 3 02212102 22301203 31203203 11301233 12230203 13021022 10031203 10132102 10323302 10200230 10211302 1022302 10230322 10231000 10232121 10233001 10233232 10233120

Routing(2): If message with key D is within range of leaf set, forward to numerically closest leaf Else forward to node that shares at least one more digit with D in its prefix than current nodeId If no such node exists, forward to node that shares at least as many digits with D as current nodeId but numerically nearer than current nodeId

Routing Messages (1) Node is in the leaf set (2) Forward message to a closer node (Better match) (3) Forward towards numerically Closer node (not a better match) D: Message Key Li: ith closest NodeId in leaf set shl(A, B): Length of prefix shared by nodes A and B Rij: (j, i)th entry of routing table Source: Rowstron & Drushel, 2001

Routing Example: Source: www.scs.cs.nyu.edu/V22.0480-005/notes/l24.pdf

Routing Performance: (1) If key is within leaf set: target one hop away (2) If key has to be routed: Number of nodes with longer prefix decreases by 2b (3) Key is not covered by the leaf set (i.e., failed) With high probability, one more hop needed Thus: Number of routing steps needed log 2b N

Pastry API: nodeId = pastryInit(Credentials, Application ) operations exported by pastry: nodeId = pastryInit(Credentials, Application ) Causes a Pastry node to join the network with state initialization. Other application specific information is also established. route(msg, key) Routes the message to another node which is numerically closest to the key

Pastry API forward(msg, key, nextId) deliver(msg,key) Operations exported by the application working on top of Pastry deliver(msg,key) Called when local node is numerically closest to the key forward(msg, key, nextId) forward a message from the local nodeId to the next nodeId ( nextId = Null if local node is final) newLeafs( leafSet): Updates the leaf set

Pastry node join In process, A,B,…,Z send their state tables to X X = new node, Z = numerically closest node, A = bootstrap (A is close in proximity space to X) X sends a join message to A with target nodeId X A forwards to B C… Stops at Z, numerically closest to X’s nodeId In process, A,B,…,Z send their state tables to X

Node Join X’s neighborhood set (NS) = A’s NS X’s Leaf Set = Z’s leaf set X’s routing table is filled as follows: X’s Row 0 = A’s row 0 (X0 = A0) X’s Row 1 = B’s row 1 (X1 = B1) …etc. X sends its state to every node in its state tables ( Leaf set, neighborhood set, and routing table)

Node Join: Example www.scs.cs.nyu.edu/V22.0480-005/notes/l24.pdf Source: www.scs.cs.nyu.edu/V22.0480-005/notes/l24.pdf

Node departure (2) Invalid nodes in leaf set: detected by heartbeat monitor Repair by inserting node from another leaf’s LS Heartbeat for neighborhood set (NS) Query all NS members for their NS tables, choose replacement according to proximity metric Invalid routing entries detected when attempting to route Query nodes in row for replacement entry, if failed Query successive rows until success

Node failure in routing table: example If node in red fails Source: www.cs.cornell.edu/courses/ cs514/2003fa/CS514-fa03-lec26v0.pdf

Locality in Pastry Based on proximity metric (i.e., No. of IP hops, geographic distance) Proximity space is assumed to be Euclidean The route chosen for a message is likely to be “good“ with respect to the proximity metric We will discuss locality regarding: Routing table locality Route locality Locating the nearest among k nodes

Locality in Routing tables Invariant: “all routing table entries refer to a node that is near the present node, according to the proximity metric, among all live nodes with a prefix appropriate for the entry.” We wish to maintain the invariant when adding new nodes. X joins; A is close to X; X0 = A0, so locality holds in X’s routing table X1 = B1. Entires in B1 (row 1 of X) are close to B, but are they necessarily close to X?

Locality in routing table Entries of B1 are reasonable close to X Why? A is much closer to B than entry in B1 to B because every time we choose from an exponentially decreasing set of nodes To improve proximity approximation: X Queries nodes in routing table and neighborhood set for their state Compares distances (from routing table entries) and update route entries with closer nodes if found.

Route locality At each routing step the message is moved closer to the destination in the: nodeId space (numerically closer nodes) proximity space: message travels the least possible distance Given that: A message routed from A to B at a distance d cannot be routed to a node with a distance of less than d from A. (follows from routing procedure) Expected distance traveled increases exponentially Though shortest path is not guaranteed, we still get a good route.

Locality among k nodes In some Pastry-based applications, object is replicated on k nodes on its route (during insertion) In prefix-base routing: goal is to reach any of k numerically closest nodes that has a copy of object May miss nearby nodes with different prefix Use heuristic to determine when close to k nearest nodes Based on density of nodeIds that store object; using local info Switch to numerically closest address

Arbitrary node failure Node continues to be responsive, but behaves incorrectly or maliciously. Repeated queries fail each time because they normally take the same route. How to solve it? Use randomized routing The choice among multiple nodes that satisfy the routing criteria should be made randomly

Routing Performance |L|=16 * b=4 * |M|=32 * 200,000 lookups Source: Rowstron & Drushel, 2001

Pastry routing Source: Rowstron & Drushel, 2001

Routing with failures Source: Rowstron & Drushel, 2001

|L|=16 * b=4 * |M|=32 * 200,000 lookups Pastry locality |L|=16 * b=4 * |M|=32 * 200,000 lookups Source: Rowstron & Drushel, 2001

Summary Pastry is a generic P2P object location and routing substrate Distributed, and scales well Used in developing applications like file storage, global file sharing,...etc. Considers locality when routing messeges

References (1) A. Rowstron and P. Druschel, "Pastry: Scalable, distributed object location and routing for large-scale peer-to-peer systems".  IFIP/ACM International Conference on Distributed Systems Platforms (Middleware), Heidelberg, Germany, pages 329-350, November, 2001 (2) Jeff Odom slides: http://x1.cs.umd.edu/818/docs/pastry.ppt