Internet-Draft OTS November 2026
Mohamed Expires 29 May 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-alcapacit-asots-ots-01
Published:
Intended Status:
Experimental
Expires:
Author:
M. D. Mohamed
Alcapacit Services (ZatQasim)

Oblivious Transport Security (OTS) Version 1

Abstract

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.

Status of This Memo

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.

▲

Table of Contents

1. Introduction

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.

2. Conventions and Terminology

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).

Initiator (Client):
The endpoint that initiates an OTS session by transmitting Flight 1.
Responder (Server):
The endpoint that accepts an OTS session upon validating Flight 1 and responds with Flight 2.
Connection ID (CID):
A 64-bit cryptographically random identifier used to bind OTS session state independently of source and destination IP addresses or transport port numbers.
Cover Frame:
An authenticated, encrypted inner frame carrying zero application data, transmitted to maintain a constant wire bitrate.
Rotation Epoch:
The bounded interval of transmitted datagrams or elapsed seconds after which an initiator atomically rotates both its active network-layer source address and its active Connection ID.
Tick Interval (T):
The fixed interval, in milliseconds, at which an endpoint transmits a single 1280-octet OTS datagram.

3. Protocol Overview

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.

4. Wire Format

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.

4.1. Outer Datagram Header (Bytes 0 to 19 -- 20 Octets)

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):

  1. Version (Byte 0 -- 1 octet): 8-bit unsigned integer. For this specification, the value MUST be 0x01.
  2. Type (Byte 1 -- 1 octet): 8-bit unsigned integer identifying the datagram class: 0x01 for a Handshake Datagram, or 0x02 for a Protected Data Datagram.
  3. Reserved (Bytes 2 to 3 -- 2 octets): 16-bit field. MUST be set to 0x0000 by the sender and verified as 0x0000 by the receiver.
  4. Connection ID (Bytes 4 to 11 -- 8 octets): 64-bit opaque identifier. For Client Initial Handshake Datagrams (Flight 1), this field MUST contain a cryptographically random 64-bit value generated by the initiator. For Server Response Handshake Datagrams (Flight 2), this field MUST echo the initiator's Connection ID from Flight 1.
  5. Packet Number (Bytes 12 to 19 -- 8 octets): 64-bit monotonically increasing unsigned integer starting at 0 for each endpoint's independent send sequence. Used to construct the 96-bit ChaCha20-Poly1305 nonce by left-padding the 64-bit big-endian Packet Number with 32 zero bits (0x00000000).

4.2. Handshake Datagram Layout (Type 0x01)

For Handshake Datagrams (Type 0x01), Bytes 20 to 1279 carry an unencrypted ephemeral X25519 public key followed by an AEAD-encrypted handshake payload:

  1. Ephemeral Public Key (Bytes 20 to 51 -- 32 octets): The sender's 32-octet ephemeral X25519 public key (ec_pub in Flight 1; es_pub in Flight 2).
  2. Encrypted Handshake Payload (Bytes 52 to 1263 -- 1212 octets): Ciphertext encrypted with ChaCha20-Poly1305 using the handshake key defined in Section 6. The 52-octet prefix (Bytes 0 to 51, comprising the Outer Datagram Header and Ephemeral Public Key) MUST be passed as Additional Authenticated Data (AAD).
  3. Authentication Tag (Bytes 1264 to 1279 -- 16 octets): 16-octet Poly1305 tag produced by ChaCha20-Poly1305.

4.3. Protected Data Datagram Layout (Type 0x02)

For Protected Data Datagrams (Type 0x02), Bytes 20 to 1279 carry an AEAD-encrypted inner frame:

  1. Encrypted Inner Frame (Bytes 20 to 1263 -- 1244 octets): Ciphertext encrypted with ChaCha20-Poly1305 under the sender's directional traffic key (Section 6.3). The 20-octet Outer Datagram Header (Bytes 0 to 19) MUST be passed as Additional Authenticated Data (AAD). Upon decryption, the 1244-octet plaintext conforms to Section 4.4.
  2. Authentication Tag (Bytes 1264 to 1279 -- 16 octets): 16-octet Poly1305 tag produced by ChaCha20-Poly1305.

