Sub topic 17
IS-IS compared with OSPF
This chapter assumes you know how OSPF builds its link-state database, floods LSAs, and runs SPF. It also assumes you know what an OSPF area, ABR, and DR are. IS-IS runs the same link-state algorithm. The differences are in the packet transport, the area model, the packet formats, and the extensibility.
Same algorithm, different packaging
IS-IS (Intermediate System to Intermediate System) is a link-state protocol. Its routers:
- Discover neighbors with hellos.
- Flood link-state information.
- Keep an identical database per area.
- Run Dijkstra's algorithm on that database.
Everything you learned about SPF applies unchanged. IS-IS was designed for the OSI network stack (CLNS) and later extended to carry IP routes. OSPF was designed for IP from the start.
Transport: no IP underneath
OSPF packets are carried in IP datagrams (protocol number 89). IS-IS packets ride directly in layer 2 frames. This has several consequences:
- IS-IS needs no IP address on a link to form an adjacency.
- An IP misconfiguration cannot break IS-IS adjacencies the way it can break OSPF's.
- Packets cannot be routed or spoofed from a remote network, which shrinks the attack surface.
- IS-IS cannot run across an arbitrary IP tunnel without a layer 2 encapsulation such as GRE.
Addressing: the NET
Each IS-IS router has a Network Entity Title (NET), an OSI address, even when it only routes IP. A typical NET is 49.0001.0000.0000.0001.00:
| Part | Example | Meaning |
|---|---|---|
| AFI | `49` | Private address authority, like private IP space |
| Area ID | `0001` | Identifies the area; may be longer |
| System ID | `0000.0000.0001` | Unique router ID, usually 6 bytes |
| NSEL | `00` | Always 00 for a router |
The system ID must be unique within the routing domain. OSPF uses a 32-bit router ID written like an IPv4 address.
Area model: borders fall on links
In OSPF, an ABR sits inside two areas, and area 0 must be contiguous. IS-IS has two levels instead of numbered areas:
- Level 1 (L1) routers know only their own area's topology and send everything else toward the nearest L1/L2 router.
- Level 2 (L2) routers form the backbone and carry inter-area routing.
- L1/L2 routers participate in both levels and keep a separate database for each.
The border is the link between an L1/L2 router and an L2 router in another area. A router belongs to exactly one area. The backbone is any contiguous chain of L2-capable routers. It does not have to be a special area.
Packet types
The two protocols use different message sets for the same jobs.
| Job | OSPF | IS-IS |
|---|---|---|
| Neighbor discovery | Hello | IIH (IS-to-IS Hello) |
| Carry topology data | LSU containing LSAs | LSP (link-state PDU) |
| Describe the database | DBD | CSNP (complete sequence number PDU) |
| Request or acknowledge | LSR, LSAck | PSNP (partial sequence number PDU) |
IS-IS pads its hellos to the full interface MTU, which exposes MTU mismatches before an adjacency forms. OSPF checks MTU during database exchange.
On point-to-point links, IS-IS acknowledges LSPs with PSNPs. On a LAN, no acknowledgment is sent. The designated router sends periodic CSNPs, and any router missing an LSP asks for it with a PSNP.
Designated routers on LANs
Both protocols reduce flooding on multi-access segments by electing a designated router.
- OSPF elects a DR and a backup (BDR). Election is non-preemptive: a better router that joins later does not take over.
- IS-IS elects a single DIS (designated intermediate system) with no backup. Election is preemptive. The highest priority wins, with the highest MAC address as the tie-breaker. A change of DIS causes a short disturbance, but the other routers already hold the same database.
- In IS-IS, every router on the LAN forms an adjacency with every other router. In OSPF, routers form full adjacencies only with the DR and BDR.
- The DIS creates a pseudonode, a virtual node that represents the LAN in the graph, the same idea as an OSPF network LSA.
Metrics
Original IS-IS "narrow" metrics were 6 bits per link, which allows a maximum of 63, and 10 bits for a whole path, which allows 1023. This is too coarse for modern networks. "Wide" metrics use 24 bits per link and 32 bits per path. Use wide metrics everywhere.
OSPF computes cost from a reference bandwidth (100 Mbps by default on many systems), so a 1 Gbps link and a 10 Gbps link can both come out as cost 1. Adjust the reference bandwidth consistently on every router. IS-IS commonly defaults to a metric of 10 per interface regardless of speed, so you usually set metrics by hand or by design rule.
Extensibility: TLVs
IS-IS LSPs store data as TLVs (type, length, value). A new feature is a new TLV, and routers that do not understand it ignore it and still flood it. IPv6, traffic engineering, and segment routing were added this way. IS-IS can carry IPv4 and IPv6 in one process and one SPF run. OSPF needed OSPFv3 as a separate protocol instance for IPv6, although later extensions narrowed the gap.
Configuration
A minimal Cisco IOS-style IS-IS setup looks like this:
router isis
net 49.0001.0000.0000.0001.00
is-type level-2-only
metric-style wide
!
interface GigabitEthernet0/0
ip router isis
isis metric 10Compare it with the OSPF example from earlier in this tutorial, where network statements pick interfaces. IS-IS enables the protocol per interface with ip router isis. The default is-type is level-1-2 on IOS. Setting level-2-only stops the router from keeping an unneeded L1 database.
Common errors
- Duplicate system IDs. Two routers with the same system ID cause constant LSP purges and database flapping. OSPF has the equivalent problem with duplicate router IDs.
- Area mismatch between L1 routers. Two routers that are level-1 only and have different area IDs will not form an L1 adjacency.
- Mixed metric styles. A router configured for narrow metrics ignores wide-metric TLVs, so routes disappear.
- MTU problems. Padded hellos fail across a link that cannot carry full-size frames, so the adjacency never comes up.
When to choose which
| Factor | OSPF | IS-IS |
|---|---|---|
| Typical home | Enterprise networks | Service provider backbones |
| Needs IP on link | Yes | No |
| Area border | In the router (ABR) | On the link |
| Adding features | New LSA types or versions | New TLVs |
| Vendor and staff familiarity | Very high | Lower |
Both scale to thousands of routers with good design and converge in similar times. Pick IS-IS when you run a large provider-style core and want a single process for IPv4 and IPv6. Pick OSPF when your team and tooling already know it and the network is an enterprise design.
Exercise
An L1-only router in area 49.0001 sits next to a router in area 49.0002 that is also L1-only. Both have working links and matching metric styles. Will they form an adjacency, and why or why not?
Show answer
No. L1 adjacencies require both routers to share the same area ID. The routers are in different areas, so they will not form an L1 adjacency. To connect the areas, at least one router would need to be L2-capable, with L1/L2 or L2-only configuration on both sides of that link.
Exercise
Your IS-IS routers compute a path of total metric 2000 across a network using narrow metrics. What problem might occur, and what is the fix?
Show answer
Narrow metrics allow a maximum path metric of 1023, so a path of 2000 cannot be represented and the route is treated as unreachable or ignored. The fix is to enable metric-style wide on all routers, which supports 24-bit link metrics and 32-bit path metrics.