ISIS | 广播网络中的 ISIS 伪节点 LSP

注:本文为 “ISIS | 伪节点 LSP” 相关合辑。
英文引文,机翻未校。
中文引文,略作重排。
如有内容异常,请看原文。


ISIS in Broadcast Network and Pseudonode LSP

广播网络中 的 ISIS 伪节点 LSP

ISIS in broadcast network is the topic of this section.

本节的主题是广播网络中的 ISIS。

we have seen that in ISIS routing protocol, each router advertises exactly one LSP to advertise its IP and topology information. On the broadcast network, there is an additional LSP with the name of pseudonode LSP which is advertised by DIS.

我们了解到在 ISIS 路由协议中,每个路由器会发布一个 LSP 来宣传其 IP 和拓扑信息。在广播网络中,还有一个额外的 LSP,名为伪节点 LSP,由 DIS 发布。

In this section we will discuss how psudonode LSP reduces the overhead of the ISIS database exchange process.

在本节中,我们将讨论伪节点 LSP 如何减少 ISIS 数据库交换过程的开销。

ISIS in Broadcast Network

为了更好地理解广播网络中的 ISIS 数据库交换LSP 数据包 的概念,我们首先将其与 OSPF 进行比较。

OSPF in Broadcast Network

If you remember, in OSPF there is a router called DR whose main task is to advertise the broadcast network topology.

如果你还记得,在 OSPF 中有一个名为 DR 的路由器,其主要任务是 宣传广播网络的拓扑结构

OSPF Database Exchange Process in Broadcast Network

OSPF Database Exchange Process in Broadcast Network
广播网络中 OSP F数据库交换过程

此外,广播网络中相邻路由器之间的数据库交换是通过 DR 路由器完成的,而不是每两个相邻路由器之间一对一进行。

The multicast address 224.0.0.6 is reserved for DR router. All routers on the broadcast network send database information to DR only (by sending to the address 224.0.0.6) and DR router is responsible for advertising database information to all neighboring routers on the broadcast network (by sending to the address 224.0.0.5). And in this way, the database information is advertised indirectly between all the routers of the broadcast network.

为 DR 路由器预留了多播地址 224.0.0.6。广播网络中的所有路由器只向 DR 发送数据库信息(通过发送到地址 224.0.0.6),而 DR 路由器负责将数据库信息宣传到广播网络中的所有相邻路由器(通过发送到地址 224.0.0.5)。通过这种方式,数据库信息在广播网络的所有路由器之间间接传播。

To ensure the correct operation of OSPF in the broadcast network, there is another router called BDR, which, in addition to DR, also listens to the multicast address 224.0.0.6 as a backup, and if the DR router fails, BDR replaces DR and a new BDR will be selected.

为了保证 OSPF 在广播网络中的正常运行,除了 DR 之外,还有一台名为 BDR 的路由器,它也会作为备份侦听组播地址 224.0.0.6,如果 DR 路由器出现故障,BDR 会代替 DR,并选择新的 BDR。

ISIS in Broadcast Network

In ISIS protocol there is also a router called DIS (Designated IS), whose naming similarity with DR conveys the idea of the same functionality of DR and DIS, but the fact is that there are also some differences between them.

在 ISIS 协议中,也有一个名为 DIS(指定 IS)的路由器,其名称与 DR 相似,给人一种 DR 和 DIS 功能相同的印象,但实际上它们之间也存在一些差异。

ISIS Database Exchange in Broadcast network

ISIS Database Exchange in Broadcast network
广播网络中的 ISIS 数据库交换

With ISIS, like OSPF, a router named DIS is elected in broadcast networks, but unlike OSPF, there is no backup router with the name of BDIS, and there is in principle no need for such a router. Why?

与 OSPF 类似,ISIS 在广播网络中也会选举一个名为 DIS 的路由器,但与 OSPF 不同的是,ISIS 中没有名为 BDIS 的备份路由器,原则上也不需要这样的路由器。为什么呢?

In ISIS there is no special multicast address for DIS router. If you remember, ISIS packets are encapsulated directly on data link layer and all ISIS LSP Level 1 packets are advertised to MAC address 0180.c200.0014 and LSP Level 2 packets to MAC address 0180.c200.0015.

ISIS 中没有为 DIS 路由器设置特殊的多播地址。如果你还记得,ISIS 数据包直接在数据链路层封装,所有 ISIS LSP Level 1 数据包都宣传到 MAC 地址 0180.c200.0014,而 LSP Level 2 数据包宣传到 MAC 地址 0180.c200.0015。

The DIS router helps to unify the database of broadcast network routers in different ways.

DIS 路由器通过不同的方式帮助统一广播网络中路由器的数据库。

The DIS router sends the CSNP packet containing the list of database information every 10 seconds. The timer is also configurable. Each of the routers within the broadcast network, upon receiving the CSNP packet, compares the information to its own database. One of the following three situations occurs:

DIS 路由器每 10 秒发送一次包含数据库信息列表的 CSNP 数据包。该计时器也是可配置的。广播网络中的每个路由器在收到 CSNP 数据包后,会将其信息与自身的数据库进行比较。可能出现以下三种情况之一:

  • If the CSNP information is the same with router’s database information, the router does not take any action because it means that the router’s database is up to date.
  • 如果 CSNP 信息与路由器的数据库信息一致,则路由器不会采取任何操作,因为这意味着路由器的数据库是最新的。
  • If the information in the router’s database is not up-to-date, that router sends a request for LSP information that is not present in its own database by sending PSNP. The lower sequence number indicates that the LSP is not up-to-date.
  • 如果路由器的数据库信息不是最新的,该路由器会通过发送 PSNP 请求其数据库中不存在的 LSP 信息。较低的序列号表明 LSP 不是最新的。
  • If the DIS router’s LSP sequence number is smaller than any of the routers in the broadcast network, the router with the higher sequence number send the LSP and updates the DIS database information.
  • 如果 DIS 路由器的 LSP 序列号小于广播网络中的任何路由器,序列号较高的路由器将发送 LSP 并更新 DIS 的数据库信息。

Therefore, the DIS router helps routers ensure their database is up to date by regularly sending the list of database information, and if the database information of any of the broadcast network routers or the DIS router is not up to date, they will update each other by sending LSP.

因此,DIS 路由器通过定期发送数据库信息列表帮助路由器确保其数据库是最新的。如果广播网络中的任何路由器或 DIS 路由器的数据库信息不是最新的,它们将通过发送 LSP 互相更新。

ISIS LSP Acknowledgement in Broadcast network

广播网络中的 ISIS LSP 确认

If you remember, in Point-to-Point networks, after sending LSP, routers acknowledge each other by sending PSNP packet.

如果你还记得,在点到点网络中,路由器在发送 LSP 后,会通过发送 PSNP 数据包相互确认。

ISIS LSP Acknowledgement

ISIS LSP Acknowledgement
ISIS LSP 确认

In broadcast networks, no separate acknowledgment is sent from either routers or DIS router, but routers are informed of their database status with receiving CSNPs, sent periodically by DIS router.

在广播网络中,路由器和 DIS 路由器都不会发送单独的确认信息,但路由器会通过接收 DIS 路由器定期发送的 CSNP 来了解其数据库状态。

If any of the routers on the broadcast network have an out-of-date database, they request it by sending PSNP.

如果广播网络中的任何路由器的数据库过时,它们会通过发送 PSNP 请求更新。

If database of DIS router’s is not up-to-date, normal router on the broadcast network will send an LSP to update the DIS router’s database.

如果 DIS 路由器的数据库不是最新的,广播网络中的普通路由器将发送一个 LSP 来更新 DIS 路由器的数据库。

DIS Election Process in ISIS

问题是,广播网络中的 DIS 路由器是如何被选中的呢?为了选择 DIS,将按以下顺序执行以下步骤:

  1. A router whose interface priority has a higher value in the broadcast network.

    在广播网络中,接口优先级值较高的路由器。

    The range of priority on the interface is from 0 to 127 and all values are valid. This is unlike OSPF protocol where a value of zero in the priority means that the router should not be DR or BDR.

    接口优先级的范围是从 0 到 127,所有值都是有效的。这与 OSPF 协议不同,在 OSPF 中,优先级为零的值意味着该路由器不应成为 DR 或 BDR。

DIS Election process in ISIS in Broadcast Network

DIS Election process in ISIS
ISIS 的选举过程

We use the “isis priority” command to configure the priority.

我们使用 “isis priority” 命令来配置优先级。

interface Ethernet0/0isis priority 100 level-1

如你所见,优先级值可以分别针对 Level 1 和 Level 2 进行配置。The router with the largest SNPA.

具有最大 SNPA 的路由器。

If you remember, SNPA address in CLNS network is a layer 2 address tied to each interface.

如果你还记得,CLNS 网络中的 SNPA 地址是与每个接口绑定的第二层地址。

For Ethernet, SNPA it is the MAC address of the interface and for Frame Relay and ATM networks it is the value of DLCI and VPI/VCI.

对于以太网,SNPA 是接口的 MAC 地址,而对于帧中继和 ATM 网络,它是 DLCI 和 VPI/VCI 的值。

  1. Since routers in Frame Relay and ATM networks can have the same DLCI or VPI/VCI address, the router with the larger system ID takes on the role of the DIS in the next step.

    由于帧中继和 ATM 网络中的路由器可以具有相同的 DLCI 或 VPI/VCI 地址,因此在下一步中,具有较大系统 ID 的路由器将承担 DIS 的角色。

DIS election in ISIS, unlike DR in OSPF, is pre-emptive. This means that any router with better conditions can take over the role of DIS at any time.

ISIS 中的 DIS 选举与 OSPF 中的 DR 选举不同,它是抢占式的。这意味着任何条件更好的路由器都可以随时接管 DIS 的角色。

Backup DIS in ISIS in Broadcast Network

In ISIS, there is no backup DIS concept because as mentioned earlier, DIS router does not have the central role of sending database information between routers in the broadcast network, and only by regularly sending the list of database information helps the routers to ensure that their database information is up-to-date.

在 ISIS 中,没有备份 DIS 的概念,因为如前所述,DIS 路由器在广播网络中并不承担在路由器之间发送数据库信息的中心角色,它只是通过定期发送数据库信息列表来帮助路由器确保其数据库信息是最新的。

No Backup DIS in ISIS in Broadcast Network

No Backup DIS in ISIS
ISIS 没有备用 DIS

At any time, any router can play the role of DIS. The DIS router announces its health by periodically sending hello every 3.3 seconds (one third of the hello time) and if no hello is received from it during the hello time, another router will immediately replace the DIS.

在任何时候,任何路由器都可以担任 DIS 的角色。DIS 路由器通过每 3.3 秒定期发送 hello 来宣布其状态(这是 hello 时间的三分之一),如果在 hello 时间内没有收到来自它的 hello,另一台路由器将立即取代 DIS。

Pseudonode LSP in Broadcast Network

But DIS router plays another important role, similar to OSPF. The DIS router is responsible for sending the broadcast network topology to other routers. Otherwise, each router on the broadcast network must advertise its connection to each of the routers on the same broadcast network using a separate TLV. It requires each router to send ( (n - 1) ) TLVs and a total of ( n(n - 1) ) TLVs.

但 DIS 路由器还扮演了另一个重要角色,类似于 OSPF。DIS 路由器负责将广播网络拓扑发送给其他路由器。否则,广播网络中的每个路由器都必须使用单独的 TLV 宣传其与同一广播网络中每个路由器的连接。这需要每个路由器发送 ( (n - 1) ) 个 TLV,总共需要 ( n(n - 1) ) 个 TLV。

But in ISIS protocol, DIS router sends a pseudonode LSP to introduce all routers of the broadcast network, and each router in this network only sends a TLV within the LSP pointing to the pseudonode LSP.

但在 ISIS 协议中,DIS 路由器会发送一个伪节点 LSP 来介绍广播网络中的所有路由器,而此网络中的每个路由器仅在 LSP 中发送一个指向伪节点 LSP 的 TLV。

In the figure, on the left, six routers are shown that are connected to a broadcast network.

在图中,左侧显示了连接到广播网络的六台路由器。

Psudonode LSP in ISIS in Broadcast Network

Psudonode LSP in ISIS in Broadcast Network
广播网络中 ISIS 中的伪节点 LSP

on the top right of the figure you see if each router wants to show its connection to other routers in the network, a high number of TLVs must be sent, which turns the topology into a full-mesh connection between all routers in the broadcast network.

在图的右上角,你可以看到如果每个路由器都希望显示其与其他路由器的连接,则必须发送大量的 TLV,这会使拓扑结构变成广播网络中所有路由器之间的全网状连接。

The right and bottom part of the figure shows the real operation of ISIS where DIS router transmits broadcast network topology. The number of TLVs sent by the DIS router corresponds to the number of routers connected in the broadcast network.

图的右下部分展示了 ISIS 的实际运行情况,其中 DIS 路由器传输广播网络拓扑。DIS 路由器发送的 TLV 数量对应于广播网络中连接的路由器数量。

The information that is transmitted by the DIS router and shows the topology of the broadcast network is called Pseudonode LSP.

DIS 路由器传输的、显示广播网络拓扑的信息称为 伪节点 LSP

Each of the other routers in the broadcast network sends only one TLV, which indicates the connection to the broadcast network.

广播网络中的其他每个路由器仅发送一个 TLV,以指示与广播网络的连接。

Therefore, in broadcast networks, there is an additional LSP named Pseudonode LSP. This LSP is in addition to the Router LSP that each router sends separately.

因此,在广播网络中,有一个额外的 LSP,名为伪节点 LSP。这个 LSP 除了每个路由器单独发送的路由器 LSP 之外。

Pseudonode LSP is sent by the DIS router.

伪节点 LSP 由 DIS 路由器发送。

System-id and Pseudonode-id in Broadcast Network

It is reminded that each LSP is identified by system-id, Pseudonode-id and LSP Fragment Number.

需要提醒的是,每个 LSP 通过 系统 ID伪节点 IDLSP 片段编号 来识别。

Also, remember that each router address its interfaces through a single byte called Circuit ID.

此外,请记住,每个路由器通过一个名为电路 ID 的单字节来寻址其接口。
ISIS LSP identifier

ISIS LSP identifier
ISIS LSP 标识符

In Router LSP, the system-id value is the same as the router ID and the Pseudonode-id value is zero, but in Pseudonode LSP which is advertised by DIS, the system-id value is the ID of the DIS router and the Pseudonode-id is also the circuit-id of the DIS router interface connected in the broadcast network.

在路由器 LSP 中,系统 ID 值与路由器 ID 相同,伪节点 ID 值为零,但在由 DIS 宣传的伪节点 LSP 中,系统 ID 值是 DIS 路由器的 ID,伪节点 ID 也是连接到广播网络的 DIS 路由器接口的电路 ID。

ISIS in Broadcast Network: Configuration Example

To better understand the database exchange process in broadcast networks and psudonode LSP in ISIS protocol, we configure ISIS in this topology and examine the result.

为了更好地理解广播网络中的数据库交换过程以及 ISIS 协议中的伪节点 LSP,我们在这种拓扑中配置 ISIS 并检查结果。

In this topology, there are four routers IOU1 to IOU4 are connected to each other through the broadcast network and all are in the same subnet 192.168.1.0/24.

在这种拓扑中,四台路由器 IOU1 到 IOU4 通过广播网络相互连接,并且它们都位于同一个子网 192.168.1.0/24 中。

A loopback interface is configured for each router in the range 172.16.x.0/24, in which the third octet is the router number.

为每台路由器配置了一个环回接口,范围为 172.16.x.0/24,其中第三个八位字节是路由器编号。

NET address are configured in the area 1(one) and with system-id equal to router number.

在区域 1 中配置了 NET 地址,系统 ID 等于路由器编号。

Interface connected to router IOU1 is configured with a higher priority with “isis priority” command in interface context. This is to force router IOU1 to be DIS.

通过在接口上下文中使用 “isis priority” 命令,将连接到路由器 IOU1 的接口配置为较高的优先级。这是为了强制路由器 IOU1 成为 DIS。

ISIS in Broadcast Network Configuration Example

ISIS in Broadcast Network Configuration Example
广播网络中的 ISIS 配置举例

!!! IOU1
interface Loopback0ip address 172.16.1.1 255.255.255.0ip router isis
!
interface Ethernet0/0no shutdownip address 192.168.1.1 255.255.255.0ip router isisisis priority 100 level-1
!
router isisnet 49.0001.0000.0000.0001.00is-type level-1
!!! IOU2
interface Loopback0ip address 172.16.2.1 255.255.255.0ip router isis
!
interface Ethernet0/0no shutdownip address 192.168.1.2 255.255.255.0ip router isis
!
router isisnet 49.0001.0000.0000.0002.00is-type level-1
!!! IOU3
interface Loopback0ip address 172.16.3.1 255.255.255.0ip router isis
!
interface Ethernet0/0no shutdownip address 192.168.1.3 255.255.255.0ip router isis
!
router isisnet 49.0001.0000.0000.0003.00is-type level-1
!!! IOU4
interface Loopback0ip address 172.16.4.1 255.255.255.0ip router isis
!
interface Ethernet0/0no shutdownip address 192.168.1.4 255.255.255.0ip router isis
!
router isisnet 49.0001.0000.0000.0004.00is-type level-1

In the first step, we use “show isis hostname” command to check the list of routers, the value of the system ID, and the corresponding hostname.

首先,我们使用 “show isis hostname” 命令来检查路由器列表、系统 ID 的值以及对应的主机名。

IOU1#show isis hostname
Level  System ID      Dynamic Hostname  (notag)* 0000.0000.0001 IOU11     0000.0000.0002 IOU21     0000.0000.0003 IOU31     0000.0000.0004 IOU4
IOU1#

