IP Fragmentation – Understanding IP Fragmentation in IPv4

fragmentationipipv4layer3protocol-theory

When Device A sends an IP datagram toward Device B, the IP Layer of Device A computes if it must or not fragment the IP datagram to fit the link MTU. Sent to the next hop, the process will be repeated.

My question is, must every intermediary device on network wait for all the IP datagram fragments to arrive and reassemble them in the correct order and re-fragment if necessary?

enter image description here

Best Answer

As the diagram shows, fragmentation happens along the path, as needed. It is up to the end-device to reassemble any fragments.

Notice in the drawing how the colored boxes (representing IP packets) are fragmented by the first hop router, and they remain fragmented upon leaving the second hop router. Device B is responsible to reassemble the fragment into the IP packets before passing the reassembled packets to the upper-layer protocols.

Note:

This is only for IPv4. IPv6 requires the sending host to pre-fragment any IPv6 packets before sending them since the intermediate devices will not fragment the IPv6 packets.