| Internet-Draft | OTS | November 2026 |
| Mohamed | Expires 29 May 2027 | [Page] |
This document specifies Version 1 of the Oblivious Transport Security (OTS) protocol. OTS provides a connection-oriented, encrypted, and authenticated transport channel that operates independently of the underlying carrier network. Unlike TLS, OTS eliminates plaintext handshake metadata, client implementation fingerprints, traffic-analysis side channels, and cross-epoch network-layer address correlation by enforcing fixed-size datagrams, constant-rate transmission scheduling, cryptographic path binding, and synchronized ephemeral endpoint rotation without third-party proxies or relays.¶
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 29 May 2027.¶
Copyright (c) 2026 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.¶
Conventional transport security protocols such as TLS 1.3 protect application-layer confidentiality and integrity but expose significant metadata to passive network observers. This metadata includes plaintext Server Name Indication (SNI) fields, cipher and extension preferences that fingerprint client implementations, variable packet lengths, inter-packet arrival timings that reveal application behavior and throughput, and persistent network-layer identifiers.¶
Oblivious Transport Security (OTS) eliminates these leaks natively at the transport layer without relying on third-party proxies, relays, or peer-to-peer forwarding networks. Every OTS datagram has an identical wire length, every endpoint uses a single mandatory cryptographic suite without feature negotiation, return delivery state is bound dynamically through cryptographic path validation, and endpoints transmit at deterministic intervals using indistinguishable cover frames when application data is absent.¶
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.¶
All multi-octet integer fields in this specification are encoded in network byte order (big-endian).¶
OTS is a carrier-agnostic transport security protocol. While primarily deployed over UDP [RFC0768], OTS operates identically over any bidirectional datagram or byte-stream carrier -- including web endpoints, direct IPv6 sockets, local links, and peer-to-peer transports -- without requiring changes to the protocol state machine. When carried over a byte-stream transport, datagrams are framed back-to-back as fixed 1280-octet records without additional length prefixes.¶
An OTS session consists of a single round-trip (1-RTT) cryptographic handshake followed by a bidirectional sequence of fixed-length datagrams. OTS decouples session identity and metadata protection entirely from the underlying carrier network, operating purely between the two communicating endpoints with zero third-party infrastructure.¶
To prevent implementation fingerprinting, OTS defines no version negotiation, no cipher-suite negotiation, and no optional handshake extensions. Any datagram deviating from the exact byte layout defined in Section 4 MUST be silently discarded without generating an error response.¶
All OTS datagrams MUST be exactly 1280 octets in length, matching the IPv6 minimum link MTU [RFC8200] to prevent network-layer fragmentation. Datagrams of any other length MUST be silently discarded.¶
Every 1280-octet OTS datagram begins with an identical 20-octet cleartext header and concludes with a 16-octet Poly1305 authentication tag (Bytes 1264 to 1279):¶
For Handshake Datagrams (Type 0x01), Bytes 20 to 1279 carry an unencrypted ephemeral X25519 public key followed by an AEAD-encrypted handshake payload:¶
For Protected Data Datagrams (Type 0x02), Bytes 20 to 1279 carry an AEAD-encrypted inner frame:¶
When Frame Type is 0x02, the valid octets within Frame Data (bounded by Payload Length) consist of one or more concatenated Type-Length-Value (TLV) control records. Any trailing octets within Payload Length MUST form complete TLV records; malformed or truncated TLVs MUST cause the datagram to be silently discarded.¶
Each TLV record has a 1-octet Control Type, a 2-octet Control Length (specifying the octet length of Control Value), and a variable-length Control Value:¶
OTS Version 1 mandates the following primitives exclusively:¶
No alternative algorithms, cipher suites, or parameter sets are permitted. Implementations MUST reject all-zero X25519 shared secrets as specified in Section 6.1 of [RFC7748].¶
Prior to initiating a connection, the client obtains the server's 32-octet static X25519 public key (ss_pub) and 32-octet Ed25519 public verification key (sv_pub) via an authenticated DNS SVCB/HTTPS resource record [RFC9460] or out-of-band service configuration.¶
To initiate a session, the client performs the following steps:¶
Generates a fresh 32-octet ephemeral X25519 key pair (ec_priv, ec_pub) and a cryptographically random 64-bit Connection ID (cid_0).¶
Computes the static-ephemeral shared secret: ss_1 = X25519(ec_priv, ss_pub).¶
Derives the 32-octet Flight 1 encryption key using HKDF-Extract and HKDF-Expand:¶
hs_prk_1 = HKDF-Extract(salt = ec_pub || ss_pub,
IKM = ss_1)
k_hs_1 = HKDF-Expand(PRK = hs_prk_1,
info = "ots v1 flight1", L = 32)
¶
Constructs the 1212-octet Flight 1 plaintext payload:¶
Sets Outer Datagram Header fields: Version = 0x01, Type = 0x01, Reserved = 0x0000, Connection ID = cid_0, Packet Number = 0. Places ec_pub in Bytes 20 to 51, encrypts the 1212-octet plaintext with ChaCha20-Poly1305(key = k_hs_1, nonce = 0, AAD = Bytes 0..51) into Bytes 52 to 1263, and writes the 16-octet authentication tag to Bytes 1264 to 1279.¶
Upon receiving a 1280-octet Handshake Datagram (Type 0x01) with Packet Number = 0, the server:¶
Extracts ec_pub (Bytes 20 to 51), computes ss_1 = X25519(ss_priv, ec_pub), derives k_hs_1, and verifies the ChaCha20-Poly1305 tag over AAD = Bytes 0..51. If authentication fails or zero padding is non-zero, the datagram MUST be silently discarded.¶
Validates that the decrypted Unix timestamp is within +/- 30 seconds of the server's clock and verifies that client_nonce has not been seen within the active replay cache window. Upon validation, the server inserts client_nonce into its replay cache and binds the session's initial return delivery path to the authenticated source socket of Flight 1.¶
Generates a fresh 32-octet ephemeral X25519 key pair (es_priv, es_pub) and computes the ephemeral-ephemeral shared secret: ss_2 = X25519(es_priv, ec_pub).¶
Derives the Flight 2 encryption key and directional application traffic keys (Section 6.3) using HKDF-SHA256:¶
hs_prk_2 = HKDF-Extract(salt = hs_prk_1, IKM = ss_2)
k_hs_2 = HKDF-Expand(PRK = hs_prk_2,
info = "ots v1 flight2", L = 32)
¶
Computes the 32-octet handshake transcript hash and signs it using its Ed25519 private signing key to produce a 64-octet signature (sig):¶
transcript = SHA-256("ots v1 transcript" || cid_0 ||
ec_pub || ss_pub ||
client_nonce || es_pub)
¶
Constructs the 1212-octet Flight 2 plaintext payload:¶
Sets Outer Datagram Header fields: Version = 0x01, Type = 0x01, Reserved = 0x0000, Connection ID = cid_0, Packet Number = 0. Places es_pub in Bytes 20 to 51, encrypts the 1212-octet plaintext with ChaCha20-Poly1305(key = k_hs_2, nonce = 0, AAD = Bytes 0..51) into Bytes 52 to 1263, and writes the 16-octet authentication tag to Bytes 1264 to 1279.¶
Upon receiving Flight 2, the client extracts es_pub, computes ss_2 = X25519(ec_priv, es_pub), derives k_hs_2, decrypts and authenticates the payload, verifies zero padding, and verifies sig against sv_pub over transcript. If any verification step fails, the client MUST abort the session immediately.¶
To prevent nonce collisions across bidirectional traffic, OTS derives independent 32-octet ChaCha20-Poly1305 keys for client-to-server (initiator) and server-to-client (responder) Protected Data Datagrams from hs_prk_2:¶
client_app_key = HKDF-Expand(PRK = hs_prk_2,
info = "ots v1 c2s traffic",
L = 32)
server_app_key = HKDF-Expand(PRK = hs_prk_2,
info = "ots v1 s2c traffic",
L = 32)
¶
Both endpoints initialize their outbound Protected Data Packet Number counter to 0. Each endpoint increments its own outbound Packet Number by 1 for every Protected Data Datagram transmitted. Once Flight 2 is completed, both endpoints MUST securely erase ec_priv, es_priv, ss_1, ss_2, k_hs_1, and k_hs_2 from memory.¶
Once Flight 2 is processed, both endpoints MUST initialize a periodic timer set to Tick Interval T. At each tick expiration, the endpoint MUST emit exactly one 1280-octet Protected Data Datagram (Type 0x02).¶
If outbound application data is queued, the endpoint constructs a Stream Data frame (0x01). If control or acknowledgment records are pending without application data, the endpoint constructs a Control and Acknowledgment frame (0x02). If neither is queued, the endpoint MUST construct a Cover Frame (0x00). All frame types undergo identical AEAD encryption and produce wire-indistinguishable datagrams.¶
Implementations MUST NOT vary packet sizes, padding bytes, handshake field ordering, or initial transmission parameters based on host operating system, application type, or user configuration.¶
To prevent passive path observers from correlating endpoints via network-layer addresses without relying on intermediary relays or NAT-fragile static tokens, OTS binds session state exclusively to cryptographic identifiers and rotates carrier addresses dynamically.¶
Responders MUST NOT treat network-layer IP addresses or transport ports as persistent client identifiers. Return delivery paths are bound solely upon verifying the ChaCha20-Poly1305 authentication tag of an incoming datagram carrying a valid active or pre-negotiated Connection ID. This allows OTS to traverse consumer NATs, carrier-grade NATs (CGNAT), and multi-homed interfaces seamlessly.¶
On carriers supporting dynamic address allocation (such as IPv6 temporary addresses [RFC8981]), an OTS initiator MUST maintain a rolling pool of ephemeral source addresses. At each Rotation Epoch (default: 256 datagrams or 10 seconds, whichever occurs first), the initiator MUST atomically switch both its outbound source IP address and its active 64-bit Connection ID to the next unused Connection ID from its pre-negotiated pool (Section 6.2 and Section 4.5).¶
The outbound 64-bit Packet Number MUST NOT reset upon Connection ID rotation; it continues incrementing monotonically across epochs under the active directional traffic key to guarantee strict AEAD nonce uniqueness.¶
Upon verifying the AEAD tag of the first datagram arriving under the newly activated Connection ID, the responder updates its return socket state to the new source address and port, retires the previous Connection ID, and replenishes the initiator's Connection ID pool via a Control Frame (0x02, TLV Type 0x02). Because datagram size and transmission cadence remain invariant across transitions, passive path observers cannot link pre-rotation and post-rotation traffic flows.¶
OTS responders SHOULD deploy behind shared Anycast IP prefixes. Service selection is bound exclusively to the encrypted SNI carried inside Flight 1 (Section 6.1), ensuring destination IP addresses do not identify specific hostnames or applications to on-path observers.¶
OTS is a standalone, two-party transport protocol and does not rely on third-party proxies, relays, or peer-to-peer forwarding networks. Transport metadata, implementation fingerprints, transmission rates, and cross-epoch network address correlation are mitigated natively between the communicating endpoints.¶
Within a single Rotation Epoch, an on-path observer located directly on the physical link between initiator and responder can observe the active ephemeral carrier address pair for that window; however, synchronized ephemeral address and Connection ID rotation prevents persistent tracking or session reconstruction across epochs.¶
Replay attacks on Flight 1 are mitigated via timestamp window enforcement (+/- 30 seconds) and a server-side cache of seen 32-octet client_nonce values retained for at least 60 seconds. Replay attacks during active sessions are mitigated via strict monotonic enforcement of the 64-bit Packet Number and a 64-packet sliding anti-replay window. Duplicate or out-of-window datagrams MUST be silently dropped before updating return path bindings.¶
Because ChaCha20-Poly1305 security relies on strict nonce uniqueness, an endpoint MUST terminate the session if its outbound 64-bit Packet Number approaches 2^64 - 1. Independent directional keys (client_app_key and server_app_key) ensure that identical Packet Numbers transmitted by initiator and responder never reuse a (key, nonce) pair.¶
This document requests two IANA actions:¶
IANA is requested to assign a User Port in the "Service Name and Transport Protocol Port Number Registry" [RFC6335] with the following parameters:¶
IANA is requested to register the following entry in the "TLS Application-Layer Protocol Negotiation (ALPN) Protocol IDs" registry [RFC7301] for deployments encapsulating OTS over TLS-based carriers:¶