Alvaro,

Changes for this email are in this PR:
https://github.com/aceelindem/ietf-bgp-strict-mode/pull/34

Note that Acee had merged the prior pull request, so this one doesn't represent 
the cumulative discussion to date.


> On Sep 17, 2026, at 09:29, Alvaro Retana <[email protected]> wrote:
> > Is it that you want those procedures to be added to the Introduction? If so,
> > how much of the entire FSM are you wanting to insist get copied to the
> > Introduction to cover this detail? It'd make the document very short
> > section-wise if the introduction was the entire document. :-) 
> > 
> > More tersely, what do you want to see in the Introduction to address this
> > point? 
> 
> You're right, we can't put everything in the Introduction. 
> 
> However, the Introduction is the only place that provides an overview. So you 
> may need a section for that, or you can include it in §7 (Starting and 
> Stopping BFD Sessions Associated BGP BFD Strict-Mode).

I've given this some additional thought, especially including the AdminDown 
case which Acee also wanted a bit more explanation for.  I believe the right 
answer is to leave this as-is.  Primarily because:

> It opens a different attack surface: disabling BFD (rogue operator) would 
> leave these sessions without protection, causing longer convergence, lost 
> traffic, etc.  It could also make maintenance/troubleshooting harder because 
> the system state is "inconsistent": it is configured for strict mode, but BFD 
> is disabled. [I read what you wrote about the Security Considerations -- so 
> I'm just writing this in for the record.]

Framing this as an attack isn't helpful.

If I disable BFD, bfd-strict is a property of BFD being enabled and is no 
longer negotiated.  While that seems obvious to me, section 6 regrading the 
capability advertisement doesn't pedantically state this, so let's add:

          A BGP speaker which supports capabilities advertisement and has BFD 
strict-mode enabled (which implies BFD itself is enabled) MUST include the BFD 
Strict-Mode Capability in its OPEN message.

(New parenthetical statement added)

An implementation is permitted to require the capability to be negotiated when 
configured, but that moves it from being "negotiated" to "demanded".  That's 
not friendly for backward compatibility.  If you want to frame this as an 
"attack", you want a mode - required by the specification, apparently - that 
DEMANDS the mode be used.  Certainly an implementation could do that [1], like 
it's permitted by capability advertisement as a feature to require specific 
capabilities be negotiated before the session comes up - but that's out of 
scope for this particular feature.

The current draft requires that if the BFD session is enabled and is in the 
AdminDown status that the session will NOT come up.  This was due to the 
perspective that when strict mode is enabled that the operator really wants the 
session to require not only BFD, but require it to go Up.  HPE's implementation 
does exactly this.

Another option would be to permit this to be optional for AdminDown.  Proposed 
additional text to the same section:

BGP speakers MAY consider BFD sessions in the AdminDown state, typically 
because of administrative reasons, to be equivalent of strict-mode being 
disabled, and not include the capability its OPEN message.

The working group should consider what its opinion for this new text would be.  
It's probably the best thing to do, and doesn't require existing 
implementations to have the behavior if it doesn't want to.

> > > 242 Event 34: BfdHoldTimerExpires 
> > > 243 Definition: 
> > > 244 The BFD holdtimer, which is set when the negotiated BGP hold 
> > > 245 time is zero, has expired. 
> > > 
> > > 247 Status: 
> > > 248 Optional 
> > > 
> > > 250 Optional Attribute Status: 
> > > 251 * The HoldTimer SHOULD NOT be running. 
> > > 
> > > 253 * The negotiated HoldTime SHOULD be zero. 
> > > 
> > > 255 * The BGP session state SHOULD be in Connect, Active, or 
> > > 256 OpenSent. 
> > > 
> > > [major] These 3 sentences sound like statements (expectations), not 
> > > normative actions, which makes the use of SHOULD/SHOULD NOT 
> > > inappropriate. 
> > > Is that the intent? 
> > 
> > See prior comment. 
> 
> The difference here is that the text doesn't say, for example, that the 
> "HoldTimer SHOULD be stopped/reset" (an action, as in the other cases here 
> and in §8.1.2/rfc4271). Instead, it seems to make a statement.

These remain assertions.  Actions are not implied.  Again, reminding you of RFC 
4271 section 8.1.2:
"If any of these conditions are not satisfied, then the local system should log 
an FSM error."


> 
> 
> 
> > > 258 Event 35: BfdStrictConfigChanged 
> > > 259 Definition: 
> > > 260 The configuration for the BFD strict configuration for the BGP 
> > > 261 session has been changed. 
> > > 
> > > 263 Status: 
> > > 264 Optional 
> > > 
> > > 266 Optional Attribute Status: 
> > > 267 If BfdEnabled is FALSE, this event MUST NOT occur. When BFD 
> > > 268 has been disabled, the local system will trigger a BfdAdminDown 
> > > 269 event instead. 
> > > 
> > > [major] "this event MUST NOT occur" 
> > > 
> > > This fragment seems to be a statement of fact, not a Normative 
> > > requirement: s/MUST NOT/must not 
> > 
> > See prior comment. This is an assertion and the form of that assertion is 
> > conditional. 
> 
> I couldn't find a similar formulation in rfc4271.

It doesn't exist.

>   I understand the conditional formulation.  Help me understand: what are you 
> specifying in this sentence? I understand that if BfdEnabled is FALSE, then 
> we should never have the BfdStrictConfigChanged event. I don't understand the 
> Normative value of using "MUST NOT". I'm guessing the indication is that if 
> this event is somehow triggered while BfdEnabled is FALSE, then it's an FSM 
> error.  

As noted above, these are FSM errors.  All existing formulations for optional 
attribute status are in 2119 form.

> > > 1073 10. Stability Considerations 
> > > ... 
> > > 1082 To avoid deadlock when utilizing both BFD hold-down and BFD strict- 
> > > 1083 mode, when strict-mode is enabled for a peer, the BGP FSM MUST be 
> > > 1084 enabled. That is, BFD hold-down procedures MUST NOT prevent BGP from 
> > > 1085 establishing a connection with the remote BGP speaker. 
> > > 
> > > [major] "BGP FSM MUST be enabled" 
> [...]
> > Given this, what text do you want to see instead? And I'd warn against 
> > trying
> > to simply make this about the FSM for a given connection instance since not
> > all implementation work that way either. 
> 
> <sigh>
> 
> I get where you're coming from, but I also worry that we continue carrying 
> issues down a rabbit hole that compounds them...and that the institutional 
> knowledge is not well-known. We'll eventually get to a point where it'll be 
> too hard/impossible to track things back. :-(

I'll read this as "please boil the ocean, I don't like this cup of water".  
Thanks for your feedback.

> I don't understand the FSM well enough to even say I can help untangle it 
> (with others)...

As Yingzhen and I have commiserated, we do understand it and find it a mess.  
Doing better would involve abandoning current practice and rewriting from 
scratch using something IETF as a whole (or at least IDR) finds better.  Sadly, 
this isn't a matter computer science professors will find interesting enough to 
find us graduate students for.


> 
> > > [major] "RECOMMENDED that the BFD hold-down intervals used with BFD 
> > > strict-
> > > mode, when configured, use similar values" 
> ...
> > In the absence of fully specified hold-down procedures (out of scope), how
> > could we know this should be a MUST? 
> 
> In the absence of fully specified hold-down procedures, how could we even 
> RECOMMEND something? ;-)

.. because it has been demonstrated empirically that if the property of the 
hold timer duration and the opaque property of any BFD hold-down timer duration 
behavior doesn't satisfy an appropriate set of constraints that we'll have 
problems?  So, it's minimally a RECOMMEND.  The caveat about "why not MUST" 
being "because it's not fully defined and we can't know" simply throws this in 
the IESG signing statement realm of "you say MUST, what happens if you violate 
it?"  If it's lower cased, we'll just be challenged on why it isn't upper-cased?

So, we'll leave this until that pedantic IESG conversation.  They'll likely 
make the similar diktat that after the related conversation that we remove the 
normative form of the word or coerce it into a different form that changes zero 
implementations or the result of these constraints.  Having put their 
fingerprints on the text (probably disagreeing with each other), it'll be 
"resolved". 

-- Jeff

[1] One of the lingering headaches for the BGP capability feature is the 
earliest form of it was "capability negotiation" rather than "capability 
advertisement".  Among other long time issues, implementations varied on how 
they dealt with capabilities they really wanted not actually being negotiated 
bilaterally.  We had several years of NOTIFICATION messages being sent errantly 
for too many circumstances like this.  These days, most implementations behave 
appropriately and only fail to bring up the session for a narrow set of 
capabilities they really MUST have - the biggest example being required address 
families for MP-BGP like IPv6.
_______________________________________________
Rtg-bfd mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to