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).
HQoS Commands

HQoS Commands

Command Support

Only X1E series cards support HQoS configuration commands.

color (flow queue WRED drop profile view)

Function

The color command configures upper and lower drop thresholds and maximum drop probability in a flow queue WRED drop profile based on the packet color.

The undo color command restores default parameters in a flow queue WRED drop profile.

By default, the upper and lower drop thresholds and maximum drop probability for green, yellow, and red packets are 100.

Format

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

undo color { green | yellow | red }

Parameters

Parameter

Description

Value

green

Indicates WRED parameters for green packets.

-

yellow

Indicates WRED parameters for yellow packets.

-

red

Indicates WRED parameters for red packets.

-

low-limit low-limit-percentage

Specifies the lower drop threshold, in percentage. When the percentage of the packet length to the queue length reaches this value, the device discards packets based on the drop probability.

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

high-limit high-limit-percentage

Specifies the upper drop threshold, in percentage. When the percentage of the packet length to the queue length reaches this value, the device starts to discard all subsequent packets.

The value is an integer that ranges from low-limit-percentage to 100. 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. The default value is 100.

Views

Flow queue WRED drop profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When packets enter queues, the device colors packets based on the mapping defined in a DiffServ domain. The device processes packets entering flow queues based on parameters in a flow queue WRED drop profile. When the percentage of the packet length to the queue length reaches the lower drop threshold, the device discards packets based on the drop probability. When the percentage of the packet length to the queue length reaches the upper drop threshold, the device discards all subsequent packets.

Prerequisites

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

Example

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

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

display flow-mapping-profile

Function

The display flow-mapping-profile command displays the flow mapping profile configuration.

Format

display flow-mapping-profile [ name flow-mapping-profile-name | all ]

Parameters

Parameter

Description

Value

name flow-mapping-profile-name

Displays detailed information about a specified flow mapping profile.

The value must be the name of an existing flow mapping profile.

all

Displays detailed information about all flow mapping profiles.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display flow-mapping-profile command to view the number of configured flow mapping profiles and all the configuration of the specified flow mapping profile.

Precautions

If all and name flow-mapping-profile-name are not specified, brief information about all flow mapping profiles is displayed.

Example

# Display brief information about all flow mapping profiles.

<HUAWEI> display flow-mapping-profile
        index                   flow-mapping-profile name                       
-----------------------------------------------------------------               
        0                       default                                         
        1                       map1                                            
-----------------------------------------------------------------               
 Total   8     Used   2                  

# Display detailed information about flow mapping profile map1.

<HUAWEI> display flow-mapping-profile name map1
Flow-mapping-profile[1]: map1                                                   
Flow-queue  Port-queue                                                          
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -               
0           0                                                                   
1           1                                                                   
2           3                                                                   
3           3                                                                   
4           4                                                                   
5           5                                                                   
6           6                                                                   
7           7                                                                   
----------------------------------------------------------------- 

# Display detailed information about all flow mapping profiles.

<HUAWEI> display flow-mapping-profile all
Flow-mapping-profile[0]: default                                                
Flow-queue  Port-queue                                                          
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -               
0           0                                                                   
1           1                                                                   
2           2                                                                   
3           3                                                                   
4           4                                                                   
5           5                                                                   
6           6                                                                   
7           7                                                                   
-----------------------------------------------------------------               
Flow-mapping-profile[1]: map1                                                   
Flow-queue  Port-queue                                                          
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -               
0           0                                                                   
1           1                                                                   
2           3                                                                   
3           3                                                                   
4           4                                                                   
5           5                                                                   
6           6                                                                   
7           7                                                                   
----------------------------------------------------------------- 
Table 15-29  Description of the display flow-mapping-profile command output

Item

Description

index

Index of the flow mapping profile.

flow-mapping-profile name

Name of the flow mapping profile. To create a flow mapping profile, run the flow-mapping-profile command.

Total

Total number of flow mapping profiles.

Used

Number of configured flow mapping profiles.

Flow-mapping-profile[1]

Name of the flow mapping profile. The value 1 is the index of the flow mapping profile.

Flow-queue

Index of the flow queue. To configure the mapping between flow queues and interface queues, run the map flow-queue (flow mapping profile view) command.

Port-queue

Index of the interface queue. To configure the mapping between flow queues and interface queues, run the map flow-queue (flow mapping profile view) command.

Related Topics

display flow-queue-profile

Function

The display flow-queue-profile command displays the flow queue profile configuration.

Format

display flow-queue-profile [ name flow-queue-profile-name | all ]

Parameters

Parameter

Description

Value

name flow-queue-profile-name

Displays detailed information about a specified flow queue profile.

The value must be the name of an existing flow queue profile.

all

Displays detailed information about all flow queue profiles.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display flow-queue-profile command to view the number of configured flow queue profiles and all the configuration of the specified flow queue profile.

Precautions

If all and name flow-queue-profile are not specified, brief information about all flow queue profiles is displayed.

Example

# Display brief information about all flow queue profiles.

<HUAWEI> display flow-queue-profile
        index                   flow-queue-profile name                         
-----------------------------------------------------------------               
        0                       default                                         
        1                       flow1                                            
-----------------------------------------------------------------               
 Total   128     Used   2   

# Display detailed information about flow queue profile flow1.

<HUAWEI> display flow-queue-profile name flow1
Flow-queue-profile[1]: flow1                                                     
Queue Schedule(Weight) Shaping         flow-wred-profile                        
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -         
0     WFQ(50)          50%             wred1                                    
1     PQ               None            default                                  
2     PQ               None            default                                  
3     PQ               None            default                                  
4     PQ               None            default                                  
5     PQ               None            default                                  
6     PQ               None            default                                  
7     PQ               None            default                                  
----------------------------------------------------------------------- 

# Display detailed information about all flow queue profiles.

<HUAWEI> display flow-queue-profile all
Flow-queue-profile[0]: default                                                  
Queue Schedule(Weight) Shaping         flow-wred-profile                        
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -         
0     PQ               None            default                                  
1     PQ               None            default                                  
2     PQ               None            default                                  
3     PQ               None            default                                  
4     PQ               None            default                                  
5     PQ               None            default                                  
6     PQ               None            default                                  
7     PQ               None            default                                  
-----------------------------------------------------------------------  
Flow-queue-profile[1]: flow1                                                     
Queue Schedule(Weight) Shaping         flow-wred-profile                        
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -         
0     WFQ(50)          50%             wred1                                    
1     PQ               None            default                                  
2     PQ               None            default                                  
3     PQ               None            default                                  
4     PQ               None            default                                  
5     PQ               None            default                                  
6     PQ               None            default                                  
7     PQ               None            default                                  
----------------------------------------------------------------------- 
Table 15-30  Description of the display flow-queue-profile command output

Item

Description

index

Index of the flow queue profile.

flow-queue-profile name

Name of the flow queue profile. To create a flow queue profile, run the flow-queue-profile command.

Total

Total number of flow queue profiles.

Used

Number of configured flow queue profiles.

Flow-queue-profile[1]

Name of the flow queue profile. The value 1 is the index of the flow queue profile. To create a flow queue profile, run the flow-queue-profile command.

Queue

Index of the flow queue, which corresponds to the local priority of packets.

Schedule(Weight)

Scheduling mode or weight of the flow queue. To set the scheduling mode and weight of a flow queue, run the qos queue (flow queue profile view) command.

Shaping

Traffic shaping rate or percentage of the flow queue. To set the traffic shaping and percentage of a flow queue, run the qos queue (flow queue profile view) command.

flow-wred-profile

Name of the WRED drop profile bound to the flow queue. To bind a WRED drop profile to a flow queue, run the qos queue (flow queue profile view) command.

Related Topics

display flow-wred-profile

Function

The display flow-wred-profile command displays the configuration of flow queue WRED drop profiles.

Format

display flow-wred-profile [ name flow-wred-profile-name | all ]

Parameters

Parameter

Description

Value

name flow-wred-profile-name

Displays detailed information about a specified flow queue WRED drop profile.

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

all

Displays detailed information about all flow queue WRED drop profiles.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

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

Precautions

If all and name flow-wred-profile-name are not specified, brief information about all flow queue WRED drop profiles is displayed.

Example

# Display brief information about all flow queue WRED drop profiles.

<HUAWEI> display flow-wred-profile
        index                   flow-wred-profile name                          
-----------------------------------------------------------------               
        0                       default                                         
        1                       wred1                                           
-----------------------------------------------------------------               
 Total   128     Used   2                              

# Display detailed information about flow queue WRED drop profile wred1.

<HUAWEI> display flow-wred-profile name wred1
Flow-wred-profile[1]: wred1                                                     
Queue depth         : 1048576                                                   
Color     Low-limit   High-limit  Discard-percentage                            
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -               
Green     80          100         10                                            
Yellow    60          80          20                                            
Red       40          60          40                                            
-----------------------------------------------------------------  

# Display detailed information about all flow queue WRED drop profiles.

<HUAWEI> display flow-wred-profile all
Flow-wred-profile[0]: default                                                   
Queue depth         : 1048576                                                   
Color     Low-limit   High-limit  Discard-percentage                            
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -               
Green     100         100         100                                           
Yellow    100         100         100                                           
Red       100         100         100                                           
-----------------------------------------------------------------  
Flow-wred-profile[1]: wred1                                                     
Queue depth         : 1048576                                                   
Color     Low-limit   High-limit  Discard-percentage                            
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -               
Green     80          100         10                                            
Yellow    60          80          20                                            
Red       40          60          40                                            
-----------------------------------------------------------------  
Table 15-31  Description of the display flow-wred-profile command output

Item

Description

index

Index of the flow queue WRED drop profile.

flow-wred-profile name

Name of the flow queue WRED drop profile. To create a flow queue WRED drop profile, run the flow-wred-profile command.

Total

Total number of flow queue WRED drop profiles.

Used

Number of configured flow queue WRED drop profiles.

Flow-wred-profile[1]

Name of the flow queue WRED drop profile. The value 1 is the index of the flow queue WRED drop profile. To create a flow queue WRED drop profile, run the flow-wred-profile command.

Queue depth

Queue length. To set the queue length, run the queue-depth (flow queue WRED drop profile view) command.

Color

Packet color. To set the packet color, run the color (flow queue WRED drop profile view) command.

Low-limit

Lower drop threshold in the flow queue WRED drop profile, in percentage. To set the lower drop threshold in a flow queue WRED drop profile, run the color (flow queue WRED drop profile view) command.

High-limit

Upper drop threshold in the flow queue WRED drop profile, in percentage. To set the upper drop threshold in a flow queue WRED drop profile, run the color (flow queue WRED drop profile view) command.

Discard-percentage

Maximum drop probability in the flow queue WRED drop profile, in percentage. To set the maximum drop probability in a flow queue WRED drop profile, run the color (flow queue WRED drop profile view) command.

display traffic-user-queue statistics

Function

The display traffic-user-queue statistics command displays traffic statistics on subscriber queues.

Format

display traffic-user-queue statistics interface interface-type interface-number outbound acl { bas-acl | adv-acl } [ acl { l2-acl | name acl-name } ]

display traffic-user-queue statistics interface interface-type interface-number outbound acl l2-acl [ acl { bas-acl | adv-acl | name acl-name } ]

display traffic-user-queue statistics interface interface-type interface-number outbound acl name acl-name [ acl { bas-acl | adv-acl | l2-acl | name acl-name } ]

display traffic-user-queue statistics interface interface-type interface-number outbound acl ipv6 { bas-acl | adv-acl | name acl-name }

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays traffic statistics on subscriber queues on a specified interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

outbound

Displays traffic statistics on subscriber queues in the outbound direction on an interface.

-

acl

Displays traffic statistics on subscriber queues based on IPv4 ACLs.

-

ipv6

Displays traffic statistics on subscriber queues based on IPv6 ACLs.

-

bas-acl

Displays traffic statistics on subscriber queues based on basic ACLs.

The value is an integer that ranges from 2000 to 2999.

adv-acl

Displays traffic statistics on subscriber queues based on advanced ACLs.

The value is an integer that ranges from 3000 to 3999.

l2-acl

Displays traffic statistics on subscriber queues based on Layer 2 ACLs.

