Example 1 Data @ IP layer: = Given user data: 2000 bytes + UDP header length: 8 bytes = 2008 bytes IP header
- 20 byte Max Ethernet frame data size (MTU): 1500 bytes So, we have an IP message 2028 bytes (including the 20 bytes of IP header) that needs to be sent over a link with MTU 1,500 bytes MF Offset Data 2,008 bytes 0 0
First Fragmentation 1500 MTU MF Offset Data 1480 bytes 1 0 Fragment 1; Data bytes 0-1479
MF Offset Data 528 bytes 0 185 Fragment 2; Data bytes 1480-2,007 Example 2 For example, consider an IP message 12,000 bytes wide (including the 20 byte IP header) that needs to be sent over a link with MTU 3,300 bytes. MF Offset Data 11,980 bytes 0 0
First Fragmentation 3300 MTU MF Offset Data 3,280 bytes 1 0 Fragment 1; Data bytes 0-3,279 MF Offset Data 3,280 bytes 1 410
Fragment 2; Data bytes 3280-6,559 Third Fragmentation 3300 MTU MF Offset Data 3,280 bytes 1 820 Fragment 3; Data bytes 6,560-9,839 Fourth Fragmentation 3300 MTU MF Offset Data 0 1,230 2,140 bytes Fragment 4; Data bytes 9,840-11,979
Reference: http://www.tcpipguide.com/free/t_IPMessageFragmentationProcess-2.htm *MF = More Fragments This flag will be 0 when no fragments are expected i.e. for the last fragment