BGP in 2019 – The BGP Table

By on 14 Jan 2020

Category: Tech matters

Tags: , , , ,


Blog home

It has become a tradition, or a habit, each January for me to report on the behaviour of the inter-domain routing system over the past year, looking in some detail at some metrics from the routing system that can show the essential shape and behaviour of the underlying interconnection fabric of the Internet. 

One reason why we are interested in the behaviour of the routing system is that at its heart it has no natural limitation. Our collective unease about routing relates to a potential scenario where every network decides to deaggregate their prefixes and announce only the most specific prefixes, or where every network applies routing configurations that are inherently unstable, and the routing system rapidly reverts into oscillating states that generate an overwhelming stream of routing updates into BGP. In such scenarios, the routing protocol we use — the Border Gateway Protocol, or BGP — will not help us by attempting to damp down the anomalies. Indeed, there is a very real prospect that in such scenarios the protocol behaviour of BGP could well amplify the behaviour!

Read: Happy Birthday BGP

BGP is an instance of a Bellman-Ford distance vector routing algorithm. This algorithm allows a collection of connected devices (BGP speakers) to each learn the relative topology of the connecting network. 

The basic approach of this algorithm is very simple: each BGP speaker tells all its other neighbours about what it has learned if the newly learned information alters the local view of the network. This is a lot like a social rumour network, where every individual who hears a new rumour immediately informs all their friends.

BGP works in a very similar fashion: each time a neighbour informs a BGP speaker about reachability to an IP address prefix, the BGP speaker compares this new reachability information against its stored knowledge that was gained from previous announcements from other neighbours. If this new information provides a better path to the prefix then the local speaker moves this prefix and associated next-hop forwarding decision to the local forwarding table and informs all its immediate neighbours of a new path to a prefix, implicitly citing itself as the next hop.

In addition, there is a withdrawal mechanism, where a BGP speaker determines that it no longer has a viable path to a given prefix, in which case it announces a ‘withdrawal’ to all its neighbours. When a BGP speaker receives a withdrawal, it stores the withdrawal against this neighbour. If the withdrawn neighbour happened to be the currently preferred next hop for this prefix, then the BGP speaker will examine its per-neighbour data sets to determine which stored announcement represents the best path from those that are still extant.

If it can find such an alternative path, it will copy this into its local forwarding table and announce this new preferred path to all its BGP neighbours. If there is no such alternative path, it will announce a withdrawal to its neighbours, indicating that it no longer can reach this prefix.

And that’s the quick summary of BGP.

What could possibly go wrong?

The first metric of interest is the sheer size of the routing tables. Each router needs to store a local database of all prefixes announced by each routing peer. In addition, conventional routing design places a complete set of ‘best’ paths into each line card and performs a lookup into this forwarding data structure for each packet.

This may not sound all that challenging until you do some basic calculations and work out that at 100Gbps (which is increasingly common these days) that means that a single such ‘wire’ could present one valid 64 octet IP packet every 5 nanoseconds. Performing a lookup into a data structure of around one million entries for an imprecise match of a 32-bit value within 5 nanoseconds represents an extremely challenging silicon design problem. Even with an optimally-balanced binary search structure that’s a minimum of 10 comparison operations, and as they are sequential. The individual comparisons need to be performed within half a nanosecond. The larger the routing search space, the harder the problem!

Secondly, there is the overall stability of the system. Processing a routing update requires several lookups into local data structures as well as local processing steps.

Each router has a finite capacity to process updates, and once the update rate exceeds this local processing capability, then the router will start to queue up unprocessed updates. In the worst case, the router will start to lag in real time, so that the information a BGP speaker is propagating reflects a past local topology, not necessarily the current local topology. If this lag continues then at some point unprocessed updates may be dropped from the queue.

BGP has no inherent periodic refresh capability; so when information is dropped, the router and its neighbours fall out of sync with the network topology. At its most benign, the router will advertise ‘ghost’ routes where the prefix is no longer reachable, yet the out-of-sync router will continue to advertise reachability. At its worst, the router will set up a loop condition and as traffic enters the loop it will continue to circulate through the loop until the packet’s TTL expires. This may cause saturation of the underlying transmission system and trigger further outages which, in turn, may add to the routing load.

