SlideShare una empresa de Scribd logo
1 de 27
RTP & RTCP
Need of RTP
• Real-time multimedia applications
   – Video teleconferencing
   – Internet Telephony (VoIP)
   – Internet audio, video streaming
Real time multimedia application
requirements
 – Sequencing
    – to report PDU loss
    – to report PDU reordering
    – to perform out-of-order decoding


 – Time stamping and Buffering
    – for play out
    – for jitter and delay calculation

 – Payload type identification
    – for media interpretation


 – Error concealment –
   – covers up errors from lost PDU by using redundancy in most-adjacent-frame
Real time multimedia application
requirements
 – Rate control –
   – Sender reduces sending rate adaptively to network
     congestion

 – Quality of Service (QoS) feedback –
   – From receiver to sender for operation adjustment
Limitations of TCP
• TCP is not used because-
   • TCP does retransmissions  unbounded
     delays
   • No provision for time stampings(slow and
     noisy walks )
   • TCP does not support multicast
   • TCP congestion control (slow-start) unsuitable
     for real-time transport
RTP & RTCP Overview
• Standardized packet format for delivering audio and video
  over IP networks.
• Used in communication and entertainment systems that
  involve streaming media, such as telephony, video
  teleconference applications, television services and web-
  based push-to-talk features.
• RTP is used in conjunction with the RTP Control Protocol
  (RTCP). While RTP carries the media streams (e.g., audio
  and video), RTCP is used to monitor transmission statistics
  and quality of service (QoS) and aids synchronization of
  multiple streams.
RTP & RTCP Overview
• RTP is originated and received on even port numbers
  and the associated RTCP communication uses the next
  higher odd port number.
• RTP is designed for end-to-end, real-time, transfer of
  stream data. The protocol provides facility for jitter
  compensation and detection of out of sequence arrival
  in data, that are common during transmissions on an IP
  network.
• RTP supports data transfer to multiple destinations
  through IP multicast. RTP is regarded as the primary
  standard for audio/video transport in IP networks and is
  used with an associated profile and payload format.
Protocol stack for multimedia
services

                                       RTSP




                                TCP
                                (till now)
RTP Packets
• Consist of RTP header, optional payload headers and the
  payload itself RTP overhead = 12 bytes
• IP+UDP+RTP overhead = 20+8+12 = 40 bytes

• It is advisable to keep coded slice sizes as close to, but
  never bigger than, the MTU size (largest size of a packet
  that can be transmitted without being split/recombined
  on the transport and network layer)
RTP Packets
• Reasons are as follows :-
  • It optimizes the payload/header overhead relationship
  • Minimizes the loss probability of a (fragmented) coded slice
    due to the loss of a single fragment on the
    network/transport layer and the resulting discarding of all
    other fragments belonging to the coded slice.
  • MTU sizes:-
     • ~1500 bytes for wireline IP links (max. size of an Ethernet
       packet)
     • ~100 bytes in wireless environments
RTP packet example
• DVD quality video transmission:-
  • 30 frames/s, 720x480 resolution, 3 bytes per pixel
  • 31,104,000 bytes/s raw rate
  • 311,040 bytes/s compressed data rate (100x
   compression)
  • MTU = 1500 bytes:-
    • 311,040/1460 = 213 packets/s > 319,500 bytes/s
      (required throughput including overhead)
  • MTU = 100 bytes:-
    • 311,040/60 = 5184 packets/s -> 518,400 bytes/s
      (required throughput)
RTP Header
RTP header contains the following:-
 • Sequence number
  • used for packet-loss detection
• Timestamp
  • Timing information
  • synchronization of media streams
• Payload type
  • Identifies the media codec of the payload
RTP Header
RTP header contains the following:-
• Marker Bit
  • Detecting the end of a group of related packets
• source identifiers
  • Contributing and Synchronizing
SIP SESSION




• RTP session is sending and receiving of RTP data by a group of
  participants
   • For each participant, a session is a pair of transport
     addresses used to communicate with the group
• If multiple media types are communicated by the group, the
  transmission of each medium constitutes a session.
RTP Synchronization Source




• Synchronization Source :-
   • Each source of RTP PDUs Identified by a unique ,randomly
     chosen 32-bit ID (the SSRC).
• A host generating multiple streams within a single RTP must use
  a different SSRC per stream
RTP Basics of Data Transmission
       • RTP PDUs
RTP PDU Header                               Incremented by one
Sampling instant of first data octet
                                                  for each RTP PDU:
 multiple PDUs can have same
timestamp                                             PDU loss
                             Payload
                                                      detection
 not necessarily monotonic   type
used to synchronize different
                                                      Restore PDU
                                                      sequence
media streams




  Identifies synchronization                   (used by mixer)
  source                               Identifies contributing sources
Example – Mixers and Translators
• Mixers:-
  • RTP-level entity that receives streams of RTP data packets
    from one or more sources and combines them into a single
    stream.
  • Mixer is like a new RTP-level source to the receivers.
  • Mixer can re-synchronize the incoming stream and
    generates its own timing info.
• Translator
  • Forwards RTP packets from different sources separately.
  • Translator is more transparent. Receivers can identify
    individual sources even though packets pass through the
    same translator and carry the translator’s network source
    address.
Translators and Mixers
• The real distinction between mixers and translators:-
  • SSRC identifier is not changed at a translator, but is changed
    at a mixer.
  • They both use a different transport address (network
    address + port) at the output side.
• Multiple data packets can be combined into one.
• Uses of translators and mixers:-
  •   Go-through firewalls
  •   Transcoding for low-bandwidth links
  •   Adding or removing encryption
  •   Emulating multicast address with one or more unicast
      addresses.
Mixers




A mixer will typically have to define synchronization relationships
between streams.
    Sources that are mixed together become contributing sources
   (CSRC)
    Mixer itself appears as a new source having a new SSRC
Translators
An intermediate system that…
   Connects two or more networks
       Multicasting through a firewall
       Modifies stream encoding, changing the stream’s timing
       Transparent to participants
       SSRC’s remain intact
end system 1                      from ES1: SSRC=6
   from ES1: SSRC=6               from ES2: SSRC=23
                       transl.1                       transl.2
   from ES2: SSRC=23              authorized tunnel
end system 2                          firewall        from ES1: SSRC=6
                                                      from ES2: SSRC=23
RTCP
• The RTP control protocol (RTCP) is based on the periodic
  transmission of control packets to all participants in the
  session, using the same distribution mechanism as the data
  packets.
• The underlying protocol must provide multiplexing of the data
  and control packets, for example using separate port numbers
  with UDP.
• It is recommended that the fraction of the session bandwidth
  allocated to the RTCP is 5%.
• The primary function of this protocol is to provide feedback on the
  quality of the data distribution.
• RTCP
RTP Control Protocol (RTCP)
 RTCP specifies report PDUs exchanged
between sources and destinations of
multimedia information
    receiver reception report

    sender report

    source description report

 Reports contain statistics such as the
number of RTP-PDUs sent, number of
RTP-PDUs lost, inter-arrival jitter
 Used by application to modify sender
transmission rates and for diagnostics
purposes
RTCP PACKETS
• 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 and in combination
  with SR for active senders reporting
  on more than 31 sources
• SDES - Source description
  items, including CNAME (Canonical
  Name – RTP source identifier)
• BYE - Indicates end of participation
• APP - Application specific functions
RTCP PACKETS
Conclusions
• RTP provides powerful instruments for adaptive video transmission.
• Potential applications include wireless links.
• Optimization can be done within the frames of the protocol
  specification (loosely defined packet sizes and RTCP communication
• frequency)

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

TCP Model
TCP ModelTCP Model
TCP Model
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
Real time transport protocol
Real time transport protocolReal time transport protocol
Real time transport protocol
 
The Data Link Layer
The Data Link LayerThe Data Link Layer
The Data Link Layer
 
Unicasting , Broadcasting And Multicasting New
Unicasting , Broadcasting And Multicasting NewUnicasting , Broadcasting And Multicasting New
Unicasting , Broadcasting And Multicasting New
 
Tcp
TcpTcp
Tcp
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
 
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)
 
Point to-point protocol (ppp)
Point to-point protocol (ppp)Point to-point protocol (ppp)
Point to-point protocol (ppp)
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
Mobile Network Layer
Mobile Network LayerMobile Network Layer
Mobile Network Layer
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Trace route
Trace routeTrace route
Trace route
 
Transport layer
Transport layerTransport layer
Transport layer
 
IntServ & DiffServ
IntServ & DiffServIntServ & DiffServ
IntServ & DiffServ
 
PPP (Point to Point Protocol)
PPP (Point to Point Protocol)PPP (Point to Point Protocol)
PPP (Point to Point Protocol)
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Routing table
Routing tableRouting table
Routing table
 

Similar a RTP & RTCP

RTP_RTCP.ppt
RTP_RTCP.pptRTP_RTCP.ppt
RTP_RTCP.pptumas1234
 
Transport protocols
Transport protocolsTransport protocols
Transport protocolsOnline
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 
DT021_4_Notes 4_QOS_Rev_M.pdf
DT021_4_Notes 4_QOS_Rev_M.pdfDT021_4_Notes 4_QOS_Rev_M.pdf
DT021_4_Notes 4_QOS_Rev_M.pdfSubhanshu5
 
Streaming Media Protocols
Streaming Media ProtocolsStreaming Media Protocols
Streaming Media Protocolssanjoysanyal
 
8. TDM Mux_Demux.pdf
8. TDM Mux_Demux.pdf8. TDM Mux_Demux.pdf
8. TDM Mux_Demux.pdfTabrezahmed39
 
Traffic Characterization
Traffic CharacterizationTraffic Characterization
Traffic CharacterizationIsmail Mukiibi
 
Sip technology overview
Sip technology overviewSip technology overview
Sip technology overviewOded Ben-Dori
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3Roman Brovko
 
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesREMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesRhydham Joshi
 
Unit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxUnit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxDESTROYER39
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxsarosh32
 

Similar a RTP & RTCP (20)

Realtimetapan
RealtimetapanRealtimetapan
Realtimetapan
 
Rtp
RtpRtp
Rtp
 
RTP_RTCP.ppt
RTP_RTCP.pptRTP_RTCP.ppt
RTP_RTCP.ppt
 
Rtp
RtpRtp
Rtp
 
Multimedia networks
Multimedia networksMultimedia networks
Multimedia networks
 
Transport protocols
Transport protocolsTransport protocols
Transport protocols
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
DT021_4_Notes 4_QOS_Rev_M.pdf
DT021_4_Notes 4_QOS_Rev_M.pdfDT021_4_Notes 4_QOS_Rev_M.pdf
DT021_4_Notes 4_QOS_Rev_M.pdf
 
TCP/IP & UDP
TCP/IP & UDPTCP/IP & UDP
TCP/IP & UDP
 
Streaming Media Protocols
Streaming Media ProtocolsStreaming Media Protocols
Streaming Media Protocols
 
8. TDM Mux_Demux.pdf
8. TDM Mux_Demux.pdf8. TDM Mux_Demux.pdf
8. TDM Mux_Demux.pdf
 
Traffic Characterization
Traffic CharacterizationTraffic Characterization
Traffic Characterization
 
Sip technology overview
Sip technology overviewSip technology overview
Sip technology overview
 
Transport layer.pptx
Transport layer.pptxTransport layer.pptx
Transport layer.pptx
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & AnomaliesREMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
REMnux tutorial 4.1 - Datagrams, Fragmentation & Anomalies
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Unit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxUnit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptx
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptx
 

Último

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Último (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

RTP & RTCP

  • 2. Need of RTP • Real-time multimedia applications – Video teleconferencing – Internet Telephony (VoIP) – Internet audio, video streaming
  • 3. Real time multimedia application requirements – Sequencing – to report PDU loss – to report PDU reordering – to perform out-of-order decoding – Time stamping and Buffering – for play out – for jitter and delay calculation – Payload type identification – for media interpretation – Error concealment – – covers up errors from lost PDU by using redundancy in most-adjacent-frame
  • 4. Real time multimedia application requirements – Rate control – – Sender reduces sending rate adaptively to network congestion – Quality of Service (QoS) feedback – – From receiver to sender for operation adjustment
  • 5. Limitations of TCP • TCP is not used because- • TCP does retransmissions  unbounded delays • No provision for time stampings(slow and noisy walks ) • TCP does not support multicast • TCP congestion control (slow-start) unsuitable for real-time transport
  • 6. RTP & RTCP Overview • Standardized packet format for delivering audio and video over IP networks. • Used in communication and entertainment systems that involve streaming media, such as telephony, video teleconference applications, television services and web- based push-to-talk features. • RTP is used in conjunction with the RTP Control Protocol (RTCP). While RTP carries the media streams (e.g., audio and video), RTCP is used to monitor transmission statistics and quality of service (QoS) and aids synchronization of multiple streams.
  • 7. RTP & RTCP Overview • RTP is originated and received on even port numbers and the associated RTCP communication uses the next higher odd port number. • RTP is designed for end-to-end, real-time, transfer of stream data. The protocol provides facility for jitter compensation and detection of out of sequence arrival in data, that are common during transmissions on an IP network. • RTP supports data transfer to multiple destinations through IP multicast. RTP is regarded as the primary standard for audio/video transport in IP networks and is used with an associated profile and payload format.
  • 8. Protocol stack for multimedia services RTSP TCP (till now)
  • 9. RTP Packets • Consist of RTP header, optional payload headers and the payload itself RTP overhead = 12 bytes • IP+UDP+RTP overhead = 20+8+12 = 40 bytes • It is advisable to keep coded slice sizes as close to, but never bigger than, the MTU size (largest size of a packet that can be transmitted without being split/recombined on the transport and network layer)
  • 10. RTP Packets • Reasons are as follows :- • It optimizes the payload/header overhead relationship • Minimizes the loss probability of a (fragmented) coded slice due to the loss of a single fragment on the network/transport layer and the resulting discarding of all other fragments belonging to the coded slice. • MTU sizes:- • ~1500 bytes for wireline IP links (max. size of an Ethernet packet) • ~100 bytes in wireless environments
  • 11. RTP packet example • DVD quality video transmission:- • 30 frames/s, 720x480 resolution, 3 bytes per pixel • 31,104,000 bytes/s raw rate • 311,040 bytes/s compressed data rate (100x compression) • MTU = 1500 bytes:- • 311,040/1460 = 213 packets/s > 319,500 bytes/s (required throughput including overhead) • MTU = 100 bytes:- • 311,040/60 = 5184 packets/s -> 518,400 bytes/s (required throughput)
  • 12. RTP Header RTP header contains the following:- • Sequence number • used for packet-loss detection • Timestamp • Timing information • synchronization of media streams • Payload type • Identifies the media codec of the payload
  • 13. RTP Header RTP header contains the following:- • Marker Bit • Detecting the end of a group of related packets • source identifiers • Contributing and Synchronizing
  • 14. SIP SESSION • RTP session is sending and receiving of RTP data by a group of participants • For each participant, a session is a pair of transport addresses used to communicate with the group • If multiple media types are communicated by the group, the transmission of each medium constitutes a session.
  • 15. RTP Synchronization Source • Synchronization Source :- • Each source of RTP PDUs Identified by a unique ,randomly chosen 32-bit ID (the SSRC). • A host generating multiple streams within a single RTP must use a different SSRC per stream
  • 16. RTP Basics of Data Transmission • RTP PDUs
  • 17. RTP PDU Header Incremented by one Sampling instant of first data octet for each RTP PDU: multiple PDUs can have same timestamp PDU loss Payload detection not necessarily monotonic type used to synchronize different Restore PDU sequence media streams Identifies synchronization (used by mixer) source Identifies contributing sources
  • 18.
  • 19. Example – Mixers and Translators • Mixers:- • RTP-level entity that receives streams of RTP data packets from one or more sources and combines them into a single stream. • Mixer is like a new RTP-level source to the receivers. • Mixer can re-synchronize the incoming stream and generates its own timing info. • Translator • Forwards RTP packets from different sources separately. • Translator is more transparent. Receivers can identify individual sources even though packets pass through the same translator and carry the translator’s network source address.
  • 20. Translators and Mixers • The real distinction between mixers and translators:- • SSRC identifier is not changed at a translator, but is changed at a mixer. • They both use a different transport address (network address + port) at the output side. • Multiple data packets can be combined into one. • Uses of translators and mixers:- • Go-through firewalls • Transcoding for low-bandwidth links • Adding or removing encryption • Emulating multicast address with one or more unicast addresses.
  • 21. Mixers A mixer will typically have to define synchronization relationships between streams.  Sources that are mixed together become contributing sources (CSRC)  Mixer itself appears as a new source having a new SSRC
  • 22. Translators An intermediate system that…  Connects two or more networks  Multicasting through a firewall  Modifies stream encoding, changing the stream’s timing  Transparent to participants  SSRC’s remain intact end system 1 from ES1: SSRC=6 from ES1: SSRC=6 from ES2: SSRC=23 transl.1 transl.2 from ES2: SSRC=23 authorized tunnel end system 2 firewall from ES1: SSRC=6 from ES2: SSRC=23
  • 23. RTCP • The RTP control protocol (RTCP) is based on the periodic transmission of control packets to all participants in the session, using the same distribution mechanism as the data packets. • The underlying protocol must provide multiplexing of the data and control packets, for example using separate port numbers with UDP. • It is recommended that the fraction of the session bandwidth allocated to the RTCP is 5%. • The primary function of this protocol is to provide feedback on the quality of the data distribution. • RTCP
  • 24. RTP Control Protocol (RTCP)  RTCP specifies report PDUs exchanged between sources and destinations of multimedia information  receiver reception report  sender report  source description report  Reports contain statistics such as the number of RTP-PDUs sent, number of RTP-PDUs lost, inter-arrival jitter  Used by application to modify sender transmission rates and for diagnostics purposes
  • 25. RTCP PACKETS • 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 and in combination with SR for active senders reporting on more than 31 sources • SDES - Source description items, including CNAME (Canonical Name – RTP source identifier) • BYE - Indicates end of participation • APP - Application specific functions
  • 27. Conclusions • RTP provides powerful instruments for adaptive video transmission. • Potential applications include wireless links. • Optimization can be done within the frames of the protocol specification (loosely defined packet sizes and RTCP communication • frequency)