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

Data Communication and Networking Ch (29)

Apr 05, 2018

Download

Documents

Uzair Khan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 1/52

29.1

Chapter 29Multimedia

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

Page 2: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 2/52

29.2

Figure 29.1  Internet audio/video

Page 3: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 3/52

29.3

Streaming stored audio/video refers toon-demand requests for compressedaudio/video files.

 Note

Page 4: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 4/52

29.4

Streaming live audio/video refers to thebroadcasting of radio and TV programsthrough the Internet.

 Note

Page 5: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 5/52

29.5

Interactive audio/video refers to the useof the Internet for interactive audio/videoapplications.

 Note

Page 6: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 6/52

29.6

29-1 DIGITIZING AUDIO AND VIDEO

 Before audio or video signals can be sent on the

 Internet, they need to be digitized. We discuss audio

 and video separately.

Digitizing Audio

Digitizing Video

Topics discussed in this section:

Page 7: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 7/5229.7

Compression is needed to send videoover the Internet.

 Note

Page 8: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 8/5229.8

29-2 AUDIO AND VIDEO COMPRESSION

To send audio or video over the Internet requires

 compression. In this section, we discuss audio

 compression first and then video compression.

Audio Compression

Video Compression

Topics discussed in this section:

Page 9: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 9/5229.9

Figure 29.2  JPEG gray scale

Page 10: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 10/5229.10

Figure 29.3  JPEG process

Page 11: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 11/5229.11

Figure 29.4 Case 1: uniform gray scale

Page 12: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 12/5229.12

Figure 29.5 Case 2: two sections

Page 13: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 13/5229.13

Figure 29.6 Case 3: gradient gray scale

Page 14: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 14/5229.14

Figure 29.7  Reading the table

Page 15: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 15/5229.15

Figure 29.8  MPEG frames

Page 16: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 16/5229.16

Figure 29.9  MPEG frame construction

Page 17: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 17/5229.17

29-3 STREAMING STORED AUDIO/VIDEO

 Now that we have discussed digitizing and  compressing audio/video, we turn our attention to

 specific applications. The first is streaming stored 

 audio and video.

First Approach: Using a Web Server

Second Approach: Using a Web Server with a MetafileThird Approach: Using a Media Server

Fourth Approach: Using a Media Server and RTSP

Topics discussed in this section:

Page 18: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 18/5229.18

Figure 29.10 Using a Web server

Page 19: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 19/5229.19

Figure 29.11 Using a Web server with a metafile

Page 20: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 20/52

29.20

Figure 29.12 Using a media server

Page 21: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 21/52

29.21

Figure 29.13 Using a media server and RTSP

Page 22: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 22/52

29.22

29-4 STREAMING LIVE AUDIO/VIDEO

Streaming live audio/video is similar to the

 broadcasting of audio and video by radio and TV 

 stations. Instead of broadcasting to the air, the stations

 broadcast through the Internet. There are several  similarities between streaming stored audio/video and 

 streaming live audio/video. They are both sensitive to

 delay; neither can accept retransmission. However,

 there is a difference. In the first application, the communication is unicast and on-demand. In the

 second, the communication is multicast and live.

Page 23: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 23/52

29.23

29-5 REAL-TIME INTERACTIVE

AUDIO/VIDEO

 In real-time interactive audio/video, people communicate with one another in real time. The

 Internet phone or voice over IP is an example of this

 type of application. Video conferencing is another

example that allows people to communicate visually and orally.

CharacteristicsTopics discussed in this section:

Page 24: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 24/52

29.24

Figure 29.14 Time relationship

Page 25: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 25/52

29.25

Jitter is introduced in real-time data bythe delay between packets.

 Note

Page 26: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 26/52

29.26

Figure 29.15  Jitter

Page 27: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 27/52

29.27

Figure 29.16 Timestamp

Page 28: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 28/52

29.28

To prevent jitter, we can time-stamp thepackets and separate the arrival timefrom the playback time.

 Note

Page 29: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 29/52

29.29

Figure 29.17  Playback buffer

Page 30: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 30/52

29.30

A playback buffer is required for real-time traffic.

 Note

Page 31: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 31/52

29.31

A sequence number on each packet isrequired for real-time traffic.

 Note

Page 32: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 32/52

29.32

Real-time traffic needs the support ofmulticasting.

 Note

Page 33: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 33/52

29.33

Translation means changing theencoding of a payload to a lowerquality to match the bandwidth

of the receiving network.

 Note

Page 34: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 34/52

29.34

Mixing means combining severalstreams of traffic into one stream.

 Note

Page 35: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 35/52

29.35

TCP, with all its sophistication, is notsuitable for interactive multimediatraffic because we cannot allow

retransmission of packets.

 Note

Page 36: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 36/52

29.36

UDP is more suitable than TCP forinteractive traffic. However, we

need the services of RTP,another transport layerprotocol, to make upfor the deficiencies

of UDP.

 Note

Page 37: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 37/52

29.37

29-6 RTP

 Real-time Transport Protocol (RTP) is the protocol  designed to handle real-time traffic on the Internet.

 RTP does not have a delivery mechanism; it must be

used with UDP. RTP stands between UDP and the

 application program. The main contributions of RTP are time-stamping, sequencing, and mixing facilities.

RTP Packet Format

UDP Port

Topics discussed in this section:

Page 38: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 38/52

29.38

Figure 29.18  RTP

Page 39: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 39/52

29.39

Figure 29.19  RTP packet header format

Page 40: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 40/52

29.40

Table 20.1  Payload types

Page 41: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 41/52

29.41

RTP uses a temporary even-numberedUDP port.

 Note

Page 42: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 42/52

29.42

29-7 RTCP

 RTP allows only one type of message, one that carries data from the source to the destination. In many cases,

 there is a need for other messages in a session. These

 messages control the flow and quality of data and 

 allow the recipient to send feedback to the source or sources. Real-time Transport Control Protocol 

(RTCP) is a protocol designed for this purpose.

Sender Report and Receiver Report

Messages

UDP Port

Topics discussed in this section:

Page 43: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 43/52

29.43

Figure 29.20  RTCP message types

Page 44: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 44/52

29.44

RTCP uses an odd-numbered UDP portnumber that follows the port number

selected for RTP.

 Note

Page 45: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 45/52

29.45

29-8 VOICE OVER IP

 Let us concentrate on one real-time interactive audio/video application: voice over IP, or Internet

 telephony. The idea is to use the Internet as a

 telephone network with some additional capabilities.

Two protocols have been designed to handle this type of communication: SIP and H.323.

SIP

H.323

Topics discussed in this section:

Page 46: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 46/52

29.46

Figure 29.21 SIP messages

Page 47: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 47/52

29.47

Figure 29.22 SIP formats

Page 48: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 48/52

29.48

Figure 29.23 SIP simple session

Page 49: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 49/52

29.49

Figure 29.24 Tracking the callee

Page 50: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 50/52

29.50

Figure 29.25  H.323 architecture

Page 51: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 51/52

29.51

Figure 29.26  H.323 protocols

Figure 29 27 H 323 example

Page 52: Data Communication and Networking Ch (29)

8/2/2019 Data Communication and Networking Ch (29)

http://slidepdf.com/reader/full/data-communication-and-networking-ch-29 52/52

Figure 29.27  H.323 example