The cpu-defend application-apperceive enable command enables active link protection (ALP). After the ALP is enabled, the CAR values of protocol packets set using linkup-car can take effect.
The undo cpu-defend application-apperceive enable command disables ALP.
By default, ALP is enabled on FTP, IPv6 FTP, HTTP, HTTPS, IP-CLOUD, IKE, IPSEC-ESP, SSH, TELNET, and TFTP packets and disabled on BGP, BGP4+, ISIS, OSPF, and OSPFv3 packets.
cpu-defend application-apperceive [ bgp | bgp4plus | ftp | ftpv6 | http | https | ike | ip-cloud | ipsec-esp | isis | ospf | ospfv3 | ssh | telnet | tftp ] enable
undo cpu-defend application-apperceive [ bgp | bgp4plus | ftp | ftpv6 | http | https | ike | ip-cloud | ipsec-esp | isis | ospf | ospfv3 | ssh | telnet | tftp ] enable
Parameter | Description | Value |
---|---|---|
bgp |
Enables ALP on BGP packets. |
- |
bgp4plus |
Enables ALP on BGP4+ packets. |
- |
ftp |
Enables ALP on FTP packets. |
- |
ftpv6 |
Enables ALP on IPv6 FTP packets. |
- |
http |
Enables ALP on HTTP packets. |
- |
https |
Enables ALP on HTTPS packets. |
- |
ike |
Enables ALP on IKE packets. |
- |
ip-cloud |
Enables ALP on IP-CLOUD packets. |
- |
ipsec-esp |
Enables ALP on IPSEC-ESP packets. |
- |
isis |
Enables ALP on ISIS packets. |
- |
ospf |
Enables ALP on OSPF packets. |
- |
ospfv3 |
Enables ALP on OSPFv3 packets. |
- |
ssh |
Enables ALP on SSH packets. |
- |
telnet |
Enables ALP on TELNET packets. |
- |
tftp |
Enables ALP on TFTP packets. |
- |
Usage Scenario
The default CAR value of BGP, BGP4+, FTP, IPv6 FTP, HTTP, HTTPS, IP-CLOUD, ISIS, OSPFv3, OSPF, IKE, IPSEC-ESP, SSH, TFTP, or TELNET protocol is small. When a switch uses these protocols to transfer files or set up connections with other hosts or devices, the number of protocol packets sharply increases in a short period. When the packet rate exceeds the limit, the protocol packets are dropped. The switch may also undergo attacks of other protocols. This affects data transmission and causes service interruption.
You can run the cpu-defend application-apperceive command to enable ALP for above protocols, ensuring normal operation of these related services when attacks occur. When a connection is set up, the switch sends packets at the rate of the CPCAR value configured using the linkup-car command. The CPCAR value can be set as required.
Precautions
To enable the ALP function for a certain protocol, run the cpu-defend application-apperceive enable command to enable ALP globally. For example, before enabling ALP for the TFTP protocol, run the cpu-defend application-apperceive enable command, and then the cpu-defend application-apperceive tftp enable command to make the configuration take effect.
# Enable ALP on BGP packets and set the CIR value to 256 kbit/s.
<HUAWEI> system-view [HUAWEI] cpu-defend policy test [HUAWEI-cpu-defend-policy-test] linkup-car packet-type bgp cir 256 [HUAWEI-cpu-defend-policy-test] quit [HUAWEI] cpu-defend application-apperceive enable [HUAWEI] cpu-defend application-apperceive bgp enable