Before forwarding an IP packet through a GRE tunnel, the NetEngine 8000 F adds a GRE header and a transport protocol (IP header) before the packet's inner IP header. After the packet is encapsulated with a GRE header and transport protocol, its size may exceed the maximum size that the data link layer permits, resulting in a forwarding failure. A GRE MTU is the maximum size of a non-fragmented IP packet to be sent before it enters a GRE tunnel. After the packet enters the GRE tunnel, its maximum size must contain a GRE header and transport protocol, as shown in Figure 1.
The GRE MTU fragmentation principle varies according to the types of packets entering a GRE tunnel.
If an MTU has been configured for a tunnel interface, a device checks whether the size of an IPv4 packet is greater than the configured MTU before forwarding it through the tunnel interface. If it is greater, the device fragments the packet and encapsulates a GRE header and transport protocol into each fragment. The fragments encapsulated with GRE headers and transport protocols may be fragmented again on the physical outbound interface.
After PMTU learning is enabled on a device's tunnel interface, the device sends probe packets carrying updated MTUs every 10 minutes.
Before forwarding an IPv6 packet through a GRE tunnel, a device compares the packet's size with the GRE MTU. If the packet's size is greater than the GRE MTU, the device reports a Packet Too Big message and fragments the packet.
The effective GRE MTU value varies according to the types of packets entering a GRE tunnel.