The packet that meant two things
In January 2001, Ian Miller published RFC 3128 under a title that could empty a conference hall: Protection Against a Variant of the Tiny Fragment Attack. Nine pages. No vendor to flatter, no product to launch, no diagram worth framing. And inside it, an idea that still makes network engineers sit up straight: a firewall can inspect a packet, approve it, be completely right about the bytes in front of it — and still have waved through a connection that never existed.
Because the host at the far end was reading the same fragments and assembling a different packet. Both machines followed their rules. Both were, by their own lights, correct. Only one of them got to decide what the connection actually was.
That gap — between the packet a filter judges and the packet an endpoint consumes — is the whole of RFC 3128. It is also, a quarter of a century later, the same gap behind a remarkable share of security failures that have nothing to do with IP fragmentation at all.
The trick, in three fragments
Strip away the ceremony and the mechanism is almost insultingly simple.
- A legal first fragment. Fragment Offset zero, carrying at least sixteen bytes of TCP header — enough for a filter to read the destination port, check it against policy, and find it allowed.
- A short overlapping replacement. A second fragment, also at offset zero, only eight transport bytes long, carrying a different destination port and no flags whatsoever.
- A completion fragment. The remainder of the datagram, arriving to finish a packet whose meaning now depends entirely on whose overlap rule wins.
At the perimeter, the filter saw the first fragment and did its job. Offset zero. A recognisable TCP header. A destination port that policy permits inbound traffic to reach. Nothing forbidden. Pass.
At the destination, the IP stack eventually saw a set of fragments and reassembled them. On a host whose overlap policy lets later bytes replace earlier ones, the short second fragment overwrote the source port, the destination port and the sequence number, while the flags survived from the legal first view. TCP was handed a header that pointed at a port supposed to accept only outbound connections — with the flags of a packet that had been approved.
The filter was not being careless. It was applying a policy to a temporary representation: a first look at a header that later processing was perfectly free to overwrite. The endpoint applied no policy at all. It simply reassembled, and passed upward whatever the overlap rule produced.
That is the historical insight, and it deserves to be said plainly. The security decision was made about a packet that never existed.
What RFC 1858 taught firewalls to fear
None of this arrived from nowhere. RFC 1858, published in October 1995 by Greg Ziemba, David Reed and Paul Traina, had already mapped the terrain with two named families of evasion.
The tiny fragment attack split a TCP header so that the first fragment exposed only part of it. The filter saw the ports but not the flags, or the flags but not the ports, and made a confident decision on half a question. The overlapping fragment attack exploited a subtler disagreement: when two fragments carry the same bytes, which copy survives reassembly? IPv4's design, laid out in RFC 791, allowed fragments to arrive out of order, to duplicate, and to overlap. It never appointed a winner.
RFC 1858 proposed countermeasures. One of them, the Indirect Method, was elegantly cheap: reject TCP fragments whose Fragment Offset equals one. Since IPv4 counts offsets in eight-byte units, offset one begins exactly where the first eight-byte slice ends. Block that position and you block the familiar trick of hiding TCP flags in the next fragment along.
It worked. It solved the attack in front of it. And it quietly taught a generation of filters to guard one specific doorway.
The move nobody had blocked
RFC 3128 asked the obvious, awkward follow-up: what happens when the attacker stops walking through that doorway and steps back to offset zero instead?
The memo's example uses three fragments. The first begins at zero and carries at least sixteen bytes of the TCP header — complete enough for a filter, and naming an allowed inbound service. The second also begins at zero but stops after eight TCP bytes, and it changes the destination port; judged on its own, without the flags that appear later in the header, those bytes might satisfy an entirely different rule. A third fragment completes the datagram.
On a host whose overlap policy gives the short replacement bytes the decisive value, reassembly produces a new TCP header: the flags inherited from the legal first view, the destination port inherited from the overlapping second view.
Policy had been applied to a draft. The endpoint read the published edition.
The fix was a length rule, not a new architecture
RFC 3128's repair was deliberately small, and that is part of its charm. Keep rejecting TCP fragments at offset one. Add one more condition: if Fragment Offset is zero, the protocol is TCP, and the transport portion is shorter than the minimum TCP header length, drop the packet.
That single length invariant closes the gap, because a short offset-zero replacement can no longer masquerade as an adequate basis for policy. It converts an implicit hope — the first fragment probably contains what matters — into a checkable condition. If a filter intends to rule on ports and control bits, the first fragment must expose the entire minimum field set that ruling depends on.
Note what the memo did not do. It did not mandate full reassembly at every firewall. It did not legislate a universal IPv4 overlap policy. It did not pretend the ambiguity had been abolished. It made one class of ambiguity unrepresentable at the moment of decision, and left the rest of the mess where it found it.
What the memo refused to claim
RFC 3128 is unusually honest about its own scope, which is precisely why it has aged well. The result depended on the destination's exact reassembly implementation. RFC 815's reassembly discussion treated overlap as an engineering condition an algorithm has to manage; it never imposed one universal winner for every duplicated byte. Different hosts, middleboxes and operating-system generations could therefore build different packets out of the same fragment train.
That implementation dependency cuts both ways. It means the memo never proved that every target was vulnerable. It also means a filter could not safely assume the endpoint shared its interpretation. A security device that forwarded fragments without normalising or reassembling them was delegating the final byte selection to another machine — and hoping.
And it preserved a distinction that security writing routinely collapses: admission is not effect. A fragment set that passes a filter has not established a completed connection, a listening service, a finished handshake, or a compromised application. Each is a separate evidence boundary. RFC 3128's own language resists the inflation — significance depends on the security policy, and the outcome depends on reassembly.
The problem that outlived the memo
Later standards show how durable the underlying issue was, and how little of it was ever about this one trick. RFC 6274 revisited IPv4 security and recommended consistent, conservative fragment handling. RFC 5722 took the harder line for IPv6: if fragments overlap, discard the entire datagram. RFC 7112 required the first IPv6 fragment to carry the complete header chain, so middleboxes would never have to authorise a packet whose essential extension headers turned up later. RFC 8900 eventually described fragmentation as operationally fragile, because endpoints and middleboxes kept disagreeing about support, filtering and packet size.
None of those documents should be projected backwards as proof that every 2001 firewall behaved in one way. Their value is structural. They show a design lesson that keeps recurring: security policy fails wherever the enforcement point and the consuming endpoint do not agree on the object being judged.
Why view divergence is still the bug
The lesson reaches well past IP fragments, and this is where the memo stops being a curiosity. Parsers, gateways and application servers routinely see different stages of the same input. A proxy normalises a request differently from the origin server. An intrusion detector decodes an encoding once while the application decodes it twice. A schema gateway validates one representation while downstream code consumes another. The details change; the control failure does not. Policy attaches to bytes or fields that are not stable across the path.
RFC 3128 belongs in Internet history because it made that failure concrete with almost no machinery at all. The first fragment could be legal. The second could be locally plausible. The third could complete the datagram. The defect appeared only when three fragments were interpreted by different authorities at different moments — and nobody had written down which authority counted.
The deepest contribution, then, was never the destination-port trick. It was the demand that an enforcement decision remain true after the network has finished constructing the object. If later processing can replace the bytes that justified admission, the admission was never about the final packet. It was about a rumour of one.
Sources
- https://www.rfc-editor.org/rfc/rfc3128.txt
- https://www.rfc-editor.org/info/rfc3128
- https://datatracker.ietf.org/doc/rfc3128/
- https://www.rfc-editor.org/rfc/rfc1858.txt
- https://www.rfc-editor.org/rfc/rfc791.txt
- https://www.rfc-editor.org/rfc/rfc815.txt
- https://www.rfc-editor.org/rfc/rfc4963.txt
- https://www.rfc-editor.org/rfc/rfc6274.txt
- https://www.rfc-editor.org/rfc/rfc5722.txt
- https://www.rfc-editor.org/rfc/rfc7112.txt
- https://www.rfc-editor.org/rfc/rfc6864.txt
- https://www.rfc-editor.org/rfc/rfc8200.txt
- https://www.rfc-editor.org/rfc/rfc8900.txt
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.






