Multimedia Networking: An Overview
Multimedia Networking: An Overview
Instructor: Anirban Mahanti Office: ICT 745 Email: [email protected] Adapted from the companion web site of the text Computer Networking: A Top Down
Approach Featuring the Internet, 3rd edition, Jim Kurose and Keith Ross Addison-Wesley, 2005.
CPSC 601.43
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia
apps
Stored media streaming (in some detail) What will we cover in this course?
CPSC 601.43
to destination
r
network elements
r
PPP, Ethernet
CPSC 601.43
Datagrams might be lost Datagrams might be arrive out of order Jitter in arrival of datagrams from the same stream
CPSC 601.43
end systems (hosts) Transmission unit is called segment TCP/IP networks such as the Internet provides two types of services to applications
r
connection-oriented service Transmission Control Protocol (TCP) connectionless service - User Datagram Protocol (UDP)
CPSC 601.43
state;
r
hence connection-oriented
CPSC 601.43
CPSC 601.43
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia
apps
Stored media streaming (in some detail) What will we cover in this course?
CPSC 601.43
MM Networking Applications
Classes of MM applications: 1) Streaming stored audio and video 2) Streaming live audio and video 3) Real-time interactive audio and video Fundamental characteristics: Typically delay sensitive
r r
Jitter is the variability of packet delays within the same packet stream
infrequent losses cause minor glitches Antithesis of data, which are loss intolerant but delay tolerant.
CPSC 601.43
VCR-like functionality: client can pause, rewind, FF, push slider bar r 10 sec initial delay OK r 1-2 sec until command effect OK r need a separate control protocol?
Cumulative data
1. video recorded
2. video sent
network delay
streaming: at this time, client playing out early part of video, while server still sending later part of video
CPSC 601.43 11
session initialization
r
how does callee advertise its IP address, port number, encoding algorithms?
CPSC 601.43
13
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia
apps
Stored media streaming (in some detail) What will we cover in this course?
CPSC 601.43
14
But you said multimedia apps requires ? QoS and level of performance to be ? ? effective! ?
Todays Internet multimedia applications use application-level techniques to mitigate (as best possible) effects of delay, loss
CPSC 601.43 15
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia
apps
Stored media streaming (in some detail) What will we cover in this course?
CPSC 601.43
16
networks for individual flows Fundamental changes in Internet so that apps can reserve end-to-end bandwidth Components of this architecture are
r r r r r
Admission control Reservation protocol Routing protocol Classifier and route selection Packet scheduler
CPSC 601.43
17
E.g., Courier, xPress, and normal mail E.g., First, business, and cattle class
Diffserv approach: simple functions in network core, relatively complex functions at edge routers (or hosts) Dont define define service classes, provide functional components to build service classes
CPSC 601.43
18
video) from single origin server in real time Solution: replicate content at hundreds of servers throughout Internet r content downloaded to CDN servers ahead of time r placing content close to user avoids impairments (loss, delay) of sending content over long paths r CDN server typically in edge/access network
CPSC 601.43
19
R1
duplicate creation/transmission
R1
duplicate
R2
R2
R3
R4
R3
R4
(a)
(b)
Source-duplication versus in-network duplication. (a) source duplication, (b) in-network duplication
CPSC 601.43
20
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia apps Stored media streaming (in some detail)
r r r
CPSC 601.43
21
audio, video not streamed: no, pipelining, long delays until playout!
CPSC 601.43 22
High start-up delay as media file can be large ~ 4GB for a 2 hour MPEG II movie
CPSC 601.43
23
Progressive Download
browser GETs metafile browser launches player, passing metafile player contacts server server downloads audio/video to player
CPSC 601.43 24
CPSC 601.43
25
Cumulative data
time
CPSC 601.43
26
buffered video
CPSC 601.43
27
TCP
send at maximum possible rate under TCP fill rate fluctuates due to TCP congestion control larger playout delay: smooth TCP delivery rate HTTP/TCP passes more easily through firewalls
CPSC 601.43
28
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia apps Stored media streaming (in some detail)
r r r
CPSC 601.43
29
CPSC 601.43
30
RTSP Example
Scenario:
metafile communicated to web browser browser launches player player sets up an RTSP control connection, data
CPSC 601.43
31
Metafile Example
<title>Twister</title> <session> <group language=en lipsync> <switch> <track type=audio e="PCMU/8000/1" src = "rtsp://audio.example.com/twister/audio.en/lofi"> <track type=audio e="DVI4/16000/2" pt="90 DVI4/8000/1" src="rtsp://audio.example.com/twister/audio.en/hifi"> </switch> <track type="video/jpeg" src="rtsp://video.example.com/twister/video"> </group> </session>
CPSC 601.43 32
RTSP Operation
CPSC 601.43
33
Outline
The Internet Protocol Stack (Review) MM networking applications Multimedia over best effort Internet Evolving the Internet to support multimedia apps Stored media streaming (in some detail)
r r r
CPSC 601.43
35
Packet Loss
network loss: IP datagram lost due to network
congestion (router buffer overflow) delay loss: IP datagram arrives too late for playout at receiver
r
delays: processing, queueing in network; end-system (sender, receiver) delays Tolerable delay depends on the application
CPSC 601.43
36
term self-similarity Works for relatively low loss rates (e.g., < 5%) Typically, breaks down on bursty losses
CPSC 601.43
37
packets send out n+k packets, increasing the bandwidth by factor k/n. can reconstruct the original n packets provided at most k packets are lost from the group Works well at high loss rate (for a proper choice of k) Handles bursty packet losses Cost: increase in transmission cost (bandwidth)
CPSC 601.43
38
receiver can conceal the loss. Can also append (n-1)st and (n-2)nd low-bit rate chunk
CPSC 601.43 39
Interleaving Re-sequence packets before transmission Better handling of burst losses Results in increased playout delay
CPSC 601.43
40
for delay server side matches stream bandwidth to available client-to-server path bandwidth
r r
error recovery (on top of UDP) r FEC, interleaving r retransmissions, time permitting r conceal errors: repeat nearby data
CPSC 601.43 41
IP Multicast, Application layer multicast Scalable streaming, CDNs TCP overview, TCP Vegas, unicast and multicast rate control protocol Integrated/differentiated services, AQM
Content Distribution
r
Rate Control
r
Quality of Service
r
modern networks Playback rate = 1 Mbps, duration = 90 minutes Group requests in non-overlapping intervals of 30 minutes:
r r
Channel 1 Channel 2 Channel 3 0 3 0 60 90 120 150 Time (minutes) 180 210 240
CPSC 601.43 44
Batching Issues
Bandwidth increases linearly with decrease
CPSC 601.43
45
Internet
High-speed Access
CPSC 601.43 46
Video Server
Multimedia Networking
Exciting, industry relevant research topic Multimedia is everywhere Tons of open problems Questions?
CPSC 601.43
47