The critical metrics we are interested in are the size of the routing space and its level of updates, or ‘churn’.

The BGP measurement environment

In trying to analyse long baseline data series the ideal approach is to keep as much of the local data gathering environment as stable as possible. In this way, the changes that occur in the collected data reflect changes in the larger environment, as distinct from changes in the local configuration of the data collection equipment.

The measurement point being used is a BGP speaker configured within AS 131072. This AS generates no traffic and originates no routes in BGP. It’s a passive measurement point that has been logging all received BGP updates since 2007. The router is fed with a default-free eBGP feed from AS 4608, which is the APNIC network located in Australia, and AS 4777, which is the APNIC network located in Japan, for both IPv4 and IPv6 routes.

There is also no iBGP component in this measurement setup. While it has been asserted at various times that iBGP is a major contributor to BGP scalability concerns in BGP, the consideration here in trying to objectively measure this assertion is that there is no ‘standard’ iBGP configuration, and each network has its own rather unique configuration of Route Reflectors and iBGP peers. This makes it hard to generate a ‘typical’ iBGP load profile, let alone analyse the general trends in iBGP update loads over time.

In this study, the scope of attention is limited to a simple eBGP configuration that is likely to be found as a ‘stub’ AS at the edge of the Internet. This AS is not an upstream for any third party, it has no transit role and does not have a large set of BGP peers. It’s a simple view of the routing world that I see when I sit at an edge of the Internet.

The Data

The IPv4 routing table

Measurements of the size of the routing table have been taken regularly since the start of 1988, although highly detailed snapshots of the routing system only date back to early 1994. 

Figure 1 shows a rather unique picture of the size of the routing table, as seen by all the peers of the Route Views route collector on an hourly basis.

I should take a moment to mention the Route Views Project. It was originally intended to offer a multi-perspective real-time view of the inter-domain routing system, allowing network operators to examine in real-time the visibility of route objects from various points in the inter-domain topology.

What makes Route Views so unique is that it archives these routing tables every two hours and has done so for more than two decades. It also archives every BGP update message. This vast collection of data is a valuable research data set in its own right, and here we are just taking a tiny slice of this data set to look at longer-term growth trends.

The folk at the Route Views Project, with the support from the University of Oregon and the US National Science Foundation, should be commended for their efforts here. This is a very unique data set if you are interested in the evolution of the Internet over the years.


Several broader events are visible in the history of the routing table, such as the busting of the Internet bubble in 2001, and if one looks closely, the effects of the global financial crisis in 2009.

What is perhaps surprising is one ongoing event that is not visible in this plot: since 2011 the supply of IPv4 addresses has been progressively constrained as the free address pools of the various Regional Internet Registries have been exhausted. Yet there is no visible impact on the rate of growth of the number of announced prefixes in the global routing system since 2011. In terms of the size of the routing table, it’s as if the exhaustion of IPv4 addresses has not happened at all!

Figure 1 – IPv4 routing table since 1994 as seen by Route Views Peers.

BGP is not just a reachability protocol. Network operators can manipulate traffic paths using selective advertisement of more specific addresses, and allow BGP to be used as a traffic engineering tool.

These more specific advertisements often have a restricted propagation. This is evident in Figure 2, where I’ve combined the BGP RIB counts from both the RouteViews peers and the peers of the RIPE NCC’s Routing Information Service (RIS).

Figure 2 – IPv4 routing table 2017-2020, as seen by Route Views and RIS Peers.

There are two distinct bands in this plot, the upper band is the Route Views peers, and the lower band is generated by the RIS peers. The RIS peers, which are predominately located in Europe, appear to have 50,000 fewer prefixes, and cluster more tightly around their mean as compared to the set of Route Views peers. 

The other interesting point is that at the start of 2017 the reporting systems have a divergence of some 50,000 route entries, yet by the end of 2019 this divergence has increased to some 100,000 routing entries.

This illustrates an important principle in BGP, that there is no single authoritative view of the Internet’s inter-domain routing table – all views are in fact relative to the perspective of each BGP speaker. 

