ISIS Tutorial
ISIS Tutorial
ISIS Tutorial
Presentation Slides
Will be available on
ftp://ftp-eng.cisco.com /pfs/seminars/MENOG4-ISIS-Tutorial.pdf And on the MENOG website
MENOG 4
Agenda
Comparing ISIS and OSPF Introduction to ISIS ISIS Best Practices
MENOG 4
Both Link State Protocols use the Dijkstra SPF Algorithm So whats the difference then??
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
What Is IS-IS ?
Intermediate System to Intermediate System An IS is ISO terminology for a router IS-IS was originally designed for use as a dynamic routing protocol for ISO CLNP, defined in the ISO 10589 standard Later adapted to carry IP prefixes in addition to CLNP (known as Integrated or Dual IS-IS) as described in RFC 1195 Predominantly used in ISP environment
MENOG 4
IS-IS Timeline
1978ish New Arpanet Algorithm
Eric Rosen et al
MENOG 4
What Is OSPF ?
Open Shortest Path First Link State Protocol using the Shortest Path First algorithm (Dijkstra) to calculate loop-free routes Used purely within the TCP/IP environment Designed to respond quickly to topology changes but using minimal protocol traffic Used in both Enterprise and ISP Environment
MENOG 4
OSPF Timeline
Development began in 1987 by IETF OSPFv1 published in 1989 with RFC 1131 OSPFv2 published in 1991 with RFC 1247 Further enhancements to OSPFv2 in 1994 with RFC 1583 and in 1997 with RFC 2178 Last revision was in 1998 with RFC 2328 to fix minor problems All above OSPF RFCs authored by John Moy RFC2740 introduced OSPFv3 (for IPv6) in 1999, replaced by RFC5340 in 2008
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
MENOG 4
MENOG 4
MENOG 4
11
Transport
OSPF uses IP Protocol 89 as transport
Data Link Header IP Header OSPF Header OSPF Data
MENOG 4
12
MENOG 4
13
ISIS
Relaxed two level design - L2 routers must be linked through the backbone Suits ISPs with stringy networks, diverse infrastructure, etc, not fitting central core model of OSPF More flexible than OSPF, but easier to make mistakes too
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
14
Other considerations
ISIS runs on link layer
Not possible to attack the IGP using IP as with OSPF
ISISs NSAP addressing scheme avoids dependencies on IP as with OSPF Because biggest ISPs use ISIS, it tends to get new optimisation features before OSPF does
MENOG 4
15
Introduction to ISIS
MENOG 4
16
RFC5308 adds IPv6 address family support to IS-IS RFC5120 defines Multi-Topology concept for IS-IS
Permits IPv4 and IPv6 topologies which are not identical
MENOG 4
17
ISIS Levels
ISIS has a 2 layer hierarchy
Level-2 (the backbone) Level-1 (the areas)
A router can be
Level-1 (L1) router Level-2 (L2) router Level-1-2 (L1L2) router
MENOG 4
18
ISIS Levels
Level-1 router
Has neighbours only on the same area Has a level-1 LSDB with all routing information for the area
Level-2 router
May have neighbours in the same or other areas Has a Level-2 LSDB with all routing information about inter-area
Level-1-2 router
May have neighbours on any area. Has two separate LSDBs: level-1 LSDB & level-2 LSDB
MENOG 4
19
MENOG 4
20
L1-only
MENOG 4
21
MENOG 4
22
An Addressing Example
49.0f01.0002.4444.4444.4444.00
Area 3
49.0f01.0003.6666.6666.6666.00
Area 2
49.0f01.0002.3333.3333.3333.00
49.0f01.0004.7777.7777.7777.00
Area 4
49.0f01.0001.2222.2222.2222.00 49.0f01.0004.8888.8888.8888.00
Area 1
49.0f01.0001.1111.1111.1111.00
23
MENOG 4
Example:
NSAP: 49.0001.1921.6800.1001.00 Router: 192.168.1.1 (loopback) in Area 1
MENOG 4
24
Adjacencies
Hello PDU IIHs are exchanged between routers to form adjacencies
ISIS adjacency through IIH
MENOG 4
25
MENOG 4
26
LSP Header
LSPs have
Fixed header TLV coded contents
MENOG 4
27
LSP Contents
The LSP contents are coded as TLV (Type, Length, Value)
Area addresses IS neighbors Authentication Info
MENOG 4
28
LSDB content
Each router maintains a separate LSDB for level-1 and level-2 LSPs LSP headers and contents SRM bits: set per interface when router has to flood this LSP SSN bits: set per interface when router has to send a PSNP for this LSP
MENOG 4
29
Flooding of LSPs
New LSPs are flooded to all neighbors It is necessary that all routers get all LSPs Each LSP has a sequence number 2 kinds of flooding
Flooding on a p2p link Flooding on LAN
MENOG 4
30
MENOG 4
31
Flooding on a LAN
Theres a Designated Router (DIS) DIS election is based on priority
Best practice is to select two routers and give them higher priority then in case of failure one provides deterministic backup to the other
Tie break is by the highest MAC address DIS has two tasks
Conducting the flooding over the LAN Creating and updating a special LSP describing the LAN topology (Pseudonode LSP)
32
Flooding on a LAN
DIS conducts the flooding over the LAN DIS multicasts CSNP every 10 seconds All routers in the LAN check the CSNP against their own LSDB (and may ask specific re-transmissions with PSNPs)
MENOG 4
33
MENOG 4
34
MENOG 4
35
Configuration
Area-2 Rtr-A Area-1 Rtr-B Rtr-C Area-3
MENOG 4
36
L1L2 routers
Router-B
interface Loopback0 ip address 192.168.1.1 255.255.255.255 ! Interface Pos2/0/0 ip address 192.168.222.1 255.255.255.0 ip router isis isis circuit-type level-2 ! FastEthernet4/0/0 ip address 192.168.120.10 255.255.255.0 ip router isis isis circuit-type level-1 ! router isis passive-interface Loopback0 net 49.0001.1921.6800.1001.00
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
Rtr-A
Rtr-D L1routers
Router-A
interface Loopback0 ip address 192.168.1.5 255.255.255.255 ! interface FastEthernet0/0 ip address 192.168.120.5 255.255.255.0 ip router isis ! router isis is-type level-1 passive-interface Loopback0 net 49.0001.1921.6800.1005.00
37
L1L2 routers
Router-C
interface Loopback0 ip address 192.168.2.2 255.255.255.255 ! Interface Pos1/0/0 ip address 192.168.222.2 255.255.255.0 ip router isis isis circuit-type level-2 ! interface Fddi3/0 ip address 192.168.111.2 255.255.255.0 ip router isis isis circuit-type level-1 ! router isis passive-interface Loopback0 net 49.0002.1921.6800.2002.00
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
Rtr-A
Rtr-D L1routers
Router-D
interface Loopback0 ip address 192.168.2.4 255.255.255.255 ! interface Fddi6/0 ip address 192.168.111.4 255.255.255.0 ip router isis ! router isis is-type level-1 passive-interface Loopback0 net 49.0002.1921.6800.2004.00
38
39
MENOG 4
MENOG 4
More recent IOSes replace system ID with router hostname ease of troubleshooting
MENOG 4
42
MENOG 4
43
44
MENOG 4
45
MENOG 4
46
Area partitioning
Design so that backbone can NOT be partitioned
MENOG 4
47
Scaling Issues
Areas vs. single area
Use areas where sub-optimal routing is not an issue areas with one single exit point Start with L2-only everywhere is a good choice Future implementation of level-1 areas will be easier Backbone continuity is ensured from start
MENOG 4
48
MENOG 4
49
MENOG 4
50
LAN1: 2001:db8:1::/64
Ethernet-1
Router1
Ethernet-2
LAN2: 2001:db8:2::/64
Dual IPv4/IPv6 configuration. Redistributing both IPv6 static routes and IPv4 static routes.
MENOG 4
51
IOS Configuration for IS-IS for IPv6 on IPv6 Tunnels over IPv4
On Router1:
interface Tunnel0 no ip address ipv6 address 2001:db8:1::1/64 ipv6 address FE80::10:7BC2:ACC9:10 link-local ipv6 router isis tunnel source 10.42.1.1 tunnel destination 10.42.2.1 ! router isis net 49.0001.0000.0000.0001.00
IPv6 Network IPv6 Tunnel IPv4 Backbone IPv6 Tunnel IPv6 Network IPv6 Tunnel
On Router2:
interface Tunnel0 no ip address ipv6 address 2001:db8:1::2/64 ipv6 address FE80::10:7BC2:B280:11 link-local ipv6 router isis tunnel source 10.42.2.1 tunnel destination 10.42.1.1 ! router isis net 49.0001.0000.0000.0002.00
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
IPv6 Network
IS-IS for IPv6 on an IPv6 Tunnel requires GRE Tunnel; it cant work with IPv6 configured tunnel as IS-IS runs directly over the data link layer
52
MENOG 4
53
MENOG 4
54
LAN1: 2001:db8:1::1/64
Ethernet 1
Router1
Ethernet 2
LAN2: 2001:db8:2::1/64
The optional keyword transition may be used for transitioning existing IS-IS IPv6 single SPF mode to MT IS-IS Wide metric is mandated for MultiTopology to work
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
55
Networks using narrow metrics should first configure across all routers:
router isis isp metric-style transition
Once the whole network is changed to transition support, the metric style can be changed to wide:
router isis isp metric-style wide
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
56
L2
L1-L2 and L1 used later for scaling
Wide metrics
Narrow metrics are too limiting
MENOG 4
57
MENOG 4
58
59
MENOG 4
60
MENOG 4
61
MENOG 4
62
MENOG 4
63
64
Level-2 interface
This interface is used for a trunk link to another PoP forming part of your network-wide backbone
As such it will be a Level-2 interface, making this router a Level1/Level-2 IS. Metric and authentication are all configured for Level-2 interface gigabitethernet0/2 ip address 192.168.2.1 255.255.255.252 ipv6 address 2001:db8:192:168:2:1:/126 ip router isis 1 ipv6 router isis 1 isis circuit-type level-2-only isis metric 400 level-2 isis ipv6 metric 400 level-2 isis authentication mode md5 level-2 isis authentication key-chain isis-sec-l2 level-2
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
65
66
Create an NET
This is made up of a private AFI (49), an area part, a System ID (taken from the padded Loopback interface IP address) and an N-SEL of zero (0). net 49.0001.1921.6800.0001.00
67
68
Disable IIH padding because on high speed links, it may strain huge buffers; and on low speed links, it may waste bandwidth and affect other time sensitive applications, e.g., voice.
Disabling IIH padding is safe because IOS will still pad the first 5 IIH's to the full MTU to aid in the discovery of MTU mismatches. no hello padding
69
MENOG 4
Tell the IS to ignore LSP's with an incorrect data-link checksum, rather than purge them
Purging LSP's with a bad checksum causes the initiating IS to regenerate that LSP, which could overload the IS if perpetuated in a cycle So rather than purge them, ignore them. ignore-lsp-errors
MENOG 4 2009 Cisco Systems, Inc. All rights reserved.
70
Reduce the frequency of periodic LSP flooding of the topology, which reduces link utilization
This is safe because there other mechanisms to guard against persistence of corrupted LSP's in the LSDB. lsp-refresh-interval 65000
71
MENOG 4
72
73
74
Avoids blackholing traffic on router restart Causes ISIS to announce its prefixes with highest possible metric until iBGP is up and running When iBGP is running, ISIS metrics return to normal, make the path valid
75
MENOG 4
76
77
MENOG 4
78
MENOG 4
79
Introduction to ISIS
80