<?xml version='1.0' encoding='ascii'?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc autobreaks="yes"?>
<?rfc tocindent="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc ipr="trust200902" docName="draft-ietf-avtcore-rfc5764-mux-fixes-04" category="std" updates="5764" obsoletes="" submissionType="IETF" xml:lang="en">
  <front>
    <title abbrev="RFC 5764 Mux Fixes">Multiplexing Scheme Updates for Secure Real-time Transport Protocol (SRTP) Extension for Datagram Transport Layer Security (DTLS)</title>
    <author initials="M." surname="Petit-Huguenin" fullname="Marc Petit-Huguenin">
      <organization>Impedance Mismatch</organization>
      <address>
        <email>marc@petit-huguenin.org</email>
      </address>
    </author>
    <author initials="G." surname="Salgueiro" fullname="Gonzalo Salgueiro">
      <organization>Cisco Systems</organization>
      <address>
        <postal>
          <street>7200-12 Kit Creek Road</street>
          <city>Research Triangle Park</city>
          <region>NC</region>
          <code>27709</code>
          <country>US</country>
        </postal>
        <email>gsalguei@cisco.com</email>
      </address>
    </author>
    <date year="2016"/>
    <area>RAI</area>
    <workgroup>AVTCORE</workgroup>
    <abstract>
      <t>This document defines how Datagram Transport Layer Security (DTLS), Real-time Transport Protocol (RTP), Real-time Transport Control Protocol (RTCP), Session Traversal Utilities for NAT (STUN), and Traversal Using Relays around NAT (TURN) packets are multiplexed on a single receiving socket.  It overrides the guidance from <xref target="RFC5764" pageno="false" format="default">SRTP Extension for DTLS</xref>, which suffered from three issues described and fixed in this document.  </t>
    </abstract>
  </front>
  <middle>
    <section anchor="section.intro" title="Introduction" toc="default">      
    
    <t>Section 5.1.2 of <xref target="RFC5764" pageno="false" format="default">Secure Real-time Transport Protocol (SRTP) Extension for DTLS</xref> defines a scheme for a Real-time Transport Protocol (RTP) <xref target="RFC3550" pageno="false" format="default"/> receiver to demultiplex Datagram Transport Layer Security <xref target="RFC6347" pageno="false" format="default">(DTLS)</xref>, <xref target="RFC5389" pageno="false" format="default">Session Traversal Utilities for NAT (STUN)</xref> and Secure Real-time Transport Protocol (SRTP)/Secure Real-time Transport Control Protocol (SRTCP) <xref target="RFC3711" pageno="false" format="default"/> packets that are arriving on the RTP port.  Unfortunately, this demultiplexing scheme has created problematic issues: </t>
      <t><list style="numbers"><t>It implicitly allocated codepoints for new STUN methods without an IANA registry reflecting these new allocations.</t><t>It implicitly allocated codepoints for new Transport Layer Security (TLS) ContentTypes without an IANA registry reflecting these new allocations.</t><t>It did not take into account the fact that the Traversal Using Relays around NAT (TURN) usage of STUN can create TURN channels that also need to be demultiplexed with the other packet types explicitly mentioned in Section 5.1.2 of RFC 5764.</t></list> </t>
      <t>Having overlapping ranges between different IANA registries becomes an issue when a new codepoint is allocated in one of these registries without carefully anyalyzing the impact it could have on the other registries when that codepoint is demultiplexed.  Even if a codepoint is not initially thought to be useful in an RFC 5764 implementation, the respective IANA registry expert should at least raise a flag when the allocated codepoint irrevocably prevents multiplexing.  </t>
      <t>The first goal of this document is to make sure that future allocations in any of the affected protocols are done with the full knowledge of their impact on multiplexing.  This is achieved by modifying the IANA registries with instructions for coordination between the protocols at risk.  </t>
      <t>A second goal is to permit the addition of new protocols to the list of existing multiplexed protocols in a manner that does not break existing implementations.  </t>
      <t>The flaws in the demultiplexing scheme were unavoidably inherited by other documents, such as <xref target="RFC7345" pageno="false" format="default"/> and <xref target="I-D.ietf-mmusic-sdp-bundle-negotiation" pageno="false" format="default"/>.  So in addition, these and any other affected documents will need to be corrected with the updates this document provides.  </t>
      </section>
      
      <section anchor="section.intro.stun" title="Implicit Allocation of Codepoints for New STUN Methods" toc="default">
        <t>The demultiplexing scheme in <xref target="RFC5764" pageno="false" format="default"/> states that the receiver can identify the packet type by looking at the first byte.  If the value of this first byte is 0 or 1, the packet is identified to be STUN.  The problem that arises as a result of this implicit allocation is that this restricts the codepoints for STUN methods (as described in Section 18.1 of <xref target="RFC5389" pageno="false" format="default"/>) to values between 0x000 and 0x07F, which in turn reduces the number of possible STUN method codepoints assigned by IETF Review (i.e., the range from (0x000 - 0x7FF) from 2048 to only 128 and eliminating the possibility of having STUN method codepoints assigned by Designated Expert (i.e., the range 0x800 - 0xFFF).  </t>
        <t>To preserve the Designated Expert range, this document allocates the value 2 and 3 to also identify STUN methods.</t>
        <t>The IANA Registry for STUN methods is modified to mark the codepoints from 0x100 to 0xFFF as Reserved.  These codepoints can still be allocated, but require IETF Review with a document that will properly evaluate the risk of an assignment overlapping with other registries.  </t>
        <t>In addition, this document also updates the IANA registry such that the STUN method codepoints assigned in the 0x080-0x0FF range are also assigned via Designated Expert.  The proposed changes to the STUN Method Registry are: </t>
        <t>OLD:</t>
        <figure title="" suppress-title="false" align="left" alt="" width="" height="">
          <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
0x000-0x7FF     IETF Review
0x800-0xFFF     Designated Expert</artwork>
        </figure>
        <t>NEW:</t>
        <figure title="" suppress-title="false" align="left" alt="" width="" height="">
          <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
0x000-0x07F     IETF Review
0x080-0x0FF     Designated Expert
0x100-0xFFF     Reserved</artwork>
        </figure>
      </section>
      <section anchor="section.intro.dtls" title="Implicit Allocation of New Codepoints for TLS ContentTypes" toc="default">
        <t>The demultiplexing scheme in <xref target="RFC5764" pageno="false" format="default"/> dictates that if the value of the first byte is between 20 and 63 (inclusive), then the packet is identified to be DTLS.  The problem that arises is that this restricts the TLS ContentType codepoints (as defined in Section 12 of <xref target="RFC5246" pageno="false" format="default"/>) to this range, and by extension implicitly allocates ContentType codepoints 0 to 19 and 64 to 255.  With respect to TLS packet identification, this document simply explicitly reserves the codepoints from 0 to 19 and from 64 to 255.  These codepoints can still be allocated, but require Standards Action with a document that will properly evaluate the risk of an assignment overlapping with other registries.  The proposed changes to the TLS ContentTypes Registry are: </t>
        <t>OLD:</t>
        <figure title="" suppress-title="false" align="left" alt="" width="" height="">
          <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
0-19    Unassigned
20      change_cipher_spec
21      alert
22      handshake
23      application_data
24      heartbeat
25-255  Unassigned</artwork>
        </figure>
        <t>NEW:</t>
        <figure title="" suppress-title="false" align="left" alt="" width="" height="">
          <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
0-19    Reserved (Requires coordination, see RFCXXXX)
20      change_cipher_spec
21      alert
22      handshake
23      application_data
24      heartbeat
25-63   Unassigned
64-255  Reserved (Requires coordination, see RFCXXXX)</artwork>
        </figure>
      </section>
      <section anchor="section.intro.turn" title="Multiplexing of TURN Channels" toc="default">
        <t>When used with <xref target="RFC5245" pageno="false" format="default">ICE</xref>, an RFC 5764 implementation can receive packets on the same socket from three different paths, as shown in <xref target="figure.turn" pageno="false" format="default"/>: <list style="numbers"><t>Directly from the source</t><t>Through a NAT</t><t>Relayed by a TURN server</t></list> <figure anchor="figure.turn" title="Packet Reception by an RFC 5764 Implementation" suppress-title="false" align="left" alt="" width="" height=""><artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">    +------+
    | TURN |&lt;------------------------+
    +------+                         |
       |                             |
       | +-------------------------+ |
       | |                         | |
       v v                         | |
NAT -----------                    | |
       | | +---------------------+ | |
       | | |                     | | |
       v v v                     | | |
   +----------+              +----------+
   | RFC 5764 |              | RFC 5764 |
   +----------+              +----------+</artwork></figure> Even if the ICE algorithm succeeded in selecting a non-relayed path, it is still possible to receive data from the TURN server.  For instance, when ICE is used with aggressive nomination the media path can quickly change until it stabilizes.  Also, freeing ICE candidates is optional, so the TURN server can restart forwarding STUN connectivity checks during an ICE restart.  </t>
        <t>TURN channels are an optimization where data packets are exchanged with a 4-byte prefix, instead of the standard 36-byte STUN overhead (see Section 2.5 of <xref target="RFC5766" pageno="false" format="default"/>).  The problem is that the RFC 5764 demultiplexing scheme does not define what to do with packets received over a TURN channel since these packets will start with a first byte whose value will be between 64 and 127 (inclusive).  If the TURN server was instructed to send data over a TURN channel, then the current RFC 5764 demultiplexing scheme will reject these packets.  Current implementations violate RFC 5764 for values 64 to 127 (inclusive) and they instead parse packets with such values as TURN.  </t>
        <t>In order to prevent future documents from assigning values from the unused range to a new protocol, this document modifies the RFC 5764 demultiplexing algorithm to properly account for TURN channels by allocating the values from 64 to 79 for this purpose.  </t>
      </section>


    <section anchor="section.terminology" title="Terminology" toc="default">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <xref target="RFC2119" pageno="false" format="default"/> when they appear in ALL CAPS.  When these words are not in ALL CAPS (such as "must" or "Must"), they have their usual English meanings, and are not to be interpreted as RFC 2119 key words.  </t>
    </section>
    <section anchor="section.modifications" title="RFC 5764 Updates" toc="default">
      <t>This document updates the text in Section 5.1.2 of <xref target="RFC5764" pageno="false" format="default"/> as follows:</t>
      <t>OLD TEXT</t>
      <t>The process for demultiplexing a packet is as follows.  The receiver looks at the first byte of the packet.  If the value of this byte is 0 or 1, then the packet is STUN.  If the value is in between 128 and 191 (inclusive), then the packet is RTP (or RTCP, if both RTCP and RTP are being multiplexed over the same destination port).  If the value is between 20 and 63 (inclusive), the packet is DTLS.  This process is summarized in Figure 3.  </t>
      <figure title="" suppress-title="false" align="left" alt="" width="" height="">
        <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
            +----------------+
            | 127 &lt; B &lt; 192 -+--&gt; forward to RTP
            |                |
packet --&gt;  |  19 &lt; B &lt; 64  -+--&gt; forward to DTLS
            |                |
            |       B &lt; 2   -+--&gt; forward to STUN
            +----------------+

    Figure 3: The DTLS-SRTP receiver's packet demultiplexing algorithm.
         Here the field B denotes the leading byte of the packet.</artwork>
      </figure>
      <t>END OLD TEXT</t>
      <t>NEW TEXT</t>
      <t>The process for demultiplexing a packet is as follows.  The receiver looks at the first byte of the packet.  If the value of this byte is in between 0 and 3 (inclusive), then the packet is STUN.  Then if the value is between 20 and 63 (inclusive), the packet is DTLS.  Then if the value is between 64 and 79 (inclusive), the packet is TURN Channel.  Then if the value is in between 128 and 191 (inclusive), then the packet is RTP (or RTCP, if both RTCP and RTP are being multiplexed over the same destination port).  Else if the value does not match any known range then the packet MUST be dropped and an alert MAY be logged.  This process is summarized in Figure 3.</t>
      <figure title="" suppress-title="false" align="left" alt="" width="" height="">
        <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
                   +----------------+
                   |        [0..3] -+--&gt; forward to STUN
                   |                |
       packet --&gt;  |      [20..63] -+--&gt; forward to DTLS
                   |                |
                   |      [64..79] -+--&gt; forward to TURN Channel
                   |                |
                   |    [128..191] -+--&gt; forward to RTP
                   +----------------+

    Figure 3: The DTLS-SRTP receiver's packet demultiplexing algorithm.</artwork>
      </figure>
      <t>END NEW TEXT</t>
    </section>
    <section anchor="section.ref-impl" title="Implementation Status" toc="default">
      <t>[[Note to RFC Editor: Please remove this section and the reference to <xref target="RFC6982" pageno="false" format="default"/> before publication.]]</t>
      <t>This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in <xref target="RFC6982" pageno="false" format="default"/>.  The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs.  Please note that the listing of any individual implementation here does not imply endorsement by the IETF.  Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors.  This is not intended as, and must not be construed to be, a catalog of available implementations or their features.  Readers are advised to note that other implementations may exist.  </t>
      <t>According to <xref target="RFC6982" pageno="false" format="default"/>, "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature.  It is up to the individual working groups to use this information as they see fit".  </t>
      <t>Note that there is currently no implementation declared in this section, but the intent is to add RFC 6982 templates here from implementers that support the modifications in this document.</t>
    </section>
    <section anchor="section.security" title="Security Considerations" toc="default">
      <t>This document updates existing IANA registries, adds a new range for TURN channels in the demuxing algorithm, and madates an ascending order for testing the ranges in the demuxing algorithm.</t>
      <t>These modifications do not introduce any specific security considerations beyond those detailed in <xref target="RFC5764" pageno="false" format="default"/>.</t>
    </section>
    <section anchor="section.iana" title="IANA Considerations" toc="default">
      <section anchor="section.iana.stun-methods" title="STUN Methods" toc="default">
        <t>This specification contains the registration information for reserved STUN Methods codepoints, as explained in <xref target="section.intro.stun" pageno="false" format="default"/> and in accordance with the procedures defined in Section 18.1 of <xref target="RFC5389" pageno="false" format="default"/>.</t>
        <t><list style="hanging"><t hangText="Value: ">0x100-0xFFF</t><t hangText="Name: ">Reserved (MUST be allocated with IETF Review. For DTLS-SRTP multiplexing collision avoidance see RFC XXXX)</t><t hangText="Reference: ">RFC5764, RFCXXXX</t></list> </t>
        <t>This specification also reassigns the ranges in the STUN Methods Registry as follow:</t>
        <t><list style="hanging"><t hangText="Range: ">0x000-0x07F</t><t hangText="Registration Procedures: ">IETF Review</t></list> <list style="hanging"><t hangText="Range: ">0x080-0x0FF</t><t hangText="Registration Procedures: ">Designated Expert</t></list> </t>
      </section>
      <section anchor="section.iana.tls-contenttype" title="TLS ContentType" toc="default">
        <t>This specification contains the registration information for reserved TLS ContentType codepoints, as explained in <xref target="section.intro.dtls" pageno="false" format="default"/> and in accordance with the procedures defined in Section 12 of <xref target="RFC5246" pageno="false" format="default"/>.</t>
        <t><list style="hanging"><t hangText="Value: ">0-19</t><t hangText="Description: ">Reserved (MUST be allocated with Standards Action. For DTLS-SRTP multiplexing collision avoidance see RFC XXXX)</t><t hangText="DTLS-OK: ">N/A</t><t hangText="Reference: ">RFC5764, RFCXXXX</t></list> </t>
        <t><list style="hanging"><t hangText="Value: ">64-255</t><t hangText="Description: ">Reserved (MUST be allocated with Standards Action. For DTLS-SRTP multiplexing collision avoidance see RFC XXXX)</t><t hangText="DTLS-OK: ">N/A</t><t hangText="Reference: ">RFC5764, RFCXXXX</t></list> </t>
      </section>
      <section anchor="section.iana.turn-channels" title="TURN Channel Numbers" toc="default">
        <t>This specification contains the registration information for reserved TURN Channel Numbers codepoints, as explained in <xref target="section.intro.turn" pageno="false" format="default"/> and in accordance with the procedures defined in Section 18 of <xref target="RFC5766" pageno="false" format="default"/>.</t>
        <t><list style="hanging"><t hangText="Value: ">0x5000-0xFFFF</t><t hangText="Name: ">Reserved (For DTLS-SRTP multiplexing collision avoidance see RFC XXXX)</t><t hangText="Reference: ">RFCXXXX</t></list> </t>
        <t>[RFC EDITOR NOTE: Please replace RFCXXXX with the RFC number of this document.]</t>
      </section>
    </section>
    <section anchor="section.acknowledgements" title="Acknowledgements" toc="default">
      <t>The implicit STUN Method codepoint allocations problem was first reported by Martin Thomson in the RTCWEB mailing-list and discussed further with Magnus Westerlund.</t>
      <t>Thanks to Simon Perreault, Colton Shields, Cullen Jennings, Colin Perkins, Magnus Westerlund, Paul Jones, Jonathan Lennox, Varun Singh and Justin Uberti for the comments, suggestions, and questions that helped improve this document.</t>
    </section>
  </middle>
  <back>
    <references title="Normative References">
      <reference anchor="RFC2119" target="http://www.rfc-editor.org/info/rfc2119">
        <front>
          <title>Key words for use in RFCs to Indicate Requirement Levels</title>
          <author initials="S." surname="Bradner" fullname="S. Bradner">
            <organization/>
          </author>
          <date year="1997" month="March"/>
          <abstract>
            <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="2119"/>
        <seriesInfo name="DOI" value="10.17487/RFC2119"/>
      </reference>
      <reference anchor="RFC3550" target="http://www.rfc-editor.org/info/rfc3550">
        <front>
          <title>RTP: A Transport Protocol for Real-Time Applications</title>
          <author initials="H." surname="Schulzrinne" fullname="H. Schulzrinne">
            <organization/>
          </author>
          <author initials="S." surname="Casner" fullname="S. Casner">
            <organization/>
          </author>
          <author initials="R." surname="Frederick" fullname="R. Frederick">
            <organization/>
          </author>
          <author initials="V." surname="Jacobson" fullname="V. Jacobson">
            <organization/>
          </author>
          <date year="2003" month="July"/>
          <abstract>
            <t>This memorandum describes RTP, the real-time transport protocol.  RTP provides end-to-end network transport functions suitable for applications transmitting real-time data, such as audio, video or simulation data, over multicast or unicast network services.  RTP does not address resource reservation and does not guarantee quality-of- service for real-time services.  The data transport is augmented by a control protocol (RTCP) to allow monitoring of the data delivery in a manner scalable to large multicast networks, and to provide minimal control and identification functionality.  RTP and RTCP are designed to be independent of the underlying transport and network layers.  The protocol supports the use of RTP-level translators and mixers. Most of the text in this memorandum is identical to RFC 1889 which it obsoletes.  There are no changes in the packet formats on the wire, only changes to the rules and algorithms governing how the protocol is used. The biggest change is an enhancement to the scalable timer algorithm for calculating when to send RTCP packets in order to minimize transmission in excess of the intended rate when many participants join a session simultaneously.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="STD" value="64"/>
        <seriesInfo name="RFC" value="3550"/>
        <seriesInfo name="DOI" value="10.17487/RFC3550"/>
      </reference>
      <reference anchor="RFC3711" target="http://www.rfc-editor.org/info/rfc3711">
        <front>
          <title>The Secure Real-time Transport Protocol (SRTP)</title>
          <author initials="M." surname="Baugher" fullname="M. Baugher">
            <organization/>
          </author>
          <author initials="D." surname="McGrew" fullname="D. McGrew">
            <organization/>
          </author>
          <author initials="M." surname="Naslund" fullname="M. Naslund">
            <organization/>
          </author>
          <author initials="E." surname="Carrara" fullname="E. Carrara">
            <organization/>
          </author>
          <author initials="K." surname="Norrman" fullname="K. Norrman">
            <organization/>
          </author>
          <date year="2004" month="March"/>
          <abstract>
            <t>This document describes the Secure Real-time Transport Protocol (SRTP), a profile of the Real-time Transport Protocol (RTP), which can provide confidentiality, message authentication, and replay protection to the RTP traffic and to the control traffic for RTP, the Real-time Transport Control Protocol (RTCP).   [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="3711"/>
        <seriesInfo name="DOI" value="10.17487/RFC3711"/>
      </reference>
      <reference anchor="RFC5245" target="http://www.rfc-editor.org/info/rfc5245">
        <front>
          <title>Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols</title>
          <author initials="J." surname="Rosenberg" fullname="J. Rosenberg">
            <organization/>
          </author>
          <date year="2010" month="April"/>
          <abstract>
            <t>This document describes a protocol for Network Address Translator (NAT) traversal for UDP-based multimedia sessions established with the offer/answer model.  This protocol is called Interactive Connectivity Establishment (ICE).  ICE makes use of the Session Traversal Utilities for NAT (STUN) protocol and its extension, Traversal Using Relay NAT (TURN).  ICE can be used by any protocol utilizing the offer/answer model, such as the Session Initiation Protocol (SIP).  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="5245"/>
        <seriesInfo name="DOI" value="10.17487/RFC5245"/>
      </reference>
      <reference anchor="RFC5246" target="http://www.rfc-editor.org/info/rfc5246">
        <front>
          <title>The Transport Layer Security (TLS) Protocol Version 1.2</title>
          <author initials="T." surname="Dierks" fullname="T. Dierks">
            <organization/>
          </author>
          <author initials="E." surname="Rescorla" fullname="E. Rescorla">
            <organization/>
          </author>
          <date year="2008" month="August"/>
          <abstract>
            <t>This document specifies Version 1.2 of the Transport Layer Security (TLS) protocol.  The TLS protocol provides communications security over the Internet.  The protocol allows client/server applications to communicate in a way that is designed to prevent eavesdropping, tampering, or message forgery.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="5246"/>
        <seriesInfo name="DOI" value="10.17487/RFC5246"/>
      </reference>
      <reference anchor="RFC5389" target="http://www.rfc-editor.org/info/rfc5389">
        <front>
          <title>Session Traversal Utilities for NAT (STUN)</title>
          <author initials="J." surname="Rosenberg" fullname="J. Rosenberg">
            <organization/>
          </author>
          <author initials="R." surname="Mahy" fullname="R. Mahy">
            <organization/>
          </author>
          <author initials="P." surname="Matthews" fullname="P. Matthews">
            <organization/>
          </author>
          <author initials="D." surname="Wing" fullname="D. Wing">
            <organization/>
          </author>
          <date year="2008" month="October"/>
          <abstract>
            <t>Session Traversal Utilities for NAT (STUN) is a protocol that serves as a tool for other protocols in dealing with Network Address Translator (NAT) traversal.  It can be used by an endpoint to determine the IP address and port allocated to it by a NAT.  It can also be used to check connectivity between two endpoints, and as a keep-alive protocol to maintain NAT bindings.  STUN works with many existing NATs, and does not require any special behavior from them.</t>
            <t>STUN is not a NAT traversal solution by itself.  Rather, it is a tool to be used in the context of a NAT traversal solution.  This is an important change from the previous version of this specification (RFC 3489), which presented STUN as a complete solution.</t>
            <t>This document obsoletes RFC 3489.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="5389"/>
        <seriesInfo name="DOI" value="10.17487/RFC5389"/>
      </reference>
      <reference anchor="RFC5764" target="http://www.rfc-editor.org/info/rfc5764">
        <front>
          <title>Datagram Transport Layer Security (DTLS) Extension to Establish Keys for the Secure Real-time Transport Protocol (SRTP)</title>
          <author initials="D." surname="McGrew" fullname="D. McGrew">
            <organization/>
          </author>
          <author initials="E." surname="Rescorla" fullname="E. Rescorla">
            <organization/>
          </author>
          <date year="2010" month="May"/>
          <abstract>
            <t>This document describes a Datagram Transport Layer Security (DTLS) extension to establish keys for Secure RTP (SRTP) and Secure RTP Control Protocol (SRTCP) flows.  DTLS keying happens on the media path, independent of any out-of-band signalling channel present. [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="5764"/>
        <seriesInfo name="DOI" value="10.17487/RFC5764"/>
      </reference>
      <reference anchor="RFC5766" target="http://www.rfc-editor.org/info/rfc5766">
        <front>
          <title>Traversal Using Relays around NAT (TURN): Relay Extensions to Session Traversal Utilities for NAT (STUN)</title>
          <author initials="R." surname="Mahy" fullname="R. Mahy">
            <organization/>
          </author>
          <author initials="P." surname="Matthews" fullname="P. Matthews">
            <organization/>
          </author>
          <author initials="J." surname="Rosenberg" fullname="J. Rosenberg">
            <organization/>
          </author>
          <date year="2010" month="April"/>
          <abstract>
            <t>If a host is located behind a NAT, then in certain situations it can be impossible for that host to communicate directly with other hosts (peers).  In these situations, it is necessary for the host to use the services of an intermediate node that acts as a communication relay.  This specification defines a protocol, called TURN (Traversal Using Relays around NAT), that allows the host to control the operation of the relay and to exchange packets with its peers using the relay.  TURN differs from some other relay control protocols in that it allows a client to communicate with multiple peers using a single relay address.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="5766"/>
        <seriesInfo name="DOI" value="10.17487/RFC5766"/>
      </reference>
      <reference anchor="RFC6347" target="http://www.rfc-editor.org/info/rfc6347">
        <front>
          <title>Datagram Transport Layer Security Version 1.2</title>
          <author initials="E." surname="Rescorla" fullname="E. Rescorla">
            <organization/>
          </author>
          <author initials="N." surname="Modadugu" fullname="N. Modadugu">
            <organization/>
          </author>
          <date year="2012" month="January"/>
          <abstract>
            <t>This document specifies version 1.2 of the Datagram Transport Layer Security (DTLS) protocol.  The DTLS protocol provides communications privacy for datagram protocols.  The protocol allows client/server applications to communicate in a way that is designed to prevent eavesdropping, tampering, or message forgery.  The DTLS protocol is based on the Transport Layer Security (TLS) protocol and provides equivalent security guarantees.  Datagram semantics of the underlying transport are preserved by the DTLS protocol.  This document updates DTLS 1.0 to work with TLS version 1.2.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6347"/>
        <seriesInfo name="DOI" value="10.17487/RFC6347"/>
      </reference>
    </references>
    <references title="Informative References">
      <reference anchor="RFC6982" target="http://www.rfc-editor.org/info/rfc6982">
        <front>
          <title>Improving Awareness of Running Code: The Implementation Status Section</title>
          <author initials="Y." surname="Sheffer" fullname="Y. Sheffer">
            <organization/>
          </author>
          <author initials="A." surname="Farrel" fullname="A. Farrel">
            <organization/>
          </author>
          <date year="2013" month="July"/>
          <abstract>
            <t>This document describes a simple process that allows authors of Internet-Drafts to record the status of known implementations by including an Implementation Status section.  This will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature.</t>
            <t>The process in this document is offered as an experiment.  Authors of Internet-Drafts are encouraged to consider using the process for their documents, and working groups are invited to think about applying the process to all of their protocol specifications.  The authors of this document intend to collate experiences with this experiment and to report them to the community.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6982"/>
        <seriesInfo name="DOI" value="10.17487/RFC6982"/>
      </reference>
      <reference anchor="RFC7345" target="http://www.rfc-editor.org/info/rfc7345">
        <front>
          <title>UDP Transport Layer (UDPTL) over Datagram Transport Layer Security (DTLS)</title>
          <author initials="C." surname="Holmberg" fullname="C. Holmberg">
            <organization/>
          </author>
          <author initials="I." surname="Sedlacek" fullname="I. Sedlacek">
            <organization/>
          </author>
          <author initials="G." surname="Salgueiro" fullname="G. Salgueiro">
            <organization/>
          </author>
          <date year="2014" month="August"/>
          <abstract>
            <t>This document specifies how the UDP Transport Layer (UDPTL) protocol, the predominant transport protocol for T.38 fax, can be transported over the Datagram Transport Layer Security (DTLS) protocol, how the usage of UDPTL over DTLS is indicated in the Session Description Protocol (SDP), and how UDPTL over DTLS is negotiated in a session established using the Session Initiation Protocol (SIP).</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="7345"/>
        <seriesInfo name="DOI" value="10.17487/RFC7345"/>
      </reference>
      <reference anchor="I-D.ietf-mmusic-sdp-bundle-negotiation">
        <front>
          <title>Negotiating Media Multiplexing Using the Session Description Protocol (SDP)</title>
          <author initials="C" surname="Holmberg" fullname="Christer Holmberg">
            <organization/>
          </author>
          <author initials="H" surname="Alvestrand" fullname="Harald Alvestrand">
            <organization/>
          </author>
          <author initials="C" surname="Jennings" fullname="Cullen Jennings">
            <organization/>
          </author>
          <date month="July" day="20" year="2015"/>
          <abstract>
            <t>This specification defines a new Session Description Protocol (SDP) Grouping Framework extension, 'BUNDLE'.  The extension can be used with the SDP Offer/Answer mechanism to negotiate the usage of a single address:port combination (BUNDLE address) for receiving media, referred to as bundled media, associated with multiple SDP media descriptions ("m=" lines).  To assist endpoints in negotiating the use of bundle this specification defines a new SDP attribute, 'bundle-only', which can be used to request that specific media is only used if bundled.  There are multiple ways to correlate the bundled RTP packets with the appropriate media descriptions.  This specification defines a new Real-time Transport Protocol (RTP) source description (SDES) item and a new RTP header extension that provides an additional way to do this correlation by using them to carry a value that associates the RTP/ RTCP packets with a specific media description.</t>
          </abstract>
        </front>
        <seriesInfo name="Internet-Draft" value="draft-ietf-mmusic-sdp-bundle-negotiation-23"/>
        <format type="TXT" target="http://www.ietf.org/internet-drafts/draft-ietf-mmusic-sdp-bundle-negotiation-23.txt"/>
      </reference>
    </references>
    <section title="Release notes" toc="default">
      <t>This section must be removed before publication as an RFC.</t>
      <section title="Modifications between draft-ietf-avtcore-rfc5764-mux-fixes-04 and draft-ietf-avtcore-rfc5764-mux-fixes-03" toc="default">
        <t><list style="symbols"><t>Removed Section on "Demultiplexing Algorithm Test Order"</t><t>Split the Introduction into separate sections</t></list> </t>
      </section>
      <section title="Modifications between draft-ietf-avtcore-rfc5764-mux-fixes-03 and draft-ietf-avtcore-rfc5764-mux-fixes-02" toc="default">
        <t><list style="symbols"><t>Revert to the RFC 5389, as the stunbis reference was needed only for STUN over SCTP.</t></list> </t>
      </section>
      <section title="Modifications between draft-ietf-avtcore-rfc5764-mux-fixes-02 and draft-ietf-avtcore-rfc5764-mux-fixes-01" toc="default">
        <t><list style="symbols"><t>Remove any discussion about SCTP until a consensus emerges in TRAM.</t></list> </t>
      </section>
      <section title="Modifications between draft-ietf-avtcore-rfc5764-mux-fixes-01 and draft-ietf-avtcore-rfc5764-mux-fixes-00" toc="default">
        <t><list style="symbols"><t>Instead of allocating the values that are common on each registry, the specification now only reserves them, giving the possibility to allocate them in case muxing is irrelevant.</t><t>STUN range is now 0-3m with 2-3 being Designated Expert.</t><t>TLS ContentType 0-19 and 64-255 are now reserved.</t><t>Add SCTP over UDP value.</t><t>If an implementation uses the source IP address/port to separate TURN channels packets then the whole channel numbers are available.</t><t>If not the prefix is between 64 and 79.</t><t>First byte test order is now by incremental values, so failure is deterministic.</t><t>Redraw the demuxing diagram.</t></list> </t>
      </section>
      <section title="Modifications between draft-ietf-avtcore-rfc5764-mux-fixes-00 and draft-petithuguenin-avtcore-rfc5764-mux-fixes-02" toc="default">
        <t><list style="symbols"><t>Adoption by WG.</t><t>Add reference to STUNbis.</t></list> </t>
      </section>
      <section title="Modifications between draft-petithuguenin-avtcore-rfc5764-mux-fixes-00 and draft-petithuguenin-avtcore-rfc5764-mux-fixes-01" toc="default">
        <t><list style="symbols"><t>Change affiliation.</t></list> </t>
      </section>
    </section>
  </back>
</rfc>
