Part 7 - ACL - QoS

06-Congestion Avoidance Configuration Commands

Chapters Download  (44.98 KB)

06-Congestion Avoidance Configuration Commands


Congestion Avoidance Configuration Commands

WRED Configuration Commands

display qos wred interface

Syntax

display qos wred interface [ interface-type interface-number ]

View

Any view

Default Level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface by type and number.

Description

Use the display qos wred interface command to display the WRED configuration and statistics of an interface.

If no interface is specified, the WRED configuration and statistics of all interfaces are displayed.

Examples

# Display the WRED configuration and statistics of interface GigabitEthernet 1/0/1.

<Sysname> display qos wred interface gigabitethernet 1/0/1

Interface: GigabitEthernet1/0/1

 Current WRED configuration:

 Applied WRED table name: test

Table 1-1 display qos wred interface command output description

Field

Description

Interface

Interface type and interface number

Applied WRED table name

Name of the WRED table applied

 

display qos wred table

Syntax

display qos wred table [ table-name ]

View

Any view

Default Level

1: Monitor level

Parameters

table-name: Name of the WRED table to be displayed.

Description

Use the display qos wred table command to display the WRED table configuration information.

If no WRED table name is specified, the configuration of all WRED tables is displayed.

Examples

# Display the configuration of WRED table 1.

<Sysname> display qos wred table 1

Table Name: 1

Table Type: Queue based WRED

QID:  gmin  gmax  gprob  ymin  ymax  yprob  rmin  rmax  rprob

-----------------------------------------------------------------------

 0   100   1000    10   100   1000    10   100   1000    10

 1   100   1000    10   100   1000    10   100   1000    10

 2   100   1000    10   100   1000    10   100   1000    10

 3   100   1000    10   100   1000    10   100   1000    10

 4   100   1000    10   100   1000    10   100   1000    10

 5   100   1000    10   100   1000    10   100   1000    10

 6   100   1000    10   100   1000    10   100   1000    10

 7   100   1000    10   100   1000    10   100   1000    10

Table 1-2 display qos wred table command output description

Field

Description

Table name

Name of a WRED table

Table type

Type of a WRED table

QID

ID of the queue

gmin

Lower threshold configured for green packets, with a drop precedence value of 0

gmax

Upper threshold configured for green packets, with a drop precedence value of 0

gprob

Drop probability configured for green packets, with a drop precedence value of 0

ymin

Lower threshold configured for yellow packets, with a drop precedence value of 1

ymax

Upper threshold configured for yellow packets, with a drop precedence value of 1

yprob

Drop probability configured for yellow packets, with a drop precedence value of 1

rmin

Lower threshold configured for red packets, with a drop precedence value of 2

rmax

Upper threshold configured for red packets, with a drop precedence value of 2

rprob

Drop probability configured for red packets, with a drop precedence value of 2

 

qos wred table

Syntax

qos wred queue table table-name

undo qos wred table table-name

View

System view

Default Level

2: System level

Parameters

queue: Creates a queue-based table. Packets are dropped based on the queue when congestion occurs.

table table-name: Specifies a name for the table.

Description

Use the qos wred table command to create a WRED table and enter WRED table view.

Use the undo qos wred table command to remove a WRED table.

By default, no global WRED table is created.

A WRED table in use cannot be removed.

Related commands: qos wfq, qos wred enable, display qos wred interface.

Examples

# Create a queue-based WRED table named table1.

<Sysname> system-view

[Sysname] qos wred queue table table1

[Sysname-wred-table-table1]

queue

Syntax

queue queue-value [ drop-level drop-level ] low-limit low-limit high-limit high-limit [ discard-probability discard-prob ]

undo queue { queue-value | all }

View

WRED table view

Default Level

2: System level

Parameters

queue-value: Queue number, in the range of 0 to 7.

drop-level drop-level: Drop level, in the range of 0 to 2. If this argument is not specified, the subsequent configuration takes effect on the packets in the queue regardless of the drop level.

low-limit low-limit: Lower limit, which is 100 by default. The range for the low-limit argument is from 0 to 8000.

high-limit high-limit: Upper limit, which is 1000 by default. The range for the high-limit argument is from 0 to 8000.

discard-probability discard-prob: Specifies the drop probability in percentage, in the range of 0 to 100. When the queue length is within the lower limit and upper limit, the switch drops packets based on the drop probability.

Description

Use the queue command to configure the drop-related parameters for a specified queue in the queue-based WRED table.

Use the undo queue command to restore the default.

By default, the global queue-based WRED table uses the following parameters: lower limit 100, upper limit 1000, and drop probability 10.

Related commands: qos wred table.

Examples

# Modify the drop-related parameters for packets with drop level 1 in queue 1 in WRED table queue-table1 as follows: lower limit 120, upper limit 300, and drop probability 20.

<Sysname> system-view

[Sysname] qos wred queue table queue-table1

[Sysname-wred-table-queue-table1]

[Sysname-wred-table-queue-table1] queue 1 drop-level 1 low-limit 120 high-limit 300 discard-probability 20

qos wred apply

Syntax

qos wred apply table-name

undo qos wred apply

View

Interface view, port group view

Default Level

2: System level

Parameters

table-name: Name of a global WRED table.

Description

Use the qos wred apply command to apply a global WRED table on a port/port group.

Use the undo qos wred apply command to restore the default.

By default, the tail drop mode is used on a port.

In interface view, the setting is effective on the current port only. In port group view, the setting is effective on all the ports in the port group.

Related commands: display qos wred interface, display qos wred table, qos wred table.

Examples

# Apply the queue-based WRED table queue-table1 to the interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet1/0/1

[Sysname-GigabitEthernet1/0/1] qos wred apply queue-table1

 

H3C reserves the right to modify its collaterals without any prior notice. For the latest information of the collaterals, please consult H3C sales or call 400 hotline.