chapter 29 multimedia - kasetsart universityplw/dccn/presentation/ch29.pdf · 29.28. figure 29.17...

52
Chapter 29 Multimedia 29.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Upload: others

Post on 14-Jun-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Chapter 29

Multimedia

29.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 2: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.1 Internet audio/video

29.2

Page 3: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Streaming stored audio/video refers to d d t f don-demand requests for compressed

audio/video files.

29.3

Page 4: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Streaming live audio/video refers to the b d ti f di d TVbroadcasting of radio and TV programs

through the Internet.

29.4

Page 5: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Interactive audio/video refers to the use f th I t t f i t ti di / idof the Internet for interactive audio/video

applications.

29.5

Page 6: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--1 1 DIGITIZING AUDIO AND VIDEODIGITIZING AUDIO AND VIDEO

BeforeBefore audioaudio oror videovideo signalssignals cancan bebe sentsent onon thetheBeforeBefore audioaudio oror videovideo signalssignals cancan bebe sentsent onon thetheInternet,Internet, theythey needneed toto bebe digitizeddigitized.. WeWe discussdiscuss audioaudioandand videovideo separatelyseparatelyandand videovideo separatelyseparately..

Topics discussed in this section:Topics discussed in this section:Digitizing AudioDigitizing Video

29.6

Page 7: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Compression is needed to send video th I t tover the Internet.

29.7

Page 8: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--2 2 AUDIO AND VIDEO COMPRESSIONAUDIO AND VIDEO COMPRESSION

ToTo sendsend audioaudio oror videovideo overover thethe InternetInternet requiresrequirescompressioncompression.. InIn thisthis section,section, wewe discussdiscuss audioaudiocompressioncompression firstfirst andand thenthen videovideo compressioncompression..

Topics discussed in this section:Topics discussed in this section:Audio CompressionVideo Compression

Topics discussed in this section:Topics discussed in this section:

p

29.8

Page 9: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.2 JPEG gray scale

29.9

Page 10: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.3 JPEG process

29.10

Page 11: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.4 Case 1: uniform gray scale

29.11

Page 12: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.5 Case 2: two sections

29.12

Page 13: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.6 Case 3: gradient gray scale

29.13

Page 14: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.7 Reading the table

29.14

Page 15: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.8 MPEG frames

29.15

Page 16: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.9 MPEG frame construction

29.16

Page 17: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--3 3 STREAMING STORED AUDIO/VIDEOSTREAMING STORED AUDIO/VIDEO

NowNow thatthat wewe havehave discusseddiscussed digitizingdigitizing andandNowNow thatthat wewe havehave discusseddiscussed digitizingdigitizing andandcompressingcompressing audio/video,audio/video, wewe turnturn ourour attentionattention totospecificspecific applicationsapplications TheThe firstfirst isis streamingstreaming storedstoredspecificspecific applicationsapplications.. TheThe firstfirst isis streamingstreaming storedstoredaudioaudio andand videovideo..

Topics discussed in this section:Topics discussed in this section:First Approach: Using a Web ServerSecond Approach: Using a Web Server with a MetafileThird Approach: Using a Media ServerFourth Approach: Using a Media Server and RTSP

29.17

Page 18: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.10 Using a Web server

29.18

Page 19: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.11 Using a Web server with a metafile

29.19

Page 20: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.12 Using a media server

29.20

Page 21: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.13 Using a media server and RTSP

29.21

Page 22: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--4 4 STREAMING LIVE AUDIO/VIDEOSTREAMING LIVE AUDIO/VIDEO

StreamingStreaming livelive audio/videoaudio/video isis similarsimilar toto thethebroadcastingbroadcasting ofof audioaudio andand videovideo byby radioradio andand TVTVstationsstations.. InsteadInstead ofof broadcastingbroadcasting toto thethe air,air, thethe stationsstationsbroadcastbroadcast throughthrough thethe InternetInternet.. ThereThere areare severalseveralsimilaritiessimilarities betweenbetween streamingstreaming storedstored audio/videoaudio/video andandstreamingstreaming livelive audio/videoaudio/video.. TheyThey areare bothboth sensitivesensitive totodelaydelay;; neitherneither cancan acceptaccept retransmissionretransmission.. However,However,therethere isis aa differencedifference.. InIn thethe firstfirst application,application, thethecommunicationcommunication isis unicastunicast andand onon--demanddemand.. InIn thethesecond,second, thethe communicationcommunication isis multicastmulticast andand livelive..

29.22

Page 23: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--5 5 REALREAL--TIME INTERACTIVETIME INTERACTIVEAUDIO/VIDEOAUDIO/VIDEOAUDIO/VIDEOAUDIO/VIDEO

InIn realreal--timetime interactiveinteractive audio/video,audio/video, peoplepeopleInIn realreal timetime interactiveinteractive audio/video,audio/video, peoplepeoplecommunicatecommunicate withwith oneone anotheranother inin realreal timetime.. TheTheInternetInternet phonephone oror voicevoice overover IPIP isis anan exampleexample ofof thisthisInternetInternet phonephone oror voicevoice overover IPIP isis anan exampleexample ofof thisthistypetype ofof applicationapplication.. VideoVideo conferencingconferencing isis anotheranotherexampleexample thatthat allowsallows peoplepeople toto communicatecommunicate visuallyvisuallyexampleexample thatthat allowsallows peoplepeople toto communicatecommunicate visuallyvisuallyandand orallyorally..

Topics discussed in this section:Topics discussed in this section:Characteristics

