RFC 3550: RTP: Transporting real-time media
Summary
In July 2003, Henning Schulzrinne, Stephen Casner, Ron Frederick and Van Jacobson published the revised version of the Real-time Transport Protocol in RFC 3550. RTP carries audio and video with sequence numbers, timestamps and source identifiers, while the companion protocol RTCP reports reception quality and participants. The document is an Internet Standard and still carries VoIP, video conferencing and WebRTC today.
Timely instead of complete
For voice and video, a late packet is as good as a lost one. RTP therefore does without retransmissions and instead gives the receiver the information needed to compensate for loss and variations in delay: a sequence number per packet, a timestamp in the medium’s clock rate and a randomly chosen 32-bit source identifier, the SSRC.
Mixers combine several sources into one stream, for example in a conference call, and list the contributing sources separately. Translators convert streams without mixing them, for example when changing codecs.
RTCP: feedback in moderation
Every participant regularly sends RTCP reports with packet loss, jitter and timing information. So that this feedback does not flood large conferences, its share of the session bandwidth should be 5 percent, and the sending interval grows with the number of participants.
RFC 3550 recommends an even port number for RTP and the next higher odd number for RTCP. Later RFCs allow both to run over the same port, which makes working with NAT and firewalls easier.
Ideas
- RTP forgoes retransmission in favour of timely playback.
- Sequence numbers reveal loss and reordering.
- Timestamps in the media clock allow jitter to be compensated.
- The SSRC identifies each source randomly and uniquely.
- RTCP reports quality and participants, limited to 5 percent bandwidth.
- Mixers and translators connect participants with different conditions.
Insights
- Real-time communication optimises for timeliness; a protocol that delivers everything would be the wrong one here.
- Built-in, moderate feedback is the precondition for adaptive codecs and quality monitoring.
Facts
- RFC 3550 appeared in July 2003 and replaces RFC 1889 from January 1996.
- RFC 3550 has the status Internet Standard.
- The SSRC is a 32-bit identifier.
- The RTCP share of the session bandwidth should be 5 percent.
References
- RFC 3550: RTP: A Transport Protocol for Real-Time Applications
- RFC 3711: The Secure Real-time Transport Protocol (SRTP) (2004)
- RFC 5761: Multiplexing RTP Data and Control Packets on a Single Port (2010)
Remarks
- Van Jacobson, one of the authors, also developed TCP congestion control in the late 1980s.
Recommendations
- For VoIP problems, evaluate loss, jitter and delay from the RTCP reports, for example with Wireshark.
- Always encrypt RTP with SRTP.
- For voice traffic in your own network, plan prioritisation and sufficient buffers at bottlenecks.
Read the RFC at the RFC Editor
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.