IP Fragmentation: When a Packet Is Too Big for the Route
A large download can travel in thousands of packets without any of them being fragmented. IP fragmentation is a more specific event: a packet gets split because it's too large for a network link it needs to cross.
IP stands for Internet Protocol, the rules for addressing and carrying packets between devices. A packet contains a header with delivery information and a payload—the data inside.
The size limit along the route
Each link has a maximum transmission unit, or MTU: the largest IP packet it can carry without fragmentation. That limit is measured in bytes, the units computers use to count stored and transmitted data.
A packet might fit on the sender's local network but encounter a smaller limit farther along its route. The smallest link limit on that route is the path MTU, described in the Internet guidance on fragmentation.
Fragmentation divides the original packet's data among smaller packets, each with the header information it needs. The destination collects those pieces and rebuilds the original packet before passing its contents to the next part of the receiving software.
This differs from how a file normally becomes network traffic. For example, TCP, the Transmission Control Protocol, takes a stream of application data and divides it into segments that IP carries in packets.
Why Big Packets Get Chopped Up
A file can therefore span many TCP segments and IP packets without IP fragmentation occurring at all.
IPv4 and IPv6 take different approaches
IPv4 and IPv6 are two versions of Internet Protocol, and their rules differ:
- IPv4: The sender can fragment a packet, and a router—a device forwarding traffic between networks—can do so when the packet permits it. The Don't Fragment flag tells routers not to split that packet.
- IPv6: Only the sender can fragment a packet; routers along the route don't. A router that can't forward an oversized packet reports the problem to the sender instead.
For IPv4, a packet that's too large and has Don't Fragment set must be dropped rather than split by the router. The IPv4 error-reporting rules provide for an error message explaining why.
Each fragment carries information that helps the receiver identify its original packet and locate its data. The fragment offset supplies that starting position, so arrival order doesn't determine the final arrangement.
- Keep work, guest and smart-home gear apart with up to 32 VLANs on one small switch.
- Copy any port's traffic to your laptop with port mirroring and see what is on the wire.
- Set it up from a web page instead of learning a command line.
Losing one piece can spoil the packet
Receiving most of a packet isn't enough. If a required fragment never arrives, reassembly can't finish, and the receiver eventually discards the incomplete result.
The IPv6 specification, for example, sets a reassembly time limit. IP fragmentation itself doesn't arrange replacement of missing data; a higher-level protocol such as TCP may handle recovery.
Fragments also add headers and require the receiver to hold incomplete packets in memory. Firewalls, which filter network traffic, and other network equipment may drop fragments, adding another possible point of failure.
Sending packets that fit from the start
Path MTU discovery helps a sender learn how large its packets can be along a route. One method uses network error messages to report an oversized packet and the smaller limit it encountered.
In IPv6, the Packet Too Big message gives the sender information it can use to reduce packet size. Blocking those messages can leave a connection repeatedly sending packets that won't get through.
Fragmentation is a defined network mechanism, but it isn't a general speed boost for downloads. When packets already fit the route, there's no need to split them and make the destination perform that extra assembly work.
Fragment Offset: Where the Pieces of a Packet Belong

Packets: The Data You Send and the Instructions That Carry It

Internet Protocol: What IP Does for Every Packet

QUOTE:
"Amateurs hack systems, professionals hack people."
