Sie sind auf Seite 1von 53

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Table of Contents

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
Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd i

Table of Contents

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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

ii

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 1 TP and TS Configuration Commands

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 the ports.

Example
# Display the CAR settings and statistics of Ethernet1/0/1 port.
<Sysname> 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 Interface Description Port name, comprising of port type and port number Direction of traffic policing (TP). As for Quidway S3500-EA series Ethernet switches, TP is available to inbound packets only.
Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd 1-1

Direction

Chapter 1 TP and TS Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Field Rule(s) CIR Conform Action Red Action Green

Description Rules used for matching packets Committed information rate (CIR), in kbps Action to be taken for packets when the traffic rate is lower than CIR Action to be taken for packets when the traffic rate exceeds CIR Size of the packets (in bytes) when the traffic rate is 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.
1-2 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 1 TP and TS Configuration Commands

action: Action to be conducted on packets, which can be one of the following:


discard: Drops the packets. pass: Forwards the packets.

name global-car-name: Specifies the name of the aggregation CAR.

Description
Use the qos car command to apply a CAR policy to a port. Use the undo qos car command to remove a CAR policy applied to a port. You can execute the qos car command repeatedly to apply multiple CAR policies to a port. The policies applied to a port are invoked in the order they are applied.

Example
# Perform TP for inbound traffic matching ACL 2001 on Ethernet1/0/1 port. When the traffic rate is lower than 200 kbps, packets are forwarded normally; when the traffic rate exceeds 200 kbps, the extra packets are dropped.
<Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] qos car inbound acl 2001 cir 200 red discard

1.2 TS Configuration Commands


1.2.1 display qos gts interface
Syntax
display qos gts interface [ interface-type interface-number ]

View
Any view

Parameter
interface-type: Port type. interface-number: Port number.

Description
Use the display qos gts interface command to display the general TS configuration and statistics of a port. If no port is specified, this command displays the general TS configuration and statistics of all the ports.

Example
# Display the general TS configuration and statistics of Ethernet 1/0/1 port.
Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd 1-3

Chapter 1 TP and TS Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

<Sysname> display qos gts interface Ethernet 1/0/1 Interface: Ethernet1/0/1 Rule(s): If-match queue CIR 650 (kbps) 0

Table 1-2 Description on the fields of the display qos gts interface command Field Interface Rule(s) CIR Description Port name, comprising of port type and port number Matching rules, which can be any of the three types 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

Parameter
any: 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.

1-4

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 1 TP and TS Configuration Commands

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.
<Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] qos gts any cir 650

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

1-5

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

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.
<Sysname> 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-defined command Field User Defined Information Classifier Operator Rule Classifier Description The information about the user-defined classes is displayed. Class name and its contents, which could be of multiple types Logical relationship among the classification rules Classification rules

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-1

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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 acl access-list-number acl ipv6 access-list-number any Description Specifies an ACL to match packets. The access-list-number argument is in the range 2000 to 5999. Specifies an IPv6 ACL to match IPv6 packets. The access-list-number argument is in the range 2000 to 3999. Specifies to match all packets. Specifies to match packets by DSCP precedence. The dscp-list argument is a list of DSCP values. You can provide up to eight space-separated DSCP values for this argument. DSCP is in the range 0 to 63. Specifies to match the packets with a specified destination MAC address. Specifies to match packets by 802.1p priority. The 8021p argument is a list of COS values. You can provide up to eight space-separated COS values for this argument. COS is in the range 0 to 7. Specifies to match packets by IP precedence. The ip-precedence-list argument is a list of IP precedence values. You can provide up to eight space-separated IP precedence values for this argument. IP precedence is in the range 0 to 7. 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 the Bittorrent protocol currently. Specifies to match the packets with a specified source MAC address.

dscp dscp-list

destination-mac mac-address

dot1p 8021p

ip-precedence ip-precedence-list

protocol protocol-name source-mac mac-address

2-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

Field customer-vlan-id vlan-id-list

Description Specifies to match the packets of specified VLANs of user networks. The vlan-id-list argument specifies a list of VLAN IDs. You can provide up to eight space-separated VLAN IDs for this argument. VLAN ID is in the range 1 to 4094. Specifies to match the packets of specified VLANs of the operators network. The vlan-id-list argument is a list of VLAN IDs. You can provide up to eight space-separated VLAN IDs for this argument. VLAN ID is in the range 1 to 4094.

service-vlan-id vlan-id-list

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.
<Sysname> 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.
<Sysname> 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.


<Sysname> system-view

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-3

Chapter 2 QoS Policy Configuration Commands


[Sysname] traffic classifier class1

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

[Sysname-classifier-class1] if-match acl 3101

# Specify ACL 3101 for class 1 to match IPv6 packets.


<Sysname> 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.


<Sysname> 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.
<Sysname> 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.
<Sysname> system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match ip-precedence 1

# Define a rule for class 1 to match IP packets.


<Sysname> 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.
<Sysname> 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.
<Sysname> 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.
<Sysname> system-view [Sysname] traffic classifier class1 [Sysname-classifier-class1] if-match service-vlan-id 1000

2-4

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

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 packet is 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.
<Sysname> 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

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-5

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Parameter
None

Description
Use 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.
<Sysname> 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.

2-6

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

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.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] car cir 200 red discard

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-7

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> 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 User Defined Information Behavior Marking Committed Access Rate CIR Behavior Description The information about user defined traffic behaviors is displayed Name of a traffic behavior, which can be of multiple types Information about priority marking Information about traffic rate limit Parameter for the aggregation CAR

2-8

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

Field CBS EBS PIR Red Action: discard

Description Committed burst size in bytes, that is, the depth of the token bucket for holding burst traffic Excessive burst size in bytes, that is, the traffic exceeding CBS when two token buckets are adopted The peak information rate (PIR) 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.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] filter deny

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-9

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

2.2.5 nest
Syntax
nest top-most vlan-id vlan-id undo 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.
<Sysname> 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.

2-10

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-11

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> 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.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark dot1p 2

2-12

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

2.2.9 remark drop-precedence


Syntax
remark drop-precedence drop-precedence-value undo 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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-13

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Table 2-4 DSCP keywords and values Keyword default af11 af12 af13 af21 af22 af23 af31 af32 af33 af41 af42 af43 cs1 cs2 cs3 cs4 cs5 cs6 cs7 ef DSCP value (binary) 000000 001010 001100 001110 010010 010100 010110 011010 011100 011110 100010 100100 100110 001000 010000 011000 100000 101000 110000 111000 101110 0 10 12 14 18 20 22 26 28 30 34 36 38 8 16 24 32 40 48 56 46 DSCP value (decimal)

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.
<Sysname> system-view

2-14

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches


[Sysname] traffic behavior database

Chapter 2 QoS Policy Configuration Commands

[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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-15

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> 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.
<Sysname> system-view [Sysname] traffic behavior database [Sysname-behavior-database] remark service-vlan-id 2

2-16

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-17

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> 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.
<Sysname> display qos policy user-defined

User Defined QoS Policy Information:

Policy: ef

2-18

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches


Classifier: ef Behavior: 1 -none-

Chapter 2 QoS Policy Configuration Commands

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 Policy Classifier Policy name Class name. A policy can contain multiple classes, each of which can have a traffic behavior associated with it and can have multiple matching rules configured. Refer to the traffic classifier command. Traffic behavior associated with a class. You can configure multiple actions for a traffic behavior. Refer to the traffic behavior command. Description

Behavior

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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-19

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> display qos policy interface Ethernet 1/0/1

Interface: Ethernet1/0/1

Direction: Inbound

Policy: test Classifier: 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 Interface Direction Policy Classifier Operator Rule(s) Behavior Description Port name, comprising of port type and port number Direction of the port where the policy is applied Only the inbound direction is supported on the S3500-EA series Ethernet switches. Name of the policy applied to the port Name of the class in the policy and its configuration Logical relationship among the classification rules in a class Classification rules in the class Name and configuration of the behavior in the policy Refer to the commands related to traffic behaviors.
Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-20

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 2 QoS Policy Configuration Commands

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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

2-21

Chapter 2 QoS Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> system-view [Sysname] qos policy user1 [Sysname-qospolicy-user1]

2-22

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 3 Congestion Avoidance Configuration Commands

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.
<Sysname> display qos wrr interface Ethernet 1/0/1 Interface: Ethernet1/0/1 Output queue: Queue ID Weighted round robin queue Weight

Group

------------------------------------0 1 2 3 4 5 6 sp sp 1 1 1 2 2 N/A N/A 10 30 70 20 50

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

3-1

Chapter 3 Congestion Avoidance Configuration Commands


7 2 100

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Table 3-1 Description on the fields of the display qos wrr interface command Field Interface Output queue Queue ID Group Weight Description Port name, comprising of port type and port number Type of the current output queues Queue number ID of the group which a queue belongs to By default, all the queues belong to SP group 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 the corresponding 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
3-2 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 3 Congestion Avoidance Configuration Commands

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 to be 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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

3-3

Chapter 3 Congestion Avoidance Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] qos wrr 0 group sp

3-4

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 4 Priority Mapping Configuration Commands

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.
<Sysname> display qos map-table dot1p-dp MAP-TABLE NAME: dot1p-dp IMPORT 0 1 2 : : : : EXPORT 2 2 2 TYPE: pre-define

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

4-1

Chapter 4 Priority Mapping Configuration Commands


3 4 5 6 7 : : : : : 1 1 1 0 0

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Table 4-1 Description on the fields of the display qos map-table command Field MAP-TABLE NAME TYPE IMPORT EXPORT Description Name of the mapping table Type of the mapping table Input entries of the mapping table 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.
<Sysname> system-view [Sysname] qos map-table dot1p-dp [Sysname-maptbl-dot1p-dp]

4-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 4 Priority Mapping Configuration Commands

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.
<Sysname> 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 priority
Syntax
qos priority priority-value undo qos priority

View
Ethernet port view, port group view

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

4-3

Chapter 4 Priority Mapping Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Parameter
priority-value: Port priority to be configured. This argument is in the range 0 to 7.

