< Home

qos queue max-buffer

Function

The qos queue max-buffer command sets the maximum number of bytes in all packets to be cached in a queue.

The undo qos queue max-buffer command restores the default maximum number of bytes in all packets to be cached in a queue.

The qos queue green max-buffer command sets the maximum number of bytes in green packets to be cached in a queue.

The undo qos queue green max-buffer command restores the default maximum number of bytes in green packets to be cached in a queue.

By default, the maximum buffer size of all packets in a queue is 24 and the maximum buffer size of green packets in a queue is 12, in cells. The size of a cell is 128 bytes.

Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command.

Format

qos queue queue-index max-buffer cell-number [ green max-buffer cell-number ]

undo qos queue queue-index max-buffer [ cell-number green max-buffer cell-number | green max-buffer ]

qos queue queue-index green max-buffer cell-number

undo qos queue queue-index green max-buffer

Parameters

Parameter

Description

Value

queue queue-index

Specifies the index of a queue.

The value is an integer that ranges from 0 to 7.

max-buffer cell-number

Specifies the maximum number of bytes in all packets to be cached in a queue.

The value is an integer, in cells. The value range is as follows:
  • S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, and S5720-SI: from 1 to 5444.
  • S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI: from 1 to 10000.

The size of a cell is 128 bytes.

green max-buffer cell-number

Specifies the maximum number of bytes in green packets to be cached in a queue.

The value is an integer, in cells. The value range is as follows:
  • S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI: from 1 to 10000.
  • Other models except the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI: from 1 to 5444.

The size of a cell is 128 bytes.

non-green max-buffer cell-number

Specifies the maximum number of bytes in non-green packets to be cached in a queue.

The value is an integer that ranges from 1920 to 3100, in cells. The size of a cell is 128 bytes.

Views

Tail drop profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When congestion occurs, the switch uses the tail drop method. When the queue length reaches the upper limit, excess packets (buffered at the queue tail) are discarded until congestion is removed. You can run the qos queue max-buffer command to set the maximum number of bytes in all packets or green packets to be cached in a queue so that the queue has sufficient buffer, preventing packet loss.

Prerequisites

A tail drop profile has been created using the qos tail-drop-profile (system view) command.

Precautions

You can also use the qos queue max-length command to set the maximum number of packets to be cached in a queue. If the maximum number of bytes or packets is reached, the device considers that congestion occurs and will discard subsequent packets.

Example

# Create a global tail drop profile named test, and then set the maximum buffer size of all packets in a BE queue for the global tail drop profile to 100, in cells.

<HUAWEI> system-view
[HUAWEI] qos tail-drop-profile test
[HUAWEI-tail-drop-profile-test] qos queue 0 max-buffer 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >