|"Internet protocol suite|
The Real-time Transport Protocol (RTP) is a "network protocol for delivering audio and video over "IP networks. RTP is used extensively 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 typically runs over "User Datagram Protocol (UDP). 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 is one of the technical foundations of "Voice over IP and in this context is often used in conjunction with a "signaling protocol such as the "Session Initiation Protocol (SIP) which establishes connections across the network.
RTP is designed for "end-to-end, "real-time, transfer of "streaming media. The protocol provides facilities for "jitter compensation and detection of out of sequence arrival in data, which are common during transmissions on an IP network. RTP allows 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.
Real-time "multimedia streaming applications require timely delivery of information and often can tolerate some packet loss to achieve this goal. For example, loss of a packet in audio application may result in loss of a fraction of a second of audio data, which can be made unnoticeable with suitable "error concealment algorithms. The "Transmission Control Protocol (TCP), although standardized for RTP use, is not normally used in RTP applications because TCP favors reliability over timeliness. Instead the majority of the RTP implementations are built on the "User Datagram Protocol (UDP). Other transport protocols specifically designed for multimedia sessions are "SCTP and "DCCP, although, as of 2010[update], they are not in widespread use.["citation needed]
RTP was developed by the Audio/Video Transport working group of the IETF standards organization. RTP is used in conjunction with other protocols such as "H.323 and "RTSP. The RTP standard defines a pair of protocols: RTP and RTCP. RTP is used for transfer of multimedia data, and the RTCP is used to periodically send control information and QoS parameters.
RTP is also used in the transport layer of "WebRTC.
The RTP specification describes two sub-protocols, RTP and RTCP.
The data transfer protocol, RTP, facilitates the transfer of real-time data. Information provided by this protocol include timestamps (for synchronization), sequence numbers (for packet loss and reordering detection) and the payload format which indicates the encoded format of the data.
The control protocol RTCP is used to specify quality of service (QoS) feedback and "synchronization between the media streams. The bandwidth of RTCP traffic compared to RTP is small, typically around 5%.
RTP sessions are typically initiated between communicating peers using a signaling protocol, such as "H.323, the "Session Initiation Protocol (SIP), or "Jingle ("XMPP). These protocols may use the "Session Description Protocol to negotiate the parameters for the sessions.
An RTP session is established for each multimedia stream. A session consists of an "IP address with a pair of ports for RTP and RTCP. For example, audio and video streams use separate RTP sessions, enabling a receiver to deselect a particular stream. The ports which form a session are negotiated using other protocols such as "RTSP (using "SDP in the setup method) and SIP.
The specification recommends that RTP port numbers are chosen to be even and that each associated RTCP port be the next higher odd number.:68 However, a single port is chosen for RTP and RTCP in applications that multiplex the protocols. RTP and RTCP typically use unprivileged UDP ports (1024 to 65535), but may also use other transport protocols, most notably, "SCTP and "DCCP, as the protocol design is transport independent.
One of the design considerations of RTP is to carry a range of multimedia formats and allow new formats without revising the RTP standard. The design of RTP is based on the architectural principle known as "application level framing (ALF). The information required by a specific application's needs is not included in the generic RTP header, but is instead provided through RTP profiles and payload formats. For each class of application (e.g., audio, video), RTP defines a profile and one or more associated payload formats. A complete specification of RTP for a particular application usage requires profile and payload format specifications.:71
The profile defines the codecs used to encode the payload data and their mapping to payload format codes in the field Payload Type (PT) of the RTP header. Each profile is accompanied by several payload format specifications, each of which describes the transport of a particular encoded data. The audio payload formats include "G.711, "G.723, "G.726, "G.729, "GSM, "QCELP, "MP3, and "DTMF, and the video payload formats include "H.261, "H.263, "H.264, and "MPEG-4.
Examples of RTP Profiles include:
|96+32×CC||Profile-specific extension header ID||Extension header length|
The RTP header has a minimum size of 12 bytes. After the header, optional header extensions may be present. This is followed by the RTP payload, the format of which is determined by the particular class of application. The fields in the header are as follows:
A functional network-based system includes other protocols and standards in conjunction with RTP. Protocols such as SIP, "Jingle, RTSP, "H.225 and "H.245 are used for session initiation, control and termination. Other standards, such as H.264, MPEG and H.263, are used to encode the payload data as specified via RTP Profile.
An RTP sender captures the multimedia data, then encodes, frames and transmits it as RTP packets with appropriate timestamps and increasing sequence numbers. Depending on the RTP profile in use, the sender may set the Payload Type field. The RTP receiver captures the RTP packets, detects missing packets, and may reorder packets. It decodes the frames according to the payload format and presents the stream to its user.