SBFD for SRv6 TE Policy requires you to configure the mapping between the reflector's IPv6 address and discriminator on the headend of the involved SRv6 TE Policy and configure the same reflector discriminator on the endpoint of the policy. If these requirements are not met, SBFD loopback packets cannot be constructed. In addition, you must ensure that the configured reflector discriminator is globally unique to avoid possible SBFD errors.
In inter-AS SRv6 TE Policy scenarios, the preceding constraints on the reflector discriminator make network planning inconvenient. To address this issue, unaffiliated BFD (U-BFD) for SRv6 TE Policy is introduced.
Figure 1 shows the U-BFD for SRv6 TE Policy detection process.
The U-BFD for SRv6 TE Policy detection process is as follows:
If the headend receives a U-BFD reply, it considers that the corresponding segment list in the SRv6 TE Policy is normal. Otherwise, it considers that the segment list fails. If all the segment lists of a candidate path fail, U-BFD triggers a switchover to the backup candidate path.
U-BFD return packets are forwarded over IPv6 routes. In cases where the primary paths of multiple SRv6 TE Policies between two nodes differ due to different path constraints, if U-BFD return packets are transmitted over the same path and this path fails, all the involved U-BFD sessions may go down. As a result, all the SRv6 TE Policies between the two nodes go down. This problem also applies to U-BFD sessions of multiple segment lists in the same SRv6 TE Policy.
By default, if HSB is not enabled for an SRv6 TE Policy, U-BFD detects all the segment lists of only the candidate path with the highest preference in the SRv6 TE Policy. Conversely, when HSB is enabled, U-BFD can detect all the segment lists of the candidate paths with the highest and second highest preferences in the SRv6 TE Policy. If the segment lists of the candidate path with the highest preference all fail, a switchover to the HSB path is triggered.
In a scenario where U-BFD for SRv6 TE Policy is deployed, if the segment lists of the primary candidate path fail, U-BFD remains up if a local protection path (such as a TI-LFA or TE FRR path) exists. For example, in TE FRR protection, if the current SID is unreachable, the SRv6 TE Policy uses the next-layer SID for forwarding. If this SID is still unreachable, the SRv6 TE Policy forwards the packet using the lower-layer SID until the destination IPv6 address of the packet changes to the TE IPv6 router ID of the headend. In this case, the BFD packets are looped back to the headend, and the BFD status remains up, which is inconsistent with the actual forwarding status of the SRv6 TE Policy.
To resolve this problem, you can enable U-BFD traffic to bypass local protection paths. In this way, U-BFD goes down if the segment lists of the primary candidate path all fail, triggering the candidate path to also go down. As a result, traffic is switched to a backup candidate path or another SRv6 TE Policy.
In an SRv6 TE Policy network slicing scenario, U-BFD can detect an SRv6 TE Policy based on a network slice. The detection process is as follows:
In this scenario, you must ensure that network slicing is deployed for the SRv6 TE Policy in E2E mode and that the primary path is working properly. Otherwise, U-BFD fails.