Enable monitoring and analysis of BGP version changes over specified fixed intervals for diagnostic and troubleshooting purposes.
This task helps you analyze BGP version changes over fixed time intervals, categorizing them by neighbor IP, VRF, and address family (AFI). Use these steps to gain visibility into the frequency and source of version changes, which may indicate network events, configuration changes, or route instabilities.
Before you begin
Ensure you have appropriate access rights to run the show bgp memory history command on the device.
Follow these steps to monitor BGP version-rate statistics:
Procedure
|
1. |
Use the show bgp sessions version-rate command to o obtain a detailed analysis of BGP version changes across specified intervals;
Example:
Router# show bgp sessions version-rate
Thu Nov 2 11:40:41.107 IST
Interval definition(s):
Interval Duration (min) Start time End time
Live 5 Nov 2 11:37:22.029 Nov 2 11:40:41.413
1 5 Nov 2 11:32:22.029 Nov 2 11:37:22.029
2 15 Nov 2 11:22:22.029 Nov 2 11:37:22.029
3 30 Nov 2 10:52:22.027 Nov 2 11:22:22.027
Neighbor VRF AFI Total Live
Total Reach UnReach
---------------------------------------------------------------------------------
10.10.10.1 default All 5 0 0 0
10.10.10.1 IPv4 Unicast 5 0 0 0
192.168.0.5 default All 606 0 0 0
192.168.0.5 IPv4 Unicast 63 0 0 0
192.168.0.5 VPNv4 Unicast 240 0 0 0
192.168.0.5 IPv6 Labeled-unicast 63 0 0 0
192.168.0.5 VPNv6 Unicast 240 0 0 0
192.168.0.5 RT Constraint 0 0 0 0
10:10:10::1 default All 5 0 0 0
10:10:10::1 IPv6 Unicast 5 0 0 0
10.0.1.1 1 All 5 0 0 0
10.0.1.1 IPv4 Unicast 5 0 0 0
10:0:1::1 1 All 5 0 0 0
/* The output was too wide, so it was segmented; the below segment continues from above.
*/
Interval 1 Interval 2 Interval 3 Spk AS
Total Reach UnReach Total Reach UnReach Total Reach UnReach
---------------------------------------------------------------------
5 5 0 5 5 0 0 0 0 0 200
5 5 0 5 5 0 0 0 0
282 282 0 282 282 0 0 0 0 0 100
31 31 0 31 31 0 0 0 0
110 110 0 110 110 0 0 0 0
31 31 0 31 31 0 0 0 0
110 110 0 110 110 0 0 0 0
0 0 0 0 0 0 0 0 0
5 5 0 5 5 0 0 0 0 0 200
5 5 0 5 5 0 0 0 0
0 0 0 0 0 0 0 0 0 0 200
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 200
/* The output was too wide, so it was segmented; the below segment continues from above.
*/
InQ OutQ NBRState NSRState
-----------------------------
0 0 Established NSRReady
0 0 Established NSRReady
0 0 Established NSRReady
0 0 Established NSRReady
0 0 Established NSRReady
The output displays interval definitions, neighbor information (IP, VRF, AFI), and version change statistics categorized by interval (e.g., 5, 15, 30 minutes). It includes detailed breakdowns by traffic type and source.
The show command output categorizes changes by neighbor IP addresses, VRFs, and AFIs, such as IPv4 Unicast and VPNv4 Unicast, facilitating the analysis of traffic types and identification of version number fluctuation origins.
|
|
2. |
Use the show bgp sessions version-rate live command to view the real-time BGP session version-rate statistics, capturing changes within the most recent 5-minute interval across all BGP neighbors and address families.
Example:
Router# show bgp sessions version-rate live
Thu Nov 2 11:40:48.314 IST
Interval definition(s):
Interval Duration (min) Start time End time
Live 5 Nov 2 11:37:22.029 Nov 2 11:40:48.610
Neighbor VRF AFI Total Live Spk
Total Reach Unreach
---------------------------------------------------------------------------------
10.10.10.1 default All 5 0 0 0 0
10.10.10.1 IPv4 Unicast 5 0 0 0
192.168.0.5 default All 606 0 0 0 0
192.168.0.5 IPv4 Unicast 63 0 0 0
192.168.0.5 VPNv4 Unicast 240 0 0 0
192.168.0.5 IPv6 Labeled-unicast 63 0 0 0
192.168.0.5 VPNv6 Unicast 240 0 0 0
192.168.0.5 RT Constraint 0 0 0 0
10:10:10::1 default All 5 0 0 0 0
10:10:10::1 IPv6 Unicast 5 0 0 0
10.0.1.1 1 All 5 0 0 0 0
10.0.1.1 IPv4 Unicast 5 0 0 0
10:0:1::1 1 All 5 0 0 0 0
/* The output was too wide, so it was segmented; the below segment continues from above.
*/
AS InQ OutQ BRState NSRState
---------------------------------------
200 0 0 Established NSRReady
100 0 0 Established NSRReady
200 0 0 Established NSRReady
200 0 0 Established NSRReady
200 0 0 Established NSRReady
The command reports current version changes and session metrics, including total version changes, reachability, speaker ID, AS number, queue sizes, and session states.
This provides a concise snapshot of BGP session activity and health.
|
|
3. |
Use the show bgp sessions version-rate brief command to view concise information only for the "Live" interval, which is typically the most recent 5-minute window.
Example:
Router# show bgp sessions version-rate brief live
Thu Nov 2 11:40:55.743 IST
Interval definition(s):
Interval Duration (min) Start time End time
Live 5 Nov 2 11:37:22.029 Nov 2 11:40:56.059
Neighbor VRF Spk AS InQ OutQ NBRState NSRState Total Live
10.10.10.1 default 0 200 0 0 Established NSRReady 5 0
192.168.0.5 default 0 100 0 0 Established NSRReady 606 0
10:10:10::1 default 0 200 0 0 Established NSRReady 5 0
10.0.1.1 1 0 200 0 0 Established NSRReady 5 0
10:0:1::1 1 0 200 0
The output focuses exclusively on real-time or near real-time BGP version rate statistics, showing only the "Live" interval column next to the "Total," without historical interval details.
|
You can monitor and analyze BGP version changes in detail using both historical intervals and real-time snapshots, categorized by neighbor, VRF, and AFI. This facilitates early detection of route instability, excessive churn, or underlying network issues.
What to do next
Review the output for any unexpected spikes or patterns in version changes. Investigate specific neighbors or intervals as needed for further troubleshooting or optimization.