Skip to main content

What is Network Flapping? Jitendra Ajmera The Crazy Programmer

The Internet is not that much easy as we think. It is a vast and massive bunch of hardware devices interconnected all over the internet. These devices are assembled in groups and then these tiny groups are connected with each other, and then these massive groups are connected with each other and the cycle goes on. Each device has its own specialty and role. If in any case any one of the devices started malfunctioning, it will affect the whole network. Sometimes these malfunctionings are self occurred and sometimes the protocols force these devices to start malfunctioning.

Network flapping is a kind of malfunction that is generated due to an extra advanced mechanism of traffic control in the network.

Let’s discuss it in detail:

First, understand the word Flapping. Its simple meaning is unexpected or randomly switching between two choices. Like if we wanted to choose an option between two options such as A and B, then the system shows that Option A is better and then suddenly says that option B is better, and when we select B then again its shows that A is better. This event can irritate us and we can’t select any one option.

Network Flapping

In a network, routers are used, whose main responsibility is to find and allot the best route between client and host for broadcasting. These routers are mainly divided into two types Static and Dynamic.

Statice routers always carry just one route for all transmission instead of Dynamic routers which provides the choice of more than one better path.

Network flapping occurs in these Dynamic routers. In this flapping situation, the dynamic router switches between two different routes for a similar host for transmission.

Network Flapping 1
Figure 1

As we can see in the above diagram the router has two routes to reach a similar Host. According to the network protocol in normal situations, the Router should use only one route for transmission like the below diagram:

Network Flapping 2
Figure 2

Or vice versa

Network Flapping 3
Figure 3

In special cases like heavy traffic, the dynamic router can use the alternate or both routes for transmission as shown in figure 1. Every time the dynamic router chooses a route it updates the routing table about the transmission and the route provided. This is a little bit complex and time-consuming process but it ensures 100% successful transmission asap.

So, what’s the issue here?

When the dynamic routers alternate between available routes even in a normal situation or not required condition, then it creates havoc. Every time the flapping occurs the dynamic router updates the routing table. So, when it alternates randomly during a broadcast of a single data item, then extra pressure puts on the network due to unnecessary routing traffic. And if the dynamic router continuously repeats the thing, then the overall network may be disturbed.

These types of dynamic routers are known as flapping routers.

Let’s take an example.

Suppose you are standing at a crossroads during a red signal. You need to go straight and you have a clean road, but the traffic controller forced you to use the alternate way saying it is the best route. As responsible citizens, you obey the traffic controller and started to move in that direction but suddenly the traffic controller stops you and says to use the old route saying it is the best route. Now it’s a little irritating but you obey the rules and started to move in the old direction, but suddenly the traffic controller stops you again and says to use the alternate way saying it is the best. Now just think what will happen.

You get frustrated because the controller actually stops you to use both ways. You will not reach your destination and your time is wasted.

And at the same time, the traffic behind you is increased due to you standing between the road as an obstacle for the followers.

So, what we can conclude:

  1. We can’t go anywhere.
  2. Our time is wasted.
  3. The traffic is created and increased continuously.
  4. The overall crossroads is full of traffic and soon the connected crossroads will be overcrowded too.
  5. Just one unwanted situation created this havoc.
  6. And you know what, what is the best part when we need to clear this all traffic, this will take a lot of time and effort. So, the best solution to this problem is to prevent this situation.

In a similar way when a flapping dynamic router started unwanted flapping, the actual data packets are stuck in between the transmission and unable to reach their destination. Due to this, the group of data packets is stuck in a traffic-like situation. This kind of blockage in the network can impact the whole network.

Route Summarization

For the Prevention of network flapping the Route Summarization technique is used. In Route Summarization, all the routes connected to a Router are arranged in such a systematic way that it does not need any alternative route. All the routers connected are arranged in a similar way.

Network Flapping 4
Figure 4
Network Flapping 5
Figure 5

Here figure 4 shows a network without route summarization, and figure 5 shows the route summarization.

In route summarization, all available routes with different IDs are masked with a common ID. As we can see in figure 4 at router B, we have three different routes with different IDs such as B.1, B.2, and B.3, but in figure 5 all these separate routes are masked as Route B. At the broadcasting time, no matter which route (Such as B.1, B.2, B.3) is used between Router B and the server, the routing table always shows Route B only. So, if router B doing flapping, still it shows only path B. The internal flapping will not affect routers A and C.

This is called Route Summarization.

Network flapping is a good mechanism for traffic control, but sometimes the router is unnecessarily configured to load-balance, thus they started unwanted flapping. Route summarization can be helpful in this.

The post What is Network Flapping? appeared first on The Crazy Programmer.



from The Crazy Programmer https://ift.tt/JH3lTS2

Comments

Popular posts from this blog

Difference between Web Designer and Web Developer Neeraj Mishra The Crazy Programmer

Have you ever wondered about the distinctions between web developers’ and web designers’ duties and obligations? You’re not alone! Many people have trouble distinguishing between these two. Although they collaborate to publish new websites on the internet, web developers and web designers play very different roles. To put these job possibilities into perspective, consider the construction of a house. To create a vision for the house, including the visual components, the space planning and layout, the materials, and the overall appearance and sense of the space, you need an architect. That said, to translate an idea into a building, you need construction professionals to take those architectural drawings and put them into practice. Image Source In a similar vein, web development and design work together to create websites. Let’s examine the major responsibilities and distinctions between web developers and web designers. Let’s get going, shall we? What Does a Web Designer Do?

A guide to data integration tools

CData Software is a leader in data access and connectivity solutions. It specializes in the development of data drivers and data access technologies for real-time access to online or on-premise applications, databases and web APIs. The company is focused on bringing data connectivity capabilities natively into tools organizations already use. It also features ETL/ELT solutions, enterprise connectors, and data visualization. Matillion ’s data transformation software empowers customers to extract data from a wide number of sources, load it into their chosen cloud data warehouse (CDW) and transform that data from its siloed source state, into analytics-ready insights – prepared for advanced analytics, machine learning, and artificial intelligence use cases. Only Matillion is purpose-built for Snowflake, Amazon Redshift, Google BigQuery, and Microsoft Azure, enabling businesses to achieve new levels of simplicity, speed, scale, and savings. Trusted by companies of all sizes to meet

2022: The year of hybrid work

Remote work was once considered a luxury to many, but in 2020, it became a necessity for a large portion of the workforce, as the scary and unknown COVID-19 virus sickened and even took the lives of so many people around the world.  Some workers were able to thrive in a remote setting, while others felt isolated and struggled to keep up a balance between their work and home lives. Last year saw the availability of life-saving vaccines, so companies were able to start having the conversation about what to do next. Should they keep everyone remote? Should they go back to working in the office full time? Or should they do something in between? Enter hybrid work, which offers a mix of the two. A Fall 2021 study conducted by Google revealed that over 75% of survey respondents expect hybrid work to become a standard practice within their organization within the next three years.  Thus, two years after the world abruptly shifted to widespread adoption of remote work, we are declaring 20