跳到主要内容

Appendix F. 实现建议

Appendix F. 实现建议 (Implementation Recommendations)​

本节给出若干实现建议.

Appendix F.1. Multiple Networks Per Message​

BGP protocol 允许在一个 message 中指定具有相同 path attribute 的多个 address prefix. 强烈推荐使用此能力.

Appendix F.2. Reducing Route Flapping​

为避免过度 route flapping, 如果 BGP speaker 需要 withdraw 某个 destination 并发送关于更具体或更不具体 route 的 update, 则应在同一 UPDATE message 中合并这些操作.

Appendix F.3. Path Attribute Ordering​

合并 Update message 的实现可能更希望以已知顺序看到所有 path attribute. 这使它们能够快速识别来自不同 Update message 且语义相同的 attribute set.

Appendix F.4. AS_SET Sorting​

另一个有用优化是对 AS_SET 中的 AS number 进行排序. 此优化完全是可选的.

Appendix F.5. Control Over Version Negotiation​

由于 BGP-4 能够承载无法在 BGP-3 中正确表示的 aggregated route, 同时支持 BGP-4 和另一种 BGP version 的实现应提供按 peer 仅使用 BGP-4 的能力.

Appendix F.6. Complex AS_PATH Aggregation​

希望提供保留大量 path information 的 path aggregation algorithm 的实现, 可以使用以下过程. aggregation algorithm 的细节在完整规范中给出.