RFC 8864: Negotiation Data Channels Using the Session Description Protocol (SDP)
- K. Drage,
- M. Makaraju,
- R. Ejzak,
- J. Marcon,
- R. Even, Ed.
Abstract
Data channel setup can be done using either the in-band Data Channel Establishment Protocol (DCEP) or some out-of-band non-DCEP protocol. This document specifies how the SDP (Session Description Protocol) offer/answer exchange can be used to achieve an out-of-band non-DCEP negotiation for establishing a data channel.¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://
1. Introduction
The concept of establishing a bidirectional data channel running on top of the Stream Control Transmission Protocol (SCTP) is discussed in [RFC8831], allowing applications to use data channels. An in-band Data Channel Establishment Protocol (DCEP) is described in [RFC8832]; however, other in-band or out-of-band protocols may be used for establishing data channels. Each data channel consists of paired SCTP streams sharing the same SCTP Stream Identifier. Data channels are created by endpoint applications using (1) the WebRTC API (Application Programming Interface) [WebRtcAPI] or (2) other protocols (e.g., Controlling Multiple Streams for Telepresence (CLUE) [RFC8850]). The protocols can be signaled by the data channel 'subprotocol' parameter, conceptually similar to a WebSocket subprotocol as described in [RFC6455]. However, apart from the "subprotocol" value transmitted to the peer, an endpoint application can agree on how to instantiate a given subprotocol on a data channel, and whether it is signaled in-band using DCEP or out-of-band using a non-DCEP protocol (or both).¶
This document defines Session Description Protocol (SDP) offer/answer procedures [RFC3264] that enable out-of-band negotiation for establishing data channels for transport of well-defined subprotocols. These procedures are based on generic SDP offer/answer negotiation rules for SCTP-based media transport as specified in [RFC8841] for the SDP "m=" line proto values UDP/DTLS/SCTP and TCP/DTLS/SCTP.¶
This document uses MSRP (the Message Session Relay Protocol) [RFC4975] and BFCP (the Binary Floor Control Protocol) [RFC8855] in several examples. It does not provide a complete specification of how to negotiate the use of a data channel to transport MSRP. Procedures specific to each subprotocol would have to be documented elsewhere. For MSRP, they are documented in [RFC8873]. The use of MSRP in some examples is only to show how the generic procedures described herein might apply to a specific subprotocol.¶
2. Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
3. Terminology
This document uses the following terms:¶
- Data channel:
- A WebRTC data channel as specified in [RFC8831].¶
- Data channel stack:
- An entity that, upon application request, runs the data channel protocol to keep track of states as well as the sending and receiving of data. If the application is a browser-based JavaScript application, then this stack resides in the browser. If the application is a native application, then this stack resides in the application and is accessible via some sort of API or APIs.¶
- Data channel properties:
- Fixed properties assigned to a data channel at the time of its creation. Some of these properties determine the way the data channel stack transmits data on this channel (e.g., stream identifier, reliability, order of delivery).¶
- Data channel subprotocol:
- The application protocol that is transported over a single data channel. Data channel subprotocol messages are sent as data channel payload over an established data channel. An SDP offer/answer exchange can be used as specified in this document to negotiate the establishment of data channels, corresponding data channel properties, associated data channel subprotocols, and data channel subprotocol properties. In this case, the data channel subprotocols may be identified by the values of the 'subprotocol' parameters of the SDP "a=dcmap:" attribute as described in Section 5.1.4. Within this document, the term "data channel subprotocol" is often abbreviated as just "subprotocol".¶
- DCEP:
- Data Channel Establishment Protocol, as defined in [RFC8832].¶
- In-band:
- Transmission through the peer-to-peer SCTP association.¶
- Out-of-band:
- Transmission through the application signaling path.¶
- Peer:
- From the perspective of one of the agents in a session, its peer is the other agent. Specifically, from the perspective of the SDP offerer, the peer is the SDP answerer. From the perspective of the SDP answerer, the peer is the SDP offerer.¶
- SCTP Stream Sequence Number (SSN):
- The SCTP Stream Sequence Number, as specified in [RFC4960].¶
- Stream identifier:
- The identifier of the outbound and inbound SCTP streams composing a data channel.¶
4. Applicability Statement
The mechanism described in this document only applies to SDP [RFC8866] when used together with the SDP offer/answer mechanism [RFC3264]. Declarative usage of SDP is out of scope for this document and is thus undefined.¶
5. SDP Data Channel Attributes
This section defines two new SDP media-level attributes that can be
used together with the SDP Offer/Answer mechanism to negotiate
data
5.1. SDP DCMAP Attribute
This section defines a new media-level attribute, "a=dcmap:", that defines the data channel parameters for each data channel to be negotiated.¶
This attribute is used to create bidirectional SCTP data channels
having the same set of attributes. The data channel properties
(reliable / partially reliable, ordered
5.1.1. DCMAP Attribute Syntax
"a=dcmap:" is a media-level attribute having the following definition and ABNF (Augmented Backus-Naur Form) syntax [RFC5234].¶
Formal syntax:¶
Examples:¶
Within an "a=dcmap:" attribute line's 'dcmap-opt' value, only one 'maxretr-opt' parameter or one 'maxtime-opt' parameter may be present. Both parameters MUST NOT be present.¶
5.1.2. 'dcmap-stream-id' Parameter
The 'dcmap
5.1.3. 'label' Parameter
The 'label' parameter indicates the name of the channel. It represents a label that can be used to distinguish, in the context of the WebRTC API [WebRtcAPI], an RTCDataChannel object from other RTCDataChannel objects. This parameter maps to the 'Label' parameter defined in [RFC8832]. The 'label' parameter is optional. If it is not present, then its value defaults to the empty string.¶
In order to communicate with the WebRTC API, the 'label' parameter should¶
5.1.4. 'subprotocol' Parameter
The 'subprotocol' parameter indicates which protocol the client expects to exchange via the channel. This parameter maps to the 'Protocol' parameter defined in [RFC8832]. Section 9.1 specifies how values for new subprotocol parameters are registered. 'subprotocol' is an optional parameter. If the 'subprotocol' parameter is not present, then its value defaults to an empty string.¶
5.1.5. 'max-retr' Parameter
This parameter indicates that the data channel is partially reliable. The 'max-retr' parameter indicates the maximal number of times a user message will be retransmitted. The 'max-retr' parameter is optional. If the 'max-retr' parameter and the 'max-time' parameter are not present, then reliable transmission is performed as specified in [RFC4960]. This parameter maps to the 'Number of RTX' parameter defined in [RFC8832].¶
5.1.6. 'max-time' Parameter
This parameter indicates that the data channel is partially reliable. A user message will no longer be transmitted or retransmitted after a specified lifetime, given in milliseconds, in the 'max-time' parameter. The lifetime starts when providing the user message to the protocol stack. The 'max-time' parameter is optional. If the 'max-retr' parameter and the 'max-time' parameter are not present, then reliable transmission is performed as specified in [RFC4960]. This parameter maps to the 'Lifetime in ms' parameter defined in [RFC8832].¶
5.1.7. 'ordered' Parameter
The 'ordered' parameter with value "true" indicates that the receiver will dispatch DATA chunks in the data channel to the upper layer while preserving the order. The 'ordered' parameter is optional and takes two values -- "true" for ordered delivery and "false" for unordered delivery -- with "true" as the default value. Any other value is ignored, and the default "ordered=true" is assumed. In the absence of this parameter, "ordered=true" is assumed. This parameter maps to the ordered or unordered data channel types as defined in [RFC8832].¶
5.1.8. 'priority' Parameter
The 'priority' parameter indicates the data channel's priority relative to the priorities of other data channels, which may additionally exist over the same SCTP association. The 'priority' parameter maps to the 'Priority' parameter defined in [RFC8832]. The 'priority' parameter is optional. In the absence of this parameter, "priority=256" is assumed.¶
5.1.9. DCMAP Multiplexing Category
The multiplexing category [RFC8859] of the "a=dcmap:" attribute is SPECIAL.¶
As the usage of multiple SCTP associations on top of a single DTLS association is outside the scope of [RFC8841], no "a=dcmap:" attribute multiplexing rules are specified for the UDP/DTLS/SCTP and TCP/DTLS/SCTP proto values. If future extensions of [RFC8841] define how to negotiate multiplexing of multiple SCTP associations on top of a single DTLS association or how to add multiple SCTP associations to one BUNDLE group, then multiplexing rules for the "a=dcmap:" attribute need to be defined as well -- for instance, in an extension of this specification.¶
5.2. SDP DCSA Attribute
In the SDP media description, each data channel declaration MAY also be followed by other SDP attributes, which apply to the corresponding data channel and its subprotocol. Each of these attributes is represented by one new "a=dcsa:" attribute line that references another SDP attribute defined for use with this data channel's subprotocol. Instructions for registering attributes for use with a data channel are given in Section 9.3.¶
Each SDP attribute that is related to the subprotocol and that would normally
be used to negotiate the subprotocol using the SDP offer/answer mechanism is replaced with
an attribute of the form "a
The same syntax applies to any other SDP attribute required for negotiation of this instance of the subprotocol.¶
The detailed offer/answer procedures for the dcsa attribute are
dependent on the associated subprotocol. If no offer/answer
procedures exist for the subprotocol when used outside of the dcsa
attribute, no specification is needed for use with dcsa. The IANA
(Internet Assigned Numbers Authority) registration procedures for the "WebSocket Subprotocol Name Registry" (Section 9.1) do not strictly require a specification of the offer/answer procedures for the subprotocol when used with dcsa. If the subprotocol has defined offer/answer procedures when used outside of dcsa, such a specification is encouraged to ensure interoperabilit
5.2.1. DCSA Attribute Syntax
"a=dcsa:" is a media-level attribute having the following definition and ABNF (Augmented Backus-Naur Form) syntax [RFC5234].¶
Formal syntax:¶
Example:¶
The reference to [RFC8866] defines where the
attribute definition can be found;
it does not provide any limitations on support of attributes
defined in other documents in accordance with this attribute
definition. However, not all SDP attributes are suitable
as an "a=dcsa:" parameter. The registry of IANA SDP parameters contains
the lists of IANA-registered session-level and media-level or
media
Thus, in the example above, the original attribute line
"a
As opposed to the data channel "a=dcmap:" attribute parameters,
these parameters
are subject to offer/answer negotiation, following the procedures
defined in the subprotocol
It is assumed that in general the usages of subprotocol
There may be cases where the usage of a subprotocol
5.2.2. DCSA Multiplexing Category
The multiplexing category of the "a=dcsa:" attribute is SPECIAL.¶
As the usage of multiple SCTP associations on top of a single DTLS association is outside the scope of [RFC8841], no "a=dcsa:" attribute multiplexing rules are specified for the UDP/DTLS/SCTP and TCP/DTLS/SCTP proto values. If future extensions of [RFC8841] define how to negotiate multiplexing of multiple SCTP associations on top of a single DTLS association or how to add multiple SCTP associations to one BUNDLE group, then multiplexing rules for the "a=dcsa:" attribute need to be defined as well -- for instance, in an extension of this specification.¶
6. SDP Offer/Answer Procedures
This section defines how data channels can be negotiated using the SDP offer/answer mechanism. A given media description can describe multiple data channels (each represented by a separate SDP dcmap attribute) that can be created, modified, and closed using different offer/answer exchanges. The procedures in this section apply for a given data channel.¶
The generic offer/answer procedures for negotiating the SCTP association used to realize data channels are defined in [RFC8841]. This section only defines the data
"Initial offer" refers to the offer in which a data channel is opened. It can be either the initial offer or a subsequent offer of the associated SDP session.¶
The detailed offer/answer procedures for the dcsa attribute are dependent on the associated subprotocol; see Section 5.2.¶
6.1. Managing Stream Identifiers
In order to avoid SCTP Stream identifier collisions, in alignment with [RFC8832], the endpoint acting as a DTLS client (for the SCTP association used to realize data channels) MUST use even identifier values, and the endpoint acting as a DTLS server MUST use odd identifier values.¶
SCTP stream identifiers associated with data channels that have been negotiated using DCEP MUST NOT be included in SDP offers and answers.¶
6.2. Negotiating Data Channel Parameters
The data channel types defined in [RFC8832] are mapped to the dcmap SDP attribute parameters in the following manner, where "ordered=true" is the default and may be omitted:¶
By definition, 'max-retr' and 'max-time' are mutually exclusive, so both MUST NOT be present in the "a=dcmap:" attribute line. If an SDP offer contains both of these parameters, then the receiver of such an SDP offer MUST reject the SDP offer. If an SDP answer contains both of these parameters, then the offerer MUST treat the associated SDP offer/answer as failed.¶
6.3. Generating the Initial Offer for a Data Channel
When an offerer sends an initial offer, in order to negotiate an SCTP stream for a data channel, the offerer¶
6.4. Generating the SDP Answer
When an answerer receives an offer that includes an "m=" section for an SCTP association, the offer describes an SCTP stream for a data channel, if the answerer accepts the data channel, it¶
6.5. Offerer Processing of the SDP Answer
An offerer receiving an SDP answer performs the following:¶
Each agent application MUST wait to send data until it has confirmation that the data channel at the peer is instantiated. For WebRTC, this is when both data channel stacks have channel parameters instantiated and occurs as follows:¶
6.6. Modifying the Session
When an offerer sends a subsequent offer that includes information for a previously negotiated data channel, unless the offerer intends to close the data channel (Section 6.6.1), the offerer SHALL include the previously negotiated SDP attributes and attribute values associated with the data channel. The answerer may reject the offer. The means for rejecting an offer are dependent on the higher-layer protocol. The offer/answer exchange is atomic; if the answer is rejected, the session reverts to the state prior to the offer [RFC3264].¶
6.6.1. Closing a Data Channel
In order to close a data channel, the endpoint that wants to close the data channel SHALL send an SCTP SSN Reset message [RFC6525], following the procedure in Section 6.7 of [RFC8831]. In addition, if the closed data channel was negotiated using the offer/answer mechanism (Section 6.3), the endpoint that closed the data channel SHALL send a subsequent offer in which it does one of the following:¶
6.7. Various SDP Offer/Answer Considerations
An SDP offer or answer has no "a=dcmap:" attributes but has "a=dcsa:" attributes:¶
An SDP offer or answer has an "a=dcsa:" attribute whose subprotocol attribute is unknown:¶
An SDP offer or answer has an "a=dcsa:" attribute whose subprotocol attribute is known but whose subprotocol attribute semantic is not known for the data channel transport case:¶
7. Examples
Figure 1 shows an example of an SDP offer and answer where the SDP answerer rejects the data channel with stream id 0 either for explicit reasons or because it does not understand the "a=dcmap:" attribute. As a result, the offerer will close the data channel created with the SDP offer/answer negotiation option. The SCTP association will still be set up over DTLS. At this point, the offerer or the answerer may use DCEP negotiation to open data channels.¶
Figure 2 shows an example of an SDP offer and answer where the SDP offer contains data channels for BFCP and MSRP subprotocols. The SDP answer rejects BFCP and accepts MSRP. So, the offerer closes the data channel for BFCP, and both the offerer and the answerer may start using the MSRP data channel (after the SCTP association is set up). The data channel with stream id 0 is free and can be used for future DCEP or SDP offer/answer negotiation.¶
The example in Figure 3 is a continuation of the example in Figure 2. The SDP offerer now removes the MSRP data channel with stream id 2 but opens a new MSRP data channel with stream id 4. The answerer accepts the entire offer. As a result, the offerer closes the previously negotiated MSRP-related data channel, and both the offerer and the answerer may start using the new MSRP-related data channel.¶
8. Security Considerations
This document specifies new SDP attributes used in the negotiation of data channel parameters.¶
These parameters are negotiated as part of opening an SCTP channel over DTLS as specified in [RFC8841]. Each subprotocol may come with its own security considerations that need to be documented as part of the subprotocol definition. Otherwise, this document does not add any security considerations to those specified in [RFC8841].¶
Error cases such as the use of unknown parameter values or violations of the odd/even rule (Section 6.1) MUST be handled by closing the corresponding data channel.¶
9. IANA Considerations
9.1. Subprotocol Identifiers
Registration of new subprotocol identifiers is performed using the existing IANA "WebSocket Subprotocol Name Registry" table.¶
The following text has been added below the title of the table.¶
"This table also includes subprotocol identifiers specified for usage within a WebRTC data channel."¶
This document (RFC 8864) has been added to the "Reference" list for the registry.¶
This document assigns no new values to this table.¶
A subprotocol may simultaneously be defined for data channel transport
and for WebSocket transport.
In such a case, the "Subprotocol Definition" and "Reference" cells in the
subprotocol's row of the IANA "WebSocket Subprotocol Name Registry" table should
contain two entries.
One entry in each of these cells should refer to the Web
9.2. New SDP Attributes
9.3. Registering Attributes for Use with Data Channels
When a subprotocol is defined for use over data channels with the SDP offer/answer mechanism, any SDP attributes that may be negotiated using the "a=dcsa:" attribute MUST be added to the IANA "attribute-name registry (formerly "att-field")", as specified in [RFC8866], Section 8.2.4. This document specifies that new Usage Levels of the form "dcsa (foo)" (where "foo" is a placeholder for the subprotocol name) should be registered by documents that specify negotiation of particular subprotocols.¶
IANA has updated the "attribute-name (formerly "att-field")" registry to point to this document.¶
10. References
10.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC3264]
-
Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model with Session Description Protocol (SDP)", RFC 3264, DOI 10
.17487 , , <https:///RFC3264 www >..rfc -editor .org /info /rfc3264 - [RFC3629]
-
Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, DOI 10
.17487 , , <https:///RFC3629 www >..rfc -editor .org /info /rfc3629 - [RFC4960]
-
Stewart, R., Ed., "Stream Control Transmission Protocol", RFC 4960, DOI 10
.17487 , , <https:///RFC4960 www >..rfc -editor .org /info /rfc4960 - [RFC5234]
-
Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, DOI 10
.17487 , , <https:///RFC5234 www >..rfc -editor .org /info /rfc5234 - [RFC6525]
-
Stewart, R., Tuexen, M., and P. Lei, "Stream Control Transmission Protocol (SCTP) Stream Reconfiguration
" , RFC 6525, DOI 10.17487 , , <https:///RFC6525 www >..rfc -editor .org /info /rfc6525 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC8831]
-
Jesup, R., Loreto, S., and M. Tüxen, "WebRTC Data Channels", RFC 8831, DOI 10
.17487 , , <https:///RFC8831 www >..rfc -editor .org /info /rfc8831 - [RFC8832]
-
Jesup, R., Loreto, S., and M. Tüxen, "WebRTC Data Channel Establishment Protocol", RFC 8832, DOI 10
.17487 , , <https:///RFC8832 www >..rfc -editor .org /info /rfc8832 - [RFC8841]
-
Holmberg, C., Shpount, R., Loreto, S., and G. Camarillo, "Session Description Protocol (SDP) Offer/Answer Procedures for Stream Control Transmission Protocol (SCTP) over Datagram Transport Layer Security (DTLS) Transport", RFC 8841, DOI 10
.17487 , , <https:///RFC8841 www >..rfc -editor .org /info /rfc8841 - [RFC8859]
-
Nandakumar, S., "A Framework for Session Description Protocol (SDP) Attributes When Multiplexing", RFC 8859, DOI 10
.17487 , , <https:///RFC8859 www >..rfc -editor .org /info /rfc8859 - [RFC8866]
-
Begen, A., Kyzivat, P., Perkins, C., and M. Handley, "SDP: Session Description Protocol", RFC 8866, DOI 10
.17487 , , <https:///RFC8866 www >..rfc -editor .org /info /rfc8866
10.2. Informative References
- [RFC4975]
-
Campbell, B., Ed., Mahy, R., Ed., and C. Jennings, Ed., "The Message Session Relay Protocol (MSRP)", RFC 4975, DOI 10
.17487 , , <https:///RFC4975 www >..rfc -editor .org /info /rfc4975 - [RFC6455]
-
Fette, I. and A. Melnikov, "The WebSocket Protocol", RFC 6455, DOI 10
.17487 , , <https:///RFC6455 www >..rfc -editor .org /info /rfc6455 - [RFC8850]
-
Holmberg, C., "Controlling Multiple Streams for Telepresence (CLUE) Protocol Data Channel", RFC 8850, DOI 10
.17487 , , <https:///RFC8850 www >..rfc -editor .org /info /rfc8850 - [RFC8855]
-
Camarillo, G., Drage, K., Kristensen, T., Ott, J., and C. Eckel, "The Binary Floor Control Protocol (BFCP)", RFC 8855, DOI 10
.17487 , , <https:///RFC8855 www >..rfc -editor .org /info /rfc8855 - [RFC8873]
-
Recio, JM., Ed. and C. Holmberg, "Message Session Relay Protocol (MSRP) over Data Channels", RFC 8873, DOI 10
.17487 , , <https:///RFC8873 www >..rfc -editor .org /info /rfc8873 - [T38]
-
International Telecommunicati
on , "Procedures for real-time Group 3 facsimile communication over IP networks", ITU-T Recommendation T.38, , <https://Union www >..itu .int /rec /T -REC -T .38 -201511 -I /en - [WebRtcAPI]
-
Jennings, C., Boström, H., and J-I. Bruaroey, "WebRTC 1.0: Real-time Communication Between Browsers", W3C Proposed Recommendation, <https://
www >..w3 .org /TR /webrtc /
Appendix A. Generic Data Channel Negotiation Aspects when Not Using DCEP
This appendix summarizes how data channels work in general and discusses some key aspects that should be considered for the out-of-band negotiation of data channels if DCEP is not used.¶
A WebRTC application creates a data channel
by providing a number of setup parameters (subprotocol, label,
maximal number of retransmissions
In any case, the SDP offer generated by the application is per [RFC8841]. In brief, it contains one "m=" line for the SCTP association on top of which the data channels will run:¶
A.1. Stream Identifier Numbering
Independently from the requested type of negotiation, the application creating a data channel can either (1) pass the stream identifier to the data channel stack to assign to the data channel or (2) let the data channel stack pick one identifier from the unused ones.¶
Moreover, to avoid glare situations [RFC3264], each endpoint can own an exclusive set of stream identifiers, in which case an endpoint can only create a data channel with a stream identifier it owns.¶
Which set of stream identifiers is owned by which endpoint is determined by convention or other means.¶
A.2. Generic Data Channel Negotiation Not Using DCEP
A.2.1. Overview
DCEP negotiation only provides for negotiation of data channel
transport parameters and does not provide for negotiation of
subprotocol
The following procedures are common to all methods of data channel
negotiation not using DCEP, whether in-band (communicated using proprietary means on
an already
A.2.2. Opening a Data Channel
In the case of non-DCEP negotiation, the endpoint application has the option to fully control the stream identifier assignments. However, these assignments have to coexist with the assignments controlled by the data channel stack for data channels negotiated using DCEP (if any). It is the responsibility of the application to ensure consistent assignment of stream identifiers.¶
When the application requests that the creation of a new data channel
be set up via non-DCEP negotiation, the data channel stack creates
the data channel locally without sending any DATA
If the peer rejects the data channel part of the offer, then it doesn't have to do anything, as the data channel was not created using the stack. The offerer, on the other hand, needs to close the data channel that was opened by invoking relevant data channel stack API procedures.¶
It is also worth noting that a data channel stack implementation may
not provide any APIs to create and close data channels; instead, the
data channels may be used on the fly as needed, just by communicating
via non-DCEP means or even by having some local configuration
The application then negotiates the data channel properties and subprotocol properties with the peer's application using a mechanism different from DCEP.¶
The peer then symmetrically creates a data channel with these negotiated data channel properties. This is the only way for the peer's data channel stack to know which properties to apply when transmitting data on this channel. The data channel stack must allow data channel creation with any nonconflicting stream identifier so that both peers can create the data channel with the same stream identifier.¶
A.2.3. Closing a Data Channel
When the application requests the closing of a data channel negotiated without DCEP, the data channel stack always performs an SCTP SSN Reset for this channel.¶
Depending upon the method used for non-DCEP negotiation and the subprotocol associated with the data channel, the closing of the data channel might also be signaled to the peer via SDP offer/answer negotiation.¶
Acknowledgements
The authors wish to acknowledge the borrowing of ideas from other draft documents by Salvatore Loreto, Gonzalo Camarillo, Peter Dunkley, and Gavin Llewellyn. The authors also wish to thank Flemming Andreasen, Christian Groves, Gunnar Hellström, Paul Kyzivat, Jonathan Lennox, Uwe Rauschenbach, and Roman Shpount for their invaluable comments.¶
Special thanks to Christer Holmberg for helping finish the document and cleaning up Section 6.¶
Contributors
Juergen Stoetzer