The value is an integer that ranges from 4000 to 4999.

name acl-name

Displays traffic statistics on subscriber queues based on named ACLs. acl-name specifies the name of the ACL.

The value must be the name of an existing ACL.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display traffic-user-queue statistics command displays traffic statistics on subscriber queues based on ACLs on an interface. The command output helps you learn about forwarded and discarded packets matching ACLs and locate faults.

Prerequisites

The traffic-user-queue command has been executed to create a subscriber queue based on ACLs to implement HQoS.

Example

# Display traffic statistics on subscriber queues based on ACL 3009 in the outbound direction on GE1/0/1.

<HUAWEI> system-view
[HUAWEI] acl 3009
[HUAWEI-acl-adv-3009] rule 1 permit ip
[HUAWEI-acl-adv-3009] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] traffic-user-queue outbound acl 3009 pir 2000
[HUAWEI-GigabitEthernet1/0/1] quit
[HUAWEI] display traffic-user-queue statistics interface gigabitethernet 1/0/1 outbound acl 3009 
--------------------------------------------------------------------------------
 Interface: GigabitEthernet1/0/1                                                
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         0         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         1         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         2         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         3         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         4         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         5         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         6         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
     Queue ID      |                   Statistics information                   
--------------------------------------------------------------------------------
         7         |          packets: pass:                           0        
                   |                   drop:                           0        
                   |          bytes:   pass:                           0        
                   |                   drop:                           0        
--------------------------------------------------------------------------------
Table 15-32  Description of the display traffic-user-queue statistics command output

Item

Description

Queue ID

Index of the flow queue.

packets

Number of collected packets. pass indicates the number of forwarded packets, and drop indicates the number of discarded packets.

bytes

Number of collected bytes. pass indicates the number of forwarded bytes, and drop indicates the number of discarded bytes.

flow-mapping-profile

Function

The flow-mapping-profile command creates a flow mapping profile or displays the view of an existing flow mapping profile.

The undo flow-mapping-profile command deletes the created flow mapping profile.

By default, the system predefines a flow mapping profile default.

Format

flow-mapping-profile flow-mapping-profile-name

undo flow-mapping-profile flow-mapping-profile-name

Parameters

Parameter

Description

Value

flow-mapping-profile-name

Specifies the name of a flow mapping profile.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. 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

After the mapping between flow queues and interface queues is configured, the device can send flows of a service in a subscriber queue to a high- or low-priority interface queue.

Precautions

The flow mapping profile default cannot be modified or deleted.

Follow-up Procedure

Configure the mapping between flow queues and interface queues in the flow mapping profile view.

Example

# Create flow mapping profile map1.

<HUAWEI> system-view
[HUAWEI] flow-mapping-profile map1
[HUAWEI-flow-mapping-map1]

flow-queue-profile

Function

The flow-queue-profile command creates a flow queue profile or displays the view of an existing flow queue profile.

The undo flow-queue-profile command deletes the created flow queue profile.

By default, the system predefines a flow queue profile default.

Format

flow-queue-profile flow-queue-profile-name

undo flow-queue-profile flow-queue-profile-name

Parameters

Parameter

Description

Value

flow-queue-profile-name

Specifies the name of a flow queue profile.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. 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

When configuring congestion management and traffic shaping parameters of a flow queue, you can run the flow-queue-profile flow-queue-profile-name command to create a flow queue profile and define parameters in the profile. To set the same scheduling mode and weight for different flow queues, reference the same flow queue profile.

Precautions

The flow queue profile default cannot be modified or deleted.

Follow-up Procedure

Configure congestion management and traffic shaping parameters of a flow queue and reference the flow queue WRED drop profile in the flow queue profile view.

Example

# Create flow queue profile test.

<HUAWEI> system-view
[HUAWEI] flow-queue-profile test
[HUAWEI-flow-queue-test]

flow-wred-profile

Function

The flow-wred-profile command creates a flow queue WRED drop profile or displays the view of an existing flow queue WRED drop profile.

The undo flow-wred-profile command deletes the created flow queue WRED drop profile.

By default, the system predefines a flow queue WRED drop profile default.

