Escolar Documentos
Profissional Documentos
Cultura Documentos
routing protocol
Gerry Redwine
gredwine@cisco.com
© 2000, Cisco Systems, Inc. |
Agenda
© 2000, Cisco Systems, Inc.
Agenda
IP routing specifics
Configuration Commands
Show Commands
Debug Commands
© 2000, Cisco Systems, Inc. (
Link-state protocol
fundamentals
© 2000, Cisco Systems, Inc. '
þ
© 2000, Cisco Systems, Inc. ±
þ
Ä
Ä
Ä
Ä
Ä
© 2000, Cisco Systems, Inc. Î
All routers have same view
Ä
Ä
© 2000, Cisco Systems, Inc. |
Brief Overview of IS-IS
© 2000, Cisco Systems, Inc. ||
What is IS-IS ?
© 2000, Cisco Systems, Inc. |
IS-IS for IP routing
© 2000, Cisco Systems, Inc. |(
Only 4 types of IS-IS packets
IS-IS Hello packet (IIH)
Link State Packet (LSP)
Partial Sequence Number Packet
(PSNP)
Complete Sequence Number Packet
(CSNP)
Packets are sometimes called Protocol
Data Units (PDU in OSI)
© 2000, Cisco Systems, Inc. |'
IS-IS Hello PDUs
© 2000, Cisco Systems, Inc. |±
Link State PDUs
Called LSPs
Contains all info about one router
adjacencies, connected IP prefixes, OSI
endsystems, area addresses, etc.
One LSP per router (plus fragments)
One LSP per LAN network
© 2000, Cisco Systems, Inc. |
Sequence Number PDUs
© 2000, Cisco Systems, Inc. |Î
Pseudonodes and network LSAs
© 2000, Cisco Systems, Inc. |ü
þ
þ
Ä
DIS
DIS
LAN
Pseudonode
© 2000, Cisco Systems, Inc. |*
Who creates the pseudonode
© 2000, Cisco Systems, Inc.
Identifying nodes
© 2000, Cisco Systems, Inc.
Hierarchy
© 2000, Cisco Systems, Inc. (
Level-1 Routers
© 2000, Cisco Systems, Inc. '
Level-2 routers
© 2000, Cisco Systems, Inc. ±
Adjacency levels
L1-Adjacency L2-Adjacency
L2-Adjacency
L2-Adjacency
L1L2 L1L2
Adjacency Adjacency
© 2000, Cisco Systems, Inc.
Level-1, Level-2 & Level-1-2 Routers
Backbone â L2 contiguous
L1-only
L2-only
L1-L2
L1-only
L1-only
L1-L2
L1-L2
L1-only
j
L1-L2 #
L1-only
© 2000, Cisco Systems, Inc. Î
Level-1, Level-2 & Level-1-2 Routers
Backbone â L2 contiguous
L1-only
L2-only
L1-L2
L1-only
L1-L2
L1-L2
L1-L2
L1-only
j
L1-L2 #
L1-only
© 2000, Cisco Systems, Inc. ü
NSAPs and LSPids
© 2000, Cisco Systems, Inc. *
NSAPs and Addressing
© 2000, Cisco Systems, Inc. (
How do I read an NSAP ?
© 2000, Cisco Systems, Inc. (
Do I need an NSAP if I want to use
IS-IS for IP routing ?
© 2000, Cisco Systems, Inc. ((
Creating unique systemIDs
SystemID is 6 bytes
Start numbering 1, 2, 3, 4 «. etc
Convert your loopback IP address
192.31.231.16 -> 192.031.231.016 ->
systemID 1920.3123.1016
© 2000, Cisco Systems, Inc. ('
Creating area addresses
© 2000, Cisco Systems, Inc. (±
LSP Identifier
Example: 00c0.0040.1234.02-00
SystemID PN-ID Frag-Nr
© 2000, Cisco Systems, Inc. (
CLNS routing principles
© 2000, Cisco Systems, Inc. (Î
OSI protocol family
© 2000, Cisco Systems, Inc. (ü
OSI protocol family
© 2000, Cisco Systems, Inc. (*
Encapsulation of IS-IS
© 2000, Cisco Systems, Inc. '
Level-1 routing
© 2000, Cisco Systems, Inc. '
Level-2 Routing
© 2000, Cisco Systems, Inc. '(
Level-2 Routing
© 2000, Cisco Systems, Inc. ''
The Backbone
A router can¶t tell whether it is a transit
node
Therefore the cisco default is to be L1L2
This will make the backbone larger then
necessary
So always configure L1-only or L2-only
when possible
L1L2 in one area is less scalable
Especially with ISIS for IP
© 2000, Cisco Systems, Inc. '±
Can an IS determine its level ?
³I¶m in area 2 and ALL
Area 1 my neighbors are in the
same area. I must be a Area 3
L1-only router ?´
Area 2 Area 4
!! NO !!
Rtr C must have a full L2 LSDB
to route between areas 1, 3 and
4. Remember, the backbone
must be contiguous.
Area 2
Area 1
© 2000, Cisco Systems, Inc. 'ü
Why do we need flooding
© 2000, Cisco Systems, Inc. '*
What triggers a new LSP ?
© 2000, Cisco Systems, Inc. ±|
Basic flooding rules
© 2000, Cisco Systems, Inc. ±
Basic flooding rules
If same age:
Acknowledge the LSP with a PSNP
If older:
Acknowledge the LSP with a PSNP
Send our version of the same LSP
Wait for PSNP
© 2000, Cisco Systems, Inc. ±(
Sequence number
© 2000, Cisco Systems, Inc. ±'
Remaining lifetime
Ä
#'
" #
%
$! $
Ä
LSP
& id=x seqnr=22
! !Ä
$
!
" #|!
$
$!%$
$Ä !
PSNP $
!
id=x seqnr=22
!
© 2000, Cisco Systems, Inc. ±
The Designated Router
DIS is like the DR in OSPF
DIS is only on LANs, not on p2p
DIS has two tasks
create/update pseudonode LSP
conduct flooding over the LAN
DIS sends periodic CSNPs
LSPid, SeqNr, Checksum, Lifetime of all
LSPs present in the LSPDB
© 2000, Cisco Systems, Inc. ±Î
The Designated IS
© 2000, Cisco Systems, Inc. ±ü
ãþ
Rtr-A % $Ä
#'
" #
Ä
%$
$Ä !
LSP (
Ä !
***
+*** LSP
Ä id=x seqNr=22
Ä
Ä $ CSNP
Ä )
id=y seqnr=...
Ä '
! id=x seqNr=22 |
"
Ä ' id=z ...
PSNP
id=x seqNr=21
$
Ä ,
$ +
!%$
$ LSP
$ ( id=x seqNr=22
© 2000, Cisco Systems, Inc. ±*
IP routing specifics
© 2000, Cisco Systems, Inc.
L1 advertised into L2
© 2000, Cisco Systems, Inc.
ISIS routing Levels
" "
2. Level-1 LSP with 3. Level-2 LSP with
IP prefix: 10.1.0.0/16 IP prefix: 10.1.0.0/16
IP prefix: 10.10.0.0/16
"
2. Level-1 LSP with
IP prefix: 10.10.0.0/16 1. Level-1 LSP with
Attached-bit (used
" as a default route by
all level-1routers
"
#! "
!%
!&þjj
%
''''(')
© 2000, Cisco Systems, Inc. (
ISIS routing Levels
3. Level-2 LSP with
IP prefix: 10.1.0.0/16
* þ
!%
" "'"''("+,j
1. Level-1 LSP with " "&
IP prefix: 10.1.0.0/16 #!)
þ
!%
"'"''("+
"'"''("+
© 2000, Cisco Systems, Inc. '
Configuration, Show,
& Debug Commands
© 2000, Cisco Systems, Inc. ±
Command Agenda
© 2000, Cisco Systems, Inc.
Basic Configuration
Commands
Router sub-commands
router isis <tag name>
net <net>
is-type <L1 L2 L1L2>
default-information originate <route-
map> r !
! !
© 2000, Cisco Systems, Inc. Î
Basic Configuration
Commands
Interface sub-commands
ip router isis <tag name>
clns router isis <tag name>
isis metric <value>
isis priority <value>
isis circuit-type <L1 L2 L1L2>
isis hello-interval <seconds>
isis hello-multiplier <value>
© 2000, Cisco Systems, Inc. ü
Basic Configuration
L1router
Router-A
--------------
Router-B
S0 Rtr-A
--------------
interface Loopback0 interface Loopback0
ip address 192.168.1.5 255.255.255.255
Area 49.0001
ip address 192.168.1.1 255.255.255.255
! ! S1
interface Serial0 Interface Serial0
Rtr-B
ip address 192.168.120.5 255.255.255.0 ip address 192.168.120.10 255.255.255.0 S0
ip router isis ip router isis
! L1L2 routers
!
router isis interface Serial1 S1
is-type level-1 ip address 192.168.222.1 255.255.255.0
passive-interface Loopback0 ip router isis S0 Rtr-C
net 49.0001.1921.6800.1005.00 !
router isis Area 49.0002
passive-interface Loopback0
net 49.0001.1921.6800.1001.00 S1
Rtr-D
L1router
© 2000, Cisco Systems, Inc. *
Basic Configuration
L1router
Router-C Router-D
-------------- -------------- S0 Rtr-A
interface Loopback0 interface Loopback0
ip address 192.168.2.2 255.255.255.255 ip address 192.168.2.4 255.255.255.255
Area 49.0001
! ! S1
interface Serial0 interface Serial1 Rtr-B
ip address 192.168.111.2 255.255.255.0 ip address 192.168.111.4 255.255.255.0
S0
ip router isis ip router isis
isis circuit-type level-1 ! L1L2 routers
! router isis S1
interface Serial1 is-type level-1
ip address 192.168.222.2 255.255.255.0 passive-interface Loopback0
S0 Rtr-C
ip router isis net 49.0002.1921.6800.2004.00
isis circuit-type level-2
Area 49.0002
!
router isis S1
passive-interface Loopback0 Rtr-D
net 49.0002.1921.6800.2002.00
L1router
© 2000, Cisco Systems, Inc. Î
Show clns
L1L2 routers
S0 S1
S1 Rtr-B S0 Rtr-C
Rtr-B#show clns
Global CLNS Information:
2 Interfaces Enabled for CLNS
NET: 49.0001.1921.6800.1001.00
Configuration Timer: 60, Default Holding Timer: 300, Packet Lifetime 64
ERPDU's requested on locally generated packets
Running IS-IS in IP-only mode (CLNS forwarding not allowed)
© 2000, Cisco Systems, Inc. Î|
Show clns protocol
L1router
S0 Rtr-A
S1
IS-IS Router: <Null Tag> Rtr-B
System Id: 1921.6800.1001.00 IS-Type: level-1-2
S0
Manual area address(es):
49.0001 L1L2 routers
Routing for area address(es): S1
49.0001
Interfaces supported by IS-IS: S0 Rtr-C
Serial1 - IP
Serial0 - IP Area 49.0002
Redistribute:
static (on by default) S1
Distance for L2 CLNS routes: 110 Rtr-D
© 2000, Cisco Systems, Inc.
L1router Î
show clns neighbors
L1L2 routers
S0 S1
S1 Rtr-B S0 Rtr-C
© 2000, Cisco Systems, Inc. Î(
Show clns interface
L1router
Rtr-B# show clns int serial1
Serial1 is up, line protocol is up S0 Rtr-A
Checksums enabled, MTU 1500, Encapsulation HDLC
ERPDUs enabled, min. interval 10 msec. Area 49.0001
CLNS fast switching enabled S1
CLNS SSE switching disabled Rtr-B
DEC compatibility mode OFF for this interface
S0
Next ESH/ISH in 47 seconds
Routing Protocol: IS-IS L1L2 routers
Circuit Type: level-1-2 S1
Interface number 0x2, local circuit ID 0x101
Level-1 Metric: 10, Priority: 64, Circuit ID: 1921.6800.1005.00 S0 Rtr-C
Number of active level-1 adjacencies: 1
Level-2 Metric: 10, Priority: 64, Circuit ID: Rtr-B.01 Area 49.0002
Number of active level-2 adjacencies: 0
Next IS-IS Hello in 6 seconds S1
Rtr-D
L1router
© 2000, Cisco Systems, Inc. Î'
Show clns interface
L1router
S0 S1
S1 Rtr-B S0 Rtr-C
© 2000, Cisco Systems, Inc. Î
Show isis database detail
Rtr-B# show isis database 1921.6800.1001.00-00 detail
IS-IS Level-1 LSP Rtr-B.00-00
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
Rtr-B.00-00 * 0x00000020 0x0C24 424 1/0/0
Area Address: 49.0001
NLPID: 0xCC
Hostname: Rtr-B
IP Address: 192.168.1.1
Metric: 0 IP 192.168.1.1 255.255.255.255
Metric: 10 IP 192.168.222.0 255.255.255.0
Metric: 10 IP 192.168.120.0 255.255.255.0
Metric: 10 IS 1921.6800.1005.00
L1router
© 2000, Cisco Systems, Inc. Î*
Show isis spf-log
L1router
S0 Rtr-A
Area 49.0001
S1
Level 2 SPF log
When Duration Nodes Count First trigger LSP Triggers Rtr-B
02:16:54 0 1 1 Rtr-B.00-00 NEWLSP
S0
02:16:44 0 1 1 Rtr-B.00-00 TLVCODE
02:16:34 8 2 3 Rtr-B.00-00 NEWADJ NEWLSP TLVCONTENT L1L2 routers
02:14:29 8 2 3 Rtr-B.00-00 NEWADJ TLVCONTENT
02:14:23 4 2 1 Rtr-C.00-00 TLVCODE S1
02:13:56 8 2 1 Rtr-C.00-00 TLVCONTENT
02:02:59 4 2 1 Rtr-B.00-00 TLVCONTENT Rtr-C
S0
02:01:54 4 2 1 PERIODIC
01:46:54 4 2 1 PERIODIC
01:31:54 4 2 1 PERIODIC Area 49.0002
01:16:54 4 2 1 PERIODIC
01:01:54 4 2 1 PERIODIC S1
00:46:53 4 2 1 PERIODIC
Rtr-D
00:31:53 4 2 1 PERIODIC
00:16:53 4 2 1 PERIODIC
00:01:53 60 2 1 PERIODIC
L1router
© 2000, Cisco Systems, Inc. ü
Show clns traffic
© 2000, Cisco Systems, Inc. ü|
Show clns traffic
L1router
S0 Rtr-A
Rtr-B# show clns traffic
CLNS: Time since last clear: never
CLNS & ESIS Output: 669, Input: 4773 Area 49.0001
CLNS Local: 0, Forward: 0 S1
CLNS Discards: Rtr-B
Hdr Syntax: 0, Checksum: 0, Lifetime: 0, Output cngstn: 0
No Route: 0, Discard Route: 0, Dst Unreachable 0, Encaps. Failed: 0 S0
NLP Unknown: 0, Not an IS: 0
CLNS Options: Packets 0, total 0 , bad 0, GQOS 0, cngstn exprncd 0 L1L2 routers
CLNS Segments: Segmented: 0, Failed: 0 S1
CLNS Broadcasts: sent: 0, rcvd: 0
Echos: Rcvd 0 requests, 0 replies Rtr-C
Sent 0 requests, 0 replies S0
ESIS(sent/rcvd): ESHs: 0/0, ISHs: 669/660, RDs: 0/0, QCF: 0/0
ISO-IGRP: Querys (sent/rcvd): 0/0 Updates (sent/rcvd): 0/0 Area 49.0002
ISO-IGRP: Router Hellos: (sent/rcvd): 0/0
ISO-IGRP Syntax Errors: 0 S1
Rtr-D
IS-IS: Time since last clear: never
IS-IS: Level-1 Hellos (sent/rcvd): 282/0
L1router
© 2000, Cisco Systems, Inc. ü
Show clns traffic
L1router
S0 S1
S1 Rtr-B S0 Rtr-C
S0 S1
S1 Rtr-B S0 Rtr-C
© 2000, Cisco Systems, Inc. ü±
Debug isis spf-triggers
L1router
Rtr-B# debug isis spf-triggers
IS-IS SPF triggering events debugging is on S0 Rtr-A
Rtr-B#
07:32:10: ISIS-Spf: L1 SPF needed, periodic SPF, from 0x356C8DC Area 49.0001
07:32:10: ISIS-Spf: L2 SPF needed, periodic SPF, from 0x356C8DC
Rtr-B#conf t S1
Rtr-B(config)#int serial0 Rtr-B
Rtr-B(config-if)#isis metric 15
Rtr-B(config-if)# ^Z S0
07:38:27: ISIS-Spf: L1 SPF needed, new metric, from 0x3560762
L1L2 routers
Rtr-B(config)#int serial0
Rtr-B(config-if)#shut S1
Rtr-B(config-if)# ^Z
07:39:23: ISIS-Spf: L2, 1921.6800.1001.00-00 TLV contents changed, code 0x2
S0 Rtr-C
07:39:28: ISIS-Spf: L1 SPF needed, L2 attach changed, from 0x357CF36
07:39:28: ISIS-Spf: L1, LSP fields changed 1921.6800.1001.00-00
Area 49.0002
S1
Rtr-D
L1router
© 2000, Cisco Systems, Inc. ü
Lab Topology
L L2 L L2
- -0
L L
.1
-. -/
.1
L
-
© 2000, Cisco Systems, Inc. üÎ
Lab Instructions
© 2000, Cisco Systems, Inc. üü
Lab Exercise
1. What command can be used to confirm the R1 and
R2 are enabled to route IP and CLNS packets?
2. What command did you issue to verify that only an
L2 adjacency was formed between R2 and R3?
3. Is the ATT bit set in area 49.0002? If so, what
command should you use to confirm it has been
set?
4. What command do you use to display the
Pseudonode LSP of the ethernet segment? What is
the metric to each of the nodes listed?
5. Determine if R1 displays the IP subnet of the
ethernet segment in area 49.0002. If it does not
display the route, why not?
© 2000, Cisco Systems, Inc. ü*
+
$
$2% © 2000, Cisco Systems, Inc. *