Summary

  • RFC 2385 gave every protected TCP segment a keyed MD5 digest and dropped mismatches in silence, blunting forged-reset attacks on long-lived BGP sessions.
  • To fit a 40-byte option budget, the deployed format carried no algorithm identifier and no key identifier — so a passing digest proved a segment matched local configuration, never which security epoch, peer authority or route truth stood behind it.

A forty-byte forgery could erase a continent's routes

The most dangerous packet in late-1990s routing was small, dull and entirely fake. It carried no prefixes, no policy, no path attributes — just a forged TCP reset aimed at port 179. If it landed, a BGP session died, and every route that session had taught the router died with it. A few dozen bytes of fiction could outlast a fibre cut.

BGP rode on TCP because TCP already offered ordered, reliable delivery. That inheritance came with a narrow seam. An off-path attacker who guessed a connection's endpoints and sequence space could inject a reset. TCP would close; the routing process might reconnect, or it might briefly withdraw everything it had learned from that peer. The blast radius was wildly disproportionate to the payload.

RFC 2385 answered at the transport boundary. Every protected segment received TCP option Kind 19, a length byte and a 16-byte digest. The digest covered the IPv4 pseudo-header, the TCP header with its checksum treated as zero and its options excluded, the payload, and a secret both endpoints already knew. Guessing a plausible sequence number was no longer enough. The attacker also needed the shared secret.

The receiver recomputed the digest. Mismatch meant the segment vanished, with nothing sent back. That silence was the point: a forged packet earned no useful protocol reply. Logging was advisable, but it was never a receipt the sender could read.

The IESG note was refreshingly honest about scope. This was existing practice against certain simple attacks, with known weaknesses against concerted ones. RFC 2385 never claimed to solve BGP security. It protected one TCP transition from one class of false input.

What the digest actually witnessed

The option's name invited a grander reading than its evidence supported. "Signature" sounds like a certificate of identity, or an endorsement of the routing information flowing inside the stream. On the wire, the claim was thinner.

A matching digest showed that the received bytes, the endpoint addresses in the pseudo-header and one locally selected secret produced the same MD5 result at both ends. It did not identify the human operator. It did not establish that a particular autonomous system was entitled to originate a prefix. It did not show that a BGP UPDATE passed import policy, reached the routing table, entered forwarding hardware or delivered a single packet.

Even the key's identity was absent. The segment carried no label saying which shared secret the receiver should try. Configuration supplied that fact. If several operational records disagreed about the current password, the digest could not arbitrate; it could only pass or fail under whichever local state the implementation happened to pick.

Hence the receipt chain matters. Segment emission, option presence, key selection, digest validation, TCP acceptance, BGP session continuity, UPDATE acceptance, RIB selection, FIB installation and packet delivery are separate events. A valid digest closes only the first stretch of that road.

Security was policy, not negotiation

RFC 2385 deliberately refused to negotiate whether the option would be used. Site policy and the application decided. A remote peer could not talk a protected sender into downgrading simply by omitting the option from its SYN/ACK. The sender kept requiring signatures; the unsigned response was ignored and the connection never formed.

That was a strong local boundary — and it pushed operational agreement outside the packets. Both sides had to know protection was required, choose the same secret and switch it on at compatible times. A silent discard named no culprit. An absent option, a bad secret, a damaged segment and a peer that never enabled the feature all looked identical from the outside: failure, unsigned.

The RFC allowed the password to change mid-connection if both sides synchronized. It then admitted the awkward edge immediately: retransmitted segments could misbehave in implementations that changed passwords. A segment built under the old secret could arrive after the receiver had moved to the new one. With no key identifier in the option, the packet could not say which verification state it belonged to.

Validation was deterministic only after local configuration supplied the missing epoch. The packet had been made honest about arithmetic and mute about history.

The byte that was not there

