Hello friend!
To overcome this problem, IPSec uses an Authentication Header (AH) to digitally sign the entire contents of each packet. This signature provides 3 benefits: 1) Protects against replay attacks. ... Each end of a connection (e.g client-server) verifies the other's identity with the authentication headers used by IPSec.
Hope to help you!