Description
Use 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.
<Sysname> 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.
<Sysname> display qos trust interface Ethernet 1/0/1 Interface: Ethernet1/0/1 Port priority trust information Port priority :0

4-4

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches


Port priority trust type : dot1p

Chapter 4 Priority Mapping Configuration Commands

Table 4-2 Description on the fields of the display qos trust interface command Field Interface Port priority Port priority trust type Description Port name, comprising of port type and port number Port priority 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.
<Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] qos trust dot1p

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

4-5

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 5 Congestion Avoidance Configuration Commands

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.
<Sysname> 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

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

5-1

Chapter 5 Congestion Avoidance Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

View
Ethernet port view, port group view

Parameter
None

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.
<Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] qos wred

5-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 6 Aggregation CAR Configuration Commands

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 ] [ red action ] 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 is supported 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

6-1

Chapter 6 Aggregation CAR Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> 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 the sequence that they are configured.

Example
# Apply the aggregation CAR named aggcar-1 to the packets matching ACL 2001 on Ethernet1/0/1.
<Sysname> system-view [Sysname] interface Ethernet 1/0/1 [Sysname-Ethernet1/0/1] qos car inbound acl 2001 name aggcar-1

6-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 6 Aggregation CAR Configuration Commands

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.
<Sysname> 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

6-3

Chapter 6 Aggregation CAR Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Example
# Display the configuration information of the aggregation CAR named aggcar-1.
<Sysname> 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 Name: aggcar-1 Mode: aggregative CIR 200(kbps) CBS 100000 (byte) EBS 100000 (byte) Red Action: discard Green packet 0(Bytes), Description Name of the aggregation CAR action Type of the aggregation CAR action Parameter for the aggregation CAR Committed burst size in bytes, that is, the depth of the token bucket for holding burst traffic Excessive burst size in bytes, that is, the traffic exceeding CBS when two token buckets are adopted Action for red packets 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.
6-4 Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 6 Aggregation CAR Configuration Commands

Example
# Display the configuration information and statistics information about the aggregation CAR action on Ethernet1/0/1.
<Sysname> 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 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 packet 0(Bytes) Description Port where the aggregation CAR action is applied Direction where the aggregation CAR action is applied Classification rule referenced in the aggregation CAR action Parameters for the aggregation CAR action Committed burst size in bytes, that is, the depth of the token bucket for holding burst traffic Excessive burst size in bytes, that is, the traffic exceeding CBS when two token buckets are adopted Action for red packets 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.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

6-5

Chapter 6 Aggregation CAR Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

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.
<Sysname> reset qos car name aggcar-1

6-6

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 7 VLAN Policy Configuration Commands

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.
<Sysname> 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 Policy Vlan 300 inbound (active) Description Name of the VLAN policy ID of the VLAN where the VLAN policy is applied VLAN policy is applied in the inbound direction of the VLAN.

# Display the information about the VLAN policy applied to VLAN 2.

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

7-1

Chapter 7 VLAN Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

<Sysname> 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 Vlan 2 Inbound (active) Description ID of the VLAN where the VLAN policy is applied VLAN policy is applied in the inbound direction of the VLAN. active means that the VLAN policy is effective. Classifier Operator Rule(s) Behavior Accounting Committed Rate CIR 128 (kbps) CBS 8000 (byte) EBS 0 (byte) Red Action: discard Access Class name and its contents, which could be of various types Logical relationship between classification rules Classification rules Name of the traffic behavior, and the actions (which could be of various types) in the behavior Statistics information about the traffic behavior Information about traffic rate limit Committed information rate (CIR) in kbps Committed burst size in bytes, that is, the depth of the token bucket for holding burst traffic Excessive burst size in bytes, that is, the traffic exceeding CBS when two token buckets are adopted Red packets, whose rate is higher than CIR, are dropped.

7-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 7 VLAN Policy Configuration Commands

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.
<Sysname> 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

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

7-3

Chapter 7 VLAN Policy Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Parameter
vlan-id: VLAN ID, in the range 1 to 4,094.

Description
Use 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.
<Sysname> reset qos vlan-policy vlan 2

7-4

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 8 Traffic Mirroring Configuration Commands

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.
<Sysname> 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 Policy Classifier Description Name of the VLAN policy Name of the traffic classification rule

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

8-1

Chapter 8 Traffic Mirroring Configuration Commands

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Field Behavior Mirror enable Mirror type Mirror destination

Description Name of the traffic behavior Traffic mirroring is enabled Type of the traffic mirroring action 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.
<Sysname> 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 Behavior Mirror enable Mirror type Description Name of the traffic behavior Traffic mirroring is enabled Type of the traffic mirroring action

8-2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

Command Manual QoS Quidway S3500-EA Series Ethernet Switches

Chapter 8 Traffic Mirroring Configuration Commands

Field Mirror destination

Description 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.
<Sysname> system-view [Sysname] traffic behavior 1 [Sysname-behavior-1] mirror-to interface Ethernet 1/0/2

Huawei Proprietary and Confidential Copyright (c) Huawei Technologies Co., Ltd

8-3

Das könnte Ihnen auch gefallen