Internet Video Delivery. Professor Hui Zhang

Similar documents
Page 1. Outline / Computer Networking : 1 st Generation Commercial PC/Packet Video Technologies

Πολυμεσικό Υλικό στο Internet: Συγχρονισμός, Επεξεργασία και Διακίνηση

CS640: Introduction to Computer Networks. Application Classes. Application Classes (more) 11/20/2007

Streaming (Multi)media

Chapter 7 Multimedia Networking

CS 218 F Nov 3 lecture: Streaming video/audio Adaptive encoding (eg, layered encoding) TCP friendliness. References:

Multimedia Networking

Mohammad Hossein Manshaei 1393

The Transport Layer: User Datagram Protocol

Digital Asset Management 5. Streaming multimedia

Outline. QoS routing in ad-hoc networks. Real-time traffic support. Classification of QoS approaches. QoS design choices

CSC 4900 Computer Networks: Multimedia Applications

Multimedia: video ... frame i+1

Service/company landscape include 1-1

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Networking Applications

Introduction to LAN/WAN. Application Layer 4

Multimedia Networking

Week-12 (Multimedia Networking)

Advanced Networking Technologies

MULTIMEDIA I CSC 249 APRIL 26, Multimedia Classes of Applications Services Evolution of protocols

Lecture 27 DASH (Dynamic Adaptive Streaming over HTTP)

Multimedia! 23/03/18. Part 3: Lecture 3! Content and multimedia! Internet traffic!

Part 3: Lecture 3! Content and multimedia!

Chapter 28. Multimedia

Achieving Low-Latency Streaming At Scale

Cobalt Digital Inc Galen Drive Champaign, IL USA

IMPROVING LIVE PERFORMANCE IN HTTP ADAPTIVE STREAMING SYSTEMS

Tema 0: Transmisión de Datos Multimedia

Streaming Technologies Delivering Multimedia into the Future. May 2014

4 rd class Department of Network College of IT- University of Babylon

Including location-based services, IoT, and increasing personalization... Service models and delivery architectures

irtc: Live Broadcasting

Multimedia in the Internet

CS 457 Multimedia Applications. Fall 2014

CSC 401 Data and Computer Communications Networks

Multimedia Networking

Multimedia Applications: Streaming. Hamid R. Rabiee Mostafa Salehi, Fatemeh Dabiran, Hoda Ayatollahi Spring 2011

Adaptive Video Acceleration. White Paper. 1 P a g e

BUILDING LARGE VOD LIBRARIES WITH NEXT GENERATION ON DEMAND ARCHITECTURE. Weidong Mao Comcast Fellow Office of the CTO Comcast Cable

Video Streaming and Media Session Protocols

Anatomy of a DASH Client. Ali C. Begen, Ph.D.

ADAPTIVE STREAMING. Improve Retention for Live Content. Copyright (415)

Computer Networks. Wenzhong Li. Nanjing University

Mohammad Hossein Manshaei 1393

Lecture 9: Media over IP

internet technologies and standards

SamKnows test methodology

in the Internet Andrea Bianco Telecommunication Network Group Application taxonomy

It s Not the Cost, It s the Quality! Ion Stoica Conviva Networks and UC Berkeley

How to achieve low latency audio/video streaming over IP network?

Measuring Over-the-Top Video Quality

Guaranteeing Video Quality

Content distribution networks

Multimedia Networking

Mobile Cloud Computing & Adaptive Streaming

ITEC310 Computer Networks II

Characterizing Netflix Bandwidth Consumption

Optimized Strategies for Real-Time Multimedia Communications from Mobile Devices

Important Encoder Settings for Your Live Stream

MPEG's Dynamic Adaptive Streaming over HTTP - An Enabling Standard for Internet TV. Thomas Stockhammer Qualcomm Incorporated

Chapter 2 Application Layer

Chapter 7: Multimedia Networking

Steady stream of bits 9/6/2014 5:02:53 PM. Edward Jackson

CS 528 Mobile and Ubiquitous Computing Lecture 4a: Playing Sound and Video Emmanuel Agu

Emulation of Dynamic Adaptive Streaming over HTTP with Mininet

OSI Layer OSI Name Units Implementation Description 7 Application Data PCs Network services such as file, print,

Lec 17 Multimedia Transport: RTP, TCP/HTTP and QUIC

