You are on page 1of 49

ZXR10 8900&8900E

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

Revision No. Revision Date Revision Reason

R1.0 2012-01-31 First edition

Serial Number: SJ-20110624091725-012

Publishing Date: 2012-01-31


Contents
About This Manual ......................................................................................... I
Chapter 1 Safety Instruction...................................................................... 1-1
1.1 Safety Instruction ............................................................................................... 1-1
1.2 Safety Signs ...................................................................................................... 1-1

Chapter 2 H-QoS Configuration ................................................................ 2-1


2.1 HQOS Overview ................................................................................................ 2-1
2.2 Configuring HQOS ............................................................................................. 2-1
2.2.1 Configuring Flow Classification.................................................................. 2-1
2.2.2 Configuring WRED policy.......................................................................... 2-2
2.2.3 Configuring WFQ policy ............................................................................ 2-2
2.2.4 Configuring traffic shaping ........................................................................ 2-3
2.2.5 Configuring priority policy.......................................................................... 2-3
2.2.6 Configuring HQoS policy........................................................................... 2-3
2.2.7 Configuring HQoS binding policy ............................................................... 2-4
2.3 HQOS Maintenance ........................................................................................... 2-5
2.4 H-QoS Configuration Examples........................................................................... 2-5
2.4.1 Priority Scheduling Configuration Example................................................. 2-5
2.4.2 WRED Configuration Example .................................................................. 2-9
2.5 H-QoS Malfunction Handling ............................................................................. 2-10
2.5.1 Network Topology................................................................................... 2-10
2.5.2 Malfunction Analysis................................................................................2-11
2.5.3 Handling Flow .........................................................................................2-11
2.5.4 Handling Procedure................................................................................ 2-12

Chapter 3 Port QoS Configuration............................................................ 3-1


3.1 Port QoS Overview............................................................................................. 3-1
3.2 Configuring Port QoS ......................................................................................... 3-1
3.2.1 Configuring Traffic Limit ............................................................................ 3-1
3.2.2 Configuring Traffic Shaping ....................................................................... 3-1
3.2.3 Configuring Queue Scheduling.................................................................. 3-2
3.2.4 Configuring Default Priority ....................................................................... 3-2
3.2.5 Configuring drop priority............................................................................ 3-2
3.2.6 Configuring Local Priority .......................................................................... 3-2
3.2.7 Configuring Tail Drop ................................................................................ 3-3

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

Chapter 4 Flow QoS Configuration........................................................... 4-1


4.1 Flow Classification.............................................................................................. 4-1
4.2 Policy Routing.................................................................................................... 4-1
4.3 Priority Mark ...................................................................................................... 4-2
4.4 Traffic Mirroring .................................................................................................. 4-2
4.5 Traffic Statistics.................................................................................................. 4-2
4.6 Configuring Flow QoS......................................................................................... 4-2
4.6.1 Configuring Traffic Limit ............................................................................ 4-2
4.6.2 Configuring Hierarchy Meter ..................................................................... 4-2
4.6.3 Configuring Policy Routing ........................................................................ 4-3
4.6.4 Configuring Priority Mark .......................................................................... 4-3
4.6.5 Configuring Traffic Mirroring ...................................................................... 4-3
4.6.6 Configuring Traffic Statistics...................................................................... 4-4
4.7 Flow QoS Maintenance ...................................................................................... 4-4
4.8 Flow QoS Configuration Example ........................................................................ 4-4
4.8.1 Traffic Limit and Statistics Configuration Example....................................... 4-4
4.8.2 Policy Routing Configuration Example ....................................................... 4-7
4.8.3 Hierarchy Meter Configuration Example....................................................4-11
4.8.4 Traffic Mirroring Configuration Example ................................................... 4-13

Chapter 5 MPLS QOS Configuration ........................................................ 5-1


5.1 MPLS QoS Overview.......................................................................................... 5-1
5.2 Configuring MPLS QOS...................................................................................... 5-1
5.2.1 Configuring Traffic Limit of flow classification group .................................... 5-1
5.2.2 Configuring QoS Label Map ...................................................................... 5-2
5.3 MPLS QOS Maintenance.................................................................................... 5-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

What Is in This Manual


This manual contains the following chapters:

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

1.1 Safety Instruction


Only duly trained and qualified personnel can install, operate and maintain the devices.
During the device installation, operation and maintenance, please abide the local safety
specifications and related operation instructions, otherwise physical injury may occur
or devices may be broken. The safety precautions mentioned in this manual are only
supplement of local safety specifications.
The debug commands on the devices will affect the performance of the devices, which
may bring serious consequences. So take care to use debug commands. Especially, the
debug all command will open all debug processes, so this command must not be used on
the devices with services. It is not recommended to use the debug commands when the
user networks are in normal state.
ZTE Corporation will assume no responsibility for consequences resulting from violation
of general specifications for safety operations or of safety rules for design, production and
use of the devices.

1.2 Safety Signs


The contents that users should pay attention to when they install, operate and maintain
devices are explained in the following formats:

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Note:
Indicates the description, hint, tip and so on for configuration operations.

1-2

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2
H-QoS Configuration
Table of Contents
HQOS Overview.........................................................................................................2-1
Configuring HQOS .....................................................................................................2-1
HQOS Maintenance ...................................................................................................2-5
H-QoS Configuration Examples..................................................................................2-5
H-QoS Malfunction Handling ....................................................................................2-10

