Internet Engineering Task Force (IETF)                           R. Chen
Request for Comments: 9792                                       D. Zhao
Category: Standards Track                                ZTE Corporation
ISSN: 2070-1721                                                P. Psenak
                                                           K. Talaulikar
                                                           Cisco Systems
                                                                 L. Gong
                                                            China Mobile
                                                               June 2025
        
Prefix Flag Extension for OSPFv2 and OSPFv3
OSPFV2およびOSPFV3のプレフィックスフラグ拡張
Abstract
概要

Each OSPF prefix can be advertised with an 8-bit field to indicate specific properties of that prefix. However, all the OSPFv3 Prefix Options bits have already been assigned, and only a few bits remain unassigned in the Flags field of the OSPFv2 Extended Prefix TLV.

各OSPFプレフィックスは、8ビットフィールドで宣伝して、そのプレフィックスの特定の特性を示すことができます。ただし、すべてのOSPFV3プレフィックスオプションビットは既に割り当てられており、OSPFV2拡張プレフィックスTLVのフラグフィールドでは、少数のビットのみが割り当てられていないままです。

This document solves this problem by defining a variable-length Prefix Extended Flags sub-TLV for OSPF. This sub-TLV is applicable to OSPFv2 and OSPFv3.

このドキュメントは、OSPF用の可変長プレフィックス拡張フラグSub-TLVを定義することにより、この問題を解決します。このサブTLVは、OSPFV2およびOSPFV3に適用できます。

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/rfc9792.

このドキュメントの現在のステータス、任意のERRATA、およびそのフィードバックを提供する方法に関する情報は、https://www.rfc-editor.org/info/rfc9792で取得できます。

著作権表示

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

著作権(c)2025 IETF Trustおよび文書著者として特定された人。無断転載を禁じます。

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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.

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

Table of Contents
目次
   1.  Introduction
     1.1.  Requirements Language
   2.  Variable-Length Prefix Extended Flags Sub-TLV
   3.  Backward Compatibility
   4.  IANA Considerations
     4.1.  OSPFv2
       4.1.1.  OSPFv2 Prefix Extended Flags Sub-TLV
       4.1.2.  OSPFv2 Prefix Extended Flags Registry
     4.2.  OSPFv3
       4.2.1.  OSPFv3 Prefix Extended Flags Sub-TLV
       4.2.2.  OSPFv3 Prefix Extended Flags Registry
   5.  Security Considerations
   6.  References
     6.1.  Normative References
     6.2.  Informative References
   Acknowledgements
   Authors' Addresses
        
1. Introduction
1. はじめに

Each OSPF prefix can be advertised with an 8-bit field to indicate specific properties of that prefix. This is done using the OSPFv3 Prefix Options (Appendix A.4.1.1 of [RFC5340]) and the Flags field in the OSPFv2 Extended Prefix TLV (Section 2.1 of [RFC7684]). The rest of this document refers to these 8-bit fields in both OSPFv2 and OSPFv3 as the "existing fixed-size prefix flags".

各OSPFプレフィックスは、8ビットフィールドで宣伝して、そのプレフィックスの特定の特性を示すことができます。これは、OSPFV3プレフィックスオプション([RFC5340]の付録A.4.1.1)とOSPFV2拡張プレフィックスTLV([RFC7684]のセクション2.1)のフラグフィールドを使用して行われます。このドキュメントの残りの部分は、OSPFV2とOSPFV3の両方のこれらの8ビットフィールドを「既存の固定サイズのプレフィックスフラグ」と呼んでいます。

However, all the OSPFv3 Prefix Options bits have already been assigned (see the "OSPFv3 Prefix Options (8 bits)" IANA registry [IANA-OSPFv3-PO]). Also, at the time of publication of this document, only 5 bits remain unassigned in the Flags field of the OSPFv2 Extended Prefix TLV (see the "OSPFv2 Extended Prefix TLV Flags" IANA registry [IANA-OSPFv2-EPF]).

ただし、すべてのOSPFV3プレフィックスオプションビットはすでに割り当てられています(「OSPFV3プレフィックスオプション(8ビット)」IANAレジストリ[IANA-ospfv3-po]を参照)。また、このドキュメントの公開時点では、OSPFV2拡張プレフィックスTLVのフラグフィールドでは5ビットのみが割り当てられていないままです(「OSPFV2拡張プレフィックスTLVフラグ」を参照してください。

This document solves the problem of insufficient flag bits for the signaling of prefix properties in OSPF by defining a variable-length Prefix Extended Flags sub-TLV for OSPFv2 and OSPFv3.

このドキュメントは、OSPFV2およびOSPFV3の可変長いプレフィックス拡張フラグSub-TLVを定義することにより、OSPFのプレフィックスプロパティの信号のフラグビットが不十分な問題を解決します。

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」、「NOT RECOMMENDED」、「MAY」、および「OPTIONAL」は、ここに示すようにすべて大文字で表示されている場合にのみ、BCP 14 [RFC2119] [RFC8174] で説明されているように解釈されます。

2. Variable-Length Prefix Extended Flags Sub-TLV
2. 可変長プレフィックス拡張フラグサブTLV

This document defines a variable-length Prefix Extended Flags sub-TLV for OSPFv2 and OSPFv3. The sub-TLV specifies the variable-length Prefix Extended Flags field to advertise additional attributes associated with OSPF prefixes. The advertisement and processing of the existing fixed-size prefix flags remain unchanged.

このドキュメントでは、OSPFV2およびOSPFV3用の可変長プレフィックス拡張フラグSub-TLVを定義します。Sub-TLVは、OSPFプレフィックスに関連付けられた追加の属性を宣伝するために、可変長プレフィックス拡張フラグフィールドを指定します。既存の固定サイズのプレフィックスフラグの広告と処理は、変更されていません。

The format of the OSPFv2/OSPFv3 Prefix Extended Flags sub-TLV is shown in Figure 1.

OSPFV2/OSPFV3プレフィックス拡張フラグサブTLVの形式を図1に示します。

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |              Type             |            Length             |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                                                               |
   //                 Prefix Extended Flags (Variable)            //
   |                                                               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        

Figure 1: Format of OSPFv2/OSPFv3 Prefix Extended Flags Sub-TLV

図1:OSPFV2/OSPFV3プレフィックス拡張フラグサブTLVの形式

where:

ただし:

Type (2 octets):

タイプ(2オクテット):

11 for OSPFv2 and 37 for OSPFv3

11 OSPFV2の場合は11、OSPFV3の場合は37

Length (2 octets):

長さ(2オクテット):

Variable, dependent on the included Prefix Extended Flags field. This indicates the length of the Prefix Extended Flags field in octets. The length MUST be a multiple of 4 octets. If the length is not a multiple of 4 octets, the Link State Advertisement (LSA) is malformed and MUST be ignored.

含まれているプレフィックス拡張フラグフィールドに依存します。これは、オクテットのプレフィックス拡張フラグフィールドの長さを示します。長さは4オクテットの倍数でなければなりません。長さが4オクテットの倍数でない場合、リンク状態広告(LSA)は奇形で、無視する必要があります。

Prefix Extended Flags (Variable):

拡張フラグ(変数)のプレフィックス:

The extended flag field. This field contains a variable number of flags, grouped in 4-octet blocks. The bits are numbered starting from bit 0 as the most significant bit of the first 32-bit block. If the length of the Prefix Extended Flags field exceeds 4 octets, numbering for the additional bits picks up where the previous 4-octet block left off. For example, the most significant bit in the fifth octet of an 8-octet Prefix Extended Flags field is referred to as bit 32. Currently, no bits are defined in this document.

拡張フラグフィールド。このフィールドには、4オクテットブロックにグループ化されたさまざまな数のフラグが含まれています。ビットは、最初の32ビットブロックの中で最も重要なビットとしてビット0から始まる番号が付けられています。プレフィックスの拡張フラグフィールドの長さが4オクテットを超えると、追加のビットの番号付けが、前の4オクテットブロックが除外されたところからピックアップします。たとえば、8-OCTETプレフィックス拡張フラグフィールドの5番目のオクテットで最も重要なビットはビット32と呼ばれます。現在、このドキュメントではビットは定義されていません。

Unassigned bits MUST be set to zero on transmission and MUST be ignored on receipt.

割り当てられていないビットは、送信時にゼロに設定する必要があり、受領時に無視する必要があります。

An implementation MUST limit the length of the sub-TLV so as to signal the bits that are set to 1. Defined prefix flags that are not transmitted due to being beyond the transmitted length MUST be treated as being set to 0.

実装は、1に設定されたビットを信号するように、サブTLVの長さを制限する必要があります。送信された長さを超えているため送信されない定義されたプレフィックスフラグは、0に設定されていると扱わなければなりません。

The OSPFv2 Prefix Extended Flags sub-TLV is advertised as a sub-TLV of the OSPFv2 Extended Prefix TLV defined in [RFC7684]. Additional OSPFv2 prefix flags SHOULD be allocated from the unused bits in the Flags field of the OSPFv2 Extended Prefix TLV prior to allocating flags in the OSPFv2 Prefix Extended Flags sub-TLV.

OSPFV2プレフィックス拡張フラグSUB-TLVは、[RFC7684]で定義されたOSPFV2拡張プレフィックスTLVのサブTLVとして宣伝されています。追加のOSPFV2プレフィックスフラグは、OSPFV2プレフィックス拡張フラグサブTLVにフラグを割り当てる前に、OSPFV2拡張プレフィックスTLVのフラグフィールドの未使用ビットから割り当てる必要があります。

The OSPFv3 Prefix Extended Flags sub-TLV is advertised as a sub-TLV of the following OSPFv3 TLVs:

OSPFV3プレフィックス拡張フラグSub-TLVは、次のOSPFV3 TLVのサブTLVとして宣伝されています。

* Inter-Area-Prefix TLV (Section 3.4 of [RFC8362])

* エリア間型TLV([RFC8362]のセクション3.4)

* External-Prefix TLV (Section 3.6 of [RFC8362])

* 外部-Prefix TLV([RFC8362]のセクション3.6)

* Intra-Area-Prefix TLV (Section 3.7 of [RFC8362])

* エリア内 - プレフィックスTLV([RFC8362]のセクション3.7)

* SRv6 Locator TLV [RFC9513]

* SRV6ロケーターTLV [RFC9513]

When multiple instances of the OSPFv2/OSPFv3 Prefix Extended Flags sub-TLVs are received within the same TLV, an implementation MUST use only the first occurrence of the sub-TLV and MUST ignore all subsequent instances of the sub-TLV. Errors SHOULD be logged subject to rate limiting.

OSPFV2/OSPFV3プレフィックスの複数のインスタンスが同じTLV内で受信される場合、実装はSub-TLVの最初の発生のみを使用する必要があり、Sub-TLVの後続のすべてのインスタンスを無視する必要があります。エラーは、レート制限の対象となるログに記録する必要があります。

3. Backward Compatibility
3. 後方互換性

The OSPFv2/OSPFv3 Prefix Extended Flags sub-TLV does not introduce any backward compatibility issues. An implementation that does not recognize the OSPFv2/OSPFv3 Prefix Extended Flags sub-TLV would ignore the sub-TLV as per normal TLV processing operations (refer to Section 2.3.2 of [RFC3630] and Section 6.3 of [RFC8362]).

OSPFV2/OSPFV3プレフィックス拡張フラグSub-TLVは、後方互換性の問題を導入しません。OSPFV2/OSPFV3プレフィックス拡張フラグSUB-TLVを認識しない実装は、通常のTLV処理操作に従ってSub-TLVを無視します([RFC3630]のセクション2.3.2および[RFC8362]のセクション6.3を参照)。

4. IANA Considerations
4. IANAの考慮事項
4.1. OSPFv2
4.1. OSPFV2
4.1.1. OSPFv2 Prefix Extended Flags Sub-TLV
4.1.1. OSPFV2プレフィックス拡張フラグSub-TLV

IANA has allocated the following codepoint in the "OSPFv2 Extended Prefix TLV Sub-TLVs" registry:

IANAは、「OSPFV2拡張プレフィックスTLV SUB-TLVS」レジストリに次のコードポイントを割り当てました。

                +=======+==============================+===========+
                | Value | Description                  | Reference |
                +=======+==============================+===========+
                | 11    | OSPFv2 Prefix Extended Flags | RFC 9792  |
                +-------+------------------------------+-----------+

                                      Table 1
        
4.1.2. OSPFv2 Prefix Extended Flags Registry
4.1.2. OSPFV2プレフィックス拡張フラグレジストリ

IANA has created the "OSPFv2 Prefix Extended Flags" registry within the "Open Shortest Path First v2 (OSPFv2) Parameters" registry group. The registry defines the bits in the Prefix Extended Flags field in the OSPFv2 Prefix Extended Flags sub-TLV as specified in Section 2. The bits are to be allocated via IETF Review [RFC8126]. Each bit definition will include:

IANAは、「Open Shortest Path First V2(OSPFV2)パラメーター」レジストリグループ内に「OSPFV2プレフィックス拡張フラグ」レジストリを作成しました。レジストリは、セクション2で指定されているように、OSPFV2プレフィックス拡張フラグサブTLVのプレフィックス拡張フラグフィールドのビットを定義します。BITはIETFレビュー[RFC8126]を介して割り当てられます。各ビット定義には次のものが含まれます。

* Bit number (counting from bit 0 as the most significant bit of the first block)

* ビット番号(最初のブロックの中で最も重要なビットとしてビット0からカウント)

* Description

* 説明

* Reference

* 参照

No bits are currently defined. Bits 0-31 are to be initially marked as "Unassigned". The flags defined in this document may use either a single bit or multiple bits to represent a state, as determined by the specific requirements of the document defining them. IANA will add subsequent blocks of 32 bits upon exhaustion of the preceding 32-bit block.

現在、ビットは定義されていません。ビット0-31は、最初は「未割り当て」としてマークされます。このドキュメントで定義されているフラグは、それらを定義するドキュメントの特定の要件によって決定されるように、状態を表すために単一のビットまたは複数のビットのいずれかを使用できます。IANAは、前の32ビットブロックの疲労時に32ビットの後続のブロックを追加します。

4.2. OSPFv3
4.2. OSPFV3
4.2.1. OSPFv3 Prefix Extended Flags Sub-TLV
4.2.1. OSPFV3プレフィックス拡張フラグSUB-TLV

IANA has allocated the following codepoint in the "OSPFv3 Extended-LSA Sub-TLVs" registry:

IANAは、「OSPFV3拡張LSAサブTLV」レジストリに次のコードポイントを割り当てました。

          +=======+==============================+======+===========+
          | Value | Description                  | L2BM | Reference |
          +=======+==============================+======+===========+
          | 37    | OSPFv3 Prefix Extended Flags |  X   | RFC 9792  |
          +-------+------------------------------+------+-----------+

                                    Table 2
        
4.2.2. OSPFv3 Prefix Extended Flags Registry
4.2.2. OSPFV3プレフィックス拡張フラグレジストリ

IANA has created the "OSPFv3 Prefix Extended Flags" registry within the "Open Shortest Path First v3 (OSPFv3) Parameters" registry group. The registry defines the bits in the Prefix Extended Flags field in the OSPFv2 Prefix Extended Flags sub-TLV as specified in Section 2. The bits are to be allocated via IETF Review [RFC8126]. Each bit definition will include:

IANAは、「Open Shortest Path First V3(OSPFV3)パラメーター」レジストリグループ内に「OSPFV3プレフィックス拡張フラグ」レジストリを作成しました。レジストリは、セクション2で指定されているように、OSPFV2プレフィックス拡張フラグサブTLVのプレフィックス拡張フラグフィールドのビットを定義します。BITはIETFレビュー[RFC8126]を介して割り当てられます。各ビット定義には次のものが含まれます。

* Bit number (counting from bit 0 as the most significant bit of the first block)

* ビット番号(最初のブロックの中で最も重要なビットとしてビット0からカウント)

* Description

* 説明

* Reference

* 参照

No bits are currently defined. Bits 0-31 are to be initially marked as "Unassigned". The flags defined in this document may use either a single bit or multiple bits to represent a state, as determined by the specific requirements of the document defining them. IANA will add subsequent blocks of 32 bits upon exhaustion of the preceding 32-bit block.

現在、ビットは定義されていません。ビット0-31は、最初は「未割り当て」としてマークされます。このドキュメントで定義されているフラグは、それらを定義するドキュメントの特定の要件によって決定されるように、状態を表すために単一のビットまたは複数のビットのいずれかを使用できます。IANAは、前の32ビットブロックの疲労時に32ビットの後続のブロックを追加します。

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

Procedures and protocol extensions defined in this document do not affect the OSPFv2 or OSPFv3 security models. See Section 5 of [RFC7684] for a discussion of OSPFv2 TLV-encoding considerations and Section 7 of [RFC8362] for a discussion of OSPFv3 security.

このドキュメントで定義されている手順とプロトコル拡張は、OSPFV2またはOSPFV3セキュリティモデルに影響しません。OSPFV2 TLV-Encodingの考慮事項の議論については、[RFC7684]のセクション5と[RFC8362]のセクション7を参照してください。

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>.
        
   [RFC3630]  Katz, D., Kompella, K., and D. Yeung, "Traffic Engineering
              (TE) Extensions to OSPF Version 2", RFC 3630,
              DOI 10.17487/RFC3630, September 2003,
              <https://www.rfc-editor.org/info/rfc3630>.
        
   [RFC5340]  Coltun, R., Ferguson, D., Moy, J., and A. Lindem, "OSPF
              for IPv6", RFC 5340, DOI 10.17487/RFC5340, July 2008,
              <https://www.rfc-editor.org/info/rfc5340>.
        
   [RFC7684]  Psenak, P., Gredler, H., Shakir, R., Henderickx, W.,
              Tantsura, J., and A. Lindem, "OSPFv2 Prefix/Link Attribute
              Advertisement", RFC 7684, DOI 10.17487/RFC7684, November
              2015, <https://www.rfc-editor.org/info/rfc7684>.
        
   [RFC8126]  Cotton, M., Leiba, B., and T. Narten, "Guidelines for
              Writing an IANA Considerations Section in RFCs", BCP 26,
              RFC 8126, DOI 10.17487/RFC8126, June 2017,
              <https://www.rfc-editor.org/info/rfc8126>.
        
   [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>.
        
   [RFC8362]  Lindem, A., Roy, A., Goethals, D., Reddy Vallem, V., and
              F. Baker, "OSPFv3 Link State Advertisement (LSA)
              Extensibility", RFC 8362, DOI 10.17487/RFC8362, April
              2018, <https://www.rfc-editor.org/info/rfc8362>.
        
   [RFC9513]  Li, Z., Hu, Z., Talaulikar, K., Ed., and P. Psenak,
              "OSPFv3 Extensions for Segment Routing over IPv6 (SRv6)",
              RFC 9513, DOI 10.17487/RFC9513, December 2023,
              <https://www.rfc-editor.org/info/rfc9513>.
        
6.2. Informative References
6.2. 参考引用
   [IANA-OSPFv2-EPF]
              IANA, "OSPFv2 Extended Prefix TLV Flags",
              <https://www.iana.org/assignments/ospfv2-parameters>.
        
   [IANA-OSPFv3-PO]
              IANA, "OSPFv3 Prefix Options (8 bits)",
              <https://www.iana.org/assignments/ospfv3-parameters>.
        
Acknowledgements
謝辞

The authors would like to thank Shraddha Hegde, Changwang Lin, Tom Petch, and many others for their suggestions and comments.

著者は、Shraddha Hegde、Changwang Lin、Tom Petch、その他多くの人々の提案やコメントに感謝したいと思います。

The authors would also like to thank Acee Lindem for aligning the terminology with existing OSPF documents and for editorial improvements.

著者はまた、用語を既存のOSPFドキュメントに合わせて編集上の改善について、Acee Lindemに感謝したいと思います。

Authors' Addresses
著者のアドレス
   Ran Chen
   ZTE Corporation
   Nanjing
   China
   Email: chen.ran@zte.com.cn
        
   Detao Zhao
   ZTE Corporation
   Nanjing
   China
   Email: zhao.detao@zte.com.cn
        
   Peter Psenak
   Cisco Systems
   Apollo Business Center
   Mlynske nivy 43
   821 09 Bratislava
   Slovakia
   Email: ppsenak@cisco.com
        
   Ketan Talaulikar
   Cisco Systems
   India
   Email: ketant.ietf@gmail.com
        
   Liyan Gong
   China Mobile
   China
   Email: gongliyan@chinamobile.com