CSCD 433/533 Advanced Networks Fall Lecture 14 RTSP and Transport Protocols/ RTP

Quality of Service. Qos Mechanisms. EECS 122: Lecture 15

Today. March 7, 2006 EECS122 Lecture 15 (AKP) 4. D(t) Scheduling Discipline. March 7, 2006 EECS122 Lecture 15 (AKP) 5

Multimedia Applications. Classification of Applications. Transport and Network Layer

UNIVERSITY OF CALGARY. Parallel HTTP for Video Streaming in Wireless Networks. Mohsen Ansari A THESIS SUBMITTED TO THE FACULTY OF GRADUATE STUDIES

Assuring Media Quality in IP Video Networks. Jim Welch IneoQuest Technologies

The Frozen Mountain irtc White Paper Series

Video Technology Crossroads What s next?

ITTC Communication Networks The University of Kansas EECS 780 Multimedia and Session Control

QoE Characterization for Video-On-Demand Services in 4G WiMAX Networks

Multimedia Networking

CONTENTS. System Requirements FAQ Webcast Functionality Webcast Functionality FAQ Appendix Page 2

Internet Networking recitation #13 HLS HTTP Live Streaming

UNIVERSITY OF OSLO Department of informatics. Investigating the limitations of video stream scheduling in the Internet. Master thesis.

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

CMSC 322 Computer Networks Applications and End-To- End

HTTP Adaptive Streaming Enhancements for Large-Scale Deployments

Webcaster Frequently Asked Questions

Octoshape. Commercial hosting not cable to home, founded 2003

Latency and Loss Requirements! Receiver-side Buffering! Dealing with Loss! Loss Recovery!

Multimedia Content. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents. Erik Wilde, UC Berkeley School of

ADAPTIVE STREAMING AND CONVERGED MANAGEMENT STRATEGY IN MULTISCREEN VIDEO SERVICE IMPLEMENTATION Duncan Potter, Goran Appelquist Edgeware AB

Scaling Internet TV Content Delivery ALEX GUTARIN DIRECTOR OF ENGINEERING, NETFLIX

INF5071 Performance in Distributed Systems. October 01, 2010

Multimedia Protocols. Foreleser: Carsten Griwodz Mai INF-3190: Multimedia Protocols

Quality of Service in Ultrabroadband models

Networked Multimedia and Internet Video. Colin Perkins

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2006

Computer Networks. Instructor: Niklas Carlsson

IxLoad Data Streaming (RTSP, RTP)

A Dynamic Adaptive Algorithm Based on HTTP Streaming Media Technology

Mul$media Streaming. Digital Audio and Video Data. Digital Audio Sampling the analog signal. Challenges for Media Streaming.

Transcription:

18-345 Internet Video Delivery Professor Hui Zhang 1

1990 2004: 1 st Generation Commercial PC/Packet Video Technologies Simple video playback, no support for rich app Not well integrated with Web browser No critical mass of compelling content over Internet No enough broadband penetration 2

2005: Beginning of Internet Video Era 100M streams first year Premium Sports Webcast on Line 3

2006 2013: Internet Video Going Prime Time 2006 2007 2008 2009 2010 2011 4

Internet Video on Multiple Devices 5

Internet Video Data-plane Video Source Screen Encoders & Video Servers CMS and Hosting Content Delivery Networks (CDN) Video Player ISP & Home Net 6

Requirements to Support Internet Video/Audio Typically sensitive to delay, but can sometimes tolerate packet loss (would cause glitches that can be concealed somewhat) Four classes of applications with different requirements - Interactive real-time Two way communication: Skype Multi-way conferencing: White house situation room, Google hangout - On-demand streaming (VOD) Long form content: Netflix, Hulu Short form content: Youtube - LIVE Broadcast: NFL, ESPN live - LIVE Linear: DirecTV online 7

Dimensions of Requirements to Consider How much signal distortion can be tolerated? - Ear is less tolerant than eye What is the range of bandwidth? - Voice: 64 Kbps, can be even lower - Video: 200Kbps, 1Mbps, 2 Mbps, 6 Mbps, 30Mbps What is the tolerance of maximum delay? - Interactive Real-Time: 100 ms 200 ms - On-demand streaming: Long form content: 10 60 seconds Short form content: 1-3 seconds - Broadcast: 5-10 seconds Need to think of delay in terms of # of RTTs 8

Audio Data Telephone system uses 8-bit samples at 8kHz: 64kbits/s. Further compression may be pointless given packet overhead. Modern compression achieves equivalent perceptual quality with about 1/10 to 1/5 of the bits. Most audio compression is performed in "blocks" of hundreds of original samples: adds latency. Audio compression is lossy: it encodes something perceptually similar but really different from the original. 9

Video Data Unlike audio, video compression is essential: - Too much data to begin with, but - Compression ratios from 50 to 500 Takes advantage of spatial, temporal, and perceptual redundancy Temporal redundancy: Each frame can be used to predict the next -> leads to data dependencies To break dependencies, we insert "I frames" or keyframes that are independently encoded. - Allows us to start playback from middle of a file Video data is highly structured Data dependency Credit: http://www.icsi.berkeley.edu/pet/gifs/mpeg_gop.gif 10

Bitrate Terminology - Information stored/transmitted per unit time - Usually measured in kbps to mbps - Ranges from 200Kbps to 30 Mbps Resolution - Number of pixels per frame - 160x120 to 1920x1080 (1080p) to 4096x2160 (4K) FPS (frames per second) - 24, 25, 30, or 60 - Higher FPS? 11

Challenges TCP/UDP/IP suite provides best-effort, no guarantees on expectation or variance of packet delay Streaming applications delay of 5 to 10 seconds is typical and has been acceptable, but performance deteriorate if links are congested Real-Time Interactive requirements on delay and its jitter have been satisfied by over-provisioning (providing plenty of bandwidth), what will happen when the load increases?... 12

First Generation: HTTP Download A simple architecture is to have the Browser request the object(s) and after their reception pass them to the player for display - No pipelining 13

First Gen: HTTP Progressive Download (2) Alternative: set up connection between server and player; player takes over Web browser requests and receives a Meta File (a file describing the object) instead of receiving the file itself; Browser launches the appropriate Player and passes it the Meta File; Player sets up a TCP connection with Web Server and downloads or streams the file 14

Meta file requests 15

Buffering Continuous Media Jitter = variation from ideal timing Media delivery must have very low jitter - Video frames every 30ms or so - Audio: ultimately samples need <1ns jitter But network packets have much more jitter that that! Solution: buffers - Fill them with best effort - Drain them via low-latency, local access 16

HTTP Progressive Download With helper application doing the download, playback can start immediately... Or after sufficient bytes are buffered Sender sends at maximum possible rate under TCP; retransmit when error is encountered; Player uses a much larger buffer to smooth delivery rate of TCP 17

Max Buffer Size File Position Streaming, Buffers and Timing "Bad": Buffer overrflows Max Buffer Duration = allowable jitter "Good" Region: smooth playback Buffer Duration Buffer Size "Bad": Buffer underflows and playback stops Buffer almost empty Time 18

Drawbacks of HTTP Progressive Download (2) HTTP connection keeps data flowing as fast as possible to user's local buffer - May download lots of extra data if you do not watch the video - TCP file transfer can use more bandwidth than necessary Mismatch between whole file transfer and stop/start/seek playback controls. - However: use file range requests to seek to video position Cannot change video quality (bit rate) to adapt to network congestion 19

2nd Generation: Real-Time Streaming This gets us around HTTP, allows a choice of UDP vs. TCP and the application layer protocol can be better tailored to Streaming; many enhancements options are possible Multimedia 20

Example: Real Time Streaming Protocol (RTSP) For user to control display: rewind, fast forward, pause, resume, etc Out-of-band protocol (uses two connections, one for control messages (Port 554) and one for media stream) RFC 2326 permits use of either TCP or UDP for the control messages connection, sometimes called the RTSP Channel As before, meta file is communicated to web browser which then launches the Player; Player sets up an RTSP connection for control messages in addition to the connection for the streaming media 21

RTSP Operation 22

RTSP Exchange Example C: SETUP rtsp://audio.example.com/xena/audio RTSP/1.0 Transport: rtp/udp; compression; port=3056; mode=play S: RTSP/1.0 200 1 OK Session 4231 C: PLAY rtsp://audio.example.com/xena/audio.en/lofi RTSP/1.0 Session: 4231 Range: npt=0 (npt = normal play time) C: PAUSE rtsp://audio.example.com/xena/audio.en/lofi RTSP/1.0 Session: 4231 Range: npt=37 C: TEARDOWN rtsp://audio.example.com/xena/audio.en/lofi RTSP/1.0 Session: 4231 S: 200 3 OK 23

