<?xml version="1.0"?>
<?rfc symrefs="yes"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<?rfc sortrefs="no" ?>
<rfc category="std" docName="draft-ietf-mmusic-sctp-sdp-10" ipr="trust200902">

<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>

<front>
    <title abbrev="The SCTP protocol identifier for SDP">
		Stream Control Transmission Protocol (SCTP)-Based Media
		Transport in the Session Description Protocol (SDP)
    </title>

    <author initials="C." surname="Holmberg" fullname="Christer Holmberg">
		<organization>Ericsson</organization>
		<address>
			<postal>
				<street>Hirsalantie 11</street>
				<code>02420</code>
				<city>Jorvas</city>
				<country>Finland</country>
			</postal>
			<email>christer.holmberg@ericsson.com</email>
		</address>
    </author>
		
    <author initials="S." surname="Loreto" fullname="Salvatore Loreto">
		<organization>Ericsson</organization>
		<address>
			<postal>
				<street>Hirsalantie 11</street>
				<code>02420</code>
				<city>Jorvas</city>
				<country>Finland</country>
			</postal>
			<email>Salvatore.Loreto@ericsson.com</email>
		</address>
    </author>

    <author initials="G." surname="Camarillo" fullname="Gonzalo Camarillo">
		<organization>Ericsson</organization>
		<address>
			<postal>
				<street>Hirsalantie 11</street>
				<code>02420</code>
				<city>Jorvas</city>
				<country>Finland</country>
			</postal>
			<email>Gonzalo.Camarillo@ericsson.com</email>
		</address>
    </author>

	<date year="2014"/>
	<area>RAI</area>
	<workgroup>MMUSIC</workgroup>
	<keyword>SCTP, SDP, DTLS</keyword>

	<abstract>
		<t>
			SCTP (Stream Control Transmission Protocol) is a transport protocol used to 
			establish associations between two endpoints. 
		</t>
		<t>
			This specification describes how 
			to describe SCTP associations using the Session Description Protocol (SDP),
			and defines the following new SDP Media Description protocol identifiers
			(proto values):'SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP'.
		</t>
		<t>
			The specification also describes how to use the new proto values together
			with the SDP Offer/Answer mechanism in order to negotiate and establish
			SCTP associations, and how to indicate the SCTP application usage.
		</t>
	</abstract>
</front>

