IS-IS

来源:互联网 发布:ae软件培训班 编辑:程序博客网 时间:2024/04/30 22:19
The IS-iS Protocol

Introducing IS-IS and Integrated IS-IS Routing
IS-IS -----------------OSI

OSPF ----------------TCP/IP

IS-IS



Large ISPs
Stable protocol
Originally deployed by ISPs because U.S. government mandatedInternet support of OSI and IP
 
IS-IS Routing
IS = router
IS-IS was originally designed as the IGP for theConnectionless Netwrok Service(CLNS),part of the
OSI protocol sulte.
The OSI protocol sulte layer 3 protocol is the ConnectionlessNetwork Protocol(CLNP).
IS-IS uses CLNS address to identify routers and build theLSDB.

IS-IS Features
Link-state routing protocol
Supports VLSM
Uses DIJkstra's SPF algorithm; has fast covergence
Uses hellos to establish adjacencies and LSPs to exchange link-state Information
                                 PDU(协议数据单元,7种PDU APDU PPDU SPDU SEG Packet Frame Bit)
Efficient use of bandwidth,memory,and processor
Supports two routing levels:
       Level1:Build common topology of system IDs inlocal area and routes within area using lowest cost path.
        Level2:Exchanges prefixinformation 
        (area addresses)betweenareas.Routers traffic to area using lowest-cost path.
 
IS-IS



IS-IS Link-State Operation
Routers are identified as Level 1,Level 2, or Level1-2:
  Level 1 routers use LSPs to buildtopology for local area.
  Level 2 routers use ISPs to build topologybetween different areas.
  Level 1-2 routers act as border routersbetween Level 1 and Level 2 routing domains.
 
默认为Level1-2.
所有连续L2L1-2,路由器的集合,构成IS-IS主干区域,

Integrated (or Dual) IS-IS Routing
  Integrated IS-IS is IS-IS for multipleprotocols:
      --For IP,CLNS,or both
  Uses Its own PDUs to transport IP routinginformation;
  updates not sent in IP packets
  Requires CLNS addresses,even if onlyrouting for IP.

Integrated IS-IS Design Principles

 

IS-IS


Issues with Integrated IS-IS
IS-IS

Default narrow metrics are limited to 6-bit interface and 10-bitpath metric
    In Cisco IOS SoftwareRelase 12.0,wide metrics allow 24bit interface and 32-bit pathmetric.
Cisco IOS software has default metric of 10 on allinterfaces.
 
Metric:范围0-63  Metric:1024,
 
End System-to-Intermediate System
 
IS-IS
Four OSI Routing Levels

 

IS-IS


Similarities Between IS-IS and OSPF
Integrated IS-IS and OSPF are both open standard link-stateprotocols with the following simllar features:
   Link-state representation,aging timers,and LSDBsynchronization
    SPFalgorlthms
   Update,decision,and flooding  processes
    VLSMsupport
Scalabillty of link-state protocols has been proven (used inISP backbones).
They both coverge quickly after changes.
 
周期更新 
OSPF:30   60   
IS-IS: 15   20
触发更新

Integrated IS-IS vs. OSPF:Area Design
 OSPF is based on a central backbone with allother areas attached to it.
     In OSPF the brother is inside rouers(ABRs).
     Each link belongs to one area.
 
IS-IS

Integrated IS-IS vs.OSPF:Area Design (Cont.)
IS-IS

In IS-IS the area borders lie on links
     Each IS-IS router belongs to exactly one area.
     IS-IS more flexible when extending the backbone.
 
 Advantages of IntegratedIS-IS
IS-IS
Advantages of OSPF
OSPF has more features,including:
     Has three area types:mormal,stub,and NSSA
     Defaults to scaled metric(IS-IS always 10)
OSPF is supported by many vendors.
Information,examples,and experienced engineers are easier tofind.
 
