RFC 9983: OSPFv2 Anycast Property Advertisement
- R. Chen,
- D. Zhao,
- P. Psenak,
- K. Talaulikar,
- C. Lin
Abstract
An IP prefix may be configured as anycast and, as such, the same value can be advertised by multiple routers. It is useful for other routers to know that the advertisement is for an anycast prefix.¶
This document defines a new flag in the OSPFv2 Extended Prefix TLV Flags to advertise the anycast property. The document also specifies a companion YANG module for managing this function.¶
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.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://
1. Introduction
An IP prefix may be configured as anycast and, as such, the same value can be advertised by multiple routers. It is useful for other routers to know that the advertisement is for an anycast prefix.¶
[RFC7684] defines OSPFv2 Opaque Link State Advertisements (LSAs) based on Type
Extensions related to the anycast property of prefixes have been specified for IS-IS [RFC9352] and OSPFv3 [RFC9513], even though those documents are related to Segment Routing over IPv6, the anycast property applies to any IP prefix advertisement. This document defines a flag to advertise the anycast property for a prefix advertisement in OSPFv2 in the Flags field of the OSPFv2 Extended Prefix TLV Flags (Section 2.1 of [RFC7684]). The document also specifies a companion YANG module for managing this function.¶
1.1. Requirements Language
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.¶
2. OSPFv2 Anycast Property Advertisement
An IP prefix may be configured as anycast; it is useful for other routers to know that the advertisement is for an anycast prefix.¶
In the context of the flags defined in this document, the term "set" means the bit is set to 1; "clear" means the bit is set to 0.¶
A flag is introduced in the "OSPFv2 Extended Prefix TLV Flags" IANA registry (see [RFC7684]) to advertise the anycast property:¶
The only meaning of the AC-Flag is that the prefix is intended to be advertised by multiple nodes.¶
When a prefix is configured as anycast, the AC-Flag MUST be set. Otherwise, this flag MUST be clear.¶
The AC-Flag and the N-flag (Section 2.1 of [RFC7684]) MUST NOT both be set. The reception of an advertisement with both the N-flag and AC-Flag set MUST be considered a configuration anomaly, and the N-flag MUST be ignored. Additionally, the detection of such a conflicting advertisement SHOULD be logged as an operational error (subject to rate-limiting).¶
The AC-Flag MUST be preserved when the OSPFv2 Extended Prefix Opaque LSA is re-advertised into other areas.¶
The same prefix can be advertised by multiple routers, and, if at least one of them sets the AC-Flag in its advertisement, the prefix is considered to be anycast.¶
A prefix that is advertised by a single node and without an AC-Flag is considered to be a node-specific prefix.¶
Anycast prefixes SHOULD be consistently managed throughout the network. Since an AC-Flag set takes precedence in identifying the anycast property, stale configurations should be strictly monitored.¶
3. BGP-LS Advertisement
[RFC9085] defines the Prefix Attribute Flags TLV for Border Gateway Protocol - Link State (BGP-LS) that carries prefix attribute flags information. The Flags field of this TLV is interpreted according to OSPFv2 [RFC7684]. Thus, the Flags field of the BGP-LS Prefix Attribute Flags TLV also conveys the anycast property introduced by this document.¶
4. YANG Data Model
YANG [RFC7950] is a data definition language used to define the contents of a conceptual data store that allows networked devices to be managed using Network Configuration Protocol (NETCONF) [RFC6241] or RESTCONF [RFC8040].¶
This section defines a YANG data model that can be used to manage the usage of the OSPFv2 Anycast Property as defined in this document, which augments the OSPF YANG data model [RFC9129] and the YANG Data Model for Routing Management [RFC8349].¶
4.1. Tree for the YANG Data Model
This document uses the graphical representation of data models per [RFC8340].¶
The following shows the tree diagram of the module:¶
4.2. YANG Data Model for OSPFv2 Anycast Property Advertisement
The "ietf
5. IANA Considerations
IANA has allocated and/or registered the following values in their respective registries.¶
5.1. OSPFv2 Extended Prefix TLV Flags Registry
IANA has allocated the following value in the "OSPFv2 Extended Prefix TLV Flags" registry:¶
0x10: AC-Flag (Anycast Flag)¶
5.2. OSPFv2 Anycast Flag YANG Module Registration
IANA has registered the following URI in the "ns" registry within the "IETF XML Registry" registry group (see [RFC3688]):¶
- ID:
- yang
:ietf -ospf -anycast -flag¶ - URI:
- urn
:ietf :params :xml :ns :yang :ietf -ospf -anycast -flag¶ - Registrant Contact:
- The IESG¶
- XML:
- N/A; the requested URI is an XML namespace¶
IANA has registered the following YANG module in the "YANG Module Names" registry ([RFC6020]) within the "YANG Parameters" registry group.¶
6. Security Considerations
6.1. Protocol Security Considerations
Procedures and protocol extensions defined in this document do not affect the OSPFv2 security model. See the "Security Considerations" section of [RFC7684] for a discussion of OSPFv2 security.¶
The newly introduced AC-Flag, which MUST be either set or clear, introduces operational dependencies that impact the semantic validity of the advertised prefix. The correct semantic interpretation of the AC-Flag relies on both router implementation support for the flag and accurate operator configuration of the anycast route. Consequently, receivers MUST consider the possibility of misconfiguratio
6.2. YANG Security Considerations
This section is modeled after the template described in Section 3.7 of [RFC9907].¶
The "ietf
The Network Configuration Access Control Model (NACM) [RFC8341] provides the means to restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.¶
There is a data node defined in this YANG module that is writable
/ospf
As specified in Section 2, the AC-Flag and the N-flag MUST NOT both be set to 1. This rule is enforced by a "must" constraint in the YANG module to prevent configuration anomalies. The handling of such anomalies is defined in Section 2. Modifications to this data node without proper protection could prevent interpreting the IPv4 prefix as anycast or node-specific.¶
The readable data node in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to this data node. Specifically, the following subtree and data node have particular sensitivities
/ospf
Unauthorized access to the data node of this subtree can disclose specific anycast property information for OSPF prefixes on a device.¶
There are no particularly sensitive RPC or action operations.¶
7. References
7.1. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC3688]
-
Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10
.17487 , , <https:///RFC3688 www >..rfc -editor .org /info /rfc3688 - [RFC6020]
-
Bjorklund, M., Ed., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, DOI 10
.17487 , , <https:///RFC6020 www >..rfc -editor .org /info /rfc6020 - [RFC7684]
-
Psenak, P., Gredler, H., Shakir, R., Henderickx, W., Tantsura, J., and A. Lindem, "OSPFv2 Prefix/Link Attribute Advertisement", RFC 7684, DOI 10
.17487 , , <https:///RFC7684 www >..rfc -editor .org /info /rfc7684 - [RFC7950]
-
Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", RFC 7950, DOI 10
.17487 , , <https:///RFC7950 www >..rfc -editor .org /info /rfc7950 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC8341]
-
Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10
.17487 , , <https:///RFC8341 www >..rfc -editor .org /info /rfc8341 - [RFC8349]
-
Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for Routing Management (NMDA Version)", RFC 8349, DOI 10
.17487 , , <https:///RFC8349 www >..rfc -editor .org /info /rfc8349 - [RFC9085]
-
Previdi, S., Talaulikar, K., Ed., Filsfils, C., Gredler, H., and M. Chen, "Border Gateway Protocol - Link State (BGP-LS) Extensions for Segment Routing", RFC 9085, DOI 10
.17487 , , <https:///RFC9085 www >..rfc -editor .org /info /rfc9085 - [RFC9129]
-
Yeung, D., Qu, Y., Zhang, Z., Chen, I., and A. Lindem, "YANG Data Model for the OSPF Protocol", RFC 9129, DOI 10
.17487 , , <https:///RFC9129 www >..rfc -editor .org /info /rfc9129
7.2. Informative References
- [RFC4252]
-
Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) Authentication Protocol", RFC 4252, DOI 10
.17487 , , <https:///RFC4252 www >..rfc -editor .org /info /rfc4252 - [RFC6241]
-
Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10
.17487 , , <https:///RFC6241 www >..rfc -editor .org /info /rfc6241 - [RFC8040]
-
Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10
.17487 , , <https:///RFC8040 www >..rfc -editor .org /info /rfc8040 - [RFC8340]
-
Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10
.17487 , , <https:///RFC8340 www >..rfc -editor .org /info /rfc8340 - [RFC8446]
-
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10
.17487 , , <https:///RFC8446 www >..rfc -editor .org /info /rfc8446 - [RFC9000]
-
Iyengar, J., Ed. and M. Thomson, Ed., "QUIC: A UDP-Based Multiplexed and Secure Transport", RFC 9000, DOI 10
.17487 , , <https:///RFC9000 www >..rfc -editor .org /info /rfc9000 - [RFC9352]
-
Psenak, P., Ed., Filsfils, C., Bashandy, A., Decraene, B., and Z. Hu, "IS-IS Extensions to Support Segment Routing over the IPv6 Data Plane", RFC 9352, DOI 10
.17487 , , <https:///RFC9352 www >..rfc -editor .org /info /rfc9352 - [RFC9513]
-
Li, Z., Hu, Z., Talaulikar, K., Ed., and P. Psenak, "OSPFv3 Extensions for Segment Routing over IPv6 (SRv6)", RFC 9513, DOI 10
.17487 , , <https:///RFC9513 www >..rfc -editor .org /info /rfc9513 - [RFC9907]
-
Bierman, A., Boucadair, M., Ed., and Q. Wu, "Guidelines for Authors and Reviewers of Documents Containing YANG Data Models", BCP 216, RFC 9907, DOI 10
.17487 , , <https:///RFC9907 www >..rfc -editor .org /info /rfc9907
Acknowledgements
The authors would like to thank Acee Lindem for aligning the terminology with existing OSPF documents and for editorial improvements.¶
Contributors
This document has the following contributor:¶