We also use the “show isis neighbors” command in router IOU1 to list the neighbors.

我们还在路由器 IOU1 上使用 “show isis neighbors” 命令来列出邻居。

IOU1#show isis neighborsSystem Id      Type Interface   IP Address      State Holdtime Circuit Id
IOU2           L1   Et0/0       192.168.1.2     UP    24       IOU1.01
IOU3           L1   Et0/0       192.168.1.3     UP    24       IOU1.01
IOU4           L1   Et0/0       192.168.1.4     UP    26       IOU1.01
IOU1#

As you can see, router IOU1 has three neighbors IOU2 to IOU4, but the circuit-id of all neighboring routers in the broadcast network is equal to the circuit-id value of the DIS router. In this topology, the router IOU1 is DIS router.

如你所见,路由器 IOU1 有三个邻居 IOU2 到 IOU4,但广播网络中所有邻居路由器的电路 ID 值等于 DIS 路由器的电路 ID 值。在这种拓扑中,路由器 IOU1 是 DIS 路由器。

The command “show isis neighbors details” shows SNPA address as well as the Priority value of each router.

命令 “show isis neighbors details” 显示了每个路由器的 SNPA 地址和优先级值。

IOU1#show isis neighbors detailSystem Id      Type Interface   IP Address      State Holdtime Circuit Id
IOU2           L1   Et0/0       192.168.1.2     UP    25       IOU1.01Area Address(es): 49.0001SNPA: aabb.cc00.0200State Changed: 00:00:38LAN Priority: 64Format: Phase VRemote TID: 0Local TID:  0Interface name: Ethernet0/0
IOU3           L1   Et0/0       192.168.1.3     UP    24       IOU1.01Area Address(es): 49.0001SNPA: aabb.cc00.0300State Changed: 00:00:38LAN Priority: 64Format: Phase VRemote TID: 0Local TID:  0Interface name: Ethernet0/0
IOU4           L1   Et0/0       192.168.1.4     UP    25       IOU1.01Area Address(es): 49.0001SNPA: aabb.cc00.0400State Changed: 00:00:38LAN Priority: 64
System Id      Type Interface   IP Address      State Holdtime Circuit IdFormat: Phase VRemote TID: 0Local TID:  0Interface name: Ethernet0/0
IOU1#

Using “show clns interface” command on IOU1 router, you can see that the priority value of the IOU1 router is 100 and that is the reason why this router is selected as DIS.

在 IOU1 路由器上使用 “show clns interface” 命令,你可以看到 IOU1 路由器的优先级值为 100,这就是为什么选择该路由器作为 DIS 的原因。

IOU1#show clns interface
Ethernet0/0 is up, line protocol is upChecksums enabled, MTU 1497, Encapsulation SAPERPDUs enabled, min. interval 10 msec.CLNS fast switching disabledCLNS SSE switching disabledDEC compatibility mode OFF for this interfaceNext ESH/ISH in 26 secondsRouting Protocol: IS-ISCircuit Type: level-1-2Interface number 0x1, local circuit ID 0x1Level-1 Metric: 10, Priority: 100, Circuit ID: IOU1.01DR ID: IOU1.01Level-1 IPv6 Metric: 10Number of active level-1 adjacencies: 3Next IS-IS LAN Level-1 Hello in 1 seconds
Ethernet0/1 is administratively down, line protocol is downCLNS protocol processing disabled
...
Loopback0 is up, line protocol is upChecksums enabled, MTU 1514, Encapsulation LOOPBACKERPDUs enabled, min. interval 10 msec.CLNS fast switching disabledCLNS SSE switching disabledDEC compatibility mode OFF for this interfaceNext ESH/ISH in 28 secondsRouting Protocol: IS-ISCircuit Type: level-1-2Interface number 0x0, local circuit ID 0x100Level-1 Metric: 10, Priority: 64, Circuit ID: IOU1.00Level-1 IPv6 Metric: 10Number of active level-1 adjacencies: 0Next IS-IS Hello in 3 secondsif state DOWN
IOU1#

By using the command “show isis database“, you can see the summary of the router IOU1 database table.

通过使用 “show isis database” 命令,你可以看到路由器 IOU1 数据库表的摘要。

IOU1#show isis databaseIS-IS Level-1 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
IOU1.00-00          * 0x00000003   0x9E53        1128              0/0/0
IOU1.01-00          * 0x00000001   0x9E95        1128              0/0/0
IOU2.00-00            0x00000003   0xDA13        1126              0/0/0
IOU3.00-00            0x00000003   0x17D2        1126              0/0/0
IOU4.00-00            0x00000003   0x5392        1126              0/0/0
IOU1#

As you can see, there are five LSPs in router IOU1. Each router has sent one Router LSP and one is Pseudonode LSP sent by the DIS router.

如你所见,路由器 IOU1 中有五个 LSP。每个路由器发送了一个路由器 LSP,还有一个是由 DIS 路由器发送的伪节点 LSP。

The Pseudonode Id of all Router LSPs are zero, except for the Pseudonode LSP whose Pseudonode Id is equal to the Circuit-Id of DIS router.

所有路由器 LSP 的伪节点 ID 均为零,但伪节点 LSP 的伪节点 ID 等于 DIS 路由器的电路 ID。

In this scenario, the Pseudonode Id of the psudonode LSP sent by DIS router is 0x01. Fragment number of all LSPs is zero because only one packet is sent for each LSP.

在这种情况下,DIS 路由器发送的伪节点 LSP 的伪节点 ID 是 0x01。所有 LSP 的片段编号均为零,因为每个 LSP 只发送一个数据包。

To view the LSP details on the IOU1 router, we use the “show isis database detail” command.

要在 IOU1 路由器上查看 LSP 的详细信息,我们使用 “show isis database detail” 命令。

