Link-state routing protocol features
6.2.6
The other basic algorithm that is used for routing is the link-state algorithm. This page will explain how the link-state algorithm works. The link-state algorithm is also known as Dijkstra's algorithm or as the shortest path first (SPF) algorithm. The link-state routing algorithm maintains a complex database of topology information. The distance vector algorithm has nonspecific information about distant networks and no knowledge of distant routers. The link-state routing algorithm maintains full knowledge of distant routers and how they interconnect. Link-state routing uses the following features:
|
Network discovery processes for link state routing |
When routers exchange LSAs, they begin with directly connected networks for which they have information. Each router constructs a topological database that consists of all the exchanged LSAs. The SPF algorithm computes network reachability. The router constructs this logical topology as a tree, with itself as the root. This topology consists of all possible paths to each network in the link-state protocol internetwork. The router then uses SPF to sort these paths. The router lists the best paths and the interfaces to these destination networks in the routing table. It also maintains other databases of topology elements and status details. The first router that learns of a link-state topology change forwards the information so that all other routers can use it for updates. Common routing information is sent to all routers in the internetwork. To achieve convergence, each router learns about its neighbor routers. This includes the name of each neighbor router, the interface status, and the cost of the link to the neighbor. The router constructs an LSA packet that lists this information along with new neighbors, changes in link costs, and links that are no longer valid. The LSA packet is then sent out so that all other routers receive it. When a router receives an LSA, it updates the routing table with the most recent information. The accumulated data is used to create a map of the internetwork and the SPF algorithm is used to calculate the shortest path to other networks. Each time an LSA packet causes a change to the link-state database, SPF recalculates the best paths and updates the routing table. There are three main concerns related to link-state protocols:
This page concludes this lesson. The next lesson will provide an overview of routing protocols. The first page explains how a router performs path determination. |
No comments:
Post a Comment