Summary
IS-IS is a popular routing propocol in the ISP industry.
IS-IS is a stable,fast-converging IGP that is positioned toroute IPv4,CLNS,or IPv6.
All IS-iS interfaces have a default metrin of 10.
ES-IS (for CLNS routing only) provides discovery between hostand routers using hello packets to from adjacencies.Hosts sendESHs,while routers send ISHs.
OSI defines routing levels 0 through 3.Level 0 is between ESand IS.Level1 and 2 are between IS and IS to support intradomainrouting .Level3 supports interdomain routing.
  Level 1 is intra-area.
  Level 2 is interarea.
IS-IS and OSPF are both open-standard link-state routingprotocols that support VLSM,scalability,and quickconvergence.
 
OSIAddresses 
Integrated IS-IS NSAP Address Structure
IS-IS

IDP(Initial Domain Part)
    AFI(Authority FormatID)                      [1Byte]
    49(私有)
    IDI(Intial DomainID)                         [Variable-Length]
     47.0005
     47.0006
 
 
DSP(Domain Sepcific Part)
HODSP(Area)                                            [Variable-Length]
SystemID                                                    [6Bytes]
NSAP-Selector (0x00)                                [1Byte]
 
 
202.1.3.10        
202.001.003.010
2020.0100.3010
 
NSAP :49.0001.0001.0001.0001.00
The Cisco implementation of Integrated IS-IS distinguishesonly the following three fields in the NSAP address:
    Area address:Variable-length field (1 to 13 octets)
         composed of the higher-order NSAP octets, excluding system ID andNSEL.
     SystemID: ES or IS identifier in an area;fixed length
      ofsix octets in Cisco IOS software.
     NSEL:One octet NSAP selecor,service identifier.
Total length of NSAP is from 8 (minimum) to 20 octets(maximum).
 
Typical NSAP Address Structure
The simplest NSAP format used by most companies
running IS-IS as their IGP is as follows:
Area address (must be at least 1 byte)
     --AFI set to 49
           Locally administered;thus ,you can assign your own addresses.
     --Area ID
           The octets of the area address after the AFI
System ID
    ---Cisco routers require a 6-bytes system ID.
NSEL
     ---Always set to 0 for a router.
 
Identifying Systems in IS-IS Areaaddress
IS-IS
The area address uniquely identifies the routing area,and thesystem ID identifies each node.
     All routers within an area must use the same area adress.
     An ES may bi adjacent to a router only if they share a common areaaddress.
     Area address is used in Level2 routing.

Identifying Systems in IS-IS :System ID
IS-IS

System ID in the address used to identify the IS: it si notjust an interface.Cisco supports only a 6-byte system ID.
System ID is used in Level 1 routing and has bo be uniquewithin an area.
System ID has to be unique within Level 2 routers that fromthe routing domain
General recommendation:use domain-wide unique system ID.
     This may be MAC (for example,0000.0c12,3556) or IP address (forexample:1921.6800.0001)taken from an interface.
 
OSI Addressing:NET Addresses
NSAP address includes NSEl field(process or port number)
NET:NSAP with a NSEL field of 0
     Refers to the device itself(equivalent tothe Layer 3 OSI address of the devce)
     Used in routers because they implement the network layer only(basefor SPF calculation)
 
Subnetwork Point of Attachment(SNPA) and Circuit ID
SNAP is equivalent to Layer 2 address:for example:
     Virtual circuit ID (DLCI on Frame Relay)
     MAC address on LAN interfaces
Interfaces uniquely identified by circuit ID:
     On point -to-point interfaces,SNPA is used.
     On LANs,circuit ID concatenated with six-octet system ID of adesignated IS to form seven-octet LAN ID (forexample,1921.68000001.01) is used.
Cisco routers use hostname instead of system ID (forexample,R1.01).
 
 
配置例子
IS-IS

 
R1#show clns neighbors
SystemId     Interface  SNPA               State  Holdtime Type    Protocol
R2                  Se2/1      *HDLC*             Up    26            L1L2       IS-IS
R3                  Se2/0      *HDLC*             Up    21              L2          IS-IS
 
R1#show isis hostname
Level  SystemID     Dynamic Hostname  (notag)
    2222.2222.2222 R2
    3333.3333.3333 R3
    * 1111.1111.1111 R1
 
提示邻居变化信息
R1(config-router)#log-adjacency-changes all
 
R1#show clns is-neighbors
SystemId     Interface  State Type   Priority   CircuitId        Format
R2                 Se2/1      Up      L1L2     0/0          00                   PhaseV
R3                Se2/0      Up        L2                      00                  Phase V
 
 
R1#show clns interface s2/1
Serial2/1 is up, line protocol is up
  Checksums enabled, MTU 1500, EncapsulationHDLC
  ERPDUs enabled, min. interval 10 msec.
  CLNS fast switching disabled
  CLNS SSE switching disabled
  DEC compatibility mode OFF for thisinterface
  Next ESH/ISH in 32 seconds
  Routing Protocol: IS-IS
    CircuitType: level-1-2
   Interface number 0x2, local circuit ID 0x102
   Neighbor System-ID: R2
    Level-1Metric: 10, Priority: 64, Circuit ID:R2.01
    Level-1 IPv6Metric: 10
    Number ofactive level-1 adjacencies: 1
    Level-2Metric: 10, Priority: 64, Circuit ID: R2.01
    Level-2 IPv6Metric: 10
    Number ofactive level-2 adjacencies: 1
    Next IS-ISHello in 1 seconds
    if stateUP
 
R1#show clns interface s2/0
Serial2/0 is up, line protocol is up
  Checksums enabled, MTU 1500, EncapsulationHDLC
  ERPDUs enabled, min. interval 10 msec.
  CLNS fast switching disabled
  CLNS SSE switching disabled
  DEC compatibility mode OFF for thisinterface
  Next ESH/ISH in 12 seconds
  Routing Protocol: IS-IS
    CircuitType: level-1-2
    Interfacenumber 0x1, local circuit ID 0x101
   Neighbor System-ID: R3
    Level-1Metric: 10, Priority: 64, Circuit ID: R3.01
    Level-1 IPv6Metric: 10
    Number ofactive level-1 adjacencies: 0
    Level-2Metric: 10, Priority: 64, Circuit ID: R3.01
    Level-2 IPv6Metric: 10
    Number ofactive level-2 adjacencies: 1
    Next IS-ISHello in 4 seconds
    if stateUP
 
R1#show clns interface l0 
Loopback0 is up, line protocol is up
  Checksums enabled, MTU 1514, EncapsulationLOOPBACK
  ERPDUs enabled, min. interval 10 msec.
  CLNS fast switching disabled
  CLNS SSE switching disabled
  DEC compatibility mode OFF for thisinterface
  Next ESH/ISH in 46 seconds
  Routing Protocol: IS-IS
    CircuitType: level-1-2
    Interfacenumber 0x0, local circuit ID 0x100
   Level-1 Metric: 10, Priority: 64, Circuit ID: R1.00
    Level-1 IPv6Metric: 10
    Number ofactive level-1 adjacencies: 0
    Level-2Metric: 10, Priority: 64, Circuit ID: R1.00
    Level-2 IPv6Metric: 10
    Number ofactive level-2 adjacencies: 0
    Next IS-ISHello in 2 seconds
    if stateDOWN
 
R1#show clns protocol
IS-IS Router:
  System Id: 1111.1111.1111.00 IS-Type: level-1-2
  Manual area address(es):
       49.0001
  Routing for area address(es):
       49.0001
  Interfaces supported by IS-IS:
       Serial2/1 - IP
       Serial2/0 - IP
       Loopback0 - IP
  Redistribute:
    static (onby default)
  Distance for L2 CLNS routes: 110
  RRR level: none
  Generate narrow metrics: level-1-2
  Accept narrowmetrics:   level-1-2
  Generate widemetrics:   none
  Accept widemetrics:    none
 
R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B- BGP
      D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF interarea
      N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type2
      E1 - OSPF external type 1, E2 - OSPF external type 2
      i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-ISlevel-2
      ia - IS-IS inter area, * - candidate default, U - per-user staticroute
      o - ODR, P - periodic downloaded static route, H - NHRP, l -LISP
      a - application route
      + - replicated route, % - next hop override
Gateway of last resort is not set
     1.0.0.0/24 is subnetted, 1 subnets
iL1    1.1.1.0 [115/20] via 12.1.1.1,00:04:19, Serial2/0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      2.2.2.0/24 is directly connected, Loopback0
      2.2.2.2/32 is directly connected, Loopback0
     3.0.0.0/24 is subnetted, 1 subnets
iL2    3.3.3.0 [115/30] via 12.1.1.1,00:04:19, Serial2/0
     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      12.1.1.0/24 is directly connected, Serial2/0
      12.1.1.2/32 is directly connected, Serial2/0
     13.0.0.0/24 is subnetted, 1 subnets
iL1    13.1.1.0 [115/20] via 12.1.1.1,00:04:19, Serial2/0
 
更改R2的S2/0接口metric值
R2(config)#interface s2/0
R2(config-if)#isis metric 5
 
清邻居
R1#clear isis *
R1#clear clns neighbors
 
Level 1,Level2,and Level 1-2 Routers
Level1 (like OSPF internal nonbackbone routers):
     intra-area routing enables ESs to communicate.
     Level 1 area is a collection of Level 1 and Level 1-2routers.
     Level 1 IS keeps copy of the Level 1 areaLSDB
Level 1-2 (like OSPF ABR):
     Intra-area and interarea routing.
     Level 1-2 IS keeps separate Level 1 and Level 2 LSDBs and
     advertises default route to Level 1 routers.
Level2(like OSPF backbone routers);
     Interarea routing.
     Level 2(backbone) area is a contiguous set of Level1-2
     and Level 2 routers.
     Level 2 IS keeps a copy of the Level 2 area LSDB
 
Addressing and Routing
Area address is used to route between areas;system ID is notconsidered.
System ID is used to route within an area; area address is notconsidered.
 
OSI IS-IS Routing Logic
Level 1 router:For a destination address,compare
the area address to this area.
     if not equal,pass to nearest Level 1-2 router.
     if wqual,use Level 1 database to route by system ID.
Level 1-2 router: For a destination address,compare
the area address to this area.
     if not equal,use Level 2 database to route by area address.
     if equal,use Level 1 database to route by system ID.
IS-IS

IS-IS

 
 
 优化
R2改为level-1,R3改成L2
R2(config-router)#is-type level-1
 
 
 R1#show clns neighbors
SystemId     Interface  SNPA               State  Holdtime  TypeProtocol
R2            Se2/1      *HDLC*             Up    23       L1  IS-IS
R3            Se2/0      *HDLC*             Up    24       L2  IS-IS
 
增加了一条默认路由
R2#show ip route
 Gateway of last resort is 12.1.1.1 to network0.0.0.0
i*L1  0.0.0.0/0[115/10] via 12.1.1.1, 00:03:10,Serial2/0
     1.0.0.0/24 is subnetted, 1 subnets
iL1    1.1.1.0 [115/20] via 12.1.1.1, 00:07:10, Serial2/0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      2.2.2.0/24 is directly connected, Loopback0
      2.2.2.2/32 is directly connected, Loopback0
     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      12.1.1.0/24 is directly connected, Serial2/0
      12.1.1.2/32 is directly connected, Serial2/0
     13.0.0.0/24 is subnetted, 1 subnets
iL1    13.1.1.0 [115/20] via 12.1.1.1, 00:07:10, Serial2/0
 
IS-IS

R1向内部区域公告Level1, LSP的Attached置1
产生默认路由条件
     1、R1连接多个区域
     2、R1、必须是L1-L2
     3、R2、必须是L1
 
R3#show ip route
Gateway of last resort is not set
     1.0.0.0/24 is subnetted, 1 subnets
iL2    1.1.1.0 [115/20] via 13.1.1.1, 00:15:37,Serial2/1
     2.0.0.0/24 is subnetted, 1 subnets
iL2    2.2.2.0 [115/30] via 13.1.1.1, 00:15:37, Serial2/1
     3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      3.3.3.0/24 is directly connected, Loopback0
      3.3.3.3/32 is directly connected, Loopback0
     12.0.0.0/24 is subnetted, 1 subnets