2.1 HQOS Overview


Hierarchical QoS (HQoS) is to schedule and control traffic by configuring network topology
extracted from actual network, which ensures quality of network.
1. Supporting hierarchical scheduling

The most obvious characteristic of HQoS is hierarchical scheduling. It is used to


simulate complex networks.
2. Supporting mass of queues

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.2 Configuring HQOS


2.2.1 Configuring Flow Classification
To configure flow classification, perform the following steps.

2-1

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS Configuration


mode

2 ZXR10(config-pmhqos)#flow-class <class-name> This creates a traffic class

3 ZXR10(config-pmhqos-fclass)#match {acl {ipv4-access-list|ip This configures a matching rule in


v4-mixed-access-list|link-access-list}<acl-name> rule <rule-num>| traffic class configuration mode
vlan <vlan-num>| cvlan <cvlan-vum>| svlan <svlan-num>| tunnel
<tunne-id>| vrf <vrf-name>| vfi <vfi-name>}

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 Configuring WRED policy


To configure WRED policy, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS Configuration


mode

2 ZXR10(config-pm-hqos)#wred-profile <profile-name>[level <1 ~ 3>] This creates or enters a WRED


policy

3 ZXR10(config-pmhqos-wred)#color {red | yellow | green} min <1 ~ This configures discarding


511> max <1 ~ 511> percent <0 ~ 100> parameters of WRED policy

2.2.3 Configuring WFQ policy


To configure WFQ policy, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS Configuration


mode

2 ZXR10(config-pm-hqos)#wfq-profile <profile-name>[level <1 ~ 3>] This creates or enters a WFQ policy

3 ZXR10(config-pmhqos-wfq)#weight <1 ~ 255> This configures discarding


parameters of WFQ policy. By
default, the weight is 5

2-2

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

2.2.4 Configuring traffic shaping


To configure traffic shaping policy, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS Configuration


mode

2 ZXR10(config-pm-hqos)#shaping-profile <profile-name>[level <2 ~ This creates or enters a traffic


3>] shaping policy

3 ZXR10(config-pmhqos-wfq)#shaping cir <100 ~ 10000000> cbs This configures discarding


<1024 ~ 16711680> pir <180 ~ 10000000> pbs <1024 ~ 16711680> parameters of traffic shaping
policy.
l By default, the value of cir is
10000000
l By default, the value of cbs is
16711680
l By default, the value of pir is
10000000
l By default, the value of pbs is
16711680

2.2.5 Configuring priority policy


To configure priority policy, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS configuration


mode

2 ZXR10(config-pm-hqos)#priority-profile <profile-name> This creates or enters priority policy

3 ZXR10(config-pmhqos-priority)#flow-class {af1 | af2 | af3 | af4 | This configures parameters of


be | cs6 | cs7 | ef }{green {<0-3>| inactive }| mode {dual | single}| yllow priority policy
{<0-3>| inactive }}

2.2.6 Configuring HQoS policy


To configure HQoS policy, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS Configuration


mode

2-3

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Step Command Function

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

3 ZXR10(config-pmhqos-policy)#description <string> The parameter string is 200


characters at most in length

4 ZXR10(config-pmhqos-policy)#flow-class <class-name> This accesses flow classification


view in policy view. Flows in the
same layer must be of the same
class

5 ZXR10(config-pmhqos-pfclass)#policy-profile <policy-name > This configures sub-policy in flow


classification view

6 ZXR10(config-pmhqos-pfclass)#priority {high | lowpropagated| This configures queue priority in flow


propagated} classification view, high priority by
default

7 ZXR10(config-pmhqos-pfclass)#wfq-profile <profile-name> This applies WFQ policy in flow


classification view

8 ZXR10(config-pmhqos-pfclass)#wred-profile <profile-name> This applies WRED policy in flow


classification view

9 ZXR10(config-pmhqos-pfclass)#shaping-profile <profile-name> This applies shaping policy in flow


classification view

10 ZXR10(config-pmhqos-pfclass)#priority-profile <profile-name> This applies priority policy in flow


classification view

11 ZXR10(config-pmhqos)#hqos-copy <source-hqos-policy><destinatio This copies H-QoS policy


n-hqos-policy>[overwrite]

12 ZXR10(config-pmhqos)#hqos-dscp <portname>{in | out} dscp {enable This enables or disables HQoS


| disable} DSCP

2.2.7 Configuring HQoS binding policy


To configure HQoS binding policy, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-hqos This enters HQoS configuration


mode

2 ZXR10(config-pm-hqos)#hqos-bind <port-name><policy-name>{ in | This configures HQoS binding policy


out } shaping <shaping-name>

2-4

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

2.3 HQOS Maintenance


ZXR10 8900&8900E provides the following commands to maintain H-QoS.

Command Function

ZXR10#show hqos-mode This shows HQoS mode

ZXR10#show flow-class [name] This shows flow class

ZXR10#show wfq-profile [name] This shows WFQ profile

ZXR10#show wred-profile [name] This shows WRED profile

ZXR10#show shaping-profile [name] This shows shaping profile

ZXR10#show priority-profile [name] This shows priority profile

ZXR10#show hqos-policy [name] This shows HQoS policy

ZXR10#show hqos-bind [port] This shows HQoS binding

ZXR10#show hqos-statistics <port-name>{in | out} This shows statistics of HQoS

2.4 H-QoS Configuration Examples


2.4.1 Priority Scheduling Configuration Example
Configuration Description
As shown in Figure 2-1, gei-0/1/0/1 and gei-0/1/0/2 connect to four users: user1, user2,
user3 and user4. They have the following requirements:
l Packets of user1 pass through in preference to other packet. The maximum bandwidth
is 500 M.
l Committed rate of user2 is 300 M. The rate can be larger than 300 M.
l Committed rate of user3 is 100 M. The burst rate is 150 M.
l Committed rate of user4 is 100 M. The burst rate is 150 M.

Figure 2-1 H-QoS Configuration Example

Method
1. Configure the ACL.

2-5

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

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. Configure the flow classes:


ZXR10(config-pm-hqos)#flow-class class1
ZXR10(config-pmhqos-fclass)#match acl link-access-list 1 rule 1
ZXR10(config-pmhqos-fclass)#exit
ZXR10(config-pm-hqos)#flow-class class2
ZXR10(config-pmhqos-fclass)#match acl link-access-list 1 rule 2
ZXR10(config-pmhqos-fclass)#exit
ZXR10(config-pm-hqos)#flow-class class3
ZXR10(config-pmhqos-fclass)#match acl link-access-list 1 rule 3
ZXR10(config-pmhqos-fclass)#exit
ZXR10(config-pm-hqos)#flow-class class4
ZXR10(config-pmhqos-fclass)#match acl link-access-list 1 rule 4
ZXR10(config-pmhqos-fclass)#exit
ZXR10(config-pm-hqos)#flow-class classvlan
ZXR10(config-pmhqos-fclass)#match vlan 10
ZXR10(config-pmhqos-fclass)#exit

3. Configure speed limitation:


ZXR10(config-pm-hqos)#shaping-profile shape1 level 2
ZXR10(config-pmhqos-shaping)#shaping cir 180 cbs 1024 pir 500000 pbs 5000
ZXR10(config-pmhqos-shaping)#exit
ZXR10(config-pm-hqos)#shaping-profile shape2 level 2
ZXR10(config-pmhqos-shaping)#shaping cir 300000 cbs 3000 pir 10000000 pbs 100000
ZXR10(config-pmhqos-shaping)#exit
ZXR10(config-pm-hqos)#shaping-profile shape3 level 2
ZXR10(config-pmhqos-shaping)#shaping cir 100000 cbs 10000 pir 150000 pbs 1500
ZXR10(config-pmhqos-shaping)#exit

2-6

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

4. Configure PQ:
ZXR10(config-pm-hqos)#priority-profile pq1
ZXR10(config-pmhqos-priority)#flow-class af1 green 3
ZXR10(config-pmhqos-priority)#exit

5. Configure the level 2 policy:


ZXR10(config-pm-hqos)#hqos-policy policy2 level 2 mode vlan
ZXR10(config-pmhqos-policy)#flow-class class1
ZXR10(config-pmhqos-pclass)#shaping-profile shape1
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#flow-class class2
ZXR10(config-pmhqos-pclass)#shaping-profile shape2
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#flow-class class3
ZXR10(config-pmhqos-pclass)#shaping-profile shape3
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#flow-class class4
ZXR10(config-pmhqos-pclass)#shaping-profile shape3
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#exit

6. Configure the level 3 policy:


ZXR10(config-pm-hqos)#hqos-policy policy3 level 3 mode vlan
ZXR10(config-pmhqos-policy)#flow-class classvlan
ZXR10(config-pmhqos-pclass)#priority-profile pq1
ZXR10(config-pmhqos-pclass)#policy-profile policy2
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#exit

7. Bind the level 3 policy to the interface:


ZXR10(config-pm-hqos)# hqos-bind gei-0/1/1/3 policy3 out shaping default4

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

2.4.2 WRED Configuration Example


Configuration Description
Configure a WRED policy on an interface to make packets with different priorities have
different dropping policies when congestion occurs.
l The minimum dropping threshold of the queue with priority 0 is 30 kb, and the
maximum dropping threshold is 100 kb. The dropping probability is 90%. The
exponent of the average queue length is 8.
l The minimum dropping threshold of the queue with priority 1 is 120 kb, and the
maximum dropping threshold is 200 kb. The dropping probability is 80%. The
exponent of the average queue length is 8.
l The minimum dropping threshold of the queue with priority 2 is 220 kb, and the
maximum dropping threshold is 300 kb. The dropping probability is 70%. The
exponent of the average queue length is 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. Create the level 1 policy:


ZXR10(config-pm-hqos)#hqos-policy policy1 level 1 mode vlan
ZXR10(config-pmhqos-policy)#flow-class be
ZXR10(config-pmhqos-pclass)#wred-profile wred1
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#flow-class af1
ZXR10(config-pmhqos-pclass)#wred-profile wred2
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#flow-class af2

2-9

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

ZXR10(config-pmhqos-pclass)#wred-profile wred3
ZXR10(config-pmhqos-pclass)#exit

3. Create the level 2 policy and bind it to the level 1 policy:


ZXR10(config)#ipv4-access-list aa
ZXR10(config-ipv4-acl)#rule 1 permit any
ZXR10(config-ipv4-acl)#exit
ZXR10(config)#pm-hqos
ZXR10(config-pm-hqos)#flow-class acl
ZXR10(config-pmhqos-fclass)#match acl ipv4-access-list aa rule 1
ZXR10(config-pmhqos-fclass)#exit
ZXR10(config-pm-hqos)#hqos-policy policy22 level 2 mode vlan
ZXR10(config-pmhqos-policy)#flow-class acl
ZXR10(config-pmhqos-pclass)#policy-profile policy1
ZXR10(config-pmhqos-pclass)#exit

