Ospf 广告路由器 ID 会在泛洪期间被修改吗?

网络工程 ospf 协议理论
2021-07-28 09:22:20

当 LSA 被重新通告(泛洪)到另一个路由器时,重新通告路由器是否会将“通告路由器 ID”字段修改为它自己的路由器 ID?

例如:

Routerzero---NetworkA---RouterA-----RtrB-----RtrC------RtrD

假设在上面的拓扑结构中,RouterA 在其 Router-LSA 中创建了一个带有 NetworkA 信息的 LSA,并将其通告给 RtrB。现在,当 RtrB 将这个 LSA 重新通告给 RtrC 时,它是否会将 LSA 中的“Advertising Router-id”字段修改为它自己的(RtrB 的 router-id)并发送到 RtrC?

1个回答

同一区域内不得修改Router ID

RtrB 不得修改 RouterA 的 LSA 中的 Advertising RouterID。

引用RFC 2328 - OSPFv2:第 12.1.5 节“广告路由器”

12.1.5.  Advertising Router
        This field specifies the OSPF Router ID of the LSA's
        originator.  For router-LSAs, this field is identical to the
        Link State ID field.  Network-LSAs are originated by the
        network's Designated Router.  Summary-LSAs originated by
        area border routers.  AS-external-LSAs are originated by AS
        boundary routers.

具体来说,对于 router-LSA,该字段与 Link State ID 字段相同,禁止修改 RouterA 的 LSA。

检测自发 LSA

第 13.4 节:接收自发 LSA 中强调了 LSA 路由器 ID 在泛洪时必须保持不变的事实

13.4.  Receiving self-originated LSAs
    It is a common occurrence for a router to receive self-
    originated LSAs via the flooding procedure. A self-originated
    LSA is detected when either 1) the LSA's Advertising Router is
    equal to the router's own Router ID or 2) the LSA is a network-
    LSA and its Link State ID is equal to one of the router's own IP
    interface addresses.

当 LSA 中的 Router ID 与它自己的 Router ID 相同时,路由器知道它收到了自己的 LSA 的副本;如果在传输过程中修改了路由器 ID,则无法检测同一区域内的自发 LSA。

路由器 ID 可能会在区域边界路由器上更改

您的图表没有提到不同的区域,当它提到 RtrB 重新通告 RouterA 的 LSA 时,它暗示这个问题在同一区域内。但是,如果 RtrB 是 ABR,并且 RtrC 与路由器 A 位于不同的区域,则网络 A 的路由器 ID必须具有不同的路由器 ID,因为 ABR (RtrB) 在看到路由器 A 时必须为网络 A 发起类型 3 摘要 LSA类型 1 路由器 LSA。