Week-12 (Multimedia Networking)

Similar documents
Multimedia: video ... frame i+1

Mohammad Hossein Manshaei 1393

CSC 401 Data and Computer Communications Networks

CSC 4900 Computer Networks: Multimedia Applications

Content distribution networks

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

Application-Layer Protocols Peer-to-Peer Systems, Media Streaming & Content Delivery Networks

Chapter 2 Application Layer

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

COMP6218: Content Caches. Prof Leslie Carr

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Multimedia networking: outline

Multimedia Networking

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

Chapter 7 Multimedia Networking

Mul$media Networking. #9 CDN Solu$ons Semester Ganjil 2012 PTIIK Universitas Brawijaya

Computer Networks. Wenzhong Li. Nanjing University

Chapter 7 Multimedia Networking

Tema 0: Transmisión de Datos Multimedia

Multimedia Networking

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

CS 457 Multimedia Applications. Fall 2014

Multimedia Networking

Multimedia networking: outline

Multimedia networking: outline

Networking Applications

Video Streaming and Media Session Protocols

Real-Time Control Protocol (RTCP)

Multimedia networking: outline

Chapter 5 VoIP. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March Multmedia Networking

Internet Video Delivery. Professor Hui Zhang

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

Part 3: Lecture 3! Content and multimedia!

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

Streaming (Multi)media

Multimedia

CSC 401 Data and Computer Communications Networks

Real-Time Protocol (RTP)

Objectives. CS529 Multimedia Networking. Groupwork. Introduction Outline 1/31/2013. Brief introduction to: Introduction

Multimedia Networking

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 Networking. Network Support for Multimedia Applications

Mohammad Hossein Manshaei 1393

Digital Asset Management 5. Streaming multimedia

Topic 4b: QoS Principles. Chapter 9 Multimedia Networking. Computer Networking: A Top Down Approach

Chapter 28. Multimedia

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

Multimedia Applications. Classification of Applications. Transport and Network Layer

Multimedia Networking

Network Layer Enhancements

of-service Support on the Internet

The Diffie-Hellman Key Exchange

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

Application Layer Chapter 7

Lecture 9: Media over IP

internet technologies and standards

Introduction to LAN/WAN. Application Layer 4

A common issue that affects the QoS of packetized audio is jitter. Voice data requires a constant packet interarrival rate at receivers to convert

Defining the Internet

Service/company landscape include 1-1

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

CSC Introduction to Computers and Their Applications. Background

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

ITEC310 Computer Networks II

SamKnows test methodology

Week 7: Traffic Models and QoS

Web caches (proxy server)

CSE3213 Computer Network I

55:054 Communication Networks 12/11/2008

IMPROVING LIVE PERFORMANCE IN HTTP ADAPTIVE STREAMING SYSTEMS

Chapter 2 Application Layer

Introduction to the Application Layer. Computer Networks Term B14

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

Introduction to computer networking

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

Transporting Voice by Using IP

Mul$media Networking. #10 QoS Semester Ganjil 2012 PTIIK Universitas Brawijaya

UDP Traffic Management

Chapter 7: Multimedia Networking

Chapter 4 Network Layer

CSEN 503 Introduction to Communication Networks

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

Mohammad Hossein Manshaei 1393

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

CS519: Computer Networks. Lecture 9: May 03, 2004 Media over Internet

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 4

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

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

The Transport Layer: User Datagram Protocol

Chapter 7 Multimedia Networking

CS 344/444 Computer Network Fundamentals Final Exam Solutions Spring 2007

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

ETSF10 Internet Protocols Transport Layer Protocols

Characterizing Netflix Bandwidth Consumption

CS 204: Advanced Computer Networks

CS 3516: Advanced Computer Networks

Module objectives. Integrated services. Support for real-time applications. Real-time flows and the current Internet protocols

Multimedia Applications over Packet Networks

Transcription:

Computer Networks and Applications COMP 3331/COMP 9331 Week-12 (Multimedia Networking) 1

Multimedia: audio analog audio signal sampled at constant rate telephone: 8,000 samples/sec CD music: 44,100 samples/sec each sample quantized, i.e., rounded e.g., 2 8 =256 possible quantized values each quantized value represented by bits, e.g., 8 bits for 256 values audio signal amplitude quantization error sampling rate (N sample/sec) quantized value of analog value analog signal time Multmedia Networking 7-2

Multimedia: audio example: 8,000 samples/sec, 256 quantized values: 64,000 bps receiver converts bits back to analog signal: some quality reduction example rates CD: 1.411 Mbps MP3: 96, 128, 160 kbps Internet telephony: 5.3 kbps and up audio signal amplitude quantization error sampling rate (N sample/sec) quantized value of analog value analog signal time Multmedia Networking 7-3

Multimedia: video video: sequence of images displayed at constant rate e.g. 24 images/sec digital image: array of pixels each pixel represented by bits coding: use redundancy within and between images to decrease # bits used to encode image spatial (within image) temporal (from one image to next) spatial coding example: instead of sending N values of same color (all purple), send only two values: color value (purple) and number of repeated values (N)...... frame i temporal coding example: instead of sending complete frame at i+1, send only differences from frame i frame i+1 Multmedia Networking 7-4

Multimedia: video CBR: (constant bit rate): video encoding rate fixed VBR: (variable bit rate): video encoding rate changes as amount of spatial, temporal coding changes examples: MPEG 1 (CD-ROM) 1.5 Mbps MPEG2 (DVD) 3-6 Mbps MPEG4 (often used in Internet, < 1 Mbps) spatial coding example: instead of sending N values of same color (all purple), send only two values: color value (purple) and number of repeated values (N)...... frame i temporal coding example: instead of sending complete frame at i+1, send only differences from frame i frame i+1 Multmedia Networking 7-5

Multimedia networking: 3 application types streaming, stored audio, video streaming: can begin playout before downloading entire file stored (at server): can transmit faster than audio/video will be rendered (implies storing/buffering at client) e.g., YouTube, Netflix, Hulu conversational voice/video over IP interactive nature of human-to-human conversation limits delay tolerance e.g., Skype streaming live audio, video e.g., live sporting event (futbol) Multmedia Networking 7-6

Multimedia networking: outline 7.1 multimedia networking applications 7.2 streaming stored video 7.3 voice-over-ip 7.4 protocols for real-time conversational applications 7.5 network support for multimedia Multmedia Networking 7-7

Cumulative data Streaming stored video: 1. video recorded (e.g., 30 frames/sec) 2. video sent network delay (fixed in this example) 3. video received, played out at client (30 frames/sec) time streaming: at this time, client playing out early part of video, while server still sending later part of video Multmedia Networking 7-8

Streaming stored video: challenges continuous playout constraint: once client playout begins, playback must match original timing but network delays are variable (jitter), so will need client-side buffer to match playout requirements other challenges: client interactivity: pause, fast-forward, rewind, jump through video video packets may be lost, retransmitted Multmedia Networking 7-9

Streaming stored video: revisted Cumulative data constant bit rate video transmission variable network delay client video reception buffered video constant bit rate video playout at client client playout delay time client-side buffering and playout delay: compensate for network-added delay, delay jitter Multmedia Networking 7-10

Client-side buffering, playout variable fill rate, x(t) buffer fill level, Q(t) playout rate, e.g., CBR r video server client application buffer, size B client Multmedia Networking 7-11

Client-side buffering, playout variable fill rate, x(t) buffer fill level, Q(t) playout rate, e.g., CBR r video server client application buffer, size B client 1. Initial fill of buffer until playout begins at t p 2. playout begins at t p, 3. buffer fill level varies over time as fill rate x(t) varies and playout rate r is constant Multmedia Networking 7-12

Client-side buffering, playout variable fill rate, x(t) buffer fill level, Q(t) playout rate, e.g., CBR r video server client application buffer, size B playout buffering: average fill rate (x), playout rate (r): x < r: buffer eventually empties (causing freezing of video playout until buffer again fills) x > r: buffer will not empty, provided initial playout delay is large enough to absorb variability in x(t) initial playout delay tradeoff: buffer starvation less likely with larger delay, but larger delay until user begins watching Multmedia Networking 7-13

Streaming multimedia: UDP server sends at rate appropriate for client often: send rate = encoding rate = constant rate transmission rate can be oblivious to congestion levels short playout delay (2-5 seconds) to remove network jitter Drawbacks: freezing/skipped frames, addition protocols Realtime Transport Protocol (RTP)- RFC 3550 & RTSP (RFC 2326 ) needed UDP may not go through firewalls Multmedia Networking 7-14

Streaming multimedia: HTTP multimedia file retrieved via HTTP GET send at maximum possible rate under TCP variable rate, x(t) video file TCP send buffer server TCP receive buffer client application playout buffer fill rate fluctuates due to TCP congestion control, retransmissions (in-order delivery) larger playout delay: smooth TCP delivery rate HTTP/TCP passes more easily through firewalls Multmedia Networking 7-15

Streaming multimedia: DASH DASH: Dynamic, Adaptive Streaming over HTTP server: divides video file into multiple chunks each chunk stored, encoded at different rates manifest file: provides URLs for different chunks client: periodically measures server-to-client bandwidth consulting manifest, requests one chunk at a time chooses maximum coding rate sustainable given current bandwidth can choose different coding rates at different points in time (depending on available bandwidth at time) Multmedia Networking 7-16

Streaming multimedia: DASH DASH: Dynamic, Adaptive Streaming over HTTP intelligence at client: client determines when to request chunk (so that buffer starvation, or overflow does not occur) what encoding rate to request (higher quality when more bandwidth available) where to request chunk (can request from URL server that is close to client or has high available bandwidth) Multmedia Networking 7-17

Content distribution networks challenge: how to stream content (selected from millions of videos) to hundreds of thousands of simultaneous users? option 1: single, large mega-server single point of failure point of network congestion long path to distant clients multiple copies of video sent over outgoing link.quite simply: this solution doesn t scale Multmedia Networking 7-18

Content distribution networks challenge: how to stream content (selected from millions of videos) to hundreds of thousands of simultaneous users? option 2: store/serve multiple copies of videos at multiple geographically distributed sites (CDN) enter deep: push CDN servers deep into many access networks close to users used by Akamai, 1700 locations bring home: smaller number (10 s) of larger clusters in POPs near (but not within) access networks used by Limelight Multmedia Networking 7-19

Recap: Internet structure (week1) Tier 1 ISP Tier 1 ISP Google IXP IXP IXP Regional ISP Regional ISP access ISP access ISP access ISP access ISP access ISP access ISP access ISP access ISP at center: small # of well-connected large networks tier-1 commercial ISPs (e.g., Level 3, Sprint, AT&T, NTT), national & international coverage content provider network (e.g, Google): private network that connects it data centers to Internet, often bypassing tier-1, regional ISPs Introduction 1-20

CDN: simple content access scenario Bob (client) requests video http://video.netcinema.com/6y7b23v video stored in CDN at http://kingcdn.com/netc6y&b23v 1. Bob gets URL for for video http:// video.netcinema.com/6y7b23v from netcinema.com web page 1 2 6. request video from 5 KINGCDN server, streamed via HTTP netcinema.com 3. netcinema s DNS returns to LDNS hostname a1105.kingcdn.com 3 2. resolve http://video.netcinema.com/6y7b23v via Bob s local DNS 4 4&5 new query resolved via KingCDN s authoritative DNS, which returns IP addre of KingCDN server with video netcinema s authorative DNS KingCDN.com KingCDN authoritative DNS Multmedia Networking 7-21

