Professional Documents
Culture Documents
Series Switch
Configuration Guide (QoS)
Version: V3.00.01
ZTE CORPORATION
NO. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: http://ensupport.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION
Copyright © 2011 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by
contractual confidentiality obligations.
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE
CORPORATION or of their respective owners.
This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions
are disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose,
title or non-infringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the
use of or reliance on the information contained herein.
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications
covering the subject matter of this document. Except as expressly provided in any written license between ZTE
CORPORATION and its licensee, the user of this document shall not acquire any license to the subject matter
herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit ZTE technical support website http://ensupport.zte.com.cn to inquire related information.
The ultimate right to interpret this product resides in ZTE CORPORATION.
Revision History
I
3.2.8 Configuring DSCP Mapping ...................................................................... 3-3
3.2.9 Configuring Bandwidth Limit...................................................................... 3-3
3.3 Port QoS Configuration Example......................................................................... 3-3
Figures............................................................................................................. I
Glossary ........................................................................................................ III
II
About This Manual
Purpose
First, thank you for choosing the ZXR10 switch of ZTE Corporation (ZTE for short)!
This manual is the ZXR10 8900&8900E (V3.00.01) Series Switch Configuration Guide
(QoS ), which is applicable to the ZXR10 8900&8900E (V3.00.01) series switches.
Intended Audience
This manual is intended for:
l Network planning engineer
l Debugging engineer
l Attendant
Chapter Summary
Chapter 1, Safety Describes the safety precautions related to the use of the switch and
Instruction the symbols used in this manual.
Chapter 2, H-QoS Provides the overview and principles of HQoS configuration, related
Configuration configuration and maintenance commands, and configuration examples.
Chapter 3, Port QoS Provides the overview and principles of Port QoS configuration, related
Configuration configuration and maintenance commands, and configuration examples.
Chapter 4, Flow QoS Provides the overview and principles of Flow QoS configuration, related
Configuration configuration and maintenance commands, and configuration examples.
Chapter 5, MPLS QoS Provides the overview and principles of MPLS QoS configuration,
Configuration related configuration and maintenance commands, and configuration
examples.
I
II
Chapter 1
Safety Instruction
Table of Contents
Safety Instruction .......................................................................................................1-1
Safety Signs ...............................................................................................................1-1
Warning!
Indicates the matters needing close attention. If this is ignored, serious injury accidents
may happen or devices may be damaged.
Caution!
Indicates the matters needing attention during configuration.
1-1
Note:
Indicates the description, hint, tip and so on for configuration operations.
1-2
Different queues mean users of different services. HQoS can store packets received
within 200ms at lone speed on a port. This can avoid congestion.
3. Supporting mass of scheduling nodes
Scheduling node is the main member to create topology model. It can express network
topology factually. With the addition of scheduling hierarchy, the number of needed
scheduling nodes will increase dramatically.
4. Supporting good traffic monitoring and traffic control
HQoS supports multiple traffic monitoring algorithms. It also supports configuration of
CIR and PIR. Traffic less than CIR is guaranteed well. Traffic more than CIR and less
than PIR is guaranteed when there is spare network bandwidth. CIR traffic and PIR
traffic have different schedules.
2-1
Note:
To delete a traffic class, use no flow-class <class-name> command. If the traffic class is
used, the class can not be deleted.
2-2
2-3
2 ZXR10(config-pm-hqos)#hqos-policy <policy-name>[level <1 ~ 3> This enters policy view. If the policy
mode {tunnel| vlan| svlan}] is unavailable, it is necessary to
input level to create a policy. The
policy name is 32 characters at most
2-4
Command Function
Method
1. Configure the ACL.
2-5
2. Set cos values of four users to 1, 2, 3 and 4 respectively and configure four classes.
3. Configure the speed limitation policy.
4. Configure PQ to ensure highest priority of cos 1.
5. Configure the level 2 policy to limit flow speeds of cos 1 – 4.
6. Configure the level 3 policy.
7. Bind the level 3 policy to egress interface gei-0/1/1/3.
Configuration Commands
1. Configure the ACL:
ZXR10(config)#link-access-list 1
ZXR10(config-link-acl)#rule 1 permit any any outer-cos 1
ZXR10(config-link-acl)#rule 2 permit any any outer-cos 2
ZXR10(config-link-acl)#rule 3 permit any any outer-cos 3
ZXR10(config-link-acl)#rule 4 permit any any outer-cos 4
ZXR10(config-link-acl)#rule 5 permit any any
ZXR10(config-link-acl)#exit
2-6
4. Configure PQ:
ZXR10(config-pm-hqos)#priority-profile pq1
ZXR10(config-pmhqos-priority)#flow-class af1 green 3
ZXR10(config-pmhqos-priority)#exit
Configuration Verification
Use the show flow-class command to validate whether the class-map configuration is
correct, as shown below:
ZXR10(config)#show flow-class
flow-class total num is :14
Flow-class classvlan
match vlan 10
Flow-class class4
match acl link-access-list 1 rule 4
Flow-class class3
match acl link-access-list 1 rule 3
2-7
Flow-class class2
match acl link-access-list 1 rule 2
Flow-class class1
match acl link-access-list 1 rule 1
Flow-class cs7
match phb cs7
Flow-class cs6
match phb cs6
Flow-class ef
match phb ef
Flow-class af4
match phb af4
Flow-class af3
match phb af3
Flow-class af2
match phb af2
Flow-class af1
match phb af1
Flow-class be
match phb be
Flow-class default
Use the show hqos-policy command to validate whether the policy configuration is correct,
as shown below:
ZXR10(config)#show hqos-policy
policy-profile level1 total num is :1
policy-profile level2 total num is :2
policy-profile level3 total num is :1
PolicyName Level Mode
------------------------------------------------------
policy3 3 vlan
policy2 2 vlan
default2 2 vlan
default1 1 vlan
Use the show hqos-bind command to validate whether interface binding is correct, as
shown below:
ZXR10(config)#show hqos-bind
hqos bind total num is :1
Interface : gei-0/3/0/5 Direction :in
PolicyName : policy3
ShapingName : default4
2-8
Configuration Thought
1. Create a WRED policy and match it to cos 0 – 2.
2. Create the level 1 policy and add WRED into the policy.
3. Create the level 2 policy and bind it to the level 1 policy.
4. Create the level 3 policy and bind it to the level 2 policy.
5. Bind the level 3 policy to the ingress interface.
Configuration Commands
1. Configure the WRED policy
ZXR10(config-pm-hqos)#wred-profile wred1 level 1
ZXR10(config-pmhqos-wred)#color green min 30 max 100 percent 90
ZXR10(config-pmhqos-wred)#exit
ZXR10(config-pm-hqos)#wred-profile wred2 level 1
ZXR10(config-pmhqos-wred)#color green min 120 max 200 percent 80
ZXR10(config-pmhqos-wred)#exit
ZXR10(config-pm-hqos)#wred-profile wred3 level 1
ZXR10(config-pmhqos-wred)#color green min 220 max 300 percent 70
ZXR10(config-pmhqos-wred)#exit
2-9
ZXR10(config-pmhqos-pclass)#wred-profile wred3
ZXR10(config-pmhqos-pclass)#exit
2-10
2-11
1. Use the show hqos-bind command or the show running-config pm-hqos command to
view the policy binding and check whether interface binding is correct, as shown below.
ZXR10(config-pmhqos-policy)# show hqos-bind
hqos bind total num is :1
Interface : gei-0/3/0/5 Direction :in
PolicyName : policy3
ShapingName : default4
2. Use the show hqos-policy command to view configuration of the policy and check
whether the hierarchies are correct, as shown below.
ZXR10(config-pmhqos-policy)#show hqos-policy
policy-profile level1 total num is :2
policy-profile level2 total num is :3
policy-profile level3 total num is :1
PolicyName Level Mode
------------------------------------------------------
policy22 2 vlan
policy1 1 vlan
2-12
policy3 3 vlan
policy2 2 vlan
default2 2 vlan
default1 1 vlan
3. Use the show flow-classs command to view the configuration of the class and check
whether the matching fields are correct, as shown below.
ZXR10(config-pmhqos-policy)#show flow-class
flow-class total num is :15
Flow-class acl
match acl ipv4-access-list aa rule 1
Flow-class classvlan
match vlan 10
Flow-class class4
match acl link-access-list 1 rule 4
Flow-class class3
match acl link-access-list 1 rule 3
Flow-class class2
match acl link-access-list 1 rule 2
Flow-class class1
match acl link-access-list 1 rule 1
Flow-class cs7
match phb cs7
Flow-class cs6
match phb cs6
Flow-class ef
match phb ef
Flow-class af4
match phb af4
Flow-class af3
match phb af3
Flow-class af2
match phb af2
Flow-class af1
match phb af1
Flow-class be
match phb be
Flow-class default
4. Use the command show running-config pm-hqos to view the configuration of the
class/policy, as shown below.
ZXR10(config-pmhqos-policy)#show running-config pm-hqos
!
<HQOS>
pm-hqos
2-13
priority-profile pq1
flow-class af1 green 3
$
flow-class acl
match acl ipv4-access-list aa rule 1
$
flow-class class1
match acl link-access-list 1 rule 1
$
flow-class class2
match acl link-access-list 1 rule 2
$
flow-class class3
match acl link-access-list 1 rule 3
$
flow-class class4
match acl link-access-list 1 rule 4
$
flow-class classvlan
match vlan 10
$
wred-profile wred1 level 1
color green min 30 max 100 percent 90
$
wred-profile aa level 1
color green min 1 max 2 percent 10
$
wred-profile wred2 level 1
color green min 120 max 200 percent 80
$
wred-profile wred3 level 1
color green min 220 max 300 percent 70
$
wfq-profile wf1 level 3
$
shaping-profile shape1 level 2
shaping cir 180 cbs 1024 pir 500000 pbs 5000
$
shaping-profile shape2 level 2
shaping cir 300000 cbs 3000 pir 10000000 pbs 100000
$
shaping-profile shape3 level 2
shaping cir 100000 cbs 10000 pir 150000 pbs 1500
$
hqos-policy policy1 level 1 mode vlan
2-14
flow-class af2
wred-profile wred3
$
flow-class af1
wred-profile wred2
$
flow-class be
wred-profile wred1
$
$
hqos-policy policy2 level 2 mode vlan
flow-class class4
shaping-profile shape3
$
flow-class class3
shaping-profile shape3
$
flow-class class2
shaping-profile shape2
$
flow-class class1
shaping-profile shape1
$
$
hqos-policy policy3 level 3 mode vlan
flow-class classvlan
policy-profile policy2
priority-profile pq1
$
$
hqos-policy policy22 level 2 mode vlan
flow-class acl
policy-profile policy1
$
$
hqos-bind gei-0/3/0/5 policy3 in shaping default4
!
</hqos>
If the fault persists after the above steps, please ask for technical support.
2-15
2-16
3-1
3-2
3-3
Configuration Commands
Configuration on the switch:
ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#traffic-limit gei_1/4 rate-limit 2000 bucket-size 300
ZXR10(config-pm-qos)#traffic-shape gei_1/4 data-rate 2000 burst-size 300
ZXR10(config-pm-qos)#conform-dscp 20 63 7 0
ZXR10(config-pm-qos)#trust-dscp gei_1/4 enable
ZXR10(config-pm-qos)#cos-local-map 0 1 1 2 2 3 5 7
ZXR10(config-pm-qos)#trust-cos-lp-map gei_1/4
ZXR10(config-pm-qos)#queue-mode gei_1/4 strict-priority
3-4
4-1
4-2
Step Command
4-3
Command Function
4-4
Configuration Commands
Configuration on the switch:
/*Configuring ACL rule*/
ZXR10(config)#ipv4-access-list managerA
ZXR10(config-ipv4-acl)#rule 10 permit tcp any 192.168.4.70 0.0.0.0
ZXR10(config-ipv4-acl)#rule 20 permit ip any 192.168.3.100 0.0.0.0
ZXR10(config-ipv4-acl)#rule permit any
ZXR10(config-ipv4-acl)#exit
4-5
Configuration Verification
Use the following commands to verify that QoS configuration is correct and valid:
/*Verifying ACL configuration*/
ZXR10(config)#show ipv4-access-lists name managerA
ipv4-access-list managerA
3/3 (showed/total)
10 permit tcp any 192.168.4.70 0.0.0.0
20 permit ip any 192.168.3.100 0.0.0.0
30 permit any
ZXR10(config)#show ipv4-access-lists name managerB
ipv4-access-list managerB
3/3 (showed/total)
10 permit tcp any 192.168.4.70 0.0.0.0
20 permit ip any 192.168.3.100 0.0.0.0
30 permit any
4-6
4-7
Configuration Commands
Configuration on the R1:
/*Configuring VLAN interface*/
ZXR10(config)#switchvlan-configuration
ZXR10(config-swvlan)#interface gei-0/1/0/1
ZXR10(config-swvlan-intf)#switchport mode trunk
ZXR10(config-swvlan-intf)#switchport trunk vlan 1
ZXR10(config-swvlan-intf)#exit
ZXR10(config-swvlan)#interface gei-0/1/0/4
ZXR10(config-swvlan-intf)#switchport mode trunk
ZXR10(config-swvlan-intf)#switchport trunk vlan 5
ZXR10(config-swvlan-intf)#exit
ZXR10(config-swvlan)#interface gei-0/1/0/2
ZXR10(config-swvlan-intf)#switchport mode trunk
ZXR10(config-swvlan-intf)#switchport trunk vlan 2
ZXR10(config-swvlan-intf)#exit
4-8
ZXR10(config-swvlan)#interface gei-0/1/0/10
ZXR10(config-swvlan-intf)#switchport mode trunk
ZXR10(config-swvlan-intf)#switchport trunk vlan 10
ZXR10(config-swvlan-intf)#exit
ZXR10(config-swvlan)#interface gei-0/1/0/3
ZXR10(config-swvlan-intf)#switchport mode trunk
ZXR10(config-swvlan-intf)#switchport trunk vlan 4
ZXR10(config-swvlan-intf)#exit
ZXR10(config-swvlan)#exit
ZXR10(config)#interface vlan1
ZXR10(config-if)#ip address 192.168.101.2 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#interface vlan5
ZXR10(config-if)#ip address 192.168.210.2 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#interface vlan2
ZXR10(config-if)#ip address 192.168.102.2 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#interface vlan10
ZXR10(config-if)#ip address 192.168.110.2 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#interface vlan4
ZXR10(config-if)#ip address 192.168.103.2 255.255.255.0
ZXR10(config-if)#exit
4-9
4-10
ZXR10(config-swvlan)#interface gei-0/1/0/20
ZXR10(config-swvlan-intf)#switchport mode trunk
ZXR10(config-swvlan-intf)#switchport trunk vlan 14
ZXR10(config-swvlan-intf)#exit
ZXR10(config-swvlan)#exit
ZXR10(config)#interface vlan10
ZXR10(config-if)#ip address 192.168.110.1 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#interface vlan4
ZXR10(config-if)#ip address 192.168.103.1 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#interface vlan14
ZXR10(config-if)#ip address 200.0.0.2 255.255.255.0
ZXR10(config-if)#exit
4-11
Configuration Commands
Configuration on the R1:
/*Binding interface*/
ZXR10(config)#ipv4-access-group interface gei-0/1/0/1 ingress meterA
ZXR10(config)#ipv4-access-group interface gei-0/1/0/2 ingress meterB
ZXR10(config)#ipv4-access-group interface gei-0/1/0/10 ingress meterC
4-12
Configuration Commands
Configuration on the R1:
/*Configuring ACL rule*/
ZXR10(config)#ipv4-access-list mirror1
ZXR10(config-ipv4-acl)#rule 10 permit icmp 192.168.101.1 0.0.0.0 192.168.210.1
0.0.0.0
ZXR10(config-ipv4-acl)#rule 20 permit ip any any
ZXR10(config-ipv4-acl)#exit
4-13
4-14
5-1
5-2
Command Function
5-3
5-4
I
Figures
III