CS 414 - Spring 2011 CS 414 – Multimedia Systems Design Lecture 37 – P2P Streaming and P2P Applications/PPLive Klara Nahrstedt Spring 2011.

Slides:



Advertisements
Similar presentations
Peer-to-Peer Systems CNT
Advertisements

NUS.SOC.CS Roger Zimmermann (based in part on slides by Ooi Wei Tsang) Peer-to-Peer Streaming.
Clayton Sullivan PEER-TO-PEER NETWORKS. INTRODUCTION What is a Peer-To-Peer Network A Peer Application Overlay Network Network Architecture and System.
Playback delay in p2p streaming systems with random packet forwarding Viktoria Fodor and Ilias Chatzidrossos Laboratory for Communication Networks School.
PPL IVE : A M EASUREMENT S TUDY OF P2P IPTV S YSTEM Sergio Chacon.
Cooperative Overlay Networking for Streaming Media Content Feng Wang 1, Jiangchuan Liu 1, Kui Wu 2 1 School of Computing Science, Simon Fraser University.
29.1 Chapter 29 Multimedia Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Kangaroo: Video Seeking in P2P Systems Xiaoyuan Yang †, Minas Gjoka ¶, Parminder Chhabra †, Athina Markopoulou ¶, Pablo Rodriguez † † Telefonica Research.
1 Nazanin Magharei, Reza Rejaie University of Oregon INFOCOM 2007 PRIME: P2P Receiver-drIven MEsh based Streaming.
Scalable On-demand Media Streaming with Packet Loss Recovery Anirban Mahanti Department of Computer Science University of Calgary Calgary, AB T2N 1N4 Canada.
MMCN 19 Jan 2005 Ooi Wei Tsang Peer-to-Peer Streaming.
Suphakit Awiphan, Takeshi Muto, Yu Wang, Zhou Su, Jiro Katto
Alex Bikfalvi Universidad Carlos III de Madrid  IMDEA Networks Institute.
Networks & Multimedia Amit Pande, Post-doctoral fellow, Department of Computer Science, University of California Davis
A Peer-to-Peer On-Demand Streaming Service and Its Performance Evaluation Presenter: Nera Liu Author: Yang Guo, Kyoungwon Suh, Jim Kurose and Don Towsley.
Streaming Video over the Internet: Approaches and Directions Dapeng Wu, Yiwei Thomas Hou et al. Presented by: Abhishek Gupta
Opportunities and Challenges of Peer-to-Peer Internet Video Broadcast J. Liu, S. G. Rao, B. Li and H. Zhang Proc. of The IEEE, 2008 Presented by: Yan Ding.
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.
CoolStreaming/DONet: A Data- driven Overlay Network for Peer- to-Peer Live Media Streaming INFOCOM 2005 Xinyan Zhang, Jiangchuan Liu, Bo Li, and Tak- Shing.
Issues in Offering Live P2P Streaming Service to Residential Users Nazanin Magharei, *Yang Guo, and Reza Rejaie Dept. of Computer and Information Science.
1March -05 Jiangchuan Liu with Xinyan Zhang, Bo Li, and T.S.P.Yum Infocom 2005 CoolStreaming/DONet: A Data-Driven Overlay Network for Peer-to-Peer Live.
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.
An Overlay Multicast Infrastructure for Live/Stored Video Streaming Visual Communication Laboratory Department of Computer Science National Tsing Hua University.
6/28/2015Reza Rejaie INFOCOM 07 1 Nazanin Magharei, Reza Rejaie University of Oregon PRIME: P2P Receiver-drIven MEsh based.
Department of Computer Science & Engineering The Chinese University of Hong Kong Constructing Robust and Resilient Framework for Cooperative Video Streaming.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 24 – P2P Streaming Klara Nahrstedt Ramsés Morales.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 40 – P2P Streaming (Part 4) Klara Nahrstedt.
Slide courtesy: Dr. Sumi Helal & Dr. Choonhwa Lee at University of Florida, USA Prof. Darshan Purandare at University of Central Florida, USA Dr. Meng.
1 NETE4631 Communicating with the Cloud and Using Media and Streaming Lecture Notes #14.
Can Internet Video-on-Demand Be Profitable? SIGCOMM 2007 Cheng Huang (Microsoft Research), Jin Li (Microsoft Research), Keith W. Ross (Polytechnic University)
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 4) Klara Nahrstedt Spring 2011.
Exploring VoD in P2P Swarming Systems By Siddhartha Annapureddy, Saikat Guha, Christos Gkantsidis, Dinan Gunawardena, Pablo Rodriguez Presented by Svetlana.
Delay-Aware Push/Pull Protocols for Live Video Streaming in P2P Systems Alessandro Russo, Renato Lo Cigno DISI – University of Trento, Italy
Peer-to-Peer Networks (3) - IPTV Hongli Luo CEIT, IPFW.
Network Technologies essentials Week 9: Distributed file sharing & multimedia Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall,
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 38 – P2P Streaming (Part 2) Klara Nahrstedt.
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.
CPSC 441: Multimedia Networking1 Outline r Scalable Streaming Techniques r Content Distribution Networks.
Resilient Peer-to-Peer Streaming Presented by: Yun Teng.
Department of Information Engineering The Chinese University of Hong Kong A Framework for Monitoring and Measuring a Large-Scale Distributed System in.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Chord: A Scalable Peer-to-peer Lookup Protocol for Internet Applications Xiaozhou Li COS 461: Computer Networks (precept 04/06/12) Princeton University.
ACM NOSSDAV 2007, June 5, 2007 IPTV Experiments and Lessons Learned Panelist: Klara Nahrstedt Panel: Large Scale Peer-to-Peer Streaming & IPTV Technologies.
HUAWEI TECHNOLOGIES CO., LTD. Page 1 Survey of P2P Streaming HUAWEI TECHNOLOGIES CO., LTD. Ning Zong, Johnson Jiang.
PPSP Peer Protocol draft-gu-ppsp-peer-protocol PPSP WG IETF 82 Taipei Rui Cruz (presenter) Yingjie Gu, Jinwei Xia, Mário Nunes, David Bryan, João Taveira.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 41 – Final Exam Review Session Klara Nahrstedt Spring 2012.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 28 Multimedia.
PRIME: P2P Receiver-drIven MEsh based Streaming Nazanin Magharei, Reza Rejaie University of Oregon Presenter Jungsik Yoon.
Presenter: Kuei-Yu Hsu Advisor: Dr. Kai-Wei Ke 2014/6/9 Implementation of a Peer-to-Peer Real-time streaming media system.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 40 – Final Exam Review Session Klara Nahrstedt Spring 2010.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 40 – Final Exam Review Session Klara Nahrstedt Spring 2011.
A Simple Model for Analyzing P2P Streaming Protocols Zhou Yipeng Chiu DahMing John, C.S. Lui The Chinese University of Hong Kong.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 37 – P2P Applications/PPLive Klara Nahrstedt Spring 2009.
Algorithms and Techniques in Structured Scalable Peer-to-Peer Networks
SHADOWSTREAM: PERFORMANCE EVALUATION AS A CAPABILITY IN PRODUCTION INTERNET LIVE STREAM NETWORK ACM SIGCOMM CING-YU CHU.
Video Quality Assessment and Comparative Evaluation of Peer-to-Peer Video Streaming Systems Aditya Mavlankar Pierpaolo Baccichet Bernd Girod Stanford University.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 37 – Introduction to P2P (Part 1) Klara Nahrstedt.
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.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 37 – Introduction to P2P (Part 1) Klara Nahrstedt.
Inside the New Coolstreaming: Principles, Measurements and Performance Implications Bo Li, Susu Xie, Yang Qu, Gabriel Y. Keung, Chuang Lin, Jiangchuan.
Accelerating Peer-to-Peer Networks for Video Streaming
Streaming Audio and Video, Content Delivery
Klara Nahrstedt Spring 2012
CS 414 – Multimedia Systems Design Lecture 31 – Media Server (Part 5)
Klara Nahrstedt Spring 2009
Presentation transcript:

CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 37 – P2P Streaming and P2P Applications/PPLive Klara Nahrstedt Spring 2011

Administrative MP3 preview is on April 27  Sign-up sheet for APRIL 27 demonstration will be provided in class on April 27  Preview demonstrations on April 27, 7-9pm in 216 SC CS Spring 2011

Administration Final MP3 delivery on April 29  Demonstration time slots on April 29 will be allocated on Thursday, April 28 (TA will to each group) Two demonstration intervals  students not in Google competition – demos 2-4pm in 216 SC,  students in Google competition – demos 5-7pm in 216 SC Pizza and Google Prizes Announcement at 7:15pm, April 29 (room 3403 SC) Homework 2 will be out on Wednesday, April 27  Deadline, May 4, 11:59pm – submission via compass CS Spring 2011

Outline P2P Streaming  Single tree (previous lecture)  Multiple trees  Mesh-based streaming Case study: PPLive CS Spring 2011

Why P2P? Every node is both a server and client  Easier to deploy applications at endpoints  No need to build and maintain expensive infrastructure  Potential for both performance improvement and additional robustness  Additional clients create additional servers for scalability CS Spring 2011

Multiple Trees Challenge: a peer must be internal node in only one tree, leaf in the rest CS Spring Source Are nodes 1, 2, 3 receiving the same data multiple times?

Multiple Description Coding (MDC) Each description can be independently decoded (only one needed to reproduce audio/video)  More descriptions received result in higher quality CS Spring 2011 codercoder Frames Packets for description 0 Packets for description n … 3n3n 2n2n 1n1n

Streaming in multiple-trees using MDC Assume odd-bit/even-bit encoding -- description 0 derived from frame’s odd- bits, description 1 derived from frame’s even-bits CS Spring (using RTP/UDP)

Multiple-Tree Issues Complex procedure to locate a potential- parent peer with spare out-degree  Degraded quality until a parent found in every tree Static mapping in trees, instead of choosing parents based on their (and my) bandwidth  An internal node can be a bottleneck CS Spring 2011

Mesh-based streaming Basic idea  Report to peers the packets that you have  Ask peers for the packets that you are missing  Adjust connections depending on in/out bandwidth CS Spring 2011 Description 0/1/2 Description 1 Description 0 Description 1,2 Description 0,1,2 (Nodes are randomly connected to their peers, instead of statically) Description 0/1/2 (mesh uses MDC)

Content delivery CS Spring Description 0Description 2 Description 1 (1) Diffusion Phase ( ) (2) Swarming Phase ( ) (Levels determined by hops to source)

Diffusion Phase As a new segment (set of packets) of length L becomes available at source every L seconds  Level 1 nodes pull data units from source, then level 2 pulls from level 1, etc.  Recall that reporting and pulling are performed periodically CS Spring … Segment 0 Segment 1 … … Have segment 0 3 Send me Segment (during period 0) 3 Have segment (during period 1) Send me Segment 0 (drawings follow previous example)

Swarming Phase At the end of the diffusion all nodes have at least one data unit of the segment Pull missing data units from (swarm-parent) peers located at same or lower level Can node 9 pull new data units from node 16?  Node 9 cannot pull data in a single swarm interval CS Spring 2011 (drawings follow previous example)

Purdue Stan1 Stan2 Berk2 Overlay Tree Stanford Berkeley Dumb Network Gatech Berk1 Stan1 Stan2 Berk1 Berk2 Source: Purdue Single Tree/Multi-tree/Mesh use Overlay P2P Multicast Source: Sanjay Rao’s lecture from Purdue CS Spring 2011

