Summary

  • A TCP Fast Open cookie is server-generated evidence tied to the client's source-IP context. It is not a user credential, and it is not a request identifier.
  • Valid TFO lets SYN data reach the application before the three-way handshake finishes — and RFC 7413 explicitly keeps a rare duplicate-delivery risk for exactly that early data.
  • A durable execution record must join transport sequence evidence to authenticated principal, request identity, deduplication, commit state and response outcome. Anything less is a guess wearing a timestamp.

The dashboard said fast. The database said twice.

A client with a cached Fast Open Cookie drops a reservation — or a configuration change — into the opening SYN. The server validates the cookie, buffers the data, wakes the application, and acknowledges the SYN and its payload. Then, before any useful response comes back, the exchange dies. A fallback or a later retry sends the same logical request again.

Now ask the only question that matters: did the business do the thing once, twice, or not at all?

The cookie is silent. The TCP acknowledgment is silent. The transport can have behaved exactly as designed while the business outcome sits in the dark. That is the evidence gap — TCP Fast Open compresses connection setup and data exchange; it does not fuse transport identity, user identity and transaction identity into a single proof.

What the Fast Open Cookie actually authenticates

RFC 7413 describes the cookie as an opaque, server-generated value — ideally a message-authentication tag over the source IP address of the client's SYN that the client cannot forge. The server may pack in implementation-specific data, accept more than one valid cookie for a client, and expire cookies whenever it likes.

That scope is genuinely useful: it blunts spoofed-address resource and amplification attacks. It is not a login. Source addresses get shared, translated and reassigned — the RFC itself flags the reassignment risk — so a valid cookie proves only that the server accepts this source-IP context for Fast Open under its current key and policy. It says nothing about which human or workload wrote the payload.

And TFO is never on by default. RFC 7413 requires the application to opt in per service port and to reckon with the changed semantics. A listener can switch Fast Open off, or stop admitting new Fast Open requests once its pending-request limit fills. Cookie validity, listener admission and application authorization are three separate verdicts — which is precisely why a single "fast connection" counter makes such a poor witness.

How SYN data is admitted — or quietly deferred

Valid cookie, enabled listener, room under the limit: the server buffers the SYN data, notifies the application, marks the connection FastOpened, and returns a SYN-ACK acknowledging both SYN and data. Invalid cookie or no Fast Open: the server drops the SYN data and acknowledges only the SYN, and the client retransmits the unacknowledged bytes in the ACK after the handshake.

Middleboxes and servers can also drop SYN packets that carry payload or unfamiliar options. RFC 7413 recommends a timeout fallback using an ordinary SYN with neither data nor a Fast Open option. The client may cache the server's MSS because early data leaves before the current SYN-ACK can announce it — send too much and you buy a retransmission.

So "the client used Fast Open" is not one outcome. The early bytes may have reached the application, been discarded before delivery, or been re-sent through plain TCP. A record worth keeping says which.

A TCP ACK stops at the transport boundary

RFC 9293 defines cumulative acknowledgment in TCP sequence space: an acknowledgment number means the peer's TCP received every octet up to that point. That is strong transport evidence and the backbone of retransmission control.

It is not a commit message. An endpoint can absorb bytes into its receive path long before application code validates credentials, checks a request key, finishes storage or produces a durable result. The SYN-ACK that acknowledges TFO data therefore cannot stand in for application-level idempotency or an authenticated answer.

Replay is an application design condition

RFC 7413 warns that data in a SYN can reach the remote application more than once in rare circumstances. The exposure is confined to the early SYN data, not everything that follows — but it still decides which operations belong there. Applications must tolerate the boundary, and idempotent transactions are the natural fit.

Idempotent cannot mean "we usually retry safely." It means a stable request identifier, a defined deduplication scope, atomic handling of the first and repeated arrivals, and a retrievable outcome. Drop a non-idempotent mutation into early data without those controls and you have not optimized latency — you have built an ambiguity amplifier.

Sources