[要約] RFC 9072は、BGP OPENメッセージの拡張オプショナルパラメータ長を定義します。この拡張は、より大きなパラメータセットをサポートするためのもので、BGPの柔軟性と将来の拡張性を高めます。主に、大規模ネットワークや複雑なルーティングポリシーを持つ環境での利用が想定されています。

Internet Engineering Task Force (IETF)                           E. Chen
Request for Comments: 9072                            Palo Alto Networks
Updates: 4271                                                 J. Scudder
Category: Standards Track                               Juniper Networks
ISSN: 2070-1721                                                July 2021
        

Extended Optional Parameters Length for BGP OPEN Message

拡張オプションパラメータBGP Openメッセージの長さ

Abstract

概要

The Optional Parameters in the BGP OPEN message as defined in the base BGP specification are limited to 255 octets due to a one-octet length field. BGP capabilities are carried in this field and may foreseeably exceed 255 octets in the future, leading to concerns about this limitation.

BES BGP仕様で定義されているBGPオープンメッセージ内のオプションのパラメータは、1オクテット長フィールドのために255オクテットに制限されています。BGP機能はこの分野で運ばれ、将来的には255オクテットを超える可能性があり、この制限についての懸念をもたらす可能性があります。

This document updates RFC 4271 by extending, in a backward-compatible manner, the length of the Optional Parameters in a BGP OPEN message. The Parameter Length field of individual Optional Parameters is also extended.

この文書は、BGPオープンメッセージ内のオプションのパラメータの長さを逆方向に互換性のある方法で拡張することによってRFC4271を更新する。個々のオプションパラメータのパラメータ長フィールドも拡張されます。

Status of This Memo

本文書の位置付け

This is an Internet Standards Track document.

これはインターネット規格のトラック文書です。

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.

この文書は、インターネットエンジニアリングタスクフォース(IETF)の製品です。IETFコミュニティのコンセンサスを表します。それは公開レビューを受け、インターネットエンジニアリングステアリンググループ(IESG)による出版の承認を受けました。インターネット規格に関する詳細情報は、RFC 7841のセクション2で利用できます。

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc9072.

この文書の現在のステータス、任意のエラータ、およびフィードバックを提供する方法は、https://www.rfc-editor.org/info/rfc9072で入手できます。

Copyright Notice

著作権表示

Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.

著作権(C)2021 IETF信頼と文書著者として識別された人。全著作権所有。

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.

