Skip to main content

CompTIA Network+ Routing Protocols: Complete Study Guide

·

Routing protocols determine how routers forward packets across interconnected networks. They form a critical component of the CompTIA Network+ certification and require mastery of specific concepts like administrative distance, metric calculations, and convergence time.

The Network+ exam covers four main protocols: RIPv2, EIGRP, OSPF, and BGP. Each uses different algorithms and metrics to calculate the best paths for data. Understanding the differences between distance-vector and link-state approaches is essential.

Flashcards work exceptionally well for this subject. They help you retain detailed specifications through spaced repetition and active recall. This guide covers what you need to know and why flashcards accelerate your learning.

Comptia network+ routing protocols - study with AI flashcards and spaced repetition

Understanding Routing Protocol Basics and Classification

Routing protocols are algorithms that routers use to communicate and determine the best paths for data packets. The Network+ exam focuses on two main types: Interior Gateway Protocols (IGPs) and Exterior Gateway Protocols (EGPs).

IGPs vs. EGPs

IGPs operate within a single autonomous system (AS). They include RIPv2, EIGRP, and OSPF. EGPs like BGP operate between autonomous systems on the Internet.

Algorithm Types

Routing protocols divide into two categories based on how they calculate paths:

  • Distance-vector protocols use hop count as their metric and send complete routing table updates to neighbors
  • Link-state protocols calculate paths based on link costs and use triggered updates for faster convergence

Administrative Distance (AD)

Administrative distance measures the trustworthiness of a routing protocol source. Lower values indicate higher trust. When multiple protocols provide routes to the same destination, the router prefers the protocol with the lowest AD.

Common AD values:

  1. Directly connected networks: AD 0
  2. OSPF: AD 110
  3. RIPv2: AD 120
  4. EIGRP: AD 90 (internal routes), AD 170 (external routes)

Understanding these foundational concepts provides the framework for comparing how different protocols operate and scale in various network environments.

Distance-Vector Protocols: RIPv2 and EIGRP

Distance-vector protocols measure path quality based on hop count or composite metrics. These protocols send routing information to neighbors, who then make their own decisions about the best paths.

RIPv2 Overview

RIPv2 (Routing Information Protocol version 2) measures path quality using hop count. It has a maximum of 15 hops, which limits it to smaller networks. RIPv2 sends complete routing table updates every 30 seconds by default, and convergence happens slowly. It remains on the Network+ exam and is tested for its administrative distance of 120 and use of the Bellman-Ford algorithm.

EIGRP Advantages

EIGRP (Enhanced Interior Gateway Routing Protocol) is Cisco's advanced protocol. It combines characteristics of both distance-vector and link-state protocols. EIGRP uses a composite metric that incorporates bandwidth, delay, reliability, and load.

Key EIGRP features:

  • Administrative distance of 90 for internal routes, 170 for external routes
  • Faster convergence than RIP
  • Better scaling in enterprise environments
  • Uses the Diffusing Update Algorithm (DUAL) for loop-free paths
  • Sends partial updates only when topology changes occur

Metric Calculation

EIGRP's default metric formula is: Metric = 256 * (Bandwidth + Delay). You must memorize this for the exam. The protocol favors bandwidth and delay in path selection over OSPF's simpler bandwidth-only approach.

Understanding the differences between RIPv2's simplicity and EIGRP's sophistication is crucial for exam success.

Link-State Protocols: OSPF and Advanced Concepts

Link-state protocols work differently from distance-vector protocols. Routers share detailed topology information instead of just their routing tables. All routers build identical databases and calculate paths independently.

OSPF Fundamentals

OSPF (Open Shortest Path First) is a link-state protocol widely deployed in enterprise networks. It uses Dijkstra's algorithm to calculate the shortest path tree. Unlike RIPv2, OSPF routers send Link State Advertisements (LSAs) describing their directly connected networks and link costs.

Key OSPF characteristics:

  • Administrative distance of 110
  • Uses cost as metric, derived from link bandwidth
  • All routers in an area maintain identical Link State Databases (LSDBs)
  • Much faster convergence than distance-vector protocols
  • Open standard, works with multivendor networks

OSPF Areas and Scalability

OSPF networks organize into areas to improve scalability. Area 0 (the backbone area) serves as the central routing domain. Area Border Routers (ABRs) connect areas and translate between them. This hierarchical design reduces the size of LSDBs in each area and decreases CPU processing.

OSPF Packet Types

Network+ candidates must understand the five OSPF packet types:

  1. Hello packets (establish neighbors)
  2. Database Description packets (exchange LSDB info)
  3. Link State Request packets (request missing LSAs)
  4. Link State Update packets (send LSAs)
  5. Link State Acknowledgment packets (confirm receipt)

OSPF's faster convergence and ability to scale to very large networks make it the protocol of choice for many organizations. Understanding its operation is essential for network professionals.

BGP, Metric Comparison, and Selecting the Right Protocol

BGP (Border Gateway Protocol) is tested at a foundational level on the Network+ exam. Unlike IGPs that optimize paths within your organization, BGP makes routing decisions based on policy and network administrator preferences.

BGP Basics

BGP operates between autonomous systems on the Internet. It uses AS path length as its primary metric, preferring paths through fewer autonomous systems. BGP operates on TCP port 179 and is classified as a path-vector protocol.

Administrative distance for BGP:

  • External routes: AD 20
  • Internal routes: AD 200

For Network+, understand that BGP is used for Internet routing and policy-based decisions. You don't need deep BGP expertise for this exam level.

Comparing All Routing Protocols

Different protocols serve different purposes:

  • RIPv2: Hop count metric, maximum 15 hops, suitable only for small networks
  • EIGRP: Composite metric (bandwidth and delay), scales to medium and large enterprise networks
  • OSPF: Cost based on bandwidth, scales to very large networks
  • BGP: Policy-based decisions, interdomain routing on the Internet

Selecting the Right Protocol

Administrators choose protocols based on several factors:

  • Network size and complexity
  • Convergence speed requirements
  • Processing power availability
  • Single-vendor (Cisco only) or multivendor network

For exam preparation, create a comparison matrix including administrative distance, metric type, maximum hop count, and typical use cases. This organized approach consolidates your learning and makes retrieval during the exam easier.

Effective Study Strategies and Flashcard Applications for Routing Protocols

Routing protocols require mastery of specific details that are heavily tested on the Network+ exam. These include administrative distances, metric calculations, convergence times, and operational characteristics. Flashcards are exceptionally effective for this subject because they facilitate spaced repetition of these precise details.

Flashcard Organization Strategies

Create flashcards organized by protocol with one side showing a characteristic and the reverse showing the answer with context. Example: Front: "What is OSPF's administrative distance?" Back: "110 for internal routes."

Organize study into thematic groups:

  • One set for administrative distances across all protocols
  • Another for metric types and calculations
  • Separate sets for each protocol's specific characteristics
  • Scenario-based cards that test deeper understanding

Active Recall Techniques

Use active recall by covering answers and forcing yourself to generate responses before checking. This strengthens memory retrieval. Scenario cards deepen understanding beyond memorization. Example: "A router learns a route via both RIPv2 and OSPF. Which route does it prefer and why?"

Spaced Repetition Science

Spaced repetition is scientifically proven to enhance long-term retention. Flashcards optimize this by automatically presenting difficult cards more frequently. Reserve 20 to 30 minutes daily for flashcard study, focusing on difficult cards first, then mixing in review of mastered content.

Regular flashcard practice builds confidence and ensures you can recall answers quickly during the actual exam.

Master CompTIA Network+ Routing Protocols

Use spaced repetition flashcards to retain administrative distances, metric calculations, convergence characteristics, and protocol comparisons. Study smarter with active recall practice optimized for exam success.

Create Free Flashcards

Frequently Asked Questions

What is the difference between administrative distance and metric in routing protocols?

Administrative distance (AD) and metric serve different purposes. AD measures the trustworthiness of the routing protocol source itself, determining which protocol's information the router believes when multiple protocols provide routes to the same destination. Lower AD values indicate higher trust.

Examples of AD values:

  • Directly connected networks: AD 0
  • OSPF: AD 110
  • RIPv2: AD 120

Metric measures path quality within a specific protocol. It determines the best path when multiple routes exist from the same protocol.

Examples of metrics:

  • RIPv2 uses hop count
  • EIGRP uses a composite metric combining bandwidth and delay
  • OSPF uses cost based on link bandwidth

A router first selects the route from the protocol with the lowest AD, then uses that protocol's metric for the best path within that protocol.

Why does OSPF converge faster than RIPv2?

OSPF converges faster due to fundamental differences in how they process network changes. RIPv2 uses periodic updates every 30 seconds regardless of network changes. When a topology change occurs, RIPv2 must broadcast an entire routing table to all neighbors.

OSPF uses event-driven, triggered updates called Link State Advertisements (LSAs) that propagate immediately when topology changes occur. Affected routers receive notification instantly. Additionally, OSPF routers run Dijkstra's algorithm on their identical Link State Databases to calculate new paths independently and quickly.

RIPv2 requires multiple update cycles for routers to learn of changes through neighbors. This difference is crucial for networks requiring rapid failover. OSPF is the standard choice for enterprise environments where network downtime must be minimized.

How do I calculate EIGRP's composite metric?

EIGRP's composite metric combines multiple factors. The formula is:

Metric = 256 * ((K1 * Bandwidth + (K2 * Bandwidth) / (256 - Load) + K3 * Delay) * (K5 / (Reliability + K4)))

By default, K values are K1=1, K2=0, K3=1, K4=0, and K5=0. This simplifies the formula to:

Metric = 256 * (Bandwidth + Delay)

Bandwidth is calculated as 10,000,000 divided by the slowest link bandwidth in Kbps. Delay is the sum of all delays in tens of microseconds along the path.

Example: A path with a 1Gbps link (bandwidth metric 1) and 100 microseconds delay (delay metric 10) yields:

256 * (1 + 10) = 2,816

Understanding this calculation helps you predict EIGRP path selection and troubleshoot routing decisions on the exam.

What is the purpose of OSPF areas and how do they improve scalability?

OSPF areas divide large networks into logical regions to improve scalability and reduce resource consumption. In a flat OSPF network, every router maintains an identical Link State Database containing information about every link. This requires substantial memory and CPU processing.

Areas limit the scope of LSA flooding. Routers maintain detailed topology information only about their own area. Area Border Routers (ABRs) sit between areas and translate between them, condensing area information into summary routes.

This hierarchical design provides several benefits:

  • Reduces the size of LSDBs in each area
  • Decreases CPU processing for Dijkstra's algorithm
  • Minimizes bandwidth consumed by LSA flooding

Area 0, the backbone area, connects all other areas and must be contiguous. OSPF areas improve scalability from managing thousands of routers to managing tens of thousands, making it suitable for truly large enterprise and service provider networks.

Why would an administrator choose EIGRP over OSPF in a Cisco-only network?

Although OSPF is an open standard suitable for multivendor networks, administrators managing Cisco-only environments often prefer EIGRP for several reasons.

EIGRP advantages over OSPF:

  • Requires less CPU and memory overhead
  • Doesn't maintain a complete Link State Database
  • Avoids complex Dijkstra calculations on every topology change
  • Composite metric allows fine-tuning path selection based on delay, reliability, and load
  • Converges extremely quickly using DUAL algorithm and Feasible Successors
  • Provides faster failover than OSPF
  • Configuration is generally simpler

However, EIGRP is proprietary to Cisco. Organizations with mixed-vendor equipment must use OSPF or another open standard. For the Network+ exam, understand that both are valid enterprise choices with different trade-offs regarding scalability, standards compliance, and administrative complexity.