CDN cluster selection strategy challenge: how does CDN DNS select good CDN node to stream to client pick CDN node geographically closest to client pick CDN node with shortest delay (or min # hops) to client (CDN nodes periodically ping access ISPs, reporting results to CDN DNS) IP anycast (cluster advertise same IP address to BGP routers) Read page 607 if interested. alternative: let client decide - give client a list of several CDN servers client pings servers, picks best Netflix approach Multmedia Networking 7-22

Case study: Netflix generates 30% downstream US traffic in 2011 owns very little infrastructure, uses 3 rd party services: own registration, payment servers Amazon (3 rd party) cloud services: Netflix uploads studio master to Amazon cloud create multiple version of movie (different endodings) in cloud upload versions from cloud to CDNs Cloud hosts Netflix web pages for user browsing three 3 rd party CDNs host/stream Netflix content: Akamai, Limelight, Level-3 Multmedia Networking 7-23

Case study: Netflix Amazon cloud upload copies of multiple versions of video to CDNs Akamai CDN Netflix registration, accounting servers 1 1. Bob manages Netflix account 2. Bob browses Netflix video 2 3 3. Manifest file returned for requested video 4. DASH streaming Limelight CDN Level-3 CDN Multmedia Networking 7-24

P2P Distribution: Kankan No CDN P2P video delivery used by Chinese companies Kankan, PPV, PPs. Kankan has 20 Milliion unique users viewing Ideal similar to BitTorrent Kankan has own tracker and uses DHT All proprietary protocols. Chunks to be played in near future gets priority. Uses UDP frequently heavy UDP traffic on Chinese Internet. Multmedia Networking 7-25

Voice over IP Stringent QoS requirements on Delay/Jitter Protocols RTP, SIP used. You may wish to read sections 7.3-7.4 in your own time. Mostly details that you should understand with the background from this subject. Multmedia Networking 7-26

Dimensioning best effort networks approach: deploy enough link capacity so that congestion doesn t occur, multimedia traffic flows without delay or loss low complexity of network mechanisms (use current best effort network) high bandwidth costs challenges: network dimensioning: how much bandwidth is enough? estimating network traffic demand: needed to determine how much bandwidth is enough (for that much traffic) Multmedia Networking 7-27

Providing multiple classes of service thus far: making the best of best effort service one-size fits all service model alternative: multiple classes of service partition traffic into classes network treats different classes of traffic differently (analogy: VIP service versus regular service) 0111 Multmedia Networking 7-28

Multiple classes of service: scenario H1 R1 R2 H3 H2 R1 output interface queue 1.5 Mbps link H4 Multmedia Networking 7-29

Scenario 1: mixed HTTP and VoIP example: 1Mbps VoIP, HTTP share 1.5 Mbps link. HTTP bursts can congest router, cause audio loss want to give priority to audio over HTTP R1 R2 Principle 1 packet marking needed for router to distinguish between different classes; and new router policy to treat packets accordingly Multmedia Networking 7-30

Principles for QOS guarantees (more) what if applications misbehave (VoIP sends higher than declared rate) policing: force source adherence to bandwidth allocations marking, policing at network edge 1 Mbps phone R1 R2 1.5 Mbps link packet marking and policing Principle 2 provide protection (isolation) for one class from others Multmedia Networking 7-31

Principles for QOS guarantees (more) allocating fixed (non-sharable) bandwidth to flow: inefficient use of bandwidth if flows doesn t use its allocation 1 Mbps phone R1 1 Mbps logical link R2 1.5 Mbps link 0.5 Mbps logical link Principle 3 while providing isolation, it is desirable to use resources as efficiently as possible Multmedia Networking 7-32

Providing QoS in the Internet Read Text section 7.5 Or Multmedia Networking 7-33

Summary? Multmedia Networking 7-34