4.4. Decrypted Inner Frame Layout (1244 Octets Total)

  1. Frame Type (Byte 0 -- 1 octet): 0x00 for a Cover Frame, 0x01 for Stream Data, or 0x02 for Control and Acknowledgment.
  2. Payload Length (Bytes 1 to 2 -- 2 octets): 16-bit unsigned integer specifying valid octets in Frame Data (0 to 1241). Values greater than 1241 MUST cause the datagram to be silently discarded. For Cover Frames (0x00), this field MUST be 0.
  3. Frame Data and Zero Padding (Bytes 3 to 1243 -- 1241 octets): Valid payload octets (Bytes 3 to 3 + Payload Length - 1) followed by zero padding. All octets from offset (3 + Payload Length) through 1243 MUST be set to 0x00 by the sender and verified as 0x00 by the receiver.

4.5. Control and Acknowledgment Frame Format (Frame Type 0x02)

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:

0x01 -- ACK Record (Control Length = 16 octets):
Carries an 8-octet Largest Acknowledged Packet Number followed by an 8-octet ACK Bitmask where bit i (0 <= i <= 63, from least significant bit) is set to 1 if datagram (Largest Acknowledged Packet Number - i) has been received and authenticated, and 0 otherwise.
0x02 -- CID Pool Replenishment (Control Length = 8 * N octets, 1 <= N <= 16):
Transmitted by the responder to replenish the initiator's pool of pre-negotiated 64-bit Connection IDs for upcoming Rotation Epochs (Section 8.2). Each 8-octet entry is a cryptographically random 64-bit Connection ID.
0x03 -- Session Close (Control Length = 2 octets):
Carries a 16-bit unsigned Reason Code (0x0000 for normal closure). Upon transmitting or authenticating a Session Close TLV, the endpoint transitions to the Closed state and ceases transmission.

5. Cryptographic Specification

OTS Version 1 mandates the following primitives exclusively:

Key Exchange:
X25519 [RFC7748]
Key Derivation Function:
HKDF-SHA256 [RFC5869]
Authenticated Encryption:
ChaCha20-Poly1305 [RFC8439]
Server Authentication:
Ed25519 [RFC8032]

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].

6. Handshake Protocol

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.

6.1. Client Initial (Flight 1)

To initiate a session, the client performs the following steps:

  1. Generates a fresh 32-octet ephemeral X25519 key pair (ec_priv, ec_pub) and a cryptographically random 64-bit Connection ID (cid_0).

  2. Computes the static-ephemeral shared secret: ss_1 = X25519(ec_priv, ss_pub).

  3. 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)
    
  4. Constructs the 1212-octet Flight 1 plaintext payload:

    • Bytes 0 to 1 (2 octets): SNI Length (sni_len, 1 to 255).
    • Bytes 2 to (2 + sni_len - 1): UTF-8 encoded target Server Name Indication (SNI) without trailing null bytes.
    • Bytes (2 + sni_len) to (9 + sni_len) (8 octets): 64-bit unsigned Unix timestamp in seconds.
    • Bytes (10 + sni_len) to (41 + sni_len) (32 octets): Cryptographically random anti-replay nonce (client_nonce).
    • Remaining octets through Byte 1211: Zero padding (0x00).
  5. 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.

6.2. Server Response (Flight 2)

Upon receiving a 1280-octet Handshake Datagram (Type 0x01) with Packet Number = 0, the server:

  1. 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.

  2. 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.

  3. 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).

  4. 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)
    
  5. 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)
    
  6. Constructs the 1212-octet Flight 2 plaintext payload:

    • Bytes 0 to 63 (64 octets): Ed25519 signature (sig).
    • Bytes 64 to 65 (2 octets): Negotiated Tick Interval T in milliseconds (16-bit unsigned integer; MUST be >= 1).
    • Byte 66 (1 octet): Initial CID Pool Count (N, where 1 <= N <= 16).
    • Bytes 67 to (67 + 8*N - 1): N cryptographically random 64-bit Connection IDs for subsequent Rotation Epochs.
    • Remaining octets through Byte 1211: Zero padding (0x00).
  7. 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.

