SlideShare una empresa de Scribd logo
1 de 15
RTP: A Transport Protocol for
     Real-Time Applications
Provides end-to-end delivery services for data with real-time
 characteristics, such as interactive audio and video.
Those services include payload type identification, sequence
 numbering, timestamping and delivery monitoring.
Applications typically run RTP on top of UDP
RTCP
RTP is augmented by a control protocol (RTCP) to allow
  monitoring of the data delivery in a manner scalable to large
  multicast networks, and to provide      minimal control and
  identification functionality.
RTP Use Scenarios
Simple Multicast Audio Conference
  The audio conferencing application used by each conference
   participant sends audio data in small chunks of, say, 20 ms
   duration.
  Each chunk of audio data is preceded by an RTP header; RTP
   header and data are in turn contained in a UDP packet.
  The RTP header indicates what type of audio encoding (such
   as PCM, ADPCM or LPC) is contained in each packet.
TP header contains timing information and a sequence
 number that allow the receivers to reconstruct the timing
 produced by the source.
The sequence number can also be used by the receiver to
 estimate how many packets are being lost.
the audio application in the conference periodically multicasts
 a reception report plus the name of its user on the RTCP port.
 The reception report indicates how well the current speaker is
 being received.
A site sends the RTCP BYE packet when it leaves the
 conference.
 Audio and Video Conference
  Audio and video media are are transmitted as separate RTP session
   and RTCP packets are transmitted for each medium using two
   different UDP port pairs and/or multicast addresses.
  There is no direct coupling at the RTP level between the audio and
   video sessions, except that a user participating in both sessions
   should use the same distinguished (canonical) name in the RTCP
   packets for both so that the sessions can be associated.
  Despite the separation, synchronized playback of a source's audio
   and video can be achieved using timing information carried in the
   RTP packets for both sessions.
MIXER
Receives streams of RTP data packets from one or more
 sources, possibly changes the data format, combines the
 streams in some manner and then forwards the
 combined stream.
All data packets forwarded by a mixer will be marked
 with the mixer's own SSRC identifier. In order to
 preserve the identity of the original sources
 contributing to the mixed packet
Translator
Forwards RTP packets with their SSRC identifier intact
May change the encoding of the data and     thus the RTP
  data payload type
RTP Header

      Payload type          Sequence number


             Timestamp

          SSRC identifier
RTCP
Is based on the periodic transmission of control packets to
  all participants in the session and perform the following
  functions:
  provide feedback on the quality of the data distribution and
    allows one who is observing problems to evaluate whether
    those problems are local or global.
RTCP carries an identifier for an RTP source called the
 canonical name or CNAME. Receivers use CNAME to associate
 multiple data streams from a given participant in a set of related
 RTP sessions, for example to synchronize audio and video.
RTCP Packet Format

SR: Sender report, for transmission and reception statistics from
 participants that are active senders.
RR: Receiver report, for reception statistics from participants
 that are not active senders.
SDES: Source description items, including CNAME.
BYE: Indicates end of participation.
APP: Application specific functions.
RTCP Transmission Interval
 RTP is designed to allow an application to scale automatically over
   session sizes ranging from a few participants to thousands.
 In an audio conference the data traffic is inherently self- limiting
  because only one or two people will speak at a time, so with
  multicast distribution the data rate on any given link remains
  relatively constant independent of the number of participants.
 However, the control traffic is not self-limiting. If the reception
  reports from each participant were sent at a constant rate, the
  control traffic would grow linearly with the number of
  participants.
 To maintain scalability, the average interval between packets from
  a session participant should scale with the group size.
 The control traffic should be limited to a small and known
  fraction of the session bandwidth:
    small so that the primary function of the transport protocol to carry data is
     not impaired;
    known so that each participant can independently calculate its share.
 It is suggested that the fraction of the session bandwidth allocated
  to RTCP be fixed at 5%
Receiver Report RTCP Packet
       RC          Type                  Length

                SSRC of packet sender

                SSRC of first source




                                                         Report block 1
Fraction lost         Cumulative number of packet lost

                   Interarrival jitter

                       Last SR

                 Delay since last SR

                    Report block 2
SRC Identifier Allocation
  The SSRC identifier carried in the RTP header and in various
   fields of RTCP packets is a random 32-bit number that is
   required to be globally unique within an RTP session.
  All RTP implementations must be prepared to detect collisions
   and take the appropriate actions to resolve them.
  If a source discovers at any time that another source is using the
   same SSRC identifier as its own, it must send an RTCP BYE
   packet for the old identifier and choose another random one.
  If a receiver discovers that two other sources are colliding, it
   may keep the packets from one and discard the packets from the
   other.

Más contenido relacionado

La actualidad más candente

Sip technology overview
Sip technology overviewSip technology overview
Sip technology overview
Oded Ben-Dori
 
Stcn presentation
Stcn presentationStcn presentation
Stcn presentation
Sutanu Paul
 

La actualidad más candente (20)

Rtsp
RtspRtsp
Rtsp
 
RTSP Protocol - Explanation to develop API of RTSP Protocol
RTSP Protocol - Explanation to develop API of RTSP ProtocolRTSP Protocol - Explanation to develop API of RTSP Protocol
RTSP Protocol - Explanation to develop API of RTSP Protocol
 
RTSP Analysis Wireshark
RTSP Analysis WiresharkRTSP Analysis Wireshark
RTSP Analysis Wireshark
 
Realtimetapan
RealtimetapanRealtimetapan
Realtimetapan
 
Streaming Media Protocols
Streaming Media ProtocolsStreaming Media Protocols
Streaming Media Protocols
 
Real-Time Streaming Protocol -QOS
Real-Time Streaming Protocol -QOSReal-Time Streaming Protocol -QOS
Real-Time Streaming Protocol -QOS
 
Sip technology overview
Sip technology overviewSip technology overview
Sip technology overview
 
TCP & UDP Streaming Comparison and a Study on DCCP & SCTP Protocols
TCP & UDP Streaming Comparison and a Study on DCCP & SCTP ProtocolsTCP & UDP Streaming Comparison and a Study on DCCP & SCTP Protocols
TCP & UDP Streaming Comparison and a Study on DCCP & SCTP Protocols
 
Transport Layer in Computer Networks (TCP / UDP / SCTP)
Transport Layer in Computer Networks (TCP / UDP / SCTP)Transport Layer in Computer Networks (TCP / UDP / SCTP)
Transport Layer in Computer Networks (TCP / UDP / SCTP)
 
SCTP Overview
SCTP OverviewSCTP Overview
SCTP Overview
 
Real time transport protocol
Real time transport protocolReal time transport protocol
Real time transport protocol
 
Sctp tutorial
Sctp tutorialSctp tutorial
Sctp tutorial
 
Stcn presentation
Stcn presentationStcn presentation
Stcn presentation
 
Introduction to SCTP and it's benefits over TCP and UDP
Introduction to SCTP and it's benefits over TCP and UDPIntroduction to SCTP and it's benefits over TCP and UDP
Introduction to SCTP and it's benefits over TCP and UDP
 
Overview of SCTP (Stream Control Transmission Protocol)
Overview of SCTP (Stream Control Transmission Protocol)Overview of SCTP (Stream Control Transmission Protocol)
Overview of SCTP (Stream Control Transmission Protocol)
 
SCTP Tutorial
SCTP TutorialSCTP Tutorial
SCTP Tutorial
 
Chap05 gtp 03_kh
Chap05 gtp 03_khChap05 gtp 03_kh
Chap05 gtp 03_kh
 
Multimedia networks
Multimedia networksMultimedia networks
Multimedia networks
 
Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)
 