iL2    12.1.1.0 [115/20] via 13.1.1.1, 00:15:37, Serial2/1
     13.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
      13.1.1.0/24 is directly connected, Serial2/1
      13.1.1.3/32 is directly connected, Serial2/1
Level-2路由器有全网路由。
 
根据接口配置路由器类型
R2(config-if)#isis circuit-type level-1
 
Route Leaking
Available since Cisco IOS Software Release 12.0
Helps reduce suboptimal routing by allowing Level2
information to be leaked into Level 1
Uses up/down bit in Type,Length,and Value(TLV)field
  
路由泄漏命令
R1(config-router)#isis ip level-2  intolevel-1 distribute-list 100
 
OSI PDUs
PDUs between peers:
     Network PDU = datagram,packet
     Data-link PDU = frame
     Examples:
      
IS-IS PDUs
IS-IS PDUs are encapsulated directly into a data-linkframe.
There is no CLNP or IP header in a PDU.
IS-IS PDUs are as follows:
     Hello(ESH,ISH,IIH)
     LSP
     PSNP(partial sequence number PDU)
     CSNP(complete sequence number PDU)
 
A Link-State Packet Represents Router
Router describes itself with an LSP
LSP header contents
include:
     PDU type,length,LSP ID,
     sequence number,
     remaining lifttime
TLV variable-length fields:
     IS neighbors
     ES neighbors
     Authenticaton
     information
     ......
 
LSP Header
LSPs are sequenced to prevent duplicaation ofLSPs.
     Assists with synchronizaton.
     Sequence numbers begin at 1.
     Sequence numbers are increased to indicate
     the newest LSP.
LSPs in LSDB have a remaining lifttime.
     Allows synchronization.
     Decreasing timer.
LSP TLV EXamples
Each set of information,called a "tuple," includes a typecode,
Length field,and value
 
IS-IS Network Representation
Generally,physical links can be placed in the followingtwo
groups:
------         addressingof a group of attached systems
        Point-to-poing,Permanent or dynamically established
        links
Only two link-state representations are avilable inIS-IS:
       Broadcast for LANs and multipoint WANs
       Point-to-point for all other topologies
IS-IS has no concept of NBMA netwroks.
 
 
Broadcast Mode
Used for LAN and multipoint WAN interfaces.
Adjacency is recognized  throughhellos;separate
adjacencies for Level 1 and Level2.
Designated IS (DIS) creates a pseudonode and representsLAN.
DIS for Level 1 and Level 2 may bedifferent.
     Only routers with adjacencies are eligible.
     Highest interface priority.
     Highest SNPA (MAC) breaks ties.
There is no backup DIS.
 
 
以太网优先级
R2#show clns is-neighbors
SystemId     Interface  State  Type Priority  CircuitId        Format
R1            Et0/0      Up    L1L264/64    R2.01             Phase V
R1            Se2/0      Up    L1L2 0/0     02                Phase V
 
 
R1#show clns is-neighbors
SystemId     Interface  State  Type Priority  CircuitId        Format
R2            Et0/1      Up    L1L264/64    R2.01             Phase V
R2            Se2/1      Up    L1L2 0/0     01                Phase V
R3            Se2/0      Up    L2         00                Phase V
 
R1(config-if)#isis priority 66
 
R2#show clns is-neighbors
SystemId     Interface  State  Type Priority  CircuitId        Format
R1            Et0/0      Up    L1L266/66    R1.01             Phase V
R1            Se2/0      Up    L1L2 0/0     02                Phase V
 
 
R1#show clns is-neighbors
SystemId     Interface  State  Type Priority  CircuitId        Format
R2            Et0/1      Up    L1L264/64    R1.01             Phase V
R2            Se2/1      Up    L1L2 0/0     01                Phase V
R3            Se2/0      Up    L2         00                Phase V
 
 
 
