⚡ What Are Routing Protocols?
Routing protocols are the rules routers use to automatically discover and share information about network paths. Instead of an administrator manually entering every route, dynamic routing protocols allow routers to exchange route information, detect topology changes, and calculate the best path to each destination. The key protocols on the Network+ exam are RIP, OSPF, EIGRP (internal / within one organisation) and BGP (external / between organisations on the internet).

Static vs Dynamic Routing

Before diving into protocols, understand the fundamental choice every network uses:

TypeHow It WorksBest ForDrawback
Static RoutingAdmin manually configures every route on every routerSmall networks, stub networks with one path, point-to-point WAN linksDoes not adapt to failures — if a link goes down, traffic stops until admin updates routes manually
Dynamic RoutingRouters automatically exchange routing information and update their tablesMedium and large networks, networks with redundant pathsUses bandwidth and CPU; adds protocol complexity; must be secured against route injection
Default RouteA catch-all route (0.0.0.0/0) that matches any destination not in the routing tableEdge routers sending unknown traffic to the ISPSends all unknown traffic one direction — can mask routing problems

Administrative Distance — How Routers Choose Between Protocols

When a router learns the same route from multiple sources (static config, OSPF, and EIGRP all know about 192.168.1.0/24), it uses Administrative Distance (AD) to decide which route to prefer. Lower AD = more trusted = preferred. This is one of the most tested routing concepts on the Network+ exam.

Route SourceAdministrative DistanceExam Note
Directly Connected0Most trusted — the router is directly on this network
Static Route1Admin-configured — trusted almost as much as directly connected
EIGRP (Internal)90Cisco proprietary — preferred over OSPF when both present
OSPF110Open standard — preferred over RIP
RIP120Legacy — least preferred of the common IGPs
EIGRP (External)170Routes redistributed into EIGRP from another protocol
BGP (External)20eBGP is trusted more than most IGPs — internet routes are precious
⚡ AD memory trick

Remember: lower AD wins. "0 = connected, 1 = static, 90 = EIGRP, 110 = OSPF, 120 = RIP." The exam often asks "A router has a route to 10.0.0.0/8 learned from both OSPF and RIP — which route goes in the table?" Answer: OSPF (AD 110) beats RIP (AD 120).

Distance-Vector vs Link-State — The Two Routing Approaches

PropertyDistance-VectorLink-State
How it worksEach router shares its entire routing table with directly connected neighbours — "routing by rumour"Each router shares the state of its own links with ALL routers in the area — builds a complete topology map
What routers knowDirection and distance (hop count or metric) to each destinationComplete map of the network topology — runs SPF algorithm to find shortest path
Convergence speedSlow — updates only sent periodically; susceptible to routing loopsFast — triggered updates sent immediately when topology changes
CPU/memory useLowHigher — maintains link-state database and runs SPF calculations
Loop preventionSplit horizon, route poisoning, holddown timersComplete topology knowledge prevents loops
ExamplesRIP, EIGRP (hybrid)OSPF, IS-IS

The Routing Protocols — In Depth

IGP · Distance-Vector RIP — Routing Information Protocol AD: 120

RIP is the oldest and simplest dynamic routing protocol. It uses hop count as its only metric — the number of routers a packet must pass through to reach the destination. Maximum hop count is 15 — any destination more than 15 hops away is considered unreachable. This hard limit makes RIP unsuitable for large networks.

RIP routers broadcast their entire routing table to all neighbours every 30 seconds. This wastes bandwidth and causes slow convergence — it can take minutes for the entire network to learn about a topology change. RIPv2 added subnet mask support (VLSM) and multicast updates; RIPng added IPv6 support.

Metric
Hop count (max 15)
Update interval
30 seconds (broadcast)
Convergence
Slow — minutes
Use case
Legacy / lab only
IGP · Link-State OSPF — Open Shortest Path First AD: 110

OSPF is the dominant IGP in enterprise networks. It uses cost as its metric — calculated as 100 Mbps ÷ interface bandwidth. A 1 Gbps link has a cost of 1; a 100 Mbps link has a cost of 1 (same, which is why the reference bandwidth is often adjusted). OSPF runs the Dijkstra SPF algorithm to calculate the shortest path to every destination.

OSPF organises routers into areas to limit the scope of topology updates and SPF recalculations. Area 0 (backbone area) is required — all other areas must connect to Area 0. This hierarchical design makes OSPF scalable to very large networks. OSPF only sends updates when topology changes (not every 30 seconds like RIP), making convergence fast.