It also illustrates that at times the cause of changes in routing is not necessarily a change at the point of origination of the route which would be visible to all BGP speakers across the entire Internet, but it may well be a change in transit arrangements within the interior of the network that may expose or hide collections of routes.

The issue of the collective management of the routing system as a single entity could be seen as an instance of a ‘tragedy of the commons‘, where the self-interest of one actor in attempting to minimize its transit service costs becomes an incremental cost in the total routing load that is borne by other actors. To quote the Wikipedia article on this topic:

 “In absence of enlightened self-interest, some form of authority or federation is needed to solve the collective action problem.” 

This appears to be the case in the behaviour of the routing system, where there is an extensive reliance on enlightened self-interest to be conservative in one’s own announcements, and the actions of a small subset of actors are prominent because they fall well outside of the conventional conservative ‘norm’ of inter-domain routing practices.

The next collection of plots (Figures 3 through 12) show some of the vital statistics for IPv4 in BGP since the start of 2012 to the end of 2019.

Figure 3 – IPv4 BGP routing table size (RIB).
Figure 5 – IPv4 more specific announcements.
Figure 7 – IPv4 average announcement size.
Figure 9 – IPv4 average AS path length. 
Figure 11 – Transit vs total AS count.
Figure 4 – IPv4 announced address span.
Figure 6 – IPv4 relative proportion of more specific announcements.
Figure 8 – IPv4 prefix size counts.
Figure 10 – IPv4 AS count.
Figure 12 – AS connectivity degree.

Figure 3 shows the total number of routes in the routing table over this period. This is a classic ‘up and to the right’ Internet trajectory, but it should be noted that growth trends in the Internet today are strongly aligned to a quite modest linear growth model.

Over this period, we had the exhaustion of the general allocation IPv4 address space pools in IANA in January 2011, APNIC in April 2011 (serving the Asia Pacific region), in the RIPE NCC in September 2012 (serving Europe and the Middle East), LACNIC in May 2014 (serving Latin America and the Caribbean), and ARIN in September 2015 (serving North America and some Caribbean islands). The residual ‘Last /8 pool’ used by the RIPE NCC was exhausted in late December 2019.

Only AFRINIC and APNIC still have available IPv4 addresses, although both of these RIRs will likely exhaust these residual address pools in 2020 (Figure 13).

Figure 13 – IPv4 allocation pool consumption per RIR.

The eight-year period since the start of 2012 has seen the span of addresses advertised in the routing system slowing down (Figure 4). However, at the same time, there has been a consistent level of growth in the number of entries in the routing table. 

The result of these two factors is that the average announcement in the IPv4 routing table is spanning fewer addresses. Or, to put it another way, the granularity of the IPv4 routing space is getting finer. 

As Figure 7 shows, the average BGP announcement size has dropped from 7,000 host addresses at the start of 2012 to 3,500 addresses at the end of 2019. These days some 90% of all announced prefixes are of size /20 or smaller. 

The topology of the network has remained relatively consistent, with the growth in the Internet being seen as the increasing density of interconnectivity, rather than through extending transit paths, so the average AS path length has remained relatively constant at 5.7 for this period for this observation AS (Figure 8).

The year-by-year summary of the IPv4 BGP network over the 2017-2020 period is shown in Table 1.

Jan-17 Jan-18 Jan-19 Jan-20 2017 growth 2018 growth 2019 growth
Prefix Count 646,000 699,000 760,000 814,000 8% 9% 7%
Root Prefix 304,000 328,000 353,000 387,000 8% 8% 10%
More Specs 342,000 371,000 407,000 427,000 8% 10% 5%
Address Span (/8s) 169.0 170.5 169.3 169.8 1% -1% 0%
AS Count 56,100 59,700 63,100 66,800 6% 6% 6%
Transit AS 7,800 8,500 9,000 9,6000 9% 6% 7%
Stub AS 48,300 51,200 54,100 57,200 6% 6% 6%

Table 1 – IPv4 BGP table growth profile.

