Professional Documents
Culture Documents
Lecture
t
10
Computer Networks, Wireless
and Mobile Communications
Dr Shahedur Rahman
School of Science and Technology
Multimedia Networking
Multimedia Networking
Lesson objectives
Principles of Multimedia, QOS, Streaming
Concepts
Real
Real Time Interactive Media and Applications
Multimedia over Internet
Content
Content Distribution Network (CDN)
Real Time Protocols
Multiple
Mult ple Classes of Service
Serv ce
Scheduling
Multimedia Networking
QoS
network provides
application with level of
performance needed for
application to function.
Multimedia Networking
MM Networking
g Applications
pp
Classes of MM appl
applications:
cat ons
1) stored streaming
2) live streaming
3) interactive, real-time
Fundamental
characteristics:
typically delay sensitive
end-to-end delay
delay jitter
Jitter is the
h variability
bl
of packet delays within
the same packet stream
lloss tolerant:
t l
nt: infrequent
inf
nt
losses cause minor
glitches
antithesis of data, which
are loss intolerant but
delay tolerant.
Multimedia Networking
Stored streaming:
med
media
a stored at source
transmitted to client
streaming: client playout begins
before all data has arrived
timing
m g constraint for
f still-to-be
transmitted data: in time for playout
Multimedia Networking
1. video
recorded
2. video
2
sent
network
d l
delay
3. video received,
played out at client
time
Streaming
g Stored Multimedia: Interactivity
y
Streaming
g Live Multimedia
Examples:
p
Internet radio talk show
live sporting
p
g event
Streaming (as with streaming stored multimedia)
playback buffer
playback can lag tens of seconds after
transmission
still have timing constraint
Interactivity
y
fast forward impossible
r
rewind,
wn ,p
pause
u p
possible!
Multimedia Networking
applications: IP telephony
telephony,
video conference, distributed
interactive worlds
end-end delay requirements:
audio: < 150 msec good, < 400 msec OK
includes application-level (packetization) and network
delays
higher delays noticeable,
noticeable impair interactivity
session initialization
IP address
address, port number
number, encoding algorithms
Multimedia Networking
10
Todays
y Internet multimedia applications
pp
use application-level techniques to mitigate
(as best possible) effects of delay, loss
Multimedia Networking
11
Differentiated services
philosophy:
fewer changes to Internet
infrastructure yet provide
infrastructure,
1st and 2nd class service
12
analog
g signal
g
sampled
p
at constant rate
telephone: 8,000
samples/sec
l /
CD music: 44,100
samples/sec
p
example:
p 8,000
,
samples/sec, 256
quantized values -->
64 000 b
64,000
bps
receiver converts bits
back to analog signal:
some quality reduction
Example rates
CD: 1.411 Mbps
MP3: 96,
96 128,
128 160 kbps
Internet telephony:
5 3 kbps and up
5.3
Multimedia Networking
13
video: sequence
q
of
images displayed at
constant rate
e.g. 24 images/sec
redundancy
spatial (within image)
temporal (from one image
to next)
Examples:
p
MPEG 1 (CD-ROM) 1.5
Mbps
MPEG2 (DVD) 3-6 Mbps
MPEG4 (often used in
Internet, < 1 Mbps)
Research:
layered (scalable) video
adapt layers to available
b d idth
bandwidth
Multimedia Networking
14
Streaming
g Stored Multimedia
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
Multimedia Networking
15
16
17
Streaming
g from a streaming
g server
18
Streaming
g Multimedia: Client Buffering
g
variable
network
d l
delay
client video
reception
constant bit
rate video
playout at client
buffe
ered
video
constant
t t bit
rate video
transmission
time
client playout
delay
19
Streaming
g Multimedia: UDP or TCP?
UDP
server sends
d att rate
t appropriate
i t f
for client
li t ((oblivious
bli i
tto
network congestion !)
often
f
send rate = encoding
g rate = constant rate
then, fill rate = constant rate - packet loss
short playout delay (2-5 seconds) to remove network jitter
error recover: time permitting
TCP
send
d att maximum
i
possible
ibl rate
t under
d TCP
fill rate fluctuates due to TCP congestion control
larger playout delay: smooth TCP delivery rate
HTTP/TCP passes more easily through firewalls
Multimedia Networking
20
21
PC-2-PC
PC
2 PC phone
Skype
PC 2 phone
PC-2-phone
Dialpad
Net2phone
Skype
videoconference
id
nf
n with
ith
webcams
Skype
Polycom
Multimedia Networking
22
Interactive
Interact
ve Mult
Multimedia:
med a Internet Phone
hone
Introduce Internet Phone by
y way
y of an example
p
application
pp
sends UDP segment
g
into socket every
y
20 msec during talkspurt
Multimedia Networking
23
Multimedia Networking
24
Delay
y Jitter
variable
network
d l
delay
(jitter)
client
reception
constant bit
rate p
playout
y
at client
buffe
ered
datta
constant
t t bit
rate
transmission
time
client playout
delay
25
26
origin server
in North America
CDN server
in S. America CDN server
in Europe
CDN server
in Asia
Multimedia Networking
27
origin server
in North America
CDN server
in S. America CDN server
in Europe
CDN server
in Asia
Multimedia Networking
28
CDN example
p
origin server
1
2
client
3
CDNs authoritative
DNS server
HTTP request for
www.cdn.com/www.foo.com/sports/ruth.gif
with
http://www.cdn.com/www.foo.com/sports/ruth.gif
tt //
d
/
f
/
t / th if
29
Summary:
y Internet Multimedia: bagg of tricks
30
RTP specifies
p
packet
p
structure for packets
carrying audio, video
d t
data
RFC 3550
RTP packet
k provides
id
payload type
id tifi ti
identification
packet sequence
numbering
time stamping
Multimedia Networking
31
Multimedia Networking
32
Multimedia Networking
33
works in conjunction
j
with RTP.
each participant in RTP
session periodically
transmits RTCP control
packets to all other
participants.
each RTCP packet
contains sender and/or
receiver reports
p
34
Synchronization
y
of Streams
Multimedia Networking
35
Providing
g Multiple
p Classes of Service
36
Multiple
p classes of service: scenario
H1
H2
R1
R1 output
interface
queue
H3
R2
H4
Multimedia Networking
37
R1
R2
Multimedia Networking
38
Scheduling
g And Policing
g Mechanisms
scheduling:
g choose next p
packet to send on link
FIFO (first in first out) scheduling: send in order of
arrival to queue
real-world example?
discard policy: if packet arrives to full queue: who to discard?
Tail
T il drop:
d
d
drop arriving
i i packet
k t
priority: drop/remove on priority basis
random: drop/remove randomly
Multimedia Networking
39
Scheduling
g Policies: more
Priority scheduling: transmit highest priority queued
packet
multiple classes, with different priorities
class may depend on marking or other header info, e.g. IP
source/dest, port numbers, etc..
Real world example?
Multimedia Networking
40
Scheduling
g Policies: still more
round robin scheduling:
multiple classes
cyclically scan class queues, serving one from each
class
l
(if available)
il bl )
real world example?
Multimedia Networking
41
Summary
The lesson has looked at various aspects of multimedia
Multimedia Networking
42