Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 7: Video Streaming (II) 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI.

Similar presentations


Presentation on theme: "Lecture 7: Video Streaming (II) 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI."— Presentation transcript:

1 Lecture 7: Video Streaming (II) 2-1

2 Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI 2014]  Search Provider [SIGCOMM 2013]  Cellular Networks [IMC 2012],[MOBICOM 2014]  Home [IMC 2013]  Network Measurement fundamentals:  Decision Tree (one popular machine learning tool) 2-2

3 Outline  Video Streaming:  Basic Protocols & Tutorials.  Measurement studies:  Impact of video quality on user engagement [SIGCOMM2011]  Structure of Internet Video Quality Problems in the Wild [CoNEXT2013]  Predicative Models  Predictive Model of Quality of Experience [SIGCOMM2013]  Impact of cellular network dynamics on video quality [SIGMETRICS2014] 2-3

4 Flash: Enabling Technology For Phase 2 Growth 2005-2011  Client-side: Flash being the de-facto platform  Works in all browsers  Works across OSes  RTMP being the protocol  Maturing CDN technologies to support streaming

5 What is Flash?  Browser plugin developed by Macromedia (acquired by Adobe in 2005)  A programming environment that is independent of browser types and OSes  Rich interactive features and seamless browser integration  desktop application- like features  Flash Player 9.0 + ActionScript 3.0 introduced in 2006 brought a new virtual machine and a just-in- time compiler with 10x performance improvements enabling a wave of more sophisticated and interactive video and web applications  Support for video  Rendering, decoding, introduced H.264 in 2007  Streaming (RTMP),  Content protection (RTMPE, tokenization)  More than 95% penetration on PCs

6 2010: Apps and Multi-Devices  Rise of apps and the the slow decline of Flash as the universal video platform  iPhone was launched on June 29 th, 2007 without support for Flash  iPad was launched on April 3 rd, 2010 also without support for Flash  Adobe announced removing support for Flash on Android on June 27 th, 2012 (almost exactly 5 years after iPhone launched)

7 2011 – Present  Four separate screens  PC  Phone  Tablet  TV: connected directly to Internet or via other devices (e.g. Roku, Xbox, PlayStation, AppleTV)  Different user behaviors and video applications for different screens  Fragmented playback software environment  Apps on mobile and tablet devices (iOS, Android)  Apps on game consoles and connected TVs (Xbox, PS3, Roku, AppleTV, Samsung TV, LG TV, etc.)  Both Flash and Silverlight on PCs

8 Internet Video Requirements  Smooth/continuous playback  Elasticity to startup delay: need to think in terms of RTTs  Elasticity to throughput  Multiple encodings: 200Kbps, 1Mbps, 2 Mbps, 6 Mbps, 30Mbps  Multiple classes of applications with different requirements DelayBandwidthExamples 2, N-way conference < 200 ms4 kbps audio only, 200 kbps – 5 Mbps video Skype, Google hangout, Polycom, Cisco Short form VoD< 1-5s300 kbps – 2 Mbps & higherYoutube Long form VoD< 5-30s500 kbps – 6 Mbps & higherNetflix, Hulu, Qiyi, HBOGO Live Broadcast< 5-10s500 kbps – 6 Mbps & higherWatchESPN, MLB Linear Channel< 60s500 kbps – 6 Mbps & higherDirectTV Live

9 Playout Buffer, Delay, Smooth Playback Time Max Buffer Duration = allowable jitter File Position Max Buffer Size Smooth Playback Time Buffer almost empty "Good" Region: smooth playback "Bad": Buffer underflows and playback stops "Bad": Buffer overrflows Buffer Duration Buffer Size

10 3rd Generation: HTTP Streaming  Key observations: rather than adapt Internet to streaming, adapt media delivery to the Internet  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 client  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

11 Adaptive Multi-Bit Rate with HTTP Streaming  Encode video at different levels of quality/bandwidth  Client can adapt to different bit rates within a single session 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

12 HTTP Chunking Protocol HTTP Adaptive Player Web browser Web server HTTP TCP … HTTP TCP … A1A1 A1A1 A2A2 B1B1 B2B2 A1A1 B1B1 Cache Client Web server … … A1A1 A2A2 B1B1 B2B2 HTTP GET A 1 Server B2B2 HTTP GET B 2