In terms of advertised prefixes, the size of the routing table continues to grow, but the 7% recorded through 2019 is slightly lower than the numbers seen for the previous two years. This observation supports a linear growth model of the routing table size, with a growth rate of an average of 148 net increased prefixes per day for the year.

The effects of increasing scarcity of IPv4 addresses is evident, with the span of advertised network increasing by a net of some 8 million end addresses through the year. The number of routed stub AS numbers (new edge networks) grew by 6% in 2018, which is much the same as the prior two years.

It appears that the drivers for growth in the IPv4 network in 2019 are now quite modest, although at 6% the number is higher than the human population growth rate of 1%. We are likely seeing two factors at play. The first is the saturation of many Internet markets so that the amount of ‘greenfield’ expansion is far lower than, say, a decade ago. Secondly, we are seeing considerable concentration on the service market, where the level of use of addresses is vastly greater by both content and service publishers and by end clients. The service and client numbers may be growing, but that does not necessarily imply the use of more addresses or more routing table entries.

As IPv4 addresses are being placed under increasingly higher scarcity pressure, the compensatory move is that the advertised address space is divided up into smaller units, and presumably, this routing change is accompanied by the increasing use of IPv4 Network Address Translation to accommodate the underlying network’s growth pressures.

The overall conclusions from this collection of observations are that the IPv4 network continues to grow, but as the supply of new addresses is slowing down, what is now becoming evident is the more efficient use of addresses, which results in the granularity of the IPv4 interdomain routing system becoming finer.

The density of inter-AS interconnection continues to increase. The growth of the Internet is not ‘outward growth from the edge’ as the network is not getting any larger in terms of average AS path change. Instead, the growth is happening by increasing the density of the network by attaching new networks into the existing transit structure and peering at established exchange points. 

This makes for a network whose diameter, measured in AS hops, is essentially static, yet whose density, measured in terms of prefix count, AS interconnectivity and AS Path diversity, continues to increase. This denser mesh of interconnectivity could be potentially problematical in terms of convergence times if the BGP routing system used a dense mesh of peer connectivity, but the topology of the network continues along a clustered hub and spoke model, where a small number of transit ASes directly service a large number of stub edge networks. This implies that the performance of BGP in terms of time and updates required to reach convergence continues to be relatively static.

The IPv6 BGP table data

A similar exercise has been undertaken for IPv6 routing data. There is considerable diversity in the number of routes seen at various vantage points in the Internet, as shown when looking at the prefix counts advertised by all the peers of Route Views (Figure 14).

Figure 14 – IPv6 routing table since 2004 as seen by Route Views Peers.

A more detailed look at 2018 and 2019 incorporating both Route Views and RIS (Figure 15) shows that in IPv6 there is no visible disparity in the route sets announced by RIS peers as compares to Route Views peers. 

It is also evident that there increasing diversity between various BGP views as to what constitutes the ‘complete’ IPv6 route set, and the variance at the end of 2018 now spans some 8,000 prefix advertisements.

Figure 15 – IPv6 routing table 2018-2020 as seen by Route Views and RIS Peers.

The comparable profile figures for the IPv6 Internet are shown in Figures 16 through 25.

Figure 16 – IPv6 BGP routing table size (RIB).
Figure 18 – IPv6 more specific prefix advertisements.
Figure 20 – IPv6 average prefix size.
Figure 22 – IPv6 average AS path length.
Figure 24 – IPv6 transit AS count. 
Figure 17 – Announced Address Span (/32s).
Figure 19 – IPv6 relative proportion of more specific announcements.
Figure 21 – IPv6 prefix size counts.
Figure 23 – IPv6 AS count.
Figure 25 – IPv6 AS connectivity degree.

Routing advertisements of /48s are the most prevalent prefix size in the IPv6 routing table some 48% of all prefixes, and 75% of the table entries are composed of /48, /32, /44, and /40 prefixes. RIR allocations of IPv6 addresses show a different pattern, with 75% of address allocations are either a /32 (52%) or a /29 (24%). Some 18% of allocations are a /48. What is evident is that there is no clear correlation between an address allocation size and the advertised address prefix size.

Why is the IPv6 routing table being fragmented so extensively? 

