RFC 9985

Optimizing Bidirectional Forwarding Detection (BFD) Authentication

๐Ÿ“… published June 2026, from ietf

Optimizing Bidirectional Forwarding Detection (BFD) Authentication ๐ŸŽ€

RFC 9985 ๐Ÿ’– Category: Experimental ๐Ÿงช ISSN: 2070-1721 โœจ Date: June 2026 ๐Ÿ“… Obsoletes / Updates: This document doesn't list any RFCs it obsoletes or updates. ๐Ÿ™ˆ

Authors: ๐Ÿ’…

  • M. Jethanandani (Arrcus)
  • A. Mishra (Aalyria Technologies)
  • J. Haas (HPE)
  • A. Saxena (Ciena Corporation)
  • M. Bhatia (Google)

Publisher: Internet Engineering Task Force (IETF) ๐ŸŒˆ

Abstract โœจ

okay so this doc is an experimental optimization for Bidirectional Forwarding Detection (BFD) Authentication ๐Ÿฆ‹ it's for when you want auth on BFD but slapping the same heavy auth mechanism on every single BFD Control Packet would hurt performance, and nobody wants that ๐Ÿ˜ญ the trick is to split BFD Authentication into two buckets: a more computationally intensive (MCI) mechanism for BFD significant changes, and a less computationally intensive (LCI) mechanism for the majority of BFD Control Packets. it's giving smart scaling without giving up security ๐Ÿซถ

Status of This Memo ๐Ÿ’œ

ngl this part is the official paperwork, but here's the tea: this document is not an Internet Standards Track specification ๐Ÿ™…โ€โ™€๏ธ it's published for examination, experimental implementation, and evaluation.

it does define an Experimental Protocol for the Internet community ๐Ÿงช it's a product of the Internet Engineering Task Force (IETF) and represents the consensus of the IETF community. it got public review and was approved for publication by the Internet Engineering Steering Group (IESG). not every IESG-approved doc is a candidate for any level of Internet Standard, so see Section 2 of RFC 7841 for the deets ๐Ÿ“š

for current status, errata, and how to give feedback, check https://www.rfc-editor.org/info/rfc9985 ๐Ÿ”—

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://trustee.ietf.org/license-info) as in effect on the date of publication. please actually read these, bestie, they spell out your rights and restrictions for this doc ๐Ÿ“œ and if you extract Code Components from this document, they must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions, and they come without warranty as described in the Revised BSD License โš ๏ธ


Table of Contents ๐Ÿ—บ๏ธ

1.  Introduction
  1.1.  Requirements Language
2.  Terminology
3.  BFD Control Packets That Require MCI Authentication
  3.1.  Protecting BFD Significant Changes with MCI Authentication
4.  Using LCI Auth Types
5.  Periodic MCI Reauthentication
6.  Optimized Authentication Modes
7.  Signaling Optimized Authentication
  7.1.  Transmitting and Receiving Using Optimized Authentication
  7.2.  Optimized Authentication Operations
8.  Optimizing Authentication YANG Data Model
  8.1.  Data Model Overview
  8.2.  Tree Diagram
  8.3.  The YANG Data Model
9.  IANA Considerations
  9.1.  IETF XML Registry
  9.2.  The YANG Module Names Registry
10. Security Considerations
  10.1.  Protocol Security Considerations
  10.2.  YANG Security Considerations
11. References
  11.1.  Normative References
  11.2.  Informative References
Appendix A.  Examples
  A.1.  Single-Hop BFD Configuration
Appendix B.  Experimental Status
Acknowledgments
Contributors
Authors' Addresses

1. Introduction ๐Ÿฆ‹

okay, so BFD [RFC5880] authentication, when turned on, authenticates every single control packet with the same mechanism ๐Ÿ˜ฉ and BFD devices are often resource-constrained, so auth can hit performance hard, which is why people end up skipping it ๐Ÿ’€

when it's done in software, BFD Authentication has to fight with all the other work the system is doing โš”๏ธ with hardware acceleration it can scale better in some situations, but it still costs something ๐Ÿงฎ BFD's whole vibe depends on scaling to lots of sessions and on a Detection Time that relies on sending control packets at a high rate ๐Ÿš€ so implementers and operators are stuck weighing what authentication gets you against what it does to BFD performance โš–๏ธ

the authentication mechanisms in [RFC5880], MD5 Message-Digest Algorithm [RFC1321], and Secure Hash Algorithm (SHA-1) [RFC3174] aren't particularly strong in a cryptographic sense ๐Ÿ™ƒ but they may still not scale well in a given implementation. and in the future, folks might want stronger mechanisms than the ones already specified, and those are likely to use even more resources ๐Ÿ˜ตโ€๐Ÿ’ซ

here's the big picture: BFD is basically the set of procedures that handle state machine changes until the session reaches the Up state. once it's Up, it sends those Up packets at the negotiated high rate ๐ŸŽ๏ธ the number of BFD Control Packets needed to signal state changes (called significant changes) is tiny, while most Control Packets just confirm the session is still Up โœ…

so this document describes an experimental optimization to BFD Authentication ๐Ÿงช it splits auth into a more computationally intensive (MCI) mechanism for authenticating significant changes, and a less computationally intensive (LCI) mechanism for the majority of BFD Control Packets that don't signal those significant changes ๐Ÿ’–

the reasons this is experimental are in Appendix B ๐Ÿ“–

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. Terminology ๐Ÿง 

these terms are already defined in BFD [RFC5880], so no need to reinvent the wheel:

  • Auth Type
  • Detect Multiplier
  • Detection Time

and these ones are brand new in this doc โœจ

  • significant change: a state change, a demand mode change (to D bit), or a poll sequence change (P or F bit). changes to BFD Control Packets that don't need a poll sequence, like bfd.DetectMult, count as significant changes too ๐Ÿ”ฅ
  • More Computationally Intensive (MCI) authentication: the auth mechanism applied to BFD Control Packets that are significant changes ๐Ÿ’ช
  • Less Computationally Intensive (LCI) authentication: the auth mechanism applied to BFD Control Packets that are NOT significant changes ๐ŸŒฟ
  • configured MCI reauthentication interval: the interval at which BFD Control Packets get retried using MCI authentication โฐ

the auth mechanisms in this optimization come as a pair, MCI and LCI ๐Ÿ‘ฏ usually the relationship is "stronger" and "less strong", but this doc avoids the word "strong" so nobody mixes it up with either mechanism's cryptographic strength ๐Ÿ™…โ€โ™€๏ธ the relative criteria for each mechanism is the impact on the implementation ๐Ÿ› ๏ธ

3. BFD Control Packets That Require MCI Authentication ๐Ÿ”

the whole point of these optimized procedures is to let BFD state changes get the heavier auth, while the lighter auth mechanisms keep the session protected once it's Up ๐Ÿซถ that way the overall work goes down ๐Ÿ“‰ the goal is helping BFD session scaling without compromising BFD session security ๐Ÿ’œ

all BFD Control Packets with the state AdminDown, Down, and Init MUST use MCI authentication. no exceptions, bestie ๐Ÿ™…โ€โ™€๏ธ

once the BFD state machine reaches Up, it keeps sending BFD Control Packets with MCI authentication for a period, as discussed in Section 7.2. if optimized authentication mechanisms are in use, as defined in Section 6, the session MAY switch to LCI mode ๐Ÿฆ‹

the contents of an Up packet must not change aside from the Authentication Section unless MCI authentication is in use. this one's a big deal, so don't mess it up ๐Ÿ‘€

3.1. Protecting BFD Significant Changes with MCI Authentication ๐Ÿ›ก๏ธ

this document proposes that BFD Control Packets signaling a state change, a change in demand mode (D bit), or a poll sequence change (P or F bit change) get categorized as a "significant change" ๐Ÿท๏ธ control packets that don't require a poll sequence, like bfd.DetectMult, are also considered significant changes ๐ŸŒธ

significant changes are meant to be protected by more computationally intensive authentication ๐Ÿ’ช

4. Using LCI Auth Types ๐ŸŒˆ

most packets exchanged in a BFD session in the Up state are not significant changes ๐Ÿ™Œ this document proposes a new optimized authentication mode where packets that aren't significant changes can use an LCI authentication mechanism โœจ

once the session reaches Up, it can use an LCI Auth Type derived from the format in Section 7. right now, that includes:

  • Meticulous Keyed ISAAC Authentication, as described in [RFC9986]. this auth type protects the BFD session when BFD Up packets don't change, because only the paired devices know the shared secret, key, and sequence number used to select the ISAAC result ๐Ÿ”‘

other mechanisms may be defined in the future ๐Ÿ”ฎ

5. Periodic MCI Reauthentication ๐Ÿ”

okay bestie, when a session is using the LCI auth mechanism, BFD should periodically test the session using the MCI authentication mechanism ๐Ÿ’… the way it does that test is with a Poll sequence ๐Ÿ” so to test MCI auth, a Poll sequence SHOULD be started by the sender using the MCI authentication mode, not the LCI mechanism โœจ and if a control packet with the Final (F) bit isn't received using MCI auth within twice the Detect Interval (as calculated by the receiving system), the session has been compromised ๐Ÿšจ and it MUST be brought down ๐Ÿ’€ no cap, that's a hard stop.

the phrase "twice the Detect interval as would be calculated by the receiving system" is roughly twice the number of packets the local system would send to the receiving system within its own Detect Interval ๐Ÿงฎ that extra room is there for packet loss from the sending system during the Poll sequence, plus time for the receiving system to send a control packet with the Final (F) bit set back to the local system ๐Ÿฆ‹

this "MCI reauthentication interval" (the gap between these periodic tests of the MCI authentication mechanism) can be configured depending on what the system is capable of ๐ŸŽ€

most packets in a BFD session are BFD Up packets ๐ŸŒธ MCI authenticating a limited subset of them with a Poll sequence like this, e.g., every one minute, significantly reduces the computational demand on the system while still keeping the session secure across the configured MCI reauthentication interval ๐Ÿซถ


6. Optimized Authentication Modes ๐Ÿ‘‘

the cryptographic authentication mechanisms in Section 6.7 of BFD [RFC5880] describe turning authentication on and off as a one-time operation ๐Ÿ™ˆ here's what Section 6.7.1 of [RFC5880] says:

... implementations using this method SHOULD only allow the authentication state to be changed at most once without some form of intervention (so that authentication cannot be turned on and off repeatedly simply based on the receipt of BFD Control Packets from remote systems).

once it's enabled, every packet has to have the Authentication Present (A) bit set and the associated Authentication Type appended (Section 4.1 of [RFC5880]) ๐Ÿ’œ Section 6.7.1 of [RFC5880] also says that an implementation SHOULD NOT let the authentication state change based on the receipt of a BFD Control Packet ๐Ÿšซ

this document proposes an "optimized" authentication mode that lets both an MCI authentication mode and an LCI mode be used inside the same BFD session ๐ŸŒˆ that MCI + LCI pairing is carried in new BFD Authentication types, one for each optimized authentication type pairing โœจ

this document defines which BFD Control Packets need MCI authentication in Section 3.1 ๐ŸŽ€ a BFD Control Packet that fails authentication, or one that was supposed to be MCI-authenticated but wasn't (e.g., a significant change packet), gets discarded ๐Ÿ—‘๏ธ but the BFD state machine doesn't change at all, because deciding on a significant change still depends on how many valid consecutive packets were received ๐Ÿง 

in this specification, the contents of an Up packet MUST NOT change outside the Authentication Section without MCI authentication ๐Ÿ”’ the full procedure is in the sections that follow ๐Ÿ’–


7. Signaling Optimized Authentication ๐Ÿงš

when the Authentication Present (A) bit is set and the Auth Type ([RFC5880], Section 4.1) is a type that supports Optimized BFD Authentication, the Auth Type signals a pairing of an MCI authentication type and an LCI authentication type ๐Ÿ“ that pairing is advertised in one single Auth Type value, so implementations can tell that:

  • Optimized BFD procedures are going to be in use. โœจ
  • The pairing of the MCI and LCI authentication mechanisms is what gets used for that session. ๐Ÿ”—
  • There's a requirement to carry a Sequence Number. ๐Ÿ”ข
  • The current MCI or LCI mode gets carried as described below. ๐Ÿซง

here's the layout, bestie ๐Ÿฆ‹

  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |   Auth Type   |   Auth Len    |  Auth Key ID  |   Opt. Mode   |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                        Sequence Number                        |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |                   Authentication Specific Data                ~
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Figure 1: Common Optimized BFD Authentication Section ๐Ÿ“ธ

the values of Auth Type and Auth Len are defined in their own Optimized BFD Authentication procedural documents ๐Ÿ“š

the values of the Optimized Authentication Mode field are:

  1. The MCI authentication type for Optimized BFD Auth Types. ๐Ÿ”
  2. The LCI authentication type for Optimized BFD Auth Types. ๐Ÿ”“

Authentication Specific Data: when the more computationally intensive authentication type is in use, the rest of the Authentication Section carries that type's data ๐Ÿ’ช

7.1. Transmitting and Receiving Using Optimized Authentication ๐Ÿ“ก

the procedures for authenticating BFD Control Packets with Optimized Authentication are similar to the existing procedures in Section 6.7 of [RFC5880] โœจ Optimized Authentication modes share common procedural requirements for authentication, no matter which of the more or less computationally intensive authentication modes is used ๐Ÿซถ

the required value of the Auth Len field for a given Optimized Authentication mode is defined in the respective specifications for their MCI and LCI modes ๐Ÿ“

these common procedures apply when authenticating BFD Control packets with Optimized Authentication:

  • If the received BFD Control Packet does not contain an Authentication Section ([RFC5880], Section 4.1), or the Auth Type is not a supported Optimized Authentication Auth Type, then the received packet MUST be discarded. ๐Ÿ—‘๏ธ
  • If the received BFD Control Packet contains an optimized authentication type using these procedures and the Optimized Authentication Mode field is not 1 or 2, then the received packet MUST be discarded. ๐Ÿ™…โ€โ™€๏ธ
  • If bfd.SessionState is AdminDown, Down, or Init and the Optimized Authentication Mode field is not 1, then the received packet MUST be discarded. ๐Ÿšซ
  • If bfd.SessionState is Up and there is a significant change as defined in Section 3.1, and the Optimized Authentication Mode field is not 1, then the received packet MUST be discarded. โš ๏ธ
  • If the Auth Len field is not equal to a value appropriate for the Optimized Authentication Mode field, the packet MUST be discarded. ๐Ÿ“‰
  • If bfd.AuthSeqKnown is 1, examine the Sequence Number field. If the sequence number lies outside of the inclusive range of bfd.RcvAuthSeq+1 to bfd.RcvAuthSeq+(3*Detect Mult) when treated as an unsigned 32-bit circular number space, the received packet MUST be discarded. ๐Ÿ”ข

Otherwise (bfd.AuthSeqKnown is 0), bfd.AuthSeqKnown MUST be set to 1, bfd.RcvAuthSeq MUST be set to the value of the received Sequence Number field, and the received packet MUST be accepted. ๐ŸŒฑ

for the specified Auth Type and Optimized Authentication Mode, perform the appropriate authentication procedures ๐Ÿ” if authentication succeeds, the received packet MUST be accepted โœ… otherwise, the received packet MUST be discarded โŒ

7.2. Optimized Authentication Operations ๐ŸŽฌ

as noted in Section 3.1, when using Optimized BFD procedures, MCI authentication is used in the BFD state machine to bring a BFD session to the Up state, or to make any change of the BFD parameters carried in the BFD Control Packet while in the Up state ๐ŸŒŸ

once the BFD session has reached the Up state, the BFD Up state MUST be signaled to the remote BFD system using the MCI authentication mode for an interval that is at least the Detection Time before switching to the LCI authentication mode ๐Ÿ’ซ this lets mechanisms like Meticulous Keyed ISAAC for BFD Optimized Authentication [RFC9986], or other approved, less intensive authentication mechanisms, get bootstrapped before the switch to LCI mode ๐Ÿฅฐ

It is RECOMMENDED that when using optimized authentication, implementations switch from MCI authentication to LCI authentication mode after an interval that is at least the Detection Time ๐Ÿ•’ in the situation where a BFD session successfully reaches the Up state with MCI authentication but there are problems with LCI authentication, this lets the remote system tear the session down as quickly as possible ๐Ÿƒโ€โ™€๏ธ๐Ÿ’จ

BFD sessions using optimized authentication that reach the Up state with MCI authentication but fail with LCI authentication SHOULD bring the issue to the operator's attention ๐Ÿ“ฃ implementations MAY also wish to throttle session restarts ๐Ÿšฆ

It is further RECOMMENDED that BFD implementations using optimized authentication defer notifying their client that the session has reached the Up state until it has moved to LCI authentication mode ๐ŸŽ€ if LCI authentication is failing in the protocol, this stops failed transitions to LCI mode from being passed up to their clients ๐Ÿ™ˆ


8. Optimizing Authentication YANG Data Model ๐Ÿญ

8.1. Data Model Overview ๐Ÿ—บ๏ธ

the YANG 1.1 [RFC7950] data model defined in this document augments the "ietf-bfd" module to add data nodes relevant to managing the feature defined here ๐Ÿงฉ it adds an interval value that sets how often the BFD session should be reauthenticated with the more computationally intensive authentication once it's in the Up state โฐ

8.2. Tree Diagram ๐ŸŒณ

the tree diagram for the YANG modules defined in this document uses annotations from YANG Tree Diagrams [RFC8340] โœจ

   module: ietf-bfd-opt-auth

     augment /rt:routing/rt:control-plane-protocols
               /rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh
               /bfd-ip-sh:sessions/bfd-ip-sh:session
               /bfd-ip-sh:authentication:
       +--rw reauth-interval?   uint32
     augment /rt:routing/rt:control-plane-protocols
               /rt:control-plane-protocol/bfd:bfd/bfd-ip-mh:ip-mh
               /bfd-ip-mh:session-groups/bfd-ip-mh:session-group
               /bfd-ip-mh:authentication:
       +--rw reauth-interval?   uint32
     augment /rt:routing/rt:control-plane-protocols
               /rt:control-plane-protocol/bfd:bfd/bfd-lag:lag
               /bfd-lag:sessions/bfd-lag:session/bfd-lag:authentication:
       +--rw reauth-interval?   uint32
     augment /rt:routing/rt:control-plane-protocols
               /rt:control-plane-protocol/bfd:bfd/bfd-mpls:mpls
               /bfd-mpls:session-groups/bfd-mpls:session-group
               /bfd-mpls:authentication:
       +--rw reauth-interval?   uint32

8.3. The YANG Data Model ๐Ÿ’–

okay so this is the YANG module, the bit that tells config tools exactly which knobs exist ๐Ÿงš it imports the [RFC8349] routing module and the [RFC9314] BFD module, so it can hook right into them. implementations that support the optimization procedures turn it on by using one of the new key-chain crypto-algorithms from the ietf-bfd-met-keyed-isaac YANG module in [RFC9986]. โœจ

module ietf-bfd-opt-auth {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-bfd-opt-auth";
  prefix bfd-oa;

  import ietf-routing {
    prefix rt;
    reference
      "RFC 8349: A YANG Data Model for Routing Management
       (NMDA version).";
  }

  import ietf-bfd {
    prefix bfd;
    reference
      "RFC 9314: YANG Data Model for Bidirectional
       Forwarding Detection (BFD).";
  }

  import ietf-bfd-ip-sh {
    prefix bfd-ip-sh;
    reference
      "RFC 9314: YANG Data Model for Bidirectional
       Forwarding Detection (BFD).";
  }

  import ietf-bfd-ip-mh {
    prefix bfd-ip-mh;
    reference
      "RFC 9314: YANG Data Model for Bidirectional
       Forwarding Detection (BFD).";
  }

  import ietf-bfd-lag {
    prefix bfd-lag;
    reference
      "RFC 9314: YANG Data Model for Bidirectional
       Forwarding Detection (BFD).";
  }

  import ietf-bfd-mpls {
    prefix bfd-mpls;
    reference
      "RFC 9314: YANG Data Model for Bidirectional
       Forwarding Detection (BFD).";
  }

  organization
    "IETF Bidirectional Forwarding Detection (BFD) Working Group";

  contact
    "WG Web:   <http://tools.ietf.org/wg/bfd>
     WG List:  <rtg-bfd@ietf.org>

     Authors: Mahesh Jethanandani (mjethanandani@gmail.com)
              Ashesh Mishra (ashesh@aalyria.com)
              Ankur Saxena (ankurpsaxena@gmail.com)
              Manav Bhatia (mnvbhatia@google.com)
              Jeffrey Haas (jeffrey.haas@hpe.com).";

  description
    "This YANG module augments the base BFD YANG module to add
     attributes related to the experimental BFD Optimized
     Authentication.

     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 (RFC 2119) (RFC 8174) when, and only when,
     they appear in all capitals, as shown here.

