Sei sulla pagina 1di 35

XR12K QoS

Vincent Ng
TME, SPTG, CCIE#2097
vinng@cisco.com

2006 Cisco Systems, Inc. All rights reserved.

Agenda
Software Architecture
Classifications, Features
Policymaps
QOS Features in 3.5 and 3.6
QOS Features in 3.7
QOS Features in 3.8

2006 Cisco Systems, Inc. All rights reserved.

Qos High-Level View


Parser

SysDB

Class map/Policy Map


Notification/
Verification

QoS Manager

RP
LC

QoS MA

Net-IO

IM/IMP

QoS EA

2006 Cisco Systems, Inc. All rights reserved.

QoS Programming on LC
QoS EA

QoS RM

FM

6
8

9
FAB LC

XBMA
2006 Cisco Systems, Inc. All rights reserved.

UIDB RM

TCAM RM

HFA
4

QoS Classifications
Prec/Dscp
Match Prec/Dscp
Set Prec/Dscp

Qos Group
Match qos-group
Set qos-group

Discard class
Set discard-class
Random-detect discard-class

Vlan/Dlci
Match Vlan/Dlci

MPLS:
Set mpls exp imposition
Random-detect exp

2006 Cisco Systems, Inc. All rights reserved.

QoS Group

Set qos-group supported in ingress policies.


Match qos-group supported only on egress policies.
Range: [0-31]

2006 Cisco Systems, Inc. All rights reserved.

Discard class
Set discard-class is supported on ingress interfaces
also supported as a police set action.

Random-detect discard-class is supported on egress


interfaces.
Wred on traffic matching discard-class set on the ingress
interface.

Range: [0-7]

2006 Cisco Systems, Inc. All rights reserved.

set mpls exp imposition


Set mpls-exp-imposition is allowed only on ingress
policies
mpls exp value in the imposed header will be set with the
specified value.
packet arriving at the input interface may or may not be a nonmpls packet.
Also supported as a police set action.

Range: [0-7]

2006 Cisco Systems, Inc. All rights reserved.

QoS Actions
Shaping
Queue-limit
Bandwidth
Bandwidth remaining
WRED
Burst Value
Policing
SET Attributes

2006 Cisco Systems, Inc. All rights reserved.

Percent and time based options


police rate percent x burst y ms
shape average percent x y ms
queue-limit <threshold> ms
random-detect <precedence|dscp|discard-class|exp> value
<min-threshold> ms <max-threshold> ms
In case of flat policies, reference bandwidth is the interface rate.
In case of hierarchical policies, reference bandwidth is the shape
rate of the parent policy.

2006 Cisco Systems, Inc. All rights reserved.

10

QoS Policy-maps
Flat Policy-map
Hierarhical Policy-maps:
L3/1C/nD
L3/nC/nD
L3/nC/mD

Switch Fabric Policy-map (ToFab QoS).

2006 Cisco Systems, Inc. All rights reserved.

11

L3 QoS Policies Flat Policy


Apply on Main/sub-interface.
Only traffic on that interface is subject to this policy.
New set of queues will be allocated based on number of
classes and replace the existing default queues.

Policymap flatpolicy
class A
shape
police ..
class B
bandwidth ..
..
class class-default

Int serial0/2/0/0
dot1Q vlan 1
service-policy output flatpolicy
Int g0/2/0/0.1
dot1Q vlan 2
service-policy output flatpolicy

2006 Cisco Systems, Inc. All rights reserved.

12

L3 QoS Models L3/1C/nD


Apply hierarchical policy to main
interface.
Main Interface and all subinterfaces share the same virtual
port and set of queues.
Traffic on main interfaces and all
sub-interfaces are subject to the
same policy.

policymap parent
class class-default
shape average <>
service-policy child
Policymap child
class A
shape
police ..
class B
bandwidth ..
..
class class-default

Int g0/2/0/0
service-policy output parent
Int g0/2/0/0.1
dot1Q vlan 1
Int g0/2/0/0.2
dot1Q vlan 2

2006 Cisco Systems, Inc. All rights reserved.

13

L3 QoS Policies L3/nC/nD


Apply on sub-interface.
Only traffic on that sub-interface is subject to this policy.
A virtual port and a set of queues will be allocated to each sub-interface.
Supported on Tetra, Bluenose and Sashimi.
Can be 1cnd or flat policy

policymap parent
class class-default
shape average <>
service-policy child
Policymap child
class A
shape
police ..
class B
bandwidth ..
..
class class-default

Int g0/2/0/0.1
dot1Q vlan 1
service-policy output parent
Int g0/2/0/0.2
dot1Q vlan 2
service-policy output child

2006 Cisco Systems, Inc. All rights reserved.

14

L3 QoS Models L3/nC/mD


Apply hierarchical policy to main interface
A virtual port and a set of queues will be allocated to
each vlan/dlci group.
Vlans belonging to each vlan-group will be subjected to
the same policy.
Vlans not belonging to any vlan-group will be subjected
to the class-default policy of parent policy.

2006 Cisco Systems, Inc. All rights reserved.

15

L3 QoS Models L3/nC/mD


policymap ncmd-parent
class vlangroup1
! Match vlan 1-2
shape average <>
service-policy child1
class vlangroup2 ! Match vlan 3-4
shape average <>
service-policy child2
class class-default
shape average <>
service-policy child3
Policymap child1
class A
shape
police ..
class B
bandwidth ..
..
class class-default

2006 Cisco Systems, Inc. All rights reserved.

Policymap child2
.
Policymap child3
.

Int g0/2/0/0
service-policy output ncmd-parent
Int g0/2/0/0.1
dot1Q vlan 1
Int g0/2/0/0.2
dot1Q vlan 2
Int g0/2/0/0.3
dot1Q vlan 3
.

16

Ingress Hierarchical policy support


A variant of L3/nC/mD
No queueing actions on either parent or child.

2006 Cisco Systems, Inc. All rights reserved.

17

Ingress Hierarchical policy support


policymap ncmd-ingress-parent
class vlangroup1
! Match vlan 1-2
service-policy child1
class vlangroup2 ! Match vlan 3-4
service-policy child2
class class-default
service-policy child3

Policymap child2
.

Policymap child1
class A
police ..
set
class B
set
..
class class-default
police

Int g0/2/0/0.1
dot1Q vlan 1

2006 Cisco Systems, Inc. All rights reserved.

Policymap child3
.

Int g0/2/0/0
service-policy output ncmd-ingress-parent

Int g0/2/0/0.2
dot1Q vlan 2
Int g0/2/0/0.3
dot1Q vlan 3
.

18

Tofab QoS

Only the following classification is supported:


Match precedence
Match exp

Only the following actions are supported:


Priority
Bandwidth remaining percent

2006 Cisco Systems, Inc. All rights reserved.

19

Tofab QoS
Apply to switch-fabric interface using:
switch-fabric service-policy <NAME>

Policy is attached on a global basis


will be applied to the ToFab queues originating from every slot to
every other slot in the chassis
No support for applying tofab policies on a per-slot basis.

2006 Cisco Systems, Inc. All rights reserved.

20

Tofab QoS - Example


Policymap tofabqos
class A
priority
class B
bandwidth remaining percent <>
class C
bandwidth remaining percent <>
switch-fabric
service-policy tofabqos
Note: class A, B and C can be either match precedence or match exp.

2006 Cisco Systems, Inc. All rights reserved.

21

3.5 Features
Dynamic Counters (E5)
MLPPP Dynamic Bandwidth QoS (E5+ only, chT3,
chOC3, chOC12)
Continue bit for dynamic WRED (Police+Wred)
Per Wred Label Stats max 3 labels per class

2006 Cisco Systems, Inc. All rights reserved.

22

3.6 Features
QOS Scalability 1000 class-maps
MFR QOS FRF.16.1 and FRF.12 (E5 chT3/chOC3)
ACL Deny in classification
Multicast Wred for E3
Configurable LPTS Policers

2006 Cisco Systems, Inc. All rights reserved.

23

3.7 Features
Hierarchical ingress policing L3 and L2:
The policymap allows the policier config with the parent level
by which the different type of traffics in the child policy can
be aggregated and policed . And this aggregation can be
across sub-interfaces also.

Some limitations see 3.8 EHIP.


Multiset policer actions L3 only:
Policer action is enhanced to support more combinations as
set mpls exp, set qos-group and set discard-class in the
ingress direction for the case of confirm and exceed

