No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S7700 and S9700 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Congestion Avoidance and Congestion Management Commands

Congestion Avoidance and Congestion Management Commands

Command Support

The XGE interface connected to the ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, ET1D2FW00S02, or ACU2 card does not support the configuration of the interface queue length.

color

Function

The color command sets parameters of a WRED drop file, including the upper drop threshold, lower drop threshold, and maximum drop probability.

The undo color command restores the default settings of a WRED drop profile.

By default, the upper drop threshold, lower drop threshold, and maximum drop probability of a WRED drop profile are all 100.

Format

color { green | non-tcp | red | yellow } low-limit low-limit-percentage high-limit high-limit-percentage discard-percentage discard-percentage

undo color { green | non-tcp | red | yellow }

NOTE:

The WRED algorithm for non-TCP packets cannot be used on EH1D2X48SEC0, ET1D2X48SEC0, FC series, BC series, SC series, SA series, X series, and EE series cards.

On SA series cards, the WRED algorithm can be used only for green or red packets.

Parameters

Parameter

Description

Value

green

Sets WRED parameters for green packets.

-

non-tcp

Sets WRED parameters for non-TCP packets.

-

red

Sets WRED parameters for red packets.

-

yellow

Sets WRED parameters for yellow packets.

-

low-limit low-limit-percentage

Specifies the lower drop threshold. When the percentage of the packet count in a queue to the queue length reaches this value, the switch starts to discard packets.

The value is an integer that ranges from 0 to 100, in percentage. The default value is 100.

high-limit high-limit-percentage

Specifies the upper drop threshold. When the percentage of the packet count in a queue to the queue length reaches this value, the switch discards all subsequent packets.

The value is an integer that ranges from low-limit-percentage to 100, in percentage. The default value is 100.

discard-percentage discard-percentage

Specifies the maximum drop probability.

The value is an integer that ranges from 1 to 100, in percentage. The default value is 100.

Views

Drop profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When packets enter a switch, the switch colors packets based on the mappings defined in a DiffServ domain. The system processes the packets of different colors based on the WRED configuration:
  • When the queue length reaches the lower drop threshold, the switch discards some packets.
  • When the queue length reaches the upper drop threshold, the switch discards all subsequent packets in the queue.

When congestion occurs, the switch first discards packets with the highest drop probability.

Precautions

If you run the color command multiple times in the same drop profile view, only the latest configuration takes effect.

Example

# Configure WRED drop profile wred1 in which the lower drop threshold, upper drop threshold, and maximum drop probability of green packets are set to 80, 100, and 10 for green packets, to 60, 80, and 20 for yellow packets, and to 40, 60, and 40 for red packets.

<HUAWEI> system-view
[HUAWEI] drop-profile wred1
[HUAWEI-drop-wred1] color green low-limit 80 high-limit 100 discard-percentage 10
[HUAWEI-drop-wred1] color yellow low-limit 60 high-limit 80 discard-percentage 20
[HUAWEI-drop-wred1] color red low-limit 40 high-limit 60 discard-percentage 40
Related Topics

display drop-profile

Function

The display drop-profile command displays the WRED drop profile configuration.

Format

display drop-profile [ all | name drop-profile-name ]

Parameters

Parameter

Description

Value

all

Displays detailed information about all WRED drop profiles.

-

name drop-profile-name

Displays detailed information about a WRED drop profile with the specified name.

The value must be the name of an existing WRED drop profile.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display drop-profile command to view the number of configured WRED drop profiles and all configuration of a specified WRED drop profile.

Precautions

If the all and name drop-profile-name parameters are not specified, brief information about all WRED drop profiles is displayed.

Example

# Display brief information about all WRED drop profiles on the switch.

<HUAWEI> display drop-profile
         index                   drop-profile name
-----------------------------------------------------------------
         0                       default
         1                       dp1
-----------------------------------------------------------------
 Total   64     Used   2

# Display detailed information about the WRED drop profile named dp1.

<HUAWEI> display drop-profile name dp1
Drop-profile[1]: dp1
Queue depth    : default 
Color     Low-limit   High-limit  Discard-percentage
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Green     60          90          20
Yellow    100         100         100
Red       100         100         100
Non-tcp   100         100         100
-----------------------------------------------------------------

# Display detailed information about all WRED drop profiles on the switch.

<HUAWEI> display drop-profile all
Drop-profile[0]: default
Queue depth    : default 
Color     Low-limit   High-limit  Discard-percentage
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Green     100         100         100
Yellow    100         100         100
Red       100         100         100
Non-tcp   100         100         100
-----------------------------------------------------------------
Drop-profile[1]: dp1
Queue depth    : default 
Color     Low-limit   High-limit  Discard-percentage
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Green     60          90          20
Yellow    100         100         100
Red       100         100         100
Non-tcp   100         100         100
-----------------------------------------------------------------
Table 15-25  Description of the display drop-profile command output