     Copyright (c) 2026 IETF Trust and the persons identified as
     authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject to
     the license terms contained in, the Revised BSD License set
     forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC 9985
     (https://www.rfc-editor.org/info/rfc9985); see the RFC itself
     for full legal notices.";

  revision "2026-06-19" {
    description
      "Initial Version.";
    reference
      "RFC 9985: Optimizing BFD Authentication.";
  }

  feature optimized-auth {
    description
      "Indicates that the implementation supports optimized
       authentication.";
    reference
      "RFC 9985: Optimizing BFD Authentication.";
  }

  grouping bfd-opt-auth-config {
    description
      "Grouping for BFD Optimized Authentication Parameters.";
    leaf reauth-interval {
      type uint32;
      units "seconds";
      default "60";
      description
        "Interval of time after which more computationally intensive
         authentication should be utilized to prevent an
         on-path-attacker attack.

         A value of zero means that we do not do periodic
         reauthentication using the more computationally intensive
         authentication method.

         This value SHOULD have jitter applied to it to avoid
         self-synchronization during expensive authentication
         operations.";
    }
  }

  augment "/rt:routing/rt:control-plane-protocols"
        + "/rt:control-plane-protocol/bfd:bfd/bfd-ip-sh:ip-sh"
        + "/bfd-ip-sh:sessions/bfd-ip-sh:session"
        + "/bfd-ip-sh:authentication" {
    uses bfd-opt-auth-config;

    description
      "Augment the 'authentication' container for single-hop BFD
       module to add attributes related to BFD Optimized
       Authentication.";
  }

  augment "/rt:routing/rt:control-plane-protocols"
        + "/rt:control-plane-protocol/bfd:bfd/bfd-ip-mh:ip-mh"
        + "/bfd-ip-mh:session-groups/bfd-ip-mh:session-group"
        + "/bfd-ip-mh:authentication" {
    uses bfd-opt-auth-config;

    description
      "Augment the 'authentication' container for multi-hop BFD
       module to add attributes related to BFD Optimized
       Authentication.";
  }

  augment "/rt:routing/rt:control-plane-protocols"
        + "/rt:control-plane-protocol/bfd:bfd/bfd-lag:lag"
        + "/bfd-lag:sessions/bfd-lag:session"
        + "/bfd-lag:authentication" {
    uses bfd-opt-auth-config;

    description
      "Augment the 'authentication' container for BFD over LAG
       module to add attributes related to BFD Optimized
       Authentication.";
  }

  augment "/rt:routing/rt:control-plane-protocols"
        + "/rt:control-plane-protocol/bfd:bfd/bfd-mpls:mpls"
        + "/bfd-mpls:session-groups/bfd-mpls:session-group"
        + "/bfd-mpls:authentication" {
    uses bfd-opt-auth-config;

    description
      "Augment the 'authentication' container for BFD over MPLS
       module to add attributes related to BFD Optimized
       Authentication.";
  }
}

9. IANA Considerations ๐ŸŽ€

okay IANA has assigned one URI and one YANG module, and here's the paperwork ๐Ÿ“

9.1. IETF XML Registry ๐ŸŒธ

IANA has registered the following URI in the "ns" registry within the "IETF XML Registry" group [RFC3688]:

URI:  urn:ietf:params:xml:ns:yang:ietf-bfd-opt-auth
Registrant Contact:  The IESG
XML:  N/A; the requested URI is an XML namespace.

9.2. The YANG Module Names Registry ๐Ÿฆ‹

IANA has registered the following YANG module in the "YANG Module Names" registry [RFC6020] within the "YANG Parameters" registry group:

Name:  ietf-bfd-opt-auth
Maintained by IANA:  N
Namespace:  urn:ietf:params:xml:ns:yang:ietf-bfd-opt-auth
Prefix:  bfd-oa
Reference:  RFC 9985

10. Security Considerations ๐Ÿ”ฅ

this part is serious, bestie, so read it slowly ๐Ÿ™ˆ

10.1. Protocol Security Considerations ๐Ÿ’€

Devices implementing BFD are often resource-constrained, whether they're handling a single session or a big multidimensional pile of scaled sessions. Desired detection intervals for the BFD sessions, and how many sessions there are, are common scaling considerations for BFD implementations. Security mechanisms also hit implementation performance, in software or in hardware, because they use extra computational resources. ๐Ÿ˜ญ

The optimized procedures in this document give a different level of resistance to attack than methods that use a single authentication mechanism:

  • The MCI authentication mechanisms used for optimized authentication are expected to have similar cryptographic strength acceptable for BFD for authenticating the entire session, as described in [RFC5880]. ๐Ÿ’ช
  • When the BFD state machine is attempting to move from the Down state to the Up state, the MCI authentication mechanism is intended to protect vs. attempt to inappropriately start BFD sessions. ๐Ÿšซ
  • When the BFD state machine is in the Up state, the MCI authentication mechanism is intended to protect vs. attempt to change BFD session parameters or to reset the BFD session. ๐Ÿ›ก๏ธ
  • When the BFD state machine is in the Up state, the LCI authentication mechanism is intended to provide resistance to keeping a BFD session in the Up state inappropriately. Since the procedures for changing BFD state require utilizing the MCI mechanism, and the LCI mechanism requires that the contents of the Control Packet in the Up state remain unchanged, the only thing that successfully spoofing such packets can do is keep the session Up. ๐Ÿ‘€
  • The periodic, MCI reauthentication procedure provides protection against long-term successful spoofing of the LCI authentication mechanism. โฐ

In other words, the intention of Optimized BFD procedures is to make it difficult to reset or inappropriately start BFD sessions. However, protecting against keeping the session Up is seen as a less interesting attack and can receive less protection. ๐Ÿฅฑ

The recent escalating series of attacks on MD5 and SHA-1 described in Finding Collisions in the Full SHA-1 [SHA-1-attack1] and New Collision Search for SHA-1 [SHA-1-attack2] raise concerns about their remaining useful lifetime as outlined in Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithm [RFC6151] and Security Considerations for the SHA-0 and SHA-1 Message-Digest Algorithm [RFC6194]. If replaced by stronger algorithms, the computational overhead will make the task of authenticating every packet even more difficult to achieve. ๐Ÿšจ

The procedures described in this document provide a mechanism that could enable implementations to leverage stronger security to address the concerns above when strong authentication is required. However, this requires operators to evaluate the trade-offs of the less computationally intensive mechanisms to adequately address their desired security stance. ๐Ÿง

Keys generated and distributed out of band for the purposes described in this specification are generally limited in the security they can provide. It is essential that these keys are selected well and protected when stored. ๐Ÿ”‘โœจ

10.2. YANG Security Considerations ๐Ÿ”

okay so this section is modeled after the template in Section 3.7.1 of [RFC9907], and it's giving very "guard the gate" energy ๐Ÿ’… The ietf-bfd-opt-auth YANG module is built to be accessed through YANG-based management protocols like the Network Configuration Protocol (NETCONF) [RFC6241] and RESTCONF [RFC8040]. These management protocols (1) have to use a secure transport layer (e.g., Secure Shell (SSH) [RFC4252], TLS [RFC8446], and QUIC [RFC9000]) and (2) have to use mutual authentication. no cap, that's non-negotiable ๐Ÿซถ

The Network Configuration Access Control Model (NACM) [RFC8341] lets you restrict particular NETCONF or RESTCONF users to a preconfigured subset of all the available protocol operations and content. Very main character energy for access control โœจ

There are a bunch of data nodes in this module that are writable, creatable, and deletable (that's config true, which is the default) ๐Ÿ™ˆ All writable data nodes are likely to be sensitive or vulnerable in some network environments. Write operations (e.g., edit-config) and delete operations on these nodes without proper protection or authentication can mess with network operations, and nobody wants that ๐Ÿ’€ Here are the subtrees and data nodes with particular sensitivities and vulnerabilities:

  • reauth-interval specifies the interval in Up state after which MCI authentication SHOULD be performed to prevent a Person-in-the-Middle (PITM) attack ๐Ÿ›ก๏ธ If this interval is set very low, the optimization procedures lose their usefulness. If it's set very high, attacks detected by the MCI authentication mechanisms might show up overly late ๐Ÿ˜ญ

There are no particularly sensitive readable data nodes ๐ŸŒธ

There are no RPC operations defined in this model ๐ŸŽ€

11. References ๐Ÿ“š

11.1. Normative References

11.2. Informative References

Appendix A. Examples ๐Ÿงš

okay this section is basically a showcase of how you can actually configure the model, so let's see it in action ๐Ÿ’–

A.1. Single-Hop BFD Configuration

this example shows how a single-hop BFD session gets configured for optimized authentication ๐Ÿฆ‹ Line wrapping is used per [RFC8792], so the long lines are split with a backslash:

=============== NOTE: '\' line wrapping per RFC 8792 ===============

<?xml version="1.0" encoding="UTF-8"?>
<key-chains
    xmlns="urn:ietf:params:xml:ns:yang:ietf-key-chain"
    xmlns:opt-auth="urn:ietf:params:xml:ns:yang:ietf-bfd-opt-auth"
    xmlns:bfd-mki="urn:ietf:params:xml:ns:yang:ietf-bfd-met-keyed-i\
saac">
  <key-chain>
    <name>bfd-auth-config</name>
    <description>"An example for BFD Optimized Auth configuration."\
</description>
    <key>
      <key-id>55</key-id>
      <lifetime>
        <send-lifetime>
          <start-date-time>2017-01-01T00:00:00Z</start-date-time>
          <end-date-time>2017-02-01T00:00:00Z</end-date-time>
        </send-lifetime>
        <accept-lifetime>
          <start-date-time>2016-12-31T23:59:55Z</start-date-time>
          <end-date-time>2017-02-01T00:00:05Z</end-date-time>
        </accept-lifetime>
      </lifetime>
      <crypto-algorithm>bfd-mki:optimized-sha1-meticulous-keyed-isa\
ac</crypto-algorithm>
      <key-string>
        <keystring>testvector</keystring>
      </key-string>
    </key>
  </key-chain>
</key-chains>
<interfaces
    xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
    xmlns:if-type="urn:ietf:params:xml:ns:yang:iana-if-type">
  <interface>
    <name>eth0</name>
    <type>if-type:ethernetCsmacd</type>
  </interface>
</interfaces>
<routing
    xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"
    xmlns:bfd-types="urn:ietf:params:xml:ns:yang:ietf-bfd-types"
    xmlns:iana-bfd-types="urn:ietf:params:xml:ns:yang:iana-bfd-type\
s"
    xmlns:opt-auth="urn:ietf:params:xml:ns:yang:ietf-bfd-opt-auth"
    xmlns:bfd-mki="urn:ietf:params:xml:ns:yang:ietf-bfd-met-keyed-i\
saac">
  <control-plane-protocols>
    <control-plane-protocol>
      <type>bfd-types:bfdv1</type>
      <name>name:BFD</name>
      <bfd xmlns="urn:ietf:params:xml:ns:yang:ietf-bfd">
        <ip-sh xmlns="urn:ietf:params:xml:ns:yang:ietf-bfd-ip-sh">
          <sessions>
            <session>
              <interface>eth0</interface>
              <dest-addr>2001:db8:0:113::101</dest-addr>
              <desired-min-tx-interval>10000</desired-min-tx-interv\
al>
              <required-min-rx-interval>
                10000
              </required-min-rx-interval>
              <authentication>
                <key-chain>bfd-auth-config</key-chain>
                <opt-auth:reauth-interval>30</opt-auth:reauth-inter\
val>
              </authentication>
            </session>
          </sessions>
        </ip-sh>
      </bfd>
    </control-plane-protocol>
  </control-plane-protocols>
</routing>

Appendix B. Experimental Status ๐Ÿงชโœจ

Okay bestie, so this whole document is an experiment ๐Ÿฆ‹ It presents a candidate solution to update BFD Authentication, which is currently specified in [RFC5880]. The goal is to get more insight into what happens when the optimized authentication mechanism from this doc actually gets used ๐Ÿ’… Here's why it's on the Experimental track:

  • In the early stages there was SO much participation and review from the working group ๐Ÿซถ But then the doc changed a lot. ISAAC got added, ISAAC bootstrapping was allowed when a BFD session comes up, and a single Auth Type got used to indicate optimized authentication. Those changes didn't get significant review from the working group, so they don't meet the bar set in Section 4.1.1 of [RFC2026] ๐Ÿ˜ญ
  • There are no known implementations at this time ๐Ÿ’€
  • The work here could become super valuable in the future, especially if the need for deploying BFD Authentication at scale becomes a reality ๐ŸŒˆ

This document is classified as Experimental and is not part of the IETF Standards Track. Implementations based on this document should not be considered as compliant with BFD [RFC5880] ๐Ÿšจ


Acknowledgments ๐ŸŽ€

The authors would like to thank Qiufang Ma, Stephen Farrell, and Acee Lindem for providing directorate reviews of this document ๐Ÿซถ

Contributors ๐ŸŒธ

The authors of this document would like to acknowledge Reshad Rahman as a contributor to this document ๐Ÿ’–

Authors' Addresses ๐Ÿฆ‹

Mahesh Jethanandani Arrcus United States of America Email: mjethanandani@gmail.com

Ashesh Mishra Aalyria Technologies Email: ashesh@aalyria.com

Jeffrey Haas HPE Email: jeffrey.haas@hpe.com

Ankur Saxena Ciena Corporation 3939 N 1st Street San Jose, CA 95134 United States of America Email: ankurpsaxena@gmail.com

Manav Bhatia Google Bagmane Capital Park Bengaluru 560048 Karnataka India Email: mnvbhatia@google.com โœจ

๐Ÿ“ฆ where this page comes from