IOU1#show isis database detailIS-IS Level-1 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
IOU1.00-00          * 0x00000003   0x9E53        1114              0/0/0Area Address: 49.0001NLPID:        0xCCHostname: IOU1IP Address:   172.16.1.1Metric: 10         IP 172.16.1.0 255.255.255.0Metric: 10         IP 192.168.1.0 255.255.255.0Metric: 10         IS IOU1.01
IOU1.01-00          * 0x00000001   0x9E95        1115              0/0/0Metric: 0          IS IOU1.00Metric: 0          IS IOU2.00Metric: 0          IS IOU3.00Metric: 0          IS IOU4.00
IOU2.00-00            0x00000003   0xDA13        1112              0/0/0Area Address: 49.0001NLPID:        0xCCHostname: IOU2IP Address:   172.16.2.1Metric: 10         IP 172.16.2.0 255.255.255.0Metric: 10         IP 192.168.1.0 255.255.255.0Metric: 10         IS IOU1.01
IOU3.00-00            0x00000003   0x17D2        1112              0/0/0Area Address: 49.0001NLPID:        0xCCHostname: IOU3IP Address:   172.16.3.1Metric: 10         IP 172.16.3.0 255.255.255.0Metric: 10         IP 192.168.1.0 255.255.255.0Metric: 10         IS IOU1.01
IOU4.00-00            0x00000003   0x5392        1112              0/0/0Area Address: 49.0001NLPID:        0xCCHostname: IOU4IP Address:   172.16.4.1Metric: 10         IP 172.16.4.0 255.255.255.0Metric: 10         IP 192.168.1.0 255.255.255.0Metric: 10         IS IOU1.01
IOU1#

As you can see, all routers have sent the network 192.168.1.0/24 in advertising LSP.

如你所见,所有路由器都通过宣传 LSP 发送了网络 192.168.1.0/24。

Also, all routers announce their connection to the broadcast network by sending a common TLV of IS type that points to the Pseudonode LSP.

此外,所有路由器通过发送指向伪节点 LSP 的 IS 类型通用 TLV 来宣布其与广播网络的连接。

The pseudonode LSP is IOU1.01 which is sent by DIS router, IOU1, showing the list of routers in the broadcast network.

伪节点 LSP 是由 DIS 路由器 IOU1 发送的 IOU1.01,显示了广播网络中的路由器列表。

Summary of DIS and Pseudonode LSP in ISIS

To summarize, it is emphasized again that the DIS router reduces its hello time and hold time to one third of the configured timers, so that the failure of the DIS router is recognized by other routers faster.

总结一下,再次强调,DIS 路由器将其 hello 时间和保持时间缩短为配置计时器的三分之一,以便其他路由器更快地识别 DIS 路由器的故障。

If the DIS router is disconnected, another router is selected as the DIS router without the need to make changes in the adjacency.

如果 DIS 路由器断开连接,将选择另一台路由器作为 DIS 路由器,而无需更改邻接关系。

The change of DIS is done only by sending a new Pseudonode LSP by the new DIS router. All routers also update their LSP to point to the new Pseudonode LSP. The relative simplicity of this process is the main reason for not having Backup DIS in the ISIS protocol.

DIS 的变更仅通过新 DIS 路由器发送新的伪节点 LSP 来完成。所有路由器还会更新其 LSP 以指向新的伪节点 LSP。这一过程的相对简单性是 ISIS 协议中没有备份 DIS 的主要原因。


了解 IS-IS 伪节点 LSP

已更新:2005 年 8 月 10 日
文档 ID:49627

简介

本文档介绍链路状态数据包(LSP)伪节点。伪节点是由 LAN 网段上的指定中间系统(DIS)生成的 LAN 的逻辑表示。本文档还介绍信息向路由器传播的过程。

先决条件

要求

本文档没有任何特定的要求。

使用的组件

本文档中的信息基于与以下内容相关的软件和硬件版本:

  • 思科 IOS® 软件版本 12.1(5)T9。

本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。

规则

有关文件规则的更多信息请参见 “Cisco 技术提示规则”。

DIS 和伪节点

本节介绍 DIS 和伪节点。

DIS 是什么?

在广播多路访问网络中,单台路由器被选为 DIS。未选择备份 DIS。DIS 是创建伪节点并代表伪节点操作的路由器。

DIS 执行两项主要任务:

  • 创建和更新伪节点 LSP,用于报告到广播子网上所有系统的链路。有关详细信息,请参阅伪节点 LSP 部分。
  • 在 LAN 上泛洪 LSP。

LAN 泛洪意味着 DIS 会定期发送完整序列号协议数据单元(CSNP)(默认设置为 10 秒),总结以下信息:

  • LSP ID
  • 序列号
  • 校验和
  • 剩余寿命

DIS 负责泛洪。它为它参与的每个路由级别(1 级或 2 级)以及它所连接的每个 LAN 创建并泛洪新的伪节点 LSP。路由器可以是所有已连接 LAN 的 DIS 或已连接 LAN 的子集,具体取决于 IS-IS 优先级或第 2 层地址。当邻居邻接关系建立、断开或刷新间隔计时器到期时,DIS 还将创建并泛洪新的伪节点 LSP。DIS 机制可减少 LAN 上的泛洪量。

DIS 选择

在 LAN 上,其中一台路由器根据接口优先级(默认值为 64)自行选择 DIS。如果所有接口优先级相同,则选择具有最高子网连接点(SNPA)的路由器。SNPA 是 LAN 上的 MAC 地址,是帧中继网络上的本地数据链路连接标识符(DLCI)。如果 SNPA 是 DLCI,且链路两端相同,则系统 ID 较高的路由器将成为 DIS。每个 IS-IS 路由器接口都分配了 0 到 127 范围内的 L1 优先级和 L2 优先级。

DIS 选举是先占式(与 OSPF 不同)。如果新路由器在 LAN 上以更高的接口优先级启动,则新路由器将成为 DIS。它清除旧伪节点 LSP 并泛洪一组新 LSP。

伪节点(PSN)是什么?

为了减少多路访问链路上节点之间的全网状邻接数量,多路访问链路本身被建模为伪节点。如名称所示,这是虚拟节点。DIS 创建伪节点。广播链路上的所有路由器(包括 DIS)都与伪节点形成邻接关系。