Item

Description

index

WRED drop profile index.

drop-profile name

WRED drop profile name. To configure a WRED drop profile, run the drop-profile command.

Queue depth

Length of a queue. To configure the length of a queue, run the queue-depth (WRED drop profile view) command.

Total

Total number of WRED drop profiles that can be configured on the switch.

Used

Number of configured WRED drop profiles.

Drop-profile[1]

WRED drop profile name in which 1 indicates the drop profile index.

Color

Color of packets:
  • Green

  • Yellow

  • Red

  • Non-tcp

To set the color of packets, run the color command.

Low-limit

Lower drop threshold, in percentage. To set the lower drop threshold, run the run the color command.

High-limit

Upper drop threshold, in percentage. To set the upper drop threshold, run the run the color command.

Discard-percentage

Maximum drop probability, in percentage. To set the maximum drop probability, run the color command.

Related Topics

display qos queue length

Function

The display qos queue length command displays the usage of a priority queue on an interface.

NOTE:

The ES1D2L02QFC0, ES1D2C02FEE0, EH1D2L02QFC0, ET1D2L02QSC0, EH1D2L08QFC0, ET1D2L08QSC0, EH1D2X48SEC0, ET1D2X48SEC0, EH1D2C02FEE0, ET1D2C02FEE0, BC series, SC series, and X series cards do not support this command.

Format

display qos queue length interface interface-type interface-number

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the interface on which the usage of a priority queue needs to be viewed.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To learn the usage of queues, you can run the display qos queue length command.

The command displayed on different types of cards is different:
  • SA cards of the S series

    The eight queues on an interface has the minimum buffer length, which is allocated by the system. When a queue uses the buffer, it obtains the buffer from the shared buffer on the interface. By default, the used length of a queue is the sum of the buffer length of the queue (N) and the shared buffer length of the interface (M).

    After the queue length is set:

    • If the queue length is smaller than M, the used queue length is M.
    • If the queue length is greater than M, the used queue length is the configured value. The value, however, is converted by the system. For example, when the queue length is set to 61442, the displayed value is 61568.
  • E series cards and F series cards

    By default, the used queue length is the number of bytes of packets buffered in the queue.

    After the queue length is set, the used queue length is the configured value. Similarly, the value is converted by the system. For example, when the queue length is set to 61442, the displayed value is 61568.

Example

# Display the queue usage on GE1/0/0 of the S7700 ES0D0G24SA00 card or S9700 EH1D2G24SSA0 card.
<HUAWEI> display qos queue length interface gigabitethernet 1/0/0
 Queue   Length(Byte)  Used length(Byte)
   ---------------------------------------------------------------------------
     0          61440          26240
   ---------------------------------------------------------------------------
     1          59904              0
   ---------------------------------------------------------------------------
     2          61440              0
   ---------------------------------------------------------------------------
     3          61440              0
   ---------------------------------------------------------------------------
     4          61440              0
   ---------------------------------------------------------------------------
     5          61440              0
   ---------------------------------------------------------------------------
     6          61440              0
   ---------------------------------------------------------------------------
     7          61440              0
   ---------------------------------------------------------------------------
# Display the queue usage on GE2/0/0 of the S7700 ES0D0G48SA00 card or S9700 EH1D2G48SEA0 card.
<HUAWEI> display qos queue length interface gigabitethernet 2/0/0
 Queue    Length(Byte)  Used length(Byte)                                                                                           
   ---------------------------------------------------------------------------                                                      
     0             --              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     1             --              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     2        1000064              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     3             --              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     4             --              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     5             --              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     6             --              0                                                                                                
   ---------------------------------------------------------------------------                                                      
     7             --              0                                                                                                
   --------------------------------------------------------------------------- 
Table 15-26  Description of the display qos queue length command output

Item

Description

Queue

Priority queue index.

Length(Byte)

Number of bytes that can be used by the queue.

Used length(Byte)

Number of bytes that have been used by the queue.

Related Topics

display qos queue statistics

Function

The display qos queue statistics command displays queue-based traffic statistics on an interface.

Format

display qos queue statistics interface interface-type interface-number [ queue queue-index ]

display qos queue statistics all

NOTE:

SA cards of the S series do not support this command.

Parameters

Parameter

Description

Value

queue queue-index

Specifies the index of a queue.

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

interface interface-type interface-number

Displays queue-based traffic statistics on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

all

Displays queue-based traffic statistics on all interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check whether packets in each queue on an interface are forwarded or discarded due to congestion, run this command to check statistics on each queue on the interface.

Precautions

The ES0D0G24SA00 and ES0D0G24CA00 cards of the S7700 do not support the display qos queue statistics command.

Example

# Display queue-based traffic statistics on the GE1/0/1.
<HUAWEI> display qos queue statistics interface gigabitethernet 1/0/1
---------------------------------------------------------               
  Queue ID          : 0 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
---------------------------------------------------------
  Queue ID          : 1 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
---------------------------------------------------------
  Queue ID          : 2 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
--------------------------------------------------------- 
  Queue ID          : 3 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
--------------------------------------------------------- 
  Queue ID          : 4
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
--------------------------------------------------------- 
  Queue ID          : 5 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
---------------------------------------------------------
  Queue ID          : 6 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
---------------------------------------------------------
  Queue ID          : 7 
  CIR(kbps)         : 0 
  PIR(kbps)         : 1,000,000  
  Used Length(byte) : 239,104 
  Passed Packets    : 47,655,381
  Passed Rate(pps)  : 128
  Passed Bytes      : 4,956,144,598
  Passed Rate(bps)  : 106,976
  Dropped Packets   : 47,655,381
  Dropped Rate(pps) : 128
  Dropped Bytes     : 4,956,144,598
  Dropped Rate(bps) : 106,976
---------------------------------------------------------
Table 15-27  Description of the display qos queue statistics command output

Item

Description

Queue ID

Queue index.

CIR(kbps)

Committed information rate (CIR). By default, the CIR that is displayed as 0. If the CIR is configured for queue shaping, the configured CIR is displayed.

To set the CIR, run the qos queue shaping command.

PIR(kbps)

Peak information rate (PIR). By default, the PIR that is displayed as 1000000. If the PIR is configured for queue shaping, the configured PIR is displayed.

To set the PIR, run the qos queue shaping command.

Used Length(byte)

Maximum number of bytes to be cached in a queue on an interface.

To set the maximum number of bytes to be cached in a queue on an interface, run the qos queue length command.

Passed Packets

Number of forwarded packets.

Passed Rate(pps)

Rate of forwarded packets, in pps.

Passed Bytes

Number of forwarded bytes.

Passed Rate(bps)

Rate of forwarded bytes, in bit/s.

Dropped Packets

Number of discarded packets.

Dropped Rate(pps)

Rate of discarded packets, in pps.

Dropped Bytes

Number of discarded bytes.

Dropped Rate(bps)

Rate of discarded bytes, in bit/s.

drop-profile

Function

The drop-profile command creates a WRED drop profile and displays the WRED drop profile view, or displays the existing WRED drop profile view.

The undo drop-profile command deletes a WRED drop profile.

By default, the system provides a WRED drop profile named default.

Format

drop-profile drop-profile-name

undo drop-profile drop-profile-name

Parameters

Parameter

Description

Value

drop-profile-name

Specifies the name of a WRED drop profile.

The value is a string of 1 to 31 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A WRED drop profile defines WRED parameters for packets of different priorities. After the WRED drop profile is applied to an interface or queues on an interface, congestion avoidance is implemented. The drop-profile command creates a WRED drop profile or displays the WRED drop profile view.

Precautions

The switch supports a maximum of 64 WRED drop profiles, including the default drop profile. The default drop profile can be modified but cannot be deleted.

Follow-up Procedure

  1. Set parameters for the WRED drop profile.

    Run the color command in the WRED drop profile view to set WRED parameters for packets of different priorities.

  2. Apply the WRED drop profile to an interface or queues on an interface.

    NOTE:

    A maximum of 16 WRED drop profiles that were configured first can be applied on the X series cards. A maximum of 64 WRED drop profiles can be applied on other cards.

Example

# Create a WRED drop profile named drop1 and enter the WRED drop profile view.

<HUAWEI> system-view
[HUAWEI] drop-profile drop1
[HUAWEI-drop-drop1]
Related Topics

qos burst-mode (interface view)

Function

The qos burst-mode command configures a burst traffic buffering mode on an interface.

The undo qos burst-mode command restores the default burst traffic buffering mode on an interface.

By default, an interface uses the standard mode.

NOTE:

BC, SA, and X1E series cards do not support this command.

Format

qos burst-mode { enhanced | extreme }

undo qos burst-mode { enhanced | extreme }

Parameters

Parameter

Description

Value

enhanced

Indicates the enhanced burst traffic buffering mode.

-

extreme

Indicates the extreme burst traffic buffering mode.

-

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Scenario

