Professional Documents
Culture Documents
Hierarchical QoS and Policies Aggregation PDF
Hierarchical QoS and Policies Aggregation PDF
Aggregation
BRKRST-2504
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 1
Agenda
Hierarchical QoS overview
QoS general concepts
HQoS Deployments examples
“Traditional MQC” HQoS
MQC and HQF overview, restrictions
HQF IOS and platforms support
Evolution : Policies Aggregation
Drivers behind policies aggregation: economy class
Policies Aggregation deep dive with QFP overview
“3 level Hierarchical QoS” with policies aggregation
Future: 4 level policies and policies aggregation
Summary
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 2
QoS General Concepts
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 3
Why Quality of Service (QoS)
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 4
Why Hierarchical QoS
QFP
!!! !!!
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 5
QoS Components
Classification
Policing
Marking
Shaping*
Congestion management and
Queuing*
Scheduling
Link Efficiency (cRTP, fragmentation, etc.)
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 6
Scheduling and QoS
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 7
Queuing Parameters
Priority (priority)
Packets serviced before any other class
Two levels of priority queuing are possible in certain platforms
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 8
QoS Hierarchical Levels
Priority
Traffic
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Typical Single-Level Scheduler
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 10
Two-Level Scheduler
1st layer
Parent level scheduler
enforces max aggregate rate
or excess bw
Determines when
packets are sent
Data
2nd layer Traffic Interface
1st Level
Child queuing policy 2nd Level Best
Effort
determines order in which
Multiple
packets are sent priority
traffic
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 11
Service Propagation
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 12
Typical Hierarchical QoS Deployments
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 13
Traditional WAN Aggregation
with HQoS
Branch towards HQ
CPE
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 14
Ethernet WAN with HQoS
VLAN or Sessions
directly BRANCH
CPE
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 15
DMVPN HQoS
Secure On-Demand Meshed Tunnels
Provides full meshed and
secured connectivity with Hub
simple configuration of
hub and spoke
Same as before, each
spoke ( GRE tunnel ) or VPN
Spoke 1
SA has to be shaped
down
Classification can be
Spoke n Spoke 2
done based pre
DMVPN Tunnels
GRE+IPSec Traditional Static Tunnels
encapsulation Static Known IP Addresses
Dynamic Unknown IP Addresses
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 16
Typical BRAS Deployments with HQoS
BRAS for PTA
Subscriber session could
be represented by: Internet
VLANs PE
IP/MPLS Core
PPP session LAC/LNS
PE PE
IP session
BRAS ISP 1 ISP 2
Residence Residence
or Video C
P
E
C
P
E
IP/MPLS
Core
LAC
Aggregation
Residence Residence
CPE CPE
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 17
MQC/HQF Overview
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 18
QoS with IOS Modular QoS CLI (MQC)
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 19
Basic Hierarchical QoS with IOS MQC
Two MQC Levels
Policy-map PARENT Gig 0/1.1001
Service
class class-default Level
shape average 200000000
service-policy output CHILD
Policy-map CHILD
class EF
priority level 1
class AF4 AF1
priority level 2
class AF1 200 Mbps
bandwidth remaining ratio 9
class class-default
bandwidth remaining ratio 1 AF4
Default
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 20
FRTS with Hierarchical QoS
Policy-map PARENT Two MQC Levels
class class-default
shape average 128000 Ser 0/0.1
service-policy output CHILD Service
Policy-map CHILD Level
class EF
priority percent 5
class AF4
bandwidth percent 45
class AF1 AF1
bandwidth percent 25
class class-default 128 Kbps
bandwidth percent 25
AF4
Map-class frame-relay Hshape Default
service-policy output PARENT
EF
Interface serial 0/0.1 point-to-point
frame-relay interface-dlci 100
class HShape
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 21
Three-Level Hierarchical MQC Policies
policy-map GRANDCHILD
class BUSINESS-NO-MGMT
police cir 128000 Ser 0/0.1
conform-action transmit Service
exceed-action set-frde-transmit Level
!
policy-map CHILD
class VOICE
priority percent 25
class BUSINESS BUSINESS
bandwidth remaining percent 66
512 Kbps
service-policy GRANDCHILD
!
policy-map PARENT
OUT-POLICE
class class-default
shape average 512000
service-policy CHILD VOICE
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 23
DMVPN HQoS
Policy-map PARENT
class Tunnel 1 Secure On-Demand Meshed Tunnels
description match any-to-campus
shape average 2000000
service-policy output CHILD Hub
….
class Tunnel 500
shape average 2000000
service-policy output CHILD
Policy-map CHILD
class VOICE VPN
priority 100 Spoke 1
class CONTROL
bandwidth percent 5
class DATA
bandwidth percent 45
class class-default
Spoke n Spoke 2
bandwidth percent 35
DMVPN Tunnels
Interface GigabitEthernet 0/0 Traditional Static Tunnels
service-policy output PARENT
Static Known IP Addresses
Interface Tunnel 0 Dynamic Unknown IP Addresses
qos preclassify
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 24
QoS Preclassify Review
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 25
BRAS Hierarchical Queuing
Example
BRAS for PTA
policy-map sub-3play-out
class voice Internet
priority level 1
police cir 128000 PE
class video
priority level 2 IP/MPLS Core
class class-default
bandwidth remaining ratio 1 C C
P P
shape average 1500000 E E
class voice
priority level 1 PE
police 128000
class video IP/MPLS Core
priority level 2
police 1000000 PE PE
class gaming
bandwidth remaining ratio 9 BRAS
!
policy-map 1.5mbps_subscriber C C
P P
class class-default E E
Policy parent-output
class class-default
shape average 100000000
service-polcy child-output
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 28
Bandwidth Remaining Ratio
BRR BRP
Parameter is unitless Parameter is a percentage
Part of ratio that changes with Total % for all classes/levels
addition of classes can’t be more than 100%
Inconvenient when trying to Convenient when a class must
figure out % for each class always get same %
Convenient with a very Inconvenient with a very
dynamic class configuration dynamic class configuration
Convenient with dynamic Convenient with traditional
configurations with more than configurations with few and
100 vlans/classes very static vlans/classes
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 29
MQC/HQF Available Combinations
Allowed in ( class-default ) Allowed in Child policy
Parent policy
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 30
Hierarchical Queuing Framework (HQF)
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 31
Hierarchical Queuing Framework (HQF)
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 32
HQF Major Enhancements
policy-map child
class child-c1
bandwidth 400
class child-c2
bandwidth 400
policy-map parent
class parent-c1
bandwidth 1000
service-policy child
class parent-c2
bandwidth 2000
service-policy child
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 33
HQF Major Enhancements
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 34
HQF Major Enhancements
policy-map p1
class c1
shape average 1000000
class c2
shape average 1000000
interface atm1/0.1
pvc 1/100
service-policy output p1
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 35
HQF Major Enhancements
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 36
HQF Behavioral Changes
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 37
HQF Behavioral Changes
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 38
HQF Behavioral Changes
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 39
HQF Behavioral Changes
Interface Ethernet 0
service-policy output PARENT
Flow-Based Fair-Queuing Flow based and all flows are equal WFQ Based on IP prec
Support in Class-Default
Default Queuing FIFO WFQ
Implementation for Class-
Default
Default Queuing FIFO WFQ
Implementation for Shape
Class
Class-Default and Bandwidth Default 1%, otherwise remaining Default 25% but not guaranteed,
from other classes or assigned otherwise remaining from other
classes or assigned
Policy Map and Interface 100% can be assigned to MQC max-reserved-bandwidth is need to
Bandwidth
classes. max-reserved-bandwidth reserve more then 75% to MQC
is NOT needed classes
Per-Flow Queue Limit in Fair Per flow queue limit is ¼ of the N/A
Queue
class
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 42
HQF Commands Changes
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 43
HQF IOS and Platforms Support
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 44
HQF Platform Support
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 45
Hardware-Based Platform and HQF
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 46
DMVPN HQoS Performance Comparison
Platform Number of VoIP VoIP G.729 Data Total PPS Total
Tunnels, Drop% Calls Mbps
QoS conf Jitter
and shape Delay
rate
7200 30 0% 454 81259 pps 58 Kpps 124 Mbps
G2/VSA
mGRE QoS 1.3 ms 40550 pps
4 Mbps 2.7 ms
7600 240 0.22 % 4009 53,951 pps 455 Kpps 1002 Mbps
SIP400
per class- 0.6 ms 400,900 pps
per vlan
2.1 ms
4 Mbps
ASR 1000 240 0.25 % 4055 81,259 pps 487 Kpps 953 Mbps
ESP10
per class- 2.5 ms 400,550 pps
RP1
per vlan
2.6 ms
4 Mbps
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 47
ASR 1000 QFP Introduction
Forwarding Route
RP (Route Processor)
Processor Processor
ESP
CPU
RP Handles control plane traffic
Manages system
Interconn.
Crypto
assist
QFP
ESP (Forwarding Processor)
Interconn. Handles forwarding plane traffic
SPA
SIP
SPA
SIP
QFP TM ( Traffic Manager)
CPU CPU
Agg. Agg.
QFP PPE ( Packet Proccesors)
SPA … SPA SPA … SPA
SPA Interface Processor (SIP)
Houses the SPAs ( Shared PA)
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 48
ASR 1000 QFP and Hierarchical QoS
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 49
QFP, How Many Levels of Scheduling?
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 51
Basic Hierarchical QoS in QFP TM
2 Level (Class + VLAN) + Non-MQC Physical Level
…
Shape Average <parent policy
> Enforced Here
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 52
Evolution: Policies Aggregation
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 53
Why Policies Aggregation
Existing 3-level hierarchy could not handle it
No way to aggregate only data traffic at interface level – interface shaper would shape ALL
traffic
Shaper at VLAN level would shape ALL subscriber traffic (Voice/Video/Data), adding extra
latency when oversubscribed
Physical & logical interface policies linked via new “fragment CLI”
Benefit: Data classes can be linked together to provide both VLAN level and aggregate level
service
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 54
ASR 1000 Policies Aggregation
Priority
Gig 0/1.1001
Service Level
Data
200 Mbps
Default
… …
4 Level Hierarchy:
1. Class -> MQC defined
2. Logical -> MQC VLAN
3. Aggregate -> MQC
Fragment CLI
4. Physical -> ASR 1000
… SIP
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 56
Policies Aggregation
MQC CLI policy-mapSubscriber(VLAN100)
class VoIP These queues are not
priority level 1 shaped at main
class McastTV
interface
Policy-map main-interface priority level 2
Class data service-fragment Economy class class-default fragment Economy
shape average 150 Mbps
shape average 400000000 bandwidth remaining ratio 2
LINKED service-policy AF1plusDefault
policy-map AF1plusDefault
class PremiumData
bandwidth remaining ratio 35
class class-default
bandwidth remaining ratio 65
policy-map AF1plusDefault
class PremiumData
bandwidth remaining ratio 35
class class-default
bandwidth remaining ratio 65
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 57
ASR1000 Policies Aggregation
Applications
ASR1000 in Distributed Integrated Service Edge
Voice & Video Telephony (SBC, v4/v6)
Internet Access (BB, LAC, PPPoE, v4)
IPTV VoD (SBC, HDTV, v6)
IPTV B’cast TV (Multicast, SDTV/HDTV, v6)
Gq’ Diameter
RACS Applications
H.248
Control
Residence IPv4 / IPv6 Dual Core
AAA/
Access Network DHCP
(DSL, PON…) LNS
Content
CPE NT
V POTS Servers
Access SW
MG
SBC
VoIP
Access SW Operators
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 58
Ethernet WAN with Three Level HQoS
Policy:
CPE
Physical
VLAN
Dept 3
Dept 2
Class
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 59
ASR 1000 “Three Level” Policies
Aggregation
Gig Interface
Service Level
Aggregate BW
Data Class
VLAN Available
BW
Best Effort
Multiple priority Class
Class
LINKED
main interface
class AF4
bandwidth remaining ratio 25
class AF41
bandwidth remaining ratio 15
class class-default
bandwidth remaining ratio 50
policy-map ALL-CHILD
class EF
priority
class AF4
bandwidth remaining ratio 25
class AF41
bandwidth remaining ratio 15
class class-default
bandwidth remaining ratio 50
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 61
Policies Aggregation Restrictions
Only the default class in a policy map can be configured as a
fragment.
Fragments only work when multiple policy maps are attached to
the same physical interface.
Only queuing features are allowed in classes where the fragment
keyword is entered, and at least one queuing feature must be
entered in classes where the fragment keyword is used.
A policy map with a class using the fragment keyword can only be
applied to egress traffic.
The fragment keyword cannot be entered in a child policy map.
Fragment aggregate counters are only absolute ( not bps )
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 62
Future: Four Level MQC Policies
Several Scenarios
deployments require Interface
or EVCs
Shape at the Interface Level
for a 3 level policy applies to a
VT or GRE Service
Level
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 63
Future: Policies Aggregation
All Non-default queuing happens at the aggregate level
Premier data is not longer mixed with default traffic and not subject
to vlan shaper
Priority Traffic
Gig 0/1.1001
Premier Data
Service Level
200 Mbps
Default
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 64
Summary
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 65
Summary HQoS and Policies
Aggregation
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 66
HQoS and Policies Aggregation Doc
HQF documentation
http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6
558/white_paper_c11-481499.html
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 67
Please Visit the Cisco Booth in the
World of Solutions
See the technology in action
Network Infrastructure and Systems
NS1 – Cisco Catalyst Series: Optimize and
Virtualize
NS2 – Cisco Catalyst Series: Fueling
Collaboration
NS3 – Cisco ISR: Application Integration at
Branch
NS4 – Enhance Collaboration with Cisco
WebEx Node
NS5 – Optimize the WAN with Cisco ASR
1000 Series
NS6 – Pedal Power for the Cisco Catalyst
4500
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 68
Recommended Reading
End-to-End QoS Network Design:
Quality of Service in LANs,
WANs, and VPNs,
ISBN: 1-58705-176-1
Cisco Catalyst QoS: Quality of
Service in Campus Networks,
ISBN: 1587051206
QoS for IP/MPLS Networks,
ISBN: 1-58705-233-4
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 69
Complete Your Online
Session Evaluation
Give us your feedback and you
could win fabulous prizes.
Winners announced daily.
Receive 20 Passport points for
each session evaluation you
complete.
Complete your session evaluation
online now (open a browser
through our wireless network to
access our portal) or visit one of
the Internet stations throughout
the Convention Center.
Don’t forget to activate your
Cisco Live Virtual account for access to
all session material, communities, and
on-demand and live activities throughout
the year. Activate your account at the
Cisco booth in the World of Solutions or visit
www.ciscolive.com.
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 70
BRKRST-2504_c2 © 2009 Cisco Systems, Inc. All rights reserved. Cisco Public 71