Peer-to-Peer Systems (cntd.) 15/11 – 2004 INF5070 – Media Servers and Distribution Systems:

Slides:



Advertisements
Similar presentations
SkipNet: A Scalable Overlay Network with Practical Locality Properties Nick Harvey, Mike Jones, Stefan Saroiu, Marvin Theimer, Alec Wolman Microsoft Research.
Advertisements

Ion Stoica, Robert Morris, David Karger, M. Frans Kaashoek, Hari Balakrishnan MIT and Berkeley presented by Daniel Figueiredo Chord: A Scalable Peer-to-peer.
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
Peer-to-Peer Systems Chapter 25. What is Peer-to-Peer (P2P)? Napster? Gnutella? Most people think of P2P as music sharing.
Peer-to-Peer (P2P) Distributed Storage 1Dennis Kafura – CS5204 – Operating Systems.
Kademlia: A Peer-to-peer Information System Based on the XOR Metric Petar Mayamounkov David Mazières A few slides are taken from the authors’ original.
Chord: A scalable peer-to- peer lookup service for Internet applications Ion Stoica, Robert Morris, David Karger, M. Frans Kaashock, Hari Balakrishnan.
SplitStream: High- Bandwidth Multicast in Cooperative Environments Monica Tudora.
TDK - Team Distributed Koders Distributed Systems I Team Report III 2/7/07 Team Members: Kumar Keswani John Kaeuper Jason Winnebeck Fairness in P2P Streaming.
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.
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.
Scribe: A Large-Scale and Decentralized Application-Level Multicast Infrastructure Miguel Castro, Peter Druschel, Anne-Marie Kermarrec, and Antony L. T.
PROMISE A Peer-to-Peer Media Streaming System Using CollectCast CPSC Presentation by Patrick Wong.
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.
P2P: Advanced Topics Filesystems over DHTs and P2P research Vyas Sekar.
Spring 2003CS 4611 Peer-to-Peer Networks Outline Survey Self-organizing overlay network File system on top of P2P network Contributions from Peter Druschel.
SkipNet: A Scalable Overlay Network with Practical Locality Properties Nick Harvey, Mike Jones, Stefan Saroiu, Marvin Theimer, Alec Wolman Microsoft Research.
PROMISE: Peer-to-Peer Media Streaming Using CollectCast M. Hefeeda, A. Habib, B. Botev, D. Xu, and B. Bhargava ACM Multimedia 2003, November 2003.
Topics in Reliable Distributed Systems Fall Dr. Idit Keidar.
1 CS 194: Distributed Systems Distributed Hash Tables Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer.
Decentralized Location Services CS273 Guest Lecture April 24, 2001 Ben Y. Zhao.
Wide-area cooperative storage with CFS
Or, Providing Scalable, Decentralized Location and Routing Network Services Tapestry: Fault-tolerant Wide-area Application Infrastructure Motivation and.
1 Peer-to-Peer Networks Outline Survey Self-organizing overlay network File system on top of P2P network Contributions from Peter Druschel.
A Framework for Cost-Effective Peer-to- Peer Content Distribution Mohamed Hefeeda and Bharat Bhargava Department of Computer Sciences Purdue University.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 24 – P2P Streaming Klara Nahrstedt Ramsés Morales.
Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems (Antony Rowstron and Peter Druschel) Shariq Rizvi First.
PROMISE: Peer-to-Peer Media Streaming Using CollectCast Presented by: Randeep Singh Gakhal CMPT 886, July 2004.
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,
INTRODUCTION TO PEER TO PEER NETWORKS Z.M. Joseph CSE 6392 – DB Exploration Spring 2006 CSE, UT Arlington.
Peer-to-Peer Systems 10/11 – 2003 INF5070 – Media Storage and Distribution Systems:
Tapestry GTK Devaroy (07CS1012) Kintali Bala Kishan (07CS1024) G Rahul (07CS3009)
Wide-Area Cooperative Storage with CFS Robert Morris Frank Dabek, M. Frans Kaashoek, David Karger, Ion Stoica MIT and Berkeley.
Peer-to-Peer Systems 1/11 – 2004
1 PASTRY. 2 Pastry paper “ Pastry: Scalable, decentralized object location and routing for large- scale peer-to-peer systems ” by Antony Rowstron (Microsoft.
Peer-to-Peer Systems 27/10 & 10/11 – 2006 INF5071 – Performance in distributed systems:
Wide-area cooperative storage with CFS Frank Dabek, M. Frans Kaashoek, David Karger, Robert Morris, Ion Stoica.
Content Overlays (Nick Feamster). 2 Content Overlays Distributed content storage and retrieval Two primary approaches: –Structured overlay –Unstructured.
Chord & CFS Presenter: Gang ZhouNov. 11th, University of Virginia.
Chord: A Scalable Peer-to-peer Lookup Protocol for Internet Applications Xiaozhou Li COS 461: Computer Networks (precept 04/06/12) Princeton University.
1 Distributed Hash Tables (DHTs) Lars Jørgen Lillehovde Jo Grimstad Bang Distributed Hash Tables (DHTs)
Distribution – Part III 26/10 & 2/11 – 2007 INF5071 – Performance in distributed systems:
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.
Distribution – Part III 4 June 2016 INF5071 – Performance in distributed systems:
Chord: A Scalable Peer-to-peer Lookup Service for Internet Applications.
Paper Survey of DHT Distributed Hash Table. Usages Directory service  Very little amount of information, such as URI, metadata, … Storage  Data, such.
Peer to Peer A Survey and comparison of peer-to-peer overlay network schemes And so on… Chulhyun Park
Pastry: Scalable, decentralized object location and routing for large-scale peer-to-peer systems Antony Rowstron and Peter Druschel, Middleware 2001.
1 Distributed Hash Table CS780-3 Lecture Notes In courtesy of Heng Yin.
1. Efficient Peer-to-Peer Lookup Based on a Distributed Trie 2. Complex Queries in DHT-based Peer-to-Peer Networks Lintao Liu 5/21/2002.
Peer to Peer Network Design Discovery and Routing algorithms
Algorithms and Techniques in Structured Scalable Peer-to-Peer Networks
LOOKING UP DATA IN P2P SYSTEMS Hari Balakrishnan M. Frans Kaashoek David Karger Robert Morris Ion Stoica MIT LCS.
Large Scale Sharing Marco F. Duarte COMP 520: Distributed Systems September 19, 2004.
Peer-to-Peer (P2P) File Systems. P2P File Systems CS 5204 – Fall, Peer-to-Peer Systems Definition: “Peer-to-peer systems can be characterized as.
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,
Distribution – Part III
Pastry Scalable, decentralized object locations and routing for large p2p systems.
COS 461: Computer Networks
PASTRY.
TDK - Team Distributed Koders Distributed Systems I
Peer-to-Peer (P2P) File Systems
Peer-to-Peer Storage Systems
COS 461: Computer Networks
Consistent Hashing and Distributed Hash Table
Presentation transcript:

Peer-to-Peer Systems (cntd.) 15/11 – 2004 INF5070 – Media Servers and Distribution Systems:

CFS – Cooperative File System

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems CFS – Cooperative File System  Design Challenges  Distribute files in a peer-to-peer manner  Load Balancing — spread storage burden evenly  Fault tolerance — tolerate unreliable participants  Speed — comparable to whole-file FTP  Scalability — avoid O(#participants) algorithms  CFS approach based on Chord  Blocks of files are indexed using Chord  Root block found by file name, refers to first directory block  Directory blocks contain hashes of blocks DF B1 B2 Public key Root Block signature Directory Block Inode Block Data Block Data Block H(D) H(F)H(B1) H(B2)

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems CFS Replication Mechanism  Increase availability (fault tolerance)  Increase efficiency (server selection)  The predecessor of the data block returns its successors and their latencies  Client can choose the successor with the smallest latency  Ensures independent replica failure N40 N10 N5 N20 N110 N99 N80 N60 N50 Block 17 N Replicate blocks at r successors

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems N40 N10 N5 N20 N110 N99 N80 N60 Lookup(BlockID=45) N50 N RPCs: 1. Chord lookup 2. Chord lookup 3. Block fetch 4. Send to cache CFS Copies to Caches Along Lookup Path CFS Cache Mechanism

Pastry

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Pastry  “Competitor” to Chord and Tapestry (and CAN and …)  Approach taken  Only concerned with efficient indexing  Distributed index  Decentralized lookup service for key/value pairs  Uses DHTs  Content handling is an external problem entirely  No relation to content  No included replication or caching  P2P aspects  Every node must maintain keys  Adaptive to membership changes  Leaf nodes  Client nodes act also as file servers

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Pastry  DHT approach  Each node has Unique nodeId  Assigned when node joins  Used for routing  Each Message has a key  NodeIds and keys are in base 2 b  b is configuration parameter with typical value 4 (hexadecimal digits)  Pastry node routes the message to the node with the closest nodeId to the key  Number of routing steps is O(log N)  Pastry takes into account network locality  Each node maintains  Routing table is organized into  log 2 b N  rows with 2 b -1 entry each  Neighborhood set M — nodeId’s, IP addresses of  M  closest nodes, useful to maintain locality properties  Leaf set L — set of  L  nodes with closest nodeId

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Pastry Routing b=2, so nodeId is base 4 (16 bits) Contains the nodes that are numerically closest to local node Contains the nodes that are closest to local node according to proximity metric 2 b -1 entries per row  log 2 b N  rows Entries in the n th column share the first n digits with current node common prefix – next digit – rest n th digit of current node Entries in the m th row have m as next digit Entries with no suitable nodeId are left empty

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems 1331 X 1 : | | | X 2 : | | | L: 1232 | 1221 | 1300 | X 0 : | | | source 1221 des t Pastry Routing

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Pastry  Assessment  Scalability, fairness, load balancing  Distributed index of arbitrary size  Support for physical locality and locality by hash value  Stochastically logarithmic search effort  Network topology is partially accounted for, given an additional metric for physical locality  Stochastically logarithmic lookup in large systems, variable lookup costs  Content location  Search by hash key: limited ways to formulate queries  All indexed files are reachable  Not restricted to file location  Failure resilience  No single point of failure  Several possibilities for backup routes

Streaming in Peer-to-peer networks

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Peer-to-peer network

Promise

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Promise  Video streaming in Peer-to-Peer systems  Video segmentation into many small segments  Pull operation  Pull from several sources at once  Based on Pastry and CollectCast  CollectCast  Adds rate/data assignment  Evaluates  Node capabilities  Overlay route capabilities  Uses topology inference  Detects shared path segments  Using ICMP similar to traceroute  Tries to avoid shared path segments  Labels segments with quality (or goodness)

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Promise [Hafeeda et. al. 03] Receiver active sender standby senderactive sender Thus, Promise is a multiple sender to one receiver P2P media streaming system which 1) accounts for different capabilities, 2) matches senders to achieve best quality, and 3) dynamically adapts to network fluctuations and peer failure Each active sender: receives a control packet specifying which data segments, data rate, etc., pushes data to receiver as long as no new control packet is received standby sender The receiver: sends a lookup request using DHT selects some active senders, control packet receives data as long as no errors/changes occur if a change/error is detected, new active senders may be selected