4. Create the level 3 policy and bind it to the level 2 policy:


ZXR10(config-pm-hqos)#flow-class classvlan
ZXR10(config-pmhqos-fclass)#match vlan 10
ZXR10(config-pmhqos-fclass)#exit
ZXR10(config-pm-hqos)#hqos-policy policy3 level 3 mode vlan
ZXR10(config-pmhqos-policy)#flow-class classvlan
ZXR10(config-pmhqos-pclass)#policy-profile policy2
ZXR10(config-pmhqos-pclass)#exit
ZXR10(config-pmhqos-policy)#exit

5. Bind the level 3 policy to the ingress interface:


ZXR10(config-pm-hqos)# hqos-bind gei-0/3/0/5 policy3 in shaping default4

2.5 H-QoS Malfunction Handling


2.5.1 Network Topology
A topology of H-QOS malfunction handling is shown in Figure 2-2.

2-10

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

Figure 2-2 H-QoS Malfunction Topology

2.5.2 Malfunction Analysis


The analysis for malfunctions that may appear during H-QoS configuration is described
below.
l Errors in flow-class configuration
Analysis: Some “match” entries collide with each other in a flow-class. Check these
entries.
l Errors in hqos-policy configuration
Analysis: Check whether the class that is configured in hqos-policy exists and whether
there is mutually exclusive relationship.
l Errors in hqos-bind binding on an interface
Analysis: H-QoS functions of different hierarchies have differences. When binding
policy maps to interfaces, check whether the policies of different hierarchies are
supported.
l Invalid binding or incorrect validation of hqos-policy binding on an interface
Analysis: Check whether the binding interface is correct. Check whether the “march”
entries of the flow-class and the planning classes are consistent. Check whether the
actions in the policy and the planning are consistent. Check whether the classes are
correct and whether different flow-class cover each other.

2.5.3 Handling Flow


The flow to handle a H-QoS malfunction is shown in Figure 2-3.

2-11

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Figure 2-3 Flow to Handle H-QoS Malfunction

2.5.4 Handling Procedure


The procedure to handle a H-QoS malfunction is described below.

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 2 H-QoS Configuration

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

This page intentionally left blank.

2-16

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 3
Port QoS Configuration
Table of Contents
Port QoS Overview.....................................................................................................3-1
Configuring Port QoS .................................................................................................3-1
Port QoS Configuration Example................................................................................3-3

3.1 Port QoS Overview


In traditional Internet Protocol (IP) network, all packets are treated without any difference.
Router uses First In First Out (FIFO) policy to handle packets. Routers use best-effort
principle to transmit packets to destinations. However, the routers cannot guarantee the
performance such as packet transmission reliability, delay and so on.
With the development of new applications in IP network, there are new requirements for
quality of service. The best-effort in traditional IP network cannot meet the requirements
of applications. For example, in VoIP service, if the transmission delay of packets is too
long, users cannot bear it. A feasible method to solve the problem is to provide the Quality
of Service (QoS) ability for the Internet.
QoS is to provide different service qualities (such as providing special bandwidth, reducing
packet loss rate, delay and delay jitter) according to different requirements of applications.

3.2 Configuring Port QoS


3.2.1 Configuring Traffic Limit
To configure traffic limit, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#traffic-limit <interface> rate-limit This configures traffic limit


<1-10000000> bucket-size <1-4096>

3.2.2 Configuring Traffic Shaping


To configure traffic shaping, perform the following steps.

3-1

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Step Command Function

1 ZXR10(config-pm-qos)#traffic-shape <interface> data-limit This configures traffic shaping


<64-10000000> burst-size <1-4096>

3.2.3 Configuring Queue Scheduling


To configure queue scheduling, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#queue-mode <interface>{ strict-priority | This configures queue scheduling


wrr <0-7><1-255>| dwrr<0-7><1-4080>}

3.2.4 Configuring Default Priority


To configure defualt priority, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#priority <interface><0-7> This configures default priority

3.2.5 Configuring drop priority


To configure drop priority, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#cos-drop-map <0-2><0-2><0-2><0-2><0-2 This configures drop priority


><0-2><0-2><0-2>

2 ZXR10(config-pm-qos)#trust-cos-dp-map <interface>{ enable | This enables or disables drop priority


disable }

3.2.6 Configuring Local Priority


To configure local priority, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#cos-local-map <0-7><0-7><0-7><0-7><0-7 This configures local priority


><0-7><0-7><0-7>

2 ZXR10(config-pm-qos)#trust-cos-lp-map <interface>{ enable | This enables or disables local priority


disable }

3-2

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 3 Port QoS Configuration

3.2.7 Configuring Tail Drop


To configure tail drop, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#tail-drop <0-4> queue-id <0-7><1-255><1- This configures tail drop template


255><1-255>

2 ZXR10(config-pm-qos)#drop-mode <interface> tail-drop <0-4> This configures tail drop

3.2.8 Configuring DSCP Mapping


To configure DSCP mapping, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#conform-dscp <0-63><0-63><0-7><0-2> This configures DSCP mapping

2 ZXR10(config-pm-qos)#trust-dscp <interface>{ enable | disable } This enables or disables DSCP


