Part 7 - ACL - QoS

05-Congestion Management Configuration Commands

Chapters Download  (58.89 KB)

05-Congestion Management Configuration Commands


Congestion Management Configuration Commands

SP Queuing Configuration Commands

display qos sp

Syntax

display qos sp 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 sp interface command to view the strict priority (SP) queuing configuration of an interface.

If no interface is specified, the SP queuing configuration of all the interfaces is displayed.

Related commands: qos sp.

Examples

# Display the SP queuing configuration of interface GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

Output queue:   Strict-priority queue

Table 1-1 display qos sp interface command output description

Field

Description

Interface

Interface type and interface number

Output queue

Pattern of the current output queue

Strict-priority queue

SP queuing is used for queue scheduling

 

qos sp

Syntax

qos sp

undo qos sp

View

Interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the qos sp command to configure SP queuing on an interface.

Use the undo qos sp command to restore the default.

The default queuing algorithm on an interface is WRR queuing.

Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.

Related commands: display qos sp interface.

Examples

# Enable SP queuing on interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos sp

WRR Queuing Configuration Commands

display qos wrr interface

Syntax

display qos wrr 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 wrr interface command to display the weighted round robin (WRR) queuing configuration on an interface.

If no interface is specified, the WRR queuing configuration of all the interfaces is displayed.

Related commands: qos wrr.

Examples

# Display the WRR queuing configuration of interface GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Output queue: Weighted round robin queue

Queue ID    Group    Byte-count

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

   0         1        1

   1         1        2

   2         1        3

   3         1        4

   4         1        5

   5         1        9

   6         1        13

   7         sp       N/A 

Table 1-2 display qos wrr interface command output description

Field

Description

Interface

Interface type and interface number

Output queue

Pattern of the current output queue

Queue ID

ID of a queue

Group

Number of the group to which a queue is assigned. By default, all queues belong to group 1.

Weight

Queue weight based on which queues are scheduled. N/A indicates that the queue uses the SP queuing.

 

qos wrr

Syntax

qos wrr

undo qos wrr

View

Interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the qos wrr command to enable WRR queuing on the interface.

Use the undo qos wrr command to disable WRR queuing on the interface.

The default queuing algorithm on an interface is WRR queuing.

Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.

Before performing WRR configuration, you must enable WRR queuing on an interface by using the qos wrr command.

Examples

# Enable WRR queuing on interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos wrr

qos wrr byte-count

Syntax

qos wrr queue-id group 1 byte-count schedule-value

undo qos wrr queue-id group 1 byte-count

View

Interface view, port group view

Default Level

2: System level

Parameters

queue-id: Queue ID, in the range of 0 to 7.

1: Assigns the queue to group 1.

byte-count schedule-value: Specifies the number of bytes to be sent from the queue during a cycle. The schedule-value argument ranges from 1 to 15.

Description

Use the qos wrr byte-count command to configure or modify the WRR queuing parameters for a queue on the interface.

Use the undo qos wrr byte-count command to restore the default WRR queuing parameters for a queue on the interface.

For queues configured as WRR queues on an interface, the interface uses WRR scheduling. Other queues on the interface use the default WRR scheduling weight and belong to the default WRR priority group.

Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.

Related commands: display qos wrr interface.

Examples

# Enable WRR queuing on interface GigabitEthernet 1/0/1, configure the scheduling weight as 10 for queue 0, and assign queue 0 to group 1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos wrr

[Sysname-GigabitEthernet1/0/1] qos wrr 0 group 1 byte-count 10

qos wrr group sp

Syntax

qos wrr queue-id group sp

undo qos wrr queue-id group sp

View

Interface view, port group view

Default Level

2: System level

Parameters

queue-id: Queue ID, in the range of 0 to 7.

sp: Strict priority (SP) queuing algorithm.

Description

Use the qos wrr group sp command to configure SP+WRR queuing on the interface and assign a queue to the SP group.

Use the undo qos wrr group sp command to remove a queue on the interface from the SP group.

Before configuring this command on an interface, make sure that WRR queuing is enabled on the interface. An SP group differs from a common WRR priority group. Queues in an SP group are scheduled by using the SP queuing algorithm, and not the WRR queuing algorithm.

Settings in interface view are effective on the current interface only. Settings in port group view are effective on all the ports in the port group.

Related commands: display qos wrr interface.

Examples

# Enable WRR queuing on GigabitEthernet 1/0/1, and assign queue 0 to the SP group.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos wrr

[Sysname-GigabitEthernet1/0/1] qos wrr 0 group sp

WFQ Configuration Commands

display qos wfq interface

Syntax

display qos wfq 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 wfq interface command to display the weighted fair queuing (WFQ) configuration on an interface.

If no interface is specified, the WFQ configuration of all the interfaces is displayed.

Related commands: qos wfq.

Examples

# Display the WFQ configuration of interface GigabitEthernet 1/0/1.

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

Interface: GigabitEthernet1/0/1

 Output queue: Hardware weighted fair queue

Queue ID         Weight          Min-Bandwidth

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

0                1               64

1                1               64

2                1               64

3                1               64

4                1               64

5                1               64

6                1               64

7                1               64 

Table 1-3 display qos wfq interface command output description

Field

Description

Interface

Interface type and interface number

Output queue

Pattern of the current output queue

Queue ID

ID of a queue

Weight

Queue scheduling weight

Min-Bandwidth

Minimum guaranteed bandwidth

 

qos bandwidth queue

Syntax

qos bandwidth queue queue-id min bandwidth-value

undo qos bandwidth queue queue-id [ min bandwidth-value ]

View

Interface view, port group view

Default Level

2: System level

Parameters

queue-id: Queue ID, in the range of 0 to 7.

bandwidth-value: Minimum guaranteed bandwidth (in kbps), which is the minimum bandwidth guaranteed for a queue when the port is congested. The range for the bandwidth-value argument is from 64 to 1048576.

Description

Use the qos bandwidth queue command to set the minimum guaranteed bandwidth for a specified queue on the port/port group.

Use the undo qos bandwidth queue command to cancel the configuration.

Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.

Examples

# Set the minimum guaranteed bandwidth to 100 kbps for queue 0 on interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos wfq

[Sysname-GigabitEthernet1/0/1] qos bandwidth queue 0 min 100

qos wfq

Syntax

qos wfq

undo qos wfq

View

Interface view, port group view

Default Level

2: System level

Parameters

None

Description

Use the qos wfq command to enable WFQ on an interface.

Use the undo qos wfq command to restore the default queuing algorithm on an interface.

The default queuing algorithm on an interface is WRR queuing.

Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.

Examples

# Enable WFQ on interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos wfq

qos wfq weight

Syntax

qos wfq queue-id weight schedule-value

undo qos wfq queue-id weight

View

Interface view, port group view

Default Level

2: System level

Parameters

queue-id: Queue ID, in the range of 0 to 7.

schedule-value: Scheduling weight of the queue. The value range for the schedule-value argument is from 1 to 15.

Description

Use the qos wfq weight command to configure a scheduling weight for an WFQ queue on the interface.

Use the undo qos wfq weight command to restore the default scheduling weight for an WFQ queue on the interface.

By default, the scheduling weight of each queue is 1.

Settings in interface view are effective on the current interface. Settings in port group view are effective on all ports in the port group.

Related commands: display qos wfq interface, qos bandwidth queue.

Examples

# Configure the scheduling weight as 10 for WFQ queue 0 on interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] qos wfq

[Sysname-GigabitEthernet1/0/1] qos wfq 0 weight 10

 

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.