Optimal Scheduling in Peer-to-Peer Networks Lee Center Workshop 5/19/06 Mortada Mehyar (with Prof. Steven Low, Netlab)

Slides:



Advertisements
Similar presentations
Optimal Capacity Sharing of Networks with Multiple Overlays Zheng Ma, Jiang Chen, Yang Richard Yang and Arvind Krishnamurthy Yale University University.
Advertisements

Impact of Interference on Multi-hop Wireless Network Performance Kamal Jain, Jitu Padhye, Venkat Padmanabhan and Lili Qiu Microsoft Research Redmond.
Peter R. Pietzuch Peer-to-Peer Computing – or how to make your BitTorrent downloads go faster... Peter Pietzuch Large-Scale Distributed.
Neighbour selection strategies in BitTorrent- like Peer-to-Peer systems L.G. Alex Sung, Herman Li March 30, 2005 for CS856 Web Data Management University.
Replication Strategies in Unstructured Peer-to-Peer Networks Edith Cohen Scott Shenker This is a modified version of the original presentation by the authors.
Rarest First and Choke Algorithms Are Enough
Rarest First and Choke Algorithms are Enough Arnaud LEGOUT INRIA, Sophia Antipolis France G. Urvoy-Keller and P. Michiardi Institut Eurecom France.
The BitTorrent Protocol. What is BitTorrent?  Efficient content distribution system using file swarming. Does not perform all the functions of a typical.
Incentives Build Robustness in BitTorrent Author: Bram Cohen Presenter: Brian Liao.
Incentives Build Robustness in BitTorrent Bram Cohen.
Bit Torrent (Nick Feamster) February 25, BitTorrent Steps for publishing – Peer creates.torrent file and uploads to a web server: contains metadata.
1 Communication Networks Kolja Eger, Prof. Dr. U. Killat 1 From Packet-level to Flow-level Simulations of P2P Networks Kolja Eger, Ulrich Killat Hamburg.
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Stochastic Analysis of File Swarming Systems The Chinese University of Hong Kong John C.S. Lui Collaborators: D.M. Chiu, M.H. Lin, B. Fan.
Clustering and Sharing Incentives in BitTorrent Systems Arnaud Legout 1, Nikitas Liogkas 2, Eddie Kohler 2, Lixia Zhang 2 1 INRIA, Projet Planète, Sophia.
Modelling and Performance Analysis of BitTorrent-Like Peer-to-Peer Networks.
Analyzing and Improving BitTorrent Ashwin R. Bharambe ( Carnegie Mellon University ) Cormac Herley ( Microsoft Research, Redmond ) Venkat Padmanabhan (
CompSci 356: Computer Network Architectures Lecture 21: Content Distribution Chapter 9.4 Xiaowei Yang
Peer to Peer (P2P) Networks and File sharing. By: Ryan Farrell.
A survey of BitTorrent study Jian Liang EL933 Prof. Yong Liu.
Network Coding for Large Scale Content Distribution Christos Gkantsidis Georgia Institute of Technology Pablo Rodriguez Microsoft Research IEEE INFOCOM.
Peer-Assisted Content Distribution Networks: Techniques and Challenges Pei Cao Stanford University.
Spotlighting Decentralized P2P File Sharing Archie Kuo and Ethan Le Department of Computer Science San Jose State University.
Modeling and analysis of BitTorrent-like P2P network Fan Bin Oct,1 st,2004.
Modeling and Performance Analysis of Bitorrent-Like Peer-to-Peer Networks Dongyu Qiu and R. Srikant University of Illinois, 2004 Presented by : Ran Zivhon.
A P2P file distribution system ——BitTorrent Fan Bin Sep,25,2004.
Incentives Build Robustness in BitTorrent 1st Workshop on Economics of Peer-to-Peer Systems 2003 Bram Cohen
CSE 461 University of Washington1 Topic Peer-to-peer content delivery – Runs without dedicated infrastructure – BitTorrent as an example Peer.
Can Network Coding Help in P2P Networks? Dah Ming Chiu, Raymond W Yeung, Jiaqing Huang and Bin Fan Chinese University of Hong Kong Presented by Arjumand.
Bit Torrent (Nick Feamster) February 25, BitTorrent Steps for publishing – Peer creates.torrent file and uploads to a web server: contains metadata.
BitTorrent Presentation by: NANO Surmi Chatterjee Nagakalyani Padakanti Sajitha Iqbal Reetu Sinha Fatemeh Marashi.
BitTorrent Internet Technologies and Applications.
BitTorrent How it applies to networking. What is BitTorrent P2P file sharing protocol Allows users to distribute large amounts of data without placing.
Forensics Investigation of Peer-to- Peer File Sharing Networks Authors: Marc Liberatore, Robert Erdely, Thomas Kerle, Brian Neil Levine & Clay Shields.
1 BitTorrent System Efrat Oune Bar-Ilan What is BitTorrent? BitTorrent is a peer-to-peer file distribution system (built for intensive daily use.
BitTorrent Dr. Yingwu Zhu. Bittorrent A popular P2P application for file exchange!
A P2P file distribution system ——BitTorrent Pegasus Team CMPE 208.
1 BitHoc: BitTorrent for wireless ad hoc networks Jointly with: Chadi Barakat Jayeoung Choi Anwar Al Hamra Thierry Turletti EPI PLANETE 28/02/2008 MAESTRO/PLANETE.
Peer-to-Peer Networks University of Jordan. Server/Client Model What?
Chapter 2: Application layer
Bit Torrent A good or a bad?. Common methods of transferring files in the internet: Client-Server Model Peer-to-Peer Network.
Multiclass P2P Networks: Static Resource Allocation for Service Differentiation and Bandwidth Diversity Florence Clévenot-Perronnin, Philippe Nain and.
Improving Capacity and Flexibility of Wireless Mesh Networks by Interface Switching Yunxia Feng, Minglu Li and Min-You Wu Presented by: Yunxia Feng Dept.
MULTI-TORRENT: A PERFORMANCE STUDY Yan Yang, Alix L.H. Chow, Leana Golubchik Internet Multimedia Lab University of Southern California.
1 Slides from Richard Yang with minor modification Peer-to-Peer Systems: DHT and Swarming.
2: Application Layer1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP r.
Peer-to-Peer File Sharing Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
1 Peer-to-Peer Technologies Seminar by: Kunal Goswami (05IT6006) School of Information Technology Guided by: Prof. C.R.Mandal, School of Information Technology.
Impact of Incentives in BitTorrent By Jenny Liu and Seth Cooper.
1 Push-to-Peer Video-on-Demand System. 2 Abstract Content is proactively push to peers, and persistently stored before the actual peer-to-peer transfers.
6° of Darkness or Using Webs of Trust to Solve the Problem of Global Indexes.
Peer-to-Peer File Sharing
ADVANCED COMPUTER NETWORKS Peer-Peer (P2P) Networks 1.
Aug 22, 2002Sigcomm 2002 Replication Strategies in Unstructured Peer-to-Peer Networks Edith Cohen AT&T Labs-research Scott Shenker ICIR.
Algorithms and Techniques in Structured Scalable Peer-to-Peer Networks
Bit Torrent Nirav A. Vasa. Topics What is BitTorrent? Related Terms How BitTorrent works Steps involved in the working Advantages and Disadvantages.
INTERNET TECHNOLOGIES Week 10 Peer to Peer Paradigm 1.
P2P Search COP P2P Search Techniques Centralized P2P systems  e.g. Napster, Decentralized & unstructured P2P systems  e.g. Gnutella.
Peer-to-Peer Networks 10 Fast Download Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg.
1 Gnutella. 2 Overview r P2P search mechanism r Simple and straightforward r Completely decentralized r Creates overlay network r Different applications.
An example of peer-to-peer application
Introduction to BitTorrent
BitTorrent Vs Gnutella.
Economics and Computation Week 7: The economics of P2P file sharing
Managing Inter-domain Traffic in the Presence of BitTorrent File-Sharing Srinivasan Seetharaman and Mostafa Ammar School of Computer Science Objective:
Small Is Not Always Beautiful
The BitTorrent Protocol
Pure P2P architecture no always-on server
Chapter 2 Application Layer
#02 Peer to Peer Networking
Presentation transcript:

Optimal Scheduling in Peer-to-Peer Networks Lee Center Workshop 5/19/06 Mortada Mehyar (with Prof. Steven Low, Netlab)

Outline Brief description of p2p file sharing and Bittorrent protocol Our model for Bittorrent-like file sharing Efficiency of scheduling algorithms with respect to different optimality criteria.

About Bittorrent A p2p protocol started ~ 2002 The most popular p2p system. It accounts for 35% of all Internet traffic! (according to British Web analysis firm CacheLogic) Warner Brothers to distribute films through Bittorrent (May 2006)

Bittorrent Basics Divide file into small pieces (256KB). Utilize all peers upload capacities server client Problem: large file (~GB) and large demand (10s, 1000s or more clients.) It is not feasible to set up infrastructure for traditional client-server download.

Bittorrent schematic Seed (peer with entire file) peer new peer (with torrent file) tracker

Bittorrent algorithms: who to upload to? Tit-for-tat: upload to peers from which most data downloaded in last 30 seconds (4 peers by default.) Therefore: incentive to upload in order to be chosen by other peers!

Bittorrent Algorithms: What piece to send? Rarest-first: upload the piece that is rarest among your neighbors first

The Broadcasting Model t = t = t = t = 3 M = 1, N = 7, all upload capacities are 1 piece per unit time

Example: M = 2, N = 3 t = 0 t = t = t = (rarest first!) t = 4

Equal capacities, general M, N Theorem 1: There exists a schedule for a server to broadcast M messages to N nodes in M+logN time [Bar-Noy et al, 2000] However, it is very difficult to extend the result to networks of different capacities

Uplink Sharing Model 1 server, N peers with possibly different capacities. Suppose upload capacities are the only bottleneck. Suppose M >> 1 F F

Optimal Last Finish Time Theorem 2: the minimal time for all N peers to obtain a file F (optimal last finish time) from a server is where F is the file size and Cs, C1, …,CN are the upload capacities. There always exists a schedule S 0 such that the finish time vector is

Example (Zero Peer Capacities) Suppose all peers have 0 capacity, consider the following two strategies Divide capacity equally among peers: Upload to peers one by one: The last finish time is the same, but the latter is obviously better! In fact, the latter can be shown to be average finish time optimal.

Optimal Average Finish Time (N=3) t1 t2 t3 finish time

Conclusion and Ongoing Work Simple model with rich structure for understanding efficiency of p2p file sharing It captures many issues Bittorrent addresses (e.g. favoring fast peers, rarest first policy) Lots of questions remain open: understanding fairness-efficiency tradeoff other kinds of optimality criteria

Netlab s other research projects More details about this work

Thank You!

Backup slides start here

Another way to look at Ts

Previous Bittorrent Modeling Work Qiu & Srikant [Sigcomm 04] Predator-prey-like fluid models Assumes equal capacities among peers Assumes rates of peer joins/leaves and studies equilibrium and stability

Proof of Theorem 2 First notice that the two terms have to be lower bounds of the optimal last finish time So it remains to show that the equality is achievable. Here s a strategy for that:

Proof of Theorem 2 When the server allocates to peer i: Each peer therefore receives:

Proof of Theorem 2 When the server allocates to peer i: Each peer therefore receives:

Bittorrent Basics Torrent file: Meta data about the file: filename, size, author, etc. Hash info for each file piece to verify integrity Link to centralized tracker Published on the Web Tracker: Keeps track of the IPs of peers Bootstraps new peers Centralized, but does not coordinate data transfer among peers

P2P systems Napster (centralized directory) Kazza (semi-decentralized system with super peers) Gnutella (e.g. Limewire, Bearshare, decentralized) Bittorrent (most popular and successful for distribution of large files)

Another way to look at T L

Non-Zero Peer Capacities If the peer capacities are not all 0, then the upload one by one strategy can be shown to result in these finish times: However … this is not average finish time optimal!

Comparing finish time vectors Definition: a finish time vector v1 is strictly better than another finish time vector v2 if no component of v1 is larger, and some component of v1 is smaller than the corresponding component of v2 - (2, 3, 3) strictly better than (3, 3, 3) - (1, 2, 3) (2, 2, 2) cannot be compared with respect to this

The Broadcasting Model' Assume discrete-time, synchronous system where N nodes have equal upload capacity of 1 message per unit time Objective: find a schedule such that every node receives all M messages in minimal time

Assumptions reasonable for p2p Size of file pieces (256KB for BT) is usually much smaller than total size of file (~GB). Namely, the number of pieces M >> 1. Upload links are usually much slower (e.g. DSL lines), so assume upload capacities are the only bottleneck.