Internet-Draft | Plaintext Sequence Numbers for DTLS1.3 | February 2023 |
Pismenny | Expires 27 August 2023 | [Page] |
This document specifies a TLS 1.3 extension that enables DTLS 1.3 to negotiate the use of plaintext sequence numbers instead of protected sequence numbers. Plaintext sequence numbers are advantageous in closed networks where the benefits of lower latency outweigh the risk of ossification and reduced privacy.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 27 August 2023.¶
Copyright (c) 2023 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://trustee.ietf.org/license-info) 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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Datagram Transport Layer Security (DTLS) 1.3 [RFC9147] packet encryption protects not only record data, but also the record header's sequence number. The sequence number is encrypted by XORing it with a mask which is generated by encrypting the leading 16 bytes of the record's ciphertext with a sequence number key.¶
For high performance networking, sequence number encryption is a trade-off between ossification and privacy on the one hand and latency and complexity for hardware acceleration on the other hand. Sequence number encryption improves privacy by hiding the real ordering of packets from on-path observers. Sequence number encryption also prevents protocol ossification, when middleboxes manipulate packet delivery based on the sequence number. Sequence number encryption however adds latency to packet processing on both sender and receiver. Sequence number encryption also increases the complexity and cost of NIC encryption accelerators, which are crucial for enabling encryption in high performance computing systems that seek to maximize performance and lowest penalty possible for encryption.¶
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.¶
enum { default_cipher (0), plaintext (1), (65536) } SeqNumEncAlgs; struct { select (Handshake.msg_type) { case CH: SeqNumEncAlgs supported_algs<1..255>; case SH: SeqNumEncAlgs selected_alg; }; } SupportedSequenceNumberEncryptionAlgorithms;¶
OPEN: This extension might fit nicely with the TLS flags extension [I-D.draft-ietf-tls-tlsflags], but TLS flags doesn't seem to apply to DTLS.¶
The "sequence_number_encryption_algorithms" extension is used by the client to specify the record sequence number encryption algorithms it supports and by the server to select the algorithm it prefers. The ClientHello message lists algorithms by the order of their preference, starting from the most preferred algorithm.¶
If this extension is not present, in either ClientHello or EncryptedExtensions, then both parties MUST fallback to the default record sequence number encryption algorithm.¶
OPEN: Do we want an encrypted extension for the server's response? It is possible to use an encrypted extension, by using the default record sequence encryption algorithm prior to epoch 3 (epoch < 3), and enabling the selected algorithm only after epoch 3 (epoch >= 3).¶
This document allows endpoints to disable the record sequence number encryption algorithm, which retracts the on-path tracking anti-ossification protection established in [RFC9147] record sequence number encryption. It is therefore RECOMMENDED that users limit the deployment of this extension to closed environments, such as data centers, where the risk of on-path observers is negligible.¶
IANA is requested to assign a new value from the TLS ExtensionType values registry:¶
TODO acknowledge.¶