Lecture 6: Video Streaming 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI 2014]

Slides:



Advertisements
Similar presentations
DNS: Domain Name System CMPSCI 491G: Computer Networking Lab V. Arun Slides adapted from Liebeherr & Zarki, Kurose & Ross, Kermani.
Advertisements

DNS – Domain Name system Converting domain names to IP addresses since 1983.
 This Class  Chapter 9  Next Class  Wrap up this semester  Demo/discuss programming assignments  Review what we have learned  Questionnaire/Feedback.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Term B10.
1 EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Domain Name System (or Service) (DNS) Computer Networks Computer Networks Spring 2012 Spring 2012.
EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
2: Application Layer1 FTP, SMTP and DNS. 2: Application Layer2 FTP: separate control, data connections r FTP client contacts FTP server at port 21, specifying.
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts, routers: –IP address (32 bit) - used for addressing datagrams –“name”, e.g., gaia.cs.umass.edu.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
Application Layer session 1 TELE3118: Network Technologies Week 12: DNS Some slides have been taken from: r Computer Networking: A Top Down Approach.
CPSC 441: DNS1 Instructor: Anirban Mahanti Office: ICT Class Location: ICT 121 Lectures: MWF 12:00 – 12:50 Notes derived.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Name Resolution and DNS. Domain names and IP addresses r People prefer to use easy-to-remember names instead of IP addresses r Domain names are alphanumeric.
Chapter 2 Application Layer
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks.
Cours du 22 novembre. Application Layer 2-2 Couche application DNS.
CS 4396 Computer Networks Lab
1 Domain Name System (DNS). 2 DNS: Domain Name System Internet hosts: – IP address (32 bit) - used for addressing datagrams – “name”, e.g.,
DNS & P2P A PPLICATIONS د. عـــادل يوسف أبو القاسم.
Domain Name System (DNS)
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 10 Omar Meqdadi Department of Computer Science and Software Engineering University.
DNS. 2 DNS: Domain Name System DNS services Hostname to IP address translation Host aliasing – Canonical and alias names Mail server aliasing Load distribution.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail  SMTP,
21-1 Last time □ Finish HTTP □ FTP This time □ SMTP ( ) □ DNS.
CS 471/571 Domain Name Server Slides from Kurose and Ross.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
DNS: Domain Name System
Review: –Which protocol is used to move messages around in the Internet? –Describe how a message is moved from the sender’s UA to the receiver’s.
1 DNS: Domain Name System People: many identifiers: m SSN, name, Passport # Internet hosts, routers: m IP address (32 bit) - used for addressing datagrams.
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April A note on the use.
1 Application Layer Lecture 6 Imran Ahmed University of Management & Technology.
DNS: Domain Name System People: many identifiers: – SSN, name, Passport # Internet hosts, routers: – IP address (32 bit) - used for addressing datagrams.
Lecture 6: Video Streaming 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI 2014]
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSE 592 INTERNET CENSORSHIP (FALL 2015) LECTURE 04 PHILLIPA GILL, STONY BROOK UNIVERSITY ACKS: SLIDES BASED ON MATERIAL FROM NICK WEAVER’S PRESENTATION.
2: Application Layer1 DNS: Domain Name System People have many identifiers: SSN, name, passport number Internet hosts, routers have identifiers, too: IP.
CPSC 441: DNS 1. DNS: Domain Name System Internet hosts: m IP address (32 bit) - used for addressing datagrams m “name”, e.g., - used by.
CS 3830 Day 10 Introduction 1-1. Announcements r Quiz #2 this Friday r Program 2 posted yesterday 2: Application Layer 2.
Lecture 5: Web Continued 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI 2014]
FTP, Mail and DNS protocols
1 EEC-484/584 Computer Networks Lecture 5 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer Networking book.
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007.
Lecture 7: Video Streaming (II) 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser types [NSDI.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail  SMTP,
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Lecture 3: Web Continued Application Layer 2-1. Outline  Network basics:  HTTP protocols  Studies on HTTP performance from different views:  Browser.
1. Internet hosts:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., ww.yahoo.com - used by humans DNS: provides translation between.
Application Layer, 2.5 DNS 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.
Important r On Friday, could you ask students to please me their groups (one per group) for Project 2 so we can assign IP addresses. I’ll send.
CSEN 404 Application Layer II Amr El Mougy Lamia Al Badrawy.
Spring 2006 CPE : Application Layer_DNS 1 Special Topics in Computer Engineering Application layer: Domain Name System Some of these Slides are.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
2: Application Layer 1 Some network apps r r Web r Instant messaging r Remote login r P2P file sharing r Multi-user network games r Streaming stored.
Introduction to Networks
Session 6 INST 346 Technologies, Infrastructure and Architecture
Chapter 9: Domain Name Servers
Introduction to Communication Networks
2017 session 1 TELE3118: Network Technologies Week 12: DNS and CDNs
Chapter 7: Application layer
Cookies, Web Cache & DNS Dr. Adil Yousif.
Slides have been adapted from:
DNS: Domain Name System
FTP, SMTP and DNS 2: Application Layer.
Chapter 2 Application Layer
Lecture 3 – Chapter 2 CIS 5617, Fall 2019 Anduo Wang
Presentation transcript:

Lecture 6: Video Streaming 2-1

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

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 [IMC2013]  Predicative Models  Predictive Model of Quality of Experience [SIGCOMM2013]  Impact of cellular network dynamics on video quality [SIGMETRICS2014] 2-3

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-4

Application Layer 2-5 DNS: domain name system people: many identifiers:  SSN, name, passport # Internet hosts, routers:  IP address (32 bit) - used for addressing datagrams  “name”, e.g., - used by humans Q: how to map between IP address and name, and vice versa ? Domain Name System:  distributed database implemented in hierarchy of many name servers  application-layer protocol: hosts, name servers communicate to resolve names (address/name translation)  note: core Internet function, implemented as application- layer protocol  complexity at network’s “edge”

Application Layer 2-6 DNS: services, structure why not centralize DNS?  single point of failure  traffic volume  distant centralized database  maintenance DNS services  hostname to IP address translation  host aliasing  canonical, alias names  mail server aliasing  load distribution  replicated Web servers: many IP addresses correspond to one name A: doesn’t scale!

Application Layer 2-7 Root DNS Servers com DNS servers org DNS serversedu DNS servers poly.edu DNS servers umass.edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers DNS: a distributed, hierarchical database client wants IP for 1 st approx:  client queries root server to find com DNS server  client queries.com DNS server to get amazon.com DNS server  client queries amazon.com DNS server to get IP address for … …

Application Layer 2-8 DNS: root name servers  contacted by local name server that can not resolve name  root name server:  contacts authoritative name server if name mapping not known  gets mapping  returns mapping to local name server 13 root name “servers” worldwide a. Verisign, Los Angeles CA (5 other sites) b. USC-ISI Marina del Rey, CA l. ICANN Los Angeles, CA (41 other sites) e. NASA Mt View, CA f. Internet Software C. Palo Alto, CA (and 48 other sites) i. Netnod, Stockholm (37 other sites) k. RIPE London (17 other sites) m. WIDE Tokyo (5 other sites) c. Cogent, Herndon, VA (5 other sites) d. U Maryland College Park, MD h. ARL Aberdeen, MD j. Verisign, Dulles VA (69 other sites ) g. US DoD Columbus, OH (5 other sites)

Application Layer 2-9 TLD, authoritative servers top-level domain (TLD) servers:  responsible for com, org, net, edu, aero, jobs, museums, and all top-level country domains, e.g.: uk, fr, ca, jp  Network Solutions maintains servers for.com TLD  Educause for.edu TLD authoritative DNS servers:  organization’s own DNS server(s), providing authoritative hostname to IP mappings for organization’s named hosts  can be maintained by organization or service provider

Application Layer 2-10 Local DNS name server  does not strictly belong to hierarchy  each ISP (residential ISP, company, university) has one  also called “default name server”  when host makes DNS query, query is sent to its local DNS server  has local cache of recent name-to-address translation pairs (but may be out of date!)  acts as proxy, forwards query into hierarchy

Application Layer 2-11 requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server DNS name resolution example  host at cis.poly.edu wants IP address for gaia.cs.umass.edu iterated query:  contacted server replies with name of server to contact  “I don’t know this name, but ask this server”

Application Layer recursive query:  puts burden of name resolution on contacted name server  heavy load at upper levels of hierarchy? requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu authoritative DNS server dns.cs.umass.edu 8 DNS name resolution example TLD DNS server

Application Layer 2-13 DNS: caching, updating records  once (any) name server learns mapping, it caches mapping  cache entries timeout (disappear) after some time (TTL)  TLD servers typically cached in local name servers thus root name servers not often visited  cached entries may be out-of-date (best effort name-to-address translation!)  if name host changes IP address, may not be known Internet-wide until all TTLs expire  update/notify mechanisms proposed IETF standard  RFC 2136

Application Layer 2-14 DNS records DNS: distributed db storing resource records (RR) type=NS  name is domain (e.g., foo.com)  value is hostname of authoritative name server for this domain RR format: (name, value, type, ttl) type=A  name is hostname  value is IP address type=CNAME  name is alias name for some “canonical” (the real) name  is really servereast.backup2.ibm.com  value is canonical name type=MX  value is name of mailserver associated with name

Application Layer 2-15 DNS protocol, messages  query and reply messages, both with same message format msg header  identification: 16 bit # for query, reply to query uses same #  flags:  query or reply  recursion desired  recursion available  reply is authoritative identificationflags # questions questions (variable # of questions) # additional RRs # authority RRs # answer RRs answers (variable # of RRs) authority (variable # of RRs) additional info (variable # of RRs) 2 bytes

Application Layer 2-16 name, type fields for a query RRs in response to query records for authoritative servers additional “helpful” info that may be used identificationflags # questions questions (variable # of questions) # additional RRs # authority RRs # answer RRs answers (variable # of RRs) authority (variable # of RRs) additional info (variable # of RRs) DNS protocol, messages 2 bytes

Application Layer 2-17 Inserting records into DNS  example: new startup “Network Utopia”  register name networkuptopia.com at DNS registrar (e.g., Network Solutions)  provide names, IP addresses of authoritative name server (primary and secondary)  registrar inserts two RRs into.com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, , A)  create authoritative server type A record for type MX record for networkutopia.com

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 W. Wu et al. Quality of experience in distributed interactive multimedia environments: toward a theoretical framework. In ACM Multimedia 2009

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

“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”

Information gain background Nice reference: 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

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!

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

Flash: Enabling Technology For Phase 2 Growth  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

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 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

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)

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

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

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

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

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

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

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

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

Smooth Streaming IIS Server with Smooth Streaming Extension CharlieBitMe_ 10Mbps.MP4 Mezzanine file 5Mbps.MP 4 Encoders 1Mbp s.MP ISMC.ISM Server & Client Manifest files Fetch Client Manifest File HTTP GET alityLevels(500000)/Fragments(video=0) HTTP GET Levels( )/Fragments(video=300000)

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

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

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 Internet Web Internet Video & Web Internet

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

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