Challenges, Design and Analysis of a Large-scale P2P-VoD System Dr. Yingwu Zhu.

Slides:



Advertisements
Similar presentations
Dissemination-based Data Delivery Using Broadcast Disks.
Advertisements

Novasky: Cinematic-Quality VoD in a P2P Storage Cloud Speaker : 童耀民 MA1G Authors: Fangming Liu†, Shijun Shen§,Bo Li†, Baochun Li‡, Hao Yin§,
Clayton Sullivan PEER-TO-PEER NETWORKS. INTRODUCTION What is a Peer-To-Peer Network A Peer Application Overlay Network Network Architecture and System.
On Large-Scale Peer-to-Peer Streaming Systems with Network Coding Chen Feng, Baochun Li Dept. of Electrical and Computer Engineering University of Toronto.
Challenges, Design and Analysis of a Large-scale P2P-VoD System
Kangaroo: Video Seeking in P2P Systems Xiaoyuan Yang †, Minas Gjoka ¶, Parminder Chhabra †, Athina Markopoulou ¶, Pablo Rodriguez † † Telefonica Research.
A Lightweight Currency-based P2P VoD Incentive Mechanism Presented by Svetlana Geldfeld by Chi Wang, Hongbo Wang, Yu Lin, and Shanzhi Chen.
Network Coding in Peer-to-Peer Networks Presented by Chu Chun Ngai
Cloud Download : Using Cloud Utilities to Achieve High-quality Content Distribution for Unpopular Videos Yan Huang, Tencent Research, Shanghai, China Zhenhua.
CompSci 356: Computer Network Architectures Lecture 21: Content Distribution Chapter 9.4 Xiaowei Yang
Internet Networking Spring 2006 Tutorial 12 Web Caching Protocols ICP, CARP.
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.
Locality-Aware Request Distribution in Cluster-based Network Servers 1. Introduction and Motivation --- Why have this idea? 2. Strategies --- How to implement?
Exploiting Content Localities for Efficient Search in P2P Systems Lei Guo 1 Song Jiang 2 Li Xiao 3 and Xiaodong Zhang 1 1 College of William and Mary,
1 Chapter 8 Virtual Memory Virtual memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of main memory.
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.
Computer Organization and Architecture
A Hybrid Caching Strategy for Streaming Media Files Jussara M. Almeida Derek L. Eager Mary K. Vernon University of Wisconsin-Madison University of Saskatchewan.
CS 524 (Wi 2003/04) - Asim LUMS 1 Cache Basics Adapted from a presentation by Beth Richardson
On-Demand Media Streaming Over the Internet Mohamed M. Hefeeda, Bharat K. Bhargava Presented by Sam Distributed Computing Systems, FTDCS Proceedings.
Some recent work on P2P content distribution Based on joint work with Yan Huang (PPLive), YP Zhou, Tom Fu, John Lui (CUHK) August 2008 Dah Ming Chiu Chinese.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
# Idowu Samuel O. # Kashif Shahzad # Arif Kamal M7001E - Multimedia systems [ltu.se] ©2011.
NovaBACKUP 10 xSP Technical Training By: Nathan Fouarge
1 Chapter Overview Creating Sites and Subnets Configuring Intersite Replication Troubleshooting Active Directory Replication.
Computer Measurement Group, India Reliable and Scalable Data Streaming in Multi-Hop Architecture Sudhir Sangra, BMC Software Lalit.
Research on cloud computing application in the peer-to-peer based video-on-demand systems Speaker : 吳靖緯 MA0G rd International Workshop.
1 The Google File System Reporter: You-Wei Zhang.
Chapter 3 Memory Management: Virtual Memory
Exploring VoD in P2P Swarming Systems By Siddhartha Annapureddy, Saikat Guha, Christos Gkantsidis, Dinan Gunawardena, Pablo Rodriguez Presented by Svetlana.
COCONET: Co-Operative Cache driven Overlay NETwork for p2p VoD streaming Abhishek Bhattacharya, Zhenyu Yang & Deng Pan.
Challenges, Design and Analysis of a Large-scale P2P-VoD System Yan Huang, Tom Z. J. Fu, Dah-Ming Chiu, John C. S. Lui and Cheng Huang SeungHo.
1 V1-Filename.ppt / yyyy-mm-dd / Initials P2P content distribution T Applications and Services in Internet, Fall 2008 Jukka K. Nurminen.
DELAYED CHAINING: A PRACTICAL P2P SOLUTION FOR VIDEO-ON-DEMAND Speaker : 童耀民 MA1G Authors: Paris, J.-F.Paris, J.-F. ; Amer, A. Computer.
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.
Segment-Based Proxy Caching of Multimedia Streams Authors: Kun-Lung Wu, Philip S. Yu, and Joel L. Wolf IBM T.J. Watson Research Center Proceedings of The.
Scalable Web Server on Heterogeneous Cluster CHEN Ge.
A Measurement Study of a Peer-to-Peer Video-on-Demand System Bin Cheng 1, Xuezheng Liu 2, Zheng Zhang 2 and Hai Jin 1 1 Huazhong University of Science.
HUAWEI TECHNOLOGIES CO., LTD. Page 1 Survey of P2P Streaming HUAWEI TECHNOLOGIES CO., LTD. Ning Zong, Johnson Jiang.
Othman Othman M.M., Koji Okamura Kyushu University 1.
Computer Architecture Memory organization. Types of Memory Cache Memory Serves as a buffer for frequently accessed data Small  High Cost RAM (Main Memory)
Temporal-DHT and its Application in P2P-VoD Systems Abhishek Bhattacharya, Zhenyu Yang & Shiyun Zhang.
Data Replication and Power Consumption in Data Grids Susan V. Vrbsky, Ming Lei, Karl Smith and Jeff Byrd Department of Computer Science The University.
A Simple Model for Analyzing P2P Streaming Protocols Zhou Yipeng Chiu DahMing John, C.S. Lui The Chinese University of Hong Kong.
Efficient P2P Search by Exploiting Localities in Peer Community and Individual Peers A DISC’04 paper Lei Guo 1 Song Jiang 2 Li Xiao 3 and Xiaodong Zhang.
Flashback: A Peer-to-Peer Web Server for Flash Crowds Presented by Tom Batkiewicz CS 587x Fall ‘07.
PROP: A Scalable and Reliable P2P Assisted Proxy Streaming System Computer Science Department College of William and Mary Lei Guo, Songqing Chen, and Xiaodong.
SocialTube: P2P-assisted Video Sharing in Online Social Networks
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.
BALANCING THROUGHPUT, ROBUSTNESS, AND IN- ORDER DELIVERY IN P2P VOD Bin Fan, David G. Andersen, Michael Kaminsky†, Konstantina Papagiannaki † Carnegie.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Content caching and scheduling in wireless networks with elastic and inelastic traffic Group-VI 09CS CS CS30020 Performance Modelling in Computer.
A simple model for analyzing P2P streaming protocols. Seminar on advanced Internet applications and systems Amit Farkash. 1.
SHADOWSTREAM: PERFORMANCE EVALUATION AS A CAPABILITY IN PRODUCTION INTERNET LIVE STREAM NETWORK ACM SIGCOMM CING-YU CHU.
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.
Peer-to-Peer Video Systems: Storage Management CS587x Lecture Department of Computer Science Iowa State University.
Improving QoS in BitTorrent-like VoD Systems Yan Yang Alix L.H. Chow Leana Golubchik Dannielle Bragg Univ. of Southern California Harvard University InfoCom.
Virtual Memory Pranav Shah CS147 - Sin Min Lee. Concept of Virtual Memory Purpose of Virtual Memory - to use hard disk as an extension of RAM. Personal.
California State University, LA Presented by Amanda Steven StevenAamirObaid.
Challenges, Design and Analysis of a Large-scale P2P-VoD System Yan Huang, Tom Z. J. Fu, Dah-Ming Chiu, John C. S. Lui and Cheng Huang Chinese University.
The Google File System Sanjay Ghemawat, Howard Gobioff, and Shun-Tak Leung Presenter: Chao-Han Tsai (Some slides adapted from the Google’s series lectures)
Geethanjali College Of Engineering and Technology Cheeryal( V), Keesara ( M), Ranga Reddy District. I I Internal Guide Mrs.CH.V.Anupama Assistant Professor.
Cost-Effective Video Streaming Techniques Kien A. Hua School of EE & Computer Science University of Central Florida Orlando, FL U.S.A.
Multimedia Systems Operating System Presentation On
An example of peer-to-peer application
The Impact of Replacement Granularity on Video Caching
Video On Demand.
Computer Architecture
Presentation transcript:

Challenges, Design and Analysis of a Large-scale P2P-VoD System Dr. Yingwu Zhu

P2P Overview Advantage – Reduce server load by having peers contributing their resources – Scalability, availability, robustness, … P2P services –P2P file downloading : BitTorrent and Emule –P2P live streaming : Coolstreaming and PPLive –P2P video-on-demand (P2P-VoD) : PPLive Unlike P2P streaming systems, P2P-VoD systems lacks synchrony, as peers can watch different parts of a video at the same time. Require each user to contribute a small amount of storage (usually 1GB) instead of only the playback buffer in memory as in the P2P streaming system

Challenges in P2P VoD Lack of synchrony in user behavior Content replication to provide movie data for other peers – Data availability by caching at peers – ATD: Availability to Demand Ratio – Cache replacement Transmission strategy to deliver data in real time – Satisfaction level – Playrate

PPLive-VoD Architecture Design considerations Measurement study

Architecture Major components –Peers –Content Servers : the source of content –Trackers : help peers connect to other peers to share the same content –A bootstrap server : helps peers to find a suitable tracker and to perform other bootstrapping functions –Other servers log servers : log significant events for data measurement transit servers : help peers behind NAT boxes

Design Decisions Segment sizes Content replication strategy Content Discovery Piece Selection Transmission Strategy Other issues