Format

flow-wred-profile flow-wred-profile-name

undo flow-wred-profile flow-wred-profile-name

Parameters

Parameter

Description

Value

flow-wred-profile-name

Specifies the name of a flow queue WRED drop profile.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. 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

When configuring WRED parameters of a flow queue, you can run the flow-wred-profile flow-wred-profile-name command to create a flow queue WRED drop profile and define parameters in the profile. To use the same upper and lower drop thresholds and maximum drop probability for different flow queues, reference the same flow queue WRED drop profile.

Precautions

The flow queue WRED drop profile default cannot be modified or deleted.

Follow-up Procedure

Configure WRED parameters of the flow queue and queue length in the flow queue WRED drop profile view.

Example

# Create flow queue WRED drop profile test.

<HUAWEI> system-view
[HUAWEI] flow-wred-profile test
[HUAWEI-flow-wred-test]

map flow-queue (flow mapping profile view)

Function

The map flow-queue command configures the mapping between flow queues and interface queues.

The undo map flow-queue command restores the default mapping between flow queues and interface queues.

By default, a flow queue maps to an interface queue.

Format

map flow-queue flow-queue-index to port-queue port-queue-index

undo map flow-queue flow-queue-index

Parameters

Parameter

Description

Value

flow-queue flow-queue-index

Specifies the index of a flow queue.

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

port-queue port-queue-index

Specifies the index of an interface queue.

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

Views

Flow mapping profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, a flow queue maps to an interface queue, that is, flow queues 0 to 7 maps to interface queues 0 to 7 respectively. To change the default mapping, run this command so that specified services in a subscriber queue enter interface queues with different priorities for scheduling and other QoS processing according to service requirements.

Prerequisites

A flow mapping profile has been created and the flow mapping profile view has been displayed.

Example

# Configure flow mapping profile map1 and map flow queue 1 to interface queue 2.

<HUAWEI> system-view
[HUAWEI] flow-mapping-profile map1
[HUAWEI-flow-mapping-map1] map flow-queue 1 to port-queue 2

qos queue (flow queue profile view)

Function

The qos queue command sets the scheduling mode, traffic shaping rate, and referenced flow queue WRED drop profile.

The undo qos queue command restores the default scheduling mode, traffic shaping rate, and referenced flow queue WRED drop profile.

By default, a flow queue uses PQ scheduling, PIR of a subscriber queue as the traffic shaping rate, and flow queue WRED drop profile default.

Format

qos queue queue-index { { pq | wfq weight weight-value } | { shaping { shaping-value | shaping-percentage shaping-percentage-value } } | { flow-wred-profile flow-wred-profile-name } } *

undo qos queue queue-index { { pq | wfq } | shaping | flow-wred-profile } *

Parameters

Parameter

Description

Value

queue-index

Specifies the index of a flow queue.

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

pq

Indicates PQ scheduling.

-

wfq

Indicates WFQ scheduling.

-

weight weight-value

Specifies the weight of WFQ scheduling.

The value is an integer that ranges from 1 to 100.

shaping shaping-value

Specifies the traffic shaping rate.

The value is an integer that ranges from 64 to 10000000, in kbit/s.

shaping-percentage shaping-percentage-value

Specifies the traffic shaping percentage, that is, percentage of the traffic shaping rate to the PIR of a subscriber queue.

The value is an integer that ranges from 1 to 100.

flow-wred-profile flow-wred-profile-name

Specifies the name of a flow queue WRED drop profile.

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

Views

Flow queue profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To manage packets in a flow queue, run this command to set the scheduling mode, traffic shaping rate, and referenced flow queue WRED drop profile.

Prerequisites

A flow queue profile has been created and the flow queue profile view has been displayed.

Precautions

The scheduling mode, traffic shaping rate, and flow queue WRED drop profile can be configured in any sequence. You can configure the scheduling mode, traffic shaping rate, and flow queue WRED drop profile independently or a combination of them.

Example

# Configure flow queue profile flow1 where the WFQ weight of flow queue 0 is 50%, the traffic shaping percentage is 50%, and referenced flow queue WRED drop profile is wred1.

