Mohammad Hossein Manshaei 1393

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

Week-12 (Multimedia Networking)

CSC 4900 Computer Networks: Multimedia Applications

CSC 401 Data and Computer Communications Networks

Chapter 7 Multimedia Networking

Multimedia Networking

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

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

Chapter 2 Application Layer

Content distribution networks

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

Chapter 7: Multimedia Networking

Tema 0: Transmisión de Datos Multimedia

COMP6218: Content Caches. Prof Leslie Carr

Multimedia Networking

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

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

Computer Networks. Wenzhong Li. Nanjing University

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

Multimedia networking: outline

Lecture 9: Media over IP

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

Chapter 7 Multimedia Networking

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

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

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

Service/company landscape include 1-1

Multimedia Networking

Internet Video Delivery. Professor Hui Zhang

Streaming (Multi)media

CS 457 Multimedia Applications. Fall 2014

Networking Applications

Multimedia networking: outline

Digital Asset Management 5. Streaming multimedia

Video Streaming and Media Session Protocols

Multimedia Applications. Classification of Applications. Transport and Network Layer

Mohammad Hossein Manshaei 1393

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

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! 23/03/18. Part 3: Lecture 3! Content and multimedia! Internet traffic!

Part 3: Lecture 3! Content and multimedia!

Chapter 28. Multimedia

Multimedia Networking

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

Mohammad Hossein Manshaei 1393

Multimedia

Multimedia Networking

The Transport Layer: User Datagram Protocol

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

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

Quality of Service (QoS)

Week 7: Traffic Models and QoS

55:054 Communication Networks 12/11/2008

ITEC310 Computer Networks II

Chapter 7 Multimedia Networking

What Transport Services Does an App Need? Network Service Model. Multimedia Apps Quality of Service. Transport Service Requirements of Common Apps

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

Introduction to LAN/WAN. Application Layer 4

Multimedia Networking. Network Support for Multimedia Applications

of-service Support on the Internet

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

Computer Networks. Instructor: Niklas Carlsson

CSE3213 Computer Network I

Chapter 7 Multimedia Networking

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

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

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

Advanced Networking Technologies

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

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

CS 3516: Advanced Computer Networks

IMPROVING LIVE PERFORMANCE IN HTTP ADAPTIVE STREAMING SYSTEMS

Chapter 2 Application Layer. Lecture 4: principles of network applications. Computer Networking: A Top Down Approach

CSC 401 Data and Computer Communications Networks

Real-Time Control Protocol (RTCP)

internet technologies and standards

Chapter 7 Multimedia Networking. Chapter 7 outline. Chapter 7: goals. Multimedia and Quality of Service: What is it? QoS

Multimedia networking: outline

Multimedia in the Internet

in the Internet Andrea Bianco Telecommunication Network Group Application taxonomy

Data Communications & Networks. Session 10 Main Theme Multimedia Networking. Dr. Jean-Claude Franchitti

Multimedia networking: outline

Multimedia Applications over Packet Networks

Real-Time Protocol (RTP)

RSVP Support for RTP Header Compression, Phase 1

Chapter 4 Network Layer

Protocol Layers, Security Sec: Application Layer: Sec 2.1 Prof Lina Battestilli Fall 2017

Multimedia Networking and Quality of Service

Unit 9. Multimedia Applications

Chapter 7 + ATM/VC networks (3, 4, 5): Multimedia networking, QoS, Congestion control Course on Computer Communication and Networks, CTH/GU

Ch 4: Multimedia. Fig.4.1 Internet Audio/Video

Cobalt Digital Inc Galen Drive Champaign, IL USA

Chapter 7 Multimedia Networking

Kommunikationssysteme [KS]

Transporting audio-video. over the Internet

Chapter 7 Multimedia Networking

Lecture 14: Multimedia Communications

Guaranteeing Video Quality

Lecture 2: Internet Structure

Transcription:

Mohammad Hossein Manshaei manshaei@gmail.com 1393

Voice and Video over IP Slides derived from those available on the Web site of the book Computer Networking, by Kurose and Ross, PEARSON 2

multimedia applications: network audio and video ( continuous media ) QoS network provides application with level of performance needed for application to function. 3

Principles classify multimedia applications identify network services applications need making the best of best effort service Protocols and Architectures specific protocols for best-effort mechanisms for providing QoS architectures for QoS 4

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 5

Multimedia: video v Video: sequence of images displayed at constant rate e.g. 24 images/sec v Digital image: array of pixels each pixel represented by bits v 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 6

Multimedia: video v CBR: (constant bit rate): video encoding rate fixed v VBR: (variable bit rate): video encoding rate changes as amount of spatial, temporal coding changes v 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 7

Bit-Rate Requirement for 3 Applications Cisco predicts that streaming and stored video will be approximately 90 percent of global consumer Internet traffic by 2015. 8

Multimedia: audio v Analog audio signal sampled at constant rate Telephone: 8,000 samples/sec CD music: 44,100 samples/sec v 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 9

Multimedia: audio v Example: 8,000 samples/sec, 256 quantized values: 64,000 bps v Receiver converts bits back to analog signal: some quality reduction Example rates v CD: 1.411 Mbps v MP3: 96, 128, 160 kbps v Advanced Audio Coding (AAC): Apple standard v 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 10

MM Networking Applications Fundamental characteristics: v Typically delay sensitive end-to-end delay delay jitter v Loss tolerant: infrequent losses cause minor glitches v Antithesis of data, which are loss intolerant but delay tolerant. Jitter is the variability of packet delays within the same packet stream 11