Segment sizes How to divide a video into multiple pieces –Small segment size gives more flexibility to schedule which piece should be uploaded from which neighboring peer. –The larger the segment size the smaller the overhead. Header overhead (checksum) Bitmap overhead (advertisement) Protocol overhead (TCP/IP header) –The video player expects a certain minimum size for a piece of content to be viewable (playback rate: frame rate). Segmentation of a movie in PPLive’s VoD syste m

Replication Strategy Goal –To make the chunks as available to the user population as possible to meet users’ viewing demand while without incurring excessive additional overheads Considerations –Whether to allow multiple movies be cached Multiple movie cache (MVC) / single movie cache (SVC) –Whether to pre-fetch or not (NO! due to short view duration) –Cache replacement: Which chunk/movie to remove when the disk cache is full (movie-based replacement) Least recently used (LRU) / least frequently used (LFU) Weight-based replacement (How complete the movie is cached locally; and ATD = c/n  from tracker) Reduce sever load from 19% to 11-7%

Content Discovery Content advertising and look-up methods –Trackers keep track of which peers replicate a given movie As soon as a user starts watching a movie, the peer informs its tracker that it is replicating that movie. Also inform tracker of content removal When a peer wants to start watching movie, it goes to the tracker to find out which other peers have that movie. –Gossip method Discovering where chunks are is by the gossiping chunk bitmap. This cuts down on the reliance on the tracker, and makes the system more robust. –DHT Used to automatically assign movies to trackers to achieve some level of load balancing.

Piece Selection Which piece to download first –Sequential : select the piece that is closest to what is needed for the video playback First priority –Rarest first : selecting the rarest piece helps speeding up the spread of pieces, hence indirectly helps streaming quality. Second priority –Anchor-based : when a user tries to jump to a particular location in the movie, if the piece for that location is missing then the closest anchor point is used instead. Currently not used User do not jump much, 1.8 times/movie Optimizing transmission alg., buffering time after a jump is satisfactory