Overlay Performance Even a well-designed overlay cannot be as efficient as IP Mulitcast But performance penalty can be kept low Trade-off some performance for other benefits Increased Delay Dumb Network Gatech Duplicate Packets: Bandwidth Wastage Stanford Berkeley Source: Sanjay Rao’s lecture from Purdue CS Spring 2011

Traffic Distribution (2006) and New Trends (P4P) CS Spring 2011 P4P – ISPs and P2P Traffic Work together Source:

P2P Applications Many P2P applications since the 1990s  File sharing Napster, Gnutella, KaZaa, BitTorrent  Internet telephony Skype  Internet television PPLive, CoolStreaming CS Spring 2011

PPLive Current Viewers during Olympics 2008 CS Spring 2011

Case Study: PPLive Very popular P2P IPTV application  From Huazhong U. of Science and Technology, China  Free for viewers  Over 100,000 simultaneous viewers and 400,00 viewers daily  Over 200+ channels  Windows Media Video and Real Video format CS Spring 2011

PPLive Overview CS Spring 2011

PPLive Design Characteristics Gossip-based protocols  Peer management  Channel discovery  TCP used for signaling Data-driven p2p streaming  TCP used for video streaming  Peer client contacts multiple active peers to download media content of the channel  Cached contents can be uploaded from a client peer to other peers watching the same channel  Received video chunks are reassembled in order and buffered in queue of PPLive TV Engine (local streaming) CS Spring 2011

PPLive Architecture 1. Contact channel server for available channels 2. Retrieve list of peers watching selected channel 3. Find active peers on channel to share video chunks Source: “Insights into PPLive: A Measurement Study of a Large-Scale P2P IPTV System” by Hei et al. CS Spring 2011

P2P Streaming Process CS Spring 2011 TV Engine – responsible for downloading video chunks from PPLive network streaming downloaded video to local media player

Download and Upload Video Rate over Time at CCTV3 Campus CS Spring 2011

Evolution of active video peer connections on CCTV3 Network CS Spring 2011

PPLive Channel Size Analysis CS Spring 2011

Conclusion Couple of Lessons Learned  Structure of PPLive overlay is close to random  PPLive peers slightly peer to have closer neighbors and peers can attend simultaneous overlays Improves streaming quality  Geometrically distributed session lenghts of nodes can be used to accurately model node arrival and departure Major differences between PPLive overlays and P2P file-sharing overlays!!! CS Spring 2011

Background Large-scale video broadcast over Internet (Internet TV such as PPLIve, YouTube)  Real-time video streaming  Need to support large numbers of viewers AOL Live 8 broadcast peaked at 175,000 (July 2005) CBS NCAA broadcast peaked at 268,000 (March 2006) NBC Olympic Games in 2008 served total 75.5 million streams BBC served almost 40 million streams of Olympic Games 2008 (  Very high data rate TV quality video encoded with MPEG-4 would require 1.5 Tbps aggregate capacity for 100 million viewers NFL Superbowl 2007 had 93 million viewers in the U.S. (Nielsen Media Research) CS Spring 2011

Reading “ Opportunities and Challenges of Peer-to-Peer Internet Video Broadcast” by Liu et al. “Insights into PPLive: A Measurement Study of a Large- Scale P2P IPTV System” by Hei et al. “Mapping the PPLive Network: Studying the Impacts of Media Streaming on P2P Overlays” by Vu et al. Some lecture material borrowed from the following sources  Sanjay Rao’s lecture on P2P multicast in his ECE 695B course at Purdue  “Insights into PPLive: A Measurement Study of a Large-Scale P2P IPTV System” by Hei et al.  “Mapping the PPLive Network: Studying the Impacts of Media Streaming on P2P Overlays” by Vu et al. CS Spring 2011