2006 Cisco Systems, Inc. All rights reserved.

24

3.8 Features
In-place policy modification
Match-all
Multiple plain set actions L2 and L3
Match cos/set cos in L3 Intf
Enhanced Hierarchical Policer on E5 L2 and L3
New Policer Granularity
L2 FR QoS
L2 ATM QoS on E3

2006 Cisco Systems, Inc. All rights reserved.

25

Multiple Plain Set L2 and L3


Up to XR3.7 Release, only one plain set is supported in a class under
any policy-map (Both ingress and egress)
From XR3.8 Release, up to 3 multiple plain set are supported in a class
for any policy-map (only in ingress)
Only supported in ingress direction.
And also restricted combinations only supported dueto
marketing restriction and also parity with multiple policer set.
Whatever supported in multiple policer set also will be
supported in multiple plain set.

2006 Cisco Systems, Inc. All rights reserved.

26

Multiple Plain Set (Cont)


Possible few supported multiple plain set sample
Ingress IP-2-TAG traffic
Set mpls exp impression
Set qos-group
Set discard-class

OR
Set mpls exp impression
Set qos-group

OR
Set mpls exp impression
Set discard-class

2006 Cisco Systems, Inc. All rights reserved.

27

Enhanced Hierarchical ingress policing


Why EHP?
Plain HIP do not guarantee that a traffic stream that meets the
conform rate requirement of a child policer is guaranteed bandwidth
at the parent policer if there are misbehaving traffic streams that take
up the available credits at the parent policer bucket.
How EHP?

policy-map parent
class class-default
service policy child
police rate percent 50 << This will be reference bandwidth for child
child-conform-aware
conform-action transmit
exceed-action drop

2006 Cisco Systems, Inc. All rights reserved.

28

Enhanced Hierarchical ingress policing

The child-conform-aware keyword distinguishes this policer from a regular


HIP.
policy-map child

class EF

police rate 1 mbps

confirm-action set mpls experimental imposition 4

exceed-action drop

class AF1

police rate percent 50

conform-action set mpls experimental imposition 3

exceed-action set mpls experimental imposition 2


The order of policing will be from child to Parent

2006 Cisco Systems, Inc. All rights reserved.

29

EHP Limitations
Limitations (Almost same as HIP)
Ingress direction only
Parent Policy
1. Match on VLAN or DLCI for nCmD and 1CnD
2. Only 1R2C policer with default conform and exceed action on
Parent policy-map
3. Parent policer rate should be greater than the sum of child policer rate.

Child Policy
1. No queue actions in Child (only police and set action)
2. No 2R3C policer and dynamic RED together in child.

2006 Cisco Systems, Inc. All rights reserved.

30

Display Commands
sh qos int <> {input|output}
displays the classes, queue numbers, etc.
sh policy int <> [input|output|switch-fabric <slot>]
displays the per-class/match statistics of the
ingress/egress/switch-fabric policy.

2006 Cisco Systems, Inc. All rights reserved.

31

Display Commands (cont )


sh controllers egressq enaq location <>
displays the queue information for all enabled egress queues.
sh controllers ingressq enaq location <>
displays the queue information for all enabled tofab queues.
sh controllers egressq qmreg
sh controllers egressq carve

2006 Cisco Systems, Inc. All rights reserved.

32

Display Commands (cont )


show controllers pse ingress/egress precam interface <> location <>
Shows all the Pmugger jobs running for this interface for a particular
protocol.

show controllers pse ingress/egress precam hardware 1/2 index <>


location <>
Shows the profile bitmap and all the profile words being contrstructed for
that bitmap.

2006 Cisco Systems, Inc. All rights reserved.

33

Debugging
Qos EA commands:
debug qos control hardware classify
debug qos control hardware misc
FM commands:
debug feat-mgr api/detail/error/info location <>
show gsr feat-mgr trace for dumping FM ltrace
HFA:
debug pse action location <>
debug pse pmugger location <>
debug pse slogic location <>
TCAM:
debug pse tcam-rm ...
Qos RM:
debug qos control rm

2006 Cisco Systems, Inc. All rights reserved.

34

2000, Cisco Systems, Inc.

35

Potrebbero piacerti anche