Link-state routing protocol
Appearance
A Link-state routing protocol is a protocol concept used in routing of packet-switched networks in computer communications, as in for example the OSPF for Internet traffic.
Workings
In contrast to the distance-vector routing protocol which works by telling sharing its knowledge of the entire network with its neighbors, link-state routing works by having the roters tell every router on the network about its closest neigbors. The entire routing table is not distributed from any router, only the part of the table containing its neighbors.
- The neighbor information is gathered continuously
- The neighbor information list is then broadcasted to every router that can answer to this protocol, a process known as flooding, which means that it sends the information to all of its neighbors who in turn send it to all of its neighbors and so on. Soon, all routers on the network have this information.
- The neigbor information is flooded whenever there is a (routing significant) change in the network
- As every router knows everything about the network by collecting and structuring the information flooded to it by the other routers, it can calculate the best path to any host on any destination network by using Dijkstra's algorithm.