Documente Academic
Documente Profesional
Documente Cultură
Performance Routing
(PfRv3)
Jaromír Pilař– Consulting Systems Engineer, CCIE #2910
Agenda
• IWAN Introduction
• IWAN Domain
• Transport Independent Design
• IWAN Sites
• Components and Roles
• Performance Routing Principles
• Policies, Site Discovery, Site Prefix Learning, WAN Interface Discovery
• Channels, Traffic Class
• Path Selection
• Enterprise Deployment
• Conclusion
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
IWAN Introduction
BRKRST-2362 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Hybrid WAN: Leveraging the Internet
Secure WAN Transport and Internet Access
Secure WAN
Transport
Private
MPLS (IP-VPN) Cloud
Virtual
Private Cloud
Branch
Internet
Direct Internet Public Cloud
Access
Internet Public
Cloud
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
IWAN: Intelligent Path Control
Performance Routing
Voice/Video/Critical take
the best delay, jitter, and/or
loss path
MPLS
Private Cloud
MC+BR MC+BR MC+BR MC+BR MC+BR MC+BR MC+BR MC+BR MC+BR MC+BR BR MC+BR
Define Your Traffic Policy Learn the Traffic Measurement Path Enforcement
Define Traffic Classes Border Routers learn Measure the traffic flow Master Controller
and service level current traffic classes and network performance commands path changes
Policies based on going to the WAN based and report metrics to the based on traffic class
Applications or DSCP on classifier definitions Master Controller policy definitions
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
IWAN Domain
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
IWAN Layered Solution
• CPE-to-CPE overlay PfR path selection policies
enables separation of
transport (underlay) and AVC/QoS PfR intelligent routing AVC/QoS
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
PfR Components
• The Decision Maker: Master Controller (MC) MC1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
DCn
IWAN Domain
DC1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Hub Site Policies
Monitors
POP1 - HUB
Site ID = 10.1.0.10
POP-ID 0
POP2 - TRANSIT
Site ID = 10.2.0.20
POP-ID 1
• MCs from all other sites (transit or branch) MC/BR MC/BR MC/BR BR
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Transit Site POP1 - HUB
Site ID = 10.1.0.10
POP-ID 0
POP2 - TRANSIT
Site ID = 10.2.0.20
POP-ID 1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Branch Site POP1 - HUB
Site ID = 10.1.0.10
POP2 - TRANSIT
Site ID = 10.2.0.20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
WAN Interface Discovery HUB SITE
Site ID = 10.1.0.10
TRANSIT SITE
Site ID = 10.2.0.20
Hub MC Transit MC
• Hub and Transit BRs have path names MC1 MC2
– Path Identifier (Path-id) is unique per site Path MPLS Path INET Path MPLS Path INET
Path-id 1 Path-id 2 Path-id 1 Path-id 2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
WAN Interface – Performance Monitors
• PfR automatically configures 3 Performance
Monitors instances (PMI) over every external
interface
• Monitor1 – Site Prefix Learning (egress direction)
• Monitor2 – Aggregate Bandwidth per Traffic Class
(egress direction) 1 2 3 1 2 3
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Site Prefix Discovery
• Every MC in the domain owns a Site Prefix
database DMVPN DMVPN
MPLS INET
• Gives the mapping between site and prefixes
• 2 options:
– Static (Hub and Transit sites) IWAN
Peering
– Automatic Learning (Branch sites)
Site 3
1 1
10.3.3.0/24
R31
10.3.3.0/24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
IOS-XE 3.15
IOS 15.5(2)T
• Flags:
BR1 BR2 BR3 BR4
• S – Learned from SAF (IWAN Peering)
• C – Configured 10.1.0.0/16 10.2.0.0/16
• M – Shared
• A TC may be associated with more than 1 DMVPN DMVPN
MPLS INET
site
SITE-ID PREFIXES FLAGS
10.1.0.10 10.1.0.0/16 S,C,M
R31 R41
10.2.0.20 10.2.0.0/16 S,C,M MC/BR MC/BR
10.4.0.41 10.4.4.0/24 S
10.3.3.0/24 10.4.4.0/24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
PfRv3 Principles
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Define PfR Traffic Policies
§ Identify Traffic Classes based on Application Preferred: MPLS Delay threshold
DSCP
or DSCP Critical Data Fallback: INET Loss threshold
Application
§ Performance thresholds (loss, delay and Jitter threshold
Jitter), Preferred Path
§ Centralized on a Domain Controller - Delay threshold
DSCP
Best Effort Loss threshold
Application
Jitter threshold
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
PfRv3 works on Traffic Class – DSCP Based
IWAN POP
DSCP Based Policies
Prefix DSCP AppID Dest Site Next-Hop
10.3.3.0/24 EF N/A Site 3 ? R10 Traffic with EF, AF41, AF31 and 0
10.3.3.0/24 AF41 N/A Site 3 ?
10.3.3.0/24 AF31 N/A Site 3 ?
10.3.3.0/24 0 N/A Site 3 ? R11 R12
10.4.4.0/24 EF N/A Site 4 ?
10.4.4.0/24 AF41 N/A Site 4 ?
10.4.4.0/24 AF31 N/A Site 4 ?
10.4.4.0/24 0 N/A Site 4 ?
10.5.5.0/24 EF N/A Site 5 ? MPLS INET
10.5.5.0/24 AF41 N/A Site 5 ?
10.5.5.0/24 AF31 N/A Site 5 ?
10.5.5.0/24 0 N/A Site 5 ?
CPE2 2 SITE3
Single CPE
INET
CPE10
Bandwidth on egress
Per Traffic Class Performance Monitor
(dest-prefix, DSCP, AppName) • Collect Performance Metrics
• Per Channel
- Per DSCP
- Per Source and Destination Site
- Per Interface
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Performance Monitoring
Smart Probing
raffic
User t CPE12 SITE2
3
Dual CPE
MPLS
2
CPE1
3 CPE11
SITE1
CPE2 2 SITE3
Single CPE
INET
CPE10
Hub MC
10.1.0.10/32
MC1
Present Channel 10
• Site 1
BR1 BR2 BR3
• DSCP AF41
• MPLS
• Path 1
Backup Channel 12
• Site 1
Present Channel 11 • DSCP AF41
• Site 1 MPLS INET
• INET
• DSCP AF41 • Path 3
• MPLS
• Path 2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Channel Between Branch Sites
IWAN POP
Hub MC
10.8.3.3/32
MC1
BR1 BR2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Performance Violation
CPE12
SITE2
MPLS Dual CPE
CPE1 CPE11
SITE1
CPE2
SITE3
INET
CPE10 Single CPE
CPE12
SITE2
User traffic
MPLS Dual CPE
CPE1 CPE11
SITE1
User t
raffic
CPE2
SITE3
INET
CPE10 Single CPE
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Deploying IWAN Intelligent
Path Control
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Cisco IWAN Enterprise Management Portfolio
Cisco Ecosystem Partners
Prime
IWAN App
Infrastructure
Prescriptive Enterprise Network Application Aware Advanced
Policy Automation Mgmt and Monitoring Performance Mgmt Orchestration
• Customer wants • Customer needs • Customer looking for • Customer wants advanced
considerable automation customizable IWAN with advanced monitoring and provisioning, life cycle
and operational simplicity end-to-end monitoring visualization management, and
customized policies
• Requirements consistent • One Assurance across Cisco • QoS/ PfR/ AVC configuration,
with prescriptive IWAN portfolio from Branch to Real-time analytics and • System-wide network
Validated Design Datacenter network troubleshooting consistency assurance
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
IWAN Deployment – DMVPN DCI
Site1 WAN Core Site2
• IWAN Prescriptive Design – Transport
Independent Design based on DMVPN R10 R20
10.1.0.0/16 10.2.0.0/16
• Branch spoke sites establish an IPsec tunnel to
and register with the hub site
R11 R12 R21 R22
• Data traffic flows over the DMVPN tunnels
• WAN interface IP address used for the tunnel
source address (in a Front-door VRF)
• One tunnel per user inside VRF MPLS INET
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Using Front Door VRF
Keeping the Default Routes in Separate VRFs vrf definition FVRF_SP1
!
Customer routing context address-family ipv4
exit-address-family
(Global table) !
!
crypto keyring DMVPN vrf FVRF_SP1
pre-shared-key address 0.0.0.0 0.0.0.0 key
cisco123
!
• Different default routes possible within global table Interface GigabitEthernet 0/0
description WAN interface to ISP in vrf
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
Overlay Routing - Which protocol should I use?
• IWAN Profiles are based upon BGP and EIGRP for scalability and optimal Intelligent Path
Control
• Intelligent Path Control:
• PfR can be used with any routing protocols by relying on the routing table (RIB).
• Requires all valid WAN paths be ECMP so that each valid path is in the RIB.
• For BGP and EIGRP, PfR can look into protocol’s topology information to determine both best paths
and secondary paths thus, ECMP is not required.
• PfRv3 always checks for a parent route before being able to control a Traffic Class. Parent
route check is done as follows:
• Check to see if there is an NHRP shortcut route
• If not – Check in the order of BGP, EIGRP, Static and RIB
• Make sure that all Border Routers have a route over each external path to the destination sites PfR
will NOT be able to effectively control traffic otherwise.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
IWAN Deployment – EIGRP DCI
Site1 WAN Core
Site2
• Single EIGRP process for Branch, WAN and
POP/hub sites
R10 R20
• Extend Hello/Hold timers for WAN
Delay 25000 Delay 25000 Delay 25000 Delay 25000
• Adjust tunnel interface “delay” to ensure WAN path Delay 24000 Delay 24000
preference (MPLS primary, INET secondary)
R11 R12 R21 R22
• Hubs Delay 1000 Delay 2000
• Disable Split-Horizon
• Advertise Site summary, enterprise summary,
default route to spokes Set Tunnel
Delay to MPLS INET
• Summary metrics: A summary-metric is used to
reduce computational load on the DMVPN hubs. influence best
path
• Ingress filter on tunnels.
• Spokes
Delay 1000 Delay 1000 Delay 20000
• EIGRP Stub-Site functionality builds on stub
functionality that allows a router to advertise itself EIGRP Delay 20000
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
IWAN Deployment – BGP DCI
Site1 WAN Core
Site2
• A single iBGP routing domain is used
• Appropriate Hello/Hold timers for WAN R10 R20
• Hub
Metric: 1000 Metric: 2000 Metric: 1000 Metric: 2000
• DMVPN hub routers function as BGP route-reflectors for the OSPF OSPF
spokes.
R11 R12 R21 R22
• No BGP peering between RR. LP 20000 LP 3000
LP 100000 LP 400
• BGP dynamic peer feature configured on the route-reflectors
• Site specific prefixes, Enterprise summary prefix and default route
advertised to spokes
• Set local preference for all prefixes MPLS INET
• Redistribute BGP into local IGP with a defined metric cost to
attract traffic from the central sites to the spokes across MPLS.
• Spokes
• Peer to Hub/Transit BRs in each DMVPN cloud
• Mutual redistribution OSPF/BGP
• Set a route tag to identify routes redistributed from BGP R31 R41 R51 R52
OSPF
• Preferred path is MPLS due to highest Local Preference
10.3.3.0/24 10.4.4.0/24 10.5.5.0/24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
PfR Deployment – Hub
HUB SITE
domain IWAN Site ID = 10.1.0.10
vrf default
master hub
MC Hub MC
source-interface Loopback0 R10 R20
R10 enterprise-prefix prefix-list ENTERPRISE_PREFIX
POP ID 0
site-prefixes prefix-list SITE_PREFIX
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
PfR Deployment – Transit Site
HUB SITE TRANSIT SITE
domain IWAN Site ID = 10.1.0.10 Site ID = 10.2.0.20
vrf default
master transit 1
MC Transit MC
source-interface Loopback0 R10 R20
R20 site-prefixes prefix-list SITE_PREFIX
POP ID 1
hub 10.1.0.10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
PfR Deployment – Single CPE Branch
HUB SITE TRANSIT SITE
Site ID = 10.1.0.10 Site ID = 10.2.0.20
R10 R20
domain IWAN
vrf default
master branch
R11 R12 R21 R22
source-interface Loopback0
hub 10.1.0.10
R31 border
R41 master local
source-interface Loopback0
DMVPN DMVPN
MPLS INET
• MC/BR colocated
• Branch MCs connect to the Hub
R31 R41 R51 R52
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
PfR Deployment – Dual CPE Branch
HUB SITE TRANSIT SITE
Site ID = 10.1.0.10 Site ID = 10.2.0.20
domain IWAN
vrf default
master branch R10 R20
domain IWAN
vrf default
DMVPN DMVPN
R52 border MPLS INET
master 10.5.0.51
source-interface Loopback0
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
PfR Policies – DSCP or App Based
domain IWAN
vrf default • When load balancing is enabled, PfRv3 adds a
“default class for match all DSCP (lowest priority
master hub
compared to all the other classes)” and PfRv3
load-balance
controls this traffic.
class MEDIA sequence 10
match application <APP-NAME1> policy real-time-video • When load balancing is disabled, PfRv3 deletes this
match application <APP-NAME2> policy custom “default class” and as a part of that frees up the TCs
that was learnt as a part of LB – they follow the
priority 1 one-way-delay threshold 200
routing table
priority 2 loss threshold 1
path-preference MPLS fallback INET
class VOICE sequence 20
match dscp <DSCP-VALUE> policy voice • Custom thresholds
path-preference MPLS fallback INET
class CRITICAL sequence 30
match dscp af31 policy low-latency-data • Pre-defined thresholds
R83
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
For Your
Reference
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
PfR Policies – Transit Site Preference
• Transit Site Preference is used in the context of a Multiple Transit Site
deployment with the same set of prefixes advertised from all central sites.
• A specific Transit site is preferred for a specific prefix, as long as there are available ‘in
policy’ channels for this site.
• Based on routing metrics and advertised mask length in routing
• Transit Site preference is a higher priority filter and takes precedence over path-
preference.
• Transit Site Affinity introduced in 15.5(3)M1 and XE 3.16.1
Transit Site Affinity is domain IWAN
enabled by default. vrf default
To disable use: master hub
advanced
no transit-site-affinity
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public
PfR Policies – Path Preference
• With Path Preference configured, PfR will then first consider all the links
belonging to the preferred path preference (i.e it will include the active
and the standby links belonging to the preferred path) and will then use
the fallback provider links.
• Without Path Preference configured PfR will give preference to the
active channels and then the standby channels (active/standby will be
per prefix) with respect to the performance and policy decisions
• Note that the Active and Standby channels per prefix will span across the POP’s.
• Spoke will randomly (hash) choose the active channel
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Load Balancing
HUB SITE TRANSIT SITE
Site ID = 10.1.0.10 Site ID = 10.2.0.20
• Current Situation
- Load balancing works on physical links R10
Hub MC
R20
Transit MC
• Performance TCs
- Initial load-balancing while placing the TCs, on a per R31
TC basis. PfR does not account for the TCs getting
fatter.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Unreachable Timer HUB SITE
Site ID = 10.1.0.10
TRANSIT SITE
Site ID = 10.2.0.20
Hub MC Transit MC
• Channel Unreachable R10
POP ID 0
R20
POP ID 1
• PfRv3 considers a channel reachable as long as
the site receives a PACKET on that channel R11 R12 R21 R22
Default: 1 Sec
Recommended: 4 sec R31
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Failover Time HUB SITE
Site ID = 10.1.0.10
TRANSIT SITE
Site ID = 10.2.0.20
Hub MC Transit MC
• Ingress Performance Violation detected R10
POP ID 0
R20
POP ID 1
• Delay, loss or jitter thresholds
R11 R12 R21 R22
• Based on Monitor-interval
Path MPLS Path INET Path MPLS Path INET
Id 1 Id 2 Id 1 Id 2
10.3.3.0/24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Path Selection
Direction from POPs to Spokes HUB SITE
Site ID = 10.1.0.10
TRANSIT SITE
Site ID = 10.2.0.20
Hub MC Transit MC
• Each POP is a unique site by itself and so it R10 POP-ID 0 R20 POP-ID 1
will only control traffic towards the spoke on
the WAN’s that belong to that POP.
R11 R12 R21 R22
• PfRv3 will NOT be redirecting traffic between Path MPLS Path INET Path MPLS Path INET
POP across the DCI or WAN Core. If it is Id 1 Id 2 Id 1 Id 2
10.3.3.0/24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Path Selection
Direction from Spokes to POPs DC1
Site ID = 10.1.0.10
DC2
Site ID = 10.2.0.20
10.3.3.0/24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Monitoring
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
NetFlow – PfRv3 Exporter Configuration IWAN POP
Hub MC
domain IWAN 10.1.0.10/32
R10
vrf default
master hub
collector 10.151.1.95 port 2055 R11 R12
MC1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
IOS-XE 3.16
IOS 15.5(3)M
PfRv3 Syslogs
• Syslog messages for all major PfRv3 events
• Use cisco standard format (Facility-Severity-Mnemonic) for all syslogs with common Facility name
'DOMAIN’
• Add TCA-ID to all syslog to allow correlation of TCA syslog to PFR reaction syslog. If PFR action is not
related to TCA then TCA-ID will be 0
• Command '[no] logging' in domain submode default is syslog on
• Distributed through SAF to all MCs and BRs in the domain
• http://docwiki.cisco.com/wiki/PfRv3:Syslogs
• DOMAIN-2-IME
• DOMAIN-2-IME_DETAILS *Jun 1 18:50:41.104: %DOMAIN-5-TC_PATH_CHG: Traffic class Path
• DOMAIN-4-MC_SHUTDOWN Changed. Details: Instance=0: VRF=default: Source Site ID=10.8.3.3:
• DOMAIN-5-TCA Destination Site ID=10.2.11.11: Reason=Delay: TCA-ID=4: Policy
Violated=VOICE: TC=[Site id=10.2.11.11, TC ID=6, Site
• DOMAIN-6-TC_CTRL
prefix=10.1.11.0/24, DSCP=ef(46), App ID=0]: Original Exit=[CHAN-
• DOMAIN-5-TC_PATH_CHG ID=14, BR-IP=10.8.4.4, DSCP=ef[46], Interface=Tunnel100,
• DOMAIN-3-PLR_INT_CFG Path=MPLS[label=0:0 | 0:1 [0x1]]]: New Exit=[CHAN-ID=13, BR-
• DOMAIN-5-MC_STATUS IP=10.8.5.5, DSCP=ef[46], Interface=Tunnel200, Path=INET[label=0:0 |
0:2 [0x2]]]
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Key Takeaways
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Performance Routing – Platform Support
Cisco CSR-1000
MC
Cisco ASR-1000 BR(1)
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
IWAN 2.1 – HUB-MC Scaling
ASR 1002-X
2000 sites
ASR 1001-X
1000 sites
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Performance Routing v3 – Phases
IOS 15.4(3)M IOS 15.5(1)T IOS 15.5(2)T IOS 15.5(3)M IOS 15.5(3)M1
IOS-XE 3.13 IOS-XE 3.14 IOS-XE 3.15 IOS-XE 3.16 IOS-XE 3.16.1
• PfR Domain • Zero SLA • Transit Sites • Path of Last Resort • Transit Site Affinity
• One touch provisioning • WCCP Support • Multiple Next Hop per • EIGRP IWAN
• Auto Discovery of sites DMVPN Simplification (Stub
• NBAR2 support • Multiple POPs site)
• Passive Monitoring • Syslog (TCA)
(performance monitor) • Show last 5 TCA
• Smart Probing
• VRF Awareness
• IPv4/IPv6 (Future)
• <10 lines of configuration
and centralized
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Key Takeaways
• IWAN Intelligent Path Control pillar is based upon Performance
Routing (PfR)
• Maximizes WAN bandwidth utilization
• Protects applications from performance degradation
• Enables the Internet as a viable WAN transport
• Provides multisite coordination to simplify network wide provisioning.
• Application-based policy driven framework and is tightly integrated with
existing AVC components.
• Smart and Scalable multi-sites solution to enforce application SLAs while
optimizing network resources utilization.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Thank you
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
We’re ready. Are you?