<HUAWEI> system-view
[HUAWEI] flow-queue-profile flow1
[HUAWEI-flow-queue-flow1] qos queue 0 wfq weight 50 shaping shaping-percentage 50 flow-wred-profile wred1

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

reset traffic-user-queue statistics

Function

The reset traffic-user-queue statistics command clears traffic statistics on subscriber queues.

Format

reset traffic-user-queue statistics interface interface-type interface-number outbound acl { bas-acl | adv-acl } [ acl { l2-acl | name acl-name } ]

reset traffic-user-queue statistics interface interface-type interface-number outbound acl l2-acl [ acl { bas-acl | adv-acl | name acl-name } ]

reset traffic-user-queue statistics interface interface-type interface-number outbound acl name acl-name [ acl { bas-acl | adv-acl | l2-acl | name acl-name } ]

reset traffic-user-queue statistics interface interface-type interface-number outbound acl ipv6 { bas-acl | adv-acl | name acl-name }

Parameters

Parameter

Description

Value

interface interface-type interface-number

Clears traffic statistics on subscriber queues on a specified interface.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

outbound

Clears traffic statistics on subscriber queues in the outbound direction on an interface.

-

acl

Clears traffic statistics on subscriber queues based on IPv4 ACLs.

-

ipv6

Clears traffic statistics on subscriber queues based on IPv6 ACLs.

-

bas-acl

Clears traffic statistics on subscriber queues based on basic ACLs.

The value is an integer that ranges from 2000 to 2999.

adv-acl

Clears traffic statistics on subscriber queues based on advanced ACLs.

The value is an integer that ranges from 3000 to 3999.

l2-acl

Clears traffic statistics on subscriber queues based on Layer 2 ACLs.

The value is an integer that ranges from 4000 to 4999.

name acl-name

Clears traffic statistics on subscriber queues based on named ACLs. acl-name specifies the name of the ACL.

The value must be the name of an existing ACL.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before recollecting traffic statistics on subscriber queues in a given period of time, run this command to clear existing traffic statistics on subscriber queues.

Precautions

The cleared traffic statistics on subscriber queues cannot be restored. Exercise caution when you run this command.

Example

# Clear traffic statistics on subscriber queues based on ACL 3009 in the outbound direction on GE1/0/1.

<HUAWEI> system-view
[HUAWEI] acl 3009
[HUAWEI-acl-adv-3009] rule 1 permit ip
[HUAWEI-acl-adv-3009] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] traffic-user-queue outbound acl 3009 pir 2000
[HUAWEI-GigabitEthernet1/0/1] return
<HUAWEI> reset traffic-user-queue statistics interface gigabitethernet 1/0/1 outbound acl 3009 

traffic-user-queue (interface view)

Function

The traffic-user-queue command creates a subscriber queue on an interface to implement HQoS.

The undo traffic-user-queue command deletes a subscriber queue on an interface.

By default, no subscriber queue is configured on an interface.

Format

If a single ACL is used, use the following command:

traffic-user-queue outbound acl { [ ipv6 ] { bas-acl | adv-acl | name acl-name } } pir pir-value [ flow-queue-profile flow-queue-profile-name | flow-mapping-profile flow-mapping-profile-name ] *

undo traffic-user-queue outbound acl { [ ipv6 ] { bas-acl | adv-acl | name acl-name } }

If both Layer 2 and Layer 3 ACLs are configured, use the following command:

traffic-user-queue outbound acl { l2-acl | name acl-name } acl { bas-acl | adv-acl | name acl-name } pir pir-value [ flow-queue-profile flow-queue-profile-name | flow-mapping-profile flow-mapping-profile-name ] *

undo traffic-user-queue outbound acl { l2-acl | name acl-name } acl { bas-acl | adv-acl | name acl-name }

traffic-user-queue outbound acl { bas-acl | adv-acl | name acl-name } acl { l2-acl | name acl-name } pir pir-value [ flow-queue-profile flow-queue-profile-name | flow-mapping-profile flow-mapping-profile-name ] *

undo traffic-user-queue outbound acl { bas-acl | adv-acl | name acl-name } acl { l2-acl | name acl-name }

Parameters

Parameter

Description

Value

