Optimizing the Size of the BGP Table
If you want to implement redundant Internet connectivity with multiple upstream Internet Service Providers, you don’t have to accept the entire global (Default-Free) BGP table. You could select a subset of (locally important) BGP routes and use default routes to reach the rest of the Internet.
I described that idea in several blog posts:
- Multihoming to a Single ISP (2008)
- How Could We Filter Extraneous BGP Prefixes? (2012)
- Coping with Byzantine Routing Failures (2014)
- Estimating BGP Convergence Time (2015)
- If You Worry About 768K Day, You’re Probably Doing Something Wrong (2019)
- Living with Small Forwarding Tables (2022)
One of the most important details in that concept is the default route generation. You should not accept an unconditional default route advertised by your ISP; the ISP might keep advertising it even if their network is broken. For more details, read these blog posts:
- Use BGP Default Route to Replace Static Routing (2007)
- Default Routes in BGP (2007)
- Responsible Generation of BGP Default Route (2011)
Finally, you could optimize just the forwarding resources. For example, BGP routes that use the same next hop as the default route do not have to be installed in the forwarding table; an old concept known as virtual aggregation
- Virtual Aggregation: A Quick Fix for FIB/TCAM Overflow (2010)
- Do You Really Need to See All 512K Internet Routes? (2014)
Alternatively, you could install just the important BGP prefixes (those with enough traffic) into the BGP table – the approach taken by David Barroso in his SDN Internet Router project (you’ll find further links in the podcast episode pages):
- SDN Router @ Spotify on Software Gone Wild (2015)
- SDN Internet Router Is in Production on Software Gone Wild (2015)