SlideShare une entreprise Scribd logo
1  sur  87
Chapter 25

        Multimedia




TCP/IP Protocol Suite                                                                                              1
                    Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
OBJECTIVES:
 To show how audio/video files can be downloaded for future use
  or broadcast to clients over the Internet. The Internet can also
  be used for live audio/video interaction. Audio and video need to
  be digitized before being sent over the Internet.
 To discuss how audio and video files are compressed for
  transmission through the Internet.
 To discuss the phenomenon called Jitter that can be created on a
  packet-switched network when transmitting real-time data.
 To introduce the Real-Time Transport Protocol (RTP) and Real-
  Time Transport Control Protocol (RTCP) used in multimedia
  applications.
 To discuss voice over IP as a real-time interactive audio/video
  application.
TCP/IP Protocol Suite                                               2
OBJECTIVES (continued):
 To introduce the Session Initiation Protocol (SIP) as an
  application layer protocol that establishes, manages, and
  terminates multimedia sessions.
 To introduce quality of service (QoS) and how it can be
  improved using scheduling techniques and traffic shaping
  techniques.
 To discuss Integrated Services and Differential Services and how
  they can be implemented.
 To introduce Resource Reservation Protocol (RSVP) as a
  signaling protocol that helps IP create a flow and makes a
  resource reservation.


TCP/IP Protocol Suite                                            3
25.1 Introduction
  Chapter
  Outline 25.2 Dig itizing Audio and V ideo
                        25.3 Audio/V ideo Compres s ion
                        25.4 S treaming S tored
                              Audio/V ideo
                        25.5 S treaming Liv e
                              Audio/V ideo
                        25.6 Real-Time Interactiv e
                             Audio/V ideo
                        25.7 RTP
TCP/IP Protocol Suite   25.8 RTCP                         4
Chapter 25.9 V oice Over IP
  Outline 25.10 Quality of S erv ice
  ( continued)
                        25.11 Integ rated S erv ices

                        25.12 Differentiated S erv ices




TCP/IP Protocol Suite                                     5
25-1 INTRODUCTION

   We can divide audio and video services into
   three broad categories: streaming stored
   audio/video, streaming live audio/video, and
   interactive audio/video, as shown in Figure
   25.1. Streaming means a user can listen (or
   watch) the file after the downloading has
   started.




TCP/IP Protocol Suite                         6
Figure 25.1   Internet audio/video




TCP/IP Protocol Suite                           7
Note

         Streaming stored audio/video refers to
          on-demand requests for compressed
                   audio/video files.




TCP/IP Protocol Suite                             8
Note

            Streaming live audio/video refers to
             the broadcasting of radio and TV
               programs through the Internet.




TCP/IP Protocol Suite                              9
Note

        Interactive audio/video refers to the use
              of the Internet for interactive
                audio/video applications.




TCP/IP Protocol Suite                               10
25-2 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.




TCP/IP Protocol Suite                         11
Topics Discussed in the Section
   Digitizing Audio
   Digitizing Video




TCP/IP Protocol Suite              12
Note

          Compression is needed to send video
                  over the Internet.




TCP/IP Protocol Suite                           13
25-3 AUDIO AND VIDEO COMPRESSION

   To send audio or video over the Internet
   requires compression. In this section, we
   first discuss audio compression and then
   video compression.




TCP/IP Protocol Suite                      14
Topics Discussed in the Section
   Audio Compression
   Video Compression




TCP/IP Protocol Suite              15
Figure 25.2   JPEG gray scale




TCP/IP Protocol Suite                      16
Figure 25.3   JPEG process




TCP/IP Protocol Suite                   17
Figure 25.4   Case 1: uniform gray scale




TCP/IP Protocol Suite                                 18
Figure 25.5   Case2: two sections




TCP/IP Protocol Suite                          19
Figure 25.6   Case 3 : gradient gray scale




TCP/IP Protocol Suite                                   20
Figure 25.7   Reading the table




TCP/IP Protocol Suite                        21
Figure 25.8   MPEG frames




TCP/IP Protocol Suite                  22
Figure 25.9   MPEG frame construction




TCP/IP Protocol Suite                              23
25-4 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.
   Downloading these types of files from a Web
   server can be different from downloading
   other types of files. To understand the
   concept, let us discuss three approaches,
   each with a different complexity.


TCP/IP Protocol Suite                             24
Topics Discussed in the Section
   First Approach: Using a Web Server
   Second Approach: Using a Web Server with Metafile
   Third Approach: Using a Media Server
   Fourth Approach: Using a Media Server and RTSP




TCP/IP Protocol Suite                              25
Figure 25.10        Using a Web server




                                          GET: audio/video file
                                 1

                                              RESPONSE
                                                                  2

                        3
                            Audio/video
                                      o
                               file




TCP/IP Protocol Suite                                                 26
Figure 25.11       Using a Web server with a metafile




                                                GET: metafile
                                   1

                                                 RESPONSE
                                                                     2
                          3
                              Metafile

                                             GET: audio/video file
                                   4
                                                 RESPONSE
                                                                     5




TCP/IP Protocol Suite                                                    27
Figure 25.12       Using a media server




                                               GET: metafile
                                   1

                                                RESPONSE
                                                                     2
                          3
                              Metafile

                                             GET: audio/video file
                                   4
                                                RESPONSE
                                                                     5




TCP/IP Protocol Suite                                                    28
Figure 25.13   Using a media server and RSTP




                                            GET: metafile
                                     1


                                             RESPONSE
                                                            2
                            3
                                Metafile
                                              SETUP
                                     4
                                            RESPONSE
                                                            5
                                               PLAY
                                     6
                                            RESPONSE
                                                            7
                                           Audio/video
                                             Stream
                                            TEARDOWN
                                     8
                                             RESPONSE
                                                            9

TCP/IP Protocol Suite                                           29
25-5 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
TCP/IP Protocol Suite                         30
25-6 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.




TCP/IP Protocol Suite                         31
Topics Discussed in the Section
   Characteristics




TCP/IP Protocol Suite              32
Figure 25.14   Time relationship




TCP/IP Protocol Suite                         33
Note

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




TCP/IP Protocol Suite                                34
Figure 25.15   Jitter




TCP/IP Protocol Suite              35
Figure 25.16   Timestamp




TCP/IP Protocol Suite                 36
Note

         To prevent jitter, we can timestamp the
          packets and separate the arrival time
                from the playback time.




TCP/IP Protocol Suite                              37
Figure 25.17   Playback buffer




TCP/IP Protocol Suite                       38
Note

                A playback buffer is required for
                        real-time traffic.




TCP/IP Protocol Suite                               39
Note

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




TCP/IP Protocol Suite                           40
Note

           Real-time traffic needs the support of
                        multicasting.




TCP/IP Protocol Suite                               41
Note

                Translation means changing the
                encoding of a payload to a lower
                 quality to match the bandwidth
                   of the receiving network.




TCP/IP Protocol Suite                              42
Note

               Mixing means combining several
               streams of traffic into one stream.




TCP/IP Protocol Suite                                43
Note

           TCP, with all its sophistication, is not
            suitable for interactive multimedia
             traffic because we cannot allow
                retransmission of packets.




TCP/IP Protocol Suite                                 44
Note

             UDP is more suitable than TCP for
           interactive traffic. However, we need
                the services of RTP, another
             transport layer protocol, to make
               up for the deficiencies of UDP.



TCP/IP Protocol Suite                              45
25-7 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   (multicasting,   port
   numbers, and so on); it must be used with
   UDP. RTP stands between UDP and the
   application program. The main contributions
   of RTP are timestamping, sequencing, and
   mixing facilities.


TCP/IP Protocol Suite                          46
Topics Discussed in the Section
   RTP Packet Format
   UDP Port




TCP/IP Protocol Suite              47
Figure 25.18   RTP packet header format




TCP/IP Protocol Suite                                48
Figure 25.19   RTP packet header format




TCP/IP Protocol Suite                                49
TCP/IP Protocol Suite   50
Note

         RTP uses a temporary even-numbered
                      UDP port.




TCP/IP Protocol Suite                         51
25-8 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.


TCP/IP Protocol Suite                        52
Topics Discussed in the Section
   Sender Report
   Receiver Report
   Source Description Message
   Bye Message
   Application-Specific Message
   UDP Port




TCP/IP Protocol Suite              53
Figure 25.20   RTCP message types




TCP/IP Protocol Suite                          54
Note

         RTCP uses an odd-numbered UDP port
          number that follows the port number
                   selected for RTP.




TCP/IP Protocol Suite                           55
25-9 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. Instead of
 communicating             over   a    circuit-switched
 network,             this      application      allows
 communication between two parties over the
 packet-switched Internet. Two protocols
 have been designed to handle this type of
 communication: SIP and H.323. We briefly
 discuss both.
TCP/IP Protocol Suite                                   56
Topics Discussed in the Section
   SIP
   H.323




TCP/IP Protocol Suite              57
Figure 25.21   SIP messages




TCP/IP Protocol Suite                    58
Figure 25.22   SIP formats




TCP/IP Protocol Suite                   59
Figure 25.23   SIP simple session




                                           INVITE: address, options
          Establishing                            OK: address

                                                     ACK


       Communicating                           Exchanging audio




          Terminating                               BYE




TCP/IP Protocol Suite                                                 60
Figure 25.24    Tracking the callee




                          INVITE
                                                 Lookup

                                                 Reply

                                                               INVITE

                                                                OK
                           OK

                           ACK

                                                                ACK


                                            Exchanging audio


                                                 BYE

TCP/IP Protocol Suite                                                   61
Figure 25.25   H.323 architecture




TCP/IP Protocol Suite                          62
Figure 25.26   H.323 protocols




TCP/IP Protocol Suite                       63
Figure 25.27   H.323 example




                           Find IP address
                            of gatekeeper




                                                 Q.931 message
                                                    for setup




                                             RTP for audio exchange
                                             RTCP for management


                                                 Q.931 message
                                                 for termination

TCP/IP Protocol Suite                                                 64
25-10 QUALITY OF SERVICE

   Quality    of   service   (QoS)     is   an
   internetworking   issue  that   has    been
   discussed more than defined. We can
   informally define quality of service as
   something a flow of data seeks to attain.
   Although QoS can be applied to both textual
   data and multimedia, it is more an issue
   when we are dealing with multimedia.



TCP/IP Protocol Suite                        65
Topics Discussed in the Section
   Flow Characteristics
   Flow Classes
   Techniques to Improve QoS
   Resource Reservation
   Admission Control




TCP/IP Protocol Suite              66
Figure 25.28   Flow characteristics




TCP/IP Protocol Suite                            67
Figure 25.29   FIFO queues




TCP/IP Protocol Suite                   68
Figure 25.30   Priority queues




TCP/IP Protocol Suite                       69
Figure 25.31   Weighted fair queuing




TCP/IP Protocol Suite                             70
Figure 25.32   Leaky bucket




TCP/IP Protocol Suite                    71
Figure 25.33   Leaky bucket implementation




TCP/IP Protocol Suite                                   72
Note

        A leaky bucket algorithm shapes bursty
             traffic into fixed-rate traffic by
                averaging the data rate.

                    It may drop the packets if the
                            bucket is full.

TCP/IP Protocol Suite                                73
Figure 25.34   Token bucket




TCP/IP Protocol Suite                    74
Note

       The token bucket allows bursty traffic at
             a regulated maximum rate.




TCP/IP Protocol Suite                              75
25-11 INTEGRATED SERVICES

   IP was originally designed for best-effort
   delivery. This means that every user
   receives the same level of services. This
   type of delivery does not guarantee the
   minimum of a service, such as bandwidth, to
   applications such as real-time audio and
   video. Integrated Services, sometimes called
   IntServ, is a flow-based QoS model, which
   means that a user needs to create a flow, a
   kind of virtual circuit, from the source to the
   destination and inform all routers of the
   resource requirement.
TCP/IP Protocol Suite                            76
Topics Discussed in the Section
   Signaling
   Flow Specification
   Admission
   Service Classes
   RSVP
   Problems with Integrated Services




TCP/IP Protocol Suite                   77
Note

        Integrated Services is a flow-based QoS
                 model designed for IP.




TCP/IP Protocol Suite                             78
Figure 25.35   Path messages




TCP/IP Protocol Suite                     79
Figure 25.36   Resv messages




TCP/IP Protocol Suite                     80
Figure 25.37   Reservation merging




TCP/IP Protocol Suite                           81
Figure 25.38   Reservation styles




TCP/IP Protocol Suite                          82
25-12 DIFFERENTIATED SERVICES

   Differentiated Services (DS or Diffserv) was
   introduced by the IETF (Internet Engineering
   Task Force) to handle the shortcomings of
   Integrated Services.




TCP/IP Protocol Suite                         83
Topics Discussed in the Section
   DS Field




TCP/IP Protocol Suite              84
Note

        Differentiated Services is a class-based
              QoS model designed for IP.




TCP/IP Protocol Suite                              85
Figure 25.39   DS field




TCP/IP Protocol Suite                86
Figure 25.40   Traffic conditioner




TCP/IP Protocol Suite                           87

Contenu connexe

Tendances

AccessGrid-to-Go : Providing AccessGrid access on Personal ...
AccessGrid-to-Go : Providing AccessGrid access on Personal ...AccessGrid-to-Go : Providing AccessGrid access on Personal ...
AccessGrid-to-Go : Providing AccessGrid access on Personal ...Videoguy
 
QoS and QoE evaluation analysis of Skype multimedia service
QoS and QoE evaluation analysis of Skype multimedia serviceQoS and QoE evaluation analysis of Skype multimedia service
QoS and QoE evaluation analysis of Skype multimedia serviceKonstantinos Stamatakis
 
cas_Knowledge_Network
cas_Knowledge_Networkcas_Knowledge_Network
cas_Knowledge_NetworkOliver Eichel
 
10 Lecture Ftp
10 Lecture Ftp10 Lecture Ftp
10 Lecture FtpEri Alam
 

Tendances (6)

Ipv6
Ipv6Ipv6
Ipv6
 
AccessGrid-to-Go : Providing AccessGrid access on Personal ...
AccessGrid-to-Go : Providing AccessGrid access on Personal ...AccessGrid-to-Go : Providing AccessGrid access on Personal ...
AccessGrid-to-Go : Providing AccessGrid access on Personal ...
 
Perl 1997 Paper
Perl 1997 PaperPerl 1997 Paper
Perl 1997 Paper
 
QoS and QoE evaluation analysis of Skype multimedia service
QoS and QoE evaluation analysis of Skype multimedia serviceQoS and QoE evaluation analysis of Skype multimedia service
QoS and QoE evaluation analysis of Skype multimedia service
 
cas_Knowledge_Network
cas_Knowledge_Networkcas_Knowledge_Network
cas_Knowledge_Network
 
10 Lecture Ftp
10 Lecture Ftp10 Lecture Ftp
10 Lecture Ftp
 

Similaire à Chap 25 (20)

PowerPoint_merge.ppt
PowerPoint_merge.pptPowerPoint_merge.ppt
PowerPoint_merge.ppt
 
PowerPoint_merge (2).pdf
PowerPoint_merge (2).pdfPowerPoint_merge (2).pdf
PowerPoint_merge (2).pdf
 
Chap 02
Chap 02Chap 02
Chap 02
 
Chap 25 multimedia
Chap 25 multimediaChap 25 multimedia
Chap 25 multimedia
 
Internet Technology
Internet TechnologyInternet Technology
Internet Technology
 
Chapter 29 - Mutimedia
Chapter 29 - MutimediaChapter 29 - Mutimedia
Chapter 29 - Mutimedia
 
Chapter 29
Chapter 29Chapter 29
Chapter 29
 
Chapter7 multimedia
Chapter7 multimediaChapter7 multimedia
Chapter7 multimedia
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Chap 11
Chap 11Chap 11
Chap 11
 
Multimedia streming surver aiw
Multimedia streming surver aiwMultimedia streming surver aiw
Multimedia streming surver aiw
 
Chap 13
Chap 13Chap 13
Chap 13
 
Internet Video
Internet VideoInternet Video
Internet Video
 
Ftp
FtpFtp
Ftp
 
OSI MODEL
OSI MODELOSI MODEL
OSI MODEL
 
Chap 14
Chap 14Chap 14
Chap 14
 
29 Multimedia
29 Multimedia29 Multimedia
29 Multimedia
 
Chap-22.ppt
Chap-22.pptChap-22.ppt
Chap-22.ppt
 
Protocol Ppt[1]
Protocol Ppt[1]Protocol Ppt[1]
Protocol Ppt[1]
 
Chap 02 osi model
Chap 02 osi modelChap 02 osi model
Chap 02 osi model
 

Dernier

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Dernier (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Chap 25

  • 1. Chapter 25 Multimedia TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
  • 2. OBJECTIVES:  To show how audio/video files can be downloaded for future use or broadcast to clients over the Internet. The Internet can also be used for live audio/video interaction. Audio and video need to be digitized before being sent over the Internet.  To discuss how audio and video files are compressed for transmission through the Internet.  To discuss the phenomenon called Jitter that can be created on a packet-switched network when transmitting real-time data.  To introduce the Real-Time Transport Protocol (RTP) and Real- Time Transport Control Protocol (RTCP) used in multimedia applications.  To discuss voice over IP as a real-time interactive audio/video application. TCP/IP Protocol Suite 2
  • 3. OBJECTIVES (continued):  To introduce the Session Initiation Protocol (SIP) as an application layer protocol that establishes, manages, and terminates multimedia sessions.  To introduce quality of service (QoS) and how it can be improved using scheduling techniques and traffic shaping techniques.  To discuss Integrated Services and Differential Services and how they can be implemented.  To introduce Resource Reservation Protocol (RSVP) as a signaling protocol that helps IP create a flow and makes a resource reservation. TCP/IP Protocol Suite 3
  • 4. 25.1 Introduction Chapter Outline 25.2 Dig itizing Audio and V ideo 25.3 Audio/V ideo Compres s ion 25.4 S treaming S tored Audio/V ideo 25.5 S treaming Liv e Audio/V ideo 25.6 Real-Time Interactiv e Audio/V ideo 25.7 RTP TCP/IP Protocol Suite 25.8 RTCP 4
  • 5. Chapter 25.9 V oice Over IP Outline 25.10 Quality of S erv ice ( continued) 25.11 Integ rated S erv ices 25.12 Differentiated S erv ices TCP/IP Protocol Suite 5
  • 6. 25-1 INTRODUCTION We can divide audio and video services into three broad categories: streaming stored audio/video, streaming live audio/video, and interactive audio/video, as shown in Figure 25.1. Streaming means a user can listen (or watch) the file after the downloading has started. TCP/IP Protocol Suite 6
  • 7. Figure 25.1 Internet audio/video TCP/IP Protocol Suite 7
  • 8. Note Streaming stored audio/video refers to on-demand requests for compressed audio/video files. TCP/IP Protocol Suite 8
  • 9. Note Streaming live audio/video refers to the broadcasting of radio and TV programs through the Internet. TCP/IP Protocol Suite 9
  • 10. Note Interactive audio/video refers to the use of the Internet for interactive audio/video applications. TCP/IP Protocol Suite 10
  • 11. 25-2 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. TCP/IP Protocol Suite 11
  • 12. Topics Discussed in the Section  Digitizing Audio  Digitizing Video TCP/IP Protocol Suite 12
  • 13. Note Compression is needed to send video over the Internet. TCP/IP Protocol Suite 13
  • 14. 25-3 AUDIO AND VIDEO COMPRESSION To send audio or video over the Internet requires compression. In this section, we first discuss audio compression and then video compression. TCP/IP Protocol Suite 14
  • 15. Topics Discussed in the Section  Audio Compression  Video Compression TCP/IP Protocol Suite 15
  • 16. Figure 25.2 JPEG gray scale TCP/IP Protocol Suite 16
  • 17. Figure 25.3 JPEG process TCP/IP Protocol Suite 17
  • 18. Figure 25.4 Case 1: uniform gray scale TCP/IP Protocol Suite 18
  • 19. Figure 25.5 Case2: two sections TCP/IP Protocol Suite 19
  • 20. Figure 25.6 Case 3 : gradient gray scale TCP/IP Protocol Suite 20
  • 21. Figure 25.7 Reading the table TCP/IP Protocol Suite 21
  • 22. Figure 25.8 MPEG frames TCP/IP Protocol Suite 22
  • 23. Figure 25.9 MPEG frame construction TCP/IP Protocol Suite 23
  • 24. 25-4 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. Downloading these types of files from a Web server can be different from downloading other types of files. To understand the concept, let us discuss three approaches, each with a different complexity. TCP/IP Protocol Suite 24
  • 25. Topics Discussed in the Section  First Approach: Using a Web Server  Second Approach: Using a Web Server with Metafile  Third Approach: Using a Media Server  Fourth Approach: Using a Media Server and RTSP TCP/IP Protocol Suite 25
  • 26. Figure 25.10 Using a Web server GET: audio/video file 1 RESPONSE 2 3 Audio/video o file TCP/IP Protocol Suite 26
  • 27. Figure 25.11 Using a Web server with a metafile GET: metafile 1 RESPONSE 2 3 Metafile GET: audio/video file 4 RESPONSE 5 TCP/IP Protocol Suite 27
  • 28. Figure 25.12 Using a media server GET: metafile 1 RESPONSE 2 3 Metafile GET: audio/video file 4 RESPONSE 5 TCP/IP Protocol Suite 28
  • 29. Figure 25.13 Using a media server and RSTP GET: metafile 1 RESPONSE 2 3 Metafile SETUP 4 RESPONSE 5 PLAY 6 RESPONSE 7 Audio/video Stream TEARDOWN 8 RESPONSE 9 TCP/IP Protocol Suite 29
  • 30. 25-5 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 TCP/IP Protocol Suite 30
  • 31. 25-6 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. TCP/IP Protocol Suite 31
  • 32. Topics Discussed in the Section  Characteristics TCP/IP Protocol Suite 32
  • 33. Figure 25.14 Time relationship TCP/IP Protocol Suite 33
  • 34. Note Jitter is introduced in real-time data by the delay between packets. TCP/IP Protocol Suite 34
  • 35. Figure 25.15 Jitter TCP/IP Protocol Suite 35
  • 36. Figure 25.16 Timestamp TCP/IP Protocol Suite 36
  • 37. Note To prevent jitter, we can timestamp the packets and separate the arrival time from the playback time. TCP/IP Protocol Suite 37
  • 38. Figure 25.17 Playback buffer TCP/IP Protocol Suite 38
  • 39. Note A playback buffer is required for real-time traffic. TCP/IP Protocol Suite 39
  • 40. Note A sequence number on each packet is required for real-time traffic. TCP/IP Protocol Suite 40
  • 41. Note Real-time traffic needs the support of multicasting. TCP/IP Protocol Suite 41
  • 42. Note Translation means changing the encoding of a payload to a lower quality to match the bandwidth of the receiving network. TCP/IP Protocol Suite 42
  • 43. Note Mixing means combining several streams of traffic into one stream. TCP/IP Protocol Suite 43
  • 44. Note TCP, with all its sophistication, is not suitable for interactive multimedia traffic because we cannot allow retransmission of packets. TCP/IP Protocol Suite 44
  • 45. Note UDP is more suitable than TCP for interactive traffic. However, we need the services of RTP, another transport layer protocol, to make up for the deficiencies of UDP. TCP/IP Protocol Suite 45
  • 46. 25-7 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 (multicasting, port numbers, and so on); it must be used with UDP. RTP stands between UDP and the application program. The main contributions of RTP are timestamping, sequencing, and mixing facilities. TCP/IP Protocol Suite 46
  • 47. Topics Discussed in the Section  RTP Packet Format  UDP Port TCP/IP Protocol Suite 47
  • 48. Figure 25.18 RTP packet header format TCP/IP Protocol Suite 48
  • 49. Figure 25.19 RTP packet header format TCP/IP Protocol Suite 49
  • 51. Note RTP uses a temporary even-numbered UDP port. TCP/IP Protocol Suite 51
  • 52. 25-8 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. TCP/IP Protocol Suite 52
  • 53. Topics Discussed in the Section  Sender Report  Receiver Report  Source Description Message  Bye Message  Application-Specific Message  UDP Port TCP/IP Protocol Suite 53
  • 54. Figure 25.20 RTCP message types TCP/IP Protocol Suite 54
  • 55. Note RTCP uses an odd-numbered UDP port number that follows the port number selected for RTP. TCP/IP Protocol Suite 55
  • 56. 25-9 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. Instead of communicating over a circuit-switched network, this application allows communication between two parties over the packet-switched Internet. Two protocols have been designed to handle this type of communication: SIP and H.323. We briefly discuss both. TCP/IP Protocol Suite 56
  • 57. Topics Discussed in the Section  SIP  H.323 TCP/IP Protocol Suite 57
  • 58. Figure 25.21 SIP messages TCP/IP Protocol Suite 58
  • 59. Figure 25.22 SIP formats TCP/IP Protocol Suite 59
  • 60. Figure 25.23 SIP simple session INVITE: address, options Establishing OK: address ACK Communicating Exchanging audio Terminating BYE TCP/IP Protocol Suite 60
  • 61. Figure 25.24 Tracking the callee INVITE Lookup Reply INVITE OK OK ACK ACK Exchanging audio BYE TCP/IP Protocol Suite 61
  • 62. Figure 25.25 H.323 architecture TCP/IP Protocol Suite 62
  • 63. Figure 25.26 H.323 protocols TCP/IP Protocol Suite 63
  • 64. Figure 25.27 H.323 example Find IP address of gatekeeper Q.931 message for setup RTP for audio exchange RTCP for management Q.931 message for termination TCP/IP Protocol Suite 64
  • 65. 25-10 QUALITY OF SERVICE Quality of service (QoS) is an internetworking issue that has been discussed more than defined. We can informally define quality of service as something a flow of data seeks to attain. Although QoS can be applied to both textual data and multimedia, it is more an issue when we are dealing with multimedia. TCP/IP Protocol Suite 65
  • 66. Topics Discussed in the Section  Flow Characteristics  Flow Classes  Techniques to Improve QoS  Resource Reservation  Admission Control TCP/IP Protocol Suite 66
  • 67. Figure 25.28 Flow characteristics TCP/IP Protocol Suite 67
  • 68. Figure 25.29 FIFO queues TCP/IP Protocol Suite 68
  • 69. Figure 25.30 Priority queues TCP/IP Protocol Suite 69
  • 70. Figure 25.31 Weighted fair queuing TCP/IP Protocol Suite 70
  • 71. Figure 25.32 Leaky bucket TCP/IP Protocol Suite 71
  • 72. Figure 25.33 Leaky bucket implementation TCP/IP Protocol Suite 72
  • 73. Note A leaky bucket algorithm shapes bursty traffic into fixed-rate traffic by averaging the data rate. It may drop the packets if the bucket is full. TCP/IP Protocol Suite 73
  • 74. Figure 25.34 Token bucket TCP/IP Protocol Suite 74
  • 75. Note The token bucket allows bursty traffic at a regulated maximum rate. TCP/IP Protocol Suite 75
  • 76. 25-11 INTEGRATED SERVICES IP was originally designed for best-effort delivery. This means that every user receives the same level of services. This type of delivery does not guarantee the minimum of a service, such as bandwidth, to applications such as real-time audio and video. Integrated Services, sometimes called IntServ, is a flow-based QoS model, which means that a user needs to create a flow, a kind of virtual circuit, from the source to the destination and inform all routers of the resource requirement. TCP/IP Protocol Suite 76
  • 77. Topics Discussed in the Section  Signaling  Flow Specification  Admission  Service Classes  RSVP  Problems with Integrated Services TCP/IP Protocol Suite 77
  • 78. Note Integrated Services is a flow-based QoS model designed for IP. TCP/IP Protocol Suite 78
  • 79. Figure 25.35 Path messages TCP/IP Protocol Suite 79
  • 80. Figure 25.36 Resv messages TCP/IP Protocol Suite 80
  • 81. Figure 25.37 Reservation merging TCP/IP Protocol Suite 81
  • 82. Figure 25.38 Reservation styles TCP/IP Protocol Suite 82
  • 83. 25-12 DIFFERENTIATED SERVICES Differentiated Services (DS or Diffserv) was introduced by the IETF (Internet Engineering Task Force) to handle the shortcomings of Integrated Services. TCP/IP Protocol Suite 83
  • 84. Topics Discussed in the Section  DS Field TCP/IP Protocol Suite 84
  • 85. Note Differentiated Services is a class-based QoS model designed for IP. TCP/IP Protocol Suite 85
  • 86. Figure 25.39 DS field TCP/IP Protocol Suite 86
  • 87. Figure 25.40 Traffic conditioner TCP/IP Protocol Suite 87