The IPSec SA lifetime is only valid for the IPSec SAs established in IKE negotiation mode. Manually established IPSec SAs are always valid.
The configured IPSec SA lifetime is only valid for the new IPSec SAs established in IKE negotiation mode.
When you set a traffic-based lifecycle, you are advised to refer to the total volume of IPSec traffic the device forwards in an hour.
For a dynamic SA, configure the SA hard lifetime so that the SA can be updated in real time, reducing the crash risk and improving security.
Hard lifetime: specifies the lifetime of an IPSec SA.
When two devices negotiate an IPSec SA, the actual hard lifetime is the smaller of the two values configured on the two devices.
Soft lifetime: specifies the time after which a new IPSec SA is negotiated so that the new IPSec SA will be ready before the hard lifetime of the original IPSec SA expires.
Soft Lifetime Type |
Description |
|---|---|
Time-based soft lifetime (soft timeout period) |
|
Traffic-based soft lifetime (soft timeout traffic) |
|
Before an IPSec SA becomes invalid, IKE negotiates a new IPSec SA for the remote end. The remote end uses the new IPSec SA to protect IPSec communication immediately after the new IPSec SA is negotiated. If service traffic is transmitted, the original IPSec SA is deleted immediately. If no service traffic is transmitted, the original IPSec SA will be deleted after 10s or the hard lifetime expires.
If the time-based lifetime and traffic-based lifetime are both set for an IPSec SA, the IPSec SA becomes invalid when either lifetime expires.
You can set the global IPSec SA lifetime or set the IPSec SA lifetime in an IPSec policy. If the IPSec SA lifetime is not set in an IPSec policy, the global lifetime is used. If both the global IPSec SA lifetime or the IPSec SA lifetime in an IPSec policy are set, the IPSec SA lifetime in the IPSec policy takes effect.