The conventional response is that this is due to the use of more specific route entries to perform traffic engineering. However given that IPv6 traffic volumes still tend to be far lower than IPv4 volumes for most networks, this rationale probably does not apply in all cases.

Another possible reason is the use of more specifics to counter efforts of route hijacking. This also has issues, given that it appears that most networks appear to accept a /64 prefix, and the deaggregation prefix is typically a /48, so as a counter-measure for more specific route hijacks it may not be all that effective.

This brings up the related topic of the minimum accepted route object size. The common convention in IPv4 is that a /24 prefix advertisement will propagate across the entire IPv4 default-free zone. More complex minimum size rules have largely fallen into disuse as address trading appears to be slicing up many of the larger address blocks into smaller sizes.

If a /24 is the minimum accepted route prefix size in IPv4, what is the comparable size in IPv6? There appears to be no common consensus position here, and the default is to use no minimum size filter. In theory that would imply that a /128 would be accepted across the entire IPv6 default-free zone, but a more pragmatic observation is that a /32 would be assuredly accepted by all networks, and it appears that many network operators believe that a /48 is also generally accepted. 

Given that a /48 is the most common prefix size in today’s IPv6 network this belief appears to be the case. However, we also see prefixes smaller in size than a /48 in the routing table with /52, /56, /62 and /64 prefixes being the most common. 

The summary of the IPv6 BGP profile for period 2017 through to the start of 2020 is shown in Table 2. While the routing table grew significantly over 2018, the majority of that growth was in the announcement of more specifics rather than in announcing root address prefixes.

Jan-17 Jan-18 Jan-19 Jan-20 2017 growth 2018 growth 2019 growth
Prefix Count 34,800 47,700 62,400 79,400 31% 37% 27%
Root Prefix 22,900 28,200 35,400 42,300 23% 26% 19%
More Specs 11,900 17,500 27,000 37,000 47% 54% 37%
Address Span (/32s) 76,600 102,700 124,900 133,800 34% 22% 7%
AS Count 12,700 14,500 16,470 18,600 14% 14% 13%
Transit AS 2,400 2,600 3,190 3,590 8% 23% 13%
Stub AS 10,300 11,900 13,280 15,060 16% 12% 13%

Table 2 – IPv6 BGP table growth profile.

The Predictions

What can this data from 2019 tell us in terms of projections of the future of BGP in terms of BGP table size?

Forecasting the IPv4 BGP table

Figure 26 shows the data set for BGP from January 2012 until January 2020. This plot also shows the fit of these most recent four years of data to various growth models. 

The first-order differential, or the rate of growth, of the BGP routing table, is shown in Figure 26. The seven-year average rate of growth of the routing table appears to be rising slowly from 140 to 160 additional entries per day. This data suggests that a reasonable prediction of IPv4 BGP table size can be generated using a linear growth model of approximately 150 additional routing entries per day (Figure 27).

Figure 26 – IPv4 BGP table 2012-2020.
Figure 27 – First order differential of smoothed IPv4 BGP table size – 2012-2020.

With the caveat that this prediction assumes that tomorrow will be a lot like today and that the influences that shape tomorrow have already shaped today, then it’s reasonable to predict that the IPv4 routing table five years from now, at the start of 2025, will contain an additional 250,000 entries, making a total for IPv4 of some 1,079,000 entries in the BGP IPv4 routing table at that time.

IPv4 Table IPv4 Prediction
Jan 2015 530,000
Jan 2016 587,000
Jan 2017 646,000
Jan 2018 699,000
Jan 2019 760,000
Jan 2020 814,000 808,000
Jan 2021 862,000
Jan 2022 916,000
Jan 2023 970,000
Jan 2024 1,024,000
Jan 2025 1,079,000

Table 3 – IPv4 BGP table size prediction.

Figure 28 – Linear prediction of IPv4 table growth.

It’s difficult to portray this prediction as reasonable under the current circumstances. Given that that last ‘normal’ year of supply of available IPv4 address to fuel continued growth in the IPv4 Internet was now a decade ago in 2010, why has the growth of the IPv4 routing table persisted with such regularity?

It should be remembered that a dual-stack Internet is not the objective in this time of transitioning the Internet to IPv6. The ultimate objective of the entire transition process is to support an IPv6-only network. An important part of the process is the protocol negotiation strategy used by dual-stack applications, where IPv6 is the preferred protocol wherever reasonably possible. In a world of ubiquitous dual-stack deployment, all applications will prefer to use IPv6, and the expectation is that in such a world the use of IPv4 would rapidly plummet. The challenge for the past decade or more has been in attempting to predict when in time that tipping point that causes demand for IPv4 to plummet may occur. The assumption behind these predictions for some twenty years now is that such a tipping point is at least five more years in the future. This may not be a reasonable assumption, but it’s been our informal working mode of operation through that period.

Forecasting the IPv6 BGP table

The same technique can be used for the IPv6 routing table. Figure 29 shows the data set for BGP from January 2010 until January 2019.

Figure 29 – IPv6 BGP table size from January 2012.

The first-order differential, or the rate of growth of the IPv6 BGP routing table, is shown in Figure 30. The number of additional routing entries has grown from 10 new entries per day at the start of 2012 to a peak of over 60 new entries per day in 2019. Obviously, this is far lower than the equivalent figure in the IPv4 domain, which is growing by some 150 new entries per day, but it does show a consistent level of increasing growth.

This implies that a linear growth model is inappropriate for modelling growth in IPv6. A better fit to the data is a compound growth model, with a doubling factor of some 24 months. It is possible to fit a linear model to the first-order differential of the data, which can be used to derive an O(2) polynomial fit to the original data. The fit of a linear, O(2) polynomial and an exponential model of projected IPv6 table size is also shown in Figure 31.

Figure 30 – First order differential of IPv6 BGP table size.

The projections for the IPv6 table size are shown in Table 4.

IPv6 Table IPv6 Prediction (linear) IPv6 Prediction (exponential)
Jan 2015 21,000
Jan 2016 27,000
Jan 2017 37,000
Jan 2018 45,000
Jan 2019 62,000
Jan 2020 79,000 80,000 80,000
Jan 2021 96,000 106,000
Jan 2022 112,000 140,000
Jan 2023 128,000 184,000
Jan 2024 144,000 242,000
Jan 2025 160,000 318,000

Table 4 – IPv6 BGP table size prediction.

The linear and exponential projections in Table 4 provide a reasonable estimate of the low- and high-bounds of the growth of the IPv6 BGP routing table in the coming years.

Figure 31 — Projections of IPv6 BGP table size.

If IPv6 continues to grow exponentially over the next five years, the size of the IPv6 routing table will be approaching third of a million entries. In hardware terms, an IPv6 address prefix entry takes four-times the memory of an IPv4 prefix, so the memory demands of the IPv6 forwarding table will exceed that used by the IPv4 forwarding table at this time.


These predictions for the routing system are highly uncertain. The correlation between network deployments and routing advertisements has been disrupted by the hiatus in the supply of IPv4 addresses, causing more recent deployments to make extensive use of various forms of address sharing technologies.

While a number of providers have made significant progress in public IPv6 deployments for their respective customer base, the majority of the Internet user base (some three-quarters of the visible user base) is still exclusively using IPv4 as of the end of 2019 (Figure 32).

Figure 32 — IPv6 deployment 2012-2020.

The predictions as to the future profile of the routing environment for IPv4 and IPv6 that use extrapolation from historical data can only go so far in providing a coherent picture for the near-term future. Despite this uncertainty, nothing in this routing data indicates any serious cause for alarm in the current trends of growth in the routing system. There is no evidence of the imminent collapse of BGP.

None of the BGP metrics indicate that we are seeing such an explosive level of growth in the routing system that it will fundamentally alter the viability of the BGP routing table anytime soon.

However, size alone is not the only parameter of the Internet’s routing system. There is also the consideration of the protocol behaviour and the rate of churn of BGP messages, which I will look at in the next part of this report.

Rate this article

The views expressed by the authors of this blog are their own and do not necessarily reflect the views of APNIC. Please note a Code of Conduct applies to this blog.


Leave a Reply

Your email address will not be published. Required fields are marked *