| draft-ietf-avt-rtp-cnames-01.txt | draft-ietf-avt-rtp-cnames-02.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: February 27, 2011 D. Wing | Expires: May 14, 2011 D. Wing | |||
| Cisco | Cisco | |||
| August 26, 2010 | November 10, 2010 | |||
| 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-01 | draft-ietf-avt-rtp-cnames-02 | |||
| 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 | |||
| skipping to change at page 1, line 45 ¶ | skipping to change at page 1, line 45 ¶ | |||
| 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). Note that other groups may also distribute | |||
| working documents as Internet-Drafts. The list of current Internet- | working documents as Internet-Drafts. The list of current Internet- | |||
| Drafts is at http://datatracker.ietf.org/drafts/current/. | Drafts is at http://datatracker.ietf.org/drafts/current/. | |||
| 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 February 27, 2011. | This Internet-Draft will expire on May 14, 2011. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2010 IETF Trust and the persons identified as the | Copyright (c) 2010 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 | |||
| skipping to change at page 4, line 14 ¶ | skipping to change at page 4, line 14 ¶ | |||
| and puts the burden on the translator to translate RTCP CNAMEs from | and puts the burden on the translator to translate RTCP CNAMEs from | |||
| private addresses to public addresses if necessary to keep private | private addresses to public addresses if necessary to keep private | |||
| addresses from being exposed. Experience has shown that this does | addresses from being exposed. Experience has shown that this does | |||
| not work well in practice. | not work well in practice. | |||
| 4. Choosing an RTCP CNAME | 4. Choosing an RTCP CNAME | |||
| It is difficult, and in some cases impossible, for a host to | It is difficult, and in some cases impossible, for a host to | |||
| determine if there is a NAT between itself and its RTP peer. | determine if there is a NAT between itself and its RTP peer. | |||
| Furthermore, even some public IPv4 addresses can be shared by | Furthermore, even some public IPv4 addresses can be shared by | |||
| multiple hosts in the Internet. Thus, using the numeric | multiple hosts in the Internet. Using the numeric representation of | |||
| representation of the IPv4 address as the "host" part of the RTCP | the IPv4 address as the "host" part of the RTCP CNAME is NOT | |||
| CNAME is NOT RECOMMENDED. | RECOMMENDED. | |||
| 4.1. Persistent RTCP CNAMEs vs. Per-Session RTCP CNAMEs | 4.1. Persistent RTCP CNAMEs vs. Per-Session RTCP CNAMEs | |||
| The RTCP CNAME can either be persistent across different RTP sessions | The RTCP CNAME can either be persistent across different RTP sessions | |||
| for an RTP endpoint, or it can be unique per session, meaning that an | for an RTP endpoint, or it can be unique per session, meaning that an | |||
| RTP endpoint chooses a different RTCP CNAME for each RTP session. | RTP endpoint chooses a different RTCP CNAME for each RTP session. | |||
| An RTP endpoint that is emitting multiple related RTP streams that | An RTP endpoint that is emitting multiple related RTP streams that | |||
| require synchronization at the other endpoint(s) MUST use the same | require synchronization at the other endpoint(s) MUST use the same | |||
| RTCP CNAME for all streams that are to be synchronized. This | RTCP CNAME for all streams that are to be synchronized. This | |||
| requires a short-term persistent RTCP CNAME that is common across | requires a short-term persistent RTCP CNAME that is common across | |||
| several RTP flows, and potentially across several related RTP | several RTP flows, and potentially across several related RTP | |||
| sessions. A common example of such use occurs when lip-syncing audio | sessions. A common example of such use occurs when lip-syncing audio | |||
| and video streams in a multimedia session, where a single participant | and video streams in a multimedia session, where a single participant | |||
| MUST use the same RTCP CNAME for its audio RTP session and for its | has to use the same RTCP CNAME for its audio RTP session and for its | |||
| video RTP session. Another example might be to synchronize the | video RTP session. Another example might be to synchronize the | |||
| layers of a layered audio codec, where the same RTCP CNAME MUST be | layers of a layered audio codec, where the same RTCP CNAME has to be | |||
| used for each layer. | used for each layer. | |||
| A longer-term persistent RTCP CNAME is sometimes useful to facilitate | A longer-term persistent RTCP CNAME is sometimes useful to facilitate | |||
| third-party monitoring. One such use might be to allow network | third-party monitoring. One such use might be to allow network | |||
| management tools to correlate the ongoing quality of service for a | management tools to correlate the ongoing quality of service for a | |||
| participant across multiple RTP sessions for fault diagnosis, and to | participant across multiple RTP sessions for fault diagnosis, and to | |||
| understand long-term network performance statistics. Other, less | understand long-term network performance statistics. Other, less | |||
| benign, uses may also be envisaged. An implementation that wishes to | benign, uses can also be envisaged. An implementation that wishes to | |||
| discourage this type of third-party monitoring can generate a unique | discourage this type of third-party monitoring can generate a unique | |||
| RTCP CNAME for each RTP session, or group of related RTP sessions, | RTCP CNAME for each RTP session, or group of related RTP sessions, | |||
| that it joins. Such a per-session RTCP CNAME cannot be used for | that it joins. Such a per-session RTCP CNAME cannot be used for | |||
| traffic analysis, and so provides some limited form of privacy (note | traffic analysis, and so provides some limited form of privacy (note | |||
| that there are non-RTP means that can be used by a third-party to | that there are non-RTP means that can be used by a third-party to | |||
| correlate RTP sessions, so the use of per-session RTCP CNAMEs will | correlate RTP sessions, so the use of per-session RTCP CNAMEs will | |||
| not prevent a determined traffic analyst). | not prevent a determined traffic analyst). | |||
| This memo defines several different ways by which an implementation | This memo defines several different ways by which an implementation | |||
| can choose an RTCP CNAME. It is possible, and legitimate, for | can choose an RTCP CNAME. It is possible, and legitimate, for | |||
| independent implementations to make different choices of RTCP CNAME | independent implementations to make different choices of RTCP CNAME | |||
| when running on the same host. This may hinder third-party | when running on the same host. This can hinder third-party | |||
| monitoring, unless some external means is provided to configure a | monitoring, unless some external means is provided to configure a | |||
| persistent choice of RTCP CNAME for those implementations. | persistent choice of RTCP CNAME for those implementations. | |||
| 4.2. Requirements | 4.2. Requirements | |||
| An RTP endpoint that wishes to generate a persistent RTCP CNAME MUST | An RTP endpoint that wishes to generate a persistent RTCP CNAME MUST | |||
| use one of the following three methods: | use one of the following three methods: | |||
| o To produce a long-term persistent RTCP CNAME, and endpoint MUST | o To produce a long-term persistent RTCP CNAME, and endpoint MUST | |||
| generate and store a Universally Unique IDentifier (UUID) | generate and store a Universally Unique IDentifier (UUID) | |||
| skipping to change at page 5, line 28 ¶ | skipping to change at page 5, line 28 ¶ | |||
| string representation described in Section 3 of [RFC4122] MUST be | string representation described in Section 3 of [RFC4122] MUST be | |||
| used without "urn:uuid:", resulting in a 36 octet printable string | used without "urn:uuid:", resulting in a 36 octet printable string | |||
| representation. | representation. | |||
| o To produce a short-term persistent RTCP CNAME, an endpoint that | o To produce a short-term persistent RTCP CNAME, an endpoint that | |||
| has one or more IPv6 addresses MUST use one of those IPv6 | has one or more IPv6 addresses MUST use one of those IPv6 | |||
| address(es) as the "host" part of its RTCP CNAME, regardless of | address(es) as the "host" part of its RTCP CNAME, regardless of | |||
| whether that IPv6 interface is being used for RTP communication or | whether that IPv6 interface is being used for RTP communication or | |||
| not. That address can be an IPv6 privacy address [RFC4941] or a | not. That address can be an IPv6 privacy address [RFC4941] or a | |||
| unique local IPv6 unicast address [RFC4193]. The IPv6 address is | unique local IPv6 unicast address [RFC4193]. The IPv6 address is | |||
| converted to its textual representation | converted to its textual representation [RFC5952], resulting in a | |||
| [I-D.ietf-6man-text-addr-representation], resulting in a printable | printable string representation as short as 3 octets and as long | |||
| string representation as short as 3 octets and as long as 24 | as 24 octets. Note: using IPv6 addresses as the "host" part of a | |||
| octets. Note: using IPv6 addresses as the "host" part of a CNAME | CNAME was originally suggested in [RFC3550]. | |||
| was originally suggested in [RFC3550]. | ||||
| o To produce a short-term persistent RTCP CNAME, an endpoint that | o To produce a short-term persistent RTCP CNAME, an endpoint that | |||
| has only IPv4 addresses MUST use the numeric representation of the | has only IPv4 addresses MUST use the numeric representation of the | |||
| layer-2 (MAC) address of the interface that is used to initiate | layer-2 (MAC) address of the interface that is used to initiate | |||
| the RTP session as the "host" part of its RTCP CNAME. For IEEE | the RTP session as the "host" part of its RTCP CNAME. For IEEE | |||
| 802 MAC addresses, such as Ethernet, the standard colon-separated | 802 MAC addresses, such as Ethernet, the standard colon-separated | |||
| hexadecimal format is to be used, e.g., "00:23:32:af:9b:aa" | hexadecimal format is to be used, e.g., "00:23:32:af:9b:aa" | |||
| resulting in a 17 octet printable string representation. IPv4 | resulting in a 17 octet printable string representation. | |||
| addresses, whether public or private, SHOULD NOT be used as the | ||||
| RTCP CNAME host part, since they are not guaranteed to be unique. | ||||
| In all three cases, the "user@" part of the RTCP CNAME MAY be omitted | In all three cases, the "user@" part of the RTCP CNAME MAY be omitted | |||
| on single-user systems, and MAY be replaced by an opaque token on | on single-user systems, and MAY be replaced by an opaque token on | |||
| multiuser systems, to preserve privacy. | multiuser systems, to preserve privacy. Other methods, beyond the | |||
| three methods listed above, are not compliant with this specification | ||||
| and SHOULD NOT be used. | ||||
| To generate a per-session RTCP CNAME, an endpoint MUST perform SHA1- | To generate a per-session RTCP CNAME, an endpoint MUST perform SHA1- | |||
| HMAC [RFC2104] on the concatenated values of the RTP endpoint's | HMAC [RFC2104] on the concatenated values of the RTP endpoint's | |||
| initial SSRC, the source and destination IP addresses and ports, and | initial SSRC, the source and destination IP addresses and ports, and | |||
| a randomly-generated value [RFC4086], and then truncate the 160-bit | a randomly-generated value [RFC4086], and then truncate the 160-bit | |||
| output to 96 bits and finally convert the 96 bits to ASCII using | output to 96 bits and finally convert the 96 bits to ASCII using | |||
| Base64 encoding [RFC4648]. This results in a 16 octet printable | Base64 encoding [RFC4648]. This results in a 16 octet printable | |||
| string representation. Note that the RTCP CNAME MUST NOT change if | string representation. The RTCP CNAME MUST NOT change if an SSRC | |||
| an SSRC collision occurs, hence only the initial SSRC value chosen by | collision occurs, hence only the initial SSRC value chosen by the | |||
| the endpoint is used. The "user@" part of the RTCP CNAME is omitted | endpoint is used. The "user@" part of the RTCP CNAME is omitted when | |||
| when generating per-session RTCP CNAMEs. | generating per-session RTCP CNAMEs. | |||
| 5. Security Considerations | 5. Security Considerations | |||
| The security considerations of [RFC3550] apply to this memo. | The security considerations of [RFC3550] apply to this memo. | |||
| 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]. Secure RTP (SRTP) [RFC3711] can help prevent such | [RFC3022]. Secure RTP (SRTP) [RFC3711] can help prevent such | |||
| correlation by encrypting Secure RTCP (SRTCP) but it should be noted | correlation by encrypting Secure RTCP (SRTCP) but it should be noted | |||
| skipping to change at page 7, line 23 ¶ | skipping to change at page 7, line 21 ¶ | |||
| [RFC2104] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed- | [RFC2104] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed- | |||
| Hashing for Message Authentication", RFC 2104, | Hashing for Message Authentication", RFC 2104, | |||
| February 1997. | February 1997. | |||
| [RFC4086] Eastlake, D., Schiller, J., and S. Crocker, "Randomness | [RFC4086] Eastlake, D., Schiller, J., and S. Crocker, "Randomness | |||
| Requirements for Security", BCP 106, RFC 4086, June 2005. | Requirements for Security", BCP 106, RFC 4086, June 2005. | |||
| [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. | |||
| [RFC3711] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K. | [RFC5952] Kawamura, S. and M. Kawashima, "A Recommendation for IPv6 | |||
| Norrman, "The Secure Real-time Transport Protocol (SRTP)", | Address Text Representation", RFC 5952, August 2010. | |||
| RFC 3711, March 2004. | ||||
| [I-D.ietf-6man-text-addr-representation] | ||||
| Kawamura, S. and M. Kawashima, "A Recommendation for IPv6 | ||||
| Address Text Representation", | ||||
| draft-ietf-6man-text-addr-representation-07 (work in | ||||
| progress), February 2010. | ||||
| 8.2. Informative References | 8.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. | ||||
| Norrman, "The Secure Real-time Transport Protocol (SRTP)", | ||||
| RFC 3711, March 2004. | ||||
| 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 | |||
| Colin Perkins | Colin Perkins | |||
| End of changes. 16 change blocks. | ||||
| 33 lines changed or deleted | 29 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/ | ||||