06-10-2020 12:49 PM
Hello all,
I am new to networking and currently working on my CCNP. In my studies I have heard several times that it would not be wise to redistribute BGP routes into an IGP process like EIGRP, because if BGP happened to have a large number of routes then it could crash the IGP processes like EIGRP or OSPF.
My question is about the reason for this limitation in IGP protocols like EIGRP (or OSPF) as opposed to BGP. Would it just be that IOS (or NX-OS or whatever) assigns more memory and hardware resources to BGP in the OS code, such that BGP is able to handle more routes, whereas IGP protocols are not assigned as much in terms of hardware resources for handling routes?
Solved! Go to Solution.
06-11-2020 07:31 AM
The issue with redistributing BGP into an IGP does not have anything to do with memory or other hardware resources. And doing that redistribution is not likely to crash the IGP process. It is true that BGP was designed for scalability much more so than the IGPs. The algorithms used and the route selection processes are quite different in BGP than in the IGPs and this contributes to the scalability. The IGPs try to find the best path to a destination by comparing attributes of the various possible paths. BGP does not concern itself about attributes of the path but focuses on identifying the AS and neighbor to whom to forward the traffic. The calculations performed by the BGP process run efficiently when the number of routes to be processed is large. But with the IGP as the number of routes becomes very large the calculation performed is much more complex and becomes less efficient as the number of routes becomes very large. Another factor to consider is that with an IGP if there is a change some attribute of the path selected to reach some destination it generally will trigger a convergence event and force the running of the route selection algorithm. If you have redistributed BGP into the IGP resulting in a large number of routes that will have a large number of paths to evaluate and will have path changes more often and so will need to run the route selection process more often than is the case with BGP. These are some of the reasons that BGP is more scalable than the IGPs and that the general wisdom is to not redistribute BGP into an IGP.
Note that running any routing protocol with a very large number of routes (especially the number of routes in the Internet routing table) does require a significant amount of memory. There are quite a few routers you could use that do not have sufficient amount of memory for that large number of routes. But that is true no matter whether you are running an IGP or are running BGP.
06-11-2020 08:09 AM
06-11-2020 07:31 AM
The issue with redistributing BGP into an IGP does not have anything to do with memory or other hardware resources. And doing that redistribution is not likely to crash the IGP process. It is true that BGP was designed for scalability much more so than the IGPs. The algorithms used and the route selection processes are quite different in BGP than in the IGPs and this contributes to the scalability. The IGPs try to find the best path to a destination by comparing attributes of the various possible paths. BGP does not concern itself about attributes of the path but focuses on identifying the AS and neighbor to whom to forward the traffic. The calculations performed by the BGP process run efficiently when the number of routes to be processed is large. But with the IGP as the number of routes becomes very large the calculation performed is much more complex and becomes less efficient as the number of routes becomes very large. Another factor to consider is that with an IGP if there is a change some attribute of the path selected to reach some destination it generally will trigger a convergence event and force the running of the route selection algorithm. If you have redistributed BGP into the IGP resulting in a large number of routes that will have a large number of paths to evaluate and will have path changes more often and so will need to run the route selection process more often than is the case with BGP. These are some of the reasons that BGP is more scalable than the IGPs and that the general wisdom is to not redistribute BGP into an IGP.
Note that running any routing protocol with a very large number of routes (especially the number of routes in the Internet routing table) does require a significant amount of memory. There are quite a few routers you could use that do not have sufficient amount of memory for that large number of routes. But that is true no matter whether you are running an IGP or are running BGP.
06-11-2020 08:09 AM
06-11-2020 09:42 AM - edited 06-11-2020 09:43 AM
Richard/Joseph,
Thanks so much for your replies! They were very informative and helpful. This is probably an oversimplification, but from what I understand, would one of the "main" efficiencies of BGP be that:
06-11-2020 12:08 PM
06-11-2020 06:30 PM
OK great! That helps clear it up a bit. And yes good point on the possibility in BGP of multiple paths. Thanks again!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide