read: IPv4 - Packet Header Format
Fragmentation and Reassembly
- MTU
- maximum transmission unit
- is the largest IP datagram that it can carry in a frame
- fragmentation occurs in a router when it wants to forward a datagram (of larger MTU) through a network (of smaller MTU)
- these fragments would carry the same identifier in the Ident field
- if one of the fragments did not arrive, all other fragments are discarded, IP does not attempt to recover those missing fragments
- when possible, avoid fragmentation via “path MTU discovery”
- path MTU discovery - a process by which fragmentation is avoided by sending packets that are small enough to traverse the link with the smallest MTU in the path from sender to receiver
Consider what happens when host H5 (figure 3.17) sends a datagram to host H8 in the example internet shown in Figure 3.14. Assuming that the MTU is 1500 bytes for the two Ethernets and the 802.11 network, and 532 bytes for the point-to-point network, then a 1420-byte datagram (20-byte IP header plus 1400 bytes of data) sent from H5 makes it across the 802.11 network and the first Ethernet without fragmentation but must be fragmented into three datagrams at router R2. These three fragments are then forwarded by router R3 across the second Ethernet to the destination host.
-model/3---network-layer/routed-protocols/internet-protocol-(ip)/ipv4/ipv4---fragmentation--and--assembly/2.png)
-model/3---network-layer/routed-protocols/internet-protocol-(ip)/ipv4/ipv4---fragmentation--and--assembly/3.png)