28
Ch 6. Multimedia Networking Myungchul Kim [email protected]

Ch 6. Multimedia Networking Myungchul Kim [email protected]

Embed Size (px)

Citation preview

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

Ch 6. Multimedia Networking

Myungchul Kim

[email protected]

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

2

Networked multimedia applications: timing and tolerance of data loss

Delay-sensitive and loss-tolerant Streaming stored audio and video

– Stored media– Streaming: avoids having to download the entire file before begi

nning playout. Realplayer, QuickTime and Media Player– Continuous playout

Streaming live audio and video– Not stored, not fast-forward– Use the IP multicast

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

3

Real-time interactive audio and video– Real-time– Interactive– Internet phone– For voice, 150 msec, 150-400 msec, 400 msec

Hurdles for multimedia– End-to-end delay for a packet– Variation of packet delay, packet jitter– Packet loss

Supporting multimedia better in Internet– Reservation approach– Laissez-faire approach: ISP, CDN, multicast overlay networks– Differentiation approach

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

4

Audio and video compression– 1024 pixels * 1024 pixels with each pixel encoded into 24 bits => 3 Mbyt

e– 7 Min over a 64 kbps link– If the image is compressed at 10:1,

Audio compression– 8000 samples per second -> quantization with 256 values (8bits)-> 64,0

00 bits/second– Pulse code modulation– GSM, G.729, MPEG 1 layer 3(MP3),…

Video compression– MPEG 1, 2, 4, H.261

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

5

Real-time streaming protocol (RTSP)– User interactivity– RealPlayer and Media Player– Decompression, jitter removal, and correction– Fig 6.2

Streaming stored audio and video

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

6

Fig 6.3

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

7

RTSP– Control the playback of continuous media– No related with compression schemes, encapsulation in packets,

transportation, buffering– Out-of-band protocol– Over either TCP or UDP– Pause/resume, playback, fast-forward, and rewind

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

8

Fig 6.5

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

9

Every 20 msec over UDP Packet loss, end-to-end delay, and packet jitter Removing jitter at the receiver for audio

– With a sequence number, a timestamp or – delaying playout at the receiver

Internet phone

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

10

Fig 6.6

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

11

RTP– For sound and video– On UDP– RTP header: the type of audio encoding, a sequence number, a

nd a timestamp– Sequence number: detect packet loss – Timestamp: synchronous playout at the receiver– Synchronization source identifier (SSRC): identify the source of t

he RTP stream– Fig 6.9

Protocols for real-time interactive applications

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

12

Table 6.1 and 6.2

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

13

Developing software applications with RTP

Fig 6.10 and 6.11

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

14

RTP control protocol (RTCP)– In conjunction with RTP– Report statistics including number of packets sent, number of pa

ckets lost, and interarrival jitter.– RTP traffic vs RTSP traffic grows linearly with the number of rec

eivers (5 % of the session bandwidth).– Fig 6.12

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

15

SIP– Establish calls between a caller and a callee over an IP network– Caller determines the current IP address of the callee– Call management– Fig 6.13

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

16

SIP– SIP proxy and registrar (cf. DNS)– Fig 6.14

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

17

H.323– Fig 6.15

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

18

FIFO– Fig 6.21

Priority queuing using ToS– Fig 6.23

Scheduling and policing mechanisms

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

19

Round robin and weighted fair queuing (WFQ)– WFQ differs from round robin in that each class may receive a di

fferential amount of service in any interval of time.– Fig 6.26

Priority queuing using ToS– Fig 6.23

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

20

Policing: the leaky bucket– Policing criteria: average rate, peak rate, and burst rate– Polices a traffic flow– At most b tokens in the bucket = max burst size for leaky-bucket-

policed flow– Long-term average rate = Max number of packets entering the n

etwork in time t = rt + b– Fig 6.27

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

21

Individual applications sessions– Reserved resources– Call setup

Steps– Traffic characterization and specification of the desired QoS– Signaling for call setup– Per-element call admission– Fig 6.29

Integrated services

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

22

– Fig 6.30

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

23

Resources– Link bandwidth– Router buffers

Characteristics– Reservations for bandwidth in multicast trees– Receiver-oriented– Not specify how the network provides the reserved bandwidth to

the data flow -> provisioning done with the scheduling mechanisms

– Not a routing protocol– Signaling protocol

RSVP

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

24

Example– Video and audio be encoded in layers– The receiver pick out the layers that are appropriate for their rec

eiving rates.– Multicast routing protocol -> multicast tree -> rsvp– Fig 6.32

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

25

Difficulties of the Interserv– Scalability: per-flow using RSVP– Flexible service models: limited service classes

Architecture– Edge function: packet classification with marking and traffic cond

itioning, behavior aggregate– Core function: forwarding, per-hop behavior– Fig 6.34

Differentiated service

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

26

Fig 6.35

Fig 6.36

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

27

– Traffic profile– Metering function: compare the incoming packet flow with the

negotiated traffic profile and determine whether a packet is within the negotiated traffic profile.

– Fig 6.37

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

28

per-Hop behaviors– Expedited forwarding:– Assured forwarding

Criticisms of differentiated services– Multiple ISPs– How to police and authenticate