The port-queue-alarm discard command enables the packet loss alarm function for port queues.
The undo port-queue-alarm discard command disables the packet loss alarm function for port queues.
By default, the packet loss alarm function is disabled for port queues.
port-queue-alarm cos-value { discard-packet discard-packet-number | discard-byte discard-byte-number | discard-packet-ratio discard-packet-coefficient discard-packet-exponent } [ interval interval-time ]
undo port-queue-alarm cos-value { discard-packet discard-packet-number | discard-byte discard-byte-number | discard-packet-ratio discard-packet-coefficient discard-packet-exponent } [ interval interval-time ]
Parameter | Description | Value |
---|---|---|
cos-value |
Specifies the service class of a port queue. |
The value can be cs7, cs6, ef, af4, af3, af2, af1, and be. |
discard-packet discard-packet-number |
Specifies the alarm threshold for the number of dropped packets. |
The value is an integer ranging from 1 to 4294967295. |
discard-byte discard-byte-number |
Specifies the alarm threshold for the number of dropped bytes. |
The value is an integer ranging from 1 to 4294967295, in bytes. |
discard-packet-ratio discard-packet-coefficient discard-packet-exponent |
Specifies the coefficient and exponent for calculating the alarm packet loss rate of an interface queue. |
The formula for calculating the packet loss rate is discard-packet-coefficient/(10 discard-packet-exponent power), where: discard-packet-coefficient: specifies the coefficient of the packet loss ratio. The value is an integer that ranges from 1 to 9. discard-packet-exponent: specifies the packet loss index. The value is an integer that ranges from 1 to 5. |
interval interval-time |
Specifies the interval at which the packet loss information is checked. |
The value is an integer ranging from 15 to 3600, in seconds. The default value is 30s. |
Usage Scenario
To enable the packet loss alarm function for port queues, run the port-queue-alarm discard command. After the packet loss alarm function is enabled, the system checks the packet loss information at an interval of . If the number of dropped packets or bytes or the packet loss rate is greater than or equal to the configured threshold, an alarm is generated; if the number of dropped packets or bytes or the packet loss rate is less than the configured threshold, the alarm is cleared.
Configuration Impact
If the number of dropped packets or bytes or the packet loss rate is greater than or equal to the configured threshold, an alarm is generated. In this case, logging in to the device to check the traffic and network status is recommended.
If the number of dropped packets or bytes or the packet loss rate is less than the configured threshold, the alarm is cleared.Precautions
You can configure for a port queue on an interface only one of the alarm thresholds for the number of dropped packets, number of dropped bytes, and packet loss rate.
In multi-VS scenarios, after this command is configured on a trunk main interface, the command configuration is also effective for the trunk sub-interfaces that reside in other VSs.