TCP's header-length field caps the whole TCP header at 60 bytes. After the fixed 20-byte header, 40 bytes remain for options — a suitcase that never quite closes. RFC 2385 illustrated the squeeze precisely: a SYN carrying MSS, window scale, timestamps, the MD5 option and padding consumed the entire allowance.

The MD5 option itself took 18 bytes: Kind, Length, and the 16-byte digest. By the time the RFC appeared, collision-search worries about MD5 were already in the literature. Yet the option stayed welded to MD5, and the format had no algorithm-type field at all.

Why omit it? The RFC did the arithmetic out loud. An algorithm field would need at least one more byte, producing a 19-byte option that implementations would likely pad to 20. Inside a 40-byte budget, those two effective bytes competed with other TCP capabilities. The local optimization was sensible: protect the BGP session with the mechanism routers already ran, and stop eating scarce common header space.

The bill arrived later. Because no algorithm could be named inside Kind 19, a stronger algorithm could not simply be selected in the same format. Migration required a different option and a fresh compatibility contract. One saved byte was not the only reason TCP MD5 lingered for years, but it made cryptographic choice invisible at precisely the place where endpoints needed interoperable evidence of that choice.

Held Errata 4432 later corrected "32-byte words" to "32-bit words" in the header-length explanation. RFC 6691 corrected a different point: RFC 2385 had said the receiver should shrink its advertised MSS for the option, while the later rule made the sender subtract actual option bytes from its own data length. Both corrections sharpen the engineering record. Neither touches the 40-byte constraint or the missing algorithm field.

A key without a lifecycle

RFC 2385 left the nature of the shared key to applications and implementations. That kept the wire mechanism small, but the key-management surface did not disappear — it relocated into router configuration, operator procedure and bilateral timing.

RFC 3562 made the displaced work visible. It recommended keys of 12 to 24 bytes, limited sharing across peering arrangements, and changes at least every 90 days. The practical worry was never only abstract MD5 collision research. Weak or reused secrets could be guessed; a leaked key shared across many sessions turned one mistake into one large blast radius; a rotation could reset a session if the two sides changed at different moments.

The option carried no key number, no "next key" signal, and no replay separation for a later connection reusing the same socket pair and master secret. A valid segment therefore proved possession of some configured secret — not that the secret was fresh, unique, or still inside the intended operational boundary.

That is the difference between removing a decision from the common layer and pretending the decision no longer exists. The RFC kept the packet thin and provided no portable state for the choices operators still had to coordinate by hand.

TCP-AO made the missing state explicit

RFC 5925 eventually retired TCP MD5 in favour of the TCP Authentication Option. TCP-AO split algorithms into an extensible specification, added a KeyID and a receive-next-key identifier, derived traffic keys per connection, and defended against replay across long-lived and repeated connections. It could coordinate a key change without asking every received segment to audition an unnamed set of secrets.

TCP-AO still did not distribute master secrets or negotiate its own use. Operators, or an external key-management system, remained responsible. And the replacement never turned transport authentication into route authorization, encryption, or a complete BGP security system.

That distinction matters, because TCP-AO key epochs deserve a history of their own. RFC 2385's history ends earlier — the history of a deployed defense whose compact wire image could say "this segment matches our shared state" but could never say which replaceable algorithm and key state the endpoints meant.

The historical boundary

RFC 2385 was not foolish because it was later obsoleted. It solved an urgent, bounded problem with the option space and the deployed equipment of December 1998. Its restraint helped prevent remote downgrade: local policy, not an unauthenticated peer hint, decided whether protection was mandatory.

The durable lesson is about evidence design. A minimum common mechanism must be thin enough to deploy, yet must expose enough state for independent implementations to replace it. If algorithm and key identity live entirely outside the packet, a successful digest validates present compatibility while offering no portable path to future compatibility.

The Internet did get a stronger option later. It had to build a new one. RFC 2385 protected the segment, but the missing selector meant running code could not change the algorithm without changing the protocol surface wrapped around it — and that is the whole argument in one sentence: keep the mechanism thin, but never let it go mute.

Sources