mapping

3.2.9 Configuring Bandwidth Limit


To configure bandwidth limit, perform the following steps.

Step Command Function

1 ZXR10(config-pm-qos)#traffic-shape <interface> queue This configures bandwidth limit


<0-7> min-gua-datarate <64-10000000> max-datarate-limit
<64-10000000>

3.3 Port QoS Configuration Example


Configuration Description
Network A, Network B and internal servers are connected to an Ethernet switch, as shown
in Figure 3-1. Internal servers include a VOD server. To ensure QoS of VOD, it shall
be configured with a higher priority. Internal users can access Internet through proxy.
However, bandwidth of Network A and B shall be limited and traffic statistics is required.

3-3

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Figure 3-1 Port QoS Configuration Example

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4
Flow QoS Configuration
Table of Contents
Flow Classification......................................................................................................4-1
Policy Routing ............................................................................................................4-1
Priority Mark ...............................................................................................................4-2
Traffic Mirroring ..........................................................................................................4-2
Traffic Statistics ..........................................................................................................4-2
Configuring Flow QoS ................................................................................................4-2
Flow QoS Maintenance ..............................................................................................4-4
Flow QoS Configuration Example...............................................................................4-4

4.1 Flow Classification


Traffic refers to packets passing through switch. Flow classification is the process of
distinguishing one kind of traffic from another by examining the fields in the packet.
Flow classification of QoS is based on ACL and the ACL rule must be permitted. The user
can classify packets according to some filter options of the ACL which are as follows:
l Source IP address, destination IP address, source MAC address, destination MAC
address, IP protocol type and TCP source port number
l TCP destination port number, UDP source port number, UDP destination port number,
ICMP type, ICMP code, DSCP, ToS, precedence, source VLAN ID, Layer 2 Ethernet
protocol type and 802.1p priority value

4.2 Policy Routing


Redirecting is used to make the decision again about the forwarding of packets with certain
features according to traffic classification. Redirection changes transmission direction of
packets and export messages to the specific port, CPU or next-hop IP address.

Redirect packets to the next-hop IP address to implement policy routing.


On the aspect of packet forwarding control, policy-based routing has more powerful control
capacity than traditional routing because it can select a forwarding path according to the
matched field in the ACL. Policy routing can implement traffic engineering to a certain
extent, thus making traffic of different service quality or different service data (such as
voice and FTP) to go to different paths. The user has higher and higher requirements for
network performance, therefore it is necessary to select different packet forwarding paths
based on the differences of services or user categories.

4-1

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

4.3 Priority Mark


Priority marking is used to reassign a set of service parameters to specific traffic described
in the ACL to perform the following operations:
l Change the CoS queue of the packet and change the 802.1p value.
l Change the CoS queue of the packet and do not change the 802.1p value.
l Change the DSCP value of the packet.
l Change the discard priority of the packet.

4.4 Traffic Mirroring


Traffic mirroring is used to copy a service flow matching the ACL rule to the CPU or specific
port to analyze and monitor packets during network fault diagnosis.

4.5 Traffic Statistics


Traffic statistics is used to sum up packets of the specific service flow. This is to understand
the actual condition of the network and reasonably allocate network resources. The main
content of traffic statistics contains the number of packets received from the incoming
direction of the port.

4.6 Configuring Flow QoS


4.6.1 Configuring Traffic Limit
To configure traffic limit, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#traffic-limit-acl {ipv4-access-list| ipv4-mix| This configures traffic limit


ipv6-access-list| link-acl}< WORD> rule-id < 1-2147483644>
cir < 64-32000000> cbs < 1-16000>{eir < 64-32000000> ebs <
4-16000>}|{ebs < 4-16000>}|{pir < 64-32000000> pbs < 4-16000>}
mode {blind}|{aware}[drop-yellow][forward-red][remark-red-dp{hi
gh}|{low}|{medium}][remark-red-dscp<0-63>][remark-yellow-dp
{high}|{low}|{medium}][remark-yellow-dscp <0-63>]

4.6.2 Configuring Hierarchy Meter


To configure hierarchy meter, perform the following steps.

4-2

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4 Flow QoS Configuration

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#traffic-macro-flow <WORD> cir This configures macro meter


<8-32000000> cbs <1-16000> mode {band-borrow }|{band-limit }

3 ZXR10(config-pm-qos)#traffic-micro-flow {ipv4-access-list| This configures micro meter


ipv4-mix| ipv6-access-list| link-acl}< WORD> rule-id < 1-2147483644>
cir < 64-32000000> cbs < 8-16000> macro-flow < WORD>[forward-r
ed][remark-red-dscp<0-63>][remark-red-dp{high}|{low}|{medium}]

4.6.3 Configuring Policy Routing


To configure policy routing, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#redirect in {ipv4-access-list| ipv4-mix| This configures policy routing


ipv6-access-list| link-acl}< WORD> rule-id < 1-2147483644>{ cpu}|{
interface <gei->}|{ next-hop < A.B.C.D>}

4.6.4 Configuring Priority Mark


To configure priority mark, perform the following steps.

Step Command

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#priority-mark {ipv4-access-list| ipv4-mix| This configures priority mark


ipv6-access-list| link-acl}< WORD> rule-id < 1-2147483644>{[cos
<0-7>]|[local-precedence <0-7>]}[drop-precedence {high}|{mediu
m}|{low}]{[dscp <0-63>]|[precedence <0-7>]}[out-vlanID <1-4094>]

