CSC 4900 Computer Networks: Multimedia Applications

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

Mohammad Hossein Manshaei 1393

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

Week-12 (Multimedia Networking)

Content distribution networks

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

Computer Networks. Wenzhong Li. Nanjing University

CSC 401 Data and Computer Communications Networks

Chapter 7 Multimedia Networking

Multimedia

Mohammad Hossein Manshaei 1393

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 Applications. Classification of Applications. Transport and Network Layer

Digital Asset Management 5. Streaming multimedia

Multimedia networking: outline

Multimedia networking: outline

Chapter 7 Multimedia Networking

Lecture 9: Media over IP

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

Real-Time Control Protocol (RTCP)

Chapter 2 Application Layer

Video Streaming and Media Session Protocols

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

Streaming (Multi)media

55:054 Communication Networks 12/11/2008

Multimedia networking: outline

CS 457 Multimedia Applications. Fall 2014

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

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

Multimedia Networking

Multimedia Networking

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

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

Chapter 7: Multimedia Networking

Multimedia Networking

Chapter 7 Multimedia Networking

Chapter 7 Multimedia Networking

Networking Applications

COMP6218: Content Caches. Prof Leslie Carr

Service/company landscape include 1-1

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

Part 3: Lecture 3! Content and multimedia!

Kommunikationssysteme [KS]

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

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

Week 7: Traffic Models and QoS

Tema 0: Transmisión de Datos Multimedia

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

Internet Video Delivery. Professor Hui Zhang

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

Multimedia Networking. Protocols for Real-Time Interactive Applications

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

Chapter 7 Multimedia Networking

Telematics 2 & Performance Evaluation

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

Voice over IP (VoIP)

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

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

ITEC310 Computer Networks II

EDA095 Audio and Video Streaming

Chapter 7 Multimedia Networking

Location Based Advanced Phone Dialer. A mobile client solution to perform voice calls over internet protocol. Jorge Duda de Matos

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

Transporting Voice by Using IP

Multimedia networks. Additional references. Jargon. Analog to Digital (S5 4.3) KR: Kurose and Ross chapter 7 (KR3: 3 rd ed)

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

Master Kurs Rechnernetze Computer Networks IN2097

Popular protocols for serving media

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

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

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

ETSF10 Internet Protocols Transport Layer Protocols

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

Introduction to LAN/WAN. Application Layer 4

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

Transporting audio-video. over the Internet

Real-time Services BUPT/QMUL

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

of-service Support on the Internet

Lecture 9 and 10. Source coding for packet networks

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

EDA095 Audio and Video Streaming

Multimedia Systems Multimedia Networking Part II Mahdi Amiri December 2015 Sharif University of Technology

The Transport Layer: User Datagram Protocol

Summary of last time " " "

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

Internet Streaming Media

Multimedia in the Internet

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

CS 3516: Advanced Computer Networks

Multimedia Networking. Network Support for Multimedia Applications

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

EDA095 Audio and Video Streaming

Chapter 28. Multimedia

in the Internet Andrea Bianco Telecommunication Network Group Application taxonomy

Transcription:

CSC 4900 Computer Networks: Multimedia Applications Professor Henry Carter Fall 2017

Last Time What is a VPN? What technology/protocol suite is generally used to implement them? How much protection does WEP offer in practice? What other options should you use? How does a firewall work? 2

Multimedia, Quality of Service: What is it? Multimedia applications: network audio and video ( continuous media ) QoS network provides application with level of performance needed for application to function. 3

Chapter 7: Goals 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 4

Chapter 7 Outline 7.1 Multimedia Networking Applications 7.2 Streaming stored video 7.3 Voice-over-IP 7.4 Protocols for Real-Time Interactive Applications RTP, SIP 7.5 Network Support for Multimedia 5

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 6

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 7

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

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

Multimedia Networking: Three 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 10

Streaming Stored Multimedia: What is it? 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 11

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 12

Delay Jitter constant bit rate transmission variable network delay (jitter) buffered data client reception constant bit rate playout at client client playout delay Consider the end-to-end delays of two consecutive packets: difference can be more or less than 20 msec time 13

Client-side buffering, playout 14

Client-side buffering, playout 1. Initial fill of buffer until playout begins at tp 2. playout begins at tp, 3. buffer fill level varies over time as fill rate x(t) varies and playout rate r is constant 15

Client-side buffering, playout 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 16

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 17

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 IXPs near (but not within) access networks used by Limelight 18