伪节点的表示:

pseodonode.gif

在 IS-IS 中,DIS 不与其邻居同步。在 DIS 为 LAN 创建伪节点后,它每三秒发送一次每个级别(1 和 2)的 hello 数据包,每十秒发送一次 CSNP。Hello 数据包表示它是 LAN 上该级别的 DIS,CSNP 描述所有 LSP 的摘要,包括 LSP ID、序列号、校验和和剩余寿命。LSP 始终泛洪到组播地址,CSNP 机制仅对任何丢失的协议数据单元(PDU)进行纠正。例如,路由器可以使用部分序列号数据包(PSNP)向 DIS 请求缺失的 LSP,或者反过来向 DIS 提供新的 LSP。

CSNP 用于向其他路由器告知一个路由器数据库中的所有 LSP。与 OSPF 数据库描述符数据包类似,PSNP 用于请求 LSP 并确认收到 LSP。

伪节点 LSP

伪节点 LSP 由 DIS 生成。DIS 报告伪节点 LSP 中的所有 LAN 邻居(包括 DIS),度量为 0。所有 LAN 路由器(包括 DIS)都会报告其 LSP 中与伪节点的连接。这在概念上与 OSPF 中的网络 LSA 相似。

示例

我们将使用以下网络图来演示如何使用 DIS 生成的伪节点 LSP 报告所有 LAN 邻居。

注意:在以下示例中,动态主机名功能为 enable。因此,系统 ID 会自动映射到路由器主机名,如下面 show 命令的输出所示。

网络图

isis-pnode.jpg

配置

以下配置用于网络图所示的路由器:

路由器 ISIS

Router 6
interface e0ip address 172.16.126.6 255.255.255.0ip router isisisis priority 127
router isisnet 49.0001.0000.0c4a.4598.00is-type level-1
Router 2
interface e0ip address 172.16.126.2 255.255.255.0ip router isis
router isisnet 49.0001.0000.0c8d.e6b4.00is-type level-1
Router 1
interface e0ip address 172.16.126.1 255.255.255.0ip router isis
interface s1ip address 172.16.1.1 255.255.255.0ip router isis
router isisnet 49.0001.0000.5c75.d0e9.00is-type level-1
Router 8
interface s1ip address 172.16.1.8 255.255.255.0ip router isis
router isisnet 49.0001.0000.0c31.c2fd.00is-type level-1c

下表分解了上述配置的每台路由器的区域、MAC 地址和网络。请注意,所有路由器都位于同一区域。

路由器区域Mac 地址NET(网络实体标题)
649.00010000.0c4a.459849.0001.0000.0c4a.4598.00
249.00010000.0c8d.e6b449.0001.0000.0c8d.e6b4.00
149.00010000.5c75.d0e949.0001.0000.5c75.d0e9.00
849.00010000.0c31.c2fd49.0001.0000.0c31.c2fd.00

按照本节所述配置路由器后,您可以使用 show clns is-neighbor 命令查看 IS-IS 邻居:

router-6# show clns is-neighborSystem Id      Interface   State  Type Priority  Circuit Id         Format
router-2       Et0         Up     L1   64        router-6.01        Phase V
router-1       Et0         Up     L1   64        router-6.01        Phase V
router-6#
router-2# show clns is-neighborSystem Id      Interface   State  Type Priority  Circuit Id         Format
router-6       Et0         Up     L1   127       router-6.01        Phase V
router-1       Et0         Up     L1   64        router-6.01        Phase V
router-2#
router-1# show clns is-neighborSystem Id      Interface   State  Type Priority  Circuit Id         Format
router-6       Et0         Up     L1   127       router-6.01        Phase V
router-2       Et0         Up     L1   64        router-6.01        Phase V
router-8       Se1         Up     L1   0         00                 Phase V
router-1#
router-8# show clns is-neighborSystem Id      Interface   State  Type Priority  Circuit Id         Format
Router-1       Se1         Up     L1   0         00                 Phase V
router-8#

在前面的邻居列表中,请注意连接到多路访问网络(以太网)的路由器都具有相同的电路 ID。电路 ID 是路由器用于唯一标识 IS-IS 接口的一个二进制八位数。如果接口连接到多路访问网络,则电路 ID 与 DIS 的系统 ID 相连。这称为伪节点 ID。另请注意,DIS 是 Router 6,因为其以太网接口下配置了 IS-IS 优先级。

IS-IS 数据库

此输出显示上一节所述每台路由器的 IS-IS 数据库:

Router-6# show isis databaseIS-IS Level-1 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
router-8.00-00        0x0000006E   0xFF1A        960               0/0/0
router-6.00-00      * 0x0000006D   0xDD58        648               0/0/0
router-6.01-00      * 0x00000069   0x6DCB        1188              0/0/0
router-2.00-00        0x0000006D   0x59DE        589               0/0/0
router-1.00-00        0x00000074   0xC4B0        759               0/0/0
router-6#
router-2# show isis databaseIS-IS Level-1 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
router-8.00-00        0x0000006E   0xFF1A        947               0/0/0
router-6.00-00        0x0000006D   0xDD58        633               0/0/0
router-6.01-00        0x00000069   0x6DCB        1172              0/0/0
router-2.00-00      * 0x0000006D   0x59DE        577               0/0/0
router-1.00-00        0x00000074   0xC4B0        746               0/0/0
router-2#
router-1# show isis databaseIS-IS Level-1 Link State Database:
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL
router-8.00-00        0x0000006E   0xFF1A        934               0/0/0
router-6.00-00        0x0000006D   0xDD58        619               0/0/0
router-6.01-00        0x00000069   0x6DCB        1158              0/0/0
router-2.00-00        0x0000006D   0x59DE        561               0/0/0
router-1.00-00      * 0x00000074   0xC4B0        734               0/0/0
router-1#
router-8# show isis database
IS-IS Level-1 Link State Database
LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime  ATT/P/OL
router-8.00-00*       0x0000006E   0xFF1A        927           0/0/0
router-6.00-00        0x0000006D   0xDD58        607           0/0/0
router-6.01-00        0x00000069   0x6DCB        1147          0/0/0
router-2.00-00        0x0000006D   0x59DE        550           0/0/0
router-1.00-00        0x00000074   0xC4B0        723           0/0/0
router-8#

