41
Ch 7. Multimedia Networking Myungchul Kim [email protected]

Ch 7. Multimedia Networking Myungchul Kim [email protected]

Embed Size (px)

Citation preview

Page 1: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

Ch 7. Multimedia Networking

Myungchul Kim

[email protected]

Page 2: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

2

Multimedia and Quality of Service: What is it?

multimedia applications: network audio and video(“continuous media”)

network provides application with level of performance needed for application to function.

QoS

Page 3: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

3

– Sensitive to end-to-end delay and delay variation

– Streaming stored audio/video– Streaming live audio/video– Real-time interactive audio/video

Page 4: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

4

Multimedia networking applications

Examples of multimedia applications– Streaming stored audio and video

Stored media Streaming: RealPlayer, QuickTime, Media Continous playout

– Streaming live audio and video Internet radio and IPTV IP multicasting Application-layer multicast

– Real-time interactive audio and video Internet telephony (150 msec)

Page 5: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

5

Hurdles for multimedia in Today’s Internet– Best-effor service

How should the Internet evolve to support multimedia better?

– Hard guarantee vs soft guarnatee– Reservation approach

Protocol Modification of scheduling policies in the router queues Description of the application traffic Available bandwidth in the network

– Laissez-faire approach Overprovision bandwidth and switching capacity Content distribution networks (CDN) Multicast overlay networks

Differentiated service (Diffserv)

Page 6: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

6

Page 7: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

7

Audio compression in the Internet– 8,000 samples per second– 256 quantization with 8 bits– 64Kbps– Pulse code modulation (PCM)– GSM, G.729, G.723.3, MPEG 1 player 3 (MP3)

Video compression in the Internet– MPEG1, 2, 4– H.261

Page 8: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

8

Streaming Stored Audio and Video

Medio player– Decompression– Jitter removal

Page 9: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

9

Page 10: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

10

Real-time Streaming Protocol (RTSP)

Page 11: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

11

Making the best of the best-effort service

– Packet loss– End-to-end delay– Packet jitter

Removing jitter at the receiver for audio– Sequence number– Timestamp– Delaying playout at the receiver

Page 12: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

12

Page 13: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

13

Recovering from packet loss

Page 14: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

14

Page 15: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

15

Content Distribution Networks

Page 16: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

16

Page 17: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

17

Dimensioning best-effort networks to provide Quality of Service– Bandwidth provisioning– Network dimensioning

– Models of traffic demand between network end points– Well-defined performance requirements– Workload model

Page 18: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

18

Protocols for Real-time Interactive Applications RTP

– UDP– RTP header: the type of audio encoding, a sequence number, a

nd a timestamp

Page 19: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

19

Page 20: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

20

Page 21: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

21

RTP control protocol (RTCP)– Using IP multicast– Reports about statistics– Reception report

SSRC of the RTP streams The fraction of packets lost The last sequence number received The interarrival jitter

– Sender report The SSRC of the RTP streams The timestamp and wall clock time of the most recently generated

RTP packet The number of packets sent The number of bytes sent

Page 22: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

22

Page 23: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

23

Session Initiation Protocol (SIP)– Protocol does

Establishing calls between a caller and a callee over an IP network For the caller to determine the current IP address of the callee Call management

– Key characteristics Out-of-band protocol ASCII-readable All messages to be acknowledged

Page 24: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

24

Page 25: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

25

Setting up a call to known IP address Alice’s SIP invite message indicates her port number, IP address, encoding she prefers to receive (PCM ulaw)

Bob’s 200 OK message indicates his port number, IP address, preferred encoding (GSM)

SIP messages can be sent over TCP or UDP; here sent over RTP/UDP. default SIP port number is 5060.

time time

Bob'stermina l rings

A lice

167.180.112.24

Bob

193.64.210.89

port 38060

Law audio

G SMport 48753

Page 26: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

26

Page 27: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

27

ExampleCaller [email protected] with places a call to [email protected]

(1) Jim sends INVITEmessage to umass SIPproxy. (2) Proxy forwardsrequest to upenn registrar server. (3) upenn server returnsredirect response,indicating that it should try [email protected]

(4) umass proxy sends INVITE to eurecom registrar. (5) eurecom registrar forwards INVITE to 197.87.54.21, which is running keith’s SIP client. (6-8) SIP response sent back (9) media sent directly between clients. Note: also a SIP ack message, which is not shown.

SIP client217.123.56.89

SIP client197.87.54.21

SIP proxyum ass.edu

SIP registrarupenn.edu

SIPregistrareurecom .fr

1

2

34

5

6

7

8

9

Page 28: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

28

H.323

Page 29: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

29

Providing multiple classes of service

– Divide traffic into classes and provide different levels of service to the different classes of traffic.

– Differentiated service is provided among aggregates of traffic.– Type-of-service (ToS) in the IPv4

Page 30: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

30

Scenario 1: a 1 Mbps audio application and an FTP transfer– FIFO– Give strict priority to audio packets at R1– Each packet must be marked as belonging to one of these two

classes of traffic, e.g., ToS in IPv4

Page 31: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

31

Scenario 2: a 1 Mbps audio application and a high-priority FTP transfer– Packet classification allows a router to distinguish among packe

ts belonging to different classes of traffic.– A policy decision

Page 32: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

32

Scenario 3: A misbehaving audio application and an FTP transfer

Page 33: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

33

Scheduling and policing mechanisms

Link-scheduling mechanisms– First-In-First-Out (FIFO)

Page 34: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

34

– Priority Queueing

Page 35: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

35

– Round robin and weighted fair queueing (WFQ)

Page 36: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

36

– Policing: The Leaky Bucket: regulate the injecting rate of packets into the networks Average rate Peak rate Burst size

Page 37: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

37

Diffserv– Edge function: packet classification and traffic conditioning: the

diffentiated service field of the packet header– Core function: forwarding, per-hop behavior, aggregation

Page 38: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

38

– Diffserv traffic classfication and conditioning

Page 39: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

39

– Per-hop behaviors Differences in performance among classes Differences in performance observable and measureable Expedited forwarding, assured forwarding

Page 40: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

40

Providing quality of service guarantees

Resouce reservation, call admission, call setup– Traffic characterization and specification of the desired QoS– Signaling for call setup– Pre-element call admission

Page 41: Ch 7. Multimedia Networking Myungchul Kim mckim@icu.ac.kr

41

Guaranteed QoS: Intserv and RSVP– Individualized QoS guarantees– Reservations for bandwidth in multicast trees– Receiver-oriented– Provisioning? Using the policing and scheduling