draft-ietf-avt-rtp-cnames-03.txt   draft-ietf-avt-rtp-cnames-04.txt 
AVT A. Begen AVT A. Begen
Internet-Draft Cisco Internet-Draft Cisco
Updates: 3550 (if approved) C. Perkins Updates: 3550 (if approved) C. Perkins
Intended status: Standards Track University of Glasgow Intended status: Standards Track University of Glasgow
Expires: June 25, 2011 D. Wing Expires: July 14, 2011 D. Wing
Cisco Cisco
December 22, 2010 January 10, 2011
Guidelines for Choosing RTP Control Protocol (RTCP) Canonical Names Guidelines for Choosing RTP Control Protocol (RTCP) Canonical Names
(CNAMEs) (CNAMEs)
draft-ietf-avt-rtp-cnames-03 draft-ietf-avt-rtp-cnames-04
Abstract Abstract
The RTP Control Protocol (RTCP) Canonical Name (CNAME) is a The RTP Control Protocol (RTCP) Canonical Name (CNAME) is a
persistent transport-level identifier for an RTP endpoint. While the persistent transport-level identifier for an RTP endpoint. While the
Synchronization Source (SSRC) identifier of an RTP endpoint may Synchronization Source (SSRC) identifier of an RTP endpoint may
change if a collision is detected, or when the RTP application is change if a collision is detected, or when the RTP application is
restarted, its RTCP CNAME is meant to stay unchanged, so that RTP restarted, its RTCP CNAME is meant to stay unchanged, so that RTP
endpoints can be uniquely identified and associated with their RTP endpoints can be uniquely identified and associated with their RTP
media streams. For proper functionality, RTCP CNAMEs should be media streams. For proper functionality, RTCP CNAMEs should be
unique within the participants of an RTP session. However, the unique within the participants of an RTP session. However, the
existing guidelines for choosing the RTCP CNAME provided in the RTP existing guidelines for choosing the RTCP CNAME provided in the RTP
standard are insufficient to achieve this uniqueness. This memo standard are insufficient to achieve this uniqueness. This memo
updates these guidelines to allow endpoints to choose unique RTCP updates those guidelines to allow endpoints to choose unique RTCP
CNAMEs. CNAMEs.
Status of this Memo Status of this Memo
This Internet-Draft is submitted in full conformance with the This Internet-Draft is submitted to IETF in full conformance with the
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF), its areas, and its working groups. Note that
working documents as Internet-Drafts. The list of current Internet- other groups may also distribute working documents as Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/. Drafts.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on June 25, 2011. The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html.
This Internet-Draft will expire on July 14, 2011.
Copyright Notice Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the Copyright (c) 2011 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License. described in the Simplified BSD License.
Table of Contents Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Requirements Notation . . . . . . . . . . . . . . . . . . . . . 3 2. Requirements Notation . . . . . . . . . . . . . . . . . . . . 4
3. Deficiencies with Earlier Guidelines for Choosing an RTCP 3. Deficiencies with Earlier Guidelines for Choosing an RTCP
CNAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 CNAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4. Choosing an RTCP CNAME . . . . . . . . . . . . . . . . . . . . 4 4. Choosing an RTCP CNAME . . . . . . . . . . . . . . . . . . . . 5
4.1. Persistent RTCP CNAMEs vs. Per-Session RTCP CNAMEs . . . . 4 4.1. Persistent RTCP CNAMEs vs. Per-Session RTCP CNAMEs . . . . 5
4.2. Requirements . . . . . . . . . . . . . . . . . . . . . . . 5 4.2. Requirements . . . . . . . . . . . . . . . . . . . . . . . 6
5. Procedure to Generate a Unique Identifier . . . . . . . . . . . 6 5. Procedure to Generate a Unique Identifier . . . . . . . . . . 7
6. Security Considerations . . . . . . . . . . . . . . . . . . . . 6 6. Security Considerations . . . . . . . . . . . . . . . . . . . 8
7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 7 6.1. Considerations on Uniqueness of RTCP CNAMEs . . . . . . . 8
8. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . 7 6.2. Session Correlation Based on RTCP CNAMEs . . . . . . . . . 8
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 9
9.1. Normative References . . . . . . . . . . . . . . . . . . . 7 8. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 9
9.2. Informative References . . . . . . . . . . . . . . . . . . 8 9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 8 9.1. Normative References . . . . . . . . . . . . . . . . . . . 9
9.2. Informative References . . . . . . . . . . . . . . . . . . 10
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 10
1. Introduction 1. Introduction
In Section 6.5.1 of the RTP specification, [RFC3550], there are a In Section 6.5.1 of the RTP specification, [RFC3550], there are a
number of recommendations for choosing a unique RTCP CNAME for an RTP number of recommendations for choosing a unique RTCP CNAME for an RTP
endpoint. However, in practice, some of these methods are not endpoint. However, in practice, some of these methods are not
guaranteed to produce a unique RTCP CNAME. This memo updates guaranteed to produce a unique RTCP CNAME. This memo updates
guidelines for choosing RTCP CNAMEs, superceding those presented in guidelines for choosing RTCP CNAMEs, superceding those presented in
Section 6.5.1 of [RFC3550]. Section 6.5.1 of [RFC3550].
2. Requirements Notation 2. Requirements Notation
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
document are to be interpreted as described in [RFC2119]. "OPTIONAL" in this document are to be interpreted as described in
[RFC2119].
3. Deficiencies with Earlier Guidelines for Choosing an RTCP CNAME 3. Deficiencies with Earlier Guidelines for Choosing an RTCP CNAME
The recommendation in [RFC3550] is to generate an RTCP CNAME of the The recommendation in [RFC3550] is to generate an RTCP CNAME of the
form "user@host" for multiuser systems, or "host" if the username is form "user@host" for multiuser systems, or "host" if the username is
not available. The "host" part is specified to be the fully not available. The "host" part is specified to be the fully
qualified domain name (FQDN) of the host from which the real-time qualified domain name (FQDN) of the host from which the real-time
data originates. While this guidance was appropriate at the time data originates. While this guidance was appropriate at the time
[RFC3550] was written, FQDNs are no longer necessarily unique, and [RFC3550] was written, FQDNs are no longer necessarily unique, and
can sometimes be common across several endpoints in large service can sometimes be common across several endpoints in large service
skipping to change at page 5, line 35 skipping to change at page 6, line 37
representation. representation.
o To produce a short-term persistent RTCP CNAME, an RTP endpoint o To produce a short-term persistent RTCP CNAME, an RTP endpoint
MUST use either (a) the numeric representation of the layer-2 MUST use either (a) the numeric representation of the layer-2
(MAC) address of the interface that is used to initiate the RTP (MAC) address of the interface that is used to initiate the RTP
session as the "host" part of its RTCP CNAME or (b) generate an session as the "host" part of its RTCP CNAME or (b) generate an
identifier by following the procedure described in Section 5. In identifier by following the procedure described in Section 5. In
either case, the procedure is performed once per initialization of either case, the procedure is performed once per initialization of
the software. After obtaining a identifier by doing (a) or (b), the software. After obtaining a identifier by doing (a) or (b),
the least significant 48 bits are converted to the standard colon- the least significant 48 bits are converted to the standard colon-
separated hexadecimal format, e.g., "00:23:32:af:9b:aa", resulting separated hexadecimal format [RFC5342], e.g., "00:23:32:af:9b:aa",
in a 17-octet printable string representation. resulting in a 17-octet printable string representation.
In the two cases above, the "user@" part of the RTCP CNAME MAY be In the two cases above, the "user@" part of the RTCP CNAME MAY be
omitted on single-user systems, and MAY be replaced by an opaque omitted on single-user systems, and MAY be replaced by an opaque
token on multi-user systems, to preserve privacy. token on multi-user systems, to preserve privacy.
An RTP endpoint that wishes to generate a per-session RTCP CNAME MUST An RTP endpoint that wishes to generate a per-session RTCP CNAME MUST
use the following method: use the following method:
o For every new RTP session, a new CNAME is generated following the o For every new RTP session, a new CNAME is generated following the
procedure described in Section 5. After performing that procedure described in Section 5. After performing that
procedure, the significant 96 bits are used to generate an procedure, the least significant 96 bits are used to generate an
identifier (to compromise between packet size and security) which identifier (to compromise between packet size and security) which
is converted ASCII using Base64 encoding [RFC4648]. This results is converted ASCII using Base64 encoding [RFC4648]. This results
in a 16-octet string representation. The RTCP CNAME cannot change in a 16-octet string representation. The RTCP CNAME cannot change
over the life of an RTP session [RFC3550], hence, only the initial over the life of an RTP session [RFC3550], hence, only the initial
SSRC value chosen by the endpoint is used. The "user@" part of SSRC value chosen by the endpoint is used. The "user@" part of
the RTCP CNAME is omitted when generating per-session RTCP CNAMEs. the RTCP CNAME is omitted when generating per-session RTCP CNAMEs.
It is believed that obtaining uniqueness is an important property It is believed that obtaining uniqueness (with a high probability) is
that requires careful evaluation of the method. This document an important property that requires careful evaluation of the method.
provides a number of methods, at least one of which would be suitable This document provides a number of methods, at least one of which
for all deployment scenarios. This document therefore does not would be suitable for all deployment scenarios. This document
provide for the implementor to define and select an alternative therefore does not provide for the implementor to define and select
method. an alternative method.
A future specification might define an alternative method for A future specification might define an alternative method for
generating RTCP CNAMEs as long as the proposed method has appropriate generating RTCP CNAMEs as long as the proposed method has appropriate
uniqueness, and there is consistency between the methods used for uniqueness, and there is consistency between the methods used for
multiple RTP sessions that are to be correlated. However, such a multiple RTP sessions that are to be correlated. However, such a
specification needs to be reviewed and approved before deployment. specification needs to be reviewed and approved before deployment.
The mechanisms described in this document are to be used to generate
RTCP CNAMEs, and they are not to be used for generating general-
purpose unique identifiers.
5. Procedure to Generate a Unique Identifier 5. Procedure to Generate a Unique Identifier
The algorithm described below is intended to be used for locally- The algorithm described below is intended to be used for locally-
generated unique identifier. generated unique identifier.
1. Obtain the current time of day in 64-bit NTP format [RFC5905]. 1. Obtain the current time of day in 64-bit NTP format [RFC5905].
2. Obtain an EUI-64 identifier from the system running this 2. Obtain a modified EUI-64 identifier from the system running this
algorithm. If an EUI-64 does not exist, one can be created from algorithm [RFC4291]. If this does not exist, one can be created
a 48-bit MAC address as specified in [RFC4291]. If an EUI-64 from a 48-bit MAC address as specified in [RFC4291]. If one
cannot be obtained or created, a suitably unique identifier, cannot be obtained or created, a suitably unique identifier,
local to the node, should be used (e.g., system serial number). local to the node, should be used (e.g., system serial number).
3. Concatenate the time of day with the system-specific identifier 3. Concatenate the time of day with the system-specific identifier
in order to create a key. in order to create a key.
4. If generating a per-session CNAME, also concatenate RTP 4. If generating a per-session CNAME, also concatenate RTP
endpoint's initial SSRC, the source and destination IP addresses, endpoint's initial SSRC, the source and destination IP addresses,
and ports to the key. and ports to the key.
5. Compute an SHA-1 digest on the key as specified in [RFC4634], 5. Compute an SHA-256 digest on the key as specified in [RFC4634],
which outputs 160 bits. which outputs 256 bits.
6. Security Considerations 6. Security Considerations
The security considerations of [RFC3550] apply to this memo. The security considerations of [RFC3550] apply to this memo.
6.1. Considerations on Uniqueness of RTCP CNAMEs
The recommendations on RTCP CNAME generation in this document ensure
that a set of cooperating participants in an RTP session will have
unique RTCP CNAMEs with very high probability. However, neither
[RFC3550] nor this document provides any way to ensure that
participants will choose RTCP CNAMEs appropriately, and thus
implementations MUST NOT rely on the uniqueness of CNAMEs for any
essential security services. This is consistent with [RFC3550],
which does not require that RTCP CNAMEs are unique within a session,
but instead says that condition SHOULD hold. As described in the
Security Considerations section of [RFC3550], because each
participant in a session is free to choose its own RTCP CNAME, they
can do so in such a way as to impersonate another participant. That
is, participants are trusted to not impersonate each other. No
recommendation for generating RTCP CNAMEs can prevent this
impersonation, because an attacker can neglect the stipulation.
Secure RTP (SRTP) [RFC3711] keeps unauthorized entities out of an RTP
session, but it does not not aim to prevent impersonation attacks
from unauthorized entities.
This document uses a hash function to ensure the uniqueness of RTCP
CNAMEs. A cryptographic hash function is used because such functions
provide the randomness properties that are needed. However, no
security assumptions are made on the hash function. The hash
function is not assumed to be collision-resistant or second-preimage
resistant in an adversarial setting; as described above, an attacker
attempting an impersonation attack could merely set the RTCP CNAME
directly rather than attacking the hash function. Similarly, the
hash function is not assumed to be a one-way function, or
pseudorandom in a cryptographic sense.
No confidentiality is provided on the data used as input to the RTCP
CNAME generation algorithm. It might be possible for an attacker who
observes an RTCP CNAME to determine the inputs that were used to
generate that value.
6.2. Session Correlation Based on RTCP CNAMEs
In some environments, notably telephony, a fixed RTCP CNAME value In some environments, notably telephony, a fixed RTCP CNAME value
allows separate RTP sessions to be correlated and eliminates the allows separate RTP sessions to be correlated and eliminates the
obfuscation provided by IPv6 privacy addresses [RFC4941] or IPv4 NAPT obfuscation provided by IPv6 privacy addresses [RFC4941] or IPv4 NAPT
[RFC3022]. SRTP [RFC3711] can help prevent such correlation by
encrypting Secure RTCP (SRTCP) but it should be noted that SRTP only
mandates SRTCP integrity protection (not encryption). Thus, RTP
applications used in such environments should consider encrypting
their SRTCP or generate a per-session RTCP CNAME as discussed in
Section 4.1.
[RFC3022]. Secure RTP (SRTP) [RFC3711] can help prevent such
correlation by encrypting Secure RTCP (SRTCP) but it should be noted
that SRTP only mandates SRTCP integrity protection (not encryption).
Thus, RTP applications used in such environments should consider
encrypting their SRTCP or generate a per-session RTCP CNAME as
discussed in Section 4.1.
7. IANA Considerations 7. IANA Considerations
No IANA actions are required. No IANA actions are required.
8. Acknowledgments 8. Acknowledgments
Thanks to Marc Petit-Huguenin who suggested to use UUIDs in Thanks to Marc Petit-Huguenin who suggested to use UUIDs in
generating RTCP CNAMEs. generating RTCP CNAMEs. Also thanks to David McGrew for providing
text for the Security Considerations section.
9. References 9. References
9.1. Normative References 9.1. Normative References
[RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V. [RFC3550] Schulzrinne, H., Casner, S., Frederick, R., and V.
Jacobson, "RTP: A Transport Protocol for Real-Time Jacobson, "RTP: A Transport Protocol for Real-Time
Applications", STD 64, RFC 3550, July 2003. Applications", STD 64, RFC 3550, July 2003.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997. Requirement Levels", BCP 14, RFC 2119, March 1997.
[RFC4941] Narten, T., Draves, R., and S. Krishnan, "Privacy
Extensions for Stateless Address Autoconfiguration in
IPv6", RFC 4941, September 2007.
[RFC4122] Leach, P., Mealling, M., and R. Salz, "A Universally [RFC4122] Leach, P., Mealling, M., and R. Salz, "A Universally
Unique IDentifier (UUID) URN Namespace", RFC 4122, Unique IDentifier (UUID) URN Namespace", RFC 4122,
July 2005. July 2005.
[RFC4634] Eastlake, D. and T. Hansen, "US Secure Hash Algorithms [RFC4634] Eastlake, D. and T. Hansen, "US Secure Hash Algorithms
(SHA and HMAC-SHA)", RFC 4634, July 2006. (SHA and HMAC-SHA)", RFC 4634, July 2006.
[RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data [RFC4648] Josefsson, S., "The Base16, Base32, and Base64 Data
Encodings", RFC 4648, October 2006. Encodings", RFC 4648, October 2006.
[RFC5905] Mills, D., Martin, J., Burbank, J., and W. Kasch, "Network [RFC5905] Mills, D., Martin, J., Burbank, J., and W. Kasch, "Network
Time Protocol Version 4: Protocol and Algorithms Time Protocol Version 4: Protocol and Algorithms
Specification", RFC 5905, June 2010. Specification", RFC 5905, June 2010.
[RFC4291] Hinden, R. and S. Deering, "IP Version 6 Addressing [RFC4291] Hinden, R. and S. Deering, "IP Version 6 Addressing
Architecture", RFC 4291, February 2006. Architecture", RFC 4291, February 2006.
[RFC5342] Eastlake, D., "IANA Considerations and IETF Protocol Usage
for IEEE 802 Parameters", BCP 141, RFC 5342,
September 2008.
9.2. Informative References 9.2. Informative References
[RFC1918] Rekhter, Y., Moskowitz, R., Karrenberg, D., Groot, G., and [RFC1918] Rekhter, Y., Moskowitz, R., Karrenberg, D., Groot, G., and
E. Lear, "Address Allocation for Private Internets", E. Lear, "Address Allocation for Private Internets",
BCP 5, RFC 1918, February 1996. BCP 5, RFC 1918, February 1996.
[RFC3022] Srisuresh, P. and K. Egevang, "Traditional IP Network [RFC3022] Srisuresh, P. and K. Egevang, "Traditional IP Network
Address Translator (Traditional NAT)", RFC 3022, Address Translator (Traditional NAT)", RFC 3022,
January 2001. January 2001.
[RFC3711] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K. [RFC3711] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K.
Norrman, "The Secure Real-time Transport Protocol (SRTP)", Norrman, "The Secure Real-time Transport Protocol (SRTP)",
RFC 3711, March 2004. RFC 3711, March 2004.
[RFC4941] Narten, T., Draves, R., and S. Krishnan, "Privacy
Extensions for Stateless Address Autoconfiguration in
IPv6", RFC 4941, September 2007.
Authors' Addresses Authors' Addresses
Ali Begen Ali Begen
Cisco Cisco
181 Bay Street 181 Bay Street
Toronto, ON M5J 2T3 Toronto, ON M5J 2T3
CANADA CANADA
Email: abegen@cisco.com Email: abegen@cisco.com
 End of changes. 25 change blocks. 
52 lines changed or deleted 108 lines changed or added

This html diff was produced by rfcdiff 1.46. The latest version is available from http://tools.ietf.org/tools/rfcdiff/