written 8.4 years ago by |
In link state routing, if each node in the domain has the entire topology of the domain the list of nodes and links, how they are connected including the type, cost (metric), and condition of the links (up or down)-the node can use Dijkstra's algorithm to build a routing table.
The figure shows a simple domain with five nodes. Each node uses the same topology to create a routing table, but the routing table for each node is unique because the calculations are based on different interpretations of the topology.
Node A knows that it is connected to node B with metric 5, to node C with metric 2, and to node D with metric 3. Node C knows that it is connected to node A with metric 2, to node B with metric 4, and to node E with metric 4. Node D knows that it is connected only to node A with metric 3. And so on. Although there is an overlap in the knowledge, the overlap guarantees the creation of a common topology-a picture of the whole domain for each node.
Building Routing Tables
In link state routing, four sets of actions are required to ensure that each node has the routing table showing the least-cost node to every other node.
- Creation of the states of the links by each node, called the link state packet (LSP).
- Dissemination of LSPs to every other router, called flooding, in an efficient and reliable way.
- Formation of a shortest path tree for each node.
- Calculation of a routing table based on the shortest path tree.
Link state routing protocols include OSPF - Open Shortest Path First and IS-IS – Intermediate