By default, the buffer size on an interface is small. When the traffic rate on an interface reaches 50% to 60% of the interface bandwidth, packets are lost on the interface. The burst traffic buffering mode enables an interface to occupy more available buffer space in the system to process burst traffic, improving a switch's packet processing performance.

The device buffer is allocated in static and dynamic modes. By default, each interface is allocated some static buffer space for the basic buffer requirement. The remaining buffer space is used as the dynamic buffer for a card.

In standard mode, an interface can occupy only some dynamic buffer space on the card.

In enhanced mode, an interface can occupy only some dynamic buffer space on the card, and more dynamic buffer space than that in standard mode.

In extreme mode, an interface occupies the dynamic buffer space as well as static buffer space on interfaces in non-extreme mode.

Precautions

The qos burst-mode (interface view) or qos burst-mode (system view) command cannot be used with the qos queue length command.

When the enhanced mode is used, the qos burst-mode (interface view) and qos burst-mode (system view) commands cannot be used together.

The extreme mode is not recommended because forwarding of other interfaces may be affected and QoS results such as scheduling and shaping results may be incorrect.

The extreme mode is used only when the switch uses one or two interfaces. This mode takes effect only when it is configured globally and on an interface. If the extreme mode is configured globally but is not configured on an interface, traffic forwarding may be abnormal and multicast packets may fail to be obtained. If the extreme mode is configured on an interface but is not configured globally, the extreme mode does not take effect.

When the extreme mode is configured globally, the interface where the extreme mode is not configured cannot be used as a service interface.

The ETH management interface does not support this command.

Example

# Configure the enhanced burst traffic buffering mode on the GE1/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1 
[HUAWEI-GigabitEthernet1/0/1] qos burst-mode enhanced

qos burst-mode (system view)

Function

The qos burst-mode command configures a burst traffic buffer mode on a card.

The undo qos burst-mode command restores the default burst traffic buffer mode on a card.

By default, the card uses the standard mode.

NOTE:

BC, SA, and X1E series cards do not support this command.

Format

qos burst-mode { enhanced | extreme } slot slot-id

undo qos burst-mode { enhanced | extreme } slot slot-id

Parameters

Parameter

Description

Value

enhanced

Indicates the enhanced burst traffic buffer mode.

-

extreme

Indicates the extreme burst traffic buffer mode.

-

slot slot-id

Specifies the slot ID of a card.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Scenario

By default, the buffer size on an interface is small. When the traffic rate on an interface reaches 50% to 60% of the interface bandwidth, packets are lost on the interface. After the burst traffic buffer mode is configured on a card, all interfaces on the card can occupy more buffer space in the system to process burst traffic, improving a switch's packet processing performance.

The device buffer is allocated in static and dynamic modes. By default, each interface is allocated some static buffer space for the basic buffer requirement. The remaining buffer space is used as the dynamic buffer for a card.

In standard mode, an interface can occupy only some dynamic buffer space on the card.

In enhanced mode, an interface can occupy only some dynamic buffer space on the card, and more dynamic buffer space than that in standard mode.

In extreme mode, an interface occupies the dynamic buffer space as well as static buffer space on interfaces in non-extreme mode.

Precautions

The qos burst-mode (system view) command cannot be used with the qos burst-mode (interface view) or qos queue length command.

The extreme mode is not recommended because forwarding of other interfaces may be affected and QoS results such as scheduling and shaping results may be incorrect.

The extreme mode is used only when the switch uses one or two interfaces. This mode takes effect only when it is configured globally and on an interface. If the extreme mode is configured globally but is not configured on an interface, traffic forwarding may be abnormal and multicast packets may fail to be obtained. If the extreme mode is configured on an interface but is not configured globally, the extreme mode does not take effect.

When the extreme mode is configured globally, the interface where the extreme mode is not configured cannot be used as a service interface.

Example

# Configure the enhanced burst traffic buffer mode in slot 1.

<HUAWEI> system-view
[HUAWEI] qos burst-mode enhanced slot 1

qos { pq | wrr | drr }

Function

The qos { pq | wrr | drr } command configures a scheduling mode for queues on an interface.

The undo qos { pq | wrr | drr } command restores the default scheduling mode of queues on an interface.

By default, the scheduling mode of queues on an interface is PQ.

Format

qos { pq | wrr | drr }

undo qos { pq | wrr | drr }

qos { pq { start-queue-index [ to end-queue-index ] } &<1-8> | { wrr | drr } { start-queue-index [ to end-queue-index ] } &<1-8> } *

undo qos { pq { start-queue-index [ to end-queue-index ] } &<1-8> | { wrr | drr } { start-queue-index [ to end-queue-index ] } &<1-8> } *

NOTE:

The EH1D2G48TBC0 card, EH1D2G48SBC0 card, and X series cards do not support WRR or PQ+WRR.

Parameters

Parameter

Description

Value

pq

Indicates the PQ scheduling mode.

-

wrr

Indicates the WRR scheduling mode.

-

drr

Indicates the WDRR scheduling mode.

-

start-queue-index [ to end-queue-index ]

Specifies the index of a queue.
  • start-queue-index specifies the index of the first queue.

  • end-queue-index specifies the index of the last queue.

The value of end-queue-index must be greater than or equal to that of start-queue-index. If to end-queue-index is not specified, this command configures a scheduling mode for the queue specified by start-queue-index.

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

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When congestion occurs on a network, configure a combination of queue scheduling modes to adjust the delay and jitter of various service packets as follows:
  • Packets of delay-sensitive services, such as the voice and video services, are processed preferentially.
  • Among the delay-insensitive services, such as the email service, the packets with the same priority are processed equally and the packets with different priorities are processed based on their weights.

The switch supports PQ+WRR and PQ+WDRR. When a combination of queue scheduling modes is used, the switch first schedules the packets in queues using PQ scheduling. When all packets in the queues using PQ scheduling are sent out, the switch schedules the packets in queues using WRR or WDRR scheduling. Packets from the queues using PQ scheduling are scheduled based on packet priorities.

Precautions

  • Before configuring a queue scheduling mode, map packet priorities to PHBs and colors or re-mark local priorities of packets. The packets of different priorities enter different queues.

  • To set the same queue scheduling mode on multiple interfaces, perform the configuration on a port group to reduce the workload.

  • When the scheduling mode of queues on an interface is set to PQ+WRR or PQ+WDRR, a queue can use only one scheduling mode. If you set multiple scheduling modes for a queue, only the latest configuration takes effect.

Example

# Set the scheduling mode of queues on GE1/0/1 to WRR.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] qos wrr

qos queue drr

Function

The qos queue drr command sets the WDRR weight of queues that participate in WDRR scheduling.

The undo qos queue drr command restores the default WDRR weight of queues that participate in WDRR scheduling.

By default, the WDRR weight of queues that participate in WDRR scheduling is 1.

Format

qos queue queue-index drr weight weight

undo qos queue queue-index drr

Parameters

Parameter

Description

Value

queue-index

Specifies the index of a queue.

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

weight weight

Specifies a WDRR weight.

The value is an integer. The value range is as follows:
  • EE cards of the E series: 1 to 63
  • Other cards of the E series: 1 to 100
  • Cards of other series: 1 to 100

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

WDRR schedules packets based on the packet length used as the weight. If the packet length is too long, WDRR allows the negative weight value so that long packets can be scheduled. In the next round, the queue with the negative weight value is not scheduled until its weight value becomes positive.

WDRR offsets the disadvantages of PQ scheduling and WRR scheduling. In PQ scheduling, packets in queues with lower priorities cannot be scheduled for a long time if congestion occurs. In WRR scheduling, bandwidth is allocated improperly when the packet length of each queue is different or variable.

When WDRR scheduling is used, set the weight for each queue. The switch schedules queues in turn according to the weights.

Precautions

When configuring the PQ+WDRR scheduling mode on the EH1D2X48SEC0 card of the S9700, ensure that queues with weight 0 (queues using PQ scheduling) are consecutively configured, without being interrupted by the configuration of the queues using WDRR scheduling. For example, you can configure queues 0 and 1 to use PQ scheduling, and then configure queues 2 to 5 to use WDRR scheduling. However, you cannot configure queue 0 to use PQ scheduling, queue 1 to use WDRR scheduling, and queue 2 to use PQ scheduling.

To set the same WDRR weight on multiple interfaces, perform the configuration on a port group to reduce the workload.

Example

# Set the WDRR weight of queue 4 on the GE1/0/1 to 9.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] qos drr
[HUAWEI-GigabitEthernet1/0/1] qos queue 4 drr weight 9

qos queue length

Function

The qos queue length command sets the priority queue length on an interface.

The undo qos queue length command cancels the configuration.

By default, the system manages the priority queue length of each interface.

Format

qos queue queue-index length length-value

undo qos queue queue-index length

NOTE:

The ES1D2L02QFC0, ES1D2C02FEE0, EH1D2L02QFC0, ET1D2L02QSC0, EH1D2L08QFC0, ET1D2L08QSC0, EH1D2X48SEC0, ET1D2X48SEC0, EH1D2C02FEE0, ET1D2C02FEE0, BC series, SC series, and X series cards do not support this command.

Parameters

Parameter

Description

Value

queue-index

Specifies the index of a queue.

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

length length-value

Specifies the length of a queue.