RTSP Media Stream Stateful Server keeps track of client's state Client issues Play, Pause,..., Close Steady stream of packets - UDP - lower latency - TCP - may get through more firewalls, reliable 24

Example 2: RTMP - Real-Time Messaging Protocol Proprietary Adobe protocol Runs over TCP Manages audio, video, and other Multiplex multiple streams over TCP connection 25

Drawbacks of RTSP, RTMP Web downloads are typically cheaper than streaming services offered by CDNs and hosting providers Streaming often blocked by routers UDP itself often blocked by firewalls HTTP delivery can use ordinary proxies and caches Conclusion: rather than adapt Internet to streaming, adapt media delivery to the Internet 26

3rd Generation: HTTP Streaming Other terms for similar concepts: Adaptive Streaming, Smooth Streaming, HTTP Chunking Client-centric architecture with stateful client and stateless server - Standard server: Web servers - Standard Protocol: HTTP - Session state and logic maintained at server Video is broken into multiple chunks Chunks begin with keyframe so independent of other chunks A series of HTTP progressive downloads of chunks Playing chunks in sequence gives seamless video 27

Adaptive Bit Rate with HTTP Streaming Encode video at different levels of quality/bandwidth Client can adapt by requesting different sized chunks Chunks of different bit rates must be synchronized - All encodings have the same chunk boundaries and all chunks start with key frames, so you can make smooth splices to chunks of higher or lower bit rates 28

HTTP Chunking Protocol Client HTTP Adaptive Player HTTP GET HTTP GET A1 B2 Web browser HTTP TCP A1 A1 A2 B1 Cache Server B1 B2 Web server HTTP TCP A1 A2 B1 B2 Web server 29

Reasons for Wide Adoption Client-driven control enables server/cdn switch Client CDN Infrastructure HTTP Adaptive Player A1 A1 A2 B1 Cache B1 B2 A1 B1 A2 B2 Web browser HTTP TCP Web server HTTP TCP Web server Middlebox/firewall penetration Reuse the CDN infrastructure 30

Advantages of HTTP Streaming Easy to deploy: it's just HTTP, work with exsiting caches/proxies/cdn/firewall Fast startup by downloading lowest quality/smallest chunk Bitrate switching is seamless Many small files - Small with respect to the movie size - Large with respect to TCP 5-10 seconds of 1Mbps 3Mbps 0.5MB 4MB per chunk 31

Example of HTTP Streaming Protocols Apple HLS: HTTP Live Streaming Microsoft IIS Smooth Streaming: part of Silverlight Adobe: Flash Dynamic Streaming DASH: Dynamic Adaptive Streaming over HTTP 32

Terms and Definitions of Adaptive HTTP Streaming Need - Media Presentation Description (MDP) which provides metadata For requesting (GET request) media segments For rate adaptation purpose - Segment which may include media data or metadata to decode Use DASH an example in the few slides 33

Example: DASH Client Thomas Stockhammer, Qualcomm, DASH Design Principles and Standards, Presentation at MMSys 2011 34

Meta Data DASH uses MPD (Media Presentation Descriptor) and Index Information as metadata for DASH Access Client Initialization and Media Segments for Media Engine - Reuse of existing container format Source: Stockhammer, Qualcomm, DASH Design Principles and Standards, Presentation at MMSys 2011 35

Media Presentation Data Model MDP - description of accessible segments and corresponding timing Source: Stockhammer, Qualcomm, DASH Design Principles and Standards, Presentation at MMSys 2011 36

Example of HLS Meta Data 37

Concluding Remarks NOT all contents are the same Video is fundamentally different from transaction traffic We are at the very beginning of Internet video revolution video is more than 60% Internet traffic today, more video will be consumed via Internet (moving away from cable, over-the-air broadcast, satellite) video will be more than 90% Internet traffic in 2-3 years What is next? Premium video on big screens zero tolerance for poor quality: 4K + 3D video Mobile video Technical challenges Quality, scalability, mobility, security, usability 38