Kurose Chapter7 Multimedia Networking PDF
Kurose Chapter7 Multimedia Networking PDF
Multimedia Networking
multimedia applications:
network audio and video
(continuous media)
QoS
network provides
application with level of
performance needed for
application to function.
7: Multimedia Networking 7-2
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
architectures for QoS
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
2. video
sent
1. video 3. video received,
recorded network played out at client
delay
time
streaming: at this time, client
playing out early part of video,
while server still sending later
part of video
Examples:
Internet radio talk show
live sporting event
Streaming (as with streaming stored multimedia)
playback buffer
playback can lag tens of seconds after
transmission
still have timing constraint
Interactivity
fast forward impossible
rewind, pause possible!
applications: IP 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, impair interactivity
session initialization
how does callee advertise its IP address, port
number, encoding algorithms? 7: Multimedia Networking 7-10
Multimedia Over Todays 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! ? ?
constant bit
rate video client video constant bit
transmission reception rate video
playout at client
variable
buffered
network
video
delay
constant
variable fill drain
rate, x(t) rate, d
buffered
video
Scenario:
metafile communicated to web browser
browser launches player
player sets up an RTSP control connection, data
connection to streaming server
S: RTSP/1.0 200 1 OK
Session 4231
S: 200 3 OK
7: Multimedia Networking 7-29
Chapter 7 outline
7.1 multimedia networking 7.5 providing multiple
applications classes of service
7.2 streaming stored audio 7.6 providing QoS
and video guarantees
7.3 making the best out of
best effort service
7.4 protocols for real-time
interactive applications
RTP,RTCP,SIP
constant bit
rate client constant bit
transmission reception rate playout
at client
variable
buffered
network
data
delay
(jitter)
packets loss
generated
packets
playout schedule
received
p' - r
playout schedule
p-r
time
r
p p' 7: Multimedia Networking 7-36
Adaptive Playout Delay (1)
Goal: minimize playout delay, keeping late loss rate low
Approach: adaptive playout delay adjustment:
estimate network delay, adjust playout delay at beginning of
each talk spurt.
silent periods compressed and elongated.
chunks still played out every 20 msec during talk spurt.
Interleaving
chunks divided into smaller if packet lost, still have most
units of every chunk
for example, four 5 msec no redundancy overhead, but
units per chunk increases playout delay
packet contains small units
from different chunks
7: Multimedia Networking 7-42
Content distribution networks (CDNs)
Content replication origin server
in North America
challenging to stream large
files (e.g., video) from single
origin server in real time
solution: replicate content at
CDN distribution node
hundreds of servers
throughout Internet
content downloaded to CDN
servers ahead of time
placing content close to
user avoids impairments
(loss, delay) of sending CDN server
CDN server
content over long paths in S. America CDN server
in Asia
CDN server typically in in Europe
edge/access network
7: Multimedia Networking 7-43
Content distribution networks (CDNs)
origin server
Content replication in North America
CDN (e.g., Akamai)
customer is the content
provider (e.g., CNN)
CDN distribution node
CDN replicates
customers content in
CDN servers.
when provider updates
content, CDN updates
servers CDN server
CDN server
in S. America CDN server
in Asia
in Europe
routing requests
CDN creates a map, indicating distances from
leaf ISPs and CDN nodes
when query arrives at authoritative DNS server:
server determines ISP from which query originates
uses map to determine best CDN server
CDN nodes create application-layer overlay
network
Sequence Number (16 bits): Increments by one for each RTP packet
sent, and may be used to detect packet loss and to restore packet
sequence.
7: Multimedia Networking 7-53
RTP Header (2)
each RTP session: typically a single multicast address; all RTP /RTCP packets
belonging to session use multicast address.
RTP, RTCP packets distinguished from each other via distinct port numbers.
is 5060.
time time
7: Multimedia Networking 7-63
Setting up a call (more)
codec negotiation:
rejecting a call
suppose Bob doesnt
Bob can reject with
have PCM ulaw
replies busy,
encoder.
gone, payment
Bob will instead reply required,
with 606 Not forbidden
Acceptable Reply,
media can be sent over
listing his encoders
RTP or some other
Alice can then send
protocol
new INVITE
message, advertising
different encoder
Register Message:
try keith@eurecom.fr
(4) umass proxy sends INVITE to eurecom registrar. (5) eurecom
registrar forwards INVITE to 197.87.54.21, which is running keiths SIP
client. (6-8) SIP response sent back (9) media sent directly
between clients.
Note: also a SIP ack message, which is not shown.
7: Multimedia Networking 7-69
Comparison with H.323
multimedia applications:
network audio and video
(continuous media)
QoS
network provides
application with level of
performance needed for
application to function.
7: Multimedia Networking 7-71
Chapter 7 outline
7.1 multimedia networking 7.5 providing multiple
applications classes of service
7.2 streaming stored audio 7.6 providing QoS
and video guarantees
7.3 making the best out of
best effort service
7.4 protocols for real-time
interactive applications
RTP, RTCP, SIP
H3
H1
R1 R2
H4
H2 R1 output 1.5 Mbps link
interface
queue
R1 R2
Principle 1
packet marking needed for router to distinguish
between different classes; and new router policy
to treat packets accordingly
7: Multimedia Networking 7-75
Principles for QOS Guarantees (more)
what if applications misbehave (audio sends higher
than declared rate)
policing: force source adherence to bandwidth allocations
marking and policing at network edge:
similar to ATM UNI (User Network Interface)
1 Mbps
phone
R1 R2
Principle 3
While providing isolation, it is desirable to use
resources as efficiently as possible
7: Multimedia Networking 7-77
Scheduling And Policing Mechanisms
D = b/R
max
Edge router:
per-flow traffic management r marking
scheduling
marks packets as in-profile
and out-profile b ..
.
Core router:
per class traffic management
buffering and scheduling based
on marking at edge
preference given to in-profile
packets
Rate A
User packets
1 Mbps
phone R1
R2
Principle 4
Call Admission: flow declares its needs, network may
block call (e.g., busy signal) if it cannot meet needs
7: Multimedia Networking 7-93
QoS guarantee scenario
Resource reservation
call setup, signaling (RSVP)
traffic, QoS declaration
per-element admission control
request/
reply
QoS-sensitive
scheduling (e.g.,
WFQ)
D = b/R
max
7: Multimedia Networking 7-97
Signaling in the Internet
connectionless no network
(stateless) best effort signaling protocols
forwarding by IP
+ service = in initial IP
routers design
sender-to-network signaling
path message: make sender presence known to routers
path teardown: delete senders path state from routers
receiver-to-network signaling
reservation message: reserve resources from sender(s) to
receiver
reservation teardown: remove receiver reservations
network-to-end-system signaling
path error
reservation error
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
multiple classes of service
QoS guarantees, admission control