Interior Gateway Protocol: How to Choose an IGP
In this article
- What Is an Interior Gateway Protocol?
- How IGPs Work: A Quick Background
- Key Factors in Choosing an IGP
- OSPF vs. IS-IS vs. EIGRP: A Detailed Comparison
- How to Choose: A Step-by-Step Approach
- Common Problems and Misconceptions
- Cost and Operational Considerations
- Alternatives to Traditional IGPs
- Frequently Asked Questions
Choose an interior gateway protocol (IGP) by matching its routing algorithm and convergence speed to your network's size, topology, and operational needs—OSPF for most enterprise and data-center networks, IS-IS for large service-provider backbones, and EIGRP for small-to-medium Cisco-centric environments. The best choice balances scalability, vendor compatibility, and the expertise of your team.
What Is an Interior Gateway Protocol?
An IGP is a routing protocol that exchanges reachability information between routers within a single autonomous system (AS)—one administrative domain, such as a corporate campus, a data center, or an ISP's backbone. Unlike exterior gateway protocols (EGPs) like BGP, which route between autonomous systems, IGPs focus on finding the best path inside your own network. The two main families are distance-vector protocols (RIP, EIGRP) and link-state protocols (OSPF, IS-IS). Link-state protocols have largely replaced distance-vector in modern networks because they converge faster and scale better.
How IGPs Work: A Quick Background
Distance-vector protocols operate on the principle that each router tells its neighbors only what it knows about the whole network—a "vector" of distances to each destination. Routers periodically send their entire routing table, and neighbors update their own tables if they learn a shorter path. This is simple but slow to converge and prone to loops in large networks. RIP, the oldest IGP, uses hop count as its metric and is now rarely used outside very small or legacy networks.
Link-state protocols take a different approach. Each router builds a complete map of the network by flooding link-state advertisements (LSAs) to all other routers. Every router then runs the Shortest Path First (SPF) algorithm—Dijkstra's algorithm—to compute the shortest path to every destination. This gives faster convergence and better scalability, but requires more CPU and memory. OSPF and IS-IS are both link-state protocols; they differ mainly in their origins (OSPF was designed for IP, IS-IS was originally for OSI but adapted for IP) and their area structure.
Key Factors in Choosing an IGP
When selecting an IGP, consider these factors in order of importance:
- Network size and topology: For small networks (under 50 routers) with simple topologies, even RIP or a static route may suffice. For larger, more complex networks, you need a link-state protocol that supports hierarchical design.
- Convergence speed: If your network carries real-time traffic (VoIP, video), you need fast convergence—OSPF and IS-IS converge in milliseconds to seconds, while EIGRP is also fast but proprietary.
- Vendor compatibility: OSPF and IS-IS are open standards, so they work across multi-vendor environments. EIGRP is Cisco-proprietary, though Cisco has published some details, it's still primarily used in all-Cisco networks.
- Team expertise: Choose a protocol your engineers already know. OSPF is the most widely taught and documented, making it the easiest to staff.
- Scalability requirements: If you expect to grow to thousands of routers, IS-IS is often preferred in service-provider backbones because it scales better with fewer protocol overheads.
- Traffic engineering needs: If you need advanced features like MPLS TE, both OSPF and IS-IS support extensions, but IS-IS is more common in large ISP backbones.
OSPF vs. IS-IS vs. EIGRP: A Detailed Comparison
OSPF (Open Shortest Path First) is the most popular IGP. It's an open standard, works on any vendor's equipment, and has robust features like multiple areas (to reduce SPF calculations), authentication, and support for IPv6 (OSPFv3). It's ideal for enterprise networks, data centers, and even small ISP backbones. Its main drawback is complexity—it has many configuration options and area types (stub, NSSA, etc.) that can be overwhelming.
IS-IS (Intermediate System to Intermediate System) is also a link-state protocol, but it was originally designed for OSI and later adapted for IP. It is widely used in large service-provider backbones because it is more scalable than OSPF—it doesn't require IP addressing on links, which simplifies design, and it handles very large topologies efficiently. IS-IS is also an open standard, but it is less commonly taught and has a steeper learning curve.
EIGRP (Enhanced Interior Gateway Routing Protocol) is a Cisco-proprietary distance-vector protocol with link-state features (it's often called a hybrid). It converges quickly, is easy to configure, and supports unequal-cost load balancing. However, it only works on Cisco devices (and a few others that license it), so it's not suitable for multi-vendor networks. It's a good choice for small-to-medium all-Cisco networks where simplicity is valued.
How to Choose: A Step-by-Step Approach
Follow these steps to make a decision:
- Assess your network size and growth plan. Count current routers and estimate growth over the next 3-5 years. If you'll stay under 100 routers, any modern IGP will work; if you'll grow into thousands, consider IS-IS.
- Determine your vendor environment. If you have a single-vendor Cisco shop, EIGRP is a viable option. If you have mixed vendors or plan to change, choose OSPF or IS-IS.
- Evaluate your team's skills. If your team is new to routing protocols, OSPF is the easiest to find training and support for. If you're building a service-provider network and have experienced engineers, IS-IS is a strong candidate.
- Consider your convergence and feature requirements. For real-time applications, ensure the protocol supports fast convergence (all three do). For MPLS or traffic engineering, check the protocol's extensions.
- Test in a lab. Set up a small test network with your chosen protocol and verify that it meets your performance and stability expectations.
Common Problems and Misconceptions
One common misconception is that OSPF and IS-IS are interchangeable. While they are both link-state, they differ in area design, metric types, and how they handle IP. For example, OSPF uses a two-level hierarchy (backbone area 0 and other areas), while IS-IS uses a two-level system (Level 1 and Level 2) that is more flexible. Another misconception is that EIGRP is obsolete—it's still widely used in Cisco environments, but it's not a standard, so it limits your future options.
A frequent problem is misconfiguring OSPF areas, such as connecting a non-backbone area directly to another non-backbone area, which causes routing issues. Another issue is not planning for network growth—using a single area for a large network can cause SPF to run too often, degrading performance. Also, many engineers forget to enable authentication on IGP adjacencies, leaving the network vulnerable to route injection attacks.
Cost and Operational Considerations
The cost of an IGP is not in licensing—all IGPs are included in router operating systems—but in operational overhead. OSPF and IS-IS require more planning and monitoring than EIGRP. You need to design areas, manage LSAs, and tune timers. EIGRP is simpler to deploy but ties you to Cisco. Training costs also matter: OSPF has the most extensive documentation and training materials, while IS-IS has fewer resources, which can increase the cost of ramping up your team.
Alternatives to Traditional IGPs
For modern data-center networks, you might consider BGP as an IGP (using BGP with the allowas-in feature) or even segment routing with MPLS. BGP is not typically used as an IGP because it's slow to converge, but in data-center fabrics with leaf-spine topologies, some designs use BGP for its simplicity and policy control. Segment routing can be used with OSPF or IS-IS to provide source routing without a separate protocol. However, for most networks, a traditional IGP remains the right choice.
Frequently Asked Questions
What is the difference between OSPF and IS-IS?
OSPF and IS-IS are both link-state protocols, but OSPF is IP-specific and uses areas based on IP addressing, while IS-IS is protocol-independent and uses network-layer addresses. IS-IS is often considered more scalable and is common in large ISP backbones, while OSPF is more widely used in enterprise networks.
Can I run two IGPs at the same time?
Yes, you can run multiple IGPs, but you must implement route redistribution between them, which can cause routing loops and suboptimal paths if not configured carefully. It's generally recommended to use a single IGP unless you have a specific need, such as merging two networks after an acquisition.
Is EIGRP still a good choice in 2025?
EIGRP is still a viable choice for small-to-medium all-Cisco networks because it's easy to configure and converges quickly. However, it's proprietary, so it limits your ability to mix vendors. If you anticipate multi-vendor growth, OSPF or IS-IS is a better long-term investment.
How do I migrate from one IGP to another?
Migration typically involves running both protocols temporarily, redistributing routes between them, and then gradually removing the old protocol. You can also use a technique called "routing protocol migration" where you change the administrative distance to prefer the new protocol. Always test in a lab first.
What is the best IGP for a small business network?
For a small business with fewer than 50 routers and a single site, OSPF is a solid choice because it's standard, well-documented, and will scale if you grow. If you have a simple topology and all Cisco gear, EIGRP is also fine. Avoid RIP unless you have legacy equipment.