R1#show isis database
IS-IS Level-1 Link State Database:
LSPID                LSP Seq Num  LSP Checksum  LSPHoldtime     ATT/P/OL
R1.00-00           * 0x00000006  0xE0A0       562              1/0/0
R1.01-00           * 0x00000001  0xBFFC       562              0/0/0
R2.00-00             0x00000007  0xDD41       560              1/0/0
R2.01-00             0x00000001  0x939A       0(562)          0/0/0
IS-IS Level-2 Link State Database:
LSPID                LSP Seq Num  LSP Checksum  LSPHoldtime     ATT/P/OL
R1.00-00           * 0x00000006  0x62B5       562              0/0/0
R1.01-00           * 0x00000001  0x4FF5       562              0/0/0
R2.00-00             0x00000006  0x7107       560              0/0/0
R2.01-00             0x00000001  0x939A       0(562)          0/0/0
R3.00-00             0x00000003  0xEBC9       714              0/0/0
 
 
R1#show isis database verbose
IS-IS Level-1 Link State Database:
LSPID                LSP Seq Num  LSP Checksum  LSPHoldtime     ATT/P/OL
R1.00-00           * 0x00000006  0xE0A0       455              1/0/0
  Area Address: 49.0001
 NLPID:       0xCC
  Hostname: R1
  IP Address:  1.1.1.1
  Metric:10        IP 1.1.1.0 255.255.255.0
  Metric:10        IP 13.1.1.0 255.255.255.0
  Metric:10        IP 12.1.1.0 255.255.255.0
  Metric:10        IP 100.1.1.0 255.255.255.0
  Metric:10        IS R1.01
  Metric:10        IS R2.00
R1.01-00           * 0x00000001  0xBFFC       455              0/0/0
  Metric:0         IS R1.00
  Metric:0         IS R2.00
R2.00-00             0x00000007  0xDD41       453              1/0/0
  Area Address: 49.0001
 NLPID:       0xCC
  Hostname: R2
  IP Address:  2.2.2.2
  Metric:10        IP 2.2.2.0 255.255.255.0
  Metric:10        IP 12.1.1.0 255.255.255.0
  Metric:10        IP 100.1.1.0 255.255.255.0
  Metric:10        IS R1.01
  Metric:10        IS R1.00
R2.01-00             0x00000001  0x939A       0(455)          0/0/0
IS-IS Level-2 Link State Database:
LSPID                LSP Seq Num  LSP Checksum  LSPHoldtime     ATT/P/OL
R1.00-00           * 0x00000007  0x60B6       1194             0/0/0
  Area Address: 49.0001
 NLPID:       0xCC
  Hostname: R1
  IP Address:  1.1.1.1
  Metric:10        IS R1.01
  Metric:10        IS R2.00
  Metric:10        IS R3.00
  Metric:10        IP 1.1.1.0 255.255.255.0
  Metric:20        IP 2.2.2.0 255.255.255.0
  Metric:10        IP 12.1.1.0 255.255.255.0
  Metric:10        IP 13.1.1.0 255.255.255.0
  Metric:10        IP 100.1.1.0 255.255.255.0
R1.01-00           * 0x00000001  0x4FF5       455              0/0/0
  Metric:0         IS R1.00
  Metric:0         IS R2.00
R2.00-00             0x00000006  0x7107       453              0/0/0
  Area Address: 49.0001
 NLPID:       0xCC
  Hostname: R2
  IP Address:  2.2.2.2
  Metric:10        IS R1.01
  Metric:10        IS R1.00
  Metric:20        IP 1.1.1.0 255.255.255.0
  Metric:10        IP 2.2.2.0 255.255.255.0
  Metric:20        IP 13.1.1.0 255.255.255.0
  Metric:10        IP 100.1.1.0 255.255.255.0
R2.01-00             0x00000001  0x939A       0(455)          0/0/0
R3.00-00             0x00000003  0xEBC9       607              0/0/0
  Area Address: 49.0003
 NLPID:       0xCC
  Hostname: R3
  IP Address:  3.3.3.3
  Metric:10        IS R1.00
  Metric:10        IP 3.3.3.0 255.255.255.0
  Metric:10        IP 13.1.1.0 255.255.255.0
 
 
 
                                                PSNP                                 CSNP
Broadcast                    Request (LSR)                      由DIS每10秒发一次
Point-toPoint             ACK                                            邻居建立只发一次 
 
原创粉丝点击