如前面的输出所示,show isis database 命令显示数据库中的 LSP 列表。在这种情况下,所有路由器都是同一区域中的 1 级路由器,因此它们在 IS-IS 数据库中具有相同的 LSP。请注意,每台路由器都会生成 LSP。DIS 为自身生成 LSP,并代表伪节点生成 LSP。本例中的伪节点 LSP 是 0000.0C4A.4598.01-00。

我们提到,LAN 上的路由器只向 LAN 的假名发送通告。伪节点以零度量报告所有 LAN 邻居(在伪节点 LSP 中),如以下 show isis database lsp detail 命令输出示例所示:

  • 路由器 6 的 LSP(从路由器 8 看)

    注意,路由器 6 通告它只能到达其直连网络和伪节点。在这种情况下,伪节点的度量为 10。如前所述,LAN 上的路由器将通告它们只能到达 LAN 的伪节点。

    router-8# show isis database router-6.00-00 detail
    IS-IS Level-1 LSP router-6.00-00
    LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime  ATT/P/OL
    router-6.00-00        0x00000071   0xD55C        456           0/0/0Area Address: 49.0001NLPID:       0xCC Code:   137 Length: 8IP Address:  172.16.126.6Metric: 10 IP 172.16.126.0 255.255.255.0Metric: 10 IS router-6.01
    router-8#
    
  • 伪节点 LSP(从路由器 8 看)

    伪节点 LSP 通告度量为零的所有 LAN 邻居。本例中,伪节点 LSP 由 DIS(路由器 6)代表伪节点生成。

    Router-8# show isis database router-6.01-00 detail
    IS-IS Level-1 LSP router-6.01-00
    LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime  ATT/P/OL
    router-6.01-00        0x0000006D   0x65CF        759           0/0/0Metric: 0  IS router-6.00Metric: 0  IS router-2.00Metric: 0  IS router-1.00
    router-8#
    
  • 路由器 2 的 LSP(从路由器 8 看)

    同样,Router 2 LSP 包含有关它能否仅到达其直连网络和伪节点的信息。

    Router-8# show isis database router-2.00-00 detail
    IS-IS Level-1 LSP router-2.00-00
    LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime  ATT/P/OL
    router-2.00-00        0x00000072   0x4FE3        791           0/0/0Area Address: 49.0001NLPID:       0xCC Code:   137 Length: 8IP Address:  172.16.126.2Metric: 10 IP 172.16.126.0 255.255.255.0Metric: 10 IS router-6.01
    router-8#
    
  • 路由器 1 LSP(从路由器 8 中看)

    路由器 1 LSP 为 LAN 网络包含的唯一信息是网络本身以及它能否到达伪节点。由于路由器 1 也连接到另一个网络(即串行网络),因此也会通告此直连网络。

    Router-8# show isis database router-1.00-00 detail
    IS-IS Level-1 LSP router-1.00-00
    LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime  ATT/P/OL
    router-1.00-00        0x00000079   0xBAB5        822           0/0/0Area Address: 49.0001NLPID:       0xCC Code:   137 Length: 8IP Address:  172.16.1.1Metric: 10 IP 172.16.126.0 255.255.255.0Metric: 10 IP 172.16.1.0 255.255.255.0Metric: 10 IS router-6.01Metric: 10 IS router-8.00
    router-8#
    
  • 路由器 8 LSP

    在这种情况下,路由器 8 未连接到 LAN,因此它不会向伪节点通告它可以到达。但是,它会向自身、路由器 1 和直连网络通告(可以到达)。

    Router-8# show isis database router-8.00-00 detail
    IS-IS Level-1 LSP router-8.00-00
    LSPID                 LSP Seq Num  LSP Checksum  LSP Holdtime  ATT/P/OL
    router-8.00-00*       0x00000072   0xF71E        554           0/0/0Area Address: 49.0001NLPID:       0xCC IP Address:  172.16.1.8Metric: 10 IP 172.16.1.0 255.255.255.0Metric: 10 IS router-1.00Metric: 0  ES router-8
    router-8#
    

via:

  • ISIS in Broadcast Network and Pseudonode LSP - RAYKA
    https://rayka-co.com/lesson/isis-in-broadcast-network/

  • 了解 IS-IS 伪节点 LSP - Cisco
    https://www.cisco.com/c/en/us/support/docs/ip/integrated-intermediate-system-to-intermediate-system-is-is/49627-DIS-LSP-1.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.pswp.cn/diannao/90841.shtml
繁体地址,请注明出处:http://hk.pswp.cn/diannao/90841.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

ARIA UWB安全雷达主要产品型号与核心功能全解析

ARIA UWB雷达拥有LT系列与AHM系列两大产品线。LT103 XBT、LT102 V2、LT103 OEM等代表型号具备高精度定位、低功耗和强穿透能力,适用于工业自动化与物联网。AHM3D、AHM2D、AHM3DSC则专注三维检测和智能计算,广泛服务于医疗健康、安防监控等场景。Hydrogen…

NLP自然语言处理04 transformer架构模拟实现

总体架构输入部分代码实现:导包# -*-coding:utf-8-*- import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn # -*-coding:utf-8-*- import copy import torch.nn.functional as F import math位置编码器部分词嵌入WordEmbedding# todo 作用…

记录一本书: Python机器学习:基于PyTorch和Scikit-Learn

记录一本书: Python机器学习:基于PyTorch和Scikit-Learn 作者:(美)塞巴斯蒂安拉施卡(Sebastian Raschka)(美)刘玉溪(海登)(Yuxi(Hayden)Liu) (美)…

Datomic数据库简介(TBC)

Datomic 数据库详细介绍 Datomic 是一个由 Rich Hickey(Clojure 语言创始人)设计的 不可变、时间感知、分布式数据库,专为现代应用程序设计,强调 数据不变性(immutability)、查询灵活性和可审计性。它结合…

xformers 完整安装教程【pip conda】(解决 conda 版本 pytorch 自适应安装 xformers)

我个人喜欢用 mamba(conda)创建环境,然后用 mamba 安装 pytorch CUDA(如果需要使用 CUDA 编译),还有一些比如 gcc/g 等与 python 无关的一些工具。 但是最近我在扩充环境的时候,发现需要额外安…

VM虚拟机全版本网盘+免费本地网络穿透端口映射实时同步动态家庭IP教程

VM虚拟机全版本秘钥,文章末尾。 首先网络穿透的意义是让公网可以直接访问家庭电脑,这样本地电脑的硬件性能得以完全发挥,特别是在云服务器贵性能又没家庭电脑好,专线宽带又贵,第三方网络穿透贵的场景下。一般第三方网…

C++ - 仿 RabbitMQ 实现消息队列--项目介绍与环境搭建

目录 项目介绍 开发环境 技术选型 环境搭建 安装 wget(一般情况下默认会自带) 更换国内软件源 安装 lrzsz 传输工具 安装编译器 安装项目构建工具 make 安装调试器 安装 git 安装 cmake 安装 Protobuf 安装 Muduo 安装 SQLite3 安装 Gtest 项目介绍 首先说一下…

《目标检测模块实践手册:从原理到落地的尝试与分享》第一期

大家好,欢迎来到《目标检测模块实践手册》系列的第一篇。从今天开始,我想以一种 “实践记录者” 的身份,和大家聊聊在目标检测任务中那些形形色色的模块。这些内容没有权威结论,更多的是我在实际操作中的一些尝试、发现和踩过的坑…

C++11笑传之引用

C11前言列表初始化{}进行初始化initializer_list右值引用和移动语义左值与右值左值引用与右值引用引用延长生命周期右值引用和移动语义的使用场景左值引用移动构造和移动赋值右值引用在容器插入的提效引用折叠万能折叠完美转发前言 C11是C继98后的更新,其更新了许多…

瀚高数据库提交数据后,是否需要COMMIT(APP)

文章目录环境症状问题原因解决方案报错编码环境 系统平台: 版本:5.6.5,4.5 症状 瀚高数据库提交数据后,是否需要commit,瀚高数据库是否有配置项。 问题原因 瀚高数据库默认自动COMMIT(提交数据)&#…

深大计算机游戏开发实验三

主要步骤主角飞船的创建和移动边界设置以及护盾设置创建敌机自动生成敌机图层设置弹丸设置武器创建不同发射模式管理竞态条件击败敌机掉落升级道具不同敌机的生成分值显示实现退出游戏界面之后进入游戏的最高记录重置游戏界面失败后重新加载最记录不会重置任何时候在游戏界面按…

详解缓存淘汰策略:LRU

文章目录缓存淘汰策略LRU核心结构核心操作流程局限性源码走读AddGet缓存淘汰策略 缓存淘汰策略的存在是为了解决 缓存容量有限性 和 高缓存命中率 之间的矛盾。其核心目标是在有限的缓存空间内,尽可能提高缓存命中率 缓存容量有限性:缓存(例…

什么是 Bootloader?怎么把它移植到 STM32 上?

一、Bootloader 是啥?它都干了些啥?想象一下你的 MCU(比如 STM32)是一个小机器人,上电之后第一件事,它不会立马开始“干正事”(运行你的主程序),而是先去运行一个“开场引…

无人机避障——感知篇(Ego_Planner_v2中的滚动窗口实现动态实时感知建图grid_map ROS节点理解与参数调整影响)

处理器:Orin nx 双目视觉传感器:ZED2 实时感知建图方法:Vins Fusion Raycast (VIO与射线投影法感知定位加建图方法) 项目地址:https://github.com/ZJU-FAST-Lab/EGO-Planner-v2 【注意】:建…

26-计组-寻址方式

指令寻址与PC自增一、指令寻址方式定义:寻找下一条将要执行的指令地址的过程。 核心部件:程序计数器(PC),用于指示待执行指令的地址。 执行流程:CPU根据PC值从主存取指令。取指后,PC自动自增&am…

生成式对抗网络(GAN)模型原理概述

生成对抗网络(Generative Adversarial Network, GAN)是一种通过对抗训练生成数据的深度学习模型,由生成器(Generator)和判别器(Discriminator)两部分组成,其核心思想源于博弈论中的零…

Vue和Element的使用

文章目录1.vue 脚手架创建步骤2.vue项目开发流程3.vue路由4.Element1.vue 脚手架创建步骤 创建一个文件夹 vue双击进入文件夹,在路径上输入cmd输入vue ui, 目的:调出图形化用户界面点击创建 9. 10.在vscode中打开 主要目录介绍 src目录介绍 vue项目启动 图形化界面中没有npm…

如何设置直播间的观看门槛,让直播间安全有效地运行?

文章目录前言一、直播间观看门槛有哪几种形式?二、设置直播间的观看门槛,对直播的好处是什么三、如何一站式实现上述功能?总结前言 打造一个安全、高效、互动良好的直播间并非易事。面对海量涌入的观众,如何有效识别并阻挡潜在的…

【SkyWalking】配置告警规则并通过 Webhook 推送钉钉通知

🧭 本文为 【SkyWalking 系列】第 3 篇 👉 系列导航:点击跳转 【SkyWalking】配置告警规则并通过 Webhook 推送钉钉通知 简介 介绍 SkyWalking 告警机制、告警规则格式以及如何通过 webhook 方式将告警信息发送到钉钉。 引入 服务响应超时…

关于 验证码系统 详解

验证码系统的目的是:阻止自动化脚本访问网页资源,验证访问者是否为真实人类用户。它通过各种测试(图像、行为、计算等)判断请求是否来自机器人。一、验证码系统的整体架构验证码系统通常由 客户端 服务端 风控模型 数据采集 四…