Multimedia networking: 3 application types v 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 v Conversational voice/video over IP interactive nature of human-to-human conversation limits delay tolerance e.g., Skype v Streaming live audio, video e.g., live sporting event (football) 12

Streaming Stored Multimedia Stored streaming: media stored at source transmitted to client streaming: client playout begins before all data has arrived timing constraint for still-to-be transmitted data: in time for playout 13

Streaming Stored Multimedia: What is it? Cumulative data 1. video recorded 2. video sent network delay 3. video received, played out at client time streaming: at this time, client playing out early part of video, while server still sending later part of video 14

Streaming Stored Multimedia: Interactivity VCR-like functionality: client can pause, rewind, FF, push slider bar 10 sec initial delay OK 1-2 sec until command effect OK timing constraint for still-to-be transmitted data: in time for playout 15

Streaming Live Multimedia Examples: v Internet radio talk show v live sporting event Streaming (as with streaming stored multimedia) v playback buffer v playback can lag tens of seconds after transmission v still have timing constraint Interactivity v fast forward impossible v rewind, pause possible! 16

Real-Time Interactive Multimedia Applications: IP telephony, video conference, distributed interactive worlds v End-end delay requirements: audio: < 150 msec good, < 400 msec OK includes application-level (packetization) and network delays higher delays noticeable, impair interactivity v Session initialization How does callee advertise its IP address, port number, encoding algorithms? 17

Multimedia Over Today s Internet TCP/UDP/IP: best-effort service v no guarantees on delay, loss??????? But you said multimedia apps requires QoS and level of performance to be effective!???? Today s Internet multimedia applications use application-level techniques to mitigate (as best possible) effects of delay, loss 18

How should the Internet evolve to better support multimedia? Integrated services philosophy: v fundamental changes in Internet so that apps can reserve end-to-end bandwidth v requires new, complex software in hosts & routers Laissez-faire v no major changes v more bandwidth when needed v content distribution, application-layer multicast In application layer and not IP layer multicast Differentiated services philosophy: v fewer changes to Internet infrastructure, yet provide 1st and 2nd class service What s your opinion? 19

Summary Approach Making the best of besteffort service Differential QoS Guaranteed QoS Unit of Allocation Guarantee Deployment to date None None, or soft everywhere minimal Classes of Flows Individual Flows None, or Soft some medium Soft or hard, once a flow is admitted little Complexity Mechanisms high Application-layer support, CDN, over-provisioning Policing, Scheduling Policing, Scheduling, call admission and signaling 20

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 21

application-level streaming techniques for making the best out of best effort service: client-side buffering use of UDP versus TCP multiple encodings of multimedia Media Player jitter removal decompression error concealment graphical user interface w/ controls for interactivity 22

Audio or video stored in file Files transferred as HTTP object received in entirety at client then passed to player 23

browser GETs metafile browser launches player, passing metafile player contacts server server streams audio/video to player 24

Allows for non-http protocol between server, media player UDP or TCP for step (3), more shortly 25

7-26

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 27

Streaming Stored Video: Challenges v 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 v Other challenges: client interactivity: pause, fast-forward, rewind, jump through video video packets may be lost, retransmitted 28

Streaming stored video: revisited 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 v client-side buffering and playout delay: compensate for network-added delay, delay jitter 29

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 30

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 31

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): v x < r: buffer eventually empties (causing freezing of video playout until buffer again fills) v 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 32

Streaming multimedia: UDP v Server sends at rate appropriate for client often: send rate = encoding rate = constant rate transmission rate can be oblivious to congestion levels v Short playout delay (2-5 seconds) to remove network jitter v Error recovery: application-level, time permitting v RTP [RFC 3550]: Real-Time Transport Protocol (multimedia payload types) v RTSP [RFC 2326] Real-Time Streaming Protocol Maintain a control connection 33

UDP Streaming Drawbacks v UDP may not go through firewalls v Constant-rate UDP streaming can fail to provide continuous playout, given the network delay v It requires a media control server, such as an RTSP server, to process client-to-server interactivity requests (Not scalable) 34

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

Streaming Multimedia: DASH v DASH: Dynamic, Adaptive Streaming over HTTP v server: divides video file into multiple chunks each chunk stored, encoded at different rates manifest file: provides URLs for different chunks v 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) 36

Streaming Multimedia: DASH v DASH: Dynamic, Adaptive Streaming over HTTP v 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) 37

Content Distribution Networks v challenge: how to stream content (selected from millions of videos) to hundreds of thousands of simultaneous users? v 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 38

Traditional Scheme vs. CDN 39

Content Distribution Networks v challenge: how to stream content (selected from millions of videos) to hundreds of thousands of simultaneous users? v 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 40

CDN: simple Content Access Scenario Bob (client) requests video http://netcinema.com/6y7b23v video stored in CDN at http://kingcdn.com/netc6y&b23v 1. Bob gets URL for video http:// 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 URL http://kingcdn.com/netc6y&b23v 3 2. resolve http://netcinema.com/6y7b23v via Bob s local DNS 4 4&5. Resolve http://kingcdn.com/netc6y&b23 via KingCDN s authoritative DNS, which returns IP address of KingCDN server with video netcinema s authorative DNS KingCDN.com KingCDN authoritative DNS 41

CDN Cluster Selection Strategy v 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 v alternative: let client decide - give client a list of several CDN servers client pings servers, picks best Netflix approach 42

Case study: Netflix v 30% downstream US traffic in 2011 v 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 43

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 44