Docsity

Internet Multimedia: Adaptive Playout Delay and CDN for Real-Time Applications, Slides of Computer Networks

Partial preview of the text

Download Internet Multimedia: Adaptive Playout Delay and CDN for Real-Time Applications and more Slides Computer Networks in PDF only on Docsity!

Lecture 19

Multimedia Networking

(cont)

slides are modified from Dave Hollinger Docsity.com

Chapter 7 outline

7.1 multimedia networking applications

7.2 streaming stored audio and video

7.3 making the best out of best effort service

7.4 protocols for real-time interactive applications RTP,RTCP,SIP

7.5 providing multiple classes of service 7.6 providing QoS guarantees

Interactive Multimedia: Internet

Phone

Introduce Internet Phone by way of an example

  • speaker’s audio: alternating talk spurts, silent periods.
    • 64 kbps during talk spurt
    • pkts generated only during talk spurts
    • 20 msec chunks at 8 Kbytes/sec: 160 bytes data
  • application-layer header added to each chunk.
  • chunk+header encapsulated into UDP segment.
  • application sends UDP segment into socket every 20

msec during talkspurt

Internet Phone: Packet Loss and

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, losses concealed, packet loss rates between 1% and 10% can be tolerated.

Internet Phone: Fixed Playout Delay

  • receiver attempts to playout each chunk exactly q msecs after chunk was generated. - chunk has time stamp t: play out chunk at t+q. - chunk arrives after t+q: data arrives too late for playout, data “lost”
  • tradeoff in choosing q:
    • large q: less packet loss
    • small q: better interactive experience

Fixed Playout Delay

packets

time

generated^ packets received^ packets

loss

r p p'

playout schedulep' - r

playout schedulep - r

  • sender generates packets every 20 msec during talk spurt.
  • first packet received at time r
  • first playout schedule: begins at p
  • second playout schedule: begins at p’

Adaptive playout delay (2)

 also useful to estimate average deviation of delay, vi : vi = ( 1 − u ) vi − 1 + u | ri − ti − di |

 estimates di , vi calculated for every received packet  but used only at start of talk spurt

 for first packet in talk spurt, playout time is:

pi = ti + di + Kv i where K is positive constant

 remaining packets in talkspurt are played out periodically

Adaptive Playout (3)

Q: How does receiver determine whether packet is first in a talkspurt?

  • if no loss, receiver looks at successive timestamps.
    • difference of successive stamps > 20 msec -->talk spurt begins.
  • with loss possible, receiver must look at both time stamps and sequence numbers. - difference of successive stamps > 20 msec and sequence numbers without gaps --> talk spurt begins.

Recovery from packet loss (2)

2nd FEC scheme  “piggyback lower quality stream”  send lower resolution audio stream as redundant information  e.g., nominal stream PCM at 64 kbps and redundant stream GSM at 13 kbps.

 whenever there is non-consecutive loss, receiver can conceal the loss.  can also append (n-1)st and (n-2)nd low-bit rate chunk

Recovery from packet loss (3)

Interleaving

  • chunks divided into smaller units
  • for example, four 5 msec units per chunk
  • packet contains small units from different chunks - if packet lost, still have most of every chunk - no redundancy overhead, but increases playout delay

Content distribution networks

(CDNs)

Content replication

  • CDN (e.g., Akamai) customer is the content provider (e.g., CNN)
  • CDN replicates customers’ content in CDN servers.
  • when provider updates content, CDN updates servers

origin server in North America

CDN distribution node

CDN server in S. America (^) CDN server in Europe

CDN server in Asia

CDN example

origin server (www.foo.com)

  • distributes HTML
  • replaces: http://www.foo.com/sports.ruth.gif with h ttp://www.cdn.com/www.foo.com/sports/ruth.gif

HTTP request for www.foo.com/sports/sports.html

DNS query for www.cdn.com

HTTP request for www.cdn.com/www.foo.com/sports/ruth.gif

1 2

3

origin server

CDN’s authoritative DNS server

CDN server near client

CDN company (cdn.com) r distributes gif files r uses its authoritative DNS server to route redirect requests

client

Summary: Internet Multimedia: bag of tricks

• use UDP to avoid TCP congestion control

(delays) for time-sensitive traffic

• client-side adaptive playout delay: to

compensate for delay

• 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 Docsity.com

Chapter 7 outline

7.1 multimedia networking applications

7.2 streaming stored audio and video

7.3 making the best out of best effort service

7.4 protocols for real-time interactive applications RTP, RTCP, SIP

7.5 providing multiple classes of service 7.6 providing QoS guarantees