Professional Documents
Culture Documents
Brkrst-3320-Imp
Brkrst-3320-Imp
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 1
Troubleshooting BGP
BRKRST-3320
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 2
• Troubleshooting Peers
• BGP Convergence
• High Utilization
• BGP Routing Problems
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 3
Troubleshooting Peers
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 4
No Peering
Ping: Fails
Is it supposed to be configured
for eBGP multihop?
Are the AS numbers right?
• Next, try pinging the peering
address
If the ping fails, there’s likely a
connectivity problem
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 5
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 6
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 7
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 8
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 9
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 10
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 11
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 12
addresses
R1 and R2 do not agree on
1.1.1.1
10.1.1.1
10.1.1.2
2.2.2.2
R1 R2
what addresses to use
BGP will tear down the TCP
session due to the conflict
neighbor 10.1.1.1 remote-as 100
Points out configuration neighbor 10.1.1.1 update-source
loopback 0
problems and adds some
security
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 13
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 14
1.1.1.1
10.1.1.1
10.1.1.2
2.2.2.2
R1 R2
For the same scenario R2
“passively” established the
session.
R1 Actively opened the
neighbor 10.1.1.1 remote-as 100
session neighbor 10.1.1.1 connection-mode
passive
R2 Passively accepted the
session
Can be configured
neighbor x.x.x.x transport
connection-mode
[active|passive]
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 15
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 16
1.1.1.1
10.1.1.1
10.1.1.2
2.2.2.2
R1 R2
with the highest router-ID
is the winner
This rarely happens
neighbor 10.1.1.1 remote-as 100
neighbor 10.1.1.1 connection-mode
Not an issue if this passive
does occur
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 17
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 18
incompatible BGP version The version of BGP the peer is running isn’t compatible
with the local version of BGP
peer in wrong AS The AS this peer is locally configured for doesn’t match
the AS the peer is advertising
BGP identifier wrong The BGP router ID is the same as the local BGP router ID
unsupported optional There is an option in the packet which the local BGP
parameter speaker doesn’t recognize
authentication failure The MD5 hash on the received packet does not match the
correct MD5 hash
unacceptable hold time The remove BGP peer has requested a BGP hold time
which is not allowed (too low)
unsupported/disjoint capability The peer has asked for support for a feature which the
local router does not support
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 19
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 20
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 21
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 22
But the number of packets The number of packets At least one BGP
transmitted is not increasing generated is increasing keepalive interval apart
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 23
R1#ping ip
Target IP address: 10.2.2.2
Repeat count [5]:
Datagram size [100]: 1500
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 1500-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 25
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 26
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 27
Attribute
NLRI
NLRI
Attribute
Attribute
Attribute
Attribute
The larger the packet
BGP can build, the more
NLRI
NLRI
NLRI
NLRI
destinations it can put in
the packet
NLRI
NLRI
NLRI
Attribute
The more you can put in a
single packet, the less
NLRI
More Efficient
Attribute
often you have to repeat
NLRI
the same attributes
NLRI
Less Efficient
NLRI
Second rule of thumb:
More Efficient
allow BGP to use the
largest packets possible
Attribute
NLRI
NLRI
NLRI
Less Efficient
More Efficient
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 30
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 31
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 32
500
200
100
300
400
Reduced the input queue
drops by a factor of 10 Peer group members
12.0(18)S
Reduces convergence
speed by 50%
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 33
250
Without PMTU discovery,
we can support 100 peers 200
with 120,000 routes each 150
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 34
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 35
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 36
• Off by default
neighbor x.x.x.x fall-over
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 37
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 38
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 39
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 40
• New commands
bgp nexthop trigger enable
bgp nexthop trigger delay <0-100>
show ip bgp attr next-hop ribfilter
debug ip bgp events nexthop
debug ip bgp rib-filter
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 41
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 42
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 44
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 45
R2 R1 R3,R1 R4,R1
R3 R1 R2,R1 R4,R1
R4 R1 R2,R1 R3,R1
Withdraw
Denied Update
Update
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 46
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 47
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 48
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 49
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 50
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 51
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 52
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 53
High Utilization
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 54
• Why?
This could be for several reasons
High route churn is the most likely
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 55
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 56
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 58
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 59
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 60
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 61
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 62
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 63
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 64
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 65
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 66
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 67
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 68
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 69
Community Set 4
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 70
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 71
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 72
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 73
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 74
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 75
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 76
RRC
Set: Next-Hop-Self
• Router C A
RRC
• Router D
P
G
BGP Next-Hop: Router E
eB
Local Next-Hop: Router C E
• Router E
BGP Next-Hop: Router A
Local Next-Hop: Router A
Set: Next-Hop-Self
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 77
This results in a
permanent routing loop eB
G
P
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 78
E advertises 10.1.1.0/24 5 5
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 79
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 80
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 81
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 82
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 83
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 84
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 85
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 86
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 87
Path 1
65100
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 88
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 89
10.1.1.0/24
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 90
BRKRST-3320
14702_05_2008_x1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 92