Beruflich Dokumente
Kultur Dokumente
1351_06_2000_c2 ©
© 2000,
2000, Cisco
Cisco Systems,
Systems, Inc.
Inc. 1
Troubleshooting BGP in
Large IP Networks
Session 2210
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 2
BGP in Large Scale Networks
Scalable
Stable
Simple
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 3
• Basic Tools
• Peer Establishment
• UPDATE Exchange
• Selection Algorithm
• Route Reflectors
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 5
Tool Time
Basic Tools
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 6
BGP Troubleshooting Tools
• show commands
• debug output
• Log messages
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 7
show Commands
router#show ip bgp ?
A.B.C.D IP prefix <network>/<length>, e.g., 35.0.0.0/8
A.B.C.D Network in the BGP routing table to display
cidr-only Display only routes with non-natural netmasks
community Display routes matching the communities
community-list Display routes matching the community-list
dampened-paths Display paths suppressed due to dampening
filter-list Display routes conforming to the filter-list
flap-statistics Display flap statistics of routes
inconsistent-as Display only routes with inconsistent origin ASs
neighbors Detailed information on TCP and BGP neighbor connections
paths Path information
peer-group Display information on peer-groups
quote-regexp Display routes matching the AS path "regular expression"
regexp Display routes matching the AS path regular expression
summary Summary of BGP neighbor status
| Output modifiers
<cr>
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 8
show Commands (Cont.)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 9
router#show ip bgp
BG P table version is 9,localrouter ID is 7.72.6.1
Status codes:s suppressed,d dam ped,h history,* valid,> best,i-internal
O rigin codes:i-IG P,e -EG P,? -incom plete
N etw ork N extH op M etric LocPrfW eightPath
*> 3.0.0.0 0.0.0.0 0 32768 i
*> 5.0.0.0 0.0.0.0 0 32768 i
*> 6.0.0.0 6.72.6.2 4294967294 02i
*i 6.72.6.2 4294967294 100 0 2 i
*> 7.0.0.0 0.0.0.0 0 32768 i
*> 8.0.0.0/5 0.0.0.0 0 32768 i
*> 17.0.0.0 6.72.6.2 4294967294 02i
*i 6.72.6.2 4294967294 100 0 2 i
*> 23.0.0.0 6.72.6.2 4294967294 02i
*i 6.72.6.2 4294967294 100 0 2 i
*> 35.0.0.0 6.72.6.2 4294967294 02i
*i 6.72.6.2 4294967294 100 0 2 i
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 10
The BGP Table (Cont.)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 11
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 12
show ip bgp neighbors
router#show ip bgp neighbors 6.72.6.2
BG P neighbor is 6.72.6.2,rem ote A S 2,externallink
Index 1,O ffset0,M ask 0x2
BG P version 4,rem ote router ID 7.72.6.2
BG P state = Established,table version = 9,up for 4d21h
Lastread 00:00:56,lastsend 00:00:48
H old tim e 180,keepalive interval60 seconds
N eighbor N LR I negotiation:
C onfigured for unicastroutes only
Peer negotiated unicastand m ulticastroutes
Exchanging unicastroutes only
R eceived route refresh capability from peer
M inim um tim e betw een advertisem entruns is 30 seconds
R eceived 7044 m essages,0 notifications,0 in queue
Sent7041 m essages,0 notifications,0 in queue
Prefix advertised 4,suppressed 0,w ithdraw n 0
R oute refresh request:received 0,sent0
Inbound path policy configured
R oute m ap for incom ing advertisem ents is k
C onnections established 1;dropped 0
Lastresetnever
N um ber ofunicast/m ulticastprefixes received 4/0
ExternalBG P neighbor m ay be up to 255 hops aw ay.
C onnection state is ESTA B,I/O status:1,unread inputbytes:0
Localhost:3.72.6.1,Localport:179
Foreign host:6.72.6.2,Foreign port:11014
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 13
debug ip bgp
router#debug ip bgp ?
A.B.C.D BGP neighbor address
dampening BGP dampening
events BGP events
keepalives BGP keepalives
updates BGP updates
<cr>
• Remember—can be dangerous!
Use only in the lab or If advised by the TAC
Session Establishment
(debug ip bgp events)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 16
Looking at the Updates
Attributes Apply
Peer Address Prefixes in the Same
to
UPDATE All Prefixes
BG P:6.72.6.2 rcv U PD A TE w /attr:nexthop 6.72.6.2,origin i,m etric
294,path 2 1
BG P:6.72.6.2 rcv U PD A TE about3.0.0.0/8 --D EN IED due to:as-path
contains our ow n A S;
BG P:6.72.6.2 rcv U PD A TE about7.0.0.0/8 --D EN IED due to:as-path
contains our ow n A S;
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 19
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 20
show ip bgp neighbors x.x.x.x
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 21
Peer Establishment
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 22
Peer Establishment
Common Problems
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 24
Can’t Establish Session -
Symptoms
routerA #show ip bgp sum m ary
BG P router identifier 7.72.6.1,localA S num ber 1
BG P table version is 4,m ain routing table version 4
6 netw ork entries and 6 paths using 774 bytes ofm em ory
2 BG P path attribute entries using 96 bytes ofm em ory
1 BG P A S-PA TH entries using 24 bytes ofm em ory
BG P activity 6/0 prefixes,6/0 paths
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 26
Can’t Establish Session—
Troubleshooting I (Cont.)
• Verify IP connectivity
check the routing table
use ping/trace to verify two way reachability
inspect for ACLs in the path to the neighbor
routerA #show ip route 7.72.6.3
R outing entry for 7.72.6.3/32
K now n via "ospf123”,distance 110,m etric 87,type intra area
Lastupdate from 27.27.27.254 on PO S5/0,00:09:33 ago
R outing D escriptor Blocks:
* 27.27.27.254,from 7.72.6.3,00:09:33 ago,via PO S5/0
R oute m etric is 87,traffic share countis 1
routerA #ping 7.72.6.3
Sending 5,100-byte IC M P Echos to 7.72.6.3,tim eoutis 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip m in/avg/m ax = 28/30/32 m s
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 27
27.27.27.254
27.27.27.253
• Configuration:
Router A
router bgp 1
neighbor 27.27.27.254 remote-as 1
If redundant paths exist,
use loopback interfaces to
Router C
establish the session.
router bgp 1
neighbor 27.27.27.253 remote-as 1
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 29
• Solution:
make sure both routers source the
information from the appropriate interface
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 30
Can’t Establish
Session—Symptoms
routerA #show ip bgp sum m ary
BG P router identifier 7.72.6.1,localA S num ber 1
BG P table version is 4,m ain routing table version 4
6 netw ork entries and 6 paths using 774 bytes ofm em ory
2 BG P path attribute entries using 96 bytes ofm em ory
1 BG P A S-PA TH entries using 24 bytes ofm em ory
BG P activity 6/0 prefixes,6/0 paths
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 31
• Verify IP connectivity
check the routing table
use ping/trace to verify two way reachability
routerA #show ip route 6.72.6.2
% N etw ork notin table
router bgp 1
neighbor 6.72.6.2 rem ote-as 2 Neighbor is trying
neighbor 6.72.6.2 update-source Loopback1 to peer with this IP
address
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 35
router bgp 1
neighbor 6.72.6.2 rem ote-as 2
neighbor 6.72.6.2 ebgp-m ultihop 255
neighbor 6.72.6.2 update-source Loopback1
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 37
router bgp 1
neighbor 6.72.6.2 rem ote-as 2
neighbor 6.72.6.2 ebgp-m ultihop 255
neighbor 6.72.6.2 update-source Loopback1
OPEN Message
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 26 27 28 29 30 31
Version
My Autonomous System
Hold Time
BGP Identifier
Optional Parameters
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 40
Capabilities Negotiation
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 41
UPDATE Exchange
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 42
UPDATE Exchange
Propagation Decisions
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 44
Common Problems
• Missing routes
No iBGP full mesh
Filters: routes are not received/sent
• Slow convergence
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 45
UPDATE Filters
• Type of filters
Prefix filters
AS_PATH filters
Community filters
Any attribute may be used in a route-map
• Applied incoming and/or outgoing
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 46
Missing Routes—
Troubleshooting Steps
Missing Routes—
Troubleshooting Steps (Cont.)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 48
Missing Routes—Symptoms
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 49
Missing Routes—Troubleshooting
routerA#show access-lists 10
Standard IP access list 10
permit 4.0.0.0
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 50
Missing Routes—
Troubleshooting (Cont.)
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 7.72.6.3 rem ote-as 2
neighbor 7.72.6.3 ebgp-m ultihop 255
neighbor 7.72.6.3 update-source Loopback0
neighbor 7.72.6.3 prefix-listfilter in
!
ip prefix-listfilter seq 5 deny 4.0.0.0/8
ip prefix-listfilter seq 10 perm it0.0.0.0/0 le 32
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 51
Slow Convergence—Symptoms
• Possible causes
Remote router is not healthy (OutQ)
Lower layer problems (IP)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 52
Slow Convergence—
Troubleshooting
Reply to request 0
Record route:
(156.1.1.2)
router bgp 1 (195.5.5.1)
neighbor 150.10.10.1 remote-as 2 (10.105.1.134)
neighbor 150.10.10.1 ebgp-multihop 2 (150.10.10.1)
(10.105.1.76)
neighbor 150.10.10.1 update-source Loopback0 (195.5.5.2)
(156.1.1.1)
(211.211.211.1) <*>
routerA#show ip route 150.10.10.1
Reply to request 1
Routing entry for 150.10.10.1/32 Record route:
(10.105.1.69)
Routing Descriptor Blocks: (140.10.50.5)
10.105.1.71, from 150.20.20.1, 00:06:14 ago, via POS2/1/0 (150.10.10.1)
(140.10.50.6)
* 156.1.1.1, from 150.20.20.1, 00:06:14 ago, via POS2/1/1 (10.105.1.71)
(211.211.211.1) <*>
routerA#ping 150.10.10.1
Sending 5, 100-byte ICMP Echos to 150.10.10.1: !!!!! Ping with route
Success is 100 percent, round-trip min/avg/max = 4/64/296 ms record option.
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 53
Slow Convergence—
Troubleshooting (Cont.)
eBGP Peering
OC-3 OC-3
A B
T3
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 55
• Inconsistent decision/policy
MED
External paths
Communities
By default, communities are not
propagated
neighbor x.x.x.x send-community
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 57
Inconsistent Decision—
Symptom I
Inconsistent Decision—
Symptom I (Cont.)
• Different result…again!!
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 60
Deterministic MED
Deterministic MED—Operation
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 62
Deterministic MED—Result
Inconsistent Decision—
Symptom II
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 64
Inconsistent Decision—
Symptom II (Cont.)
Route Reflectors
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 66
Route Reflectors
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 67
Route Reflectors—Terminology
Clusters
Clients Clients
Lines Represent Both Physical Links and BGP Logical Connections
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 68
Reflection Decisions
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 69
Common Problems
• Missing routes
• Routing loops and “close calls”
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 70
Missing Routes—Symptoms
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 71
Missing Routes—Troubleshooting
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 73
Missing Routes—
Troubleshooting II
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 74
Missing Routes—
Troubleshooting (Cont.)
• Clusters with
multiple RRs B C
RR
RR
If the RRs have the
same cluster-id, all
A D
the clients must peer
with all the reflectors
Lines Represent Both Physical
Links and BGP Logical Connections
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 75
Routing Loop—Symptom
A
routerD#traceroute 7.1.1.1
1 1.1.1.2 24 msec 24 msec 40 msec Loop!
rtrB 2 156.1.1.1 28 msec 48 msec 24 msec
rtrC 3 156.1.1.2 24 msec 24 msec 24 msec
B C
4 156.1.1.1 28 msec 28 msec 24 msec
5 156.1.1.2 28 msec 28 msec 28 msec D
6 156.1.1.1 28 msec 28 msec 32 msec
Lines Represent
Physical Connections
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 76
Routing Loop—Troubleshooting
Routing Loop—
Troubleshooting (Cont.)
• Check configuration
routerC#
router bgp 134 A-RR
neighbor 150.10.10.1 remote-as 1
neighbor 150.10.10.1 ebgp-multihop 255
neighbor 150.10.10.1 update-source Loopback0
neighbor 156.1.1.1 remote-as 134 B C-RR
neighbor 156.1.1.1 route-reflector-client
neighbor 156.1.1.1 next-hop-self D
!
ip route 150.10.10.1 255.255.255.255 s0 250 Lines Represent
Physical Connections
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 78
Routing Loop—
Troubleshooting (Cont.)
• Solution
Establish the eBGP A-RR
peering permanently
through the
“backup” link B C-RR
Use LOCAL_PREF or D
MED to break any tie!
Lines Represent
Physical Connections
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 79
Close Call—Symptom
Close Call—
Troubleshooting (Cont.)
• Verify configuration
Check for alternate routes
router bgp 1
no synchronization
neighbor 7.75.7.1 rem ote-as 1 routerC
neighbor 7.75.7.1 update-source Loopback0
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 82
Close Call—
Troubleshooting (Cont.)
router bgp 1
no synchronization
bgp log-neighbor-changes routerA
neighbor 7.72.6.1 rem ote-as 1
neighbor 7.72.6.1 update-source Loopback0
neighbor 7.72.6.1 route-reflector-client
neighbor 7.72.6.2 rem ote-as 1 routerB
neighbor 7.72.6.2 update-source Loopback0
neighbor 7.72.6.2 route-reflector-client
neighbor 6.72.6.3 rem ote-as 2
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 83
Close Call—
Troubleshooting (Cont.)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 84
Close Call—
Troubleshooting (Cont.)
routerB#traceroute 4.4.4.4
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 85
Close Call—
Troubleshooting (Cont.)
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 86
Close Call—
Troubleshooting (Cont.)
• The logical
connection A
between routerC
(RR) and routerA
provides the B
route CC
The physical path
is followed
D E
Logical Connection
4.0.0.0/8
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 87
Summary/Tips
Summary/Tips
2210
1351_06_2000_c2 © 1999,
2000, Cisco Systems, Inc. 91
2210
1351_06_2000_c2 © 1999,
2000, Cisco Systems, Inc. 92
2210
1351_06_2000_c2 © 2000, Cisco Systems, Inc. 93