跳到主要内容

2.1. 动机

广域中转网络 (wide-area transit networks, 如 NSFNET 区域网络) 通常连接到复杂度中等的 "叶" 站点. 一个叶站点可能分配有多个 IP 网络号. 通常, 该叶站点的其中一个网络直接连接到由中转网络提供并管理的路由器, 而其他网络则分布在整个站点中并由站点自行管理. 从中转网络的角度来看, 与该站点相关联的所有网络号构成一个单一的 "stub" 实体. 例如, BARRNet 有一个站点, 由一个 B 类网络 130.57.0.0 和一个 C 类网络 192.31.114.0 组成. 从 BARRNet 的角度来看, 该配置大致如下所示:

  192.31.114
|
(cloud)
-------------- 130.57.4
|
|
------ 131.119.13 ------
|BR18|------------|BR10|
------ ------
|
V
to BARRNet "core" OSPF system

其中, "云" 由 130.57 的各个子网和网络 192.31.114 组成, 这些网络都由路由器 BR18 上的 RIP 获知. 从拓扑上看, 这片云非常像一个 OSPF stub 区域. 将该云作为 OSPF stub 区域运行的优点有:

1. Type-5 routes (OSPF external link-state advertisements
(LSAs)) are not advertised beyond the router
labeled "BR10". This is advantageous because the
link between BR10 and BR18 may be a low-speed link
or the router BR18 may have limited resources.

2. The transit network is abstracted to the "leaf"
router BR18 by advertising only a default route
across the link between BR10 and BR18.

3. The cloud becomes a single, manageable "leaf" with
respect to the transit network.

4. The cloud can become, logically, a part of the transit
network's OSPF routing system.

5. Translated type-5 LSAs that are sent into the
backbone from the cloud (which is a separate
stub area) may be considered "leaf" nodes
when performing the Dijkstra calculation.

然而, 当前 OSPF 协议 [1] 的定义施加了拓扑限制, 使简单的云拓扑无法成为 OSPF stub 区域. 具体而言, stub 区域引入 OSPF 外部的路由是非法的; BR18 和 BR10 这两台路由器不可能既都是该 stub 区域的成员, 又将经由 RIP 或其他 IP 路由协议获知的路由作为 type-5 (OSPF 外部 LSA) 引入 OSPF 系统. 为了将 OSPF 一直运行到 BR18, BR18 必须是一个非 stub 区域的成员或属于 OSPF 骨干, 才能引入其直连网络以外的路由. 由于让 BR18 维护 BARRNet 的全部外部 (type-5) 路由是不可接受的, BARRNet 被迫受限于 OSPF 的拓扑限制, 只能将 OSPF 运行到 BR10, 并在 BR18 与 BR10 之间运行 RIP.