- Table of Contents
-
- H3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)
- 00-1Cover
- 01-Login Command
- 02-Basic System Configuration and Maintenance Command
- 03-File System Management Command
- 04-VLAN Command
- 05-QinQ-BPDU TUNNEL Command
- 06-Port Correlation Configuration Command
- 07-MAC Address Table Management Command
- 08-MSTP Commands
- 09-IP Address and Performance Command
- 10-IPv6 Configuration Command
- 11-Routing Overview Command
- 12-IPv4 Routing Command
- 13-IPv6 Routing Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-Multicast Protocol Command
- 17-ARP Command
- 18-DHCP Command
- 19-ACL Command
- 20-QoS Command
- 21-Port Mirroring Command
- 22-Cluster Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-Information Center Command
- 27-NQA Command
- 28-SSH Terminal Service Command
- 29-UDP Helper Command
- 30-SSL-HTTPS Command
- 31-PKI Command
- 32-PoE-PoE Profile Command
- 33-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
20-QoS Command | 227 KB |
Table of Contents
Chapter 1 QoS Overview Commands
1.1.1 display qos lr interface
Chapter 2 QoS Policy Configuration Commands
2.1 QoS Policy Configuration Commands
2.1.5 display qos policy interface
2.1.6 display traffic behavior
2.1.7 display traffic classifier
2.1.16 remark local-precedence
Chapter 3 WRR Queue Configuration Commands
3.1 WRR Queue Configuration Commands
3.1.2 display qos wrr interface
Chapter 4 Priority Mapping Configuration Commands
4.1 Priority Mapping Configuration Commands
Chapter 5 VLAN Policy Commands
Chapter 6 Traffic Mirroring Configuration Commands
6.1 Traffic Mirroring Configuration Commands
6.1.1 display qos policy user-defined
6.1.2 display traffic behavior user-defined
Chapter 1 QoS Overview Commands
1.1 QoS Overview Commands
1.1.1 display qos lr interface
Syntax
display qos lr interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type: Port type.
interface-number: Port number.
Description
Use the display qos lr interface command to display the LR configuration and statistics information of a certain interface or all interfaces.
If the interface argument is not specified, this command will display the LR configuration and statistics information of all the interfaces.
Example
# Display the LR configuration and statistics information of all the interfaces.
<H3C> display qos lr interface
Interface: GigabitEthernet1/0/1
Direction: Outbound
CIR 64000 (kbps), CBS 4000000 (byte)
Table 1-1 Description on the fields of the display qos lr command
Field |
Description |
Interface |
Port name, composed of port type and port number |
Direction |
Specify the direction of limited rate as outbound |
CIR |
Committed information rate, in kbps |
CBS |
Committed burst size, namely, the depth of the token bucket that holds the burst traffic, in byte |
1.1.2 qos lr
Syntax
qos lr outbound cir committed-information-rate [ cbs committed-burst-size ]
undo qos lr outbound
View
Ethernet interface view/port group view
Parameter
outbound: Limits the rate of the outbound traffic.
cir committed-information-rate: Specifies the committed information rate in kbps. The committed-information-rate argument ranges from 64 to 1,000,000 and must be a multiple of 64.
cbs committed-burst-size: Specifies the committed burst size in bytes.
l The committed-burst-size argument ranges from 4,000 to 16,000,000.
l If the cbs keyword is not used, the system uses the default committed burst size, that is, 500 ms x committed-information-rate, or 16,000,000 if the multiplication is more than 16,000.000.
Description
Use the qos lr command to limit the rate of outbound traffic via physical interfaces.
Use the undo qos lr command to cancel the limit.
Example
# Limit the rate of the physical port GigabitEthernet1/0/1 to send packets. CIR is 64 kbps and CBS is 9,216 bytes.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1] qos lr outbound cir 64 cbs 9216
Chapter 2 QoS Policy Configuration Commands
2.1 QoS Policy Configuration Commands
2.1.1 accounting
Syntax
accounting
undo accounting
View
Traffic behavior view
Parameter
None
Description
Use the accounting command to configure the accounting action for the traffic behavior.
Use the undo accounting command to remove the accounting configuration.
Related command: qos policy, traffic behavior, and classifier behavior.
Example
# Configure the accounting action for the traffic behavior.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] accounting
2.1.2 car
Syntax
car cir committed-information-rate [ cbs committed-burst-size ] [ red action ]
undo car
View
Traffic behavior view
Parameter
cir committed-information-rate: Specifies the committed information rate in kbps. The committed-information-rate argument ranges from 64 to 32,000,000 and must be a multiple of 64.
cbs committed-burst-size: Specifies the committed burst size in bytes.
l The committed burst size argument ranges from 500 to 2,000,000.
l If the cbs keyword is not used, the system uses the default committed burst size, that is, 500 ms x committed-information-rate, or 2,000,000 if the multiplication is more than 2,000,000.
red: The action to be taken when the traffic does not conform to cir. The default value is discard.
action: Specifies the following actions.
l discard: Discards data packets.
l pass: Sends data packets.
l remark-dscp-pass new-dscp: Sets a new DSCP value and sends a data packet to the destination address, ranging from 0 to 63. Or input one of the keywords listed in Table 2-1 as the DSCP.
Table 2-1 DSCP values and the corresponding keywords
Keyword |
DSCP value in decimal |
DSCP value in binary |
default |
0 |
000000 |
af11 |
10 |
001010 |
af12 |
12 |
001100 |
af13 |
14 |
001110 |
af21 |
18 |
010010 |
af22 |
20 |
010100 |
af23 |
22 |
010110 |
af31 |
26 |
011010 |
af32 |
28 |
011100 |
af33 |
30 |
011110 |
af41 |
34 |
100010 |
af42 |
36 |
100100 |
af43 |
38 |
100110 |
cs1 |
8 |
001000 |
cs2 |
16 |
010000 |
cs3 |
24 |
011000 |
cs4 |
32 |
100000 |
cs5 |
40 |
101000 |
cs6 |
48 |
110000 |
cs7 |
56 |
111000 |
ef |
46 |
101110 |
Description
Use the car command to configure TP for the traffic behavior.
Use the undo car command to remove the TP configuration.
When the car command is used in the policies applied on the port, the policies can be applied in the inbound direction of the port.
If this command is used repeatedly to configure TP for the same traffic behavior, the last configuration is effective.
Related command: qos policy, traffic behavior, and classifier behavior.
Example
# Configure TP for a traffic behavior. The normal traffic rate of packets is 6400 kbps.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] car cir 6400
2.1.3 classifier behavior
Syntax
classifier tcl-name behavior behavior-name
undo classifier tcl-name
View
Policy View
Parameter
tcl-name: Defined class name, a string of 1 to 31 characters.
behavior-name: Defined behavior name, a string of 1 to 31 characters.
Description
Use the classifier behavior command to specify the behavior for a class in the policy.
Use the undo classifier behavior command to cancel the usage of the specified class in the policy.
Each class in the policy can be associated with only one action.
Related command: qos policy.
Example
# Use the behavior “test” for the class “database” in the policy user1.
<H3C> system-view
[H3C] qos policy user1
[H3C-qospolicy-user1] classifier database behavior test
2.1.4 display qos policy
Syntax
display qos policy user-defined [ policy-name [ classifier tcl-name ] ]
View
Any view
Parameter
user-defined: User-defined policies.
policy-name: Policy name, a string of 1 to 31 characters. If no policy name is specified, this command displays the configuration information of all user-defined policies.
tcl-name: Class name in the policy, a string of 1 to 31 characters.
Description
Use the display qos policy command to display the configuration information of the specified class or all classes in the specified policy or all policies and the configuration information of behavior(s) associated with the class(es).
Example
# Display the configuration information of all classes in all user-defined policies and the configuration information of the behaviors associated with the classes.
<H3C> display qos policy user-defined
User Defined QoS Policy Information:
Policy: test
Classifier: USER1
Behavior: USER1
Marking:
Remark IP Precedence 3
Committed Access Rate:
CIR 6400 (kbps), CBS 400000 (byte)
Red Action: discard
Classifier: database
Behavior: database
Marking:
Remark IP Precedence 5
Table 2-2 Description on the fields of the display qos policy command
Field |
Description |
Policy |
Policy name |
Classifier |
Class name. A policy can contain multiple classes and each class has a corresponding behavior and one or more match rule. Refer to the traffic classifier command for details. |
Behavior |
The behavior corresponding to a class in the policy. A behavior can have multiple rules. Refer to the traffic behavior command for details. |
2.1.5 display qos policy interface
Syntax
display qos policy interface [ interface-type interface-number ] [ inbound ]
View
Any view
Parameter
interface-type: Port type.
interface-number: Port number.
inbound: Inbound direction.
Description
Use the display qos policy interface command to display the configuration and running status of the policy on the specified ports or all ports.
Example
# Display the configuration and running status of the policy on GigabitEthernet 1/0/1.
<H3C> display qos policy interface GigabitEthernet 1/0/1
Interface: GigabitEthernet1/0/1
Direction: Inbound
Policy: test
Classifier: USER1
Operator: AND
Rule(s) : if-match ip-precedence 5
Behavior: USER1
Marking:
Remark IP Precedence 3
Committed Access Rate:
CIR 640 (kbps), CBS 40000 (byte)
Red Action: discard
Classifier: database
Operator: AND
Rule(s) : if-match acl 3131
Behavior: database
Marking:
Remark IP Precedence 3
Table 2-3 Description on the fields of the display qos policy interface command
Field |
Description |
Interface |
Port name, composed of port type and port number |
Direction |
The application direction of the policy on the port |
Policy |
The name of the policy applied on the port |
Classifier |
The classification rule in the policy and the corresponding configuration information |
Operator |
The logic relationship among different classification rules in a class |
Rule(s) |
Classification rule(s) of the class |
Behavior |
The name and configuration information of the behavior in the policy. Refer to the commands related with behavior for details |
2.1.6 display traffic behavior
Syntax
display traffic behavior user-defined [ behavior-name ]
View
Any view
Parameter
user-defined: User-defined behaviors.
behavior-name: Behavior name, a string of 1 to 31 characters. If no behavior name is specified, the command displays the information about all user-defined behaviors.
Description
Use the display traffic behavior command to display the configured traffic behavior information.
If no behavior name is specified, this command displays the information about all behaviors.
Example
# Display the information about user-defined traffic behaviors .
<H3C> display traffic behavior user-defined
User Defined Behavior Information:
Behavior: test
Marking:
Remark IP precedence 3
Committed Access Rate:
CIR 640 (kbps), CBS 40000 (byte)
Red Action: discard
Table 2-4 Description on the fields of the display traffic behavior user-defined command
Field |
Description |
User Defined Behavior Information |
Type of behavior: user-defined |
Behavior |
The name and content of the behavior. The content can involve multiple types |
Marking |
Remarking configuration |
Committed Access Rate |
Traffic limiting configuration |
2.1.7 display traffic classifier
Syntax
display traffic classifier user-defined [ tcl-name ]
View
Any view
Parameter
user-defined: User-defined class.
tcl-name: Class name, a string of 1 to 31 characters.
Description
Use the display traffic classifier command to display the configured class information.
If no class name is specified, this command displays the information about all classes.
Example
# Display the user-defined class information.
<H3C> display traffic classifier user-defined
User Defined Classifier Information:
Classifier: USER1
Operator: OR
Rule(s) : if-match ip-precedence 5
Classifier: database
Operator: OR
Rule(s) : if-match acl 3131
Table 2-5 Description on the fields of the display traffic classifier user-defined command
Field |
Description |
User Defined Classifier Information |
Type of class: user-defined |
Classifier |
The name and content of the class. The content can involve multiple types. |
Operator |
The logic relationship among the classification rules |
Rule |
Classification rule(s) |
2.1.8 filter
Syntax
filter { deny | permit }
undo filter
View
Traffic behavior view
Parameter
discard: Drops packets.
permit: Sends packets.
Description
Use the filter command to configure the traffic filter action for the traffic behavior.
Use the undo filter command to remove the configuration.
Caution:
Except for the accounting command, the filter deny command cannot be used together with any other commands that are used to configure actions for traffic behavior.
Example
# Configure the filter action of dropping packets for the traffic behavior.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] filter deny
2.1.9 if-match
Syntax
if-match match-criteria
undo if-match match-criteria
View
Class view
Parameter
match-criteria: Match rule of the class. Refer to Table 2-6 for the value range.
Table 2-6 The match rule values of the class
Value |
Description |
acl access-list-number |
Defines a rule that matches an ACL. The value range of access-list-number is from 2000 to 4999 |
acl ipv6 access-list-number |
Defines an IPv6 ACL rule. The value of the access-list-number argument is in the range of 2,000 to 3,999. IPv6 ACL rules can only be implemented by referencing ACL6 rules. |
any |
Defines a rule to match all packets |
dot1p dot1p-list |
Defines a rule that matches 802.1p priority. The value of 802.1p priority is in the range of 0 to 7 |
dscp dscp-list |
Defines a rule that matches DSCP. dscp-list is the list of DSCP values, The DSCP values range from 0 to 63 |
destination-mac mac-address |
Defines a rule that matches the destination MAC address |
ip-precedence ip-precedence-list |
Defines a rule that matches IP precedence. ip-precedence-list is the list of IP precedence values, The IP precedence values range from 0 to 7 |
source-mac mac-address |
Defines a rule that matches the source MAC address |
customer-vlan-id vlan-id-list |
Defines a rule that matches VLAN IDs of the user network. vlan-id-list is the list of VLAN IDs , The VLAN IDs range from 1 to 4094 |
service-vlan-id vlan-id-list |
Defines a rule that matches VLAN IDs of the operator network. vlan-id-list is the list of VLAN IDs, The VLAN IDs range from 1 to 4094 |
Description
Use the if-match command to define a rule for all the packets matching the specified rule.
Use the undo if-match command to delete the rule for all packets matching the specified match rule.
& Note:
Please obey the following restrictions when defining a rule; otherwise you will fail to apply the policies.
l If the customer-vlan-id, dot1p, dscp, ip-precedence or service-vlan-id is to be matched, do not configure multiple values in a rule at the same time when you use the if-match command to define match rules.
l Do not configure multiple values in a rule at the same time when you use the if-match command to define match rules.
l When you specify the logic relation as AND, if you configure the ACL IPv6 matching rule, you cannot configure other rules except if-match any at the same time.
Related command: traffic classifier.
Example
# Define the match rule of class1 to match packets whose destination MAC address is 0050-ba27-bed3.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match destination-mac 0050-ba27-bed3
# Define the match rule of class2 to match packets whose source MAC address is 0050-ba27-bed2.
<H3C> system-view
[H3C] traffic classifier class2
[H3C-classifier-class2] if-match source-mac 0050-ba27-bed2
# Define the match rule of class1 to match ACL 3101.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match acl 3101
# Define a rule that matches all packets.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match any
# Define the match rule of class1 to match packets whose DSCP value is 1.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match dscp 1
# Define the match rule of class1 to match packets whose IP precedence value is 1.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match ip-precedence 1
# Define the match rule of class1 to match packets whose VLAN ID of the user network is 1.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match customer-vlan-id 1
# Define the match rule of class1 to match packets whose VLAN ID of the operator network is 1.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1] if-match service-vlan-id 1
2.1.10 qos apply policy
Syntax
qos apply policy policy-name inbound
undo qos apply policy inbound
View
Ethernet interface view/port group view
Parameter
inbound: Inbound direction.
policy policy-name: Specifies the policy name, a string of 1 to 31 characters.
Description
Use the qos apply policy command to apply the associated policy on the port.
Use the undo apply policy command to delete the associated policy.
Example
# Apply the policy named USER1 to the inbound direction of GigabitEthernet1/0/1.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1] qos apply policy USER1 inbound
2.1.11 qos policy
Syntax
qos policy policy-name
undo qos policy policy-name
View
System view
Parameter
policy policy-name: Policy name, a string of 1 to 31 characters.
Description
Use the qos policy command to define a policy and enter policy view.
Use the undo qos policy command to delete a policy.
If the policy is applied on a certain port, it is not allowed to delete the policy. To delete it, you must first cancel the application of the policy on this port and then use the undo qos policy command to delete the policy.
Related command: classifier behavior, and qos apply policy.
Example
# Define a policy named USER1.
<H3C> system-view
[H3C] qos policy user1
[H3C-qospolicy-user1]
2.1.12 redirect
Syntax
redirect interface interface-type interface-number
undo redirect
View
Traffic behavior view
Parameter
interface-type: Port type.
interface-number: Port number.
Description
Use the redirect command to configure the traffic redirect action for the traffic behavior.
Use the undo redirect command to remove the configuration.
Example
# Define the traffic redirect action for the traffic behavior to redirect the traffic to GigabitEthernet1/0/1.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] redirect interface GigabitEthernet 1/0/1
2.1.13 remark dot1p
remark dot1p 8021p
undo remark dot1p
View
Traffic behavior view
Parameter
8021p: Specifies a 802.1p priority , ranging from 0 to 7.
Description
Use the remark dot1p command to configure the 802.1p priority of a packet.
Use the undo remark dot1p command to cancel the 802.1p priority of the packet.
Caution:
remark dot1p and remark local-precedence cannot be configured at the same time.
Related command: qos policy, traffic behavior, and classifier behavior
Example
# Configure the 802.1p priority of the packet as 2.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] remark dot1p 2
2.1.14 remark dscp
Syntax
remark dscp dscp-value
undo remark dscp
View
Traffic behavior view
Parameter
dscp-value: Specifies a DSCP value, ranging from 0 to 63. It also can be a key word, as shown in the following table.
Table 2-7 Relationship between DSCP keywords and values
Key word |
DSCP value (binary) |
DSCP value (decimal) |
default |
000000 |
0 |
af11 |
001010 |
10 |
af12 |
001100 |
12 |
af13 |
001110 |
14 |
af21 |
010010 |
18 |
af22 |
010100 |
20 |
af23 |
010110 |
22 |
af31 |
011010 |
26 |
af32 |
011100 |
28 |
af33 |
011110 |
30 |
af41 |
100010 |
34 |
af42 |
100100 |
36 |
af43 |
100110 |
38 |
cs1 |
001000 |
8 |
cs2 |
010000 |
16 |
cs3 |
011000 |
24 |
cs4 |
100000 |
32 |
cs5 |
101000 |
40 |
cs6 |
110000 |
48 |
cs7 |
111000 |
56 |
ef |
101110 |
46 |
Description
Use the remark dscp command to configure the DSCP value of a packet.
Use the undo remark dscp command to remove the DSCP value of the packet.
Related command: qos policy, traffic behavior, and classifier behavior
Example
# Configure the DSCP value of the packet as 6.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] remark dscp 6
2.1.15 remark ip-precedence
Syntax
remark ip-precedence ip-precedence-value
undo remark ip-precedence
View
Traffic behavior view
Parameter
ip-precedence-value: specifies an IP priority , ranging from 0 to 7.
Description
Use the remark ip-precedence command to configure the IP priority of a packet.
Use the undo remark ip-precedence command to remove the IP priority of the packet.
Related command: qos policy, traffic behavior, and classifier behavior
Example
# Configure the IP priority of the packet as 6.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] remark ip-precedence 6
2.1.16 remark local-precedence
Syntax
remark local-precedence local-precedence
undo remark local-precedence
View
Traffic behavior view
Parameter
local-precedence: Marked local precedence, in the range of 0 to 7.
Description
Use the remark local-precedence command to configure the local precedence of a packet.
Use the undo remark local-precedence command to remove the local precedence of the packet.
Related command: qos policy, traffic behavior, and classifier behavior.
Caution:
remark dot1p and remark local-precedence cannot be configured at the same time.
Example
# Define the action of marking the local precedence of the packet to 2.
<H3C> system-view
[H3C] traffic behavior database
[H3C-behavior-database] remark local-precedence 2
2.1.17 traffic behavior
Syntax
traffic behavior behavior-name
undo traffic behavior behavior-name
View
System view
Parameter
behavior-name: Traffic behavior name, a string of 1 to 31 characters.
Description
Use the traffic behavior command to define a traffic behavior and enter traffic behavior view.
Use the undo traffic behavior command to delete a traffic behavior.
Related command: qos policy, qos apply policy, and classifier behavior.
Example
# Define a traffic behavior named behavior1.
<H3C> system-view
[H3C] traffic behavior behavior1
[H3C-behavior-behavior1]
2.1.18 traffic classifier
Syntax
traffic classifier tcl-name [ operator { and | or } ]
undo traffic classifier tcl-name [ operator { and | or } ]
View
System view
Parameter
and: Specifies the logic relationship among rules in a class as “and”, that is, a packet belongs to this class only when the packet match all the rules.
or: Specifies the logic relationship among rules in a class as “or”, that is, a packet belongs to this class as long as it matches any of the rules.
tcl-name: Class name, a string of 1 to 31 characters.
Description
Use the traffic classifier command to define a class and enter class view.
Use the undo traffic classifier command to delete a class.
By default, the operator is and.
Related command: qos policy, qos apply policy, and classifier behavior.
Example
# Define a class named class1.
<H3C> system-view
[H3C] traffic classifier class1
[H3C-classifier-class1]
Chapter 3 WRR Queue Configuration Commands
3.1 WRR Queue Configuration Commands
3.1.1 display qos sp
Syntax
display qos sp interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type: Port type.
interface-number: Port number.
Description
Use the display qos sp interface command to display the strict priority (SP) queuing configuration on a specified port.
If no port is specified, this command displays the SP queuing configuration on all ports.
Related command: qos sp.
Example
# Display the SP queuing configuration on GigabitEthernet 1/0/1.
<H3C> display qos sp interface GigabitEthernet 1/0/1
Interface: GigabitEthernet1/0/1
Output queue: Strict-priority queue
3.1.2 display qos wrr interface
Syntax
display qos wrr interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type: Port type.
interface-number: Port number.
Description
Use the display qos wrr interface command to display the configuration of weighted round robin (WRR) queues of a port.
If no port number is specified, the command displays the configurations of WRR queues of all ports.
Related command: qos wrr.
Example
# Display the configuration of WRR queues of GigabitEthernet 1/0/1.
<H3C> display qos wrr interface GigabitEthernet 1/0/1
Interface: GigabitEthernet1/0/1
Output queue: Weighted round robin queue
Queue ID Group Weight
-------------------------------------
0 sp N/A
1 1 100
2 1 100
3 1 75
4 1 100
5 1 100
6 1 100
7 1 100
Table 3-1 Description on the fields of the display qos wrr interface command
Field |
Description |
Interface |
Port name, composed of port type and port number |
Output queue |
The type of the current output queue |
Queue ID |
ID of the queue |
Group |
Group ID, indicating which group a queue belongs to. The group ID is 1 by default. |
Weight |
The weight of each queue during scheduling |
3.1.3 qos sp
Syntax
qos sp
undo qos sp
View
Ethernet interface view/port group view
Parameter
None
Description
Use the qos sp command to configure SP queuing on the current port.
Use the undo qos sp command to restore the default queuing algorithm on the port.
By default, the switch adopts the WRR queue-scheduling algorithm.
Related command: display qos sp interface.
Example
# Configure SP queuing on GigabitEthernet 1/0/1.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1] qos sp
3.1.4 qos wrr
Syntax
qos wrr queue-id group { sp | group-id weight queue-weight }
undo qos wrr
View
Ethernet interface view/port group view
Parameter
queue-id: ID of the queue, in the range of 0 to 7.
group-id: It can only be 1.
weight schedule-value: Specifies the scheduling weight of a queue, rang from 1 to 15.
group sp: Configures SP queuing.
Description
Use the qos wrr weight command to configure the WRR queue or modify the parameters of the WRR queue on the port.
Use the undo qos wrr command to restore the default queue-scheduling algorithm on the port.
By default, the switch adopts the WRR queue-scheduling algorithm.
As required, you can configure part of the queues on the port to adopt the SP queue-scheduling algorithm and parts of queues to adopt the WRR queue-scheduling algorithm. Through adding the queues on a port to the SP scheduling group and WRR scheduling group (namely, group 1), the SP+WRR queue scheduling is implemented. During the queue scheduling process, the queues in the SP scheduling group is scheduled preferentially. When no packet is to be sent in the queues in the SP scheduling group, the queues in the WRR scheduling group are scheduled. The queues in the SP scheduling group are scheduled according to the strict priority of each queue, while the queues in the WRR queue scheduling group are scheduled according the weight value of each queue.
Related command: display qos wrr interface.
Example
# Apply the SP+WRR queuing on GigabitEthernet 1/0/1 and set queue 0 to sp and queue 1 to WRR with a weight of 10.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]qos wrr 0 group sp
[H3C-GigabitEthernet1/0/1]qos wrr 1 group 1 weight 10
Chapter 4 Priority Mapping Configuration Commands
4.1 Priority Mapping Configuration Commands
4.1.1 display qos map-table
Syntax
display qos map-table [ dot1p-lp ]
View
Any view
Parameter
dot1p-lp: “802.1p priority->Local precedence” mapping table.
Description
Use the display qos map-table command to display the configuration of the specified priority mapping table.
Related command: qos map-table.
Example
# Display the configurations of the “802.1p priority->Local precedence” mapping table.
<H3C> display qos map-table dot1p-lp
MAP-TABLE NAME: dot1p-lp TYPE: pre-define
IMPORT : EXPORT
0 : 2
1 : 0
2 : 1
3 : 3
4 : 4
5 : 5
6 : 6
7 : 7
Table 4-1 Description on the fields of the display qos map-table command
Field |
Description |
MAP-TABLE NAME |
The name of the mapping table |
TYPE |
The type of the mapping table |
IMPORT |
The import entries of the mapping table |
EXPORT |
The export entries of the mapping table |
4.1.2 qos map-table
Syntax
qos map-table dot1p-lp
View
System view
Parameter
dot1p-lp: “802.1p priority->Local precedence” mapping table.
Description
Use the qos map-table command to enter the specified priority mapping view.
Related command: display qos map-table.
& Note:
The S5500-SI Series Ethernet Switches support only the packet priority trust mode and do not support the edit of dot1p-lp (802.1p priority to local priority) mapping table.
Example
# Enter the “802.1p priority->Local precedence” mapping table view.
<H3C> system-view
[H3C] qos map-table dot1p-lp
[H3C-maptbl-dot1p-lp]
4.1.3 qos priority
Syntax
qos priority priority-value
undo qos priority
View
Ethernet interface view/port group view
Parameter
priority-value: Value of port priority.
Description
Use the qos priority command to configure the port priority of the current port.
Use the undo qos priority command to restore the port priority to the default value.
The value of the port priority is 0 by default.
& Note:
The port priority setting only takes effect on untagged packets; it does not take effect on tagged packets.
Example
# Set the port priority of GigabitEthernet1/0/1 to 2.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1] qos priority 2
Chapter 5 VLAN Policy Commands
5.1 VLAN Policy Commands
5.1.1 display qos vlan-policy
Syntax
display qos vlan-policy { name policy-name | vlan [ vlan-id ] }
View
Any view
Parameter
name policy-name: Displays by the policy name. policy-name: a string of 1 to 31 characters.
vlan [ vlan-id ]: Displays by the VLAN ID.
Description
Use the display qos vlan-policy command to display information about QoS policies applied on VLAN(s).
Example
# Display information about the VLAN policy applied on VLANs.
<H3C> display qos vlan-policy vlan
Vlan 1
Policy test5: inbound (active)
Vlan 60
Policy test5: inbound (active)
Table 5-1 Description on the fields of the display qos vlan-policy command
Field |
Description |
Vlan 1 |
VLAN ID |
Policy test5: inbound (active) |
Name of the QoS policy, which is an inbound policy in active state now |
# Display information about the QoS policy "test" applied on VLANs.
<H3C> display qos vlan-policy name test
Policy test
Vlan 300: inbound (active)
Table 5-2 Description on the fields of the display qos vlan-policy name command
Field |
Description |
Policy |
It is followed by a QoS policy name. |
Vlan 300 |
VLAN ID the QoS is applied to |
inbound (active) |
inbound: indicates the QoS policy is applied to inbound packets of the VLAN. active: indicates the QoS policy takes effect. |
# Display QoS policy information on VLAN 2.
<H3C> display qos vlan-policy vlan 2
Vlan 2
Direction: Inbound (active)
Policy: vlan
Classifier: vlan
Operator: AND
Rule(s) : If-match acl 2000
Behavior: vlan
Accounting Enable:
0 (Packets)
Committed Access Rate:
CIR 640 (kbps), CBS 40000 (byte)
Red Action: discard
Table 5-3 Description on the fields of the display qos vlan-policy vlan command
Field |
Description |
Vlan 2 |
VLAN ID that you specified |
Inbound (active) |
Inbound: Indicates the following QoS policy is applied to inbound packets. active: Indicates the QoS policy takes effect. |
Classifier |
It is followed by the name and contents of a class |
Operator |
Logical relationship between classification rules |
Rule(s) |
Classification rule(s) |
Behavior |
Name and contents of the traffic behavior |
Accounting |
Accounting for traffic behavior |
Committed Access Rate |
Information about traffic limiting |
CIR |
Committed information rate, in kbps. |
CBS |
committed burst size (in bytes), that is, the size of the token bullet accommodating burst traffic |
Red Action: discard |
The discard action is taken when the traffic rate exceeds CIR. |
5.1.2 qos vlan-policy
Syntax
qos vlan-policy policy-name vlan vlan-id-list inbound
undo qos vlan-policy vlan vlan-id-list inbound
View
System view
Parameter
policy-name: Policy name, a string of 1 to 31 characters.
vlan-id-list: VLAN ID list in the form of vlan-id to vlan-id. You can enter multiple discontinuous VLAN IDs. The device allows you to specify up to eight VLAN IDs at the same time.
inbound: Apply QoS policies to inbound packets of a VLAN.
Description
Use the qos vlan-policy command to apply a QoS policy to specified VLANs.
Use the undo qos vlan-policy command to cancel the QoS policy application on specified VLANs.
QoS polices support the following application modes:
l Port-based application: QoS policies are effective for inbound packets of a port
l VLAN-based application: QoS policies are effective for inbound traffic of a VLAN
VLAN-based QoS policies are also known as VLAN policies for short.
Example
# Apply the VLAN policy named test to the inbound direction of VLAN 200, VLAN 300, VLAN 400, VLAN 500, VLAN 600, VLAN 700, VLAN 800 and VLAN 900.
<H3C> system-view
[H3C] qos vlan-policy test vlan 200 300 400 500 600 700 800 900 inbound
5.1.3 reset qos vlan-policy
Syntax
reset qos vlan-policy [ vlan vlan-id ]
View
User view
Parameter
vlan-id: VLAN ID, ranging from 1 to 4094.
Description
Use the reset qos vlan-policy command to clear QoS policy statistics on VLAN(s).
If the argument of vlan vlan-id is not specified, this command will clear all QoS policy statistics.
Example
# Clear QoS policy statistics on VLAN 2.
<H3C> reset qos vlan-policy vlan 2
Chapter 6 Traffic Mirroring Configuration Commands
6.1 Traffic Mirroring Configuration Commands
6.1.1 display qos policy user-defined
Syntax
display qos policy user-defined [ policy-name [ classifier tcl-name ] ]
View
Any view
Parameter
policy-name: QoS Policy name.
tcl-name: Name of a traffic classification rule in the policy.
Description
Use the display qos policy user-defined command to display the configuration information of one or all user-defined QoS policies.
Example
# Display the configuration information of a user-defined QoS policy.
<H3C> display qos policy user-defined
User Defined QoS Policy Information:
Policy: 1
Classifier: 1
Behavior: 1
Mirror enable:
Mirror type: interface
Mirror destination: GigabitEthernet1/0/1
Table 6-1 Description on the fields of the display qos policy user-defined command
Field |
Description |
Policy |
QoS policy name |
Classifier |
Traffic classification rule name |
Behavior |
Traffic behavior name |
Mirror enable |
Traffic mirroring is enabled |
Mirror type |
Traffic mirroring type |
Mirror destination |
Mirroring port |
6.1.2 display traffic behavior user-defined
Syntax
display traffic behavior user-defined [ behavior-name ]
View
Any view
Parameter
behavior-name: Traffic behavior name.
Description
Use the display traffic behavior user-defined command to display the configuration information of one or all user-defined traffic behaviors.
Example
# Display the configuration information of all user-defined traffic behavior.
<H3C> display traffic behavior user-defined
User Defined Behavior Information:
Behavior: 1
Mirror enable:
Mirror type: interface
Mirror destination: GigabitEthernet1/0/1
Table 6-2 Description on the fields of the display traffic behavior user-defined command
Field |
Description |
Behavior |
Traffic behavior name |
Mirror enable |
Traffic mirroring is enabled |
Mirror type |
Traffic mirroring type |
Mirror destination |
Mirroring port |
6.1.3 mirror-to interface
Syntax
mirror-to interface interface-type interface-number
undo mirror-to interface interface-type interface-number
View
Traffic behavior view
Parameter
interface-type interface-number: Type and number of the mirroring port you want to specify.
Description
Use the mirror-to interface command to configure the action of mirroring traffic to a specified port.
Use the undo mirror-to interface command to cancel the action of mirroring traffic to a specified port.
& Note:
l Port mirroring cannot be performed on the packets passing through traffic mirroring. That is, if you set the traffic mirroring port to a mirrored port of a port mirroring group, the packets passing through traffic mirroring will not reach the mirroring port of the group.
l When you configure a port (an inbound port, or a VLAN port for VLAN policy) to be both the mirrored port of traffic mirroring and the mirrored port of a port mirroring group, traffic mirroring will take precedence over port mirroring on the port. That is, the packets that match traffic rules will be mirrored to the traffic mirroring port, and the remaining packets that do not match traffic rules will be mirrored to the mirroring port of the port mirroring group.
Example
# Enter the view of traffic behavior 1 and configure the action of mirroring traffic to GigabitEthernet 1/0/1.
<H3C> system-view
[H3C] traffic behavior 1
[H3C-behavior-1] mirror-to interface GigabitEthernet 1/0/1