Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task IDs. If the user
group assignment is preventing you from using a command, contact your AAA administrator for assistance.
If the minimum
interval is changed using the
bfd
minimum-interval command, the new parameter updates all affected
BFD sessions under the command mode in which the minimum interval was changed.
If the multiplier is
changed using the
bfd multiplier
command, the new parameter is used to update only the BFD sessions associated
with the affected neighbor gets affected.
The assumption is
that when BFD fast-detect is enabled under neighbor address family independent
configuration, the values for the
multiplier
and
minimum-interval values are always derived from
the per-neighbor values if they are configured; otherwise, they are to be taken
from the global BGP configuration mode. In the event that this has not been
explicitly stated, then these values are taken to be the default values. Also,
the
bfd
arguments can be configured under neighbor-group and session-group and the
inheritance adheres to the standard way of BGP configuration inheritance.
Accordingly, there
are four cases in which bfd-fast detect is enabled.
This is shown in
table below where the BFD value is either multiplier or minimum-interval. Local
indicates per NBR value, global is the BGP global value.
BFD
value (global)
|
BFD
value (local)
|
Result
|
Yes
|
Yes
|
BFD
value (local)
|
Yes
|
No
|
BFD
value (global)
|
No
|
Yes
|
BFD
value (local)
|
No
|
No
|
BFD
value (default)
|
Examples
The following
example shows how to specify the BFD session's multiplier value for the
neighbor:
RP/0/RSP0/CPU0:router# configure
RP/0/RSP0/CPU0:router(config)# router bgp 65000
RP/0/RSP0/CPU0:router(config-bgp-nbrgrp)#neighbor 3.3.3.2
RP/0/RSP0/CPU0:router(config-bgp-nbr)# bfd minimum-interval 311
RP/0/RSP0/CPU0:router(config-bgp-nbr)# bfd multiplier 7
RP/0/RSP0/CPU0:router(config-bgp-nbr)# neighbor 5.5.5.2
RP/0/RSP0/CPU0:router(config-bgp-nbr)# bfd minimum-interval 318
RP/0/RSP0/CPU0:router(config-bgp-nbr)# bfd multiplier 4
RP/0/RSP0/CPU0:router(config-bgp-nbr)# vrf one
RP/0/RSP0/CPU0:router(config-bgp-vrf)# neighbor 3.12.1.2
RP/0/RSP0/CPU0:router(config-bgp-vrf-nbr)# bfd minimum-interval 119
RP/0/RSP0/CPU0:router(config-bgp-vrf-nbr)# bfd multiplier 10
RP/0/RSP0/CPU0:router(config-bgp-vrf-nbr)# commit
RP/0/RSP0/CPU0:router# show bfd session
Interface Dest Addr Local det time(int*mult) State
Echo Async
-------------------- --------------- ---------------- ---------------- ---------
Gi0/2/0/2 3.3.3.2 2177ms(311ms*7) 14s(2s*7) UP
Gi0/2/0/2.1 3.12.1.2 1190ms(119ms*10) 20s(2s*10) UP
PO0/3/0/6 5.5.5.2 1272ms(318ms*4) 8s(2s*4) UP
RP/0/RSP0/CPU0:router# show bfd session detail
I/f: GigabitEthernet0/2/0/2, Location: 0/2/CPU0, dest: 3.3.3.2, src: 3.3.3.1
State: UP for 0d:0h:4m:44s, number of times UP: 1
Received parameters:
Version: 1, desired tx interval: 2 s, required rx interval: 2 s
Required echo rx interval: 1 ms, multiplier: 7, diag: None
My discr: 524295, your discr: 524296, state UP, D/F/P/C/A: 0/0/0/1/0
Transmitted parameters:
Version: 1, desired tx interval: 2 s, required rx interval: 2 s
Required echo rx interval: 1 ms, multiplier: 7, diag: None
My discr: 524296, your discr: 524295, state UP, D/F/P/C/A: 0/0/0/1/0
Timer Values:
Local negotiated async tx interval: 2 s
Remote negotiated async tx interval: 2 s
Desired echo tx interval: 311 ms, local negotiated echo tx interval: 311 ms
Echo detection time: 2177 ms(311 ms*7), async detection time: 14 s(2 s*7)
Local Stats:
Intervals between async packets:
Tx: Number of intervals=100, min=1664 ms, max=2001 ms, avg=1838 ms
Last packet transmitted 313 ms ago
Rx: Number of intervals=100, min=1662 ms, max=2 s, avg=1828 ms
Last packet received 1615 ms ago
Intervals between echo packets:
Tx: Number of intervals=100, min=181 ms, max=462 ms, avg=229 ms
Last packet transmitted 289 ms ago
Rx: Number of intervals=100, min=178 ms, max=461 ms, avg=229 ms
Last packet received 287 ms ago
Latency of echo packets (time between tx and rx):
Number of packets: 100, min=0 us, max=4 ms, avg=860 us
Session owner information:
Client Desired interval Multiplier
---------------- -------------------- --------------
bgp-0 311 ms 7
I/f: GigabitEthernet0/2/0/2.1, Location: 0/2/CPU0, dest: 3.12.1.2, src: 3.12.1.1
State: UP for 0d:0h:4m:44s, number of times UP: 1
Received parameters:
Version: 1, desired tx interval: 2 s, required rx interval: 2 s
Required echo rx interval: 1 ms, multiplier: 10, diag: None
My discr: 524296, your discr: 524295, state UP, D/F/P/C/A: 0/0/0/1/0
Transmitted parameters:
Version: 1, desired tx interval: 2 s, required rx interval: 2 s
Required echo rx interval: 1 ms, multiplier: 10, diag: None
My discr: 524295, your discr: 524296, state UP, D/F/P/C/A: 0/0/0/1/0
Timer Values:
Local negotiated async tx interval: 2 s
Remote negotiated async tx interval: 2 s
Desired echo tx interval: 119 ms, local negotiated echo tx interval: 119 ms
Echo detection time: 1190 ms(119 ms*10), async detection time: 20 s(2 s*10)
Local Stats:
Intervals between async packets:
Tx: Number of intervals=100, min=1664 ms, max=2001 ms, avg=1838 ms
Last packet transmitted 314 ms ago
Rx: Number of intervals=100, min=1662 ms, max=2 s, avg=1828 ms
Last packet received 1616 ms ago
Intervals between echo packets:
Tx: Number of intervals=100, min=120 ms, max=223 ms, avg=125 ms
Last packet transmitted 112 ms ago
Rx: Number of intervals=100, min=119 ms, max=223 ms, avg=125 ms
Last packet received 110 ms ago
Latency of echo packets (time between tx and rx):
Number of packets: 100, min=0 us, max=2 ms, avg=850 us
Session owner information:
Client Desired interval Multiplier
---------------- -------------------- --------------
bgp-0 119 ms 10
I/f: GigabitEthernet0/3/0/6, Location: 0/3/CPU0, dest: 5.5.5.2, src: 5.5.5.1
State: UP for 0d:0h:4m:50s, number of times UP: 1
Received parameters:
Version: 1, desired tx interval: 2 s, required rx interval: 2 s
Required echo rx interval: 1 ms, multiplier: 4, diag: None
My discr: 786436, your discr: 786433, state UP, D/F/P/C/A: 0/0/0/1/0
Transmitted parameters:
Version: 1, desired tx interval: 2 s, required rx interval: 2 s
Required echo rx interval: 1 ms, multiplier: 4, diag: None
My discr: 786433, your discr: 786436, state UP, D/F/P/C/A: 0/0/0/1/0
Timer Values:
Local negotiated async tx interval: 2 s
Remote negotiated async tx interval: 2 s
Desired echo tx interval: 318 ms, local negotiated echo tx interval: 318 ms
Echo detection time: 1272 ms(318 ms*4), async detection time: 8 s(2 s*4)
Local Stats:
Intervals between async packets:
Tx: Number of intervals=100, min=1663 ms, max=2 s, avg=1821 ms
Last packet transmitted 1740 ms ago
Rx: Number of intervals=100, min=1663 ms, max=2001 ms, avg=1832 ms
Last packet received 160 ms ago
Intervals between echo packets:
Tx: Number of intervals=100, min=181 ms, max=484 ms, avg=232 ms
Last packet transmitted 44 ms ago
Rx: Number of intervals=100, min=179 ms, max=484 ms, avg=232 ms
Last packet received 41 ms ago
Latency of echo packets (time between tx and rx):
Number of packets: 100, min=0 us, max=3 ms, avg=540 us
Session owner information:
Client Desired interval Multiplier
---------------- -------------------- --------------
bgp-0 318 ms 4
RP/0/RSP0/CPU0:router# show bgp nei 3.3.3.2
BGP neighbor is 3.3.3.2
Remote AS 500, local AS 65000, external link
Remote router ID 16.0.0.1
BGP state = Established, up for 00:05:01
BFD enabled (session up): mininterval: 311 multiplier: 7
Last read 00:00:56, hold time is 180, keepalive interval is 60 seconds
Precedence: internet
Neighbor capabilities:
Route refresh: advertised and received
4-byte AS: advertised and received
Address family IPv4 Unicast: advertised and received
Received 8 messages, 0 notifications, 0 in queue
Sent 9 messages, 1 notifications, 0 in queue
Minimum time between advertisement runs is 30 seconds
For Address Family: IPv4 Unicast
BGP neighbor version 2
Update group: 0.2
AF-dependant capabilities:
Graceful Restart Capability advertised and received
Neighbor preserved the forwarding state during latest restart
Local restart time is 120, RIB purge time is 600 seconds
Maximum stalepath time is 360 seconds
Remote Restart time is 120 seconds
Route refresh request: received 0, sent 0
Policy for incoming advertisements is pass-all
Policy for outgoing advertisements is pass-all
1 accepted prefixes, 1 are bestpaths
Prefix advertised 1, suppressed 0, withdrawn 0, maximum limit 524288
Threshold for warning message 75%
An EoR was not received during read-only mode
Connections established 1; dropped 0
Last reset 00:06:58, due to User clear requested (CEASE notification sent - administrative reset)
Time since last notification sent to neighbor: 00:06:58
Error Code: administrative reset
Notification data sent:
None
RP/0/RSP0/CPU0:router# show bgp nei 5.5.5.2
BGP neighbor is 5.5.5.2
Remote AS 500, local AS 65000, external link
Remote router ID 16.0.0.1
BGP state = Established, up for 00:05:04
BFD enabled (session up): mininterval: 318 multiplier: 4
Last read 00:00:58, hold time is 180, keepalive interval is 60 seconds
Precedence: internet
Neighbor capabilities:
Route refresh: advertised and received
4-byte AS: advertised and received
Address family IPv4 Unicast: advertised and received
Received 8 messages, 0 notifications, 0 in queue
Sent 9 messages, 1 notifications, 0 in queue
Minimum time between advertisement runs is 30 seconds
For Address Family: IPv4 Unicast
BGP neighbor version 2
Update group: 0.2
AF-dependant capabilities:
Graceful Restart Capability advertised and received
Neighbor preserved the forwarding state during latest restart
Local restart time is 120, RIB purge time is 600 seconds
Maximum stalepath time is 360 seconds
Remote Restart time is 120 seconds
Route refresh request: received 0, sent 0
Policy for incoming advertisements is pass-all
Policy for outgoing advertisements is pass-all
1 accepted prefixes, 0 are bestpaths
Prefix advertised 1, suppressed 0, withdrawn 0, maximum limit 524288
Threshold for warning message 75%
An EoR was not received during read-only mode
Connections established 1; dropped 0
Last reset 00:07:01, due to User clear requested (CEASE notification sent - administrative reset)
Time since last notification sent to neighbor: 00:07:01
Error Code: administrative reset
Notification data sent:
None
RP/0/RSP0/CPU0:router# show bgp vrf one nei 3.12.1.2
BGP neighbor is 3.12.1.2, vrf one
Remote AS 500, local AS 65000, external link
Remote router ID 16.0.0.1
BGP state = Established, up for 00:05:06
BFD enabled (session up): mininterval: 119 multiplier: 10
Last read 00:00:01, hold time is 180, keepalive interval is 60 seconds
Precedence: internet
Neighbor capabilities:
Route refresh: advertised and received
4-byte AS: advertised and received
Address family IPv4 Unicast: advertised and received
Received 9 messages, 0 notifications, 0 in queue
Sent 9 messages, 1 notifications, 0 in queue
Minimum time between advertisement runs is 0 seconds
For Address Family: IPv4 Unicast
BGP neighbor version 2
Update group: 0.2
AF-dependant capabilities:
Graceful Restart Capability advertised and received
Neighbor preserved the forwarding state during latest restart
Local restart time is 120, RIB purge time is 600 seconds
Maximum stalepath time is 360 seconds
Remote Restart time is 120 seconds
Route refresh request: received 0, sent 0
Policy for incoming advertisements is pass-all
Policy for outgoing advertisements is pass-all
1 accepted prefixes, 1 are bestpaths
Prefix advertised 0, suppressed 0, withdrawn 0, maximum limit 524288
Threshold for warning message 75%
An EoR was not received during read-only mode
Connections established 1; dropped 0
Last reset 00:07:04, due to User clear requested (CEASE notification sent - administrative reset)
Time since last notification sent to neighbor: 00:07:04
Error Code: administrative reset
Notification data sent:
None