Concepts / Troubleshooting and ICMP

Troubleshooting and ICMP

Fragmentation

Also called fragments, reassembly, don't fragment, DF

Cutting a packet that is too big for the next link into pieces, reassembled at the destination.

Too big for the link: cut into fragments
Too big for the link: cut into fragments

3000 bytes of data do not fit a 1500-byte MTU, so IPv4 cuts them into fragments of 1480, 1480 and 40 bytes, each with its own 20-byte header, the same id and an offset counted in 8-byte units (0, 185, 370). More fragments (MF) is 1 on all but the last. Only the receiver reassembles; lose one fragment and after 30 s the whole packet is gone.

Fragments share an IP id and carry an offset. Losing any fragment loses the whole packet, and many firewalls drop fragments, so modern traffic avoids it: TCP sets Don't Fragment and relies on path MTU discovery instead.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab