



LSR                                                              R. Chen
Internet-Draft                                                   D. Zhao
Intended status: Standards Track                         ZTE Corporation
Expires: 11 February 2026                                      P. Psenak
                                                           K. Talaulikar
                                                           Cisco Systems
                                                                  C. Lin
                                                                     H3C
                                                          10 August 2025


          Updates to Anycast Property advertisement for OSPFv2
                     draft-ietf-lsr-anycast-flag-03

Abstract

   An IPv4 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 identifier.

   Each OSPF prefix is advertised along with an 8-bit field of
   capabilities, by using the flag flield in the OSPFv2 Extended Prefix
   TLV, but the definition of anycast flag to identify the IPv4 prefix
   as anycast has not yet been defined.

   This document defines a new flag in the OSPFv2 Extended Prefix TLV
   Flags to advertise the anycast property.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on 11 February 2026.







Chen, et al.            Expires 11 February 2026                [Page 1]

Internet-Draft       Anycast Property advertisement          August 2025


Copyright Notice

   Copyright (c) 2025 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://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.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   3
   2.  Use-case  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Updates to Anycast Property advertisement for OSPFv2  . . . .   3
   4.  Updates to Anycast Property advertisement for BGP-LS  . . . .   4
   5.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   4
   6.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   4
     6.1.  OSPFv2 Extended Prefix TLV Flags Registry . . . . . . . .   4
   7.  Security Considerations . . . . . . . . . . . . . . . . . . .   5
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   5
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .   5
     8.2.  Informative References  . . . . . . . . . . . . . . . . .   5
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .   5

1.  Introduction

   An IPv4 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 identifier.

   [RFC7684] defines OSPFv2 Opaque LSAs based on Type-Length-Value (TLV)
   tuples that can be used to associate additional attributes with
   prefixes or links.  The OSPFv2 Extended Prefix TLV that is contained
   in the OSPFv2 Extended Prefix Opaque LSA is used to advertise
   additional attributes associated with an IPv4 prefix, but the
   definition of anycast flag to identify the IPv4 prefix as anycast has
   not yet been defined.

   The Flags field of the OSPFv2 Extended Prefix TLV (Section 2.1 of
   [RFC7684]) has 5 unassigned bits remaining (see "OSPFv2 Extended
   Prefix TLV Flags" IANA registry [IANA-OSPFv2-EPF]).




Chen, et al.            Expires 11 February 2026                [Page 2]

Internet-Draft       Anycast Property advertisement          August 2025


   This document updates [RFC7684], by defining a new flag in the OSPFv2
   Extended Prefix TLV Flags [RFC7684] to advertise the anycast property
   for an IPv4 prefix.

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.  Use-case

   In the absence of the N-flag, the node specific prefixes need to be
   identified from the anycast prefixs.  A prefix that is advertised by
   a single node and without an AC-flag MUST be considered node
   specific.

3.  Updates to Anycast Property advertisement for OSPFv2

   An IPv4 prefix may be configured as anycast and it is useful for
   other routers to know that the advertisement is for an anycast
   identifier.

   [RFC7684] defines one-octet field contains flags applicable to the
   prefix, and it has been defines the below flags(see "OSPFv2 Extended
   Prefix TLV Flags" IANA registry [IANA-OSPFv2-EPF]):

                    +=======+=============+===========+
                    | Value | Description | Reference |
                    +=======+=============+===========+
                    |  0x80 |      A      | [RFC7684] |
                    +-------+-------------+-----------+
                    |  0x40 |      N      | [RFC7684] |
                    +-------+-------------+-----------+
                    |  0x02 |    E-Flag   | [RFC9089] |
                    +-------+-------------+-----------+

                      Table 1: OSPFv2 Extended Prefix
                                 TLV Flags

   A new bit in OSPFv2 Extended Prefix TLV Flags[RFC7684] is defined to
   advertise the anycast property:

   Value: TBD

   Description:Anycast (AC-Flag)



Chen, et al.            Expires 11 February 2026                [Page 3]

Internet-Draft       Anycast Property advertisement          August 2025


   When the prefix is configured as anycast, the AC-Flag SHOULD be set.
   Otherwise, this flag MUST be clear.

   The AC-Flag and the N-bit MUST NOT both be set.  If both N-flag and
   AC-Flag are set, the receiving routers MUST ignore the N-flag.

   The AC-Flag MUST be preserved when re-advertising the prefix across
   areas.

   The same prefix can be advertised by multiple routers, and that if at
   least one of them sets the AC-Flag in its advertisement, the prefix
   SHOULD be considered as anycast.

   A prefix that is advertised by a single node and without an AC-flag
   MUST be considered node specific prefix.

4.  Updates to Anycast Property advertisement for BGP-LS

   [RFC9085] defines the Prefix Attribute Flags TLV carries IPv4 prefix
   attribute flags information, and the Flags field of this TLV is
   interpreted according to OSPFv2 [RFC7684].  This section extends the
   interpretation of the Flags field of the Prefix Attribute Flags TLV.

   Flags:

   *  OSPFv2 flags correspond to the Flags field of the OSPFv2 Extended
      Prefix TLV defined in [RFC7684] and extended in this draft.

5.  Acknowledgements

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

6.  IANA Considerations

   This document requests allocation for the following registry.

6.1.  OSPFv2 Extended Prefix TLV Flags Registry

   This document adds a new bit in the "OSPFv2 Extended Prefix TLV
   Flags"registry:

   AC-Flag (Anycast Flag).







Chen, et al.            Expires 11 February 2026                [Page 4]

Internet-Draft       Anycast Property advertisement          August 2025


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

8.  References

8.1.  Normative References

   [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>.

   [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>.

   [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>.

   [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/RFC9085, August 2021,
              <https://www.rfc-editor.org/info/rfc9085>.

   [RFC9089]  Xu, X., Kini, S., Psenak, P., Filsfils, C., Litkowski, S.,
              and M. Bocci, "Signaling Entropy Label Capability and
              Entropy Readable Label Depth Using OSPF", RFC 9089,
              DOI 10.17487/RFC9089, August 2021,
              <https://www.rfc-editor.org/info/rfc9089>.

8.2.  Informative References

   [IANA-OSPFv2-EPF]
              "OSPFv2 Extended Prefix TLV Flags",
              <https://www.iana.org/assignments/ospfv2-parameters/
              ospfv2-parameters.xhtml#extended-prefix-tlv-flags>.

Authors' Addresses






Chen, et al.            Expires 11 February 2026                [Page 5]

Internet-Draft       Anycast Property advertisement          August 2025


   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
   Email: ppsenak@cisco.com


   Ketan Talaulikar
   Cisco Systems
   Email: ketan.ietf@gmail.com


   Changwang Lin
   H3C
   Email: linchangwang.04414@h3c.com
























Chen, et al.            Expires 11 February 2026                [Page 6]
