BGP Scalling PDF
BGP Scalling PDF
Jaws
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Goal of this Session
Covered Not covered
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
Success of BGP - Scale Challenges
• BGP has been around forever
• Very robust
• Scales the Internet’s growth
• More features
• More multipath, faster convergence
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
More Services by BGP
1990 1995 1999 2002 2009 2012 2015
IPv4 IDR IPv4 enterprise MPLS VPN BGP FC PIC BGP flowspec
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
For Your
Service Address Families Reference
IPv4 unicast IPv6 unicast vpnv4 unicast nsap unicast IPv4 Flowspec
IPv4 multicast IPv6 multicast vpnv4 multicast l2vpn vpls IPv6 Flowspec
IPv4 MVPN IPv6 MVPN vpnv6 unicast l2vpn evpn vpnv4 Flowspec
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Memory Utilization
High Memory Utilization - Solutions
partial routing
table
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
High Memory Utilization
soft reconfiguration inbound route refresh
inbound filter
inbound filter
• Filtered prefixes are dropped
• Filtered prefixes are stored: much more memory used
• Support needed on peer, but this a very old feature
• Support only on router itself
• Changed filter: router sends out route refresh request to
• Changed filter: re-apply policy to table with filtered prefixes peer to get the full table from peer again
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Full Mesh iBGP
Is Full Mesh iBGP Scalable?
• Per BGP standard: iBGP needs to be full mesh
• Total iBGP sessions = n * (n-1) / 2
• Sessions per BGP speaker = n - 1
• Two solutions
1. Confederations
2. Route reflectors
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
AS 100
Confederations subAS 65001
subAS 65003
• Create # of sub-AS inside the larger subAS 65002
R1 R2
confederation R8
R13 R9
• Conferation AS looks like normal AS to
R5 R6
R6 R3 R4
the outside
R12 R10
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Route Reflectors
• A route reflector is an iBGP speaker that reflects routes learned from iBGP RR
RR
peers to other iBGP peers, called RR clients
• iBGP full mesh is turned into hub-and-spoke iBGP
eBGP
• RR is the hub in a hub-and-spoke design
AS 101 AS 100
R5 non-client
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Hierarchical Route Reflectors RR
RR
• Chain RRs to keep the full mesh between RRs and non-clients small
RR RR & RR client
• Make RRs clients of other RRs
• RR is a RR and RR client at the same time
• iBGP topology should follow physical topology
• Prevents suboptimal routing, blackholing, and routing loops
RR RR RR
Tier 2
• There is no limit to the RR RR
amount of tiers
Tier 3
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Route Reflector – Same Cluster-ID or Not?
RR1 and RR2 have different cluster-ID (default) RR1 and RR2 have the same cluster-ID
• RR1 stores the path from RR2 • RR1 has only 1 path for routes from RRC2
• RR1 uses additional CPU and memory • If one link RR to RR-client fails
– iBGP session remains up, it is between loopback IP
• Potentially for many routes addresses
• Additional memory and processor overhead on RR • Less redundant paths
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
Picking RRs
How many? Where? Which kind?
7200 ASR1K
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
BGP RR Scale - Selective RIB Download
• To block some or all of the BGP prefixes into the RIB (and FIB) • For AFs IPv4/6
• not needed for AFs vpnv4/6
• Only for RR which is not in the forwarding path
• Benefit
• Saves on memory and CPU • ASR1k testing indicated 300% of RR-
client session scaling (in order of 1000s)
• Implemented as filter extension to table-map command
configuration IOS-XR
route-policy block-into-fib router bgp 1
if destination in (...) then
drop address-family ipv4 unicast
else table-policy block-into-fib
pass
end-if
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Multi-Cluster ID
router bgp 1
no bgp client-to-client reflection intra-cluster cluster-id 0.0.0.1
no bgp client-to-client reflection intra-cluster cluster-id 0.0.0.2
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Full Mesh eBGP
router bgp 999
R1 R4 R1 R7 R4
Transparent AS
R6 R5 R6 R5
Next-hop preserved
AS 600 AS 500 AS 600 AS 500
eBGP BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Update Groups
Grouping of BGP Neighbors: Optimization
Configuration/administration Performance/scalability
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
IOS
...
RR#show ip bgp replication 2 n BGP update
Current
Next
Index Members Leader MsgFmt MsgRepl Csize Version
Version
2 101 10.100.1.2 2013 24210 0/2000 3201/0
update total # of formatting # of
# of size of
group 2 members according to formatted
replications cache
leader’s policy messages
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Update Groups in IOS
• Cache = place to store formatted BGP message, before they are send
• Cache is adaptive -> faster convergence
• queue depth from 100 to 5000
• Number of peers in an update groups
• Installed system memory
• Type of address family
• Type of peers in an update group
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
IOS-XR
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Slow Peer
IOS
Slow Peer update group 1
detection phase track peer queue
protection phase “slow” update group
• slow peer = cannot keep up with the
rate at which we are generating
recovery phase update messages over a prolonged
slow update group is period of time (order of minutes)
no longer slow • filled up cache: blocking all peers
RR
Possible causes
• High CPU
convergence • Transport issues (packet loss/loaded
speed of OK links/TCP)
update goup
%BGP-5-SLOWPEER_DETECT: Neighbor IPv4 Unicast 10.100.1.1 has been detected as a slow peer
Allows for fast and slow peers to proceed at the their own speed
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Slow Peer CLI per AF
configuration detection per VRF
per peer
per peer policy template
per AF
static per peer(-group)
protection
per peer policy template
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Old Slow Peer Solution
Solution before this feature: manual movement
router bgp 1
address-family vpnv4
neighbor 10.100.1.1 advertisement-interval 1
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
For Your
Slow Peer Mechanism Details Reference
Identifying Slow Peer
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
RR Problems & Solutions
Best Path Selection - Route Advertisement on RR
P: Z
Path 1: NH: PE1, best
Path 2: NH: PE2
P: Z ingress PE does not
Path 1: NH: PE1, best learn 2nd path
NH: PE1, P: Z
NH: PE1, P: Z
PE1
• The BGP4 protocol specifies the selection and propagation of a single best path for each prefix
• If RRs are used, only the best path will be propagated from RRs to ingress BGP speakers
• Multipath on the RR does not solve the issue of RR only sending best path
• This behavior results in number of disadvantages for new applications and services
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Why Having Multiple Paths?
• Convergence
• BGP Fast Convergence (multiple paths in local BGP table)
• BGP PIC Edge (backup paths ready in forwarding plane)
• Prevent oscillation
• The additional info on backup paths leads to local recovery as opposed to relying on iBGP
• Stop persistent route oscillations caused by comparison of paths based on MED in topologies
where route reflectors or the confederation structure hide some paths (pretty rare)
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Diverse BGP Path Distribution
Overview
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Unique RD for MPLS VPN
VRF
P: Z
Path 1: NH: PE1
Path 2: NH: PE2
NH: PE1, P: Z/RD1
RD1 NH: PE1, P: Z/RD1
VRF PE1
RR PE3 CE3
P:Z CE1 RD2
NH: PE2, P: Z/RD2
VRF
PE2
NH: PE2, P: Z/RD2
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Shadow Route Reflector (aka RR Topologies)
P: Z
Path 1: NH: PE1, best
Path 2: NH: PE2 P: Z
Path 1: NH: PE1
NH: PE1, P: Z Path 2: NH: PE2
NH: PE1, P: Z
PE1 RR1
PE2 RR2
NH: PE2, P: Z
NH: PE2, P: Z
router bgp 1
P: Z
Path 1: NH: PE1, best
address-family ipv4
Path 2: NH: PE2, 2nd best bgp additional-paths select backup
neighbor 10.100.1.3 advertise diverse-path backup
• Easy deployment
• One additional “shadow” RR per cluster
• RR2 does announce the 2nd best path, which is different from the primary best path
on RR1 by next hop
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Shadow Route Reflector – RR Placement
Note: primary RRs do not need diverse path code
P: Z
Path 1: NH: PE1, best
equal distance Path 2: NH: PE2 RR and shadow RR are co-located.
They‘re on same vlan with same IGP metric towards
prefix.
P: Z
PE1 RR1 Path 1: NH: PE1, best
Path 2: NH: PE2, 2nd best Note: primary and shadow RRs do not need
P:Z to turn off IGP metric check
P
shadow RR
PE2
RR2
P: Z
all links have the same IGP cost Path 1: NH: PE1, best RR and shadow RR are not co-located.
Path 2: NH: PE2
PE2 RR2
solution RR(config-router-af)#bgp bestpath igp-metric ignore RR2 advertises same path as RR1 !
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Shadow Session
Note: second session from RR to RR-client (PE3) has diverse-path
command in order to advertise 2nd best path
P: Z P: Z
Path 1: NH: PE1, best Path 1: NH: PE1
Path 2: NH: PE2, 2nd best Path 2: NH: PE2
NH: PE1, P: Z
NH: PE1, P: Z
PE1
NH: PE2, P: Z
PE2
NH: PE2, P: Z
• Easy deployment – only RR needs diverse path code and new iBGP session per each
extra path (CLI knob on RR)
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
ADD Path
router bgp 1
address-family ipv4
bgp additional-paths select best 2
bgp additional-paths send
neighbor PE3 advertise additional-paths best 2
P: Z
Path 1: NH: PE1, best
Path 2: NH: PE2, best2 P: Z
Path 1: NH: PE1, best
Path 2: NH: PE2, backup/repair
NH: PE1, P: Z
NH: PE1, P: Z
PE1
NH: PE2, P: Z
PE2
NH: PE2, P: Z
router bgp 1
address-family ipv4
• PE routers need to run newer code in bgp additional-paths receive
order to understand second path bgp additional-paths install
• Path-identifier used to track ≠ paths
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Add Path - Possibilities
add-all-path add-n-path
• RR will do best path computation for up to n paths and send
n paths to the border routers
• RR will do the first best path computation and then send
• This is the only mandatory selection mode
all paths to the border routers
• Pros
• Pros
• less storage used for paths
• all paths are available on border routers
• less BGP info exchanged
• Cons
• Cons
• all paths stored
• more best path computation
• more BGP info is exchanged
• Usecase: Primary + n-1 backup scenario
• Usecase: ECMP, hot potato routing
(n is limited to 3 (IOS) or 2 (IOS-XR), to preserve CPU
power) = fast convergence
multipath
• RR will do the first best path computation and then send all IOS-XR
multipaths to the border routers only
• Use case: load balancing and primary + backup scenario
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
For Your
Reference
Add-Path - IOS-XR router bgp 1
example config
address-family vpnv4
• Path selection is configured additional-paths install backup (deprecated)
additional-paths advertise
in a route-policy additional-paths receive
additional-paths selection route-policy apx
• Global command, per
address family, to turn on example RPL config
add-path in BGP route-policy ap1
if community matches-any (1:1) then
• Configuration in VPNv4 set path-selection backup 1 install add-n-path
mode applies to all VRF elseif destination in (10.1.0.0/16, 10.2.0.0/16)then
set path-selection backup 1 advertise install
IPv4-Unicast AF modes endif
unless overridden at add-all-path
individual VRFs route-policy ap2
set path-selection all advertise
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Hot Potato Routing - No RR
• Hot potato routing = packets are passed on (to next AS) as soon as received
• Shortest path though own AS must be used
• In transit AS: same prefix could be announced many times from many eBGP peers
P: Z
eBGP: P: Z
Path 1: NH: PE1
Path 2: NH: PE2
Path 3: NH: PE3, best
PE3 NH: PE3, P: Z
NH: PE1, P: Z
eBGP: P: Z
PE1
eBGP: P: Z
PE2 PE4
NH: PE2, P: Z
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Hot Potato Routing - With RR
• Introducing RRs break hot potato routing
• Solutions: Unique RD for MPLS VPN or Add Path
Step 8 in the BGP best path
selection algorithm
P: Z
Path 1: NH: PE1, best
Path 2: NH: PE2
Path 3: NH: PE3 eBGP: P: Z
PE3
NH: PE1, P: Z
eBGP: P: Z P: Z
NH: PE3, P: Z Path 1: NH: PE1, best
PE1
RR
eBGP: P: Z
PE2 PE4
NH: PE1, P: Z
NH: PE2, P: Z
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Hot Potato Routing in Large Transit SP
BR BR
BR BR
BR BR
BR RR
RR BR
BR RR RR BR
BR RR RR BR
RR
RR BR
RR RR
RR BR
BR
BR
add-path
• Large transit ISPs with full mesh iBGP • add-all-path could be deployed between
between regional RRs and hub/spoke centralized and regional RR’s
between local BR and RR • Also possible: remove the need for regional
• Full mesh and global hot potato routing RR if all BR routers support add-path
BR
BR
Border Router
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
BGP Optimal Route Reflection (ORR)
• Another way to allow hot-potato routing with RR
• Step 8 in the BGP best path selection algorithm is still the issue
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Fast Convergence
BGP PIC (Prefix Independent Convergence) Edge
Problem
• Improved convergence
• Reduce packet loss
• Have the same convergence time for all BGP prefixes
(PIC)
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
MPLS VPN Dual Homed CE - No PIC Edge
P: Z
Path 1: NH: PE1, best
Path 2: NH: PE2
NH: PE1, P: Z
P:Z CE1
NH: PE2, P: Z
PE2
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
MPLS VPN Dual-Homed CE - PIC Edge
P: Z
Path 1: NH: PE1, best router bgp 1
Path 2: NH: PE2, backup/repair address-family vpnv4
bgp additional-paths install
NH: PE1, P: Z
PE3 CE3
PE1
P:Z CE1
CE1
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
No BGP Best External – Default BGP Policy
P: Z P: Z
Path 1: NH: CE1, localpref 100, external, best Path 1: NH: PE1, internal, localpref 100, best
Path 2: NH: PE2, internal, localpref 100, backup/repair
PE2
Full mesh iBGP
BGP policies are all default
P: Z
Path 1: NH: CE1, localpref 100, external, best
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
No BGP Best External - Changed BGP Policy
P: Z
Path 1: NH: CE1, localpref 200, external, best P: Z
Path 1: NH: PE1, internal, localpref 200, best
no backup/repair
PE3 CE3
PE1 path
P:Z CE1
NH: PE1,
localpref: 200,
P: Z
PE2
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
BGP Best External - Changed BGP Policy
P: Z P: Z
Path 1: NH: CE1, external, best Path 1: NH: PE1, internal, localpref 200, best
Path 2: NH: PE2, localpref 100, internal, backup/repair Path 2: NH: PE2, localpref 100, internal, backup/repair
router bgp 1
address-family vpnv4
bgp additional-paths install P: Z
bgp additional-paths select best-external Path 1: NH: CE1, external, best backup/repair, advertise-best-external
neighbor x.x.x.x advertise best-external Path 1: NH: PE1, localpref: 200, internal, best
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Deployment
BGP Selective Download
RIB – Full Internet Routes
FIB – Full Internet Routes
• Access router RIB holds full Internet routing table,
but fewer routes in FIB
• Example: ME switches, ASR900
ASBR ASBR
• FIB holds default route and selective more
specific routes
iBGP iBGP
ISP ISP
• Enterprise CPE devices will receive full Internet
routes through their BGP peering with the access access router ASBR
router(s)
configuration eBGP eBGP
router bgp 1 bRIB – Full Internet Routes
FIB – Default & Filtered routes RIB – Full Internet Routes
CPE
address-family ipv4 FIB – Full Internet Routes
table-map filter-into-fib filter
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Path MTU Discovery (PMTUD)
• MSS (Max Segment Size) – Limit on the largest segment that can traverse a TCP session
• Anything larger must be fragmented & re-assembled at the TCP layer
• MSS is 536 bytes by default for client BGP without PMTUD
• Enable PMTU for BGP with
• Older command “ip tcp path-mtu-discovery”
• Newer command “bgp transport path-mtu-discovery” (PMTUD now on by default)
• 536 bytes is inefficient for Ethernet (MTU of 1500 or more) or POS (MTU of 4470) networks
• TCP is forced to break large segments into 536 byte chunks
• Adds overheads
• Slows BGP convergence and reduces scalability
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Session/Timers
• Timers = keepalive and holdtime • Do not use Fast Session Deactivation (FSD)
• Default is ok – Tracks the route to the BGP peer
• Smallest is 3/9 for keepalive/holdtime – A temporary loss of IGP route, will kill off the iBGP sessions
• Scaling <> small timers – Very dangerous for iBGP peers
• IGP may not have a route to a peer for a split second
• Use BFD • FSD would tear down the BGP session
• Built for speed – It is off by default
• When failure occurs, BFD notifies BFD neighbor x.x.x.x fall-over
client (in 10s of msecs) – Next Hop Tracking (NHT), enabed by default, does the job
fine
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
IOS
Dynamic Neighbors
• Remote peers are defined by IP address range
• Less configuration for defining neighbors DMVPN
1
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Multisession
IOS
Multisession
• BGP Multisession = multiple BGP (TCP) sessions between 2 single session
BGP speakers carrying all AFs
• Even if there is only one BGP neighbor statement defined between the R1 R2
BGP speakers in the configuration
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
IOS
Multisession BGP: 10.100.1.2 passive rcvd OPEN w/ optional parameter type 2 (Capability)
For Your
Reference
len 3
capability BGP: 10.100.1.2 passive OPEN has CAPABILITY code: 131, length 1
BGP: 10.100.1.2 passive OPEN has MULTISESSION capability, without grouping
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
IOS
Multisession
Conclusion
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
MPLS VPN Scaling
RR-groups
• Use one RR (set of RRs) for a subset of prefixes
• By carving up range of RTs
rr-group 1
RR1
vpnv4/6 RR2
vpnv4/6
PE1 PE2
rr-group 2
vpnv4/6 vpnv4/6
RR1
RR2
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
RR-groups Configuration Example
address-family vpnv4
• Dividing of RTs done by simple ext bgp rr-group 100
community list 1-99 or ext community list address-family vpnv6
with regular expression 100-500 bgp rr-group 100
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Route Target Constraint (RTC)
CE1 CE2
BGP capability exchange
OPEN message PE1 RR1 PE2
CE3 CE4
capability 1/132 (RTFilter)
for vpnv4 & vpnv6
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Route Target Constraint (RTC)
• Results
• Eliminates the waste of processing power on the PE and the waste of bandwidth
• Number of vpnv4 formatted message is reduced by 75%
• BGP Convergence time is reduced by 20 - 50%
• The more sparse the VPNs (few common VPNs on PEs), the more performance gain
• Note
• RTC clients of RR with different set of importing RTs will be in the same update group on the RR
• In IOS-XR, different filter group under same subgroup
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Legacy PE RT Filtering
• Problem: If one PE does not support RTC (legacy prefix), then all RRs in one cluster must
store and advertise all vpn prefixes to the PE
• Solution: Legacy PE sends special prefixes to mimic RTC behavior, without RTC code
Legacy PE RR
• Collect import RTs • The presence of the community triggers the RR to
• Create route-filter VRF (same RD for all these VRFs extract the RTs and build RT membership
across all PEs) information
• Originate special route-filter route(s) with • RR only advertises wanted vpn prefixes towards
• the import RTs attached legacy PE
• one of 4 route-filter communties
• NO-ADVERTISE community
4 route-filter communties
0xFFFF0002 ROUTE_FILTER_TRANSLATED_v4
0xFFFF0003 ROUTE_FILTER_v4
0xFFFF0004 ROUTE_FILTER_TRANSLATED_v6
0xFFFF0005 ROUTE_FILTER_v6
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Legacy PE RT Filtering
Legacy
PE Import
Import CE2 RT 1:1
RT 1:1 CE1
AF vpnv4/6 prefixes PE1 sends all its vpnv4/6 RR sends only RED (not green)
exchange prefixes to RR vpnv4/6 prefixes to PE2
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
For Your
Legacy PE RT Filtering - Configuration Reference
Legacy PE config
ip vrf route-filter
RR config
rd 9999:9999
router bgp 1 export map SET_RT
address-family vpnv4
neighbor 10.100.1.2 route-reflector-client router bgp 1
neighbor 10.100.1.2 accept-route-legacy-rt address-family vpnv4
neighbor 10.100.1.3 route-map legacy_PE out
address-family ipv4 vrf route-filter
network 9.9.9.9 mask 255.255.255.255
PRO CON
• Remove Internet routing table from P routers • Increased memory and bandwidth
• Security: move Internet into VPN, out of global consumption
• Added flexibility
• More flexible DDOS mitigation
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Full Internet in a VRF?
Considerations
RD 1:1
PE1 PE3
RR
RD 1:2
PE2 PE4
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
Label Allocation Mode: Per-CE Label
• One unique label per prefix is always the default
• Per-CE : one MPLS label per next-hop (so per connected CE router)
2 CEs = 2 labels
• No IP lookup needed after label lookup
• Caveats
• No granular load balancing because the bottom label is the same for all prefixes from one CE, if platform load
balances on bottom label
• eBGP load balancing & BGP PIC is not supported (it makes usage of label diversity), unless resilient per-ce label
• Only single hop eBGP supported, no multihop
CE1
CEx
NH: PE1, P: Zx, label Lx
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Resilient per-ce is enabled by
configuring regular per-ce
Per-CE Label: Caveats - PIC commands (label allocation
mode or in RPL)
Before failure
Best paths:
Z1: CE1 Z1 data flow after failure
PE3
Z2: eibgp multipath to
CE1 and PE2 per-ce label NH: PE1, P: Z1, label L1
P:Z1 allocation mode
Backup paths (PIC):
NH: PE1, P: Z2, label L1
Z1 via PE3
PE1
Z1, Z2 data flow
before failure
After failure
Best paths: PE4 CE4
CE2
CE1
Z1: PE3
Z2 data flow after failure
Z2: PE2
P:Z2 PE2
NH: PE2, P: Z1, label L2
- Con: No granular load balancing because the bottom label is the same for all prefixes, if platform load balances on
bottom label
CE1
CEx
NH: PE1, P: Zx, label L1
router bgp 1
address-family vpnv4
bgp additional-paths install P: Z
bgp additional-paths select best-external Path 1: NH: CE1, external, best backup/repair, advertise-best-external
neighbor x.x.x.x advertise best-external Path 1: NH: PE1, localpref: 200, internal, best
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
IOS-XR
CE
L L L MPLS
CE
C C C PE
CE
CE CE
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
OS Enhancements
Multi-Instance BGP multi-instance
BGP
• A new IOS-XR BGP architecture to support multiple
BGP instances RR1
• Each BGP instance is a separate process running multi-instance BGP
20.0.0.1
on the same or a different RP/DRP node BGP vpnv4
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
ASR9K: Scaling Enhancement
• BGP RIB Scale enhancement in 5.1.1
• Only for RSP440-SE
• Reload is needed
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
For Your
Reference
OS Scaling Enhancements for BGP
OS releases
BGP Keepalive
Enhancements
IOS
• Priority queues for
reading/writing Keepalive/Update BGP PE-CE Scale
BGP Generic Scale messages
Enhancements
IOS
Enhancements • Results = avoid neighbor flaps /
IOS
IOS-XR
• Optimised BGP processing of label
BGP PE Enhancements
IOS-XR
on PE router
• Result = reduced CPU usage
BGP PE-CE Scale • Modified BGP import processing
Enhancements
IOS
on PE router
• Modified internal data structures BGP PE Scale • Result = reduced CPU usage
and optimized internal algorithms
Enhancements
IOS
IOS-XR
greater VRF and PE-CE session • Modified internal data structures
scaling for VRFs Enhancement
• Result = considerable memory
savings / greater prefix scalability • Only for ASR9K
• Result = more prefixes
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Key Takeaways
For Your
Reference
Takeaway : When is the Boat Not Big Enough?
IOS IOS-XR NX-OS
Convergence
show bgp convergence show bgp convergence detail
Measure Prefix instability show bgp all summary show bgp table
Traffic drops
Table Versions show bgp process performance-statistics
Timestamps detail
• Design
• Topology
• Features
• Address families
• Full mesh iBGP / RRs
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Complete Your Online Session Evaluation
• Give us your feedback to be
entered into a Daily Survey
Drawing. A daily winner will
receive a $750 Amazon gift card.
• Complete your session surveys
through the Cisco Live mobile
app or from the Session Catalog
on CiscoLive.com/us.
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs
• Lunch & Learn
• Meet the Engineer 1:1 meetings
• Related sessions
BRKRST-3321 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Thank you