The value ranges from 0 to 1000000000, in bytes.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The queue length affects the functions of queue shaping, congestion management, and congestion avoidance.

By default, the length of an interface priority queue is managed by the system. You can set the length of the interface priority queue using the qos queue length command.

Example

# Set the length of priority queue 1 to 20000 bytes on the GE 1/0/1.

<HUAWEI> system view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] qos queue 1 length 20000

qos queue statistics interval

Function

The qos queue statistics interval command sets the interval for checking the rate of discarded packets in a queue.

The undo qos queue statistics interval command restores the default interval.

By default, the rate of discarded packets in a queue is checked every 300 seconds.

Format

qos queue statistics interval interval-value

undo qos queue statistics interval

Parameters

Parameter

Description

Value

interval-value

Specifies the interval for checking the rate of discarded packets in a queue.

The value is an integer that ranges from 60 to 600, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the switch is managed by a network management system (NMS), the MIB module checks the rate of discarded packets in each queue at intervals and sends the rate to the NMS. You can view the rate of discarded packets in each queue to analyze network performance or locate faults. The qos queue statistics interval command sets the interval. The MIB module calculates the average rate at which packets in a queue is discarded at an interval.

Example

# Set the interval for checking the rate of discarded packets in a queue to 100 seconds.

<HUAWEI> system-view
[HUAWEI] qos queue statistics interval 100

qos queue wred

Function

The qos queue wred command applies a Weighted Random Early Detection (WRED) drop profile to an interface queue.

The undo qos queue wred command deletes a WRED drop profile from an interface queue.

By default, no WRED drop profile is applied to an interface queue.

NOTE:

Interfaces 36 to 47 on the ES1D2X48SX2S card of the S7700 and ET1D2X48SX2S card on the S9700 do not support this command.

Format

qos queue queue-index wred drop-profile-name

undo qos queue queue-index wred

Parameters

Parameter

Description

Value

queue queue-index

Specifies the index of a queue.

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

drop-profile-name

Specifies the name of a WRED drop profile.

The value must be the name of an existing WRED drop profile.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Tail drop technology processes all packets in the same manner without classifying the packets. When the queue length reaches its maximum value, the packets that were added last (at the tail of the queue) are discarded. This packet drop policy may cause global TCP synchronization. As a result, TCP connections cannot be set up.

Random Early Detection (RED) and WRED are used to avoid global TCP synchronization.

RED and WRED randomly discard packets to prevent global TCP synchronization. When packets of a TCP connection are discarded, packets of other TCP connections can still be sent at a high rate, ensuring bandwidth use efficiency.

Prerequisites

A WRED drop profile has been created using the drop-profile command.

Precautions

To apply the same WRED drop profile to queues with the same index on multiple interfaces, perform the configuration on a port group to reduce the workload.

Example

# Create a WRED drop profile named wred1 and apply it to queue 1 on the GE1/0/1.

<HUAWEI> system view
[HUAWEI] drop-profile wred1
[HUAWEI-drop-wred1] color green low-limit 80 high-limit 100 discard-percentage 10
[HUAWEI-drop-wred1] color yellow low-limit 60 high-limit 80 discard-percentage 20
[HUAWEI-drop-wred1] color red low-limit 40 high-limit 60 discard-percentage 40
[HUAWEI-drop-wred1] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] qos queue 1 wred wred1
Related Topics

qos queue wrr

Function

The qos queue wrr command sets the WRR weight of queues that participate in WRR scheduling.

The undo qos queue wrr command restores the default WRR weight of queues that participate in WRR scheduling.

By default, the WRR weight of queues that participate in WRR scheduling is 1.

Format

qos queue queue-index wrr weight weight

undo qos queue queue-index wrr

NOTE:

X series cards do not support this command.

Parameters

Parameter

Description

Value

queue-index

Specifies the index of a queue.

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

weight weight

Specifies a WRR weight.

The value is an integer. The value range is as follows:
  • EE cards of the E series: 1 to 63
  • Other cards of the E series: 1 to 100
  • Cards of other series: 1 to 100

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Weighted Round Robin (WRR) ensures that packets in all the queues are scheduled in turn.

When using WRR scheduling, set the weight for each queue. The switch schedules queues in turn according to the weights.

Precautions

When configuring the PQ+WRR scheduling mode on the EH1D2X48SEC0 card of the S9700, ensure that queues with weight 0 (queues using PQ scheduling) are consecutively configured, without being interrupted by the configuration of the queues using WRR scheduling. For example, you can configure queues 0 and 1 to use PQ scheduling, and then configure queues 2 to 5 to use WRR scheduling. However, you cannot configure queue 0 to use PQ scheduling, queue 1 to use WRR scheduling, and queue 2 to use PQ scheduling.

