<?xml version="1.0" encoding="utf-8"?>
<?xml-model href="rfc7991bis.rnc"?>  
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<rfc
  xmlns:xi="http://www.w3.org/2001/XInclude"
  category="std"
  docName="draft-ietf-bfd-rfc5881bis-00"
  ipr="trust200902"
  obsoletes="5881"
  updates=""
  submissionType="IETF"
  xml:lang="en"
  version="3">

  <!-- xml2rfc v2v3 conversion 3.33.0 -->
  <!-- Generated by id2xml 1.6.0 on 2026-06-03T19:52:10Z -->
	<front>
    <title abbrev="BFD for IPv4 and IPv6 (Single Hop)">Bidirectional Forwarding Detection (BFD) for IPv4 and IPv6 (Single Hop)</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-bfd-rfc5881bis-00"/>
    <author initials="D." surname="Katz" fullname="Dave Katz">
      <organization>HPE</organization>
      <address>
        <email>david.katz@hpe.com</email>
      </address>
    </author>
    <author initials="D." surname="Ward" fullname="Dave Ward">
      <organization> </organization>
      <address>
        <email>dward@bgp.nu</email>
      </address>
    </author>
    <author fullname="Alvaro Retana" initials="A." surname="Retana" role="editor">
      <organization>Futurewei Technologies, Inc.</organization>
      <address>
        <email>aretana@futurewei.com</email>
      </address>
    </author>

    <date year="2026"/>
    <abstract>
      <t>
   This document describes the use of the Bidirectional Forwarding
   Detection (BFD) protocol over IPv4 and IPv6 for single IP hops.</t>
         <t>
      This document obsoletes RFC 5881.
      </t>
    </abstract>
  </front>
  <middle>
    <section anchor="sect-1" numbered="true" toc="default">
      <name>Introduction</name>
      <t>
   One very desirable application for Bidirectional Forwarding Detection
   (BFD) <xref target="RFC5880" format="default"/> is to track IPv4 and IPv6 connectivity between directly
   connected systems.  This could be used to supplement the detection
   mechanisms in routing protocols or to monitor router-host
   connectivity, among other applications.</t>
      <t>
   This document describes the particulars necessary to use BFD in this
   environment.  Interactions between BFD and other protocols and system
   functions are described in the BFD Generic Applications document
   <xref target="RFC5882" format="default"/>.</t>
      <t>
      This document obsoletes <xref target="RFC5881" format="default"/>.
      </t>
      <section anchor="sect-1.1" numbered="true" toc="default">
        <name>Conventions Used in This Document</name>
        <t>
        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 <xref target="RFC2119"/>
          <xref target="RFC8174"/> when, and only when, they appear in
          all capitals, as shown here.
        </t>
      </section>
    </section>
    <section anchor="sect-2" numbered="true" toc="default">
      <name>Applications and Limitations</name>
      <t>
   This application of BFD can be used by any pair of systems
   communicating via IPv4 and/or IPv6 across a single IP hop that is
   associated with an incoming interface.  This includes, but is not
   limited to, physical media, virtual circuits, and tunnels.</t>
      <t>
   Each BFD session between a pair of systems MUST traverse a separate
   network-layer path in both directions.  This is necessary for
   demultiplexing to work properly, and also because (by definition)
   multiple sessions would otherwise be protecting the same path.</t>
      <t>
   If BFD is to be used in conjunction with both IPv4 and IPv6 on a
   particular path, a separate BFD session MUST be established for each
   protocol (and thus encapsulated by that protocol) over that link.</t>
      <t>
   If the BFD Echo function is used, transmitted packets are immediately
   routed back towards the sender on the interface over which they were
   sent.  This may interact with other mechanisms that are used on the
   two systems that employ BFD.  In particular, ingress filtering
   <xref target="BCP38" format="default"/> is incompatible with the way Echo packets need to be sent.
   Implementations that support the Echo function MUST ensure that
   ingress filtering is not used on an interface that employs the Echo
   function or make an exception for ingress filtering Echo packets.</t>
      <t>
   An implementation of the Echo function also requires Application
   Programming Interfaces (APIs) that may not exist on all systems.  A
   system implementing the Echo function MUST be capable of sending
   packets to its own address, which will typically require bypassing
   the normal forwarding lookup.  This typically requires access to APIs
   that bypass IP-layer functionality.</t>
      <t>
   Please note that BFD is intended as an Operations, Administration,
   and Maintenance (OAM) mechanism for connectivity check and connection
   verification.  It is applicable for network-based services (e.g.
   router-to-router, subscriber-to-gateway, LSP/circuit endpoints, and
   service appliance failure detection).  In these scenarios it is
   required that the operator correctly provision the rates at which BFD
   is transmitted to avoid congestion (e.g link, I/O, CPU) and false
   failure detection.  It is not applicable for application-to-
   application failure detection across the Internet because it does not
   have sufficient capability to do necessary congestion detection and
   avoidance and therefore cannot prevent congestion collapse.  Host-to-
   host or application-to-application deployment across the Internet
   will require the encapsulation of BFD within a transport that
   provides "TCP-friendly" <xref target="RFC5348" format="default"/> behavior.</t>
    </section>
    <section anchor="sect-3" numbered="true" toc="default">
      <name>Initialization and Demultiplexing</name>
      <t>
   In this application, there will be only a single BFD session between
   two systems over a given interface (logical or physical) for a
   particular protocol.  The BFD session must be bound to this
   interface.  As such, both sides of a session MUST take the "Active"
   role (sending initial BFD Control packets with a zero value of Your
   Discriminator), and any BFD packet from the remote machine with a
   zero value of Your Discriminator MUST be associated with the session
   bound to the remote system, interface, and protocol.</t>
    </section>
    <section anchor="sect-4" numbered="true" toc="default">
      <name>Encapsulation</name>
      <t>
   BFD Control packets MUST be transmitted in UDP packets with
   destination port 3784, within an IPv4 or IPv6 packet.  The source
   port MUST be in the range 49152 through 65535.  The same UDP source
   port number MUST be used for all BFD Control packets associated with
   a particular session.  The source port number SHOULD be unique among
   all BFD sessions on the system.  If more than 16384 BFD sessions are
   simultaneously active, UDP source port numbers MAY be reused on
   multiple sessions, but the number of distinct uses of the same UDP
   source port number SHOULD be minimized.  An implementation MAY use
   the UDP port source number to aid in demultiplexing incoming BFD
   Control packets, but ultimately the mechanisms in <xref target="RFC5880" format="default"/> MUST be used
   to demultiplex incoming packets to the proper session.</t>
      <t>
   BFD Echo packets MUST be transmitted in UDP packets with destination
   UDP port 3785 in an IPv4 or IPv6 packet.  The setting of the UDP
   source port is outside the scope of this specification.  The
   destination address MUST be chosen in such a way as to cause the
   remote system to forward the packet back to the local system.  The
   source address MUST be chosen in such a way as to preclude the remote
   system from generating ICMP or Neighbor Discovery Redirect messages.
   In particular, the source address SHOULD NOT be part of the subnet
   bound to the interface over which the BFD Echo packet is being
   transmitted, and it SHOULD NOT be an IPv6 link-local address, unless
   it is known by other means that the remote system will not send
   Redirects.</t>
      <t>
   BFD Echo packets MUST be transmitted in such a way as to ensure that
   they are received by the remote system.  On multiaccess media, for
   example, this requires that the destination datalink address
   corresponds to the remote system.</t>
      <t>
   The above requirements may require the bypassing of some common IP
   layer functionality, particularly in host implementations.</t>
    </section>
    <section anchor="sect-5" numbered="true" toc="default">
      <name>TTL/Hop Limit Issues</name>
      <t>
   If BFD authentication is not in use on a session, all BFD Control
   packets for the session MUST be sent with a Time to Live (TTL) or Hop
   Limit value of 255.  All received BFD Control packets that are
   demultiplexed to the session MUST be discarded if the received TTL or
   Hop Limit is not equal to 255.  A discussion of this mechanism can be
   found in <xref target="RFC5082" format="default"/>.</t>
      <t>
   If BFD authentication is in use on a session, all BFD Control packets
   MUST be sent with a TTL or Hop Limit value of 255.  All received BFD
   Control packets that are demultiplexed to the session MAY be
   discarded if the received TTL or Hop Limit is not equal to 255.  If
   the TTL/Hop Limit check is made, it MAY be done before any
   cryptographic authentication takes place if this will avoid
   unnecessary calculation that would be detrimental to the receiving
   system.</t>
      <t>
   In the context of this section, "authentication in use" means that
   the system is sending BFD Control packets with the Authentication bit
   set and with the Authentication Section included and that all
   unauthenticated packets demultiplexed to the session are discarded,
   per the BFD base specification.</t>
    </section>
    <section anchor="sect-6" numbered="true" toc="default">
      <name>Addressing Issues</name>
      <t>
   Implementations MUST ensure that all BFD Control packets are
   transmitted over the one-hop path being protected by BFD.</t>
      <t>
   On a multiaccess network, BFD Control packets MUST be transmitted
   with source and destination addresses that are part of the subnet
   (addressed from and to interfaces on the subnet).</t>
      <t>
   On a point-to-point link, the source address of a BFD Control packet
   MUST NOT be used to identify the session.  This means that the
   initial BFD packet MUST be accepted with any source address, and that
   subsequent BFD packets MUST be demultiplexed solely by the Your
   Discriminator field (as is always the case).  This allows the source
   address to change if necessary.  If the received source address
   changes, the local system MUST NOT use that address as the
   destination in outgoing BFD Control packets; rather, it MUST continue
   to use the address configured at session creation.  An implementation
   MAY notify the application that the neighbor's source address has
   changed, so that the application might choose to change the
   destination address or take some other action.  Note that the TTL/Hop
   Limit check described in section 5 (or the use of authentication)
   precludes the BFD packets from having come from any source other than
   the immediate neighbor.</t>
    </section>
    <section anchor="sect-7" numbered="true" toc="default">
      <name>BFD for Use with Tunnels</name>
      <t>
   A number of mechanisms are available to tunnel IPv4 and IPv6 over
   arbitrary topologies.  If the tunnel mechanism does not decrement the
   TTL or Hop Limit of the network protocol carried within, the
   mechanism described in this document may be used to provide liveness
   detection for the tunnel.  The BFD authentication mechanism SHOULD be
   used and is strongly encouraged.</t>
    </section>
    <section anchor="sect-8" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>
   Ports 3784 and 3875 were assigned by IANA for use with the BFD
   Control and BFD Echo protocols, respectively.</t>
    </section>
    <section anchor="sect-9" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
   In this application, the use of TTL=255 on transmit and receive,
   coupled with an association to an incoming interface, is viewed as
   supplying equivalent security characteristics to other protocols used
   in the infrastructure, as it is not trivially spoofable.  The
   security implications of this mechanism are further discussed in
   <xref target="RFC5082" format="default"/>.</t>
      <t>
   The security implications of the use of BFD authentication are
   discussed in <xref target="RFC5880" format="default"/>.</t>
      <t>
   The use of the TTL=255 check simultaneously with BFD authentication
   provides a low overhead mechanism for discarding a class of
   unauthorized packets and may be useful in implementations in which
   cryptographic checksum use is susceptible to denial-of-service
   attacks.  The use or non-use of this mechanism does not impact
   interoperability.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
<!--        <xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-bfd-rfc5880bis.xml"/>
        -->  
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.5082.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.5880.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.5882.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.8174.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <xi:include href="https://bib.ietf.org/public/rfc/bibxml-rfcsubseries/reference.BCP.38.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.5348.xml"/>
        <xi:include href="https://www.rfc-editor.org/refs/bibxml/reference.RFC.5881.xml"/>

      </references>
    </references>

<section numbered="true" toc="default" removeInRFC="true">
   <name>Change Log</name>
   <section numbered="true" toc="default">
      <name>Version -00</name>
      <t>
      This initial version is the same as RFC 5881, using the rfcxmlv3 
      formatting and minimal changes:
      </t>
      <ul>
      <li>Updated contact information.</li>
      <li>Updated RFC 2119 boilerplate to reflect RFC 8174.</li>
      <li>Updated references.</li>
      <li>Added a change log section.</li>
      </ul>
    </section>
</section>    

  </back>
</rfc>
