alarm drop-rate enable

Function

The alarm drop-rate enable command enables the alarm function for the packets that are dropped before they are sent to the CPU.

The undo alarm drop-rate enable command disables the alarm function for the packets that are dropped before they are sent to the CPU.

By default, the alarm function is enabled for the packets that are dropped before they are sent to the CPU.

Format

alarm drop-rate { application-apperceive | blacklist | ma-defend | tcpip-defend | total-packet | whitelist | urpf } enable

alarm drop-rate { index index | user-defined-flow flow-id } enable

alarm drop-rate whitelist-v6 enable

alarm drop-rate ttl-expired-loop enable

alarm drop-rate tcpip-defend-v6 enable

undo alarm drop-rate { application-apperceive | blacklist | ma-defend | tcpip-defend | total-packet | whitelist | urpf } enable

undo alarm drop-rate { index index | user-defined-flow flow-id } enable

undo alarm drop-rate whitelist-v6 enable

undo alarm drop-rate ttl-expired-loop enable

undo alarm drop-rate tcpip-defend-v6 enable

Parameters

Parameter Description Value
application-apperceive

Enables the alarm function for the packets that are dropped by the application layer association function before they are sent to the CPU.

-

blacklist

Enables the alarm function for the packets that are dropped by the blacklist function before they are sent to the CPU.

-

ma-defend

Enables the alarm function for the packets that are dropped by the management/control plane protection function before they are sent to the CPU.

-

tcpip-defend

Enables the alarm function for the packets that are dropped by the TCP/IP attack defense function before they are sent to the CPU.

-

total-packet

Enables the alarm function for the packets that are dropped before they are sent to the CPU.

-

whitelist

Enables the alarm function for the packets that are dropped by the whitelist function before they are sent to the CPU.

-

urpf

Enables the alarm function for the packets that are dropped by the URPF function before they are sent to the CPU.

-

index index

Specifies the packet index. This parameter enables the alarm function for the dropped packets with the specified index.

The value is an integer ranging from 35 to 1658.

user-defined-flow flow-id

Specifies the number of a user-defined flow. This parameter enables the alarm function for the packets that are dropped by the user-defined flow function before they are sent to the CPU.

The value is an integer ranging from 1 to 64.

whitelist-v6

Enables the alarm function for the packets that are dropped by the IPv6 whitelist function before they are sent to the CPU.

-

ttl-expired-loop

Enables the alarm function for TTL timeout loop detection.

-

tcpip-defend-v6

Specifies Tcpip defend packet.

-

Views

Attack defense policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
cpu-defend write

Usage Guidelines

Usage Scenario

To view the status of a device that drops too many packets, you can run the alarm drop-rate enable command to configure the alarm function. In this manner, when the number of dropped packets exceeds the set threshold in a specified time period, the device sends an alarm to the information center, and you can take actions accordingly.

Precautions

The device has a default alarm threshold and a default check interval, which are used when only the alarm drop-rate enable command is run. You can also run the alarm drop-rate command to set an alarm threshold and a check interval as required.

In VS mode, this command is supported only by the admin VS.

Example

# Enables the alarm function for the packets that are dropped by the TCP/IP attack defense function before they are sent to the CPU in attack defense policy 4.
<HUAWEI> system-view
[~HUAWEI] cpu-defend policy 4
[*HUAWEI-cpu-defend-policy-4] alarm drop-rate tcpip-defend enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >