This post based on my personal curiousity about BGP table version
There is no BGP protocols on both routers,
BGP1#sh ip bgp
% BGP not active
BGP1
After turning-up BGP, let’s take a look BGP table version on router BGP1,
BGP1#sh ip bgp summary
BGP router identifier 10.1.1.1, local AS number 1
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.1.2 4 2 3 3 1 0 0 00:00:35 0
BGP1#sh ip bgp
BGP1#
Let’s advertised prefix 110.1.1.0/24 and 120.1.1.0/24 from router BGP2,
BGP2#sh run | i ip route
ip route 110.1.1.0 255.255.255.0 Null0
ip route 120.1.1.0 255.255.255.0 Null0
BGP2#sh run | s router bgp
router bgp 2
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.1.1.1 remote-as 1
!
address-family ipv4
no synchronization
network 110.1.1.0 mask 255.255.255.0
network 120.1.1.0 mask 255.255.255.0
neighbor 10.1.1.1 activate
neighbor 10.1.1.1 soft-reconfiguration inbound
no auto-summary
exit-address-family
BGP2#
Again, pay attention to BGP table version on router BGP1,
BGP1#sh ip bgp summary
BGP router identifier 10.1.1.1, local AS number 1
BGP table version is 2, main routing table version 2
1 network entries using 120 bytes of memory
1 path entries using 52 bytes of memory
1/1 BGP path/bestpath attribute entries using 124 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 320 total bytes of memory
BGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.1.2 4 2 9 6 2 0 0 00:03:16 1
BGP1#sh ip bgp
BGP table version is 2, local router ID is 10.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Weight Path
*> 110.1.1.0/24 10.1.1.2 0 0 2 i
BGP1#
We can see, BGP table version is increasing to ’2′. With prefix 110.1.1.0/24 add to this table. So we can assure, after prefix 120.1.1.0/24 being added to BGP table, than the version number will change to ’3′. Take a look at below capture,
BGP1#sh ip bgp summary
BGP router identifier 10.1.1.1, local AS number 1
BGP table version is 3, main routing table version 3
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory
1/1 BGP path/bestpath attribute entries using 124 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 492 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.1.2 4 2 15 11 3 0 0 00:08:08 2
BGP1#sh ip bgp
BGP table version is 3, local router ID is 10.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Weight Path
*> 110.1.1.0/24 10.1.1.2 0 0 2 i
*> 120.1.1.0/24 10.1.1.2 0 0 2 i
BGP1#
How about if we delete prefix 110.1.1.0/24 from router BGP2 advertisement, is BGP table version will decreasing ? The answer is no, it will keep increasing to ’4′.
BGP1#sh ip bgp summary
BGP router identifier 10.1.1.1, local AS number 1
BGP table version is 4, main routing table version 4
1 network entries using 120 bytes of memory
1 path entries using 52 bytes of memory
1/1 BGP path/bestpath attribute entries using 124 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 320 total bytes of memory
BGP activity 2/0 prefixes, 2/1 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.1.2 4 2 19 13 4 0 0 00:10:03 1
BGP1#sh ip bgp
BGP table version is 4, local router ID is 10.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Weight Path
*> 120.1.1.0/24 10.1.1.2 0 0 2 i
BGP1#
As long as BGP is running, BGP table version will always incrementing as a record due to changes of prefixes which being advertised, delete from advertisement, or prefixes being influence for BGP metric customized. I hope this short lab will enhance our understanding (especially mine) regarding BGP table version






