The length of IPSec-encapsulated packets may exceed the maximum transmission unit (MTU) of the outbound interface on the local device. If the IPSec remote device does not support fragmentation and reassembly, it cannot decapsulate packets and will discard or incorrectly process packets, affecting packet transmission.
To prevent this problem, configure IPSec fragmentation before encryption on the local device. Subsequently, the local device calculates the length of encapsulated packets. If the length exceeds the MTU, the device fragments the packets and then encapsulates each fragment. After packets reach the IPSec remote device, the remote device can decapsulate the fragments without having to reassemble them. The decapsulated packets will be forwarded normally.
IPSec fragmentation before encryption can be configured globally or on an IPSec tunnel. The packet fragmentation mode configured globally is valid for all IPSec tunnels, and the packet fragmentation mode configured on an IPSec tunnel is valid for only the IPSec tunnel.
If all or a large number of IPSec packets use the same fragmentation mode, perform the following operations.
If the packet fragmentation mode of an IPSec tunnel is different, perform the following operations.