SKIP GRAPHS (continued)

Slides:



Advertisements
Similar presentations
Routing and Congestion Problems in General Networks Presented by Jun Zou CAS 744.
Advertisements

A* Search. 2 Tree search algorithms Basic idea: Exploration of state space by generating successors of already-explored states (a.k.a.~expanding states).
Stefan Schmid & Christian Scheideler Dept. of Computer Science
Pastry Peter Druschel, Rice University Antony Rowstron, Microsoft Research UK Some slides are borrowed from the original presentation by the authors.
Peter Druschel, Rice University Antony Rowstron, Microsoft Research UK
Scalable Content-Addressable Network Lintao Liu
SKIP GRAPHS Slides adapted from the original slides by James Aspnes Gauri Shah.
Chord: A scalable peer-to- peer lookup service for Internet applications Ion Stoica, Robert Morris, David Karger, M. Frans Kaashock, Hari Balakrishnan.
Fabian Kuhn, Microsoft Research, Silicon Valley
Generated Waypoint Efficiency: The efficiency considered here is defined as follows: As can be seen from the graph, for the obstruction radius values (200,
Information Networks Small World Networks Lecture 5.
1 PASTRY Partially borrowed from Gabi Kliot ’ s presentation.
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.
CPSC 322, Lecture 9Slide 1 Search: Advanced Topics Computer Science cpsc322, Lecture 9 (Textbook Chpt 3.6) January, 23, 2009.
1 Analyzing Kleinberg’s (and other) Small-world Models Chip Martel and Van Nguyen Computer Science Department; University of California at Davis.
Fault-tolerant Routing in Peer-to-Peer Systems James Aspnes Zoë Diamadi Gauri Shah Yale University PODC 2002.
Building Low-Diameter P2P Networks Eli Upfal Department of Computer Science Brown University Joint work with Gopal Pandurangan and Prabhakar Raghavan.
SkipNet: A Scalable Overlay Network with Practical Locality Properties Nick Harvey, Mike Jones, Stefan Saroiu, Marvin Theimer, Alec Wolman Microsoft Research.
SkipNet: A Scaleable Overlay Network With Practical Locality Properties Presented by Rachel Rubin CS294-4: Peer-to-Peer Systems By Nicholas Harvey, Michael.
SKIP GRAPHS James Aspnes Gauri Shah To appear in SODA Level 0 Level 1 Level 2.
Balanced Search Trees CS 3110 Fall Some Search Structures Sorted Arrays –Advantages Search in O(log n) time (binary search) –Disadvantages Need.
1 Distributed Data Structures for a Peer-to-peer system Advisor: James Aspnes Committee: Joan Feigenbaum Arvind Krishnamurthy Antony Rowstron [MSR, Cambridge,
Other Structured P2P Systems CAN, BATON Lecture 4 1.
Multi-dimensional Queries in P2P Systems. Applications Photo-sharing (photographs tagged with metadata) Multi-player online games (locate objects and.
Proof of Kleinberg’s small-world theorems
Using the Small-World Model to Improve Freenet Performance Hui Zhang Ashish Goel Ramesh Govindan USC.
Searching via Your Neighbor’s Neighbor: The Power of Lookahead in P2P Networks Moni Naor Udi Wieder The Weizmann Institute of Science Gurmeet Manku Stanford.
Hot Topics in Peer-to-Peer Computing (HOT-P2P 2004) Volendam 08 October 2004 Non-uniform deterministic routing on F-Chord(  ) Gennaro Cordasco, Luisa.
Gennaro Cordasco - How Much Independent Should Individual Contacts be to Form a Small-World? - 19/12/2006 How Much Independent Should Individual Contacts.
Online Social Networks and Media
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Chord Advanced issues. Analysis Theorem. Search takes O (log N) time (Note that in general, 2 m may be much larger than N) Proof. After log N forwarding.
Idit Keidar, Principles of Reliable Distributed Systems, Technion EE, Spring Principles of Reliable Distributed Systems Lecture 2: Distributed Hash.
Chord Advanced issues. Analysis Search takes O(log(N)) time –Proof 1 (intuition): At each step, distance between query and peer hosting the object reduces.
AVL trees1 AVL Trees Height of a node : The height of a leaf is 1. The height of a null pointer is zero. The height of an internal node is the maximum.
BATON A Balanced Tree Structure for Peer-to-Peer Networks H. V. Jagadish, Beng Chin Ooi, Quang Hieu Vu.
Two Peer-to-Peer Networking Approaches Ken Calvert Net Seminar, 23 October 2001 Note: Many slides “borrowed” from S. Ratnasamy’s Qualifying Exam talk.
Models and Algorithms for Complex Networks
Analysis of the Evolution of Peer-to-Peer Systems Proseminar “Peer – to – Peer Information Systems” WS 04/05 Prof. Gerhard Weikum Speaker : Emil Zankov.
Self-stabilizing Overlay Networks Sukumar Ghosh University of Iowa Work in progress. Jointly with Andrew Berns and Sriram Pemmaraju (Talk at Michigan Technological.
Small-world phenomenon: An Algorithmic Perspective Jon Kleinberg.
CSE332: Data Abstractions Lecture 7: AVL Trees
Peer-to-Peer Networks 07 Degree Optimal Networks
Ion Stoica, Robert Morris, David Liben-Nowell, David R. Karger, M
Xin Liu Department of Computer Science Univ. of California, Davis
Hiroki Sayama NECSI Summer School 2008 Week 2: Complex Systems Modeling and Networks Network Models Hiroki Sayama
Red Black Trees
Know thy Neighbor’s Neighbor Better Routing for Skip Graphs and Small Worlds Moni Naor Udi Wieder.
Peer-to-Peer and Social Networks
Review for Final Exam Non-cumulative, covers material since exam 2
Accessing nearby copies of replicated objects
SKIP GRAPHS James Aspnes Gauri Shah SODA 2003.
Lecture 18: Uniformity Testing Monotonicity Testing
DHT Routing Geometries and Chord
(2,4) Trees /26/2018 3:48 PM (2,4) Trees (2,4) Trees
Chord Advanced issues.
SKIP LIST & SKIP GRAPH James Aspnes Gauri Shah
Chord Advanced issues.
CSE373: Data Structures & Algorithms Lecture 5: AVL Trees
(2,4) Trees (2,4) Trees (2,4) Trees.
Chord Advanced issues.
(2,4) Trees 2/15/2019 (2,4) Trees (2,4) Trees.
(2,4) Trees /24/2019 7:30 PM (2,4) Trees (2,4) Trees
(2,4) Trees (2,4) Trees (2,4) Trees.
Proof of Kleinberg’s small-world theorems
A Scalable Content Addressable Network
(2,4) Trees /6/ :26 AM (2,4) Trees (2,4) Trees
Navigation and Propagation in Networks
Binary Search Trees < > = Dictionaries
CS210- Lecture 20 July 19, 2005 Agenda Multiway Search Trees 2-4 Trees
Presentation transcript:

SKIP GRAPHS (continued) Some slides adapted from the original slides by James Aspnes Gauri Shah

So far... Coming up...      Load balancing. Decentralization. Tolerance to faults. Self-stabilization. Random faults. Adversarial faults. Decentralization. Locality properties. O(log n) neighbors per node. O(log n) search, insert, and delete time. Independent of system size.     

Load balancing Interested in average load on a node u. i.e. how many searches from source s to destination t use node u? Theorem: Let dist (u, t) = d. Then the probability that a search from s to t passes through u is < 2/(d+1). where V = {nodes v: u <= v <= t} and |V| = d+1.

Skip list restriction u t s Level 2 Node u Level 1 u Level 0 t Node u is on the search path from s to t only if it is in the skip list formed from the lists of s at each level.

Tallest nodes s t u s u is not on path.  u is on path. u u t Node u is on the search path from s to t only if it is in T = the set of k tallest nodes in the path [u..t]. Pr [u T] = Pr[|T|=k] • k/(d+1) = E[|T|]/(d+1). k=1 d+1 Heights independent of position, so distances are symmetric.

Load on node u Average load on a node is inversely proportional Start with n nodes. Each node goes to next set with prob. 1/2. We want expected size of T = last non-empty set. = T We show that: E[|T|] < 2. Asymptotically: E[|T|] = 1/(ln 2)  2x10-5  1.4427… [Trie analysis] Average load on a node is inversely proportional to the distance from the destination. We also show that the distribution of average load declines exponentially beyond this point.

Experimental result Load on node Node location Expected load Actual load Destination = 76542 76400 76450 76500 76550 76600 76650 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 0.0 Load on node Node location

Fault tolerance How do node failures affect skip graph performance? Random failures: Randomly chosen nodes fail. Experimental results. Adversarial failures: Adversary carefully chooses nodes that fail. Bound on expansion ratio.

Random faults 131072 nodes

Searches with random failures 131072 nodes 10000 messages

Adversarial faults Theorem: A skip graph with n nodes has dA = nodes adjacent to A but not in A. Expansion ratio = min |dA|/|A|, 1 <= |A| <= n/2. A dA Theorem: A skip graph with n nodes has expansion ratio =  (1/log n). f failures can isolate only O(f•log n ) nodes.

Need for repair mechanism Level 2 G W A J M R G R W Level 1 A J M Level 0 A G J M R W Node failures can leave skip graph in inconsistent state.

Let xRi (xLi) be the right (left) neighbor of x Ideal skip graph Let xRi (xLi) be the right (left) neighbor of x at level i. If xLi, xRi exist: k xRi = xRi-1. xLi = xLi-1. Successor constraints x Level i Level i-1 i xR i-1 1 2 ..00.. ..01.. xLi < x < xRi. xLiRi = xRiLi = x. Invariant

Basic repair If a node detects a missing neighbor, it tries to patch the link using other levels. 1 5 1 3 5 6 1 2 3 4 5 6 Also relink at other lower levels. Successor constraints may be violated by node arrivals or failures.

Constraint violation Neighbor at level i not present at level (i-1). x ..00.. ..01.. x Level i x x Level i-1 ..00.. ..01.. ..01.. ..01.. ..00.. ..01.. ..01.. ..01.. zipper Level i-1 Level i x

Self-stabilization zOp(B) zOp(E) zOp(I) A C D F J Level i zipperOp message B E G H I zOp(A) zOp(D) zOp(F) Eventually want each connected component of the skip graph to reorganize itself into an ideal skip graph.

Conclusions Similarities with DHTs Decentralization. O(log n) space at each node. O(log n) search time. Load balancing properties. Tolerant of random faults.

Differences Property DHTs Skip Graphs Insert/Delete time O(log2n) Locality No Yes Repair mechanism ? Partial Tolerance of adversarial faults Keyspace size Reqd. Not reqd.

Open Problems Design efficient repair mechanism. Incorporate geographical proximity. Study multi-dimensional skip graphs. Evaluate performance in practice.