13 Reasons for Wide Adoption HTTP Adaptive Player Web browser Web server HTTP TCP … HTTP TCP … A1A1 A1A1 A2A2 B1B1 B2B2 B1B1 Cache Client Web server … … A1A1 A2A2 B1B1 B2B2 CDN Infrastructure Reuse the CDN infrastructure Client-driven control enables server/CDN switch Middlebox/firewa ll penetration

14 Example of HTTP Streaming Protocols  Apple HLS: HTTP Live Streaming  Microsoft IIS Smooth Streaming: part of Silverlight  Adobe HDS: HTTP Dynamic Streaming  DASH: Dynamic Adaptive Streaming over HTTP

15 Smooth Streaming IIS Server with Smooth Streaming Extension CharlieBitMe_ 10Mbps.MP4 Mezzanine file 5Mbps.MP 4 Encoders 1Mbp s.MP4 500500 500500.ISMC.ISM Server & Client Manifest files Fetch Client Manifest File HTTP GET http://video.foo.com/CharlieBiteMe.ism/Qu alityLevels(500000)/Fragments(video=0) HTTP GET http://video.foo.com/CharlieBiteMe.ism/Quality Levels(1000000)/Fragments(video=300000)

16 HTTP Live Streaming (HLS) CharlieBitMe_ 10Mbps.MP4 Mezzanine file Encoders 5Mbps.MP 4 1Mbp s.MP4 500500 500500 Stream Segmente rs Per-bitrate.ts media segment files & playlists.m3u8 Master Playlist Web Server Fetch master play list HTTP GET http://media.example.com/segment0.ts Fetch bitrate specific playlist

17 HTTP Dynamic Streaming (HDS) CharlieBitMe_ 10Mbps.MP4 Mezzanine file Encoders 5Mbps.MP 4 1Mbp s.MP4 500500 500500 f4f Packager Per-bitrate.f4f segment &.f4m manifest files.f4m Apache with Adobe HTTP Origin module HTTP GET http://www.example.com/ media/CharlieBitMe.f4m HTTP GET http://www.example.com/media/http_d ynamic_StreamingSeg1-Frag1

18 What We Have Learned So Far? (1)  The detour to Web Internet has a key positive legacy  HTTP chunk will be the new Datagram for Internet video  HTTP chunk switches are the new switches/CDN servers  Many practical problems solved for HTTP after years of evolution  Middle-box support, authentication, firewall penetration, anycast 18 1990 Internet Web Internet Video & Web Internet

19 What Have We Learned So Far (2) ?  No universal QoS support inside the network  CDN a key architectural component to optimize performance  DNS-based names are standard control service access interface  HTTP is standard data plane plane protocol

20 What We Have Learned So Far (3)? 750 Kbps 1.2 Mbps CDNISP GEODevice 750 Kbps 1.2 Mbps 3 Mbps  Adaptive multi-bit-rate video key to address diversity

21 Objective Score (e.g., Peak Signal to Noise Ratio) Subjective Scores (e.g., Mean Opinion Score) Traditional Video Quality Assessment S.R. Gulliver and G. Ghinea. Defining user perception of distributed multimedia quality. ACM TOMCCAP 2006. W. Wu et al. Quality of experience in distributed interactive multimedia environments: toward a theoretical framework. In ACM Multimedia 2009

22 Objective Scores PSNR Join Time, Avg. bitrate, … Subjective Scores MOS Engagement measures (e.g., Fraction of video viewed) Internet video quality

23 “Binned” rank correlation  Traditional correlation: Pearson  Assumes linear relationship + Gaussian noise  Use rank correlation to avoid this  Kendall (ideal) but expensive  Spearman pretty good in practice  Use binning to avoid impact of “samplers”

24 Information gain background Nice reference: http://www.autonlab.org/tutorials/ Entropy of a random variable: X P(X) A 0.7 B 0.1 C 0.1 D 0.1 X P(X) A 0.15 B 0.25 C 0.25 D 0.25 “high” “low” Conditional Entropy X Y A L B M B N X Y A L A M B N B O “high” “low” Information Gain

25 Why is information gain useful?  Makes no assumption about “nature” of relationship (e.g., monotone, inc/dec)  Just exposes that there is some relation  Commonly used in feature selection  Very useful to uncover hidden relationships between variables!

26 Why naïve regression will not work  Not all relationships are “linear”  E.g., average bitrate vs engagement?  Use only after confirming roughly linear relationship


Download ppt "Lecture 7: Video Streaming (II) 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI."

Similar presentations


Ads by Google