RFC 3551
RFC 3551
RFC 3551
Wing
Request for Comments: 4961 Cisco Systems
BCP: 131 July 2007
Category: Best Current Practice
Copyright Notice
Abstract
This document recommends using one UDP port pair for both
communication directions of bidirectional RTP and RTP Control
Protocol (RTCP) sessions, commonly called "symmetric RTP" and
"symmetric RTCP".
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Conventions Used in this Document . . . . . . . . . . . . . . . 2
3. Definition of Symmetric RTP and Symmetric RTCP . . . . . . . . 3
4. Recommended Usage . . . . . . . . . . . . . . . . . . . . . . . 3
5. Security Considerations . . . . . . . . . . . . . . . . . . . . 4
6. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . 4
7. References . . . . . . . . . . . . . . . . . . . . . . . . . . 4
7.1. Normative References . . . . . . . . . . . . . . . . . . . 4
7.2. Informative References . . . . . . . . . . . . . . . . . . 4
1. Introduction
However, UDP is not inherently bidirectional and UDP does not require
using the same port for sending and receiving bidirectional traffic.
Rather, some UDP applications use a single UDP port to transmit and
receive (e.g., DNS [RFC1035]), some applications use different UDP
ports to transmit and receive with explicit signaling (e.g., Trivial
File Transfer Protocol (TFTP) [RFC1350]), and other applications
don’t specify the choice of transmit and receive ports (RTP
[RFC3550]).
Because RTP and RTCP are not inherently bidirectional protocols, and
UDP is not a bidirectional protocol, the usefulness of using the same
UDP port for transmitting and receiving has been generally ignored
for RTP and RTCP. Many firewalls, Network Address Translators (NATs)
[RFC3022], and RTP implementations expect symmetric RTP, and do not
work in the presence of asymmetric RTP. However, this term has never
been defined. This document defines "symmetric RTP" and "symmetric
RTCP".
The UDP port number to receive media, and the UDP port to transmit
media are both selected by the device that receives that media and
transmits that media. For unicast flows, the receive port is
communicated to the remote peer (e.g., Session Description Protocol
(SDP) [RFC4566] carried in SIP [RFC3261], Session Announcement
Protocol (SAP) [RFC2974], or Megaco/H.248 [RFC3525]).
There is no correspondence between the local RTP (or RTCP) port and
the remote RTP (or RTCP) port. That is, device "A" might choose its
local transmit and receive port to be 1234. Its peer, device "B", is
not constrained to also use port 1234 for its port. In fact, such a
constraint is impossible to meet because device "B" might already be
using that port for another application.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].
A device that doesn’t support symmetric RTP would transmit RTP from a
different port, or from a different IP address, than the port and IP
address used to receive RTP for that bidirectional media steam.
A device that doesn’t support symmetric RTCP would transmit RTCP from
a different port, or from a different IP address, than the port and
IP address used to receive RTCP.
4. Recommended Usage
There are two specific instances where symmetric RTP and symmetric
RTCP are REQUIRED:
There are other instances where symmetric RTP and symmetric RTCP are
helpful, but not required. For example, if a firewall can expect
symmetric RTP and symmetric RTCP, then the firewall’s dynamic per-
call port filter list can be more restrictive compared to asymmetric
RTP and asymmetric RTCP. Symmetric RTP and symmetric RTCP can also
ease debugging and troubleshooting.
Other UDP-based protocols can also benefit from common local transmit
and receive ports.
There are no known cases where symmetric RTP or symmetric RTCP are
harmful.
5. Security Considerations
6. Acknowledgments
The author thanks Francois Audet, Sunil Bhargo, Lars Eggert, Francois
Le Faucheur, Cullen Jennings, Benny Rodrig, Robert Sparks, and Joe
Stone for their assistance with this document.
7. References
[RFC1350] Sollins, K., "The TFTP Protocol (Revision 2)", STD 33,
RFC 1350, July 1992.
Author’s Address
Dan Wing
Cisco Systems
170 West Tasman Drive
San Jose, CA 95134
USA
EMail: [email protected]
Intellectual Property
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
[email protected].
Acknowledgement