To set the same WRR weight on multiple interfaces, perform the configuration on a port group to reduce the workload.

Example

# Set the WRR weight of queue 4 on GE1/0/1 to 9.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] qos wrr
[HUAWEI-GigabitEthernet1/0/1] qos queue 4 wrr weight 9
[HUAWEI-GigabitEthernet1/0/1] quit

qos traffic-manage enable

Function

The qos traffic-manage enable command enables the traffic manager (TM) to buffer and schedule packets.

The undo qos traffic-manage enable command disables the TM from buffering and scheduling packets.

By default, the TM is enabled to buffer and schedule packets.

NOTE:

Only X1E series cards support this command.

Format

qos traffic-manage enable

undo qos traffic-manage enable

Parameters

None

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the TM is enabled to buffer and schedule packets. When heavy traffic needs to be forwarded on all interfaces, the device cannot ensure lossless forwarding. You can run the undo qos traffic-manage enable command to disable the TM from buffering and scheduling packets.

Configuration Note

After the undo qos traffic-manage enable command is executed, the ES1D2S04SX1E, EH1D2S04SX1E, ET1D2S04SX1E, EH1D2S08SX1E, ET1D2S08SX1E, and ES1D2S08SX1E do not support queue-based traffic shaping, WRED, queue statistics collection, and congestion management.

After the undo qos traffic-manage enable command is executed, the switch does not support HQoS.

After the undo qos traffic-manage enable command is executed, the buffer of the cards is greatly reduced.

Example

# Configure the TM not to buffer and schedule packets on the GE1/0/1.

<HUAWEI> system view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] undo qos traffic-manage enable

qos wred

Function

The qos wred command applies a WRED drop profile to an interface.

The undo qos wred command deletes a WRED drop profile from an interface.

By default, no WRED drop profile is applied to an interface.

Format

qos wred drop-profile-name

undo qos wred

NOTE:

X series cards do not support this command.

Parameters

Parameter

Description

Value

drop-profile-name

Specifies the name of a WRED drop profile.

The value must be the name of an existing WRED drop profile.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a WRED drop profile is applied to an interface, congestion avoidance is implemented on the interface.

Prerequisites

Before applying a WRED drop profile, run the drop-profile command to create a WRED drop profile.

Precautions

A WRED drop profile can be applied to an interface or a queue.

If you apply WRED drop profiles to an interface and to a queue on the interface, the system first matches the packets with the profiles applied to the queue and interface in sequence. The system performs congestion avoidance for the packets that match the WRED drop profiles.

To configure the same WRED drop profile on multiple interfaces, perform the configuration on a port group to reduce the workload.

Example

# Create a WRED drop profile named wred1 and apply it to the GE1/0/1.

<HUAWEI> system view
[HUAWEI] drop-profile wred1
[HUAWEI-drop-wred1] color green low-limit 80 high-limit 100 discard-percentage 10
[HUAWEI-drop-wred1] color yellow low-limit 60 high-limit 80 discard-percentage 20
[HUAWEI-drop-wred1] color red low-limit 40 high-limit 60 discard-percentage 40
[HUAWEI-drop-wred1] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] qos wred wred1
[HUAWEI-GigabitEthernet1/0/1] quit
Related Topics

queue-depth (WRED drop profile view)

Function

The queue-depth command sets the length of a queue.

The undo queue-depth command restores the default length of a queue.

By default, the system uniformly manages the lengths of queues.

Format

queue-depth queue-depth-value

undo queue-depth

NOTE:

Only X1E series cards support this command.

Parameters

Parameter

Description

Value

queue-depth-value

Specifies the queue length.

The value is an integer that ranges from 1024 to 805306368, in bytes.

Views

Drop profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When packets entering interface queues are processed based on parameters in a WRED drop profile, the percentage of the packet length to the queue length needs to be calculated. When the percentage reaches the lower drop threshold, the switch discards packets based on the drop probability. When the percentage reaches the upper drop threshold, the switch discards all subsequent packets. You can adjust the queue length to optimize the congestion avoidance effect.

Prerequisites

A WRED drop profile has been created and the WRED drop profile view has been displayed.

Precautions

When a small queue length is used, the delay of packets passing a queue is shortened but the queue buffer capability is lowered. When a large 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 queue, many buffer resources are occupied. In this case, packets in other queues may be discarded due to insufficient buffer resources.

Example

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

<HUAWEI> system-view
[HUAWEI] drop-profile wred1
[HUAWEI-drop-wred1] queue-depth 2000
Related Topics

reset qos queue statistics

Function

The reset qos queue statistics command clears queue-based traffic statistics on an interface.

Format

reset qos queue statistics interface interface-type interface-number

reset qos queue statistics all

NOTE:

The SA cards of the S series do not support this command.

Parameters

Parameter

Description

Value

interface interface-type interface-number

Clears queue-based traffic statistics on a specified interface.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

all

Clears queue-based traffic statistics on all interfaces.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To collect queue-based statistics within a certain period, first run the reset qos queue statistics command to clear the existing statistics.

Precautions

The cleared queue-based statistics cannot be restored. Therefore, exercise caution when you run the command.

Example

# Clear queue-based traffic statistics on the GE1/0/1.
<HUAWEI> reset qos queue statistics interface gigabitethernet 1/0/1

css-port qos { pq | wrr | drr }

Function

The css-port qos { pq | wrr | drr } command configures a scheduling mode of queues on an interface of the CSS.

The undo css-port qos { pq | wrr | drr } command restores the default scheduling mode of queues on an interface of the CSS.

By default, the queue scheduling mode of queues is priority queuing (PQ).

NOTE:

The S7703 and S9703 do not support this command.

Format

css-port qos { pq | wrr | drr }

undo css-port qos { pq | wrr | drr }

Parameters

Parameter

Description

Value

pq

Indicates the PQ scheduling mode.

-

wrr

Indicates the Weighted Round Robin (WRR) scheduling mode.

-

drr

Indicates the Weighted Deficit Round Robin (WDRR) scheduling mode.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the CSS is configured, CSS protocol packets and packets between chassis are exchanged on the CSS interface. If a large number of packets are exchanged, congestion may occur on the CSS interface. As a result, core services such as video and voice services cannot be processed in a timely manner. You can set the scheduling mode on the CSS interface so that services with the same priority are processed in the same manner and services with different priorities are processed based on weights.

Prerequisites

The css enable command has been executed to enable the CSS function.

Precautions

Before setting the scheduling mode of queues, configure priority mapping based on simple traffic classification to map packet priorities to per-hop behaviors (PHBs) and colors or configure internal priority re-marking based on complex traffic classification so that packets of different services enter different queues.

CSS interfaces on the following CSSs support WRR and WDRR scheduling:
  • CSSs established using service interface connections
  • CSSs established by CSS cards installed in the subcard slots of SRUA or SRUB

After a CSS established using service interface connections is switched to a CSS established by CSS cards, the CSS is restarted. If CSS interfaces of the new CSS do not support WRR or WDRR scheduling, WRR or WDRR scheduling configured on primary CSS interfaces cannot be restored.

Example

# Set the queue scheduling mode on the CSS interface to WRR.

<HUAWEI> system view
[HUAWEI] css-port qos wrr
Related Topics

css-port qos queue

Function

The css-port qos queue command configures the WRR or WDRR weight for queues on an interface of the CSS.

The undo css-port qos queue command restores the default WRR or WDRR weight for queues on a CSS interface.

By default, the WRR or WDRR weight for queues on an interface of the CSS is 1.

NOTE:

The S7703 and S9703 do not support this command.

Format

css-port qos queue queue-index { wrr | drr } weight weight

undo css-port qos queue queue-index { wrr | drr } [ weight weight ]

Parameters

Parameter

Description

Value

queue queue-index

Specifies the index of a queue.

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

wrr

Indicates the WRR weight.

-

drr

Indicates the WDRR weight.

-

weight weight

Specifies the WRR or WDRR weight.

The value is an integer. The value range is as follows:
  • EE cards of the E series: 0 to 63
  • Other cards of the E series: 0 to 100
  • Cards of other series: 0 to 100

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When using WRR or WDRR scheduling, you can set the weight for each queue. Then the switch schedules queues in turn based on the weights. If the weight of a queue is set to 0, the queue uses PQ scheduling. In this case, PQ+WRR or PQ+WDRR is used.

Prerequisites

The css-port qos { pq | wrr | drr } command has been executed to configure the WRR or WDRR scheduling mode of queues on a CSS interface.

Precautions

CSS interfaces on the following CSSs support WRR and WDRR scheduling:
  • CSSs established using service interface connections
  • CSSs established by CSS cards installed in the subcard slots of SRUA or SRUB

After a CSS established using service interface connections is switched to a CSS established by CSS cards, the CSS is restarted. If CSS interfaces of the new CSS do not support WRR or WDRR scheduling, WRR or WDRR scheduling configured on primary CSS interfaces cannot be restored.

Example

# Set the WRR weight for queue 1 on the CSS interface to 30.

<HUAWEI> system view
[HUAWEI] css-port qos queue 1 wrr weight 30
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 29187

Downloads: 109

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next