DYNAMIC ROUTING
Routing protocols are used to enable the routers exchange routing information, they allow routers to learn about remotely connected networks dynamically. This information is then added to their routing tables as a basis for forwarding packets.Now that we have an overview of routing protocols, we need to understand how they work.
Routing protocols are comprised of processes, messages and algorithms that are used by routers to learn about remotely connected networks from routers that have been configured with the same routing protocols, the routes that have been learnt are added to the routing table and used as a basis for forwarding packets.
The routing protocol is made up of these components.
The way routing protocols operate may differ depending on the routing protocol, however, there are certain characteristics inherent in every routing protocol.
Recommended by LinkedIn
These are the general steps routers will take. However, the processes differ with each routing protocol and will be discussed at a later stage
Distance vector means that routes are advertised as vectors of distance and direction. If we take an example of a tourist getting directions, distance vector protocols would be where the tourist would only use road signs to get to where they are going. They do not know the exact landscape and possible blocks, they only know of the next point towards their destination.
Distance vector protocols work best in situations where:
On the other hand, if the tourist had an entire map of the desired destination, with details of different paths to where they were going, they would be using a link-state routing protocol.
Link state routing protocols usually have a complete view of the topology. They usually know of the best paths as well as backup paths to networks. Link state protocols use the shortest-path first algorithm to find the best path to a network.