当前位置:网站首页>2022-06-25 网工进阶(十一)IS-IS-三大表(邻居表、路由表、链路状态数据库表)、LSP、CSNP、PSNP、LSP的同步过程
2022-06-25 网工进阶(十一)IS-IS-三大表(邻居表、路由表、链路状态数据库表)、LSP、CSNP、PSNP、LSP的同步过程
2022-07-03 19:21:00 【鹅一只】
三大表
IS-IS协议与OSPF一样也有三大表。
邻居表
<R3>display isis peer
Peer information for ISIS(1)
System Id Interface Circuit Id State HoldTime Type PRI
-------------------------------------------------------------------------------
R2 GE0/0/0 R3.01 Up 21s L2 64
R5 GE0/0/1 R5.02 Up 7s L2 64
R6 GE0/0/2 R3.03 Up 23s L2 64
Total Peer(s): 3
System Id:邻居设备的系统ID
interface:出接口
circuit id:链路ID,分为2部分组成,第一部分表示DIS路由器,第二部分表示该DIS的第几条链路。
state:当前邻居状态
holdtime:失效时间
type:建立的等级
PRI:接口DIS选举优先级
路由表
<R3>display isis route
Route information for ISIS(1)
-----------------------------
ISIS(1) Level-2 Forwarding Table
--------------------------------
IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags
-------------------------------------------------------------------------------
10.1.0.0/24 20 NULL GE0/0/0 10.1.1.2 A/-/-/-
15.1.0.0/24 30 NULL GE0/0/1 20.1.1.5 A/-/-/-
GE0/0/0 10.1.1.2
20.1.0.0/24 20 NULL GE0/0/1 20.1.1.5 A/-/-/-
30.1.0.0/24 10 NULL GE0/0/2 Direct D/-/L/-
10.1.1.0/24 10 NULL GE0/0/0 Direct D/-/L/-
20.1.1.0/24 10 NULL GE0/0/1 Direct D/-/L/-
Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
U-Up/Down Bit Set
IPV4 Destination:目标网络地址
IntCost:内部开销
ExtCost:外部开销
ExitInterface:出接口
NextHop:下一跳
Flags:标志位,D-直连路由 A-加入到单播路由表中(非骨干区域路由,由level-1-2路由器通告), L-通过LSP发布(本区域路由), S-路径上存在IGP Shortcut, U-Up/Down Bit Set(用于防环)
PS:关于 U-Up/Down Bit Set 标识表示这条lsp的路由本就是另一区域下发/渗透过来的,level-1-2路由器会禁止它再下发回另一区域,避免参数环路
链路状态数据库表
<R3>display isis lsdb
Database information for ISIS(1)
--------------------------------
Level-2 Link State Database
LSPID Seq Num Checksum Holdtime Length ATT/P/OL
-------------------------------------------------------------------------------
R2.00-00 0x0000001e 0xe9f6 1112 126 0/0/0
R3.00-00* 0x00000018 0xeb07 487 128 0/0/0
R3.01-00* 0x0000000f 0xadcb 487 55 0/0/0
R3.03-00* 0x0000000f 0x1063 487 55 0/0/0
R5.00-00 0x00000015 0xdce9 837 126 0/0/0
R5.02-00 0x0000000f 0xd49e 837 55 0/0/0
R6.00-00 0x00000011 0x7436 823 74 0/0/0
Total LSP(s): 7
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
LSPID:LSP标识,分为3部分。第1部分标识产生的路由器。第2部分表示DIS的第几条链路,0代表非DIS。第3部分表示是否分片,范围00-FF。星号表示由本机产生。
Seq Num:链路状态序列号,每次发生拓扑变化就加1。同OSPF
Checksum:校验和。
Holdtime:失效时间。缺省情况下最大1200秒,更新周期900秒。
Length :PDU长度,单位字节。
ATT/P/OL:标志位。ATT-由level-1-2路由器产生,说明始发路由器与其他区域相连, P-支持区域修复 OL-内存不足过载,当过载时,这条LSP将不参与路由计算,可手动设置为过载状态。
相关命令
设置过载
[R1-isis-1]set-overload
设置ATT永远置位(在level-1-2路由器上配置)
[R1-isis-1]attached-bit advertise always
设置ATT永不置位(在level-1-2路由器上配置)
[R1-isis-1]attached-bit advertise never
设置不学习level-1-2路由器因为ATT置位下发的默认路由(在level-1-2路由器相邻的level-1路由器上配置)
[R1-isis-1]attached-bit avoid-learning
查看指定的条目信息
<R3>display isis lsdb verbose 0000.0000.0006.00-00
Database information for ISIS(1)
--------------------------------
Level-2 Link State Database
LSPID Seq Num Checksum Holdtime Length ATT/P/OL
-------------------------------------------------------------------------------
0000.0000.0006.00-00 0x00000014 0x6e39 562 74 0/0/0
SOURCE R6.00
HOST NAME R6
NLPID IPV4
AREA ADDR 49.0002
INTF ADDR 30.1.0.6
NBR ID R3.03 COST: 10
IP-Internal 30.1.0.0 255.255.255.0 COST: 10
Total LSP(s): 1
*(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
ATT-Attached, P-Partition, OL-Overload
SOURCE:来源的条目
HOST NAME:设备名称
NLPID:协议类型
AREA ADDR:区域号
INTF ADDR:接口IP地址
NBR ID:邻居标识符.DIS标识符
IP-Internal:网段信息
LSP
链路状态报文LSP用于交换链路状态信息。
Remaining Lifetime : LSP的生存时间,以秒为单位。
LSP ID:由三部分组成,System ID、伪节点ID和LSP分片后的编号。
Sequence Number: LSP的序列号。在路由器启动时所发送的第一个LSP报文中的序列号为1,以后当需要生成新的LSP时,新LSP的序列号在前一个LSP序列号的基础上加1。更高的序列号意味着更新的LSP。
Checksum : LSP的校验和。
ATT(Attachment):由Level-1-2路由器产生,用来指明始发路由器是否与其它区域相连。虽然此标志位也存在于Level-1和Level-2的LSP中,但实际上此字段只和Level-1-2路由器始发的L1 LSP有关。
OL(LSDB Overload,1bit):过载标志位。设置了过载标志位的LSP虽然还会在网络中扩散,但是在计算通过超载路由器的路由时不会被采用。即对路由器设置过载位后,其它路由器在进行SPF计算时不会考虑这台路由器。当路由器内存不足时,系统自动在发送的LSP报文中设置过载标志位。
IS Type(2bit):生成LSP的路由器的类型。用来指明是Level-1还是Level-2路由器(01表示Level-1,11表示Level-2)。
抓包观察
1.PDU长度:126字节
2.生存时间:1198秒
3.LSP-ID:0000.0000.0005.00-00
4.链路状态序列号: 0x00000000f
5.校验和:0x09c3
6.校验状态:good
7.生成LSP的路由器的类型:标志位全0,等级2的LSP(3表示二级制11也就是等级2)
8.指示协议类型
9.指示区域号
10.指示产生路由器的名字
11.指示产生路由器的系统ID和DIS条目号
12.指示产生路由器的接口信息
13.本LSP包含的网段信息
CSNP
CSNP包含该设备LSDB中所有的LSP摘要,路由器通过交互 CSNP来判断是否需要同步LSDB。
在广播网络上,CSNP由DIS定期发送(缺省的发送周期为10秒)。
在点到点网络上,CSNP只在第一次建立邻接关系时发送。
Source ID:发出CSNP报文的路由器的System ID。
Start LSP:CSNP报文中第一个LSP的ID值。
End LSP ID:CSNP报文中最后一个LSP的ID值。
抓包观察
1.PUD长度:147字节
2.本报文的源路由system ID:0000.0000.0003
3.源路由的链路标识符:00
4.第一个LSP ID值:0000.0000.0000.00-00
5.最后一个LSP ID值:ffff.ffff.ffff.ff-ff
6.源路由包含的LSP的列表
PSNP
PSNP只包含部分LSP的摘要信息(与CSNP不同)
广播网中当发现LSDB不同步时(加入新设备后),PSNP来请求邻居发送新的LSP。
在点到点的网络中,当收到LSP时,使用PSNP对收到的LSP进行确认。
Source ID:发出PSNP报文的路由器的System ID。
抓包观察
1.PDU长度:99字节
2.本报文的源路由system ID:0000.0000.0007
3.源路由的链路标识符:00
4.源路由包含的LSP的列表
LSP的同步过程
1.R3向发送HELLO后建立邻接关系。再发送本机的LSP。
2.DIS收到R3的LSP后加入到LSDB中。再发送CSNP。
3.R3收到CSNP后对比自己的LSDB。再发送PSNP请求缺少的部分。
4.DIS收到PSNP后将这部分LSP发送给R3。
PS:点到点的网络与广播网的同步过程类似。
边栏推荐
- Thinking about festivals
- Luogu-p1107 [bjwc2008] Lei Tao's kitten
- EGO Planner代码解析bspline_optimizer部分(2)
- Smart wax therapy machine based on STM32 and smart cloud
- Record: pymysql is used in pycharm to connect to the database
- [leetcode] [SQL] notes
- FBI warning: some people use AI to disguise themselves as others for remote interview
- Record: MySQL changes the time zone
- Yolov3 network model building
- 记录在模拟器中运行flutter时报的错
猜你喜欢
我們做了一個智能零售結算平臺
The necessity of lean production and management in sheet metal industry
第二章:基于分解的求水仙花数,基于组合的求水仙花数, 兰德尔数,求[x,y]内的守形数,探求n位守形数,递推探索n位逐位整除数
Foundation of ActiveMQ
Chapter 1: recursively find the factorial n of n!
【光学】基于matlab介电常数计算【含Matlab源码 1926期】
第一章:拓广同码小数和s(d, n)
The earliest record
Chapter 1: extend the same code decimal sum s (D, n)
ActiveMQ的基础
随机推荐
Zhang Fei hardware 90 day learning notes - personal records on day 2, please see my personal profile / homepage for the complete
This Chinese numpy quick look-up table is too easy!
Sentinel source code analysis part I sentinel overview
Webrtc[41] - Analysis of the establishment process of webrtc transmission channel
Read the paper glodyne global topology preserving dynamic network embedding
Simulation scheduling problem of SystemVerilog (1)
Thesis study - 7 Very Deep Convolutional Networks for Large-Scale Image Recognition (3/3)
Chapter 2: 4-digit Kaplan number, search even digit Kaplan number, search n-digit 2-segment sum square number, m-digit ingenious square number without 0, specify the number to form a 7-digit square nu
Find the median of two positive arrays
Using the visualization results, click to appear the corresponding sentence
Record: MySQL changes the time zone
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
Streaming media server (16) -- figure out the difference between live broadcast and on-demand
【Proteus仿真】用24C04与1602LCD设计的简易加密电子密码锁
Summary of composition materials for 2020 high-frequency examination center of educational resources
P1891 crazy LCM (Euler function)
What is the content of game modeling
The way to treat feelings
TFs and SVN [closed] - TFs vs SVN [closed]
High concurrency Architecture - distributed search engine (ES)