Case study: Netflix 37% downstream US traffic in 2015 Uses 3rd party services: Amazon (3rd 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, registration, and payment servers Originally three 3rd party CDNs host/stream Netflix content: Akamai, Limelight, Level-3 Netflix has since rolled out its own CDN 19

Chapter 7 Outline 7.1 Multimedia Networking Applications 7.2 Streaming stored video 7.3 Voice-over-IP 7.4 Protocols for Real-Time Interactive Applications RTP, SIP 7.5 Network Support for Multimedia 20

Voice-over-IP (VoIP) VoIP end-end-delay requirement: needed to maintain conversational aspect higher delays noticeable, impair interactivity < 150 msec: good > 400 msec bad includes application-level (packetization,playout), network delays session initialization: how does callee advertise IP address, port number, encoding algorithms? value-added services: call forwarding, screening, recording emergency services: 911 21

VoIP: packet loss, delay network loss: IP datagram lost due to network congestion (router buffer overflow) delay loss: IP datagram arrives too late for playout at receiver delays: processing, queueing in network; end-system (sender, receiver) delays typical maximum tolerable delay: 400 ms loss tolerance: depending on voice encoding, loss concealment, packet loss rates between 1% and 10% can be tolerated 22

Recovery from Packet Loss (1) Forward Error Correction (FEC): simple scheme for every group of n chunks create redundant chunk by exclusive OR-ing n original chunks send out n+1 chunks, increasing bandwidth by factor 1/n. playout delay: enough time to receive all n+1 packets tradeoff: increase n, less bandwidth waste increase n, longer playout delay increase n, higher probability that 2 or more chunks will be lost can reconstruct original n chunks if at most one lost chunk from n+1 chunks 23

Recovery from Packet Loss (1I) 2nd FEC scheme piggyback lower quality stream send lower resolution audio stream as the redundant information for example, nominal stream PCM at 64 kbps and redundant stream GSM at 13 kbps. Whenever there is non-consecutive loss, the receiver can conceal the loss. Can also append (n-1)st and (n-2)nd low-bit rate chunk 24

Recovery from Packet Loss (1II) Interleaving chunks are broken up into smaller units for example, 4 5 msec units per chunk Packet contains small units from different chunks if packet is lost, still have most of every chunk has no redundancy overhead but adds to playout delay 25

Chapter 7 Outline 7.1 Multimedia Networking Applications 7.2 Streaming stored video 7.3 Voice-over-IP 7.4 Protocols for Real-Time Interactive Applications RTP, SIP 7.5 Network Support for Multimedia 26

Real-Time Protocol (RTP) RTP specifies packet structure for packets carrying audio, video data RFC 3550 RTP packet provides payload type identification packet sequence numbering RTP runs in end systems RTP packets encapsulated in UDP segments interoperability: if two VoIP applications run RTP, they may be able to work together time stamping 27

RTP Example example: sending 64 kbps PCM-encoded voice over RTP application collects encoded data in chunks, e.g., every 20 msec = 160 bytes in a chunk audio chunk + RTP header form RTP packet, which is encapsulated in UDP segment RTP header indicates type of audio encoding in each packet sender can change encoding during conference RTP header also contains sequence numbers, timestamps 28

Session Initiation Protocol (SIP) SIP provides mechanisms for call setup: for caller to let callee know she wants to establish a call so caller, callee can agree on media type, encoding to end call determine current IP address of callee: maps mnemonic identifier to current IP address call management: add new media streams during call change encoding mid-call invite others transfer, hold calls 29

SIP Example Alice 167.180.112.24 INVITE bob@193.64.210.89 c=in IP4 167.180.112.24 m=audio 38060 RTP/AVP 0 port 5060 port 5060 200 OK c=in IP4 193.64.210.89 m=audio 48753 RTP/AVP 3 ACK port 5060 193.64.210.89 Bob Bob's terminal rings Alice s SIP invite message indicates her port number, IP address, encoding she prefers to receive (PCM µlaw) Bob s 200 OK message indicates his port number, IP address, preferred encoding (GSM) port 38060 µ Law audio SIP messages can be sent over TCP or UDP; here sent over RTP/UDP GSM port 48753 default SIP port number is 5060 time time 30

SIP Message INVITE sip:bob@domain.com SIP/2.0 Via: SIP/2.0/UDP 167.180.112.24 From: sip:alice@hereway.com To: sip:bob@domain.com Call-ID: a2e3a@pigeon.hereway.com Content-Type: application/sdp Content-Length: 885 c=in IP4 167.180.112.24 m=audio 38060 RTP/AVP 0 Notes: HTTP message syntax sdp = session description protocol Call-ID is unique for every call Here we don t know Bob s IP address intermediate SIP servers needed Alice sends, receives SIP messages using SIP default port 506 Alice specifies in header that SIP client sends, receives SIP messages over UDP 31

Chapter 7 Outline 7.1 Multimedia Networking Applications 7.2 Streaming stored video 7.3 Voice-over-IP 7.4 Protocols for Real-Time Interactive Applications RTP, SIP 7.5 Network Support for Multimedia 32

Multimedia Over Today s Internet TCP/UDP/IP: best-effort service 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 33

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

Summary: Internet Multimedia: Bag of Tricks use UDP to avoid TCP congestion control (delays) for time-sensitive traffic client-side adaptive playout delay and buffering: to compensate for delay loss server side matches stream bandwidth to available client-to-server path bandwidth chose among pre-encoded stream rates dynamic server encoding rate error recovery (on top of UDP) FEC, interleaving, error concealment retransmissions, time permitting CDN: bring content closer to clients 35

Next Time... Final Exam! Dec 13 @ 2:30 PM One 3 x 5 note card Stand-alone calculators only 36