Metric
Cost (bandwidth-based)
Algorithm
Dijkstra SPF
Convergence
Fast — event-triggered
Use case
Enterprise standard IGP
IGP · Hybrid (Cisco) EIGRP — Enhanced Interior Gateway Routing Protocol AD: 90 (internal)

EIGRP is Cisco's proprietary protocol that combines characteristics of both distance-vector and link-state protocols — making it a "hybrid" or "advanced distance-vector" protocol. It uses a composite metric based on bandwidth and delay (load and reliability can also be included but rarely are). EIGRP's DUAL algorithm (Diffusing Update Algorithm) maintains a backup path (the "feasible successor") so that if the primary path fails, EIGRP can switch to the backup without recalculating.

EIGRP only sends updates for changed routes (not full table updates), uses multicast, and achieves very fast convergence. It's a popular choice in all-Cisco environments. An open version of EIGRP was published in 2016 but adoption outside Cisco environments is minimal.

Metric
Bandwidth + Delay
Algorithm
DUAL
Convergence
Very fast — pre-computed backup
Use case
Cisco environments
EGP · Path-Vector BGP — Border Gateway Protocol AD: 20 (eBGP) / 200 (iBGP)

BGP is the routing protocol of the internet. While IGPs (RIP, OSPF, EIGRP) route traffic within an organisation, BGP routes traffic between organisations (Autonomous Systems). Every ISP, cloud provider, and large enterprise uses BGP to exchange routes with each other. BGP runs on TCP port 179.

BGP is a path-vector protocol — it selects routes based on policies and path attributes rather than simple metrics. The primary attribute is the AS-PATH — the list of Autonomous System numbers a route has traversed. BGP prefers shorter AS paths, but operators can influence routing through a large set of attributes. BGP convergence is intentionally slow to prevent route flapping from destabilising the global routing table.

eBGP (External BGP) runs between different Autonomous Systems. iBGP (Internal BGP) runs between routers within the same AS to distribute externally learned routes internally.

Metric / Selection
Path attributes (AS-PATH, MED, Local Pref)
Transport
TCP port 179
Convergence
Slow by design
Use case
ISPs, internet edge, multi-homing

Quick Comparison — All Four Protocols

ProtocolTypeMetricADPort/TransportUse Case
RIP v2Distance-vector IGPHop count (max 15)120UDP 520Legacy, small networks
OSPFLink-state IGPCost (100M ÷ bandwidth)110IP protocol 89Enterprise standard
EIGRPHybrid IGP (Cisco)Bandwidth + Delay90IP protocol 88Cisco networks
BGPPath-vector EGPPath attributes20 (eBGP)TCP 179Internet, ISPs, multi-homing
IGP vs EGP — The Key Distinction

IGP (Interior Gateway Protocol) — routes traffic within a single Autonomous System (one organisation's network). RIP, OSPF, and EIGRP are all IGPs.

EGP (Exterior Gateway Protocol) — routes traffic between Autonomous Systems. BGP is the only EGP in use today. An Autonomous System (AS) is a network under a single administrative control, identified by an AS number (ASN). Every ISP has one or more ASNs. Large enterprises that connect to multiple ISPs (multi-homed) also have their own ASN.


Exam Scenarios

💬 "A router has learned a route to 10.0.0.0/8 via both OSPF and RIP. Which route is installed in the routing table?" → OSPF (AD 110) — lower administrative distance wins over RIP (AD 120).
💬 "Which routing protocol uses hop count as its metric and has a maximum of 15 hops?" → RIP (Routing Information Protocol) — 16 hops = unreachable.
💬 "A network engineer needs a routing protocol that scales to a large enterprise with multiple buildings. Which should they choose?" → OSPF — link-state protocol with area hierarchy that scales to thousands of routers. RIP's 15-hop limit makes it unsuitable.
💬 "Which routing protocol is used to exchange routes between ISPs on the internet?" → BGP (Border Gateway Protocol) running on TCP port 179.
💬 "A company connects to two ISPs for redundancy and needs to advertise its own IP prefix to both. Which protocol should they use?" → BGP — multi-homing with redundant ISP connections requires BGP and an ASN.
💬 "Which routing protocol is Cisco proprietary and uses a composite metric of bandwidth and delay?" → EIGRP (Enhanced Interior Gateway Routing Protocol) — AD 90.
💬 "OSPF organises routers into areas. Which area is required and must be the backbone?" → Area 0 — the backbone area. All other OSPF areas must connect to Area 0, directly or via a virtual link.
💬 "What is the administrative distance of a directly connected interface?" → 0 — the most trusted route source. Static routes have AD 1.

Preparing for Network+?

See the best study guides and practice exams for the N10-009 exam.

See Network+ Resources →

Related Articles