Overview of SCTP (Stream Control Transmission Protocol)
Overview of SCTP (Stream Control Transmission Protocol)Overview of SCTP (Stream Control Transmission Protocol)
Overview of SCTP (Stream Control Transmission Protocol)
 

Similar a Rtp

MANET, Unicast Routing Protocol, Multicast Routing Protocol.
MANET, Unicast Routing Protocol, Multicast Routing Protocol.MANET, Unicast Routing Protocol, Multicast Routing Protocol.
MANET, Unicast Routing Protocol, Multicast Routing Protocol.
Editor IJMTER
 
What is the role of sequence numbers in the rdt protocolWhat is t.pdf
What is the role of sequence numbers in the rdt protocolWhat is t.pdfWhat is the role of sequence numbers in the rdt protocolWhat is t.pdf
What is the role of sequence numbers in the rdt protocolWhat is t.pdf
monikajain201
 
Adv multimedia2k7 1_s
Adv multimedia2k7 1_sAdv multimedia2k7 1_s
Adv multimedia2k7 1_s
Kevin Man
 

Similar a Rtp (20)

RTCP
RTCPRTCP
RTCP
 
RTP_RTCP.ppt
RTP_RTCP.pptRTP_RTCP.ppt
RTP_RTCP.ppt
 
Assignment on data network
Assignment on data networkAssignment on data network
Assignment on data network
 
Assignment on data network
Assignment on data networkAssignment on data network
Assignment on data network
 
Sctp
SctpSctp
Sctp
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Chapter03 sg
Chapter03 sgChapter03 sg
Chapter03 sg
 
lect20-Layer5.ppt
lect20-Layer5.pptlect20-Layer5.ppt
lect20-Layer5.ppt
 
Voice and video over ip
Voice and video over ipVoice and video over ip
Voice and video over ip
 
Sigtran protocol
Sigtran protocolSigtran protocol
Sigtran protocol
 
MANET, Unicast Routing Protocol, Multicast Routing Protocol.
MANET, Unicast Routing Protocol, Multicast Routing Protocol.MANET, Unicast Routing Protocol, Multicast Routing Protocol.
MANET, Unicast Routing Protocol, Multicast Routing Protocol.
 
What is the role of sequence numbers in the rdt protocolWhat is t.pdf
What is the role of sequence numbers in the rdt protocolWhat is t.pdfWhat is the role of sequence numbers in the rdt protocolWhat is t.pdf
What is the role of sequence numbers in the rdt protocolWhat is t.pdf
 
A Performance Comparison of TCP Protocols
A Performance Comparison of TCP Protocols A Performance Comparison of TCP Protocols
A Performance Comparison of TCP Protocols
 
TCP/IP & UDP
TCP/IP & UDPTCP/IP & UDP
TCP/IP & UDP
 
Vo ip
Vo ipVo ip
Vo ip
 
IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...
IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...
IMPACT OF CONTENTION WINDOW ON CONGESTION CONTROL ALGORITHMS FOR WIRELESS ADH...
 
Bg4101335337
Bg4101335337Bg4101335337
Bg4101335337
 
Adv multimedia2k7 1_s
Adv multimedia2k7 1_sAdv multimedia2k7 1_s
Adv multimedia2k7 1_s
 
Adhoc and Sensor Networks - Chapter 07
Adhoc and Sensor Networks - Chapter 07Adhoc and Sensor Networks - Chapter 07
Adhoc and Sensor Networks - Chapter 07
 
videomon
videomonvideomon
videomon
 