<middle>
	<section title="Introduction">
		<t>
			SDP (Session Description Protocol) <xref target="RFC4566"/> provides a 
			general-purpose format for describing multimedia sessions in announcements 
			or invitations. TCP-Based Media Transport in the Session Description Protocol 
			(SDP) <xref target="RFC4145"/> specifies a general mechanism for describing and 
			establishing TCP (Transmission Control Protocol) <xref target="RFC5246"/> streams. 
			Connection-Oriented Media Transport over the Transport Layer Security (TLS) 
			Protocol in the Session Description Protocol (SDP) <xref target="RFC4572"/> 
			extends RFC4145 <xref target="RFC4145"/> for describing TCP-based media 
			streams that are protected using TLS.
		</t>
		<t>
			SCTP (Stream Control Transmission Protocol) is a transport protocol used to 
			establish associations between two endpoints. 
		</t>
		<t>
			This specification describes how 
			to describe SCTP associations using the Session Description Protocol (SDP)
			<xref target="RFC4566"/>, and defines the following new SDP Media Description
			<xref target="RFC4566"/> protocol identifiers (proto values):'SCTP', 'SCTP/DTLS', 
			'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP'.
		</t>
		<t>
			The specification also describes how to use the new proto values together
			with the SDP Offer/Answer mechanism <xref target="RFC3264"/> in order to 
			negotiate and establish SCTP associations, and how to indicate the SCTP 
			application usage.
		</t>
		<t>
			NOTE: TLS is designed to run on top of a byte-stream oriented transport
			protocol providing a reliable, in-sequence delivery like TCP.  
			<xref target="RFC6083"/> presents serious limitations with
			transporting SCTP on top of TLS. Therefore, defining a mechanism
			to negotiate media streams transported using SCTP on top of TLS 
			is outside the scope of this specification.
		</t>
	</section>

	<section title="Terminology">
		<t>
			In this document, the key words "MUST", "MUST NOT", "REQUIRED",
			"SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT
			RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described
			in BCP 14, <xref target="RFC2119">RFC 2119</xref> and indicate
			requirement levels for compliant implementations.
		</t>
	</section>
	
	<section title="SCTP Terminology">
		<t>
			SCTP Association: A protocol relationship between SCTP endpoints,
			composed of the two SCTP endpoints and protocol state information
			including Verification Tags and the currently active set of
			Transmission Sequence Numbers (TSNs), etc.  An association can be
			uniquely identified by the transport addresses used by the
			endpoints in the association. Two SCTP endpoints MUST NOT have
			more than one SCTP association between them at any given time.
		</t>
		<t>
			SCTP Stream: A unidirectional logical channel established from one to
			another associated SCTP endpoint, within which all user messages
			are delivered in sequence except for those submitted to the
			unordered delivery service.
		</t>
		<t>
			SCTP Transport address: A transport address is traditionally defined by
			a network-layer address, a transport-layer protocol, and a
			transport-layer port number. In the case of SCTP running over IP,
			a transport address is defined by the combination of an IP address
			and an SCTP port number (where SCTP is the transport protocol).
		</t>
	</section>

	<section title="SDP Media Descriptions" anchor="m-line">
		<section title="General" anchor="m-line-gen">
			<t>
				This section defines the following new SDP Media Description (m- line)
				protocol identifiers (proto values) for describing an SCTP association: 
				'SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP'. The section 
				also describes how an m- line, associated with the proto values, is created.
			</t>
			<t>
				The following is the format for an 'm' line, as specified in RFC4566
				<xref target="RFC4566"/>:
			</t>
			<figure>
				<artwork><![CDATA[
    m=<media> <port> <proto> <fmt> ...
				]]></artwork>
			</figure>
			<t>
				The 'SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP' proto 
				values are similar to both the 'UDP' and 'TCP' proto values in that they 
				only describe the transport-layer protocol and not the upper-layer 
				protocol.
			</t>
			<t>
				NOTE: When the 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP' proto values are used, 
				the underlying transport protocol is either UDP or TCP, SCTP is carried
				on top of either of those transport-layer protocols.
			</t>
			<t>
				The m- line fmt value, identifying the application-layer protocol,
				MUST be registered by IANA.
			</t>
		</section>

		<section title="Protocol Identifiers" anchor="proto">
			<t>
				The new proto values are defined as below:
			</t>
			<t>
				<list style="symbols">
					<t>
						The 'SCTP' proto value describes an SCTP association, as 
						defined in <xref target="RFC4960"/>.
					</t>
					<t>
						The 'SCTP/DTLS' proto value describes a Datagram Transport Layer 
						Security (DTLS) <xref target="RFC6347"/> 
						connection on top of an SCTP association, as defined in <xref target="RFC6083"/>.
					</t>
					<t>
						The 'UDP/DTLS/SCTP' proto value describes an SCTP association on top of
						a DTLS connection on top of UDP, as defined in 
						<xref target="sec-udp-dtls-sctp"/>.
					</t>
					<t>
						The 'TCP/DTLS/SCTP' proto value describes an SCTP association on top of
						a DTLS connection on top of TCP, as defined in 
						<xref target="sec-tcp-dtls-sctp"/>.
					</t>
				</list>
			</t>			
		</section>

		<section title="Media Format Management" anchor="media">
			<t>
				<xref target="RFC4566"/> defines that specifications defining new proto values must 
				define the rules by which their media format (fmt) namespace is managed.
				Use of an existing MIME subtype for the format is encouraged. If no MIME subtype 
				exists, it is recommended that a suitable one is registered through the 
				IETF process <xref target="RFC6838"/> <xref target="RFC4289"/> by production of, or 
				reference to, a standards-track RFC that defines the transport protocol for the format.
			</t>
			<t>
				An m- line with a proto value of 'SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP' 
				always describe a single SCTP association.
			</t>
			<t>
				In addition, such m- line MUST further indicate the application-layer protocol 
				using an 'fmt' identifier. There MUST be exactly one 'fmt' value per m- line associated
				with the proto values defined in this specification. The "fmt" namespace associated
				with those proto values describes the generic application usage of the entire SCTP
				association, including the associated SCTP streams. 
			</t>
			<t>
				NOTE: A mechanism on how to describe, and manage, individual SCTP streams within an
				SCTP association, is outside the scope of this specification.
			</t>
		</section>
		
		<section title="Syntax" anchor="m-line-syn">
			<figure>
				<artwork><![CDATA[
    sctp-m-line = %x6d "="
     ("application" SP sctp-port SP "SCTP"	SP sctp-fmt CRLF) /
     ("application" SP sctp-port SP "SCTP/DTLS" SP sctp-fmt CRLF) /
     ("application" SP udp-port  SP "UDP/DTLS/SCTP" SP sctp-fmt CRLF) /
	 ("application" SP udp-port  SP "TCP/DTLS/SCTP" SP sctp-fmt CRLF)

    sctp-port = port

    udp-port = port

    sctp-fmt = association-usage 

    association-usage = token
				]]></artwork>
			</figure>
		</section>
		<section title="Example">
			<figure>
				<artwork><![CDATA[
 
 m=application 12345 UDP/DTLS/SCTP webrtc-datachannel 
 a=max-message-size: 100000 
 
 				]]></artwork>
			</figure>
		</section>
	</section>

	<section title="SDP 'sctp-port' Attribute" anchor="attr-sctp-port">
		<section title="General" anchor="attr-sctp-port-gen">
			<t>
				This section defines a new SDP media-level attribute, 'sctp-port'.
				The attribute can be associated with an SDP media descriptor (m- line)
				with a 'UDP/DTLS/SCTP' or a 'TCP/DTLS/SCTP' proto value, in which case 
				the m- line port value indicates the port of the transport-layer 
				protocol (UDP or TCP), on which SCTP is carried.
			</t>
			<t>
				If the SDP sctp-port attribute is not present, the m- line MUST
				be discarded.
			</t>
			<t>
				Usage of the SDP sctp-port attribute with other proto values
				is not specified, and MUST be discarded if received.
			</t>
		</section>
		<section title="Syntax" anchor="attr-sctp-port-syn">
			<figure>
				<artwork><![CDATA[

    sctp-port-attr  =  "a=sctp-port:" port
	port            =  1*DIGIT

				]]></artwork>
			</figure>
		</section>
	</section>


	<section title="SDP 'max-message-size' Attribute" anchor="attr-max-message-size">
		<section title="General" anchor="attr-max-message-size-gen">
			<t>
				The SDP 'max-message-size' attribute can be associated with an m- line to 
				indicate the maximum message size that an SCTP endpoint is willing to receive
				on the SCTP association associated with the m- line.
			</t>
			<t>
				The remote peer MUST assume that larger messages will be rejected by the
				SCTP endpoint. SCTP endpoints need to decide on appropriate behavior in 
				case a message that exceeds the maximum size needs to be sent.
			</t>
			<t>
				If the SDP 'max-message-size' attribute contains a maximum message size 
				value of zero, it indicates the SCTP endpoint will handle messages of any size, 
				subject to memory capacity etc.
			</t>
			<t>
				If the SDP 'max-message-size' attribute is not present, the default value is 
				64K.
			</t>
		</section>
		<section title="Syntax" anchor="attr-max-message-size-syn">
			<figure>
				<artwork><![CDATA[

    max-message-size-attr =  "a=max-message-size:" max-message-size
    max-message-size      =  1*DIGIT

				]]></artwork>
			</figure>
		</section>
	</section>
	
	<section title="SDP 'fmtp' Attribute" anchor="fmtp-max-message-size">
		<section title="General" anchor="fmtp-max-message-size-gen">
			<t>
				The SDP 'fmtp' attribute can be used with an m- line, associated with an
				SCTP association, to indicate the maximum message size that an SCTP endpoint 
				is willing to receive, for a particular SCTP association usage, on that 
				SCTP association.
			</t>
			<t>
				The remote peer MUST assume that larger messages will be rejected by the
				SCTP endpoint. SCTP endpoints need to decide on appropriate behavior in 
				case a message that exceeds the maximum size needs to be sent.
			</t>
			<t>
				If the SDP 'fmtp' attribute contains a maximum message size value of zero,
				it indicates the SCTP endpoint will handle messages of any size, subject
				to memory capacity etc.
			</t>
			<t>
				If the SDP 'fmtp' attribute is not present, the default value is 64K.
			</t>
			<t>
				NOTE: This specification only defines the usage of the SDP 'max-message-size'
				attribute when associated with an m- line containing one of the following proto
				field values: 'SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP'. 
				Usage of the attribute with other proto values needs to be defined 
				in a separate specification.
			</t>
		</section>
		<section title="Syntax" anchor="fmtp-max-message-size-syn">
			<figure>
				<artwork><![CDATA[

    sctpmap-attr      =  "a=fmtp:" association-usage [max-message-size]
    max-message-size  =  "max-message-size" EQUALS 1*DIGIT

				]]></artwork>
			</figure>
		</section>
	</section>
	
	<section title="UDP/DTLS/SCTP Transport Realization" anchor="sec-udp-dtls-sctp">
		<t>
			The UDP/DTLS/SCTP transport is realized as described below:
		</t>
		<t>
			<list style="symbols">
				<t>
						SCTP on top of DTLS is realized according to the procedures
						defined in <xref target="I-D.ietf-tsvwg-sctp-dtls-encaps"/>; and
				</t>
				<t>
						DTLS on top of UDP is realized according to the procedures in
						defined in <xref target="RFC6347"/>.
				</t>
			</list>
		</t>
	</section>
	
	<section title="TCP/DTLS/SCTP Transport Realization" anchor="sec-tcp-dtls-sctp">
		<t>
			The TCP/DTLS/SCTP transport is realized as described below:
		</t>
		<t>
			<list style="symbols">
				<t>
					SCTP on top of DTLS is realized according to the procedures
					defined in <xref target="I-D.ietf-tsvwg-sctp-dtls-encaps"/>; and
				</t>
				<t>
					DTLS on top of TCP is realized using the framing method defined in
					<xref target="RFC4571"/>.
				</t>
			</list>
		</t>
		<t>
			NOTE: DTLS on top of TCP, without using the framing method defined in
			<xref target="RFC4571"/> is outside the scope of this specification.
			A separate proto value would need to be registered for such 
			transport realization.
		</t>
	</section>
	
	
	<section title="SCTP Association Management" anchor="sec-attributes-mgmt">
		<section title="General" anchor="sec-attributes-mgmt-gen">
			<t>
				The management of an SCTP association is identical to the management
				of a TCP connection. An SCTP endpoints MUST follow the rules in
				Section 6 of <xref target="RFC4145"/> to manage SCTP associations. 
				Whether to use the SCTP ordered or unordered delivery service is up 
				to the applications using the SCTP association, and this specification
				does not define a mechanism to indicate the type of delivery service
				using SDP.
			</t>
		</section>
		<section title="SDP sendrecv/sendonly/sendrecv/inactive Attribute" anchor="sec-attributes-direction">
			<t>
				This specification does not define semantics for the SDP direction
				attributes <xref target="RFC4566"/>.  Specifications for an individual 
				SCTP association usage MAY define how the attributes can be used with 
				that usage. Unless semantics of these attributes for an SCTP association 
				usage have been defined, SDP direction attributes MUST be discarded if present.
			</t>
		</section>
		<section title="SDP setup Attribute" anchor="sec-attributes-setup">
			<section title="General" anchor="sec-attributes-setup-gen">
				<t>
					The SDP setup attribute is used to determine the 'active/passive'
					status of the endpoints, following the procedures for TCP in 
					<xref target="RFC4145"/>.
				</t>			
			</section>
			<section title="SCTP Association Initiation" anchor="sec-attributes-setup-init">
				<t>
					Both the 'active' and 'passive' endpoint MUST initiate the SCTP association,
					and MUST use the same SCTP port as client port and server port
					(in order to prevent two separate SCTP associations from being established).
				</t>
				<t>
					NOTE: The procedure above is different from TCP, where only the 'active'
					endpoint initiates the TCP connection <xref target="RFC4145"/>.
				</t>
				<t>
					If the m- line proto value is 'TCP/DTLS/SCTP', only the 'active' endpoint 
					will initiate the TCP connection, following the procedures in 
					<xref target="RFC4145"/>. Both endpoints will still initiate the SCTP association
					on top of the TCP connection.
				</t>
			</section>
			<section title="TLS Role Determination" anchor="sec-attributes-setup-tls">
				<t>
					If the m- line proto value is 'SCTP/DTLS', 'UDP/DTLS/SCTP' 
					or 'TCP/DTLS/SCTP', the 'active/passive' status is used to determine 
					the TLS roles of the endpoints. Following the procedures in 
					<xref target="RFC4572"/>, the 'active' endpoint will take 
					the TLS client role.
				</t>
				<t>
					Once a DTLS connection has been established, if the 'active/passive' status of the
					endpoints change (as result of an offer/answer transaction) during a session, a 
					new DTLS connection MUST be established. Therefore, endpoints SHOULD NOT change 
					the 'active/passive' status during a session, unless they want to establish a 
					new DTLS connection. 
				</t>
				<t>
					If the transport parameters or the key fingerprints change, the endpoints 
					MUST establish a new DTLS connection. In such case the 'active/passive' 
					status of the endpoints will again be determined following the procedures
					in <xref target="RFC4145"/>, and the new status will be used to determine the 
					TLS roles of the endpoints associated with the new DTLS connection.
				</t>
				<t>
					NOTE: The procedure above is identical to the one defined for SRTP-DTLS in
					<xref target="RFC5763"/>.
				</t>
			</section>
		</section>
		<section title="SDP connection Attribute" anchor="sec-attributes-connection">
			<t>
				The SDP connection attribute is used following the procedures in 
				<xref target="RFC4145"/>, with the additional SCTP specific 
				considerations described in this section.
			</t>
			<t>
				If the m- line proto value is 'TCP/DTLS/SCTP', an SDP connection
				attribute associated with that m- line applies to both the 
				SCTP association and the TCP connection. Therefore, an 
				attribute 'new' value indicates that both a new SCTP association,
				and a new TCP connection, have to be established, 
				following the procedures in <xref target="RFC4145"/>.
			</t>
			<t>
				NOTE: This specification does not define a mechanism which allows
				re-establishing of a new SCTP association, while maintaining the
				TCP connection.			
			</t>
			<t>
				The SDP connection attribute value does not automatically impact 
				an existing DTLS connection. <xref target="sec-attributes-setup-tls"/> 
				describes in which cases a new DTLS connections will be established.
			</t>
			<t>
				NOTE: If the m- line proto value is 'SCTP/DTLS', and if the
				SCTP association is re-established, the DTLS connection also needs
				to be re-established.
			</t>
		</section>
	</section>

	<section title="SDP Offer/Answer Procedures">
		<section title="General">
			<t>
				This section defines the SDP Offer/Answer <xref target="RFC3264"/>
				procedures for negotiating and establishing an SCTP association. Unless
				explicitly stated, the procedures apply to all m- line proto values
				('SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP') defined 
				in this specification.
			</t>
			<t>
				If the m- line proto value is 'SCTP/DTLS', 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP', 
				each endpoint MUST provide a certificate fingerprint, using the SDP 'fingerprint' 
				attribute <xref target="RFC4145"/>, if the endpoint supports, and is willing to use, 
				a cipher suite with an associated certificate.
			</t>
			<t>
				The authentication certificates are interpreted and validated as
				defined in <xref target="RFC4572"/>. Self-signed certificates can 
				be used securely, provided that the integrity of the SDP description 
				is assured as defined in <xref target="RFC4572"/>.
			</t>
			<t>
				NOTE: The procedures apply to a specific m- line describing an SCTP association.
				If an offer or answer contains multiple m- lines describing SCTP associations,
				the procedures are applied separately to each m- line.
			</t>
		</section>
		<section title="Generating the Initial SDP Offer" anchor="sec-oa-initial-offer">
			<t>
				When the offerer creates an initial offer, the offerer:
			</t>
			<t>
				<list style="symbols">
					<t>
						MUST, if the m- line proto value is 'SCTP/DTLS', 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP', 
						associate an SDP setup attribute [<xref target="sec-attributes-setup" />], 
						with an 'actpass' value, with the m- line;
					</t>
					<t>
						MUST, if the m- line proto is 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP', associate an 
						SDP 'sctp-port' attribute [<xref target="attr-sctp-port" />] with the m- line;
					</t>
					<t>
						MUST associate an SDP 'connection' attribute [<xref target="sec-attributes-connection" />], 
						with a 'new' value, with the m- line; and
					</t>
					<t>
						MAY associate an SDP 'max-message-size' attribute [<xref target="fmtp-max-message-size" />] 
						with the m- line.
					</t>
				</list>
			</t>
		</section>
		<section title="Generating the SDP Answer">
			<t>
				When the answerer receives an offer, which contains an m- line describing
				an SCTP association, if the answerer accepts the m- line it:
			</t>
			<t>
				<list style="symbols">
					<t>
						MUST insert a corresponding m- line in the answer, with an identical
						m- line proto value <xref target="RFC3264"/>;
					</t>
					<t>
						MUST, if the m- line proto value is 'SCTP/DTLS', 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP', 
						associate an SDP 'setup' attribute [<xref target="sec-attributes-setup" />], 
						with an 'active' or 'passive' value, with the m- line;
					</t>
					<t>
						MUST, if the m- line proto is 'UDP/DTLS/SCTP' or 'TCP/DTLS/SCTP', associate an 
						SDP 'sctp-port' attribute[<xref target="attr-sctp-port" />] with the m- line; and
					</t>
					<t>
						MAY associate an SDP 'max-message-size' attribute [<xref target="fmtp-max-message-size" />] 
						with the m- line.
					</t>
				</list>
			</t>
			<t>
				Once the answerer has sent the answer, the answerer:
			</t>
			<t>
				<list style="symbols">
					<t>
						MUST, if an SCTP association associated with the m- line has yet not 
						been established, or if an existing SCTP association is to be re-established, 
						initiate the establishing of the SCTP association; and
					</t>
					<t>
						MUST, if the answerer is the 'active' endpoint, and if an DTLS connection associated
						with the m- line is to be established (or re-established), initiate the establishing
						of the DTLS connection (by sending a ClientHello message).
					</t>
				</list>
			</t>
			<t>
				If the answerer does not accept the m- line in the offer, it MUST assign a zero port value
				to the corresponding m- line in the answer. In addition, the answerer MUST NOT establish an 
				SCTP association, or a DTLS connection, associated with the m- line.
			</t>
		</section>
		<section title="Offerer Processing of the SDP Answer">
			<t>
				When the offerer receives an answer, which contains an m- line with a non-zero 
				port value, describing an SCTP association, the offerer:
			</t>
			<t>
				<list style="symbols">
					<t>
						MUST, if the offerer is the 'active' endpoint, if the m- line proto 
						is 'TCP/DTLS/SCTP', and if a TCP connection used to carry the SCTP association 
						has yet not been established (or if an existing TCP connection is to be re-established), 
						initiate the establishing of the TCP connection;
					</t>
					<t>
						MUST, if an SCTP association associated with the m- line has yet not 
						been established (or if an existing SCTP association is to be re-established), 
						initiate the establishing of the SCTP association; and
					</t>
					<t>
						MUST, if the offerer is the 'active' endpoint, and if an DTLS connection associated
						with the m- line is to be established (or if an existing DTLS connection is to be 
						re-established), initiate the establishing of the DTLS connection (by sending a 
						ClientHello message).
					</t>
				</list>
			</t>
			<t>
				If the m- line in the answer contains a zero port value, the offerer MUST NOT 
				establish a TCP connection, an SCTP association, or a DTLS connection, associated with 
				the m- line.
			</t>
		</section>
		<section title="Modifying the Session">
			<t>
				When an offerer sends an updated offer, in order to modify a previously established
				SCTP association, it follows the procedures in <xref target="sec-oa-initial-offer" />, with
				the following exceptions:
			</t>
			<t>
				<list style="symbols">
					<t>
						Unless the offerer wants to re-establish an existing SCTP association, the offerer
						MUST associate an SDP connection attribute, with an 'existing' value, with the
						m- line; and
					</t>
					<t>
						If the offerer wants to disable a previously established SCTP association, it MUST
						assign a zero port value to the m- line associated with the SCTP association, following 
						the procedures in <xref target="RFC3264"/>.
					</t>
				</list>
			</t>
			<t>
				NOTE: Different SCTP association usages might define protocol procedures etc that
				need to be performed before an SCTP association is terminated. Such procedures are 
				outside the scope of this specification.
			</t>
		</section>
	</section>

	<section title="Multihoming Considerations">
		<t>
			SCTP supports multihoming. An SCTP endpoint is considered
			multihomed if it has more than one IP address on which SCTP
			can be used. An SCTP endpoint inform the remote peer about
			its IP addresses using the address parameters in the INIT/INIT-ACK
			chunk. Therefore, when SDP is used to describe an SCTP association,
			while the "c=" line contains the address which was used to negotiate
			the SCTP association, multihomed SCTP endpoints might end up using 
			other IP addresses.
		</t>
		<t>
			If an endpoint removes the IP address <xref target="RFC5061"/> that
			it offered in the SDP "c=" line associated with the SCTP association, 
			it MUST send a new Offer, in which the "c=" line contains an IP address
			with is valid within the SCTP association.
		</t>
		<t>
			NOTE: In some network environments, intermediaries performing gate- 
			and firewall control use the address information in the SDP "c=" and 
			"m=" lines to authorize media, and will not pass media sent using 
			other addresses. In such network environment, if an SCTP endpoints 
			wants to change the address information on which media is sent and 
			received, it needs to send an updated Offer, in which the SDP "c=" 
			and "m=" lines contain the new address information.
		</t>
		<t>
			Multihoming is not supported when sending SCTP on top of DTLS,
			as DTLS does not expose address management to its upper layer.
		</t>
	</section>

	<section title="NAT Considerations">
		<section title="General">
			<t>
				SCTP features not present in UDP or TCP, including the checksum
				(CRC32c) value calculated on the whole packet (rather than 
				just the header), and multihoming, introduce new challenges 
				for NAT traversal. <xref target="I-D.ietf-behave-sctpnat"/> 
				defines an SCTP specific variant of NAT, which provides similar 
				features of Network Address and Port Translation (NAPT).
			</t>
			<t>
				Current NATs typically do not support SCTP. <xref target="RFC6951"/>
				defines a mechanism for sending SCTP on top of UDP, which makes it
				possible to use SCTP with NATs and firewalls that do not support SCTP.
			</t>
		</section>
		<section title="ICE Considerations">
			<t>
				At the time of writing this specification, no procedures have been
				defined for using ICE (Interactive Connectivity Establishment) 
				<xref target="RFC5768"/> together with SCTP. Such procedures, including
				the associated SDP Offer/Answer procedures, are outside the scope of 
				this specification, and might be defined in a future specification.
			</t>
		</section>
	</section>

	<section title="Examples">
		<t>
			TODO: ADD EXAMPLES HERE
		</t>
	</section>

	<section title="Security Considerations">
		<t>
			<xref target="RFC4566"/> defines general SDP security considerations, while
			<xref target="RFC3264"/>, <xref target="RFC4145"/> and <xref target="RFC4572"/>
			define security considerations when using the SDP offer/answer mechanism
			to negotiate media streams.
		</t>
		<t>
			<xref target="RFC4960"/> defines general SCTP security considerations.
			security considerations on SCTP in general, while <xref target="RFC6083"/>
			defines security considerations when using DTLS on top of
			SCTP.
		</t>
		<t>
			This specification does not introduce new security considerations in addition 
			to those defined in the specifications listed above.
		</t>
	</section>

	<section title="IANA Considerations">
		<section title="New SDP proto values" anchor="iana-sdp-proto" toc="default">
			<t>
				[RFC EDITOR NOTE: Please replace RFCXXXX with the RFC number 
				of this document.]
			</t>
			<t>
				This document updates the "Session Description Protocol (SDP) Parameters" registry,
				following the procedures in <xref target="RFC4566" pageno="false" format="default"/>, 
				by adding the following values to the table in the SDP "proto" field registry:
			</t>
			<texttable anchor="table_SDP_proto_values" title='SDP "proto" field values'>
				<ttcol align='center'>Type</ttcol>
				<ttcol align='center'>SDP Name</ttcol>
				<ttcol align='center'>Reference</ttcol>
				<c>proto</c>
				<c>SCTP</c>
				<c>[RFCXXXX]</c>
				<c>proto</c>
				<c>SCTP/DTLS</c>
				<c>[RFCXXXX]</c>
				<c>proto</c>
				<c>UDP/DTLS/SCTP</c>
				<c>[RFCXXXX]</c>
				<c>TCP/DTLS/SCTP</c>
				<c>[RFCXXXX]</c>				
			</texttable>
		</section>

		<section title="New SDP Attribute" anchor="sctp-port-iana-sdp-attribute" toc="default">
			<t>
				[RFC EDITOR NOTE: Please replace RFCXXXX with the RFC number 
				of this document.]
			</t>
			<t>			
				This document defines a new SDP media-level attribute,'sctp-port', as follows:
			</t>
			<figure>
				<artwork align="left"><![CDATA[

	Attribute name:   	sctp-port
	Type of attribute:  media
	Subject to charset: No
	Purpose:            Indicate the SCTP port value associated
						with the SDP Media Description.
	Appropriate values:	Integer
	Contact name:      	Christer Holmberg
	Contact e-mail:		christer.holmberg@ericsson.com
	Reference:			RFCXXXX

				]]></artwork>
			</figure>
		</section>

		<section title="association-usage Name Registry" anchor="iana-assusage-registry" toc="default">
			<t>
				[RFC EDITOR NOTE: Please replace RFCXXXX with the RFC number 
				of this document.]
			</t>
			<t>			
				This specification creates a new IANA registry, following the procedures in
				<xref target="RFC5226"/>, for the "fmt" namespace associated with the 
				'SCTP', 'SCTP/DTLS', 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP' protocol identifiers. 
				Each "fmt" value describes the usage of an entire SCTP association, including 
				all SCTP streams associated with the SCTP association.
			</t>
			<t>
				NOTE: Usage indication of individual SCTP streams is outside the scope of this
				specification.
			</t>
			<t>
				The "fmt" value, "association-usage", used with these "proto" is required. 
				It is defined in [<xref target="m-line"/>].
			</t>
			<t>
				As part of this registry, IANA maintains the following information:
			</t>
			<t>
				<list style='hanging'>
					<t hangText="association-usage Name:">.The identifier of the 
					subprotocol, as will be used in the &lt;sctp-fmtp&gt; subfield.</t>
					<t hangText="association-usage reference:">A reference to the 
					document in which the association usage is defined.</t>
				</list>
			</t>
			<t>
				association-usage names are to be subject to the "First Come First Served" 
				IANA registration policy [RFC5226].
			</t>
			<t>
				IANA is asked to add initial values to the registry.
			</t>
			<figure anchor="exempleIANA" title="">
				<artwork><![CDATA[

     |         name       |           Reference                 |
    -+--------------------+-------------------------------------+
     | webrtc-datachannel | draft-ietf-rtcweb-data-protocol-xx  | 
    -+----------------------------------------------------------|

				]]></artwork>
			</figure>
		</section>
	</section>

	<section title="Acknowledgments">
		<t>
			The authors wish to thank Harald Alvestrand, Randell Jesup, Paul Kyzivat, 
			Michael Tuexen for their comments and useful feedback.
		</t>
	</section>
	
	<section title="Change Log">
		<t>[RFC EDITOR NOTE: Please remove this section when publishing]</t>
		<t>Changes from draft-ietf-mmusic-sctp-sdp-09
			<list style="symbols">
				<t>'DTLS/SCTP' split into 'UDP/DTLS/SCTP' and 'TCP/DTLS/SCTP'</t>
				<t>Procedures for realizing UDP/DTLS/SCTP- and TCP/DTLS/SCTP transports added.</t>
			</list>
		</t>		
		<t>Changes from draft-ietf-mmusic-sctp-sdp-08
			<list style="symbols">
				<t>Default SCTP port removed:</t>
				<t>- Usage of SDP sctp-port attribute mandatory.</t>
				<t>SDP max-message-size attribute defined:</t>
				<t>- Attribute definition.</t>
				<t>- SDP Offer/Answer procedures.</t>
				<t>Text about SDP direction attributes added.</t>
				<t>Text about TLS role determination added.</t>
			</list>
		</t>		
	</section>
</middle>

<back>
	<references title="Normative References">
		<?rfc include="reference.RFC.2119"?>
		<?rfc include="reference.RFC.3264"?>
		<?rfc include="reference.RFC.4145"?>		
		<?rfc include="reference.RFC.4289"?>	
		<?rfc include="reference.RFC.4566"?>
		<?rfc include="reference.RFC.4571"?>
		<?rfc include="reference.RFC.4572"?>
		<?rfc include="reference.RFC.4960"?>
		<?rfc include="reference.RFC.5061"?>
		<?rfc include="reference.RFC.5226"?>
		<?rfc include="reference.RFC.5246"?>
		<?rfc include="reference.RFC.6347"?>
		<?rfc include="reference.RFC.6838"?>
		<?rfc include="reference.I-D.draft-ietf-tsvwg-sctp-dtls-encaps-06"?>
	</references>
	<references title="Informative References">
		<?rfc include="reference.RFC.5763"?>
		<?rfc include="reference.RFC.5768"?>
		<?rfc include="reference.RFC.6083"?>		
		<?rfc include="reference.RFC.6951"?>
		<?rfc include="reference.I-D.draft-ietf-behave-sctpnat-09"?>
	</references>
</back>
</rfc>
