The link-quality-threshold loss delay command sets link quality thresholds.
The undo link-quality-threshold loss delay command cancels the settings.
link-quality-threshold { loss loss-rate | delay delay }
undo link-quality-threshold { loss | delay }
| Parameter | Description | Value |
|---|---|---|
| loss-rate | Specifies the packet loss threshold. |
The value is an integer ranging from 1 to 100, in percentages. The default value is 30%. |
| delay | Specifies the delay threshold. |
The value is an integer ranging from 1 to 3000, in milliseconds. The default value is 500 milliseconds. If more than 50 ACL rules are configured for IPSec, do not change the value of this parameter to a value less than 500. |
After sending a specific number (the default value is 10 and can be changed using the link-quality-detection interval number command) of link quality detection packets, the FW will calculate the delay and packet loss and compare them with those specified in the link-quality-threshold loss delay command. If the delay or packet loss rate exceeds the upper threshold, a link switchover is triggered.
The packet loss rate is calculated based on this formula: Packet loss rate = Number of discarded packets within a link quality detection cycle/Total number of link quality detection packets within a link quality detection cycle.
The delay is calculated based on the formula: Delay = Time when a response packet is received - Time when a link quality detection packet is sent. The FW calculates the delay of each link quality detection packet within a detection cycle and takes an average.
# Set the packet loss rate threshold to 10% and the delay threshold to 300 ms.
<sysname> system-view [sysname] ipsec smart-link profile profile1 [sysname-ipsec-smart-link-profile-profile1] link-quality-threshold loss 10 [sysname-ipsec-smart-link-profile-profile1] link-quality-threshold delay 300