[Network] Static and Dynamic Routing

Routing

Routing is the mechanism that informs the network the procedures to get to different IP networks. Routing is done via devices, known as routers.

What's a Routing Table?

According to howtogeek.com, "A routing routing table dictates where all packets go when they leave a system - whether that system is a physical router or a PC."

Dynamic Route

Most routers (including the one in your PC) use some form of dynamic routing, which means the router has the capability to figure out the best place to forward packets based on information from other routers.

To see this in action, use the traceroute command to see the connections a packet makes as it reaches its destination.

Use Case

The use case of dynamic routing would be - imagine you have 100 routers, and you want to add 2 new different subnets. In this case, you will have to add 200 (2 x 100) static routing entries.

Pros of using Dynamic Route

  • Removes the likely of human error due to the repetitive nature of changing/configuring routes
  • Able to react to network failures (and prevent entire network communication failure)
  • Prevent routing loops (by mistake)

Routing Protocol

There is an automatic process running between all routers, called "Routing Protocol". It's used in dynamic routing to (according to grandmetric.com):
  • Exchange IP prefixes between routers.
  • Find optimal path to destination.
  • From anti-loop topology
  • Automate changes
  • Speed up the process of admin tasks
  • React to topology changes and failures and recalculate optimal path

Static Route

While it is optimal to have a router figure out the best place to forward your packets dynamically,  you might still want to forward certain traffic to a specific router or gateway. You can do this by adding a static route.

Why would anyone do this?

These are some use cases for static routes:
  • Little load on router CPU and produces no traffic to other routers.
  • Static routing leaves the network administrator with full control over the routing behaviour of the network.
 

Potential Problems

  • Human error - misconfigured


Source:

https://www.howtogeek.com/howto/windows/adding-a-tcpip-route-to-the-windows-routing-table/
https://en.wikipedia.org/wiki/Static_routing
https://www.grandmetric.com/2017/08/25/where-to-use-static-and-where-to-use-dynamic-routing/

Comments

  1. Co-op means cooperative housing. It’s an interesting living arrangement in city areas. When you buy a co-op, you are actually buying a share of the whole property. This means, you are a part-owner of the whole building and you get a proportion of the entire property as a part-owner. Since you are a shareholder of the entire property, you get a unit for yourself to live in.

    Unlike it may sound, co-op is a very cost-effective option compared to a condo or an apartment. If you search for a Fully Furnished Apartment for rent in Dhaka, you will see that they are comparatively more expensive than a co-op. Thereupon, you can consider buying a co-op as a great alternative to buying a condo. Also, you will get some extra benefits and control over the property if you are living in a co-op. A broader explanation will come later in this article.

    ReplyDelete

Post a Comment

Popular posts from this blog

[Redis] Redis Cluster vs Redis Sentinel

[Unit Testing] Test Doubles (Stubs, Mocks....etc)

[Node.js] Pending HTTP requests lead to unresponsive nodeJS