3.1. Route: 通告和存储
3.1. Route: 通告和存储 (Routes: Advertisement and Storage)
就本 protocol 而言, route 定义为一个 information unit, 它将一组 destination 与到这些 destination 的 path attribute 配对. destination 集合是其 IP address 包含在 UPDATE message 的 Network Layer Reachability Information (NLRI) 字段中携带的 IP address prefix 内的 system, path 则是同一 UPDATE message 的 path attribute 字段中报告的信息.
route 在 BGP speaker 之间通过 UPDATE message 通告. 多条具有相同 path attribute 的 route 可以通过在 UPDATE message 的 NLRI 字段中包含多个 prefix, 在单个 UPDATE message 中通告.
route 存储在 Routing Information Base (RIB) 中: 即 Adj-RIBs-In, Loc-RIB 和 Adj-RIBs-Out, 如 Section 3.2 所述.
如果 BGP speaker 决定通告先前接收的 route, 它 MAY 在向 peer 通告前添加或修改该 route 的 path attribute.
BGP 提供机制, 使 BGP speaker 能够告知其 peer 某条先前通告的 route 不再可用. 给定 BGP speaker 可以通过三种方法指示 route 已从服务中 withdrawn:
a) 可以在 UPDATE message 的 WITHDRAWN ROUTES 字段中通告表示先前通告 route 的 destination 的 IP prefix, 从而将相关 route 标记为不再可用,
b) 可以通告具有相同 NLRI 的替代 route, 或
c) 可以关闭 BGP speaker connection, 这会隐式地将这对 speaker 彼此通告过的所有 route 从服务中移除.
修改 route attribute 通过通告替代 route 实现. 替代 route 携带新的 (已修改的) attribute, 并具有与原 route 相同的 address prefix.