How a distance vector routing protocol works (RIP and hop count)
Sign in to read this lesson
Internal networks use two types of routing protocols: distance vector and link-state. RIP and EIGRP are distance vector (Cisco calls EIGRP advanced distance vector), OSPF is link-state. Distance says how far away something is (the metric), vector says which direction (the interface and next hop IP address). At first routers only know their directly connected networks; when distance vector is enabled they copy their routing tables to their neighbours. RIP uses hop count as its metric and sends a full copy of its routing table to its neighbours every 30 seconds.
What you will learn
- Two types of routing protocols are used on internal networks: distance vector and link-state. RIP and EIGRP are distance vector (Cisco calls EIGRP advanced distance vector), OSPF is link-state.
- Distance = how far (metric), vector = which direction (interface and next hop IP address). Like a signpost: you have to trust the information you are given.
- At first a router only knows its directly connected networks (metric 0). When distance vector is enabled, a router copies its routing table to its directly connected neighbour.
- When a router receives information about a network it doesn't know yet, it adds it to its routing table with an interface (vector) and a metric (distance).
- RIP uses hop count (the number of routers to pass) as its metric and sends a full copy of its routing table to its neighbours every 30 seconds.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.