Summary
- RFC 5925 specifies the TCP Authentication Option, which obsoletes the TCP MD5 Signature option of RFC 2385 and specifies stronger Message Authentication Codes.
- It protects against replays even for long-lived TCP connections, and it lets operators rotate keys without tearing the session down.
- The protocol shipped in 2010. The migration did not, because a session only upgrades when both ends agree to upgrade on the same day.
Somewhere right now, a BGP session is celebrating its tenth birthday. It has outlasted three network engineers, two office moves and one acquisition, and for most of that life it has been authenticated by a hash that cryptographers stopped recommending before the iPhone existed.
That hash is MD5, specified for TCP in RFC 2385 back in 1998. The idea was simple and, for its moment, good enough: both ends of a connection share a secret, and every segment carries a 16-byte digest computed over the segment and the secret. A router that cannot produce the right digest does not get to pretend it is your peer.
It worked. It also aged badly, in the specific way that anything designed for a short conversation ages when you leave it running for a decade.
What MD5 got wrong
RFC 2385 has one key. Not one key per session, not one key per direction — one key, full stop. There is no key identifier in the option, so there is no way to say "use the new secret now and keep the old one for the sessions that have not caught up." There is no algorithm field, so there is no way to move off MD5 without moving off the option. And there is no sequence awareness, which means a long-lived connection has no defence against a segment captured years ago and replayed today.
For a protocol whose entire job is to keep a session alive across failures, that last gap is the embarrassing one. A BGP session between two core routers can stay up for months. MD5 had nothing to say about what happens across all that time.
What RFC 5925 actually added
RFC 5925, the TCP Authentication Option, was published in June 2010 and formally obsoletes RFC 2385. It is a better design in four specific ways, and each one is worth naming, because each one is a coordination problem in disguise.
Key identifiers. TCP-AO carries a KeyID, so a connection can hold more than one key at a time and both ends can tell which one signed a given segment. Algorithm agility. The MAC is no longer welded to the option; RFC 5926 defines HMAC-SHA-1-96 as the mandatory baseline and leaves room for others. Replay protection. A sliding window over the TCP sequence space lets the receiver spot a replayed segment even on a connection that has been up for months. Rotation without a teardown. The RNextKeyID field lets one end tell the other which key it wants next, so keys can be changed while the session keeps forwarding.
That is a genuinely better lock. It is also, notably, a small one. The option carries a key ID, a next-key hint and a MAC. It does not carry a policy, a registry, a committee or a moral theory about who should be allowed to peer with whom. The common layer stayed thin, which is why the design has held up.
The delay was never about the cryptography
Here is the part worth staring at. RFC 2385 shipped in 1998. RFC 5925 shipped in 2010. That is twelve years to specify a better option — and, by the standards of Internet standards, that is not even the slow part. The slow part is that plenty of networks are still running MD5, because the unit of upgrade is not the network. It is the session, and a session has two ends.
You cannot half-upgrade a TCP-AO connection. One end running MD5 and the other running TCP-AO is not a degraded session; it is no session. So every migration is a small, scheduled, mutual act of faith: both operators pick a window, both load the key, both hope the other one actually did it. Multiply that by every external peer, every customer edge, every route reflector, and every engineer who has ever been on call at 3 a.m., and the incentive becomes obvious. The old thing works. The new thing requires a meeting.
This is the part of infrastructure that never makes it into the RFC's abstract. The protocol is a coordination artifact. The network is the reality. Between them sits a flag day, and the flag day has a cost, and the cost is paid by whoever blinks second.
Publication is not adoption
RFC 5925 is a clean example of a rule that Internet governance keeps relearning: a document does not become true because it was published. It becomes true when operators implement it, deploy it, and rely on it. Until then it is a very well-argued PDF.
The design got this right, which is why it survived. TCP-AO does not require a central authority to declare a session valid. It requires both ends to hold the same key material and run the same deterministic check. Non-adoption is not a violation; it is just a session that stayed in the older compatibility set. Nobody is punished. The packets simply do not match.
That is a healthier arrangement than most of the Internet's coordination layers manage. The registry world, by contrast, has spent decades confusing publication with obligation — treating a policy document as though it created the network it describes. The argument for running-code primacy is essentially the TCP-AO argument applied to number resources: validity should be something a participant can check locally, not something an institution grants.
The lesson in the option field
There is a temptation to read RFC 5925 as a story about cryptography. It is a better story about scheduling. The hard problem was never inventing a stronger MAC; HMAC-SHA-1 was not a research project. The hard problem was that improving a connection requires two organizations to agree on a minute.
Every protocol designer eventually meets this problem, and every protocol designer eventually learns the same thing: the elegant part is the part you can specify, and the expensive part is the part where somebody has to change a config at the same time as somebody else.
MD5 is still out there, guarding sessions that will outlive us all. It is not still out there because anyone thinks it is good. It is still out there because the alternative has a start time, and the start time has to be agreed.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






