1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
|
<pre>Internet Engineering Task Force (IETF) M. Tuexen
Request for Comments: 6083 R. Seggelmann
Category: Standards Track Muenster Univ. of Applied Sciences
ISSN: 2070-1721 E. Rescorla
RTFM, Inc.
January 2011
<span class="h1">Datagram Transport Layer Security (DTLS)</span>
<span class="h1">for Stream Control Transmission Protocol (SCTP)</span>
Abstract
This document describes the usage of the Datagram Transport Layer
Security (DTLS) protocol over the Stream Control Transmission
Protocol (SCTP).
DTLS over SCTP provides communications privacy for applications that
use SCTP as their transport protocol and allows client/server
applications to communicate in a way that is designed to prevent
eavesdropping and detect tampering or message forgery.
Applications using DTLS over SCTP can use almost all transport
features provided by SCTP and its extensions.
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 <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6083">http://www.rfc-editor.org/info/rfc6083</a>.
<span class="grey">Tuexen, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
Copyright Notice
Copyright (c) 2011 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3">3</a>. DTLS Considerations . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-4">4</a>. SCTP Considerations . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-5">5</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-6">6</a>. Security Considerations . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-7">7</a>. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-8">8</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Overview</span>
This document describes the usage of the Datagram Transport Layer
Security (DTLS) protocol, as defined in [<a href="./rfc4347" title=""Datagram Transport Layer Security"">RFC4347</a>], over the Stream
Control Transmission Protocol (SCTP), as defined in [<a href="./rfc4960" title=""Stream Control Transmission Protocol"">RFC4960</a>].
DTLS over SCTP provides communications privacy for applications that
use SCTP as their transport protocol and allows client/server
applications to communicate in a way that is designed to prevent
eavesdropping and detect tampering or message forgery.
Applications using DTLS over SCTP can use almost all transport
features provided by SCTP and its extensions.
TLS, from which DTLS was derived, is designed to run on top of a
byte-stream-oriented transport protocol providing a reliable, in-
sequence delivery. Thus, TLS is currently mainly being used on top
of the Transmission Control Protocol (TCP), as defined in [<a href="./rfc0793" title=""Transmission Control Protocol"">RFC0793</a>].
<span class="grey">Tuexen, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
TLS over SCTP as described in [<a href="./rfc3436" title=""Transport Layer Security over Stream Control Transmission Protocol"">RFC3436</a>] has some serious limitations:
o It does not support the unordered delivery of SCTP user messages.
o It does not support partial reliability as defined in [<a href="./rfc3758" title=""Stream Control Transmission Protocol (SCTP) Partial Reliability Extension"">RFC3758</a>].
o It only supports the usage of the same number of streams in both
directions.
o It uses a TLS connection for every bidirectional stream, which
requires a substantial amount of resources and message exchanges
if a large number of streams is used.
DTLS over SCTP as described in this document overcomes these
limitations of TLS over SCTP. In particular, DTLS/SCTP supports:
o preservation of message boundaries.
o a large number of unidirectional and bidirectional streams.
o ordered and unordered delivery of SCTP user messages.
o the partial reliability extension as defined in [<a href="./rfc3758" title=""Stream Control Transmission Protocol (SCTP) Partial Reliability Extension"">RFC3758</a>].
o the dynamic address reconfiguration extension as defined in
[<a href="./rfc5061" title=""Stream Control Transmission Protocol (SCTP) Dynamic Address Reconfiguration"">RFC5061</a>].
However, the following limitations still apply:
o The maximum user message size is 2^14 bytes, which is the DTLS
limit.
o The DTLS user cannot perform the SCTP-AUTH key management because
this is done by the DTLS layer.
The method described in this document requires that the SCTP
implementation supports the optional feature of fragmentation of SCTP
user messages as defined in [<a href="./rfc4960" title=""Stream Control Transmission Protocol"">RFC4960</a>] and the SCTP authentication
extension defined in [<a href="./rfc4895" title=""Authenticated Chunks for the Stream Control Transmission Protocol (SCTP)"">RFC4895</a>].
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Terminology</span>
This document uses the following terms:
Association: An SCTP association.
Stream: A unidirectional stream of an SCTP association. It is
uniquely identified by a stream identifier.
<span class="grey">Tuexen, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
<span class="h3"><a class="selflink" id="section-1.3" href="#section-1.3">1.3</a>. Abbreviations</span>
DTLS: Datagram Transport Layer Security
MTU: Maximum Transmission Unit
PPID: Payload Protocol Identifier
SCTP: Stream Control Transmission Protocol
TCP: Transmission Control Protocol
TLS: Transport Layer Security
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. DTLS Considerations</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Version of DTLS</span>
This document is based on [<a href="./rfc4347" title=""Datagram Transport Layer Security"">RFC4347</a>], and it is expected that DTLS/
SCTP as described in this document will work with future versions of
DTLS.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Message Sizes</span>
DTLS limits the DTLS user message size to the current Path MTU minus
the header sizes. For the purposes of running over SCTP, the DTLS
path MTU MUST be considered to be 2^14.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Replay Detection</span>
The replay detection of DTLS may result in the DTLS layer dropping
messages. Since DTLS/SCTP provides a reliable service if requested
by the application, replay detection cannot be used. Therefore,
replay detection of DTLS MUST NOT be used.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Path MTU Discovery</span>
SCTP provides Path MTU discovery and fragmentation/reassembly for
user messages. According to <a href="#section-3.2">Section 3.2</a>, DTLS can send maximum sized
messages. Therefore, Path MTU discovery of DTLS MUST NOT be used.
<span class="grey">Tuexen, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. Retransmission of Messages</span>
SCTP provides a reliable and in-sequence transport service for DTLS
messages that require it. See <a href="#section-4.4">Section 4.4</a>. Therefore, DTLS
procedures for retransmissions MUST NOT be used.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. SCTP Considerations</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Mapping of DTLS Records</span>
The supported maximum length of SCTP user messages MUST be at least
2^14 + 2048 + 13 = 18445 bytes (2^14 + 2048 is the maximum length of
the DTLSCiphertext.fragment, and 13 is the size of the DTLS record
header). In particular, the SCTP implementation MUST support
fragmentation of user messages.
Every SCTP user message MUST consist of exactly one DTLS record.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. DTLS Connection Handling</span>
Each DTLS connection MUST be established and terminated within the
same SCTP association. A DTLS connection MUST NOT span multiple SCTP
associations.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Payload Protocol Identifier Usage</span>
Application protocols using DTLS over SCTP SHOULD register and use a
separate payload protocol identifier (PPID) and SHOULD NOT reuse the
PPID that they registered for running directly over SCTP.
Using the same PPID does not harm as long as the application can
determine whether or not DTLS is used. However, for protocol
analyzers, for example, it is much easier if a separate PPID is used.
This means, in particular, that there is no specific PPID for DTLS.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Stream Usage</span>
All DTLS messages of the ChangeCipherSpec, Alert, or Handshake
protocol MUST be transported on stream 0 with unlimited reliability
and with the ordered delivery feature.
DTLS messages of the ApplicationData protocol SHOULD use multiple
streams other than stream 0; they MAY use stream 0 for everything if
they do not care about minimizing head of line blocking.
<span class="grey">Tuexen, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Chunk Handling</span>
DATA chunks of SCTP MUST be sent in an authenticated way as described
in [<a href="./rfc4895" title=""Authenticated Chunks for the Stream Control Transmission Protocol (SCTP)"">RFC4895</a>]. Other chunks MAY be sent in an authenticated way.
This makes sure that an attacker cannot modify the stream in which a
message is sent or affect the ordered/unordered delivery of the
message.
If PR-SCTP as defined in [<a href="./rfc3758" title=""Stream Control Transmission Protocol (SCTP) Partial Reliability Extension"">RFC3758</a>] is used, FORWARD-TSN chunks MUST
also be sent in an authenticated way as described in [<a href="./rfc4895" title=""Authenticated Chunks for the Stream Control Transmission Protocol (SCTP)"">RFC4895</a>]. This
makes sure that it is not possible for an attacker to drop messages
and use forged FORWARD-TSN, SACK, and/or SHUTDOWN chunks to hide this
dropping.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. Renegotiation</span>
DTLS supports renegotiation, and therefore this feature is also
available by DTLS/SCTP. It is up to the upper layer to use/allow it
or not. Application writers should be aware that allowing
renegotiations may result in changes of security parameters.
<span class="h3"><a class="selflink" id="section-4.7" href="#section-4.7">4.7</a>. Handshake</span>
A DTLS implementation discards DTLS messages from older epochs after
some time, as described in <a href="./rfc4347#section-4.1">Section 4.1 of [RFC4347]</a>. This is not
acceptable when the DTLS user performs a reliable data transfer. To
avoid discarding messages, the following procedures are required.
Before sending a ChangeCipherSpec message, all outstanding SCTP user
messages MUST have been acknowledged by the SCTP peer and MUST NOT be
revoked by the SCTP peer.
Prior to processing a received ChangeCipherSpec, all other received
SCTP user messages that are buffered in the SCTP layer MUST be read
and processed by DTLS.
User messages that arrive between ChangeCipherSpec and Finished
messages and use the new epoch have probably passed the Finished
message and MUST be buffered by DTLS until the Finished message is
read.
<span class="h3"><a class="selflink" id="section-4.8" href="#section-4.8">4.8</a>. Handling of Endpoint-Pair Shared Secrets</span>
The endpoint-pair shared secret for Shared Key Identifier 0 is empty
and MUST be used when establishing a DTLS connection. Whenever the
master key changes, a 64-byte shared secret is derived from every
master secret and provided as a new endpoint-pair shared secret by
using the exporter described in [<a href="./rfc5705" title=""Keying Material Exporters for Transport Layer Security (TLS)"">RFC5705</a>]. The exporter MUST use the
<span class="grey">Tuexen, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
label given in <a href="#section-5">Section 5</a> and no context. The new Shared Key
Identifier MUST be the old Shared Key Identifier incremented by 1.
If the old one is 65535, the new one MUST be 1.
Before sending the Finished message, the active SCTP-AUTH key MUST be
switched to the new one.
Once the corresponding Finished message from the peer has been
received, the old SCTP-AUTH key SHOULD be removed.
<span class="h3"><a class="selflink" id="section-4.9" href="#section-4.9">4.9</a>. Shutdown</span>
To prevent DTLS from discarding DTLS user messages while it is
shutting down, a CloseNotify message MUST only be sent after all
outstanding SCTP user messages have been acknowledged by the SCTP
peer and MUST NOT still be revoked by the SCTP peer.
Prior to processing a received CloseNotify, all other received SCTP
user messages that are buffered in the SCTP layer MUST be read and
processed by DTLS.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. IANA Considerations</span>
IANA added a value to the TLS Exporter Label registry as described in
[<a href="./rfc5705" title=""Keying Material Exporters for Transport Layer Security (TLS)"">RFC5705</a>]. The label is "EXPORTER_DTLS_OVER_SCTP".
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
The security considerations given in [<a href="./rfc4347" title=""Datagram Transport Layer Security"">RFC4347</a>], [<a href="./rfc4895" title=""Authenticated Chunks for the Stream Control Transmission Protocol (SCTP)"">RFC4895</a>], and
[<a href="./rfc4960" title=""Stream Control Transmission Protocol"">RFC4960</a>] also apply to this document.
It is possible to authenticate DTLS endpoints based on IP addresses
in certificates. SCTP associations can use multiple addresses per
SCTP endpoint. Therefore, it is possible that DTLS records will be
sent from a different IP address than that originally authenticated.
This is not a problem provided that no security decisions are made
based on that IP address. This is a special case of a general rule:
all decisions should be based on the peer's authenticated identity,
not on its transport layer identity.
For each message, the SCTP user also provides a stream identifier, a
flag to indicate whether the message is sent ordered or unordered,
and a payload protocol identifier. Although DTLS can be used to
provide privacy for the actual user message, none of these three are
protected by DTLS. They are sent as clear text, because they are
part of the SCTP DATA chunk header.
<span class="grey">Tuexen, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
DTLS supports cipher suites that contain a NULL cipher algorithm.
Negotiating a NULL cipher algorithm will not provide communications
privacy for applications and will not provide privacy for user
messages.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Acknowledgments</span>
The authors wish to thank Anna Brunstrom, Lars Eggert, Gorry
Fairhurst, Ian Goldberg, Alfred Hoenes, Carsten Hohendorf, Stefan
Lindskog, Daniel Mentz, and Sean Turner for their invaluable
comments.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC3758">RFC3758</a>] Stewart, R., Ramalho, M., Xie, Q., Tuexen, M., and P.
Conrad, "Stream Control Transmission Protocol (SCTP)
Partial Reliability Extension", <a href="./rfc3758">RFC 3758</a>, May 2004.
[<a id="ref-RFC4347">RFC4347</a>] Rescorla, E. and N. Modadugu, "Datagram Transport Layer
Security", <a href="./rfc4347">RFC 4347</a>, April 2006.
[<a id="ref-RFC4895">RFC4895</a>] Tuexen, M., Stewart, R., Lei, P., and E. Rescorla,
"Authenticated Chunks for the Stream Control Transmission
Protocol (SCTP)", <a href="./rfc4895">RFC 4895</a>, August 2007.
[<a id="ref-RFC4960">RFC4960</a>] Stewart, R., "Stream Control Transmission Protocol",
<a href="./rfc4960">RFC 4960</a>, September 2007.
[<a id="ref-RFC5705">RFC5705</a>] Rescorla, E., "Keying Material Exporters for Transport
Layer Security (TLS)", <a href="./rfc5705">RFC 5705</a>, March 2010.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
[<a id="ref-RFC0793">RFC0793</a>] Postel, J., "Transmission Control Protocol", STD 7,
<a href="./rfc793">RFC 793</a>, September 1981.
[<a id="ref-RFC3436">RFC3436</a>] Jungmaier, A., Rescorla, E., and M. Tuexen, "Transport
Layer Security over Stream Control Transmission Protocol",
<a href="./rfc3436">RFC 3436</a>, December 2002.
<span class="grey">Tuexen, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6083">RFC 6083</a> DTLS for SCTP January 2011</span>
[<a id="ref-RFC5061">RFC5061</a>] Stewart, R., Xie, Q., Tuexen, M., Maruyama, S., and M.
Kozuka, "Stream Control Transmission Protocol (SCTP)
Dynamic Address Reconfiguration", <a href="./rfc5061">RFC 5061</a>,
September 2007.
Authors' Addresses
Michael Tuexen
Muenster University of Applied Sciences
Stegerwaldstr. 39
48565 Steinfurt
Germany
EMail: tuexen@fh-muenster.de
Robin Seggelmann
Muenster University of Applied Sciences
Stegerwaldstr. 39
48565 Steinfurt
Germany
EMail: seggelmann@fh-muenster.de
Eric Rescorla
RTFM, Inc.
2064 Edgewood Drive
Palo Alto, CA 94303
USA
EMail: ekr@networkresonance.com
Tuexen, et al. Standards Track [Page 9]
</pre>
|