Rtp

  • 1. RTP: A Transport Protocol for Real-Time Applications Provides end-to-end delivery services for data with real-time characteristics, such as interactive audio and video. Those services include payload type identification, sequence numbering, timestamping and delivery monitoring. Applications typically run RTP on top of UDP
  • 2. RTCP RTP is augmented by a control protocol (RTCP) to allow monitoring of the data delivery in a manner scalable to large multicast networks, and to provide minimal control and identification functionality.
  • 3. RTP Use Scenarios Simple Multicast Audio Conference The audio conferencing application used by each conference participant sends audio data in small chunks of, say, 20 ms duration. Each chunk of audio data is preceded by an RTP header; RTP header and data are in turn contained in a UDP packet. The RTP header indicates what type of audio encoding (such as PCM, ADPCM or LPC) is contained in each packet.
  • 4. TP header contains timing information and a sequence number that allow the receivers to reconstruct the timing produced by the source. The sequence number can also be used by the receiver to estimate how many packets are being lost. the audio application in the conference periodically multicasts a reception report plus the name of its user on the RTCP port. The reception report indicates how well the current speaker is being received. A site sends the RTCP BYE packet when it leaves the conference.
  • 5.  Audio and Video Conference Audio and video media are are transmitted as separate RTP session and RTCP packets are transmitted for each medium using two different UDP port pairs and/or multicast addresses. There is no direct coupling at the RTP level between the audio and video sessions, except that a user participating in both sessions should use the same distinguished (canonical) name in the RTCP packets for both so that the sessions can be associated. Despite the separation, synchronized playback of a source's audio and video can be achieved using timing information carried in the RTP packets for both sessions.
  • 6. MIXER Receives streams of RTP data packets from one or more sources, possibly changes the data format, combines the streams in some manner and then forwards the combined stream. All data packets forwarded by a mixer will be marked with the mixer's own SSRC identifier. In order to preserve the identity of the original sources contributing to the mixed packet
  • 7. Translator Forwards RTP packets with their SSRC identifier intact May change the encoding of the data and thus the RTP data payload type
  • 8. RTP Header Payload type Sequence number Timestamp SSRC identifier
  • 9. RTCP Is based on the periodic transmission of control packets to all participants in the session and perform the following functions: provide feedback on the quality of the data distribution and allows one who is observing problems to evaluate whether those problems are local or global.
  • 10. RTCP carries an identifier for an RTP source called the canonical name or CNAME. Receivers use CNAME to associate multiple data streams from a given participant in a set of related RTP sessions, for example to synchronize audio and video.
  • 11. RTCP Packet Format SR: Sender report, for transmission and reception statistics from participants that are active senders. RR: Receiver report, for reception statistics from participants that are not active senders. SDES: Source description items, including CNAME. BYE: Indicates end of participation. APP: Application specific functions.
  • 12. RTCP Transmission Interval  RTP is designed to allow an application to scale automatically over session sizes ranging from a few participants to thousands.  In an audio conference the data traffic is inherently self- limiting because only one or two people will speak at a time, so with multicast distribution the data rate on any given link remains relatively constant independent of the number of participants.  However, the control traffic is not self-limiting. If the reception reports from each participant were sent at a constant rate, the control traffic would grow linearly with the number of participants.
  • 13.  To maintain scalability, the average interval between packets from a session participant should scale with the group size.  The control traffic should be limited to a small and known fraction of the session bandwidth:  small so that the primary function of the transport protocol to carry data is not impaired;  known so that each participant can independently calculate its share.  It is suggested that the fraction of the session bandwidth allocated to RTCP be fixed at 5%
  • 14. Receiver Report RTCP Packet RC Type Length SSRC of packet sender SSRC of first source Report block 1 Fraction lost Cumulative number of packet lost Interarrival jitter Last SR Delay since last SR Report block 2
  • 15. SRC Identifier Allocation  The SSRC identifier carried in the RTP header and in various fields of RTCP packets is a random 32-bit number that is required to be globally unique within an RTP session.  All RTP implementations must be prepared to detect collisions and take the appropriate actions to resolve them.  If a source discovers at any time that another source is using the same SSRC identifier as its own, it must send an RTCP BYE packet for the old identifier and choose another random one.  If a receiver discovers that two other sources are colliding, it may keep the packets from one and discard the packets from the other.