4.6.5 Configuring Traffic Mirroring


To configure traffic mirroring, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

4-3

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Step Command Function

2 ZXR10(config-pm-qos)#traffic-mirror in {ipv4-access-list| ipv4-mix| This configures traffic mirroring


ipv6-access-list| link-acl}< WORD> rule-id < 1-2147483644>{ cpu}|{
interface <gei->}

4.6.6 Configuring Traffic Statistics


To configure traffic statistics, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#traffic-statistics {ipv4-access-list| ipv4-mix| This configures traffic statistics


ipv6-access-list| link-acl}< WORD> rule-id < 1-2147483644> pkt-type {
all}|{green}|{red}|{yellow} statistics-type { byte}|{ packet}

4.7 Flow QoS Maintenance


ZXR10 8900&8900E provides the following commands to maintain fLow QoS.

Command Function

ZXR10#show traffic-statistics {ipv4-access-list| ipv4-mix| ipv6-access-list| This shows statistics of traffic


link-acl}< WORD> rule-id < 1-2147483644>

ZXR10#clear traffic-statistics {ipv4-access-list| ipv4-mix| ipv6-access-list| This clears statistics of traffic


link-acl}< WORD> rule-id < 1-2147483644>

4.8 Flow QoS Configuration Example


4.8.1 Traffic Limit and Statistics Configuration Example
Configuration Description
Network A, Network B and internal servers are connected to an Ethernet switch, as shown
in Figure 4-1. Internal servers include a VOD server with IP address 192.168.4.70. To
ensure QoS of VOD, it shall be configured with a higher priority. Internal users can access
Internet through proxy 192.168.3.100. However, bandwidth of Network A and B shall be
limited and traffic statistics is required.

4-4

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4 Flow QoS Configuration

Figure 4-1 Traffic Limit and Statistics Configuration Example

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

/*Binding the interface of network A*/


ZXR10(config)#ipv4-access-group interface gei-0/1/0/1 ingress managerA

/*Configuring priority mark*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#priority-mark ipv4-access-list managerA rule-id 10 cos 7
dscp 63

/*Configuring traffic limit*/


ZXR10(config-pm-qos)#traffic-limit-acl ipv4-access-list managerA rule-id 20 cir
10000 cbs 200 ebs 3000 mode blind

/*Configuring traffic statistics*/


ZXR10(config-pm-qos)#traffic-statistics ipv4-access-list managerA rule-id 20

4-5

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

pkt-type all statistics-type packet


ZXR10(config-pm-qos)#exit
ZXR10(config)#

/*Configuring ACL rule*/


ZXR10(config)#ipv4-access-list managerB
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

/*Binding the interface of network B*/


ZXR10(config)#ipv4-access-group interface gei-0/1/0/2 ingress managerB

/*Configuring priority mark*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#priority-mark ipv4-access-list managerB rule-id 10 cos 7
dscp 63

/*Configuring traffic limit*/


ZXR10(config-pm-qos)#traffic-limit-acl ipv4-access-list managerB rule-id 20 cir
20000 cbs 200 ebs 3000 mode blind

/*Configuring traffic statistics*/


ZXR10(config-pm-qos)#traffic-statistics ipv4-access-list managerB rule-id 20
pkt-type all statistics-type packet
ZXR10(config-pm-qos)#exit
ZXR10(config)#

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4 Flow QoS Configuration

/*Verifying ACL binding*/


ZXR10(config)#show ipv4-access-groups
Interface name|vlan Direction ACL name
-----------------------------------------------------------------
gei-0/1/0/1 Ingress managerA
gei-0/1/0/2 Ingress managerB
/*Verifying Qos configuration*/
ZXR10(config-pm-qos)#show running-config pm-qos
!<QOS>
pm-qos
traffic-limit-acl ipv4-access-list managerA rule-id 20 cir 10000 cbs 200 ebs
3000 mode blind
traffic-limit-acl ipv4-access-list managerB rule-id 20 cir 20000 cbs 2000 ebs
3000 mode blind
priority-mark ipv4-access-list managerA rule-id 10 cos 7 dscp 63
priority-mark ipv4-access-list managerB rule-id 10 cos 7 dscp 63
traffic-statistics ipv4-access-list managerA rule-id 20 pkt-type all statistics-type
packet
traffic-statistics ipv4-access-list managerB rule-id 20 pkt-type all statistics-type
packet !</QOS>
/*Checking traffic statistics*/
ZXR10#show traffic-statistics ipv4-access-list managerA rule-id 20
Shelf Slot PKT/BYTE STATUS
--------------------------------------
0 1 25645 OK
---------------------------------------
SUM 25645
ZXR10#show traffic-statistics ipv4-access-list managerB rule-id 20
Shelf Slot PKT/BYTE STATUS
--------------------------------------
0 1 1000 OK
---------------------------------------
SUM 1000

4.8.2 Policy Routing Configuration Example


Configuration Description
As shown in Figure 4-2 PC-A, R2, PC-B and Server AAA are connected to a switch R1.
Because route 200.0.0.0 is not advertised to R1 by R2, policy routing is configured to
transport traffic between R1 and R2.

4-7

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Figure 4-2 Policy Routing Configuration Example

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

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4 Flow QoS Configuration

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

/*Configuring ACL rule*/