6.3. Application Traffic Key Schedule

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.

7. Traffic Shaping and Metadata Suppression

7.1. Isochronous Transmission

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.

7.2. Fingerprint Uniformity

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.

8. Cryptographic Path Binding and Address Rotation

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.

8.1. Dynamic Cryptographic Path Binding

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.

8.2. Synchronized Ephemeral Address Rotation

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.

8.3. Multi-Tenant Anycast Service Blinding

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.

9. Security Considerations

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.

10. IANA Considerations

This document requests two IANA actions:

10.1. Service Name and Transport Protocol Port Number Registry

IANA is requested to assign a User Port in the "Service Name and Transport Protocol Port Number Registry" [RFC6335] with the following parameters:

Service Name:
ots
Transport Protocol:
udp
Assignee:
Mohamed Daud Mohamed (alcapacit@gmail.com)
Contact:
Mohamed Daud Mohamed (alcapacit@gmail.com)
Description:
Oblivious Transport Security
Reference:
This document

10.2. TLS Application-Layer Protocol Negotiation (ALPN) Protocol IDs

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:

Protocol:
Oblivious Transport Security (OTS) Version 1
Identification Sequence:
0x6f 0x74 0x73 ("ots")
Reference:
This document

11. Normative References

[RFC0768]
Postel, J., "User Datagram Protocol", STD 6, RFC 768, DOI 10.17487/RFC768, , <https://www.rfc-editor.org/info/rfc768>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC5869]
Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, , <https://www.rfc-editor.org/info/rfc5869>.
[RFC6335]
Cotton, M., Eggert, L., Touch, J., Westerlund, M., and S. Cheshire, "Internet Assigned Numbers Authority (IANA) Procedures for the Management of the Service Name and Transport Protocol Port Number Registry", BCP 165, RFC 6335, DOI 10.17487/RFC6335, , <https://www.rfc-editor.org/info/rfc6335>.
[RFC7301]
Friedl, S., Popov, A., Langley, A., and E. Stephan, "Transport Layer Security (TLS) Application-Layer Protocol Negotiation Extension", RFC 7301, DOI 10.17487/RFC7301, , <https://www.rfc-editor.org/info/rfc7301>.
[RFC7748]
Langley, A., Hamburg, M., and S. Turner, "Elliptic Curves for Security", RFC 7748, DOI 10.17487/RFC7748, , <https://www.rfc-editor.org/info/rfc7748>.
[RFC8032]
Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, DOI 10.17487/RFC8032, , <https://www.rfc-editor.org/info/rfc8032>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8200]
Deering, S. and R. Hinden, "Internet Protocol, Version 6 (IPv6) Specification", STD 86, RFC 8200, DOI 10.17487/RFC8200, , <https://www.rfc-editor.org/info/rfc8200>.
[RFC8439]
Nir, Y. and A. Langley, "ChaCha20 and Poly1305 for IETF Protocols", RFC 8439, DOI 10.17487/RFC8439, , <https://www.rfc-editor.org/info/rfc8439>.
[RFC8981]
Gont, F., Krishnan, S., Narten, T., and R. Draves, "Temporary Address Extensions for Stateless Address Autoconfiguration in IPv6", RFC 8981, DOI 10.17487/RFC8981, , <https://www.rfc-editor.org/info/rfc8981>.
[RFC9460]
Schwartz, B., Bishop, M., and E. Nygren, "Service Binding and Parameter Specification via the DNS (SVCB and HTTPS Resource Records)", RFC 9460, DOI 10.17487/RFC9460, , <https://www.rfc-editor.org/info/rfc9460>.

Author's Address

Mohamed Daud Mohamed
Alcapacit Services (ZatQasim)