跳到主要内容

RFC 9012 - BGP 隧道封装属性

  • 状态: Proposed Standard
  • 发布日期: April 2021
  • Stream: IETF
  • 更新: RFC5640
  • 废弃: RFC5512, RFC5566
  • 勘误: 无勘误

文档信息

  • RFC 编号: 9012
  • 标题: The BGP Tunnel Encapsulation Attribute
  • 作者: K. Patel, G. Van de Velde, S. Sangli, J. Scudder
  • 日期: April 2021
  • 类别: Standards Track
  • ISSN: 2070-1721
  • 废弃: RFC 5512, RFC 5566
  • 更新: RFC 5640

摘要

本文档定义了一种称为 "Tunnel Encapsulation attribute" (隧道封装属性) 的 BGP 路径属性, 可与多种 Subsequent Address Family Identifier (SAFI) 的 BGP UPDATE 一起使用, 以提供创建隧道及其对应封装头所需的信息. 它为多种隧道类型提供编码, 以及在备选隧道之间进行选择并将分组路由进隧道的规程.

本文档废止 RFC 5512, 该文档曾对 Tunnel Encapsulation attribute 给出较早定义. RFC 5512 从未在生产环境中部署. 由于 RFC 5566 依赖 RFC 5512, 因此同样被废止. 本文档更新 RFC 5640, 指明在需要负载均衡时, 可将 Load-Balancing Block sub-TLV 包含在任何 Tunnel Encapsulation attribute 中.

本备忘录状态

这是一份 Internet Standards Track 文档.

本文档是 Internet Engineering Task Force (IETF) 的产物. 它代表 IETF 社区的共识. 它已接受公众审查, 并由 Internet Engineering Steering Group (IESG) 批准发布. 有关 Internet 标准的更多信息, 见 RFC 7841 第 2 节.

有关本文档当前状态, 任何勘误以及如何提供反馈的信息, 可访问 https://www.rfc-editor.org/info/rfc9012.

版权声明

Copyright (c) 2021 IETF Trust 以及被标明为文档作者的人员. 保留所有权利.

本文档受 BCP 78 以及 IETF Trust 关于 IETF 文档的法律条款 (https://trustee.ietf.org/license-info) (在本文档发布之日生效) 的约束. 请仔细审阅这些文档, 因为它们描述了您对本文档的权利和限制. 从本文档提取的代码组件必须包含 Trust Legal Provisions 第 4.e 节所述的 Simplified BSD License 文本, 并且不提供该许可证中所述的任何保证.

目录

  1. 引言
  2. Tunnel Encapsulation Attribute
  3. Tunnel Encapsulation Attribute 的 Sub-TLV
  4. 与 Tunnel Encapsulation Attribute 相关的 Extended Community
  5. IP-in-IP 隧道的特殊考虑
  6. Tunnel Encapsulation Attribute 的语义与用法
  7. 路由考虑
  8. 递归下一跳解析
  9. 施加隧道封装时虚拟网络标识符与嵌入标签的使用
  10. 适用性限制
  11. 作用域
  12. 运维考虑
  13. 验证与错误处理
  14. IANA 考虑
  15. 安全考虑
  16. 参考文献

1. 引言

本文档定义了一种称为 "Tunnel Encapsulation attribute" 的 BGP 路径属性, 可与多种 Subsequent Address Family Identifier (SAFI) 的 BGP UPDATE 一起使用, 以提供创建隧道及其对应封装头所需的信息. 它为多种隧道类型提供编码, 以及在备选隧道之间进行选择并将分组路由进隧道的规程.

本文档废止 RFC 5512, 该文档曾对 Tunnel Encapsulation attribute 给出较早定义. RFC 5512 从未在生产环境中部署. 由于 RFC 5566 依赖 RFC 5512, 因此同样被废止. 本文档更新 RFC 5640, 指明在需要负载均衡时, 可将 Load-Balancing Block sub-TLV 包含在任何 Tunnel Encapsulation attribute 中.

2. The Tunnel Encapsulation Attribute

Tunnel Encapsulation attribute 是可选的传递性 BGP 路径属性. IANA 已将该属性的 type code 赋值为 23.

Tunnel Encapsulation attribute 由一组 Type-Length-Value (TLV) 编码组成. 每个 TLV 包含对应于特定隧道类型的信息.

3. Tunnel Encapsulation Attribute Sub-TLVs

Tunnel Encapsulation attribute 中 TLV 的 Value 字段由一系列 sub-TLV 组成.

3.1. The Tunnel Egress Endpoint Sub-TLV (Type Code 6)

3.2. Encapsulation Sub-TLVs for Particular Tunnel Types (Type Code 1)

3.2.1. VXLAN (Tunnel Type 8)

3.2.2. NVGRE (Tunnel Type 9)

3.2.3. L2TPv3 (Tunnel Type 1)

3.2.4. GRE (Tunnel Type 2)

3.2.5. MPLS-in-GRE (Tunnel Type 11)

3.3. Outer Encapsulation Sub-TLVs

3.3.1. DS Field (Type Code 7)

3.3.2. UDP Destination Port (Type Code 8)

3.4. Sub-TLVs for Aiding Tunnel Selection

3.4.1. Protocol Type Sub-TLV (Type Code 2)

3.4.2. Color Sub-TLV (Type Code 4)

3.5. Embedded Label Handling Sub-TLV (Type Code 9)

3.6. MPLS Label Stack Sub-TLV (Type Code 10)

3.7. Prefix-SID Sub-TLV (Type Code 11)

4.1. Encapsulation Extended Community

4.2. Router's MAC Extended Community

4.3. Color Extended Community

5. Special Considerations for IP-in-IP Tunnels

6. Semantics and Usage of the Tunnel Encapsulation Attribute

7. Routing Considerations

7.1. Impact on the BGP Decision Process

7.2. Looping, Mutual Recursion, Etc.

8. Recursive Next-Hop Resolution

9. Use of Virtual Network Identifiers and Embedded Labels When Imposing a Tunnel Encapsulation

9.1. Tunnel Types without a Virtual Network Identifier Field

9.2. Tunnel Types with a Virtual Network Identifier Field

9.2.1. Unlabeled Address Families

9.2.2. Labeled Address Families

10. Applicability Restrictions

11. Scoping

12. Operational Considerations

13. Validation and Error Handling

14. IANA Considerations

15. Security Considerations

16. References

16.1. Normative References

16.2. Informative References

Appendix A. Impact on RFC 8365

致谢

作者地址

Keyur Patel
Arrcus, Inc.
Email: [email protected]

Gunter Van de Velde
Nokia
Email: [email protected]

Srihari R. Sangli
Juniper Networks
Email: [email protected]

John Scudder
Juniper Networks
Email: [email protected]