ZXR10(config)#ipv4-access-list redirectAAA
ZXR10(config-ipv4-acl)#rule 10 permit tcp 192.168.210.2 0.0.0.0 any
ZXR10(config-ipv4-acl)#rule 20 permit ip any any
ZXR10(config-ipv4-acl)#exit

/*Binding the interface connected to server AAA*/


ZXR10(config)#ipv4-access-group interface gei-0/1/0/4 ingress redirectAAA

/*Configuring redirecting to CPU*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#redirect in ipv4-access-list redirectAAA rule-id 10 cpu
ZXR10(config-pm-qos)#exit

4-9

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

/*Configuring AAA rule*/


ZXR10(config)#ipv4-access-list redirect_1_2
ZXR10(config-ipv4-acl)#rule 10 permit ip any 200.0.0.0 0.0.0.255
ZXR10(config-ipv4-acl)#rule 20 permit ip any any
ZXR10(config-ipv4-acl)#exit

/*Binding the interface connected to PC-B*/


ZXR10(config)#ipv4-access-group interface gei-0/1/0/2 ingress redirect_1_2

/*Configuring static route*/


ZXR10(config)#ip route 200.0.0.2 255.255.255.255 192.168.110.1
ZXR10(config)#ip route 200.0.0.2 255.255.255.255 192.168.103.1

/*Configuring policy routing*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#redirect in ipv4-access-list redirect_1_2 rule-id 10
next-hop 200.0.0.2
ZXR10(config-pm-qos)#exit

/*Configuring ACL rule*/


ZXR10(config)#ipv4-access-list redirect_1_1
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 200.0.0.0 0.0.0.255
ZXR10(config-ipv4-acl)#rule 30 permit ip any any
ZXR10(config-ipv4-acl)#exit

/*Binding the interface connected to PC-A*/


ZXR10(config)#ipv4-access-group interface gei-0/1/0/1 ingress redirect_1_1

/*Configuring policy routing*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#redirect in ipv4-access-list redirect_1_1 rule-id 20
next-hop 200.0.0.2
ZXR10(config-pm-qos)#redirect in ipv4-access-list redirect_1_1 rule-id 10
gei_0/1/0/2
ZXR10(config-pm-qos)#priority-mark ipv4-access-list redirect_1_1 rule-id 10
out-vlanID 2
ZXR10(config-pm-qos)#exit

Configuration on the R2:


/*Configuring VLAN interface*/
ZXR10(config)#switchvlan-configuration
ZXR10(config-swvlan)#interface gei-0/1/0/10

4-10

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4 Flow QoS Configuration

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)#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.8.3 Hierarchy Meter Configuration Example


Configuration Description
As shown in Figure 4-3 Network A, B and C are connected to Internet by proxy server
192.168.3.100. It is required for Internet bandwidth restrictions of Network A, B ,C:
l Network A, the maximum bandwidth required for 40M
l Network B, the maximum bandwidth required for 30M
l Network C, the maximum bandwidth required for 30M

4-11

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Figure 4-3 Hierarchy Meter Configuration Example

Configuration Commands
Configuration on the R1:

/*Configuring ACL rule*/


ZXR10(config)#ipv4-access-list meterA
ZXR10(config-ipv4-acl)#rule 10 permit ip any any
ZXR10(config-ipv4-acl)#exit
ZXR10(config)#ipv4-access-list meterB
ZXR10(config-ipv4-acl)#rule 10 permit ip any any
ZXR10(config-ipv4-acl)#exit
ZXR10(config)#ipv4-access-list meterC
ZXR10(config-ipv4-acl)#rule 10 permit ip any any
ZXR10(config-ipv4-acl)#exit

/*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

/*Configuring macro meter*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#traffic-macro-flow R1 eir 100000 ebs 1000 mode band-borrow

/*Configuring micro meter of a network*/


ZXR10(config-pm-qos)# traffic-micro-flow ipv4-access-list meterA rule-id 10 eir
40000 ebs 1000 macro-flow R1
ZXR10(config-pm-qos)# traffic-micro-flow ipv4-access-list meterB rule-id 10 eir

4-12

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 4 Flow QoS Configuration

30000 ebs 1000 macro-flow R1


ZXR10(config-pm-qos)# traffic-micro-flow ipv4-access-list meterC rule-id 10 eir
30000 ebs 1000 macro-flow R1
ZXR10(config-pm-qos)#exit
ZXR10(config)#

4.8.4 Traffic Mirroring Configuration Example


Configuration Description
As shown in Figure 4-4PC-A and PC-B are connected to switch R1It is required that packets
between PC-A and PC-B are mirrored to PC for diagnosis.

Figure 4-4 Traffic Mirroring Configuration Example

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

/*Bingding the interface connected to PC-A*/


ZXR10(config)#ipv4-access-group interface gei-0/1/0/1 ingress mirror1

/*Configuring Traffic Mirroring*/


ZXR10(config)#pm-qos
ZXR10(config-pm-qos)#traffic-mirror in ipv4-access-list mirror1 rule-id 10
interface gei_0/1/0/2
ZXR10(config-pm-qos)#exit
ZXR10(config)#

4-13

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

ZXR10(config)#ipv4-access-group interface gei-0/1/0/10 egress mirror1

4-14

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 5
MPLS QOS Configuration
Table of Contents
MPLS QoS Overview .................................................................................................5-1
Configuring MPLS QOS .............................................................................................5-1
MPLS QOS Maintenance ...........................................................................................5-3

