Configuration Guide Vol. 3


1.4.3 MTU and Fragments

When IP packets are forwarded, larger packets are divided and sent according to the maximum transmission unit (MTU:Maximum Transfer Unit). This is called fragmentation. Packets that do not exceed the MTU are processed by the hardware. A packet that has been fragmented, however, is forwarded by the software in fragments, adversely affecting forwarding performance.

<Structure of this section>

(1) Determining MTU

(2) MTU and Fragments

A network can contain subnetworks with different MTUs. When a large IP packet passes through a network with a smaller MTU, the IP packet is fragmented before being forwarded.

The following figure illustrates fragmentation. In the figure, when a packet sent from network A is forwarded to network B, the packet is split into fragments because the MTU for network A is 1500 and the MTU for network B is 630.

Figure 1-11: Fragmentation model

[Figure Data]

(3) Generation of fragments

The data portion of an IP packet (the packet without the IP header) exceeding the MTU is divided into fragments that are multiples of 8.

Because the MTU of network B is 630, the size of a packet must be 610, excluding the IP header. Because the largest multiple of 8 that is less than 610 is 608, a packet is divided into 608-byte fragments, and each fragment is given an IP header. The following figure shows the fragmentation of a packet.

Figure 1-12: Packet fragmentation

[Figure Data]

When an IP packet is split into fragments to fit the MTU, the fragmentation is described by the Fragment Offset field and the More Fragments bit in the IP header. The switch sets the same Identification field in all the IP headers and recalculates the checksum. The offset is calculated by dividing the data length from the beginning by 8.

(4) Reassembly of fragments

The fragments of an IP packet are reassembled at the end point based on the Identification and Fragment Offset fields and the More Fragments bit in the IP headers. Intermediate routers do not reassemble fragments. This is because routers are intended to route the individual fragments to the end point. If an intermediate router were to store fragments for reassembly into an IP packet, the stored fragments would be discarded if any fragments did not pass through the router.