3. IPv4 Address Family 的 AFI/SAFI 定义扩展
如前所述, MP-BGP 规定可用 next-hop address families 的集合由 AFI 和 SAFI 决定. 以下针对 IPv4 NLRI 或 VPN-IPv4 NLRI (<1/1>, <1/2>, <1/4>, <1/128> 和 <1/129>) 的 AFI/SAFI definitions 只规定了通告属于 IPv4 protocol 的 next-hop address. 当通告 IPv4 或 VPN-IPv4 NLRI 时, 本文档将可用 next-hop address families 的集合扩展为除 IPv4 外还包括 IPv6.
具体而言, 本文档允许使用以下内容通告 MP_REACH_NLRI attribute [RFC4760]:
-
AFI = 1
-
SAFI = 1, 2, or 4
-
Length of Next Hop Address = 16 or 32
-
Next Hop Address = IPv6 address of a next hop (potentially followed by the link-local IPv6 address of the next hop). This field is to be constructed as per Section 3 of [RFC2545].
-
NLRI = NLRI as per the AFI/SAFI definition
本文档还允许使用以下内容通告 MP_REACH_NLRI attribute [RFC4760]:
-
AFI = 1
-
SAFI = 128 or 129
-
Length of Next Hop Address = 24 or 48
-
Next Hop Address = VPN-IPv6 address of a next hop with an 8-octet RD set to zero (potentially followed by the link-local VPN-IPv6 address of the next hop with an 8-octet RD set to zero).
-
NLRI = NLRI as per the AFI/SAFI definition
这是对现有 operation mode 的补充. 现有模式允许为 <AFI/SAFI> 为 <1/1>, <1/2> 和 <1/4> 的 NLRI 通告 IPv4 type 的 next-hop address, 并允许为 <AFI/SAFI> 为 <1/128> 和 <1/129> 的 NLRI 通告 VPN-IPv4 type 的 next-hop address.
收到 advertisement 的 BGP speaker MUST 使用 Length of Next Hop Address field 来确定 next-hop address 属于哪个 network-layer protocol.
-
当 AFI/SAFI 为
<1/1>,<1/2>或<1/4>, 且 Length of Next Hop Address field 等于 16 或 32 时, next-hop address 为 IPv6 type. -
当 AFI/SAFI 为
<1/128>或<1/129>, 且 Length of Next Hop Address field 等于 24 或 48 时, next-hop address 为 VPN-IPv6 type.
注意, 使用 Length of Next Hop Address field 来确定 next-hop address 属于哪个 network-layer protocol (从 AFI/SAFI definition 允许的 protocols 集合中确定) 的方法, 与 [RFC4684] 和 [RFC6074] 中使用的方法相同.