Menog4 Isis Tutorial
Menog4 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
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
MENOG 4
ISIS
Host
Router
Link
Circuit
Packet
Designated IS (DIS)
Backup DR (BDR)
MENOG 4
Hello packet
IIH PDU
10
MENOG 4
OSPF
ISIS
Area
Non-backbone area
Level-1 area
Backbone area
L1L2 router
Autonomous System
Boundary Router (ASBR)
Any IS
11
Transport
OSPF uses IP Protocol 89 as transport
Data Link Header
IP Header
OSPF Header
OSPF Data
MENOG 4
IS-IS Header
IS-IS Data
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
14
Other considerations
ISIS runs on link layer
Not possible to attack the IGP using IP as with OSPF
MENOG 4
15
Introduction to ISIS
MENOG 4
16
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
L1L2
Area-2
L1L2
L2-only
L1L2
L1-only
Area-4
L1L2
Area-1
L1-only
L1L2
L1-only
MENOG 4
21
MENOG 4
22
An Addressing Example
Area 3
49.0f01.0002.4444.4444.4444.00
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
MENOG 4
23
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
LSP-id
Sequence number
Remaining Lifetime
Checksum
Type of LSP (level-1, level-2)
Attached bit
Overload bit
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
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-1
Area-2
Rtr-A
Rtr-B
Area-3
Rtr-C
MENOG 4
36
L1L2 routers
Rtr-B
Area 49.0001
Rtr-C
Area 49.0002
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
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
Rtr-B
Area 49.0001
Rtr-C
Area 49.0002
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
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
40
MENOG 4
41
SNPA
1921.6800.2002 *PPP*
Up
29
L2
IS-IS
Up
L1
IS-IS
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
Router1#
interface ethernet-1
ip address 10.1.1.1 255.255.255.0
ipv6 address 2001:db8:1::1/64
ip router isis
ipv6 router isis
Ethernet-1
Router1
Ethernet-2
LAN2: 2001:db8:2::/64
MENOG 4
interface ethernet-2
ip address 10.2.1.1 255.255.255.0
ipv6 address 2001:db8:2::1/64
ip router isis
ipv6 router isis
router isis
address-family ipv6
redistribute static
exit-address-family
net 49.0001.0000.0000.072c.00
redistribute static
51
On Router2:
IPv6 Tunnel
IPv4
Backbone
IPv6
Network
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
IPv6
Network
IPv6
Tunnel
IPv6
Tunnel
IPv6
Network
MENOG 4
53
MENOG 4
54
LAN1: 2001:db8:1::1/64
Ethernet 1
Router1
Ethernet 2
LAN2: 2001:db8:2::1/64
Router1#
interface Ethernet 1
ip address 10.1.1.1 255.255.255.0
ipv6 address 2001:db8:1::1/64
ip router isis
ipv6 router isis
isis ipv6 metric 20
interface Ethernet 2
ip address 10.2.1.1 255.255.255.0
ipv6 address 2001:db8:2::1/64
ip router isis
ipv6 router isis
isis ipv6 metric 20
router isis
net 49.0001.0000.0000.072c.00
metric-style wide
!
address-family ipv6
multi-topology
exit-address-family
55
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
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
MENOG 4
69
70
71
MENOG 4
72
73
74
75
MENOG 4
76
77
MENOG 4
78
MENOG 4
79
Introduction to ISIS
80