< Home

queue-depth (flow queue WRED drop profile view)

Function

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.

Format

queue-depth queue-depth-value

undo queue-depth

Parameters

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.

Views

Flow queue WRED drop profile view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Configure flow queue WRED drop profile wred1 and set the flow queue length to 2000 bytes.

<HUAWEI> system-view
[HUAWEI] flow-wred-profile wred1
[HUAWEI-flow-wred-wred1] queue-depth 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >