Dynamic Routing
Dynamic Routing
Static routing involves manually configuring router to each destination with ‘IP ROUTE’ cmd.
Dynamic routing involves configuring a dynamic routing protocol on the router & then
letting router take care of finding the best routes to destination networks.
It called dynamic routing because it not fixed, if you add new LAN, router will automatically
inform each other about how to get to that new destination network
If one path to a destination down the router will automatically start using the next-best path
Network Topology
Network routes & Host route on Router 1 (R1)
R1 network after using dynamic protocol, every router will advertise each route to each
other
Q)
A) Other Routers will automatically adapt and remove route from their
Routing tables (router will remove invalid route)
Eg: R1 has remove the route. This will prevent R1 from continuously sending
traffic to dead-end
These is different than Link State routing protocols in which the router develops
a more complete picture of the network
In Distance vector all the routers know is the route its neighbors tells it about
& their matric to reach those destinations.
Distance vector protocol works by sharing their route table or parts of it with
their neighbours.
Eg: R4 Sharing its route to R2 then its share to R1 then its share to R3 but the
matric cost is increasing.
& the connectivity map will be same on each router.
Then,
Eg.1.
Eg:
Lets look this diagram again from R1’s perspective,deciding which route to
192.168.4.0/24 to select for its route table.
If it uses RIP the metric of RIP is hope count
:via R2 the hope count is 2. One hope to R2, one hope to R4.
:via R3 the hope count is also 2. One hope to R3, one hope to R4.
Even thoug the connection form R3 to R4 is a slower i.e fastethernet connection.
So both routes will be put into R1’s routing table and R1 will load balance traffic
using both routes. Even though one route is slower
If OSPF use instead of RIP let see which path will be used
Unlike RIP, OSPF metric cost does take into account bandwidth
So the slower connection between R3 and R4 will result in higher metric value
making it less favorable
Only this route will be entered into the route table and R1 will send all traffic
destined to the 192.168.4.0/24 network via R2
Note: RIP use both route as equal but OSPF does not
The purpose of all of these metric is the same, to let the router select the best
route the destination but some routing protocol might make better decision than
others.
1.Lower AD number is preferred and will selected over a higher AD
2.these are the values use on Cisco devices, other vendors might rank these
differently
Eg:
Why we want to change the AD value ?
A] we can make it less preferred. And it is called a ‘floating static route’
Note: if we get multiple routes from the same routing protocol we will use metric
Quiz: question of AD