5.1 MPLS QoS Overview


MPLS QoS is an important component to deploy QoS service. In practical MPLS network
solutions, Diff-Serv module is usually used to realize QoS.
Traditional IP QoS judges the classes of services according to IP priorities. In this way
traditional IP service realizes difference service. MPLS QoS distinguishes different data
flows according to EXP priorities. In this way MPLS QoS realizes difference service,
ensuring short delay and low packet loss rate of audio and video data flows and high
network use rate.
MPLS QoS mainly realizes the following functions:
l MPLS QoS classifies service flows on PE devices according to requirements. For
example. MPLS QoS can classify the flows with EXP priority 1 into a class and the
flows with EXP priority 2 into another class, and then monitors and re-marks flows
after flow classification.
l On PE devices, MPLS QoS maps the IP priorities in IP packets into the EXP priorities
in MPLS labels. The type information carried by IP packets now are carried by labels.

5.2 Configuring MPLS QOS


5.2.1 Configuring Traffic Limit of flow classification group
To configure traffic limit, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#mpls-group <group-id> match {mpls-label This configures flow classification


<labelvalue>| exp <expvalue>| cos <cosvlaue>| dscp <dscpvalue>} group

5-1

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

Step Command Function

3 ZXR10(config-pm-qos)#traffic-limit-mpls profile <profile-id> This configures traffic limit of flow


mpls-group <group-id> cir <cir-value> cbs <cbs-value>{ebs classification group
<ebs-value>| pir <pir-value> pbs <pbs-value>}{mode
<mode>}[drop-yellow][forward-red][remark-red-dp {high|low|med
ium}][remark-red-dscp<value>][remark-yellow-dp{high|low|mediu
m}][remark-yellow-dscp<value>]

4 ZXR10(config-pmqos)#mpls-limit-bind {interface <port-name>| This enables traffic limit of flow


vlan <vlan-num>} profile <profile-id> classification group

5.2.2 Configuring QoS Label Map


To configure QoS label map, perform the following steps.

Step Command Function

1 ZXR10(config)#pm-qos This enters pm-qos configuration


mode

2 ZXR10(config-pm-qos)#conform-cos <cos-list>[cos <cos-value>] The CoS field is mapped to MPLS


exp <exp-value> EXP field

3 ZXR10(config-pm-qos)#conform-dscpvpn <dscp-list> exp The DSCP field is mapped to MPLS


<exp-value> EXP field

4 ZXR10(config-pm-qos)#trust-cos-map {interface <port-name>| vlan This enables policy control on CoS


<vlan-num>}enable field

5 ZXR10(config-pm-qos)#trust-dscpvpn-map {interface <port-name>| This enables policy control on DSCP


vlan <vlan-num>} enable field

6 ZXR10(config-pm-qos)#local-pri <local-priority-value> drop-pri This configures local priority


<drop-pri-value> mapping-to-exp <exp-value>

7 ZXR10(config-pm-qos)#trust-localpri-to-exp {vfi <vfi-name>| vrf This enables local priority


<vrf-name>| global}

8 ZXR10(config-pm-qos)#conform-exp <exp-list>{[exp The MPLS EXP field is mapped to


<exp-value>][cos <cos-value>][ dscp <dscp-value>]} CoS or DSCP field

9 ZXR10(config-pm-qos)#conform-label <mpls-label>[exp The MPLS label is mapped to EXP


<exp-value>]{[cos <cos-value>]|[dscp <dscp-value>]} or CoS/DSCP field

10 ZXR10(config-pm-qos)#trust-exp-map {interface <port-name>| This enables MPLS EXP map


vlan <vlan-num>}enable

11 ZXR10(config-pm-qos)#trust-label-map {interface <port-name>| This enables MPLS label map


vlan <vlan-num>}enable

12 ZXR10(config-pm-qos)#exp <exp-value> mapping-to-localpri This configures MPLS EXP


<local-priority-value> drop-pri <drop-pri-value>

5-2

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Chapter 5 MPLS QOS Configuration

Step Command Function

13 ZXR10(config-pm-qos)#trust-exp-to-localpri {vfi <vfi-name>| vrf This enables MPLS EXP


<vrf-name>| global}

5.3 MPLS QOS Maintenance


ZXR10 8900&8900E provides the following commands to maintain MPLS QOS.

Command Function

ZXR10#show running-config pm-qos This shows MPLS QoS

5-3

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


ZXR10 8900&8900E Configuration Guide (QoS)

This page intentionally left blank.

5-4

SJ-20110624091725-012|2012-01-31 ZTE Proprietary and Confidential


Figures
Figure 2-1 H-QoS Configuration Example ................................................................. 2-5
Figure 2-2 H-QoS Malfunction Topology.................................................................. 2-11
Figure 2-3 Flow to Handle H-QoS Malfunction ........................................................ 2-12
Figure 3-1 Port QoS Configuration Example ............................................................. 3-4
Figure 4-1 Traffic Limit and Statistics Configuration Example .................................... 4-5
Figure 4-2 Policy Routing Configuration Example ..................................................... 4-8
Figure 4-3 Hierarchy Meter Configuration Example................................................. 4-12
Figure 4-4 Traffic Mirroring Configuration Example ................................................. 4-13

I
Figures

This page intentionally left blank.


Glossary
CoS
- Class of Service
FIFO
- First In and First Out
IP
- Internet Protocol
QoS
- Quality of Service

III

You might also like