- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
- 00-1Cover
- 01-Login Command
- 02-VLAN Command
- 03-IP Address and Performance Command
- 04-QinQ-BPDU Tunnel Command
- 05-Port Correlation Configuration Command
- 06-MAC Address Table Management Command
- 07-MAC-IP-Port Binding Command
- 08-MSTP Command
- 09-Routing Overview Command
- 10-IPv4 Routing Command
- 11-IPv6 Routing Command
- 12-IPv6 Configuration Command
- 13-Multicast Protocol Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-ARP Command
- 17-DHCP Command
- 18-ACL Command
- 19-QoS Command
- 20-Port Mirroring Command
- 21-Cluster Management Command
- 22-UDP Helper Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-File System Management Command
- 27-Information Center Command
- 28-System Maintenance and Debugging Command
- 29-NQA Command
- 30-VRRP Command
- 31-SSH Command
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
19-QoS Command | 284 KB |
Table of Contents
Chapter 1 TP and TS Configuration Commands
1.1.1 display qos car interface
1.2.1 display qos gts interface
Chapter 2 QoS Policy Configuration Commands
2.1 Commands for Defining Classes
2.1.1 display traffic classifier
2.2 Traffic Behavior Configuration Commands
2.2.3 display traffic behavior
2.2.12 remark local-precedence
2.3 QoS Policy Configuration Commands
2.3.2 display qos policy user-defined
2.3.3 display qos policy interface
Chapter 3 Congestion Avoidance Configuration Commands
3.1 WRR Queue Configuration Commands
3.1.1 display qos wrr interface
3.2 SP Queue Configuration Commands
Chapter 4 Priority Mapping Configuration Commands
4.1 Priority Mapping Table Configuration Commands
4.2 Port Priority Configuration Commands
4.3 Port Priority Trust Mode Configuration Commands
4.3.1 display qos trust interface
Chapter 5 Congestion Avoidance Configuration Commands
5.1 WRED Configuration Commands
5.1.1 display qos wred interface
Chapter 6 Aggregation CAR Configuration Commands
6.1 Aggregation CAR Configuration Commands
6.1.5 display qos car interface
Chapter 7 VLAN Policy Configuration Commands
7.1 VLAN Policy Configuration Commands
Chapter 8 Traffic Mirroring Configuration Commands
8.1 Traffic Mirroring Configuration Commands
8.1.1 display qos policy user-defined
8.1.2 display traffic behavior user-defined
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 |
Description |
Interface |
Port name, comprising of port type and port number |
Direction |
Direction of traffic policing (TP). As for S3610 and S5510 series Ethernet switches, TP is available to inbound packets only. |
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 rate is lower than CIR |
Red Action |
Action to be taken for packets when the traffic rate exceeds CIR |
Green |
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.
action: Action to be conducted on packets, which can be one of the following:
l discard: Drops the packets.
l 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.
<Sysname> 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
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.
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
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 |
Description |
User Defined Classifier Information |
The information about the user-defined classes is displayed. |
Classifier |
Class name and its contents, which could be of multiple types |
Operator |
Logical relationship among the classification rules |
Rule |
Classification rules |
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 |
acl access-list-number |
Specifies an ACL to match packets. The access-list-number argument is in the range 2000 to 5999. |
acl ipv6 access-list-number |
Specifies an IPv6 ACL to match IPv6 packets. The access-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. 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. |
destination-mac mac-address |
Specifies to match the packets with a specified destination MAC address. |
dot1p 8021p |
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. |
ip-precedence ip-precedence-list |
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. |
protocol protocol-name |
Specifies to match the packets of a specified protocol. The protocol-name argument can be IP, IPv6 or Bittorrent. The S3610&5510 series Ethernet switches do not support the Bittorrent protocol currently. |
source-mac mac-address |
Specifies to match the packets with a specified source MAC address. |
customer-vlan-id vlan-id-list |
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. |
service-vlan-id vlan-id-list |
Specifies to match the packets of specified VLANs of the operator’s 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. |
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.
l If the customer-vlan-id, dot1p, dscp, ip-precedence or service-vlan-id is to be matched, do not configure multiple values in a rule at the same time when you use the if-match command to define match rules.
l You can configure only one ACL rule.
l 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
[Sysname] traffic classifier class1
[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 operator’s network.
<Sysname> system-view
[Sysname] traffic classifier class1
[Sysname-classifier-class1] if-match service-vlan-id 1000
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
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.
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:
l discard, which drops the packet and is the default.
l 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:
l As for S3610/S5510 series Ethernet switches, the TP action is only available to inbound packets.
l Application of policy including TP action on a port will cause the configuration performed by the qos car command ineffective.
l 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
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 |
Description |
User Defined Behavior Information |
The information about user defined traffic behaviors is displayed |
Behavior |
Name of a traffic behavior, which can be of multiple types |
Marking |
Information about priority marking |
Committed Access Rate |
Information about traffic rate limit |
CIR |
Parameter for the aggregation CAR |
CBS |
Committed burst size in bytes, that is, the depth of the token bucket for holding burst traffic |
EBS |
Excessive burst size in bytes, that is, the traffic exceeding 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.
<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] filter deny
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.
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.
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.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.
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.
<Sysname> system-view
[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.
<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.
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.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.
behavior–name: Name of an existing traffic behavior.
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
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 can have a traffic behavior associated with it and can have multiple matching rules configured. Refer to the traffic classifier command. |
Behavior |
Traffic behavior associated with a class. You can configure multiple actions 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.
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 |
Description |
Interface |
Port name, comprising of port type and port number |
Direction |
Direction of the port where the policy is
applied |
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 |
Behavior |
Name and configuration of the behavior in the policy Refer to the commands related to traffic behaviors. |
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.
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]
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: 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
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 |
Group |
ID 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 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 S3610&S5510 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 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.
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
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 TYPE: pre-define
IMPORT : EXPORT
0 : 2
1 : 2
2 : 2
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.
<Sysname> system-view
[Sysname] qos map-table dot1p-dp
[Sysname-maptbl-dot1p-dp]
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
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
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.
<Sysname> system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] qos trust dot1p
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
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
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:
l discard: Drops the packet.
l 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.
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.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.
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 |
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 the token bucket for holding burst traffic |
EBS 100000 (byte) |
Excessive burst size in bytes, that is, the traffic exceeding 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.
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 |
Description |
Interface: Ethernet1/0/1 |
Port where the aggregation CAR action is applied |
Direction: Inbound |
Direction where the aggregation CAR action is applied |
Rule(s): If-match acl 2001 |
Classification rule referenced in the aggregation CAR action |
CIR 200(kbps) |
Parameters for the aggregation CAR action |
CBS 100000 (byte) |
Committed burst size in bytes, that is, the depth of the token bucket for holding burst traffic |
EBS 100000 (byte) |
Excessive burst size in bytes, that is, the traffic exceeding 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.
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
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 |
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.
<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 |
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 various types |
Operator |
Logical relationship between classification rules |
Rule(s) |
Classification rules |
Behavior |
Name of the traffic behavior, and the actions (which could be of various types) in the behavior |
Accounting |
Statistics information about the traffic behavior |
Committed Access Rate |
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 the token bucket for holding burst traffic |
EBS 0 (byte) |
Excessive burst size in bytes, that is, the traffic exceeding CBS when two token buckets are adopted |
Red Action: discard |
Red packets, whose rate is higher than CIR, are dropped. |
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:
l Port-based application: The QoS policy is available for the traffic received on ports.
l 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
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
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 |
Description |
Policy |
Name of the VLAN policy |
Classifier |
Name of the traffic classification rule |
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.
<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 |
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.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