outbound

Creates a subscriber queue in the outbound direction on an interface to implement HQoS scheduling.

-

acl

Creates a subscriber queue based on IPv4 ACLs to implement HQoS scheduling.

-

ipv6

Creates a subscriber queue based on IPv6 ACLs to implement HQoS scheduling.

-

bas-acl

Creates a subscriber queue based on basic ACLs to implement HQoS scheduling.

The value is an integer that ranges from 2000 to 2999.

adv-acl

Creates a subscriber queue based on advanced ACLs to implement HQoS scheduling.

The value is an integer that ranges from 3000 to 3999.

l2-acl

Creates a subscriber queue based on Layer 2 ACLs to implement HQoS scheduling.

The value is an integer that ranges from 4000 to 4999.

name acl-name

Creates a subscriber queue based on named ACLs to implement HQoS scheduling. acl-name specifies the name of the ACL.

The value must be the name of an existing ACL.

pir pir-value

Specifies the peak information rate (PIR) of a subscriber queue, which is the maximum rate of traffic that can pass through an interface.

The value is an integer that ranges from 64 to 10000000, in kbit/s.

flow-queue-profile flow-queue-profile-name

Specifies the name of the referenced flow queue profile.

The value must be the name of an existing flow queue profile.

flow-mapping-profile flow-mapping-profile-name

Specifies the name of the referenced flow mapping profile.

The value must be the name of an existing flow mapping profile.

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Multiple users can be differentiated based on ACL rules. When different scheduling and shaping parameters need to be set for different users and differentiated services need to be provided for different service traffic of the same user, run the traffic-user-queue command to configure multiple subscriber queues, set different scheduling modes and traffic shaping rates, and reference different flow queue profiles and flow mapping profiles to implement fine-granular scheduling.

Prerequisites

The acl (system view) or acl name command has been executed to create an ACL.

Example

# Create a subscriber queue based on ACLs on the GE1/0/1 to implement HQoS.

<HUAWEI> system-view
[HUAWEI] acl 3000
[HUAWEI-acl-adv-3000] rule 5 permit ip source 192.168.0.2 0
[HUAWEI-acl-adv-3000] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] traffic-user-queue outbound acl 3000 pir 1000 flow-queue-profile flow1 flow-mapping-profile map1

user-queue (qos-profile view)

Function

The user-queue command creates a subscriber queue in a QoS profile to implement HQoS.

The undo user-queue command deletes a subscriber queue from a QoS profile.

By default, no subscriber queue is configured in a QoS profile.

Format

user-queue pir pir-value [ flow-queue-profile flow-queue-profile-name ] [ flow-mapping-profile flow-mapping-profile-name ]

undo user-queue

Parameters

Parameter

Description

Value

pir pir-value

Specifies the peak information rate (PIR) of a subscriber queue, which is the maximum rate of traffic that can pass through an interface.

The value is an integer that ranges from 64 to 10000000, in kbit/s.

flow-queue-profile flow-queue-profile-name

Specifies the name of the referenced flow queue profile. If the name of the referenced flow queue profile is not specified, the flow queue profile default is used.

The value must be the name of an existing flow queue profile.

flow-mapping-profile flow-mapping-profile-name

Specifies the name of the referenced flow mapping profile. If the name of the referenced flow mapping profile is not specified, the flow mapping profile default is used.

The value must be the name of an existing flow mapping profile.

Views

QoS profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure HQoS for authentication users to implement fine-granular scheduling, run the user-queue command to create subscriber queues, set different traffic shaping rates, and reference different flow queue profiles and flow mapping profiles.

Prerequisites

A QoS profile has been created using the qos-profile command.

The user-defined flow queue profile and flow mapping profile have been created using the flow-queue-profile and flow-mapping-profile commands respectively. If the user-defined flow queue profile and flow mapping profile are not required, use the default ones.

Example

# Configure a user queue in the QoS profile huawei to implement HQoS.

<HUAWEI> system-view
[HUAWEI] qos-profile name huawei
[HUAWEI-qos-huawei] user-queue pir 1000 flow-queue-profile flow1 flow-mapping-profile map1
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 26193

Downloads: 109

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