Upload
latrille
View
225
Download
0
Embed Size (px)
Citation preview
8/12/2019 Tgcvmqmp QoS Command
1/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Table of Contents
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
i
Table of Contents
Chapter 1 TP and TS Configuration Commands........................................................................ 1-1
1.1 TP Configuration Commands ............................................................................................ 1-1
1.1.1 display qos car interface ......................................................................................... 1-1
1.1.2 qos car..................................................................................................................... 1-2
1.2 TS Configuration Commands ............................................................................................ 1-3
1.2.1 display qos gts interface.......................................................................................... 1-3
1.2.2 qos gts..................................................................................................................... 1-4
Chapter 2 QoS Policy Configuration Commands ...................................................................... 2-1
2.1 Commands for Defining Classes ....................................................................................... 2-1 2.1.1 display traffic classifier ............................................................................................ 2-1
2.1.2 if-match.................................................................................................................... 2-2
2.1.3 traffic classifier......................................................................................................... 2-5
2.2 Traffic Behavior Configuration Commands........................................................................ 2-5
2.2.1 accounting............................................................................................................... 2-5
2.2.2 car ........................................................................................................................... 2-6
2.2.3 display traffic behavior ............................................................................................ 2-8
2.2.4 filter.......................................................................................................................... 2-9
2.2.5 nest........................................................................................................................ 2-10
2.2.6 primap ................................................................................................................... 2-10
2.2.7 redirect .................................................................................................................. 2-11
2.2.8 remark dot1p ......................................................................................................... 2-12
2.2.9 remark drop-precedence....................................................................................... 2-13
2.2.10 remark dscp......................................................................................................... 2-13
2.2.11 remark ip-precedence ......................................................................................... 2-15
2.2.12 remark local-precedence..................................................................................... 2-15
2.2.13 remark service-vlan-id......................................................................................... 2-16
2.2.14 traffic behavior..................................................................................................... 2-17
2.3 QoS Policy Configuration Commands ............................................................................. 2-17 2.3.1 classifier behavior ................................................................................................. 2-17
2.3.2 display qos policy user-defined............................................................................. 2-18
2.3.3 display qos policy interface ................................................................................... 2-19
2.3.4 qos apply policy..................................................................................................... 2-21
2.3.5 qos policy .............................................................................................................. 2-21
Chapter 3 Congestion Avoidance Configuration Commands .................................................. 3-1
3.1 WRR Queue Configuration Commands ............................................................................ 3-1
3.1.1 display qos wrr interface ......................................................................................... 3-1
3.1.2 qos wrr..................................................................................................................... 3-2
8/12/2019 Tgcvmqmp QoS Command
2/53
Table of ContentsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
ii Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
3.2 SP Queue Configuration Commands ................................................................................ 3-3
3.2.1 qos wrr group sp...................................................................................................... 3-3
Chapter 4 Priority Mapping Configuration Commands............................................................. 4-1
4.1 Priority Mapping Table Configuration Commands............................................................. 4-1 4.1.1 display qos map-table ............................................................................................. 4-1
4.1.2 qos map-table.......................................................................................................... 4-2
4.1.3 import ...................................................................................................................... 4-3
4.2 Port Priority Configuration Commands .............................................................................. 4-3
4.2.1 qos priority............................................................................................................... 4-3
4.3 Port Priority Trust Mode Configuration Commands........................................................... 4-4
4.3.1 display qos trust interface ....................................................................................... 4-4
4.3.2 qos trust................................................................................................................... 4-5
Chapter 5 Congestion Avoidance Configuration Commands .................................................. 5-5
5.1 WRED Configuration Commands...................................................................................... 5-5
5.1.1 display qos wred interface....................................................................................... 5-5
5.1.2 qos wred.................................................................................................................. 5-5
Chapter 6 Aggregation CAR Configuration Commands ........................................................... 6-5
6.1 Aggregation CAR Configuration Commands..................................................................... 6-5
6.1.1 qos car aggregative................................................................................................. 6-5
6.1.2 qos car..................................................................................................................... 6-5
6.1.3 car name ................................................................................................................. 6-5
6.1.4 display qos car name .............................................................................................. 6-5
6.1.5 display qos car interface ......................................................................................... 6-5
6.1.6 reset qos car name ................................................................................................. 6-5
Chapter 7 VLAN Policy Configuration Commands.................................................................... 7-5
7.1 VLAN Policy Configuration Commands............................................................................. 7-5
7.1.1 display qos vlan-policy ............................................................................................ 7-5
7.1.2 qos vlan-policy......................................................................................................... 7-5
7.1.3 reset qos vlan-policy ............................................................................................... 7-5
Chapter 8 Traffic Mirroring Configuration Commands.............................................................. 8-5
8.1 Traffic Mirroring Configuration Commands........................................................................ 8-5
8.1.1 display qos policy user-defined............................................................................... 8-5
8.1.2 display traffic behavior user-defined ....................................................................... 8-5
8.1.3 mirror-to interface.................................................................................................... 8-5
8/12/2019 Tgcvmqmp QoS Command
3/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 1 TP and TS Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
1-1
Chapter 1 TP and TS Configuration Commands
1.1 TP Configuration Commands
1.1.1 display qos car interface
Syntax
display qos car interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type : Port type.
interface -number : Port number.
Description
Use the display qos car interface command to display the CAR (committed access
rate) settings and statistics of a port.
If no ports are specified, this command displays the CAR setting and statistics of all theports.
Example
# Display the CAR settings and statistics of Ethernet1/0/1 port.
display qos car interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Direction: Inbound
Rule(s): If-match acl 2001
CIR 64 (kbps), CBS 100000 (byte), EBS 100000 (byte) , PIR 100000 (kbps)
Red Action : discard
Green : 0(Bytes)
Table 1-1 Description on the fields of the display qos car command
Field Description
Interface Port name, comprising of port type and portnumber
DirectionDirection of traffic policing (TP). As for QuidwayS3500-EA series Ethernet switches, TP is
available to inbound packets only.
8/12/2019 Tgcvmqmp QoS Command
4/53
Chapter 1 TP and TS Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
1-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Field Description
Rule(s) Rules used for matching packets
CIR Committed information rate (CIR), in kbps
Conform Action Action to be taken for packets when the traffic rateis lower than CIR
Red Action Action to be taken for packets when the traffic rateexceeds CIR
Green Size of the packets (in bytes) when the traffic rateis lower than CIR
1.1.2 qos car
Syntax
qos car inbound acl [ ipv6 ] { acl-number { cir committed-information-rate [ cbs
committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ red
action ] | name global-car-name } }
undo qos car inbound { acl [ ipv6 ] acl-number }
View
Ethernet port view, port group view
Parameter
inbound : Limits the inbound traffic.
acl acl-number : Specifies an ACL. The acl-number argument can identify both IPv4
ACLs (including basic ACLs, advanced ACLs, layer-2 ACLs, and user-defined ACLs)
and IPv6 ACLs (including basic ACLs and advanced ACLs).
cir committed-information-rate : Specifies the committed information rate (CIR) in kbps.
The committed-information-rate argument ranges from 4 to 1,000,000.
cbs committed-burst-size : Specifies the committed burst size (CBS) in bytes. The
committed-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.
ebs excess-burst-size : Specifies the excess burst size (EBS) in bytes. The
excess-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.
pir peak-information-rate : Specifies the peak information rate (PIR) in kbps. The
peak-information-rate argument ranges from 4 to 1,000,000.
If PIR is not configured, only one token bucket is used for TP. Otherwise, two token
buckets are used.
red : Specifies the action to be conducted to packets when the traffic does not conform
to CIR.
8/12/2019 Tgcvmqmp QoS Command
5/53
8/12/2019 Tgcvmqmp QoS Command
6/53
Chapter 1 TP and TS Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
1-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
display qos gts interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Rule(s): If-match queue 0
CIR 650 (kbps)
Table 1-2 Description on the fields of the display qos gts interface command
Field Description
Interface Port name, comprising of port type and port number
Rule(s) Matching rules, which can be any of the three types
CIR Committed information rate (CIR) in kbps
1.2.2 qos gts
Syntax
qos gts { any | queue queue-number } cir committed-information-rate
undo qos gts { any | queue queue-number }
View
Ethernet port view, port group view
Parameterany : Performs traffic shaping (TS) for all the packets.
queue queue-number : Performs TS for packets in the queue identified by the
queue-number argument, in the range of 0 to 7.
cir committed-information-rate : Specifies the committed information rate (CIR),in the
range of 650 to 1000000, which must be a multiple of 650 (in kbps).
Description
Use the qos gts command to set TS parameters and enable TS for a specific type of
traffic or all types of traffic.
Use the undo qos gts command to remove TS parameters for a specific type traffic or
all types of traffic. .
The qos gts any command sets TS parameters for all types of traffic.
The qos gts queue command sets TS parameters for the packets in a specific queue.
By default, no TS parameters are configured for a port.
8/12/2019 Tgcvmqmp QoS Command
7/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 1 TP and TS Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
1-5
Example
# Perform TS for all the packets on Ethernet1/0/1 port. Packets with the rate lower than
650 kbps are forwarded normally. Those with the rate exceeding 650 kbps are cached
in the buffering queues.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos gts any cir 650
8/12/2019 Tgcvmqmp QoS Command
8/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-1
Chapter 2 QoS Policy Configuration Commands
2.1 Commands for Defining Classes
2.1.1 display traffic classifier
Syntax
display traffic classifier user-defined [ classifier-name ]
View
Any view
Parameter
user-defined : Specifies classes defined by users.
classifier-name : Class name.
Description
Use the display traffic classifier command to display the information about a class.
If no class name is provided, this command displays the information about all the
user-defined classes.
Example
# Display the information about the user-defined classes.
display traffic classifier user-defined
User Defined Classifier Information:
Classifier: p
Operator: AND
Rule(s) : If-match acl 2001
Table 2-1 Description on the fields of the display traffic classifier user-definedcommand
Field Description
User Defined ClassifierInformation
The information about the user-defined classes isdisplayed.
Classifier Class name and its contents, which could be ofmultiple types
Operator Logical relationship among the classification rules
Rule Classification rules
8/12/2019 Tgcvmqmp QoS Command
9/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2.1.2 if-match
Syntax
if-match match-criteria undo if-match match-criteria
View
Class view
Parameter
match-criteria : Matching rule to be defined. Table 2-2 describes the available forms of
this argument.
Table 2-2 The forms of the match-criteria argument
Field Description
aclaccess-list-number
Specifies an ACL to match packets. Theaccess-list-number argument is in the range 2000 to 5999.
acl ipv6access-list-number
Specifies an IPv6 ACL to match IPv6 packets. Theaccess-list-number argument is in the range 2000 to 3999.
any Specifies to match all packets.
dscp dscp-list
Specifies to match packets by DSCP precedence. Thedscp-list argument is a list of DSCP values. You canprovide up to eight space-separated DSCP values for thisargument. DSCP is in the range 0 to 63.
destination-macmac-address
Specifies to match the packets with a specified destinationMAC address.
dot1p 8021p
Specifies to match packets by 802.1p priority. The 8021p argument is a list of COS values. You can provide up toeight space-separated COS values for this argument. COSis in the range 0 to 7.
ip-precedence ip-precedence-list
Specifies to match packets by IP precedence. Theip-precedence-list argument is a list of IP precedence
values. You can provide up to eight space-separated IPprecedence values for this argument. IP precedence is inthe range 0 to 7.
protocol protocol-name
Specifies to match the packets of a specified protocol. The protocol-name argument can be IP, IPv6 or Bittorrent.
The S3500-EA series Ethernet switches do not support theBittorrent protocol currently.
source-mac mac-address
Specifies to match the packets with a specified source MACaddress.
8/12/2019 Tgcvmqmp QoS Command
10/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-3
Field Description
customer-vlan-idvlan-id-list
Specifies to match the packets of specified VLANs of usernetworks. The vlan-id-list argument specifies a list of VLANIDs. You can provide up to eight space-separated VLANIDs for this argument. VLAN ID is in the range 1 to 4094.
service-vlan-id vlan-id-list
Specifies to match the packets of specified VLANs of theoperators network. The vlan-id-list argument is a list ofVLAN IDs. You can provide up to eight space-separatedVLAN IDs for this argument. VLAN ID is in the range 1 to4094.
Description
Use the if-match command to define a rule to match a specific type of packets.
Use the undo if-match command to remove a matching rule.
Note:
When you specify the logic relationship as and, please obey the following restrictions
when defining a match rule; otherwise, you will fail to apply the policies.
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.
You can configure only one ACL rule.
If you have configured the ACL IPv6 rule, you cannot configure other rules except
if-match any at the same time.
Example
# Define a rule for class 1 to match the packets with their destination MAC addresses
being 0050-ba27-bed3.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match destination-mac 0050-ba27-bed3
# Define a rule for class 2 to match the packets with their source MAC addresses being
0050-ba27-bed2.
system-view
[Sysname] traffic classifier class2
[Sysname-classifier-class2] if-match source-mac 0050-ba27-bed2
# Specify ACL 3101 for class 1 to match packets.
system-view
8/12/2019 Tgcvmqmp QoS Command
11/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match acl 3101
# Specify ACL 3101 for class 1 to match IPv6 packets.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match acl ipv6 3101
# Define a rule for class 1 to match all the packets.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match any
# Define a rule for class1 to match the packets with their DSCP precedence values
being 1.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match dscp 1
# Define a rule for class1 to match the packets with their IP precedence values being 1.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match ip-precedence 1
# Define a rule for class 1 to match IP packets.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match protocol ip
# Define a rule for class1 to match the packets with their 802.1p priority values being 2.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match dot1p 2
# Define a rule for class1 to match the packets of VLAN 1024 of the user networks.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match customer-vlan-id 1024
# Define a rule for class1 to match the packets of VLAN 1000 of the operators network.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match service-vlan-id 1000
8/12/2019 Tgcvmqmp QoS Command
12/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-5
2.1.3 traffic classifier
Syntax
traffic classifier classifier-name [ operator { and | or } ]undo traffic classifier classifier-name
View
System view
Parameter
and : Specifies the relationship among the rules in the class as logic AND. That is, a
packet is matched only when it matches all the rules defined for the class.
or : Specifies the relationship among the rules in the class as logic OR. That is, a packetis matched if it matches a rule defined for the class.
classifier-name : Name of the class to be created.
Description
Use the traffic classifier command to create a class. This command also leads you to
class view.
Use the undo traffic classifier command to remove a class.
By default, a packet is matched only when it matches all the rules configured for the
class.
Example
# Create a class named class 1.
system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1]
2.2 Traffic Behavior Configuration Commands
2.2.1 accounting
Syntax
accounting
undo accounting
View
Traffic behavior view
8/12/2019 Tgcvmqmp QoS Command
13/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-6 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Parameter
None
DescriptionUse the accounting command to configure the traffic accounting action for a traffic
behavior.
Use the undo accounting command to remove the traffic accounting action.
Related command: qos policy , traffic behavior , and classifier behavior .
Note:
The traffic accounting action and the aggregation CAR action cannot be configure in
the same traffic behavior. Otherwise, the policy cannot be applied successfully.
Example
# Configure the traffic accounting action for a traffic behavior.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] accounting
2.2.2 car
Syntax
car { cir committed-information-rate [ cbs committed-burst-size [ ebs
excess-burst-size ] ] [ pir peak-information-rate ] [ red action ] | name
global-car-name }
undo car
View
Traffic behavior view
Parameter
cir committed-information-rate : Specifies the committed information rate (CIR) in kbps,
which specifies the average traffic rate. The committed-information-rate argument
ranges from 4 to 1,000,000.
cbs committed-burst-size : Specifies the committed burst size (CBS) in bytes. The
committed-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.
8/12/2019 Tgcvmqmp QoS Command
14/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-7
ebs excess-burst-size : Specifies excess burst size (EBS) in bytes. The
committed-burst-size argument ranges from 0 to 10,000,000, the default is 100,000.
pir peak-information-rate : Specifies the peak information rate (PIR) in kbps. The
peak-information-rate argument ranges from 4 to 1,000,000.red : Specifies the action to be conducted to packets when the traffic does not conform
to the CIR.
action : Action to be conducted on the packets, which can be:
discard , which drops the packet and is the default.
pass , which forwards the packets.
name global-car-name : Specifies the name of the aggregation CAR.
Note:
The traffic accounting action and the aggregation CAR action cannot be configure in
the same traffic behavior. Otherwise, the policy cannot be applied successfully.
Description
Use the car command to configure TP action for a traffic behavior.
Use the undo car command to remove the TP action.
Note that:
As for S3500-EA series Ethernet switches, the TP action is only available to
inbound packets.
Application of policy including TP action on a port will cause the configuration
performed by the qos car command ineffective. If you configure the TP action for a traffic behavior for multiple times, only the last
configuration takes effect.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure TP action for a traffic behavior. When the traffic rate is lower than 200 kbps,
packets are forwarded normally. When the traffic rate exceeds 200 kbps, the packets
beyond 200 kbps are dropped.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] car cir 200 red discard
8/12/2019 Tgcvmqmp QoS Command
15/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-8 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2.2.3 display traffic behavior
Syntax
display traffic behavior user-defined [ behavior-name ]
View
Any view
Parameter
user-defined : Specifies user defined behaviors.
behavior-name : Name of a user defined traffic behavior.
Description
Use the display traffic behavior command to display the information about a user
defined traffic behavior.
If no behavior name is provided, this command displays the information about all the
user-defined behaviors.
Example
# Display the information about all the user defined traffic behaviors.
display traffic behavior user-defined
User Defined Behavior Information:
Behavior: test
Marking:
Remark dot1p COS 4
Committed Access Rate:
CIR 1000 (kbps) , CBS 100000 (byte), EBS 100000 (byte), PIR 1000 (kbps)
Red Action: discard
Table 2-3 Description on the fields of the display traffic behavior user-defined
command
Field Description
User Defined BehaviorInformation
The information about user defined traffic behaviorsis displayed
Behavior Name of a traffic behavior, which can be of multipletypes
Marking Information about priority marking
Committed Access Rate Information about traffic rate limit
CIR Parameter for the aggregation CAR
8/12/2019 Tgcvmqmp QoS Command
16/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-9
Field Description
CBS Committed burst size in bytes, that is, the depth ofthe token bucket for holding burst traffic
EBS Excessive burst size in bytes, that is, the trafficexceeding CBS when two token buckets are adopted
PIR The peak information rate (PIR)
Red Action: discard Action for red packets
2.2.4 filter
Syntax
filter { deny | permit }
undo filter
View
Traffic behavior view
Parameter
deny : Drops packets.
permit : Forwards packets.
Description
Use the filter command to configure traffic filtering action for a traffic behavior.
Use the undo accounting command to remove the traffic filtering action.
Note:
When defining a traffic behavior, do not configured the filter deny action with any other
action at the same time. Otherwise, the traffic policy cannot be applied successfully.
Example
# Configure traffic filtering action for a traffic behavior.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] filter deny
8/12/2019 Tgcvmqmp QoS Command
17/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-10 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2.2.5 nest
Syntax
nest top-most vlan-id vlan-idundo nest
View
Traffic behavior view
Parameter
vlan-id vlan-id : ID of the VLAN whose tag is to be inserted in packets. The vlan-id
argument is in the range 1 to 4094.
Description
Use the nest command configure an external VLAN tag for a traffic behavior.
Use the undo nest command to remove the external VLAN tag.
Example
# Configure an external VLAN tag for a traffic behavior.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] nest top-most vlan-id 100
2.2.6 primap
Syntax
primap pre-defined { dscp-lp | dscp-dp | dscp-dot1p | dscp-dscp }
undo primap pre-defined { dscp-lp | dscp-dp | dscp-dot1p | dscp-dscp }
View
Traffic behavior view
Parameter
pre-defined : Specifies a pre-defined priority mapping table.
dscp-lp : Specifies the DSCP-to-local precedence mapping table.
dscp-dp : Specifies the DSCP-to-drop precedence mapping table.
dscp-dot1p : Specifies the DSCP-to-802.1p priority mapping table.
dscp-dscp : Specifies the DSCP-to-DSCP mapping table.
8/12/2019 Tgcvmqmp QoS Command
18/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-11
Description
Use the primap command to configure the action of getting other precedence for
packets by looking up a priority mapping table.
Use the primap command to remove the action.
If both the priority mapping action and the remarking DSCP precedence action are
configured in a traffic behavior, the QoS policies related to this traffic behavior can be
applied to a switch successfully. In this case, the switch uses the DSCP precedence set
by the remarking DSCP precedence action to get the precedence for packets by
looking up in the priority mapping table.
If the priority mapping action and one of the priority remarking actions (except the
DSCP precedence remarking action) are configured in the same traffic behavior, the
QoS policies related to the traffic behavior cannot be applied to a switch successfully.
Related command: display qos map-table .
Example
# Get the drop precedence for packets by looking up in the DSCP-to-drop precedence
mapping table.
system-view
[Sysname] traffic behavior behavior1
[Sysname-behavior-behavior1] primap pre-defined dscp-dp
2.2.7 redirect
Syntax
redirect { interface interface-type interface-number | next-hop { ipv4-add [ ipv4-add ] |
ipv6-add [ interface-type interface-number ] [ ipv6-add [ interface-type
interface-number ] ] } }
undo redirect
View
Traffic behavior view
Parameter
interface : Specifies the port to redirect to.
next-hop : Specifies the next hop to redirect to.
interface-type interface-number : Port type and port number.
ipv4-add : IPv4 address of the next hop.
8/12/2019 Tgcvmqmp QoS Command
19/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-12 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
ipv4-add : IPv6 address of the next hop. If the IPv6 address is a local address, you need
to specify the port as well. If the IPv6 address is not a local address, the port is not
needed.
Description
Use the redirect command to configure traffic redirecting action for a traffic behavior.
Use the undo redirect command to remove the traffic redirecting action.
Example
# Configure the redirecting action to redirect traffic to Ethernet1/0/1 port.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] redirect interface Ethernet 1/0/1
2.2.8 remark dot1p
Syntax
remark dot1p 8021p
undo remark dot1p
View
Traffic behavior view
Parameter
8021p : 802.1p priority to be set for packets, in the range 0 to 7.
Description
Use the remark dot1p command to configure the action of setting 802.1p priority for
packets.
Use the undo remark dot1p command to remove the action of setting 802.1p priority.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure the action to set 802.1p priority to 2 for packets.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] remark dot1p 2
8/12/2019 Tgcvmqmp QoS Command
20/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-13
2.2.9 remark drop-precedence
Syntax
remark drop-precedence drop-precedence-valueundo remark drop-precedence
View
Traffic behavior view
Parameter
drop-precedence-value : Drop precedence to be set for packets, in the range 0 to 2.
Description
Use the remark drop-precedence command to configure the action of setting drop
precedence for packets.
Use the undo remark drop-precedence command to remove the action of setting
drop precedence.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure the action to set drop precedence to 2 for packets.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] remark drop-precedence 2
2.2.10 remark dscp
Syntax
remark dscp dscp-value
undo remark dscp
View
Traffic behavior view
Parameter
dscp-value : DSCP precedence to be set for packets, in the range of 0 to 63. This
argument can also be the keywords listed in Table 2-4 .
8/12/2019 Tgcvmqmp QoS Command
21/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-14 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Table 2-4 DSCP keywords and values
Keyword 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 action of setting DSCP precedence
for packets.
Use the undo remark dscp command to remove the action of setting DSCP
precedence.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure the action to set DSCP precedence to 6 for packets.
system-view
8/12/2019 Tgcvmqmp QoS Command
22/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-15
[Sysname] traffic behavior database
[Sysname-behavior-database] remark dscp 6
2.2.11 remark ip-precedence
Syntax
remark ip-precedence ip-precedence-value
undo remark ip-precedence
View
Traffic behavior view
Parameter
ip-precedence-value : IP precedence to be set for packets, in the range of 0 to 7.
Description
Use the remark ip-precedence command to configure the action of setting IP
precedence for packets.
Use the undo remark ip-precedence command to remove the action of setting IP
precedence.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure the action to set IP precedence to 6 to packets.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] remark ip-precedence 6
2.2.12 remark local-precedence
Syntax
remark local-precedence local-precedence
undo remark local-precedence
View
Traffic behavior view
Parameter
local-precedence : Local precedence to be set for packets, in the range of 0 to 7.
8/12/2019 Tgcvmqmp QoS Command
23/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-16 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Description
Use the remark local-precedence command to configure the action of setting local
precedence for packets.
Use the undo remark local-precedence command to remove the action of remarking
local precedence.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure the action to set local precedence to 2 for packets.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] remark local-precedence 2
2.2.13 remark service-vlan-id
Syntax
remark service-vlan-id vlan-id-value
undo remark service-vlan-id
View
Traffic behavior view
Parameter
vlan-id-value : VLAN ID to be set for packets, in the range of 1 to 4094.
Description
Use the remark service-vlan-id command to configure the action of setting VLAN ID
for packets.
Use the undo remark service-vlan-id command to remove the action of remarking
VLAN ID.
Related command: qos policy , traffic behavior , and classifier behavior .
Example
# Configure the action to set VLAN ID to 2 for packets.
system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] remark service-vlan-id 2
8/12/2019 Tgcvmqmp QoS Command
24/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-17
2.2.14 traffic behavior
Syntax
traffic behavior behavior-name undo traffic behavior behavior-name
View
System view
Parameter
behavior-name : Name of the traffic behavior to be created.
Description
Use the traffic behavior command to create a traffic behavior. This command also
leads you to traffic behavior view.
Use the undo traffic classifier command to remove a traffic behavior.
Related command: qos policy , qos apply policy , and classifier behavior .
Example
# Define a traffic behavior named behavior1.
system-view
[Sysname] traffic behavior behavior1
[Sysname-behavior-behavior1]
2.3 QoS Policy Configuration Commands
2.3.1 classifier behavior
Syntax
classifier classifier-name behavior behavior-name
undo classifier classifier-name View
Policy view
Parameter
classifier-name : Name of an existing class.
behaviorname : Name of an existing traffic behavior.
8/12/2019 Tgcvmqmp QoS Command
25/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-18 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Description
Use the classifier behavior command to associate a traffic behavior with a class.
Use the undo classifier command to remove a class from a policy.
Each class can be associated with only one traffic behavior.
The undo classifier command is not applicable to the default classes.
Related command: qos policy .
Example
# Associate the behavior named test with the class named database in the policy user1 .
system-view
[Sysname] qos policy user1
[Sysname-qospolicy-user1] classifier database behavior test
2.3.2 display qos policy user-defined
Syntax
display qos policy user-defined [ policy-name [ classifier classifier-name ] ]
View
Any view
Parameter
user-defined : Specifies user define policies.
policy-name : Policy name. If it is not provided, the configuration of all the user defined
policies is displayed.
classifier-name : Name of a class in the policy. If it is not provided, all the classes in the
policy are specified.
Description
Use the display qos policy command to display the configuration of a specified policy,
including the configuration of the classes and the associated traffic behaviors in the
policy.
Example
# Display the configuration of all the user specified policies.
display qos policy user-defined
User Defined QoS Policy Information:
Policy: ef
8/12/2019 Tgcvmqmp QoS Command
26/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-19
Classifier: ef
Behavior: 1
-none-
Policy: test
Classifier: test
Behavior: test
Marking:
Remark dot1p COS 4
Committed Access Rate:
CIR 1000 (kbps)
Red Action: discard
Filter enable : permit
Redirect enable:
Redirect type: next-hop
Redirect destination: 1:1::1 2:2::2
Policy: 1
Table 2-5 Description on the fields of the display qos policy command
Field Description
Policy Policy name
Classifier Class name. A policy can contain multiple classes, each of which canhave a traffic behavior associated with it and can have multiplematching rules configured. Refer to the traffic classifier command.
Behavior Traffic behavior associated with a class. You can configure multipleactions for a traffic behavior. Refer to the traffic behavior command.
2.3.3 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 : Specifies the inbound direction.
8/12/2019 Tgcvmqmp QoS Command
27/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-20 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Description
Use the display qos policy interface command to display the information about the
policy applied on a port.
Example
# Display the information about the policy applied on Ethernet1/0/1 port.
display qos policy interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Direction: Inbound
Policy: testClassifier: test
Operator: AND
Rule(s) : If-match acl 2000
Behavior: test
Marking:
Remark dot1p COS 4
Committed Access Rate:
CIR 1000 (kbps), CBS 100000 (byte), EBS 100000 (byte), PIR 1000 (kbps)
Red Action: discard
Green : 0(Bytes)
Filter Enable: permit
Redirect enable:
Redirect type: next-hop
Redirect destination: 1.1.1.1 2.2.2.2
Table 2-6 Description on the fields of the display qos policy interface command
Field Description
Interface Port name, comprising of port type and port number
DirectionDirection of the port where the policy is appliedOnly the inbound direction is supported on the S3500-EAseries Ethernet switches.
Policy Name of the policy applied to the port
Classifier Name of the class in the policy and its configuration
Operator Logical relationship among the classification rules in a class
Rule(s) Classification rules in the class
BehaviorName and configuration of the behavior in the policy
Refer to the commands related to traffic behaviors.
8/12/2019 Tgcvmqmp QoS Command
28/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 2 QoS Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
2-21
2.3.4 qos apply policy
Syntax
qos apply policy policy-name inbound undo qos apply policy inbound
View
Ethernet port view, port group view
Parameter
inbound : Specifies the inbound direction.
policy-name : Specifies the policy name.
Description
Use the qos apply policy command to apply a policy on a port.
Use the undo qos apply policy command to remove the policy applied on a port.
Example
# Apply the policy named user1 in the inbound direction of Ethernet1/0/1 port.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos apply policy USER1 inbound
2.3.5 qos policy
Syntax
qos policy policy-name
undo qos policy policy-name
View
System view
Parameter
policy-name : Name of the policy to be created.
Description
Use the qos policy command to create a policy. This command also leads you to
policy view.
Use the undo qos policy command to remove a policy.
8/12/2019 Tgcvmqmp QoS Command
29/53
Chapter 2 QoS Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
2-22 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
To remove a policy that is currently applied on a port, you need to disable it on the port
first.
Related command: classifier behavior and qos apply policy .
Example
# Create a policy named user1.
system-view
[Sysname] qos policy user1
[Sysname-qospolicy-user1]
8/12/2019 Tgcvmqmp QoS Command
30/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 3 Congestion Avoidance Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
3-1
Chapter 3 Congestion Avoidance Configuration
Commands
3.1 WRR Queue Configuration Commands
3.1.1 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 weighted round robin
(WRR) queue information about a port.
If no ports are specified, this command displays the WRR information about all the
ports.
Related command: qos wrr .
Example
# Display the WRR information about Ethernet1/0/1 port.
display qos wrr interface Ethernet 1/0/1
Interface: Ethernet1/0/1Output queue: Weighted round robin queue
Queue ID Group Weight
-------------------------------------
0 sp N/A
1 sp N/A
2 1 10
3 1 30
4 1 70
5 2 20
6 2 50
8/12/2019 Tgcvmqmp QoS Command
31/53
Chapter 3 Congestion Avoidance Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
3-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
7 2 100
Table 3-1 Description on the fields of the display qos wrr interface command
Field Description
Interface Port name, comprising of port type and port number
Output queue Type of the current output queues
Queue ID Queue number
GroupID of the group which a queue belongs to
By default, all the queues belong to SP group
Weight Queue weight
3.1.2 qos wrr
Syntax
qos wrr queue-id group group-id weight queue-weight
undo qos wrr
View
Ethernet port view, port group view
Parameter
queue-id : Output queue ID, in the range of 0 to 7.
group group-id : Specifies a WRR priority group. The group-id argument can be 1 or 2.
The WRR priority groups are scheduled by priority.
weight queue-weight : Specifies weight for the queue. The queue-weight argument is in
the range 8 to 100.
Description
Use the qos wrr command to enable the WRR queue scheduling algorithm and set thecorresponding parameters.
Use the undo qos wrr command to restore the default queue scheduling algorithm.
By default, all the output queues of a port are scheduled using the strict priority (SP)
algorithm.
A port on an S3500-EA switch supports eight output queues. Different queues can
adopt different queue scheduling algorithms. As required, you can configure part of the
queues on a port to adopt the SP queue scheduling algorithm and part of the queues to
adopt the WRR queue scheduling algorithm. The SP+WRR queue scheduling
algorithm is implemented by adding queues on a port to SP scheduling queues and
8/12/2019 Tgcvmqmp QoS Command
32/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 3 Congestion Avoidance Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
3-3
WRR queue scheduling queues respectively. For example, queue 0 and queue 1 are in
the SP queue scheduling group, and queue 2, queue 3, and queue 4 are in the WRR
queue scheduling group 1, queue 5, queue 6, and queue 7 are in WRR queue
scheduling group 2. Round robin is performed in WRR group 2 firstly. If no packet is tobe sent in WRR group 2, round robin is performed in WRR group 1. At last, packets in
the SP queue scheduling group are processed.
Example
# Enable the SP+WRR queue scheduling algorithm on Ethernet1/0/1. Add queue 0 and
queue 1 to the SP queue scheduling group; add queue 2, queue 3, and queue 4 to
WRR queue scheduling group 1, with the weight being 20, 70, and 100 respectively;
add queue 5, queue 6, and queue 7 to WRR queue scheduling group 2, with the weight
being 10, 50, and 80 respectively.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos wrr 0 group sp
[Sysname-Ethernet1/0/1] qos wrr 1 group sp
[Sysname-Ethernet1/0/1] qos wrr 2 group 1 weight 20
[Sysname-Ethernet1/0/1] qos wrr 3 group 1 weight 70
[Sysname-Ethernet1/0/1] qos wrr 4 group 1 weight 100
[Sysname-Ethernet1/0/1] qos wrr 5 group 2 weight 10
[Sysname-Ethernet1/0/1] qos wrr 6 group 2 weight 50
[Sysname-Ethernet1/0/1] qos wrr 7 group 2 weight 80
3.2 SP Queue Configuration Commands
3.2.1 qos wrr group sp
Syntax
qos wrr queue-id group sp
View
Ethernet port view, port group view
Parameter
queue-id : Output queue ID, in the range of 0 to 7.
group sp : Adopts SP queue scheduling algorithm.
Description
Use the qos wrr group sp command to enable the SP queue scheduling algorithm for
the algorithm.
8/12/2019 Tgcvmqmp QoS Command
33/53
Chapter 3 Congestion Avoidance Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
3-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
By default, all the output queues on a port are scheduled using the SP queue
scheduling algorithm.
Related command: qos wrr .
Example
# Schedule queue 0 of Ethernet1/0/1 using SP queue scheduling algorithm.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos wrr 0 group sp
8/12/2019 Tgcvmqmp QoS Command
34/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 4 Priority Mapping Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
4-1
Chapter 4 Priority Mapping Configuration
Commands
4.1 Priority Mapping Table Configuration Commands
4.1.1 display qos map-table
Syntax
display qos map-table [ dot1p-lp | dot1p-dp | dscp-lp | dscp-dp | dscp-dot1p |
dscp-dscp ]
View
Any view
Parameter
dot1p-lp : Specifies the 802.1p priority-to-local precedence mapping table.
dot1p-dp : Specifies the 802.1p priority-to-drop precedence mapping table.
dscp-lp : Specifies the DSCP-to-local precedence mapping table.
dscp-dp : Specifies the DSCP-to-drop precedence mapping table.
dscp-dot1p : Specifies the DSCP-to-802.1p priority mapping table.
dscp-dscp : Specifies the DSCP-to-DSCP mapping table.
Description
Use the display qos map-table command to display the configuration of a priority
mapping table.
If the type of the priority mapping table is not specified, the configuration of all the
priority mapping tables is displayed.
Related command: qos map-table .
Example
# Display the configuration of the 802.1p priority-to-drop precedence mapping table.
display qos map-table dot1p-dp
MAP-TABLE NAME: dot1p-dp TYPE: pre-define
IMPORT : EXPORT
0 : 2
1 : 2
2 : 2
8/12/2019 Tgcvmqmp QoS Command
35/53
Chapter 4 Priority Mapping Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
4-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
3 : 1
4 : 1
5 : 1
6 : 0
7 : 0
Table 4-1 Description on the fields of the display qos map-table command
Field Description
MAP-TABLE NAME Name of the mapping table
TYPE Type of the mapping table
IMPORT Input entries of the mapping table
EXPORT Output entries of the mapping table
4.1.2 qos map-table
Syntax
qos map-table { dot1p-lp | dot1p-dp | dscp-lp | dscp-dp | dscp-dot1p | dscp-dscp }
View
System view
Parameter
dot1p-lp : Specifies the 802.1p priority-to-local precedence mapping table.
dot1p-dp : Specifies the 802.1p priority-to-drop precedence mapping table.
dscp-lp : Specifies the DSCP-to-local precedence mapping table.
dscp-dp : Specifies the DSCP-to-drop precedence mapping table.
dscp-dot1p : Specifies the DSCP-to-802.1p-priority mapping table.
dscp-dscp : Specifies the DSCP-to-DSCP mapping table.
Description
Use the qos map-table command to enter specific priority mapping table view.
Related command: display qos map-table .
Example
# Enter 802.1p priority-to-drop precedence mapping table view.
system-view
[Sysname] qos map-table dot1p-dp
[Sysname-maptbl-dot1p-dp]
8/12/2019 Tgcvmqmp QoS Command
36/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 4 Priority Mapping Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
4-3
4.1.3 import
Syntax
import import-value-list export export-value undo import { import-value-list | all }
View
Priority mapping table view
Parameter
import-value-list : List of input parameters.
export-value : Output parameter in the mapping table.
all : Removes all the parameters in the priority mapping table.
Description
Use the import command to configure entries for a priority mapping table, that is, to
define one or more mapping rules.
Use the undo import command to restore specific entries of a priority mapping table to
the default.
Related command: display qos map-table .
Example# Configure the 802.1p priority-to-drop precedence mapping table to map 802.1p
priority 4 and 5 to drop precedence 1.
system-view
[Sysname] qos map-table dot1p-dp
[Sysname-maptbl-dot1p-dp] import 4 5 export 1
4.2 Port Priority Configuration Commands
4.2.1 qos prioritySyntax
qos priority priority-value
undo qos priority
View
Ethernet port view, port group view
8/12/2019 Tgcvmqmp QoS Command
37/53
Chapter 4 Priority Mapping Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
4-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Parameter
priority-value : Port priority to be configured. This argument is in the range 0 to 7.
DescriptionUse the qos priority command to set the port priority for a port.
Use the undo qos priority command to restore the default port priority.
By default, the port priority is 0.
Example
# Set the port priority of Ethernet1/0/1 port to 2.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos priority 2
4.3 Port Priority Trust Mode Configuration Commands
4.3.1 display qos trust interface
Syntax
display qos trust interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type : Port type.
interface -number : Port number.
Description
Use the display qos trust interface command to display the port priority trust mode of
a port.If no port is specified, this command displays the port priority trust modes of all the
ports.
Example
# Display the port priority trust mode of Ethernet1/0/1 port.
display qos trust interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Port priority trust information
Port priority :0
8/12/2019 Tgcvmqmp QoS Command
38/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 4 Priority Mapping Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
4-5
Port priority trust type : dot1p
Table 4-2 Description on the fields of the display qos trust interface command
Field Description
Interface Port name, comprising of port type and port number
Port priority Port priority
Port priority trust type Port priority trust mode
4.3.2 qos trust
Syntax
qos trust dot1p
undo qos trust
View
Ethernet port view, port group view
Parameter
dot1p : Specifies to trust 802.1p priority carried in the packet and adopt this priority for
priority mapping.
Description
Use the qos trust command to configure the port priority trust mode.
Use the undo qos trust command to restore the default port priority trust mode.
By default , The priory mode set on the port is trusted.
Example
# Specify to trust 802.1p priority carried in the packets on Ethernet1/0/1 port.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos trust dot1p
8/12/2019 Tgcvmqmp QoS Command
39/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 5 Congestion Avoidance Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
5-1
Chapter 5 Congestion Avoidance Configuration
Commands
5.1 WRED Configuration Commands
5.1.1 display qos wred interface
Syntax
display qos wred interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type : Port type.
interface -number : Port number.
Description
Use the display qos wred interface command to display the configuration and
statistics information about WRED on the specified ports.
If no port is specified when this command is executed, the configuration and statistics
information about WRED on all the ports is displayed.
Example
# Display the configuration information and statistics information about WRED on the
specified port.
display qos wred interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Current WRED configuration:
WRED: Enable
5.1.2 qos wred
Syntax
qos wred
undo qos wred
8/12/2019 Tgcvmqmp QoS Command
40/53
Chapter 5 Congestion Avoidance Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
5-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
View
Ethernet port view, port group view
ParameterNone
Description
Use the qos wred command to enable the WRED function on the port.
Use the undo qos wred command to restore the packet drop mode to the default tail
drop mode and disable the WRED function.
By default, the tail drop mode is adopted on the port.
Related command: display qos wred interface .
Example
# Enable the WRED function on Ethernet1/0/1.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos wred
8/12/2019 Tgcvmqmp QoS Command
41/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 6 Aggregation CAR Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
6-1
Chapter 6 Aggregation CAR Configuration
Commands
6.1 Aggregation CAR Configuration Commands
6.1.1 qos car aggregative
Syntax
qos car global-car-name aggregative cir committed-information-rate [ cbs
committed-burst-size [ ebs excess-burst-size ] ] [ pir peak-information-rate ] [ redaction ]
undo qos car global-car-name
View
System view
Parameter
global-car-name : Name of an aggregation CAR.
aggregative : Indicates that CAR is aggregated globally. Only aggregation CAR issupported currently.
cir committed-information-rate : Specifies the committed information rate (CIR) in kbps.
cbs committed-burst-size : Specifies the committed burst size (CBS) in bytes.
ebs excess-burst-size : Specifies excess burst size (EBS) in bytes.
pir peak-information-rate : Specifies the peak information rate (PIR) in kbps. If PIR is
not configured, only one token bucket is configured for traffic policing. Otherwise, two
token buckets are configured for traffic policing.
red action : Specifies the action for red packets. Red packets are packets whose rate is
higher than CIR.
The action argument can be:
discard : Drops the packet.
pass : Forwards the packet.
Description
Use the qos car aggregative command to configure an aggregation CAR.
Use the undo qos car command to cancel the aggregation CAR configuration.
8/12/2019 Tgcvmqmp QoS Command
42/53
Chapter 6 Aggregation CAR Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
6-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
An aggregation CAR does not take effect until it is applied to a port or referenced in a
policy.
Example
# Specify the aggregation CAR to adopt the following CAR parameters: CIR is 100, and
red packets are dropped.
system-view
[Sysname] qos car test aggregative cir 100 red discard
6.1.2 qos car
Syntax
qos car inbound acl [ ipv6 ] acl-number name global-car-name
undo qos car inbound acl [ ipv6 ] acl-number
View
Ethernet port view, port group view
Parameter
inbound : Specifies to limit the rate of the packets received on the port.
acl acl-number : Specifies to limit the rate of the packets matching IPv4 ACLs. The
access-number argument specifies the number of an IPv4 ACL.
acl acl-number : Specifies to limit the rate of the packets matching IPv6 ACLs. The
access-number argument specifies the number of an IPv6 ACL.
name global-car-name : Specifies the name of an aggregation CAR.
Description
Use the qos car command to apply the aggregation CAR on the port.
Use the undo qos car command to remove the aggregation CAR from the port.
This command can be executed repeatedly on a port to apply multiple aggregation
CARs to the port. CAR actions are performed on the packets according to thesequence that they are configured.
Example
# Apply the aggregation CAR named aggcar-1 to the packets matching ACL 2001 on
Ethernet1/0/1.
system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos car inbound acl 2001 name aggcar-1
8/12/2019 Tgcvmqmp QoS Command
43/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 6 Aggregation CAR Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
6-3
6.1.3 car name
Syntax
car name global-car-name undo car
View
Traffic behavior view
Parameter
name global-car-name : Specifies the name of an aggregation CAR.
Description
Use the car name command to configure the aggregation CAR action for the traffic
behavior.
Use the undo car command to remove the aggregation CAR action for the traffic
behavior.
Example
# Configure the aggregation CAR named aggcar-1 for the traffic behavior named be1.
system-view
System View: return to User View with Ctrl+Z.
[Sysname] traffic behavior be1
[Sysname-behavior-be1] car name aggcar-1
6.1.4 display qos car name
Syntax
display qos car name global-car-name
View
Any view
Parameter
global-car-name : Name of an aggregation CAR.
Description
Use the display qos car name command to display the configuration information and
statistics information about the specified aggregation CAR.
8/12/2019 Tgcvmqmp QoS Command
44/53
Chapter 6 Aggregation CAR Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
6-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Example
# Display the configuration information of the aggregation CAR named aggcar-1.
display qos car name aggcar-1
Name: aggcar-1
Mode: aggregative
CIR 100(kbps) CBS: 100000(byte) EBS: 100000(byte)
Red Action: discard
Green packet 0(Bytes)
Table 6-1 Description on the fields of the display qos car name command
Field Description
Name: aggcar-1 Name of the aggregation CAR action
Mode: aggregative Type of the aggregation CAR action
CIR 200(kbps) Parameter for the aggregation CAR
CBS 100000 (byte) Committed burst size in bytes, that is, the depth of thetoken bucket for holding burst traffic
EBS 100000 (byte) Excessive burst size in bytes, that is, the trafficexceeding CBS when two token buckets are adopted
Red Action: discard Action for red packets
Green packet 0(Bytes), Statistics information about green packets
6.1.5 display qos car interface
Syntax
display qos car interface [ interface-type interface-number ]
View
Any view
Parameter
interface-type : Port type.
interface -number : Port number.
Description
Use the display qos car interface command to display the configuration information
and statistics information about the aggregation CAR action on the specified port.
If no ports are specified, this command displays the CAR setting and statistics of all the
ports.
8/12/2019 Tgcvmqmp QoS Command
45/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 6 Aggregation CAR Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
6-5
Example
# Display the configuration information and statistics information about the aggregation
CAR action on Ethernet1/0/1.
display qos car interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Direction: Inbound
Rule(s): If-match acl 2001
CIR 200 (kbps) , CBS 100000 (byte), EBS 100000 (byte)
Red Action : discard
Green : 0(Bytes)
Table 6-2 Description on the fields of the display qos car interface command
Field DescriptionInterface: Ethernet1/0/1 Port where the aggregation CAR action is applied
Direction: Inbound Direction where the aggregation CAR action isapplied
Rule(s): If-match acl 2001 Classification rule referenced in the aggregation CARaction
CIR 200(kbps) Parameters for the aggregation CAR action
CBS 100000 (byte) Committed burst size in bytes, that is, the depth of thetoken bucket for holding burst traffic
EBS 100000 (byte) Excessive burst size in bytes, that is, the trafficexceeding CBS when two token buckets are adopted
Red Action: discard Action for red packets
Green packet 0(Bytes) Statistics information about green packets
6.1.6 reset qos car name
Syntax
reset qos car name [ global-car-name ]
View
User view
Parameter
global-car-name : Name of an aggregation CAR.
8/12/2019 Tgcvmqmp QoS Command
46/53
Chapter 6 Aggregation CAR Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
6-6 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Description
Use the reset qos car name command to clear the statistics information about the
specified aggregation CAR.
If the global-car-name argument is not specified, this command will clear the statistics
information about all aggregation CARs.
Example
# Clear the statistics information about the aggregation CAR named aggcar-1.
reset qos car name aggcar-1
8/12/2019 Tgcvmqmp QoS Command
47/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 7 VLAN Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
7-1
Chapter 7 VLAN Policy Configuration Commands
7.1 VLAN Policy Configuration Commands
7.1.1 display qos vlan-policy
Syntax
display qos vlan-policy { name policy-name | vlan [ vlan-id ] }
View
Any view
Parameter
name policy-name : Specifies to display the information about the VLAN policy with the
specified name.
vlan vlan-id : Specifies to display the information about the VLAN policy applied to the
specified VLAN.
Description
Use the display qos vlan-policy name command to display the information about
VLAN policies.
If the vlan-id argument is not specified, the information about all the VLAN policies will
be displayed.
Example
# Display the information about the VLAN policy named test.
display qos vlan-policy name test
Policy test
Vlan 300: inbound (active)
Table 7-1 Description on the fields of the display qos vlan-policy command
Field Description
Policy Name of the VLAN policy
Vlan 300 ID of the VLAN where the VLAN policy is applied
inbound (active) VLAN policy is applied in the inbound direction of the VLAN.
# Display the information about the VLAN policy applied to VLAN 2.
8/12/2019 Tgcvmqmp QoS Command
48/53
Chapter 7 VLAN Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
7-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
display qos vlan-policy vlan 2
Vlan 2
Direction: Inbound (active)
Policy: 1
Classifier: 2
Operator: AND
Rule(s) : If-match acl 2000
Behavior: 2
Accounting Enable
0 (Packets)
Committed Access Rate:
CIR 128 (kbps), CBS 8000 (byte), EBS 0 (byte)
Red Action: discard
Green : 0(Bytes)
Table 7-2 Description on the fields of the display qos vlan-policy command
Field Description
Vlan 2 ID of the VLAN where the VLAN policy is applied
Inbound (active)
VLAN policy is applied in the inbound direction of the
VLAN.active means that the VLAN policy is effective.
Classifier Class name and its contents, which could be of varioustypes
Operator Logical relationship between classification rules
Rule(s) Classification rules
Behavior Name of the traffic behavior, and the actions (which couldbe of various types) in the behavior
Accounting Statistics information about the traffic behavior
Committed AccessRate Information about traffic rate limit
CIR 128 (kbps) Committed information rate (CIR) in kbps
CBS 8000 (byte) Committed burst size in bytes, that is, the depth of thetoken bucket for holding burst traffic
EBS 0 (byte) Excessive burst size in bytes, that is, the traffic exceedingCBS when two token buckets are adopted
Red Action: discard Red packets, whose rate is higher than CIR, are dropped.
8/12/2019 Tgcvmqmp QoS Command
49/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 7 VLAN Policy Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
7-3
7.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.
vlan-id-list : List of VLAN IDs, presented in the form of vlan-id to vlan-id or discontinuous
VLAN IDs. Up to eight VLAN IDs can be specified at a time.
inbound : Specifies to apply the VLAN policy in the inbound direction of the VLAN.
Description
Use the qos vlan-policy command to apply the VLAN policy to the specific VLAN(s).
Use the undo qos vlan-policy command to remove the VLAN policy from the specific
VLAN(s).
QoS policies can be applied in the following two modes:
Port-based application: The QoS policy is available for the traffic received on
ports.
VLAN-based application: The QoS policy is available for the traffic received on
VLANs.
VLAN-based QoS policy is also known as VLAN policy for short.
Example
# Apply the VLAN policy named test in the inbound direction of VLAN 200, VLAN 300,
VLAN 400, VLAN 500, VLAN 600, VLAN 700, VLAN 800, and VLAN 900.
system-view
[Sysname] qos vlan-policy test vlan 200 300 400 500 600 700 800 900 inbound
7.1.3 reset qos vlan-policy
Syntax
reset qos vlan-policy [ vlan vlan-id ]
View
User view
8/12/2019 Tgcvmqmp QoS Command
50/53
Chapter 7 VLAN Policy Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
7-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Parameter
vlan-id : VLAN ID, in the range 1 to 4,094.
DescriptionUse the reset qos vlan-policy command to clear the statistics information about VLAN
policies.
Example
# Clear the statistics information about the VLAN policy applied to VLAN 2.
reset qos vlan-policy vlan 2
8/12/2019 Tgcvmqmp QoS Command
51/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 8 Traffic Mirroring Configuration Commands
Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
8-1
Chapter 8 Traffic Mirroring Configuration
Commands
8.1 Traffic Mirroring Configuration Commands
8.1.1 display qos policy user-defined
Syntax
display qos policy user-defined [ policy-name [ classifier classifier-name ] ]
View
Any view
Parameter
policy-name : Policy name. If it is not specified, the configuration information of all
user-defined policies will be displayed.
classifier-name : Class name in the policy.
Description
Use the display qos policy user-defined command to display the configuration
information of the specified user-defined policy or all the user-defined policies.
Example
# Display the configuration information of the user-defined policy.
display qos policy user-defined
User Defined QoS Policy Information:
Policy: 1
Classifier: 1
Behavior: 1
Mirror enable:
Mirror type: interface
Mirror destination: Ethernet1/0/1
Table 8-1 Description on the fields of the display qos policy user-defined command
Field Description
Policy Name of the VLAN policy
Classifier Name of the traffic classification rule
8/12/2019 Tgcvmqmp QoS Command
52/53
Chapter 8 Traffic Mirroring Configuration CommandsCommand Manual QoS
Quidway S3500-EA Series Ethernet Switches
8-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd
Field Description
Behavior Name of the traffic behavior
Mirror enable Traffic mirroring is enabled
Mirror type Type of the traffic mirroring action
Mirror destination Destination port for the traffic mirroring action
8.1.2 display traffic behavior user-defined
Syntax
display traffic behavior user-defined [ behavior-name ]
View
Any view
Parameter
behavior-name : Behavior name.
Description
Use the display traffic behavior user-defined command to display the configuration
information of the user-defined traffic behavior.
If no behavior name is provided, this command displays the information about all the
user-defined behaviors.
Example
# Display the information about the user-defined traffic behavior.
display traffic behavior user-defined
User Defined Behavior Information:
Behavior: 1
Mirror enable:
Mirror type: interface
Mirror destination: Ethernet1/0/1
Table 8-2 Description on the fields of the display traffic behavior user-defined
command
Field Description
Behavior Name of the traffic behavior
Mirror enable Traffic mirroring is enabled
Mirror type Type of the traffic mirroring action
8/12/2019 Tgcvmqmp QoS Command
53/53
Command Manual QoSQuidway S3500-EA Series Ethernet Switches Chapter 8 Traffic Mirroring Configuration Commands
Field Description
Mirror destination Destination port for the traffic mirroring action
8.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 : Port type and port number of the destination port for
the traffic mirroring action.
Description
Use the mirror-to interface command to configure the action of mirroring traffic to the
specified port in the traffic behavior.
Use the undo mirror-to interface command to remove the action of mirroring traffic to
the specified port from the traffic behavior.
Caution:
Aggregation ports cannot be configured as destination ports for the traffic mirroring
action.
Example
# Configure traffic behavior 1 and define the action of mirroring traffic to Ethernet1/0/2
in the traffic behavior.
system-view
[Sysname] traffic behavior 1
[Sysname-behavior-1] mirror-to interface Ethernet 1/0/2