After the SA lifetime is set, SAs are updated in real time and difficult to decipher, enhancing security.
Hard lifetime (hard timeout period): specifies the lifetime of an IKE SA.
When two devices negotiate an IKE SA, the actual hard lifetime is the smaller of the two values configured on the two devices.
Soft lifetime (soft timeout period): refers to the time after which a new IKE SA is negotiated so that the new IKE SA will be ready before the hard lifetime of the original IKE SA expires.
Before an IKE SA becomes invalid, IKE negotiates a new IKE SA for the remote end. The remote end uses the new IKE SA to protect IPSec communication immediately after the new IKE SA is negotiated. If service traffic is transmitted, the original IKE SA is deleted immediately. If no service traffic is transmitted, the original IKE SA will be deleted after 10s or the hard lifetime expires.
Changing the lifetime does not affect the established IKE SAs, and the changed value is used for establishing new IKE SAs in subsequent negotiation.