The dpd type command configures the DPD mode on an IKE peer.
The undo dpd type command deletes the DPD mode on an IKE peer.
By default, the DPD mode is not configured on an IKE peer.
Parameter |
Description |
Value |
|---|---|---|
| on-demand | Configures on-demand DPD. |
- |
| periodic | Configures periodic DPD. |
- |
Usage Scenario
When peers implement IPSec communication, the heartbeat mechanism can detect peer faults to avoid traffic loss. However, the periodic heartbeat message exchanges consume CPU resources on the two ends. The DPD mechanism enables a device to send DPD messages for peer detection only when the device does not receive IPSec packets from the peer within a period. This mechanism can detect peer faults and save CPU resources.
The device sets the DPD mode and enables the DPD function based on the dpd type or ike dpd type command. Two DPD modes are available:
When the local end needs to send IPSec packets to the remote end, the local end sends a DPD request packet to the remote end for DPD detection.
If the local end does not receive IPSec packets or a DPD request packet from the remote end after the DPD idle time expires, it periodically sends a DPD request packet to the remote end.
The local end retransmits DPD request packets if it does not receive any DPD response packet from the remote end within the retransmission interval. If the local end still does not receive any DPD response packet within the retransmission interval after the maximum number of retransmissions is reached, the local end considers that the remote end is offline and deletes the involved IKE SA and IPSec SA.
Precautions
The payload sequence of DPD packets configured using the dpd msg or ike dpd msg command on IKE peers at both ends must be the same. Otherwise, DPD does not take effect.