29.23

Page 24: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.14 Time relationship

29.24

Page 25: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Jitter is introduced in real-time data by th d l b t k tthe delay between packets.

29.25

Page 26: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.15 Jitter

29.26

Page 27: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.16 Timestamp

29.27

Page 28: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

To prevent jitter, we can time-stamp the k t d t th i l tipackets and separate the arrival time

from the playback time.

29.28

Page 29: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.17 Playback buffer

29.29

Page 30: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

A playback buffer is required for real-ti t ffitime traffic.

29.30

Page 31: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

A sequence number on each packet is i d f l ti t ffirequired for real-time traffic.

29.31

Page 32: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Real-time traffic needs the support of lti timulticasting.

29.32

Page 33: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Translation means changing the di f l d t lencoding of a payload to a lower

quality to match the bandwidthof the receiving network.

29.33

Page 34: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

Mixing means combining several t f t ffi i t tstreams of traffic into one stream.

29.34

Page 35: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

TCP, with all its sophistication, is not it bl f i t ti lti disuitable for interactive multimedia

traffic because we cannot allow retransmission of packets.

29.35

Page 36: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

UDP is more suitable than TCP for interactive traffic However weinteractive traffic. However, we

need the services of RTP,another transport layer protocol, to make up p , pfor the deficiencies

of UDPof UDP.

29.36

Page 37: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--6 6 RTPRTP

RealReal--timetime TransportTransport ProtocolProtocol (RTP)(RTP) isis thethe protocolprotocolRealReal--timetime TransportTransport ProtocolProtocol (RTP)(RTP) isis thethe protocolprotocoldesigneddesigned toto handlehandle realreal--timetime traffictraffic onon thethe InternetInternet..RTPRTP doesdoes notnot havehave aa deliverydelivery mechanismmechanism;; itit mustmust bebeRTPRTP doesdoes notnot havehave aa deliverydelivery mechanismmechanism;; itit mustmust bebeusedused withwith UDPUDP.. RTPRTP standsstands betweenbetween UDPUDP andand thetheapplicationapplication programprogram TheThe mainmain contributionscontributions ofof RTPRTPapplicationapplication programprogram.. TheThe mainmain contributionscontributions ofof RTPRTPareare timetime--stamping,stamping, sequencing,sequencing, andand mixingmixing facilitiesfacilities..

RTP Packet FormatTopics discussed in this section:Topics discussed in this section:RTP Packet FormatUDP Port

29.37

Page 38: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.18 RTP

29.38

Page 39: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.19 RTP packet header format

29.39

Page 40: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Table 20.1 Payload types

29.40

Page 41: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

RTP uses a temporary even-numbered UDP tUDP port.

29.41

Page 42: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--7 7 RTCPRTCP

RTPRTP allowsallows onlyonly oneone typetype ofof message,message, oneone thatthat carriescarriesRTPRTP allowsallows onlyonly oneone typetype ofof message,message, oneone thatthat carriescarriesdatadata fromfrom thethe sourcesource toto thethe destinationdestination.. InIn manymany cases,cases,therethere isis aa needneed forfor otherother messagesmessages inin aa sessionsession.. TheseThesetherethere isis aa needneed forfor otherother messagesmessages inin aa sessionsession.. TheseThesemessagesmessages controlcontrol thethe flowflow andand qualityquality ofof datadata andandallowallow thethe recipientrecipient toto sendsend feedbackfeedback toto thethe sourcesourceallowallow thethe recipientrecipient toto sendsend feedbackfeedback toto thethe sourcesourceoror sourcessources.. RealReal--timetime TransportTransport ControlControl ProtocolProtocol(RTCP)(RTCP) isis aa protocolprotocol designeddesigned forfor thisthis purposepurpose..(RTCP)(RTCP) isis aa protocolprotocol designeddesigned forfor thisthis purposepurpose..

Topics discussed in this section:Topics discussed in this section:Sender Report and Receiver ReportMessagesUDP Port

29.42

UDP Port

Page 43: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.20 RTCP message types

29.43

Page 44: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Note

RTCP uses an odd-numbered UDP port b th t f ll th t bnumber that follows the port number

selected for RTP.

29.44

Page 45: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

2929--8 8 VOICE OVER IPVOICE OVER IP

LetLet usus concentrateconcentrate onon oneone realreal--timetime interactiveinteractiveaudio/videoaudio/video applicationapplication:: voicevoice overover IP,IP, oror InternetInternettelephonytelephony.. TheThe ideaidea isis toto useuse thethe InternetInternet asas aap yp ytelephonetelephone networknetwork withwith somesome additionaladditional capabilitiescapabilities..TwoTwo protocolsprotocols havehave beenbeen designeddesigned toto handlehandle thisthis typetypepp gg ypypofof communicationcommunication:: SIPSIP andand HH..323323..

SIPTopics discussed in this section:Topics discussed in this section:SIPH.323

29.45

Page 46: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.21 SIP messages

29.46

Page 47: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.22 SIP formats

29.47

Page 48: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.23 SIP simple session

29.48

Page 49: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.24 Tracking the callee

29.49

Page 50: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.25 H.323 architecture

29.50

Page 51: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.26 H.323 protocols

29.51

Page 52: Chapter 29 Multimedia - Kasetsart Universityplw/dccn/presentation/ch29.pdf · 29.28. Figure 29.17 Playback buffer 29.29. Note A playback buffer is required for real-ti t ffitime traffic

Figure 29.27 H.323 example

29.52