SplitStream

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems SplitStream  Video streaming in Peer-to-Peer systems  Uses layered video  Uses overlay multicast  Push operation  Build disjoint overlay multicast trees  Based on Pastry

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems SplitStream Source: full quality movie Stripe 2 Stripe 1 [Castro et. al. 03] Each node: joins as many multicast trees as there are stripes (K) may specify the number of stripes they are willing to act as router for, i.e., according to the amount of resources available Each movie is split into K stripes and each stripe is multicasted using a separate three Thus, SplitStream is a multiple sender to multiple receiver P2P system which distributes the forwarding load while respecting each node’s resource limitations, but some effort is required to build the forest of multicast threes

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems SplitStream  Easy to build disjoint trees  Disjoint tree  Guaranteed  in the overlay  Contrast to disjoint tree in Promise  Best-effort only  At the IP level Example:Use source nodes: , Use degree 2 Inner nodes from ● ● ● ● ● ● Inner nodes from ● ● ● ● ● ●

2004 Carsten Griwodz & Pål Halvorsen INF5070 – media servers and distribution systems Some References 1.M. Castro, P. Druschel, A-M. Kermarrec, A. Nandi, A. Rowstron and A. Singh, "SplitStream: High-bandwidth multicast in a cooperative environment", SOSP'03, Lake Bolton, New York, October Mohamed Hefeeda, Ahsan Habib, Boyan Botev, Dongyan Xu, Bharat Bhargava, "Promise: Peer-to-Peer Media Streaming Using Collectcast", ACM MM’03, Berkeley, CA, November Sitaram, D., Dan, A.: “Multimedia Servers – Applications, Environments, and Design”, Morgan Kaufmann Publishers, Tendler, J.M., Dodson, S., Fields, S.: “IBM e-server: POWER 4 System Microarchitecture”, Technical white paper, Tetzlaff, W., Flynn, R.: “Elements of Scalable Video Servers”, IBM Research Report (87884), Intel, 7.MPEG.org, 8.nCUBE,