Skip to content

Conversation

@j-bos
Copy link
Contributor

@j-bos j-bos commented Oct 10, 2025

Seamless Bidirectional Forwarding Detection (S-BFD) provides a simplified mechanism for continuity testing and validation of forwarding paths. Unlike traditional BFD, S-BFD does not require session establishment or negotiation - instead, it uses a reflector model where one side (the initiator) can immediately begin sending BFD packets to the other side (the reflector) without coordinated session state.

https://datatracker.ietf.org/doc/rfc7880/

This PR introduces two new bfd session types to represent the initiator and reflector modes for S-BFD:

typedef enum _sai_bfd_session_type_t
{
    ...
    /** S-BFD Reflector */
    SAI_BFD_SESSION_TYPE_REFLECTOR,

    /** S-BFD Initiator */
    SAI_BFD_SESSION_TYPE_INITIATOR,

} sai_bfd_session_type_t;

The reflector is a simplified mode which can respond to many initiators, so some attributes which would otherwise be mandatory for BFD sessions, are not applicable for S-BFD reflectors. The reflector merely swaps several fields like the SIP<->DIP as documented in the RFC to "reflect" the packet back to the initiator.

The initiator deals with both the origination and monitoring of the BFD packets.

@j-bos j-bos changed the title Seamless BFD (SBFD) Seamless BFD (S-BFD) Oct 10, 2025
@j-bos j-bos force-pushed the sBFD branch 3 times, most recently from dbd734f to ae2a494 Compare October 13, 2025 07:57
@j-bos j-bos marked this pull request as ready for review October 13, 2025 08:33
@tjchadaga
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Jason Bos <[email protected]>
@tjchadaga tjchadaga added the reviewed PR is discussed in SAI Meeting label Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed PR is discussed in SAI Meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants