The queue-depth command sets the length of a flow queue.
The undo queue-depth command restores the default length of a flow queue.
By default, the length of a flow queue is 1048576 bytes.
Parameter |
Description |
Value |
---|---|---|
queue-depth-value |
Specifies the length of a flow queue. |
The value is an integer that ranges from 1024 to 67092480, in bytes. The default value is 1048576. |
Usage Scenario
When packets entering flow queues are processed based on parameters in a flow queue WRED drop profile, the percentage of the packet length to the flow queue length needs to be calculated. When the percentage reaches the lower drop threshold, the device discards packets based on the drop probability. When the percentage reaches the upper drop threshold, the device discards all subsequent packets. You can adjust the flow queue length to optimize the congestion avoidance effect.
Prerequisites
A flow queue WRED drop profile has been created and the flow queue WRED drop profile view has been displayed.
Precautions
When a small flow queue length is used, the delay of packets passing a queue is shortened but the queue buffer capability is lowered. When a large flow queue length is used, the queue buffer capability is improved but the delay of packets passing a queue is extended. In addition, when congestion occurs in a flow queue, many buffer resources are occupied. In this case, packets in other flow queues may be discarded due to insufficient buffer resources. Therefore, the default flow queue length is recommended.