SlideShare a Scribd company logo
1 of 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)

More Related Content

What's hot

Real time transport protocol
Real time transport protocolReal time transport protocol
Real time transport protocolSwaroopSorte
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocolasimnawaz54
 
Congestion control
Congestion controlCongestion control
Congestion controlNithin Raj
 
Adv multimedia2k7 1_s
Adv multimedia2k7 1_sAdv multimedia2k7 1_s
Adv multimedia2k7 1_sKevin Man
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSDr. SELVAGANESAN S
 
Aloha protocol in data communication and networking
Aloha protocol in data communication and networkingAloha protocol in data communication and networking
Aloha protocol in data communication and networkingkritikadas3
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingKeyur Vadodariya
 
An overview of TCP (Transmission Control Protocol)
An overview of TCP (Transmission Control Protocol)An overview of TCP (Transmission Control Protocol)
An overview of TCP (Transmission Control Protocol)Ammad Marwat
 
GSM Radio interface
GSM Radio interfaceGSM Radio interface
GSM Radio interfaceRUpaliLohar
 
39018631 lte-overview
39018631 lte-overview39018631 lte-overview
39018631 lte-overviewcefer mecid
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udprahul kundu
 

What's hot (20)

transport layer
transport layertransport layer
transport layer
 
Real time transport protocol
Real time transport protocolReal time transport protocol
Real time transport protocol
 
Sania rtp
Sania rtpSania rtp
Sania rtp
 
smds
smdssmds
smds
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Lte protocols
Lte protocolsLte protocols
Lte protocols
 
Tcp
TcpTcp
Tcp
 
Congestion control
Congestion controlCongestion control
Congestion control
 
SPREAD SPECTRUM
SPREAD SPECTRUMSPREAD SPECTRUM
SPREAD SPECTRUM
 
Adv multimedia2k7 1_s
Adv multimedia2k7 1_sAdv multimedia2k7 1_s
Adv multimedia2k7 1_s
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
Aloha protocol in data communication and networking
Aloha protocol in data communication and networkingAloha protocol in data communication and networking
Aloha protocol in data communication and networking
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And Demultiplexing
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
An overview of TCP (Transmission Control Protocol)
An overview of TCP (Transmission Control Protocol)An overview of TCP (Transmission Control Protocol)
An overview of TCP (Transmission Control Protocol)
 
Icmp
IcmpIcmp
Icmp
 
GSM Radio interface
GSM Radio interfaceGSM Radio interface
GSM Radio interface
 
39018631 lte-overview
39018631 lte-overview39018631 lte-overview
39018631 lte-overview
 
Introduction of tcp, ip & udp
Introduction of tcp, ip & udpIntroduction of tcp, ip & udp
Introduction of tcp, ip & udp
 

Similar to 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 to 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
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
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
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 

Recently uploaded (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
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
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

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)