Professional Documents
Culture Documents
ANALYSIS OF BGP
SESSION RST-2303
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 1
Agenda
• Intro/Basics
• Attributes
• Route Reflectors
• Aggregation
• Dampening
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 2
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Introduction and Basics
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 3
BGP Basics
Problems:
Peering
• 100,000’s of Prefixes
A C
• Many Autonomous
Organizations
ISP ISP
• Complex, Granular Policy A B
Required
B D
• Can any IGP handle this?
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 4
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Reasons for Using BGP
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 5
• Interior (IGP)
Automatic discovery of information (neighbors, prefixes)
Generally trust your IGP routers
Routes go to all IGP routers
Periodic announcement of all information
• Exterior (EGP)
Specifically configured peers
Connecting with outside networks - less trust
Set administrative boundaries
Incremental Updates
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 6
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Why Do We Need an EGP?
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 7
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 8
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
IGP of Each AS Is Hidden
Peering
• Instability of one AS is
segmented from others A C
AS AS
• Minimizes topology
information that each 100 101
AS must maintain B D
• Connects different
IGP’s E
• Creates point of AS
summarization
102
• Internal Policy of each
AS remains within the
AS
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 9
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 10
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Stub Network
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 11
Multihomed Network
• Many situations
possible
AS AS
Multiple links to same
ISP—Without BGP 100 300
A D
Secondary for only
backup—Without BGP B C
Loadshare between AS
primary and
secondary— Without 200
BGP
Selectively use
different ISPs—Need
BGP
Can Still Use Default, UNLESS You
Want to Selectively Use Either ISP
for Optimal Performance
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 12
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Multiple Links to the Same ISP - I
AS 201
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 13
• Simplest scheme is
to use two defaults ISP
“Watershed effect”
• Again, can use statics/IGP at D F
borders, OR use BGP
A B
0.0.0.0 0.0.0.0
AS 201
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 14
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Multiple Links to the Same ISP - III
AS 201
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 15
Tier 1 ISP
Tier 2 ISP AS 3
AS 2 D E
A B
Allows per-prefix
AS 1 selection of exit paths
C
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 16
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Reasons for Using BGP
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 17
Rest of the
Internet
AS 100 AS 300
Your
A D
Network
B C
Full Internet Routes
AS 200
(Your
Customer)
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 18
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Back to Basics
General Operation
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 20
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
What Are Incremental Updates?
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 21
1. OPEN MESSAGE
Exchange AS, router ID, holdtime
Capability negotiation
2. NOTIFICATION
Example: “peer in wrong AS”
3. KEEPALIVE - When no updates
4. UPDATES - Carries the prefix information
(incremental)
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 22
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
External BGP
Router A
router bgp 1
neighbor 2.0.1.1 remote-as 2 2.0.1.0
Router B
router bgp 2
neighbor 2.0.1.2 remote-as 1
AS 1 A .2
1.0.0.0
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 23
Internal BGP
• Neighbor in same AS
• Next-hop unchanged
• May be several hops away
A B
• IBGP routes are not forwarded
to IBGP peers
• (Thus a full IBGP mesh is
required)
scaling problem!
• Router A
router bgp 1
neighbor 2.0.1.1 remote-as 1
• Router B
router bgp 1
neighbor 2.0.1.2 remote-as 1
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 24
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Attributes
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 25
Withdraws
Attributes
Prefixes
(Network-Layer
Reachability Information)
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 26
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
BGP Attributes—Tools for Routing Policy
1: ORIGIN 7: AGGREGATOR
2: AS-PATH 8: COMMUNITY
3: NEXT-HOP 9: ORIGINATOR_ID
4: MED 10: CLUSTER_LIST
5: LOCAL_PREF
14: MP_REACH_NLRI
6: ATOMIC_AGGREGATE
15: MP_UNREACH_NLRI
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 27
Decision Process
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 28
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Decision Process
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 29
Decision Process
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 30
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Decision Process
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 31
Decision Process
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Decision Process
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 33
Attribute - Agenda
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 34
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
NEXT_HOP
AS 1
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 35
4.0.0.0/8 5.1.1.3
C
5.1.1.1 4.0.0.0/8 6.0.1.1
2.0.0.0/8 6.0.1.1
3rd Party EBGP
IBGP next-hop unmodified
5.1.1.2 5.1.1.3 Overriding defaults:
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 36
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Details: Overriding Next-Hop (Cont.)
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 37
Synchronization
A AS 1
AS 2
AS 3
IGP Carries
all Inter AS Routes B
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 38
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Problem: Override AS-path/MED?
Solution: LOCAL PREFERENCE
AS 4
AS 3 AS 2
AS 5
AS 1
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 39
LOCAL_PREF: Configuration
AS 4
AS 3 AS 2
B
AS 5
• Configuration (rtr A): A
router bgp 1 AS 1
neighbor x.x.x.x remote-as 2
neighbor x.x.x.x route-map foo in
!
route-map foo permit 10
match as-path 2
set local-preference 120
! “bgp regular expression” - match any
ip as-path access-list 2 permit ^2_ AS path beginning with “2”
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 40
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
LOCAL_PREF
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 41
AS 1
- AS SEQUENCE 2.0.1/24
List of ASNs that a AS 2
A 2.0.2/24
route has traversed
B
- AS SET AS 4
Summarizes 2.0.0/24
AS 3
contributing D 2.0.3/24
sequence
C
Sequence E
ordering is lost A: 2.0.2.0/24, ASPATH = 4 2
B: 2.0.0.0/24, ASPATH = 4
C: 2.0.1.0/24. ASPATH = 4 1
- route-map prepend: E: 2.0.0.0/22, ASPATH = 4 {1 2 3}
set as-path prepend
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 42
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Detail: as-set
• AS_SET
unordered set of all Autonomous Systems traversed
helps avoid loops
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 43
as-set (Cont.)
A: 2.0.2.0/24 4 2 AS 1
B: 2.0.0.0/24 4 2.0.1/24
C: 2.0.1.0/24 4 1 AS 2
A 2.0.2/24
E: 2.0.0.0/22 4 {1 2 3}
B
AS 4
2.0.0/24
AS 3
D 2.0.3/24
E C
• Example: Router D
router bgp 4
network 2.0.1.0 mask 255.255.255.0
aggregate-address 2.0.0.0 255.255.252.0 as-set
ip route 2.0.1.0 255.255.255.0 null0 254
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 44
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
AS PATH and Routing Decisions
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 45
AS_PATH—Pre-Pending
AS 4
B AS 3 AS 2
9.0.0.0/24
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Problem: Indicate Best Path into AS
Solution: MED
CITY A CITY A
AS 6 AS 3
AS 1 AS 2
AS 5 AS 4
CITY B
• Conveys relative preference of entry points.
• Lowest MED is best—Default is no MED==0
• Comparable only if paths are from same AS
• Non-transitive—Do not pass MED from one AS to
another.
• route-map: set metric
set metric-type internal
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 47
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 48
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
deterministic-med
• Configuration:
router bgp 1
bgp deterministic-med
bgp dynamic-med-interval <secs>
neighbor x.x.x.x remote-as 2
neighbor x.x.x.x route-map set_MED out
!
route-map set_MED permit 10
match as-path 2
set metric-type internal
• http://www.cisco.com/warp/customer/459/37.html
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 49
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 50
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
BGP Attributes
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 51
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 52
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Where Is Distance?
• Distance:
Does not effect BGP bestpath selection.
Is applied to the bestpath prior to insertion in the IP routing
table
Lowest DISTANCE is chosen when multiple routing
protocols have the same route
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 53
Distance
A AS 1
AS 2
AS 3
IGP Carries
All Inter AS Routes B
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
BGP Global Settings
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 55
So Far…
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 56
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Communities
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 57
• Communities!
• NOT in decision algorithm
• BGP route can be a member of many communities
• Typical communities:
Destinations learned from customers
Destinations learned from ISPs or peers
Destinations in VPN—BGP community is fundamental to
the operation of BGP VPNs
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 58
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Communities
Communities:
1:100—Customer Routes
1:80—ISP Routes ISP 2
ISP 1
ISP 3 ISP 4
0.0.0.0
Customer 1 Customer 2
(No Default, (Uses Default,
Wants Full Routes)
RST-2303 Wants Your Routes)
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 59
Communities
Communities: Set Community
1:100—Customer Routes 1:80
1:80—ISP Routes ISP 2
Match Community
ISP 1 1:100
Match Community
Match Community
1:100 1:80
1:100
ISP 3 ISP 4
Set Community
1:100 0.0.0.0
Customer 1 Customer 2
(No Default, (Uses Default,
Wants Full Routes)
RST-2303 Wants Your Routes)
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 60
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Communities
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 61
Communities
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 62
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Community Filters
• Per neighbor
Inbound or outbound route-maps
match community <number> [exact-match]
exact match only for standard lists
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 63
Community Filters
• Example 1:
Mark some prefixes as part of the 1:120 community (+remove existing
community!)
• Configuration:
router bgp 1
neighbor 10.0.0.1 remote-as 2
neighbor 10.0.0.1 send-community
neighbor 10.0.0.1 route-map set_community out
!
route-map set_community 10 permit
match ip address 1
set community 1:120
!
access-list 1 permit 10.10.0.0 0.0.255.255
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 64
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Community Filters
• Example 2:
Set LOCAL_PREF depending on the community that the prefix
belongs to.
• Configuration:
router bgp 1
neighbor 10.0.0.1 remote-as 2
neighbor 10.0.0.1 route-map filter_on_community in
!
route-map filter_on_community 10 permit
match community 1
set local-preference 150
!
ip community-list 1 permit 2:150
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 65
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 66
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
BGP Route Reflectors
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 67
Route Reflectors
• Basics
• Attributes
• Multiple Tiers
• Migration
• Cluster ID comparison
• Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 68
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Why Route Reflectors?
• Provides a scalable
alternative to the iBGP full
mesh problem
• Relaxes rule which says a
route from one iBGP peer
cannot be advertised to
another iBGP peer n(n-1)/2 iBGP
• A Route Reflector (RR) Sessions!
can advertise a route from
an iBGP peer to a Route
Reflector Client (RRC)
• The ORIGINATOR_ID and
CLUSTER_LIST attributes
are used to perform loop
detection
• neighbor x.x.x.x route-
reflector client
• RFC 2796 n=1000 => Nearly Half a Million iBGP Sessions!
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 69
Route Reflectors—Terminology
Non-client Route Reflector
Clients
Clusters Clients
Lines Represent Both Physical Links and BGP Logical Connections
• Route reflector - Router that reflects the iBGP information
• Client - Routers between which the RR reflects updates (may be fully
meshed among themselves)
• Cluster - Set of one or more RRs and their clients
(may overlap)
• Non-client - iBGP neighbor outside the cluster
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 70
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Propagation
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 71
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 72
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Topology
• RR topology should
Backbone
follow physical topology
RR RR
A RRC should not peer
through RR1 to get to Cluster B
RR2 unless RRC is also RRC
peering with RR1 RRC
Defining two RRs in a
POP and having every RR
router in that POP peer
to those RRs is ok
Dedicated routers can RR
be used as RR’s
Cluster A
RR’s do not have to be
directly inline with the
clients, but should be RRC
placed so not to detract RRC
from redundancy RR
• Black holes and routing
loops can occur
otherwise
Cluster C RR
Cluster D
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 73
Route Reflectors
• Basics
• Attributes
• Multiple Tiers
• Migration
• Cluster ID comparison
• Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 74
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Attributes
• ORIGINATOR_ID
Router ID of IBGP speaker that injects
route into AS—applied by RR
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 75
• CLUSTER_LIST
String of CLUSTER_IDs through which the route has
passed
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 76
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Attributes
Router id
RR
1.3.1.1
1.0.1.2
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 77
Route Reflectors
• Basics
• Attributes
• Multiple Tiers
• Migration
• Cluster ID comparison
• Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 78
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Hierarchy
Route Reflectors
• Basics
• Attributes
• Multiple Tiers
• Migration
• Cluster ID comparison
• Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 80
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Deploying Route Reflectors
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 81
Route Reflectors—Migration
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 82
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Migration
• Migration is easy
Configure one RR at a time
Eliminate redundant iBGP sessions
Place one RR per cluster
• Repeat as needed…
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 83
• Problem:
A full iBGP mesh
A
A
B C
D
E
Logical Links
Physical AND Logical Links
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 84
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Migration
• Step 1:
configure D
as a RR; E A
A
is the client
B C
D RR
E
Logical Links
Physical AND Logical Links
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 85
• Step 2: eliminate
unnecessary iBGP
links A
A
B C
D RR
E
Logical Links
Physical AND Logical Links
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 86
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Migration
• Step 3:
repeat for other
clusters A
A
and iBGP
links.
• Finished!! B C
RR RR
D RR
E
Logical Links
Physical AND Logical Links
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 87
Route Reflectors
• Basics
• Attributes
• Multiple Tiers
• Migration
• Cluster ID comparison
• Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 88
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 89
Same Cluster-ID
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 90
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Same Cluster-ID
eBGP
10.0.0.0/8
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 91
Different Cluster-ID
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 92
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Different Cluster-ID
eBGP
10.0.0.0/8
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 93
Cluster-ID Comparison
One path
Different Easy to ID from each
Cluster-ID 100% router based High RRC and
on Cluster-ID one from
each RR
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 94
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors
• Basics
• Attributes
• Multiple Tiers
• Migration
• Cluster ID comparison
• Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 95
RRC - A RRC - B
RRs RRs
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 96
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Reflectors - Redundancy
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 97
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 98
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Confederations - RR Alternative
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 99
Confederations - RR Alternative
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 100
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
RRs or Confederations
Anywhere
In the Medium
Confederations Yes Yes Medium To High
Network
Route Anywhere
In the
Reflectors Yes Yes Very High Very Low
Network
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 101
BGP Aggregation
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 102
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
What Is Aggregation?
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 103
How to Aggregate
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 104
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Why Aggregate?
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 105
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 106
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
BGP Attribute: Aggregator
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 107
Dampening
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 108
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Dampening
• Route flap
The bouncing up and down of a path
• A flap ripples through the entire Internet
• Consumes CPU cycles, causes instability
• Solution: Reduce scope of route flap propagation
History predicts future behavior
Suppress oscillating routes
Advertise stable suppressed routes
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 109
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 110
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Route Dampening
Suppress-Limit
3
Penalty
2 Reuse-Limit
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Time
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 111
Selective Dampening
• Variable dampening
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 112
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Dampening Configuration
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 113
Dampening
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 114
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Dampening – Deployment
• Configurable parameters:
half-life – The number of minutes it takes for the penalty to
decay by 1/2
reuse-limit – If a route is suppressed the penalty must
decay to this value to be unsuppressed
suppress-limit – The penalty must be greater than this
threshold when an advertisement is received for a route to
be suppressed
max-suppress-time – The maximum number of minutes a
route may be suppressed
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 115
Dampening – Deployment
• Calculated parameters:
max-penalty – The maximum penalty a route may have that will
allow the penalty to decay to reuse-limit within max-suppress-
time
max-penalty = reuse-limit * 2^(max-suppress-time/half-life)
If half-life is 30, reuse-limit is 800, and max-suppress-time is 60
then the max-penalty would be 3200
If we allowed the penalty to reach 3201 it would be impossible
for the penalty to decay to 800 within 60 minutes
• IOS will generate a warning message if the max-penalty is
above 20,000 or less than the suppress-limit
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 116
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Dampening – Example
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 117
Dampening – Example II
• No window:
Half-life of 30 minutes, reuse-limit of 750, suppress-limit of 3000,
and max-suppress-time of 60
max-penalty = 750 * 2^(60/30) = 3000
Here the max-penalty is equal to the suppress-limit
• The penalty can only go as high as 3000.
The decay begins immediately, so the penalty will be lower than
3000 by the time an advertisement is received.
A route could consistently flap several times a minute and never
be suppressed
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 118
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Summary
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 119
Other References
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 120
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
Recommended Reading
• Continue your
Networkers learning
experience with further
reading for this session
from Cisco Press.
• Check the
Recommended
Reading flyer for
suggested books.
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 121
RST-2303
9734_05_2004_X2 © 2004 Cisco Systems, Inc. All rights reserved. 122
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr
RST-2303
9734_05_2004_X2
Presentation_ID ©
© 2003,
2004 Cisco
Cisco Systems,
Systems, Inc.
Inc. All
All rights
rights reserved.
reserved. 123
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
9734_05_2004_X2.scr