1 Analysis of BitTorrent-like Protocols for On-Demand Stored Media Streaming Khandoker Nadim Parvez Carey Williamson Anirban Mahanti Niklas Carlsson.

Slides:



Advertisements
Similar presentations
Xia Zhou*, Stratis Ioannidis ♯, and Laurent Massoulié + * University of California, Santa Barbara ♯ Technicolor Research Lab, Palo Alto + Technicolor Research.
Advertisements

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 Bram Cohen.
Agenda Introduction BT + Multimedia Experimental Conclusion 2.
Cameron Dale and Jiangchuan LiuA Measurement Study of Piece Population in BitTorrent Introduction BitTorrent Experiment Results Simulation Discussion A.
Mohamed Hefeeda Analysis of Peer-Assisted Video-on- Demand Systems with Scalable Video Streams Mohamed Hefeeda (Joint work with Kianoosh Mokhtarian) 22.
Playback-buffer Equalization For Streaming Media Using Stateless Transport Prioritization By Wai-tian Tan, Weidong Cui and John G. Apostolopoulos Presented.
On Large-Scale Peer-to-Peer Streaming Systems with Network Coding Chen Feng, Baochun Li Dept. of Electrical and Computer Engineering University of Toronto.
Using P2P Technologies for Video on Demand (VoD) Limor Gavish limorgav at tau.ac.il Yuval Meir wil at tau.ac.il Tel-Aviv University Based on:  Cheng Huang,
View-Upload Decoupling: A Redesign of Multi-Channel P2P Video Systems Keith Ross Polytechnic Institute of NYU.
Kangaroo: Video Seeking in P2P Systems Xiaoyuan Yang †, Minas Gjoka ¶, Parminder Chhabra †, Athina Markopoulou ¶, Pablo Rodriguez † † Telefonica Research.
Peer-assisted On-demand Streaming of Stored Media using BitTorrent-like Protocols Authors: Niklas Carlsson & Derek L. Eager Published in: Proc. IFIP/TC6.
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.
Delay and Throughput in Random Access Wireless Mesh Networks Nabhendra Bisnik, Alhussein Abouzeid ECSE Department Rensselaer Polytechnic Institute (RPI)
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.
Network Coding in Peer-to-Peer Networks Presented by Chu Chun Ngai
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.
Amir Rasti Reza Rejaie Dept. of Computer Science University of Oregon.
Queueing Models for P2P Systems.  Extend classical queuing theory for P2P systems.  Develop taxonomy for different variations of these queuing models.
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
Alex Sherman Jason Nieh Cliff Stein.  Lack of fairness in bandwidth allocation in P2P systems:  Users are not incentivized to contributed bandwidth.
Scalable and Continuous Media Streaming on Peer-to-Peer Networks M. Sasabe, N. Wakamiya, M. Murata, H. Miyahara Osaka University, Japan Presented By Tsz.
1 A Framework for Lazy Replication in P2P VoD Bin Cheng 1, Lex Stein 2, Hai Jin 1, Zheng Zhang 2 1 Huazhong University of Science & Technology (HUST) 2.
Improving ISP Locality in BitTorrent Traffic via Biased Neighbor Selection Ruchir Bindal, Pei Cao, William Chan Stanford University Jan Medved, George.
Peer-Assisted Content Distribution Networks: Techniques and Challenges Pei Cao Stanford University.
Service Differentiated Peer Selection An Incentive Mechanism for Peer-to-Peer Media Streaming Ahsan Habib, Member, IEEE, and John Chuang, Member, IEEE.
Modeling and analysis of BitTorrent-like P2P network Fan Bin Oct,1 st,2004.
On Peer-to-Peer Media Streaming Dongyan Xu Mohamed Heffeda Susanne Hamrusch Bharat Bhargava 2002 International Conference on Distributed Computing Systems.
An Alliance based PeeringScheme for P2P Live Media Streaming An Alliance based Peering Scheme for P2P Live Media Streaming Darshan Purandare Ratan Guha.
Understanding Mesh-based Peer-to-Peer Streaming Nazanin Magharei Reza Rejaie.
Performance Evaluation of Peer-to-Peer Video Streaming Systems Wilson, W.F. Poon The Chinese University of Hong Kong.
On Peer-to-Peer Media Streaming by Dongyan Xu, Mohamed Hefeeda, Susanne Hambrusch, Bharat Bhargava Dept. of Computer Science, Purdue University, West Lafayette.
On-Demand Media Streaming Over the Internet Mohamed M. Hefeeda, Bharat K. Bhargava Presented by Sam Distributed Computing Systems, FTDCS Proceedings.
CUHK Analysis of Movie Replication and Benefits of Coding in P2P VoD Yipeng Zhou Aug 29, 2012.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
Peer-To-Peer Multimedia Streaming Using BitTorrent Purvi Shah, Jehan-François Pâris University of Houston Houston, TX.
Exploring VoD in P2P Swarming Systems By Siddhartha Annapureddy, Saikat Guha, Christos Gkantsidis, Dinan Gunawardena, Pablo Rodriguez Presented by Svetlana.
Chun-Yuan Chang, Cheng-Fu Chou * and Ming-Hung Chen Presenter: Prof. Cheng-Fu Chou National Taiwan University
BitTorrent Under a Microscope: Towards Static QoS Provision in Dynamic Peer-to-Peer Networks Tom H. Luan*, Xuemin (Sherman) Shen* and Danny H. K. Tsang.
DELAYED CHAINING: A PRACTICAL P2P SOLUTION FOR VIDEO-ON-DEMAND Speaker : 童耀民 MA1G Authors: Paris, J.-F.Paris, J.-F. ; Amer, A. Computer.
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.
Do incentives build robustness in BitTorrent? Michael Piatek, Tomas Isdal, Thomas Anderson, Arvind Krishnamurthy, Arun Venkataramani.
Bit Torrent A good or a bad?. Common methods of transferring files in the internet: Client-Server Model Peer-to-Peer Network.
1 Towards Cinematic Internet Video-on-Demand Bin Cheng, Lex Stein, Hai Jin and Zheng Zhang HUST and MSRA Huazhong University of Science & Technology Microsoft.
Resilient Peer-to-Peer Streaming Presented by: Yun Teng.
LOCALITY-AWARENESS IN BITTORRENT-LIKE P2P APPLICATIONS R 黃琇琳 R 呂柏頡.
Multiclass P2P Networks: Static Resource Allocation for Service Differentiation and Bandwidth Diversity Florence Clévenot-Perronnin, Philippe Nain and.
MULTI-TORRENT: A PERFORMANCE STUDY Yan Yang, Alix L.H. Chow, Leana Golubchik Internet Multimedia Lab University of Southern California.
Quantitative Evaluation of Unstructured Peer-to-Peer Architectures Fabrício Benevenuto José Ismael Jr. Jussara M. Almeida Department of Computer Science.
A Simple Model for Analyzing P2P Streaming Protocols Zhou Yipeng Chiu DahMing John, C.S. Lui The Chinese University of Hong Kong.
A P2P-Based Architecture for Secure Software Delivery Using Volunteer Assistance Purvi Shah, Jehan-François Pâris, Jeffrey Morgan and John Schettino IEEE.
BALANCING THROUGHPUT, ROBUSTNESS, AND IN- ORDER DELIVERY IN P2P VOD Bin Fan, David G. Andersen, Michael Kaminsky†, Konstantina Papagiannaki † Carnegie.
Advanced Network Seminar P2P in VoD Constantin Radchenko.
A simple model for analyzing P2P streaming protocols. Seminar on advanced Internet applications and systems Amit Farkash. 1.
Content Availability and Bundling in Swarming Systems Reporter: Jian He.
SHADOWSTREAM: PERFORMANCE EVALUATION AS A CAPABILITY IN PRODUCTION INTERNET LIVE STREAM NETWORK ACM SIGCOMM CING-YU CHU.
Analyzing and Improving BitTorrent Ashwin R. Bharambe ( Carnegie Mellon University ) Cormac Herley ( Microsoft Research, Redmond ) Venkat Padmanabhan (
Network and Systems Laboratory nslab.ee.ntu.edu.tw Yipeng Zhou, Dah Ming Chiu, and John C.S. Lui Information Engineering Department The Chinese University.
Bit Torrent Nirav A. Vasa. Topics What is BitTorrent? Related Terms How BitTorrent works Steps involved in the working Advantages and Disadvantages.
Improving QoS in BitTorrent-like VoD Systems Yan Yang Alix L.H. Chow Leana Golubchik Dannielle Bragg Univ. of Southern California Harvard University InfoCom.
PEAR TO PEAR PROTOCOL. Pure P2P architecture no always-on server arbitrary end systems directly communicate peers are intermittently connected and change.
Peer-to-Peer Networks 10 Fast Download Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg.
An example of peer-to-peer application
FairTorrent: BrinGing Fairness to Peer-to-Peer Systems
Introduction to BitTorrent
Small Is Not Always Beautiful
Fluid Modeling Abstracting a discrete-valued system (e.g., packets, customers, users) into a continuous-valued model Writing equations to model system.
Presentation transcript:

1 Analysis of BitTorrent-like Protocols for On-Demand Stored Media Streaming Khandoker Nadim Parvez Carey Williamson Anirban Mahanti Niklas Carlsson

2 Introduction and Motivation n BitTorrent is a popular protocol used for Peer-to-Peer (P2P) file sharing on the Internet n Very efficient for download of large files, such as media objects (audio/video) n Question: How suitable is BitTorrent for on-demand stored media streaming?

3 Background: BitTorrent 101 n Key features of BitTorrent: –all peers associated with a file are called a swarm (tracker, downloaders, and seeds) –a single file (e.g., 100 MB movie) is split into many fixed-size pieces (e.g., 256 KB) –peers can download pieces in any order –“Rarest-First” piece selection policy makes prevalence of pieces asymptotically uniform –can download pieces concurrently from multiple peers at a time –“tit-for-tat” reciprocity among peers to encourage cooperation (upload/download)

4 Background: Streaming n Download = Streaming –D: obtain file first, then do something with it –S: view the file while it is still being obtained (start-up delay << download latency) n Media playback must be sequential n Media file has an inherent media playback rate (frames per second) n Playback rate must be sustained for the duration of the media object (uninterrupted)

5 Background: P2P Streaming n The P2P paradigm has also been applied to media streaming applications –CoolStreaming, PPLive, ZigZag, … n Two types of streaming: –live streaming: usually a single source, and many peers with shared temporal content focus, joining and leaving at any time –on-demand streaming: stored media objects, accessed at any time, retrieved in entirety n Our focus: on-demand P2P streaming

6 Research Questions n Can BitTorrent-like protocols provide scalable on-demand streaming? n How sensitive is the performance to the application configuration parameters? –Piece selection policy –Upload/download bandwidth n What is the user-perceived performance? –Startup delay –Probability of disrupted playback

7 A Key Observation n MediaStreamingProgress (MSP) depends on two different things: –DownloadProgress (DP) –SequentialProgress (SP) n These two can be analyzed separately (useful media pieces per unit time) (pieces obtained per unit time) (useful media pieces per pieces obtained) MSP = DP x SP

8 Quiz Time: Sequential Progress E[j] = k M - k + 1 Q: After having retrieved k pieces (at random) from a file with M pieces, what is the probability that a peer has (exactly) pieces 1 to j inclusive? A1: Prob(M,k,j) = M k () M j k - j () A2: P = Var[j] = k(M+1)(M-k) (M-k+2)(M-k+1) 2 M k () M - j k - j () jjjj () “useful” pieces“useless” pieces total ways to choose

9 Sequential Progress Example E[j] = k M - k + 1

10 BitTorrent System Model Arrival rate = Departure rate =  y Downloader Seed Download Time T Residence Time 1/  Torrent (with x downloaders and y seeds)

11 Assumptions and Parameters n Single swarm; homogeneous peers n x downloaders and y seeds at time t n D download conns > U upload conns n System is demand-driven: xD > (x+y)U n Per-connection throughput is C bps n Download latency = T n Number of pieces in the file = M n Startup delay =  n Media Playback Rate = r

12 Fluid Model Overview Arrivals Departures Downloaders Seeds Conversions x(t) y(t)

13 Model: Rarest-First n Conversion of downloaders to seeds at rate (x+y)UC. n Therefore the change of swarm population: dy See [Qiu and Srikant 2004]

14 Model: Rarest-First Download latency: Sequential progress: n Startup delay:

15 Rarest-First: Observations n Download latency is independent of the peer arrival rate (system is scalable). n Latency improves when upload bandwidth or seed residence time increase. n Sequential progress is very poor (bad news for on-demand streaming!). n Startup delay approximately equals the download latency when M is large.

16 Strict In-Order Model (naïve) n Obtain pieces in numerical order n Best case for sequential progress n Implications: –Completely breaks the “tit-for-tat” mechanism! (only older peers have useful pieces for you) –Uneven distribution of demand in system (heaviest at seeds and older peers, who use random selection with purging to handle load) –Young peers progress quickly, but progress gets slower and slower with age –Unstable system population (oscillation)

17 Departure rate =  y Downloader Seed Torrent (with x downloaders and y seeds) U = # of upload connections C = Per connection throughput Arrival rate = Peers (sorted by age) Strict In-Order Model (naïve)

18 Model: Strict In-Order (naïve) The probability of getting a download connection for a downloader of age t is : n Averaging over all downloaders (age 0 to T), the change of swarm population is: dy

19 Model: Strict In-Order (naïve) Swarm population: Download latency: n Startup delay:

20 Strict In-Order(naïve): Observations n System progress is very sluggish due to x/2 term in the conversion rate. n Number of downloaders is much higher. n Number of seeds is same as Rarest-First. n Download latency is almost double compared to Rarest-First (for  near 1).

21 Departure rate =  y Downloader Seed Torrent (with x downloaders and y seeds) U = # of upload connections C = Per connection throughput Arrival rate = Peers (sorted by age) Strict In-Order Model (clever)

22 In-Order(clever) Model n Obtain pieces in numerical order n Best case for sequential progress n Features: –Pending requests are queued –Queues are served in FCFS order –Closed-loop mechanism for new requests ensures finite queue size –Load is less uneven, and self-regulated –System is “fair” to peers of all ages

23 Model: Strict In-Order (clever) Swarm population: Download latency: n Startup delay:

24 In-Order(clever): Observations n Population evolution is identical to Rarest-First. n Download latency is identical to Rarest-First. n Sequential progress is ideal (unlike Rarest-First). n Lowest startup delay among policies evaluated. n We believe this policy is optimal, but do not have a formal proof at this time. (Help!)

25 Model Validation: Scenario n Fluid simulation in ns-2 n Number of pieces: M = 100 –Range: 100 to 200 n Piece size: 128 KB n Media playback rate: r = 2000 Kbps n Download capacity: 3200 Kbps (D = 16 conns) n Upload capacity: 800 Kbps (U = 4 conns) –Range: 300 Kbps to 2000 Kbps n Arrival rate: 50 (per media duration) –Range: 6.25 to n Seed residence time: 20 seconds –Range: 10 seconds to 150 seconds

26 Model Validation (1 of 3) n Swarm population increases linearly with peer arrival rate n In-Order(naïve) has higher system pop. n In-Order(naïve) is sensitive to seed residence time, while other policies are not.

27 Model Validation (2 of 3) n Download time improves when the seed residence time is increased n Download time improves when the upload bandwidth is increased n Good agreement with analytical models

28 Model Validation (3 of 3) n Startup delay improves when seed residence time or upload bandwidth are increased n In-Order(clever) achieves lowest startup delay n Good agreement between simulation results and analytical model

29 Conclusions n BitTorrent-like protocols can support scalable and efficient on-demand streaming. n Rarest-First attains poor sequential progress. n In-Order(clever) achieves best performance for media playback while attaining the same download latency of Rarest-First. n Our analytic models accurately predict system performance (simulation validation).

30 Key Contributions n Decoupling of download progress and sequential progress (key insight). n Download latency and startup delay characterization for different policies. n Effect of upload U and download D connections, not just total bandwidth. n Distribution of download time and variability of progress (stream quality). n Optimal structure for on-demand media streaming in P2P networks (???)