Transmission Strategy Goals –Maximize downloading rate –Minimize the overheads due to duplicate transmissions and requests Strategies (by levels of aggressiveness) –A peer can send a request for the same content to multiple neighbors simultaneously –A peer can request for different content from multiple neighbors simultaneously (PPLive’s choice) For playback rate of 500Kbps, 8-20 neighbors is the best. More than this number can still improve the achieved rate, but at the expense of heavy duplication rate. –A peer can work with one neighbor at a time.

Other Design Issues NAT and firewalls –Discovering different types of NAT boxes (similar to STUN protocol) –Pacing the upload rate and request rate (avoid being labeled as attacks and blocked) Content authentication –Chunk level authentication Some pieces may be polluted and cause poor viewing experience locally at a peer. If a peer detects a chunk is bad, discard it. –Piece level authentication

What to measure User behavior –includes the user arrival patterns, and how long they stayed watching a movie –used to improve the design of the replication strategy External performance metrics –includes user satisfaction and server load –used to measure the system performance perceived externally Health of replication –measures how well a P2P-VoD system is replicating a content –Used to infer how well the important component of the system is doing

User Behavior MVR (movie viewing record)

User Satisfaction Simple fluency –measures the fraction of time a user spends watching a movie out of the total time he spends waiting for and watching that movie R(m, i) : the set of all MVRs for a given movie m and user i n(m, i) : the number of MVRs in R(m, i) r : one of the MVRs in R(m, i)

User Satisfaction (cont’) User satisfaction index –considers the quality of the delivery of the content r(Q) : a grade for the average viewing quality for an MVR r, using infer/estimate

Health of Replication Three levels –Movie level The number of active peers who have advertised storing chunks of that movie The information that the tracker collects about movies –Weighted movie level Considers the fraction of chunks a peer has in computing the index –Chunk bitmap level (chunk vector) The number of copies each chunk of a movie is stored by peers Various other statistics can be computed; the average number of copies of a chunk in a movie, the minimum number of chunks, the variance of the number of chunks.

Statistics on video objects Overall statistics of the three typical movies

Statistics on user behavior (1) Interarrival time distribution of viewers

Statistics on user behavior (2) View duration distribution Many MVRs <10 mins Prefetching?

Statistics on user behavior (3) How long does a user stay in system? – important to data replication >=70% users stay longer than 15 mins, able to provide upload serv.

Statistics on user behavior (4) Start position distribution

Observations from last slide A large fraction of users start watching movies from beginning User jump to different positions uniformly, so anchor points for jump operations could be uniformly spaced, guide for chunk selection strategy

Health index of Movies (1) Number of peers that cahce the movie

Health index of Movies (2) Average owning ratios for different chunks (avg. over 24 hours)

What the observations imply? Many users watching movies from the beginning Many users do not finish the whole movie? Why? – Movie epilog!

Health index of Movies (3) Chunk availability and chunk demand

Health index of Movies (4) The available to demand ratios (good, >= 1)

User Satisfaction Index (1) Generating fluency index –The computation of F(m, i) is carried out by the client software. –The client software reports all MVRs and the fluency F(m, i) to the log server whenever a “stop-watching” event occurs. The STOP button is pressed Another movie/program is selected The user turns off the P2P-VoD software

User Satisfaction Index (2) The number of fluency records –A good indicator of the number of viewers of the movie

User Satisfaction Index (3) The distribution of fluency index ( =0.8 good) –Good, but need to improve buffering time!

Future works Further research in P2P-VoD systems –How to design a highly scalable P2P-VoD system to support millions of simultaneous users –How to perform dynamic movie replication, replacement, and scheduling so as reduce the workload at the content servers –How to quantify various replication strategies so as to guarantee a high health index –How to select proper chunk and piece transmission strategies so as to improve the viewing quality –How to accurately measure and quantify the user satisfaction level

Thinking What makes PPLive-VoD distinguish from BitTorrent? – From design perspectives – Similarity – Difference