このドキュメントは、このドキュメントの発行日に有効なBCP 78およびIETFドキュメントに関連するIETFトラストの法的規定(https://trustee.ietf.org/license-info)の対象となります。 これらのドキュメントは、このドキュメントに関するお客様の権利と制限について説明しているため、注意深く確認してください。 このドキュメントから抽出されたコードコンポーネントには、Trust LegalProvisionsのセクション4.eで説明されているSimplifiedBSD Licenseテキストが含まれている必要があり、Simplified BSDLicenseで説明されているように保証なしで提供されます。

Table of Contents

目次

   1.  Introduction
     1.1.  Requirements Language
   2.  Update to RFC 4271
   3.  Backward Compatibility
   4.  IANA Considerations
   5.  Security Considerations
   6.  References
     6.1.  Normative References
     6.2.  Informative References
   Acknowledgements
   Authors' Addresses
        
1. Introduction
1. はじめに

The Optional Parameters Length field in the BGP OPEN message is defined in the base BGP specification [RFC4271] as one octet, thus limiting the Optional Parameters field in the OPEN message to 255 octets. Since BGP capabilities [RFC5492] are carried in the Optional Parameters field, and new BGP capabilities continue to be introduced, the limitation is a concern for BGP development.

BGPオープンメッセージのオプションのパラメータ長フィールドは、ベースBGP仕様[RFC4271]で1オクテットとして定義されているため、オープンメッセージ内のオプションのパラメータフィールドが255オクテットに制限されます。BGP機能[RFC5492]が[オプションのパラメータ]フィールドで実行され、新しいBGP機能が導入され続けるため、制限はBGP開発にとって重要です。

This document updates [RFC4271] by extending the length of the Optional Parameters in BGP OPEN in a backward-compatible manner. This is done by using Optional Parameter type code 255 as a distinguished value, which indicates an extended Optional Parameters Length field follows and that the parsing of the BGP OPEN should be modified according to these procedures. In this case, the Parameter Length field of the individual Optional Parameters in the BGP OPEN message is also extended.

この文書は、BGP OPENのオプションのパラメータの長さを後方互換性のある方法で拡張することによって[RFC4271]を更新します。これは、拡張オプションのパラメータ長フィールドが続く拡張されたオプションのパラメータフィールドを示す、およびBGPオープンの解析がこれらの手順に従って変更されるべきであることを示す識別値として、オプションのパラメータタイプコード255を使用することによって行われます。この場合、BGPオープンメッセージ内の個々のオプションパラメータのパラメータ長フィールドも拡張されます。

1.1. Requirements Language
1.1. 要件言語

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

この文書のキーワード "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", および "OPTIONAL" はBCP 14 [RFC2119] [RFC8174]で説明されているように、すべて大文字の場合にのみ解釈されます。

2. Update to RFC 4271
2. RFC 4271に更新されます

This document reserves Optional Parameter type code 255 as the "Extended Length".

この文書は「拡張長」としてオプションのパラメータタイプコード255を予約します。

In the event that the length of the Optional Parameters in the BGP OPEN message does not exceed 255, the encodings of the base BGP specification [RFC4271] SHOULD be used without alteration. Configuration MAY override this to force the extended format to be used in all cases; this might be used, for example, to test that a peer supports this specification. (In any case, an implementation MUST accept an OPEN message that uses the encoding of this specification even if the length of the Optional Parameters is 255 or less.)

BGPオープンメッセージ内のオプションパラメータの長さが255を超えていない場合は、ベースBGP仕様[RFC4271]のエンコーディングを変更することなく使用する必要があります。構成をすべてオーバーライドすると、拡張フォーマットをすべての場合で使用されるように強制することができます。これは、たとえば、ピアがこの仕様をサポートしていることをテストするために使用されます。(いずれにせよ、実装は、オプションのパラメータの長さが255以下であっても、この仕様のエンコードを使用するオープンメッセージを受け入れる必要があります。)

However, if the length of the Optional Parameters in the BGP OPEN message does exceed 255, the OPEN message MUST be encoded according to the procedure below.

ただし、BGP Openメッセージ内のオプションのパラメータの長さが255を超えると、オープンメッセージは以下の手順に従ってエンコードされている必要があります。

        0                   1                   2                   3
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
       +-+-+-+-+-+-+-+-+
       |    Version    |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |     My Autonomous System      |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |           Hold Time           |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |                         BGP Identifier                        |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |Non-Ext OP Len.|Non-Ext OP Type|  Extended Opt. Parm. Length   |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |                                                               |
       |             Optional Parameters (variable)                    |
       |                                                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 1: Extended Encoding OPEN Format

図1:拡張エンコードオープンフォーマット

The Non-Extended Optional Parameters Length field (Non-Ext OP Len.) SHOULD be set to 255 on transmission and, in any event, MUST NOT be set to 0; it MUST be ignored on receipt once the use of the extended format is determined positively by inspection of the Non-Extended Optional Parameters Type (Non-Ext OP Type) field.

非拡張オプションパラメータ長フィールド(非ext op len)は、送信時に255に設定され、任意の場合には0に設定してはいけません。拡張フォーマットの使用が非拡張オプションパラメータタイプ(非EXT OPタイプ)フィールドの検査によって積極的に決定されると、受信時に無視される必要があります。

The subsequent one-octet field (which would be the first Optional Parameter Type field in the non-extended format and is called "Non-Ext OP Type" in the figure above) MUST be set to 255 on transmission. On receipt, a value of 255 for this field is the indication that the extended format is in use.

後続の1オクテットフィールド(非拡張フォーマットの最初のオプションのパラメータタイプフィールドとなるであろうと、上の図の「非ext op型」と呼ばれるであろう)は、送信時に255に設定する必要があります。受信時に、このフィールドの値255の値は、拡張フォーマットが使用中の指標です。

In this extended encoding, the subsequent two-octet field, termed the "Extended Optional Parameters Length field", is an unsigned integer indicating the total length of the Optional Parameters field in octets. If the value of this field is zero, no Optional Parameters are present.

この拡張エンコードでは、「拡張オプションパラメータ長フィールド」と呼ばれる後続の2 OCTETフィールドは、オクテット内のオプションパラメータフィールドの全長を示す符号なし整数です。このフィールドの値がゼロの場合、オプションのパラメータは存在しません。

Likewise, in that situation, the Optional Parameters encoding is modified to be the following:

同様に、その状況では、オプションのパラメータ符号化は次のように変更されます。

        0                   1                   2
        0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       |  Parm. Type   |        Parameter Length       |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       ~            Parameter Value (variable)         ~
       |                                               |
       +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 2: Extended Parameters Format

図2:拡張パラメータ形式

The rules for encoding Optional Parameters are unchanged with respect to those given in [RFC4271], except that the Parameter Length field is extended to be a two-octet unsigned integer.

オプションのパラメータを符号化するための規則は、[RFC4271]で指定されているものとは異なり、パラメータ長フィールドは2オクテットの符号なし整数になるように拡張されている。

In parsing an OPEN message, if the one-octet Optional Parameters Length field (labeled "Non-Ext OP Len." in Figure 1) is non-zero, a BGP speaker MUST use the value of the octet following the one-octet Optional Parameters Length field (labeled "Non-Ext OP Type" in Figure 1) to determine both the encoding of the Optional Parameters length and the size of the Parameter Length field of individual Optional Parameters. If the value of the "Non-Ext OP Type" field is 255, then the encoding described above is used for the Optional Parameters length. Otherwise, the encoding defined in [RFC4271] is used.

Ope-Oxt Optional Parameters Length field(図1の「非ext op len」とラベル付けされている場合)の場合、Openメッセージを解析する場合は、1オクテットのオプションに従ってBGPスピーカーがオクテットの値を使用する必要があります。パラメータ長フィールド(図1の「非ext op型」と表示されている)オプションのパラメータ長の符号化と個々のオプションパラメータのパラメータ長フィールドのサイズの両方を決定します。「非ext op型」フィールドの値が255である場合、上記のエンコードはオプションのパラメータ長に使用される。それ以外の場合は、[RFC4271]で定義されている符号化が使用されます。

3. Backward Compatibility
3. 下位互換性

If a BGP speaker supporting this specification (a "new speaker") is peering with one that does not (an "old speaker"), no interoperability issues arise unless the new speaker needs to encode Optional Parameters whose length exceeds 255. In that case, it will transmit an OPEN message that the old speaker will interpret as containing an Optional Parameter with type code 255. Since the old speaker will not recognize that type code by definition, the old speaker is expected to close the connection with a NOTIFICATION with an error code of "OPEN Message Error" and an error subcode of "Unsupported Optional Parameters", according to Section 6.2 of [RFC4271].

この仕様をサポートするBGPスピーカー(「新しいスピーカー」)が(「古いスピーカー」)でピアリングしている場合(「古いスピーカー」)、その長さが255を超えるオプションのパラメータをエンコードする必要がない限り、相互運用性の問題は発生しません。その場合はその場合古いスピーカーはタイプコード255でオプションのパラメータを含むと解釈されるというオープンメッセージを送信します。古いスピーカーは定義によってそのタイプコードを認識しないので、古いスピーカーは通知との接続を閉じると予想されます。[RFC4271]のセクション6.2に従って、「Open Message Error」のエラーコードと「サポートされていないオプションパラメータ」のエラーサブコード。

Although the Optional Parameter type code 255 is used in this specification as the indication that the extended encoding is in use, it is not a bona fide Optional Parameter type code in the usual sense and MUST NOT be used other than as described above. If encountered other than as the Non-Ext OP Type, it MUST be treated as an unrecognized Optional Parameter and handled according to [RFC4271], Section 6.2.

この仕様ではオプションのパラメータタイプコード255が使用されていることとして、通常の意味ではBONA FIDEオプションのパラメータタイプコードではなく、上述した以外は使用してはならない。非ext op型以外に遭遇した場合は、認識されていないオプションパラメータとして扱われ、[RFC4271]、セクション6.2に従って処理されます。

It is not considered an error to receive an OPEN message whose Extended Optional Parameters Length value is less than or equal to 255. It is not considered a fatal error to receive an OPEN message whose (non-extended) Optional Parameters Length value is not 255 and whose first Optional Parameter type code is 255 -- in this case, the encoding of this specification MUST be used for decoding the message.

拡張オプションのパラメータの長さ値が255以下であるオープンメッセージを受信するエラーは考慮されていません。(非拡張)オプションのパラメータ長値が255でないオープンメッセージを受信するための致命的なエラーとは見なされません。そして、その最初のオプションのパラメータタイプコードが255 - この場合、この仕様の符号化はメッセージの復号化に使用する必要があります。

4. IANA Considerations
4. IANAの考慮事項

IANA has assigned value 255 as the Extended Length type code in the "BGP OPEN Optional Parameter Types" registry.

IANAは、「BGP Open Optionalパラメータ型」レジストリの拡張長タイプコードとして値255を割り当てました。

5. Security Considerations
5. セキュリティに関する考慮事項

This extension to BGP does not change the underlying security or confidentiality issues inherent in the existing BGP [RFC4272].

BGPへのこの拡張は、既存のBGP [RFC4272]に固有の基になるセキュリティまたは機密性の問題を変更しません。

6. References
6. 参考文献
6.1. Normative References
6.1. 引用文献

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc-editor.org/info/rfc2119>.

[RFC2119] BRADNER、S、「RFCSで使用するためのキーワード」、BCP 14、RFC 2119、DOI 10.17487 / RFC2119、1997年3月、<https://www.rfc-editor.org/info/RFC2119>。

[RFC4271] Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI 10.17487/RFC4271, January 2006, <https://www.rfc-editor.org/info/rfc4271>.

[RFC4271]、y、ed。、Li、T.、Ed。、S. Hares、Ed。、「ボーダーゲートウェイプロトコル4(BGP-4)」、RFC 4271、DOI 10.17487 / RFC4271、2006年1月<https://www.rfc-editor.org/info/rfc4271>。

[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/info/rfc8174>.

[RFC8174] Leiba、B、「RFC 2119キーワードの大文字の曖昧さ」、BCP 14、RFC 8174、DOI 10.17487 / RFC8174、2017年5月、<https://www.rfc-editor.org/info/RFC8174>。

6.2. Informative References
6.2. 参考引用

[RFC4272] Murphy, S., "BGP Security Vulnerabilities Analysis", RFC 4272, DOI 10.17487/RFC4272, January 2006, <https://www.rfc-editor.org/info/rfc4272>.

[RFC4272] Murphy、S.、「BGPセキュリティ脆弱性分析」、RFC 4272、DOI 10.17487 / RFC4272、2006年1月、<https://www.rfc-editor.org/info/rfc4272>。

[RFC5492] Scudder, J. and R. Chandra, "Capabilities Advertisement with BGP-4", RFC 5492, DOI 10.17487/RFC5492, February 2009, <https://www.rfc-editor.org/info/rfc5492>.

[RFC5492] Scudder、J.およびR.Chandra、「BGP-4による機能広告」、RFC 5492、DOI 10.17487 / RFC5492、2009年2月、<https://www.rfc-editor.org/info/rfc5492>。

Acknowledgements

謝辞

The authors would like to thank Yakov Rekhter and Srihari Sangli for discussing various options to enlarge the Optional Parameters field. We would also like to thank Matthew Bocci, Bruno Decraene, John Heasley, Jakob Heitz, Christer Holmberg, Pradosh Mohapatra, Keyur Patel, and Hannes Gredler for their valuable comments.

オプションのパラメータフィールドを拡大するためにさまざまなオプションを議論するために、Yakov RekhterとSrihari Sangliに感謝します。Matthew Bocci、Bruno Decraene、John Heasleene、Jakob Heitz、Christer Holmberg、Pradosh Mohapatra、Keyur Patel、およびHannes Gredlerの貴重なコメントのためにもあります。

Authors' Addresses

著者の住所

Enke Chen Palo Alto Networks

チェンパロアルトネットワークをエンケします

   Email: enchen@paloaltonetworks.com
        

John Scudder Juniper Networks

John Scudder Juniperネットワーク

   Email: jgs@juniper.net