Route flapping

Routers play an important role in enabling uninterrupted network communication and connectivity. A constantly available router with the desired functioning ensures good performance for its associated sub-networks. With networks relying heavily on your routers' performance, it is important to ensure your routers do not run into any issues. One serious networking issue that routers encounter is route flapping.

On this page, we will take a look at:

What is route flapping?

Route flapping is a networking issue where the state of a router constantly fluctuates within a short period of time. This includes scenarios where the routers:

  • Constantly switch between being available and unavailable.
  • Update and withdraw network prefixes, thereby alternatively advertising the two best destination routes.
  • Display drastic changes in any of the routing metrics, such as the BGP table version.

For instance, if a router updates route A to be the best route in its first broadcast, then immediately withdraws it and updates route B to be the best route in its second broadcast, and again updates route A as the best route, the router is flapping.

Route flapping is easily detectable through network packet sniffers, availability monitoring, or manual inspection of router metrics.

Common causes of route flapping

Route flapping is common in large networks with hundreds of routers deployed across distributed locations. Route flapping can be caused by several networking scenarios that interfere with the ideal working conditions of the router. Some common causes include:

  • Dynamic routing: When networks deploy dynamic routing, the routers are prone to intensive adaptive route changes. They dynamically advertise and withdraw routes based on how the network topology evolves. This results in a higher chance of route flapping.
  • Misconfigurations: Any misconfiguration, such as enabling load balancing between paths with equal hops, can easily cause route flaps.
  • Deployed protocols: Network administrators should also carefully choose between and monitor the deployment of link state and distance vector routing protocols. Since these protocols cause frequent recalculations and updates, route flapping in this scenario can hinder network convergence.
  • Hardware errors: Faulty router hardware can cause the router state to fluctuate between up or down intensively, causing route flapping.
  • Connected devices: Route flapping can also be due to devices associated with the router, such as a connected interface with an error or another connected router that is flapping.

How does route flapping affect your network?

A problematic router can easily slow down your network traffic, disrupt normal network functioning, and impact the end-user experience. Some of the major effects of route flapping on your network include:

  • Cascading effects of flapping: Route flapping is capable of affecting the entire network if left unmanaged. A router that intensively alternates between two destination routes can cause confusion in network traffic routing, thereby causing all connected routers to recalculate the topology frequently. This can easily disrupt the network topology, causing all the upstream connected routers to flap.
  • Router overload and CPU utilization: Unnecessary recalculations and route updates caused by route flapping put a strain on the router's CPU. Intensive CPU usage and constantly changing destination routes can affect router performance and cause network traffic to slow down.
  • Routing loops: Route flapping causes a router in a route to be unusable. This causes other routers to reroute traffic. Constant traffic rerouting can cause routing loops within the network.
  • Latency and network downtime: Intensive calculations, routing updates, and CPU resource consumption can slow down and impact the performance of network routers. This affects the overall performance of the network. Not only that, but route flapping also causes confusion on the next hop for the network components. The longer it takes to determine the next hop, the higher the network latency will be. Since router conflicts can increase network latency, degrade performance, and be cascading, they can easily trigger costly network downtime.

How to control route flapping

Best practices such as regularly upgrading your routers help you avoid most router issues. For instance, modern routers with very high processing power limit the possibility of route flapping. However, to ensure your network routers are well-insulated from the cascading effects of route flapping, you should implement the following control techniques:

Route summarization

Route summarization is an effective countermeasure against the risks of route flapping. This technique helps network admins effectively insulate other upstream routers from the effects of a flapping router.

How does route summarization work?

Route summarization works by first taking note of all the links of the sub-networks associated with a router. The links are aggregated based on the common bits in the link address. The router then advertises this aggregate link as the link for all the sub-networks associated with it. This, when done for multiple routers, drastically reduces the number of links advertised in the network.

For instance, let us assume five routers are connected as shown below. Router D will usually have to advertise 16 routes to router E. However, after route aggregation, routers A, B, and C will each advertise only one link to router D by aggregating their links based on the common prefix. Router D will then aggregate these three links based on their common prefix and advertise only one route to router E. This greatly improves efficiency and router performance.

Route Flapping | ManageEngine OpManager

Also, in the aggregate links advertised, an aggregate route will still work even if a link within the router is flapping. An aggregate route will not be released when there is still at least one valid aggregate sub-network.

This eliminates the need to update, recalculate, and withdraw destination routes frequently and thus isolates the effects of route flapping from other routers and helps network admins easily troubleshoot the issue.

Route dampening

Route flap dampening is a technique that enables network administrators to stabilize the network routes in case a router flaps. This technique works by suppressing the flapping router and rerouting the traffic passing through it.

How does route dampening work?

First, network routers are configured to adhere to the implemented route dampening technique. To enable dampening, network admins need to define a suppress limit. This is the preferred number of times a router is allowed to flap. In the network, for every flap, the router is given a penalty. When the cumulative penalty becomes greater than the suppress limit, the router is suppressed. Traffic is rerouted through more stable routers.

However, the penalty a router has accumulated exponentially decays over time. When the cumulative penalty is less than the suppress limit, dampening is disabled by default, and the route is reused. Thus, route dampening helps network admins delay the use of unstable routes before they are stabilized.

Note: While route flap dampening might work well in tackling the flapping routers in private links, relying on it for your entire network is not advisable. Misconfigured route dampening metrics can easily cause parts of the network to be unreachable or even cause other routers to flap. Network admins need to carefully analyze the needs and configurations of their networks before implementing route dampening.

Routers, as the critical components of your IT infrastructure, are prone to many other networking issues, such as slowdowns and low signal quality. These issues severely impact your network performance and availability. To safeguard your network against the impact of problematic routers and to enhance router performance, you need a reliable network performance monitoring solution in place.

Keep a close watch on your network routers with OpManager

ManageEngine OpManager is a powerful, intuitive network performance monitoring solution that helps you holistically monitor network routers. Easily spot problematic routers and troubleshoot them with OpManager's in-depth insights before they disrupt your network. Ensure constant router availability and optimal router resource usage with several built-in proactive monitors that OpManager offers. You can also visualize all your network routers with its various network topology mapping capabilities.

Router Monitoring - ManageEngine OpManager

In addition to monitoring routers, OpManager is capable of doing so much more!

Discover the full potential of OpManager today by downloading a free, 30-day trial or scheduling a live demo with our product experts!

 Pricing  Get Quote