What Does IGP Mean?
Also known as: Interior Gateway Protocol, interior routing protocol
This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.
On This Page
Quick Definition
An Interior Gateway Protocol (IGP) is a type of routing protocol that operates within a single autonomous system (AS), which is a network or group of networks under a common administrative domain. IGPs are designed to discover and maintain routes between routers inside the same organization, enabling efficient packet forwarding based on the network's topology. Common examples include RIP, EIGRP, and OSPF. IGPs contrast with Exterior Gateway Protocols (EGPs), such as BGP, which route between different autonomous systems. The primary purpose of an IGP is to dynamically adapt to network changes—like link failures or new connections—by automatically updating routing tables, ensuring that data takes the best available path. IGPs use metrics (e.g., hop count, bandwidth, delay) to determine optimal routes and converge quickly to maintain network stability. Understanding IGPs is fundamental for network design, troubleshooting, and certification exams like CompTIA Network+ and Cisco CCNA.
Must Know for Exams
On the CompTIA Network+ (N10-008) exam, IGP is tested under Domain 1.0 (Networking Fundamentals) and Domain 3.0 (Network Operations). Specifically, candidates must: (1) Compare and contrast routing protocols, including distance-vector (RIP, EIGRP) vs.
link-state (OSPF, IS-IS). (2) Understand the concept of autonomous systems and the difference between IGP and EGP (BGP). (3) Identify characteristics of specific IGPs: RIP uses hop count (max 15), OSPF uses cost based on bandwidth, EIGRP uses composite metric (bandwidth, delay, reliability, load).
(4) Recognize that IGPs operate within a single AS and are used for internal routing, while EGPs route between ASes. (5) Know that OSPF supports VLSM and fast convergence, while RIP does not support VLSM in RIPv1 (only RIPv2 does). For CCNA (200-301), the exam dives deeper: (1) Configure and verify OSPFv2 (single area) and EIGRP (classic and named mode).
(2) Understand OSPF neighbor states (Down, Init, 2-Way, ExStart, Exchange, Loading, Full) and LSA types (Type 1, 2). (3) Interpret routing tables and debug outputs (show ip ospf neighbor, show ip eigrp topology). (4) Differentiate between OSPF network types (broadcast, point-to-point, non-broadcast).
(5) Know that EIGRP is Cisco proprietary but can be used in multi-vendor environments via basic configuration. Both exams emphasize that IGPs are dynamic, automatically adapt to topology changes, and use metrics to select best paths.
Simple Meaning
Think of an IGP as the internal postal system for a large company campus. The campus has many buildings (routers) and pathways (links). The internal postal service (IGP) creates and updates a map of all the buildings and the best walking paths between them.
When someone in Building A wants to send a package to Building D, the postal service consults its map to find the shortest or fastest route—maybe through Building B, then C, to D. If a path is blocked (a link fails), the postal service quickly redraws the map and finds an alternative route, like going through Building E instead. This internal system only handles mail within the campus; it doesn't know how to send packages to other companies (other autonomous systems).
That's the job of a different system, like the national postal service (EGP). So, an IGP is your network's internal routing intelligence, ensuring data moves efficiently within your own organization.
Full Technical Definition
An Interior Gateway Protocol (IGP) is a routing protocol that operates within a single autonomous system (AS) to exchange network layer reachability information among routers. IGPs function at the Network Layer (Layer 3) of the OSI model, as they deal with IP routing and forwarding decisions. They are defined by various RFCs: RIP is defined in RFC 1058 (RIPv1) and RFC 2453 (RIPv2), OSPF in RFC 2328 (OSPFv2) and RFC 5340 (OSPFv3), and EIGRP was originally Cisco proprietary but later published as an informational RFC (RFC 7868).
IGPs use either distance-vector or link-state algorithms. Distance-vector protocols (e.g., RIP, EIGRP) periodically share their entire routing table with neighbors, using metrics like hop count (RIP) or composite metrics (EIGRP) to determine best paths.
Link-state protocols (e.g., OSPF, IS-IS) flood link-state advertisements (LSAs) to all routers in the area, building a complete topological map (link-state database) and then running the Dijkstra SPF algorithm to compute shortest paths.
IGPs converge quickly—OSPF can converge in seconds, while RIP may take minutes. They support features like VLSM (Variable Length Subnet Masking), route summarization, and authentication. Compared to Exterior Gateway Protocols (EGPs) like BGP, IGPs prioritize fast convergence and metric-based path selection over policy-based routing and scalability across the global internet.
IGPs are essential for internal network dynamics, ensuring loop-free and efficient routing within an organization.
Real-Life Example
Consider a medium-sized enterprise with three sites: Headquarters (HQ), Branch A, and Branch B. Each site has a router (R1, R2, R3) connected via leased lines. The network administrator configures OSPF (an IGP) on all three routers.
Initially, R1 (HQ) knows about its directly connected subnet 10.1.1.0/24. R2 (Branch A) knows about 10.2.2.0/24. R3 (Branch B) knows about 10.3.3.0/24. OSPF routers exchange Hello packets to discover neighbors and form adjacencies.
They then flood LSAs describing their connected links. Each router builds a complete topology map and runs SPF to calculate the shortest path to each subnet. For example, R1 calculates that to reach 10.
2.2.0/24, the best path is directly via R2 (cost 10), and to reach 10.3.3.0/24, the path is via R2 then R3 (cost 20). Later, the link between R2 and R3 fails. R2 detects the failure, updates its LSA, and floods it.
All routers recalculate paths. R1 now sees that to reach 10.3.3.0/24, it must go directly via R3 (cost 15). Traffic is rerouted within seconds, demonstrating IGP's dynamic adaptability.
Why This Term Matters
Understanding IGPs is crucial for IT professionals because they form the backbone of internal network routing. Without IGPs, networks would rely on static routes, which are brittle and require manual updates whenever the topology changes. IGPs automate route discovery and recovery, reducing downtime and administrative overhead.
For troubleshooting, knowing how an IGP converges and what metrics it uses helps diagnose routing loops, suboptimal paths, or convergence delays. In exams like Network+ and CCNA, IGP concepts are heavily tested—candidates must differentiate between distance-vector and link-state protocols, understand metrics, and know when to use specific IGPs like OSPF vs. EIGRP.
Mastery of IGPs is a foundational skill for network engineers, directly impacting network reliability and performance. It also builds a bridge to advanced topics like redistribution, route summarization, and multi-area OSPF, which are critical for larger networks.
How It Appears in Exam Questions
IGP questions on Network+ and CCNA exams typically follow these patterns: (1) Comparison questions: 'Which of the following is an example of a link-state routing protocol?' Wrong answers often include distance-vector protocols like RIP or EIGRP (though EIGRP is advanced distance-vector). The correct answer is OSPF or IS-IS.
(2) Metric questions: 'Which metric does OSPF use to determine the best path?' Wrong answers include hop count (RIP), bandwidth alone (EIGRP composite), or delay. The correct answer is cost (based on bandwidth).
(3) Scope questions: 'What is the primary difference between an IGP and an EGP?' Wrong answers might focus on metric types or speed. The correct answer is that IGP operates within a single AS, while EGP operates between ASes.
(4) Scenario questions: 'A network administrator wants a routing protocol that supports VLSM and converges quickly. Which should they choose?' Wrong answers include RIPv1 (no VLSM) or RIPv2 (slow convergence).
The correct answer is OSPF or EIGRP. To identify the correct answer, focus on the protocol's algorithm (distance-vector vs. link-state), its metric, and its scope (internal vs. external).
Practise IGP Questions
Test your understanding with exam-style practice questions.
Example Scenario
Step 1: A small company has two routers, Router A and Router B, connected by a single Ethernet link. Step 2: The administrator enables OSPF on both routers, configuring the same OSPF process ID and area 0. Step 3: Router A sends a Hello packet out its OSPF-enabled interface.
Router B receives it and replies with its own Hello, establishing a neighbor adjacency. Step 4: Both routers exchange Link State Advertisements (LSAs) describing their directly connected networks. Router A advertises 192.
168.1.0/24, and Router B advertises 192.168.2.0/24. Step 5: Each router runs the SPF algorithm to calculate the shortest path to each network. Router A adds a route to 192.168.2.0/24 via Router B with a cost of 10.
Router B adds a route to 192.168.1.0/24 via Router A with a cost of 10. Step 6: A user on the 192.168.1.0/24 network pings a device on 192.168.2.0/24. The ping succeeds because OSPF has dynamically installed the route.
Step 7: The link between the routers fails. Both routers detect the failure, remove the neighbor, and recalculate. The routes are removed from the routing table. Traffic stops until the link is restored or an alternate path is added.
Common Mistakes
Students often think that IGP and OSPF are the same thing, or that IGP is a specific protocol like OSPF.
IGP is a category of routing protocols, not a specific protocol. OSPF is one example of an IGP, but so are RIP, EIGRP, and IS-IS. Treating IGP as a single protocol leads to confusion on exam questions that ask for examples.
Remember: IGP is the category; OSPF, RIP, EIGRP are the members.
Candidates believe that all IGPs use the same metric (e.g., hop count) to determine the best path.
Different IGPs use different metrics. RIP uses hop count (max 15). OSPF uses cost (based on bandwidth). EIGRP uses a composite metric (bandwidth, delay, reliability, load). Assuming a universal metric will cause you to choose the wrong answer on metric-specific questions.
Associate each IGP with its unique metric: RIP = hop count, OSPF = cost, EIGRP = composite (bandwidth + delay).
Students confuse IGP with EGP, thinking that IGP is used for internet routing (between different organizations).
IGP is strictly for routing within a single autonomous system (e.g., a company's internal network). Internet routing between different organizations uses Exterior Gateway Protocols (EGPs), specifically BGP. Using IGP for inter-AS routing would break the internet's hierarchical structure.
IGP = Inside (one AS). EGP = External (between ASes). Think 'I' for Internal, 'E' for External.
Exam Trap — Don't Get Fooled
{"trap":"The most dangerous trap is when an exam question asks 'Which of the following is an IGP?' and lists BGP as an option. Many candidates select BGP because they've heard of it, but BGP is an EGP, not an IGP.
The correct answer is OSPF or RIP.","why_learners_choose_it":"BGP is the most famous routing protocol because it runs the internet. Students remember 'BGP' from news about internet outages.
They assume that if a protocol is important, it must be an IGP. They also confuse 'interior' with 'internet,' thinking BGP is interior to the internet. This familiarity leads to the wrong choice."
,"how_to_avoid_it":"Use the 'AS' test: Ask yourself, 'Does this protocol route inside one company/organization (IGP) or between different companies/organizations (EGP)?' BGP routes between ISPs and large organizations (different ASes), so it's an EGP. OSPF routes inside a single company, so it's an IGP.
Memorize: BGP = EGP; OSPF, RIP, EIGRP = IGP."
Commonly Confused With
IGP operates within a single autonomous system (AS), using metrics like cost or hop count to find the best path. EGP (specifically BGP) operates between different ASes, using path attributes (like AS_PATH) and policy-based decisions rather than simple metrics. IGPs prioritize fast convergence; BGP prioritizes scalability and policy control.
Use OSPF (an IGP) to route inside your company's network. Use BGP (an EGP) to connect your company to an ISP or to exchange routes with another company.
Static routing requires an administrator to manually configure each route on every router. It does not adapt to topology changes. IGP dynamically discovers routes and automatically updates when links fail or new networks are added. IGPs also detect and avoid routing loops, whereas static routes can create loops if misconfigured.
Use static routing for a small, stable network with only two routers. Use an IGP like OSPF for a network with multiple routers and frequent changes.
Step-by-Step Breakdown
Step 1 — Router Initialization and Protocol Activation
The network administrator enables an IGP (e.g., OSPF) on each router. The router starts the routing process and prepares to send and receive routing messages on specified interfaces.
Step 2 — Neighbor Discovery
Routers send Hello packets to discover other routers running the same IGP on directly connected networks. For OSPF, Hello packets are sent to multicast address 224.0.0.5. Routers that receive Hellos and meet certain criteria (e.g., same area ID, authentication) become neighbors.
Step 3 — Database Exchange (Link-State Protocols) or Route Table Exchange (Distance-Vector)
For link-state protocols like OSPF, neighbors exchange Link State Advertisements (LSAs) to build a complete topological database. For distance-vector protocols like RIP, routers exchange their entire routing table with neighbors periodically.
Step 4 — Path Calculation
Each router runs an algorithm to compute the best path to each destination. OSPF uses the Dijkstra SPF algorithm on the link-state database. RIP uses the Bellman-Ford algorithm on the received routing tables. The result is a set of best routes installed in the routing table.
Step 5 — Ongoing Maintenance and Convergence
Routers continuously monitor the network. If a link fails or a new network appears, the IGP detects the change, updates its database, recalculates paths, and propagates the change to other routers. This ensures the routing table remains accurate and up-to-date.
Practical Mini-Lesson
**Core Concept:** An Interior Gateway Protocol (IGP) is a routing protocol that automatically discovers and maintains routes within a single autonomous system (AS). Think of it as the network's internal GPS. **How It Works:** IGPs use either distance-vector or link-state algorithms.
Distance-vector protocols (like RIP) share their entire routing table with directly connected neighbors periodically. They rely on the 'routing by rumor' approach—each router knows only what its neighbor tells it. This can lead to slow convergence and routing loops (e.
g., count-to-infinity problem). Link-state protocols (like OSPF) overcome this by having each router build a complete map of the network. Routers flood link-state advertisements (LSAs) to all other routers, so every router has the same topological view.
Then, each router independently runs the Dijkstra Shortest Path First (SPF) algorithm to compute the best path to every destination. This results in faster convergence and loop-free routing. **Comparison to Similar Technologies:** IGPs are often compared to Exterior Gateway Protocols (EGPs), specifically BGP.
The key difference is scope: IGPs route inside an AS, while EGPs route between ASes. IGPs prioritize fast convergence and metric-based path selection (e.g., cost, hop count). BGP prioritizes policy control and scalability, using path attributes like AS_PATH and LOCAL_PREF.
**Configuration Notes:** On Cisco IOS, enabling OSPF is straightforward: `router ospf 1` then `network 192.168.1.0 0.0.0.255 area 0`. For EIGRP: `router eigrp 100` then `network 192.
168.1.0 0.0.0.255`. Always verify with `show ip route` and `show ip protocols`. **Key Takeaway:** IGPs are the heart of internal network routing. Understanding their algorithms (distance-vector vs.
link-state) and metrics is critical for designing efficient, resilient networks and passing certification exams.
Memory Tip
**IGP = Inside the Gate (Autonomous System).** Think of a gated community. IGP handles mail (routes) inside the community. EGP (BGP) handles mail between communities. For OSPF, remember 'OSPF Opens Shortest Path First'—it uses the SPF algorithm. For RIP, 'RIP Really Is Poor'—max 15 hops, slow convergence.
Covered in These Exams
Current Exam Context
Current exam versions that test this topic — use these objectives when studying.
N10-009CompTIA Network+ →200-301Cisco CCNA →Legacy Exam Context
Older materials may mention these exam versions, but learners should use the current objectives for their target exam.
N10-008N10-009(current version)Related Glossary Terms
AH (Authentication Header) is an IPsec protocol that provides connectionless integrity, data origin authentication, and anti-replay protection for IP packets.
AH (Authentication Header) is an IPsec protocol that provides connectionless integrity, data origin authentication, and anti-replay protection for IP packets.
An AP (Access Point) bridges wireless clients to a wired network, acting as a central transceiver and controller for Wi-Fi communications.
An API is a set of rules that allows software applications to communicate and exchange data with each other.
BCP is a proactive process that creates a framework to ensure critical business functions continue during and after a disruptive event.
BNC (Bayonet Neill-Concelman Connector) is a miniature coaxial connector used for terminating coaxial cables in networking, video, and RF applications.
Frequently Asked Questions
What is the difference between distance-vector and link-state IGPs?
Distance-vector protocols (like RIP) share their entire routing table with neighbors periodically. They 'route by rumor' and can be slow to converge. Link-state protocols (like OSPF) flood link-state information to all routers, so each router builds a complete map of the network and runs SPF to compute paths. Link-state protocols converge faster and are less prone to loops.
Can I use BGP as an IGP?
Technically, you can run BGP within an AS (iBGP), but it is not designed for that purpose. BGP lacks fast convergence and uses path attributes instead of simple metrics. Using BGP as an IGP is inefficient and complex. IGPs like OSPF or EIGRP are optimized for internal routing.
Why does RIP have a hop count limit of 15?
RIP uses hop count as its metric, and a maximum of 15 hops prevents routing loops and the count-to-infinity problem. A route with a metric of 16 is considered unreachable. This limits RIP to small networks (max 15 routers in a path).
On the Network+ exam, do I need to know how to configure an IGP?
No, Network+ focuses on concepts, not configuration. You need to know the characteristics of different IGPs (RIP, OSPF, EIGRP), their metrics, and when to use them. CCNA does require configuration and verification commands.
What is the most important IGP to know for CCNA?
OSPF is the most important IGP for CCNA. The exam covers single-area OSPF configuration, verification, and troubleshooting. EIGRP is also covered but less emphasized. RIP is rarely tested on the current CCNA.
Summary
1. **What IGP is:** An Interior Gateway Protocol (IGP) is a routing protocol that operates within a single autonomous system (AS) to dynamically exchange routing information between routers. 2.
**Key technical property:** IGPs use either distance-vector (RIP, EIGRP) or link-state (OSPF, IS-IS) algorithms to determine the best paths, with link-state protocols offering faster convergence and loop-free routing. 3. **Most important exam fact:** On Network+ and CCNA exams, you must know that IGPs are for internal routing (within one AS), while EGPs (like BGP) are for external routing (between ASes).
Also, remember that OSPF uses cost (based on bandwidth) as its metric, while RIP uses hop count (max 15). Master these distinctions to ace routing protocol questions.