Description |
This article describes that sometimes, TCP packets may be sent out of order causing sessions to drop due to heavy load on the firewall.
The same can happen for IPsec tunnel traffic in the form of ESP packets sent out of order causing the remote router to receive those packets with errors such as 'invalid spi' or 'HMAC validation failed'. |
Scope | Reducing or eliminating packets out of order for TCP and ESP traffic. |
Solution |
Firewall admins can try stopping this behavior with some options to alleviate the load on the firewall NPU in the following ways:
config firewall policy edit <policy id> set delay-tcp-npu-session enable end
config system global set ipsec-hmac-offload disable end
config vpn ipsec phase1-interface edit <tunnel name> set ip-fragmentation pre-encapsulation end
Note: Anti-replay can affect the traffic through the tunnel, which may lead to ESP packets being dropped. The discarded packets will be logged with the following message in the Event Log: 'Invalid ESP packet detected (replayed packet)'. config vpn ipsec phase2-interface set replay <enable | disable> end |