Routing Protocols & IGPs

Understanding Interior Gateway Protocols, Types, and AD Values

Routing protocols are the set of rules used by routers to communicate with each other and exchange information that enables them to select the best path to a destination. They are broadly classified into IGP (Interior Gateway Protocol) and EGP (Exterior Gateway Protocol).

IGP vs. EGP

Types of IGPs

IGPs are categorized based on how they calculate routes:

1. Distance Vector

Routers send their entire routing table to neighbors periodically. They know "distance" (metric) and "vector" (direction/next-hop).

2. Link State

Routers build a complete map of the network (topology) and calculate the best path using the SPF algorithm.

Protocol Versions

Protocol IPv4 Version IPv6 Version
RIP RIPv1, RIPv2 RIPng
EIGRP EIGRP EIGRP for IPv6
OSPF OSPFv2 OSPFv3

Administrative Distance (AD) Comparison

Administrative Distance represents the trustworthiness of a route source. Lower values are preferred.

Route Source Default AD Value
Connected Interface0
Static Route1
EIGRP Summary Route5
eBGP20
EIGRP (Internal)90
OSPF110
IS-IS115
RIP120
EIGRP (External)170
iBGP200