Learn dynamic routing protocols from scratch and never get lost in network routing again!

Learn dynamic routing protocols from scratch and never get lost in network routing again!

Classification of dynamic routing protocols

Classification by work area:

  • 「IGP (Interior Gateway Protocols): RIP OSPF IS-IS」
  • 「EGP (Exterior Gateway Protocols): BGP」

Classification by working mechanism and algorithm:

  • 「Distance Vector Routing Protocol: RIP」
  • 「Link State Routing Protocol: OSPF IS-IS」
  • BGP uses an algorithm modified from the distance vector algorithm, which is called the path vector algorithm. Therefore, in some cases, BGP is also called the path vector routing protocol.
  • IGP (Interior Gateway Protocol) exchanges routing information within the same autonomous system. The main purpose of IGP is to discover and calculate routing information within the autonomous domain.
  • EGP (External Gateway Protocol) is mainly used for interconnection between ASs (Autonomous Systems).

Distance Vector Routing Protocol

Routers running distance vector routing protocols "periodically" flood their routing tables. Through routing interactions, each router learns routes from adjacent routers, loads them into its own routing table, and then announces them to other adjacent routers. For all routers in the network, the routers do not know the network topology, but simply know where to go to a certain destination network segment and how much the cost is.

Link State Routing Protocol

LSA Flooding

  • Link state routing protocols advertise "link status" rather than routing information.
  • Routers running link-state routing protocols first establish neighbor relationships and then begin to exchange LSAs (LinkState Advertisements) with each other.
  • Link state advertisement can be simply understood as each router generating a notification describing the status of its directly connected interface (including the interface cost, the relationship with the neighboring router, etc.).

LSDB maintenance

Each router generates LSAs, and the router stores the received LSAs in its own LSDB (Link State DataBase). The router understands the entire network topology by parsing the LSAs stored in the LSDB.

SPF calculation

Each router uses the SPF (Shortest Path First) algorithm to calculate based on the LSDB. Each router calculates a "tree" with itself as the root, no loops, and the shortest path. With this "tree", the router already knows the preferred path to reach all network segments.

SPF is a core algorithm of the OSPF routing protocol, which is used to make routing optimization decisions in a complex network.

Routing table generation

The router loads the calculated preferred path into its own routing table.

Summary of Link State Routing Protocols

Link state routing protocols have four steps:

  • The first step is to establish neighbor relationships between adjacent routers.
  • The second step is to exchange link state information and synchronize LSDB between neighbors.
  • The third step is to calculate the optimal path
  • The fourth step is to generate routing table entries based on the shortest path tree and load them into the routing table

<<:  Master the knowledge of optical modules in one article and become a necessary skill for network engineers

>>:  Baidu can't stand it

Recommend

Let’s talk about the top ten challenges of 6G

[[427923]] This article is reprinted from the WeC...

TOTHOST: $1.92/month-1GB/8GB SSD/100M unlimited monthly traffic/Vietnam VPS

TOTHOST is a Vietnamese VPS hosting company estab...

12 principles to make data centers perform better

As American football star Tom Brady once said, &q...

5G optical fiber product network construction requirements

5G is a leading technology in the new generation ...

10 steps to improve application and network performance

If you work in a network operations team, you kno...

In 20 days, Huawei delivered a miniature version of a smart city

Every spring, various summits come one after anot...

6GHz band officially approved, Wi-Fi 6E to debut this year: 2.5 times faster

Since the Wi-Fi frequency band was first vacated ...

Comprehensive understanding of TCP/IP knowledge system structure summary

1. TCP Knowledge System We analyze the TCP knowle...

F5 Future

[51CTO.com original article] Expert introduction:...

The most popular network trends in 2019

“SD-WAN has seen incredible market growth since 2...