⚡ 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 →

Distance-Vector vs Link-State — The Core Distinction

All dynamic routing protocols fall into two fundamental categories based on how they make routing decisions. Distance-vector protocols (RIP, EIGRP) make decisions based on hop count or a composite metric, and each router knows only what its directly connected neighbours have told it — routers share their entire routing table with neighbours on a schedule. This is sometimes called "routing by rumour" because a router's view of the network is based on second-hand information. The advantage is simplicity; the disadvantage is slow convergence and susceptibility to routing loops.

Link-state protocols (OSPF, IS-IS) build a complete map of the network topology. Every router exchanges Link State Advertisements (LSAs) so that each router has an identical topological database. Each router independently runs Dijkstra's shortest path first (SPF) algorithm to calculate the best path to every destination. Link-state protocols converge faster, scale better, and are more loop-resistant than distance-vector protocols — which is why OSPF replaced RIP as the dominant interior gateway protocol in enterprise and ISP networks.

RIP — Why It's Still Tested Despite Being Legacy

RIP (Routing Information Protocol) is rarely used in modern networks but remains heavily tested on Network+ because its simplicity makes it an ideal teaching tool for routing concepts. RIP uses hop count as its sole metric — the "best" path is always the one with fewest routers between source and destination, regardless of link bandwidth. A 100 Mbps path through 2 hops beats a 10 Gbps path through 3 hops. This is RIP's fundamental limitation — it has no concept of bandwidth, delay, or reliability.

Key RIP facts for the exam: maximum hop count is 15 (16 = infinity, meaning unreachable), routing updates are sent every 30 seconds to all neighbours (RIPv1 broadcasts, RIPv2 multicasts to 224.0.0.9), convergence is slow because routers must wait for update intervals to propagate changes across the network. RIPv2 added support for VLSM and CIDR (classless routing) and authentication, addressing RIPv1's major limitations. RIPng is the IPv6 version.

OSPF — The Enterprise Standard

OSPF (Open Shortest Path First) is the most widely deployed interior gateway protocol in enterprise networks and a major Network+ topic. Key characteristics: link-state (builds complete topology map), uses cost as its metric (calculated from interface bandwidth — higher bandwidth = lower cost, meaning OSPF prefers faster links), supports VLSM and CIDR (classless routing), fast convergence (detects failures in seconds and recalculates routes immediately), and scales to large networks through hierarchical area design.

OSPF organises networks into areas. Area 0 (the backbone area) is required — all other areas must connect to Area 0. This hierarchical structure reduces the size of each router's topology database and limits the scope of route recalculations when something changes. The router connecting an area to Area 0 is called an ABR (Area Border Router). For the exam: know that OSPF uses areas to scale, Area 0 is the backbone, and routers within an area have a complete topology map of their area but only summary information about other areas.

BGP — How the Internet Routes

BGP (Border Gateway Protocol) is the routing protocol of the internet — the protocol used by ISPs and large organisations to exchange routing information between autonomous systems (AS). Every major internet network operator (Google, AWS, Comcast, AT&T) runs BGP to advertise which IP address blocks they own and are reachable through their network. When you type a domain name, your traffic is routed across the internet using BGP to find the path from your ISP's network to the destination network.

For Network+ and Security+: BGP is an exterior gateway protocol (EGP) used between autonomous systems, while OSPF and EIGRP are interior gateway protocols (IGP) used within a single organisation's network. BGP is a path-vector protocol — routing decisions are based on policies and AS-path attributes rather than just metrics. BGP misconfigurations are a real-world source of major internet outages (route leaks and hijacks) — a recurring Security+ topic about BGP security involves route hijacking, where an AS incorrectly advertises routes it doesn't own, redirecting traffic through malicious infrastructure.

Administrative Distance — When Multiple Protocols Disagree

A router may learn routes to the same destination from multiple sources — a static route, OSPF, and RIP might all claim to know how to reach 192.168.10.0/24. Administrative distance (AD) determines which source the router trusts most. Lower AD = more trusted. Cisco's default values: Connected interface (0), Static route (1), EIGRP (90), OSPF (110), RIP (120), External BGP (20), Internal BGP (200). A directly connected route (AD 0) is always preferred over any dynamic protocol. A static route (AD 1) beats any dynamic protocol. Between OSPF (AD 110) and RIP (AD 120), OSPF wins.

On the exam: AD is the tiebreaker when the same destination is reachable via multiple protocols. Within a single protocol, the metric (hop count for RIP, cost for OSPF) determines the best path. Administrative distance is not used within a single protocol — it only matters when comparing routes learned from different sources.

IH
IT Study Hub Editorial Team
CompTIA A+ · Network+ · Security+

Our content is written and reviewed by IT professionals holding active CompTIA certifications. Every article is grounded in current exam objectives and cross-checked against official CompTIA documentation and authoritative primary sources. About us →

Related Articles