Application Scenarios for BFD - NE20E-S2 V800R022C00SPC600 Feature Description (2023)

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.

Fundamentals of U-BFD for SRv6 TE Policy

Figure 5-47 shows the U-BFD for SRv6 TE Policy detection process.

Figure 5-47 U-BFD for SRv6 TE Policy detection process
Application Scenarios for BFD - NE20E-S2 V800R022C00SPC600 Feature Description (1)

The U-BFD for SRv6 TE Policy detection process is as follows:

  1. After U-BFD is configured on the headend of the specified SRv6 TE Policy, the headend constructs a special BFD packet in which both the source and destination IP addresses in the IP header are the local IP address (that is, the TE IPv6 Router-ID) and both the local and remote discriminators are the same.
  2. The headend encapsulates a SID stack corresponding to the SRv6 TE Policy into the BFD packet. This transforms the packet into an SRv6 one.
  3. After receiving the SRv6 packet through the SRv6 TE Policy, the endpoint processes the packet, searches for a route according to the destination IPv6 address in the BFD packet, and then loops back the BFD packet to the headend.
  4. 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.

Forwarding of U-BFD Return Packets over a Segment List

To address the problem caused by the forwarding of U-BFD for SRv6 TE Policy packets over an IPv6 route, a solution is provided to allow U-BFD return packets to be forwarded over a segment list.

Figure 5-48 shows the key configurations that enable the forwarding of U-BFD return packets over a segment list. The corresponding configuration requirements are as follows:

  1. Create two bidirectional co-routed SRv6 TE Policies between the headend and endpoint, ensuring that the forward and reverse segment lists of one SRv6 TE Policy share the same path as those of the other SRv6 TE Policy.
  2. Specify a binding SID (BSID) and a reverse BSID for the bidirectional co-routed segment lists, with the BSID of one segment list being the same as the reverse BSID of the other segment list.

Figure 5-48 Key configurations that enable the forwarding of U-BFD return packets over a segment list
Application Scenarios for BFD - NE20E-S2 V800R022C00SPC600 Feature Description (2)

After the forwarding of U-BFD return packets over a segment list is enabled and a U-BFD session is initiated for a specific segment list, the reverse BSID of this segment list is sent to the peer device through BFD packets. The peer device then finds the corresponding segment list according to the received BSID and forwards return packets over this segment list.

Return packets can also be encapsulated in Insert or Encaps mode, depending on the encapsulation mode configured on device D for the SRv6 TE Policy.

Figure 5-49 shows the detection process when U-BFD return packets forwarded over a segment list are encapsulated in Insert mode.

Figure 5-49 Detection process when U-BFD return packets forwarded over a segment list are encapsulated in Insert mode
Application Scenarios for BFD - NE20E-S2 V800R022C00SPC600 Feature Description (3)

Figure 5-50 shows the detection process when U-BFD return packets forwarded over a segment list are encapsulated in Encaps mode.

Figure 5-50 Detection process when U-BFD return packets forwarded over a segment list are encapsulated in Encaps mode
Application Scenarios for BFD - NE20E-S2 V800R022C00SPC600 Feature Description (4)

Enabling U-BFD Traffic to Bypass Local Protection Paths

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.

Application of U-BFD in a Network Slicing Scenario

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:

  1. After U-BFD for SRv6 TE Policy is enabled on the headend, U-BFD packets are forwarded based on the network slice.
  2. After receiving a U-BFD packet, the endpoint device sends a U-BFD loopback packet.
  3. If the headend receives the U-BFD loopback packet, it considers the SRv6 TE Policy normal. Otherwise, it considers the SRv6 TE Policy faulty and sets U-BFD to Down.

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.

In an SRv6 TE Policy network slicing scenario, U-BFD return packets can also be forwarded over a segment list. The detection process is as follows:

  1. After U-BFD for SRv6 TE Policy is enabled on the headend, U-BFD packets are forwarded based on the network slice.
  2. After receiving a U-BFD packet, the endpoint device sends a U-BFD loopback packet based on the configured reverse SRv6 TE Policy.
  3. If the headend receives the U-BFD loopback packet, it considers the bidirectional SRv6 TE Policies normal. Otherwise, it considers the bidirectional SRv6 TE Policies faulty and sets U-BFD to Down.

In this scenario, both the forward and reverse SRv6 TE Policies must meet the following requirements. Otherwise, U-BFD fails.

  • For the forward SRv6 TE Policy, ensure that network slicing is deployed for this policy in E2E mode and that the primary path is working properly.
  • For the reverse SRv6 TE Policy, if the encapsulation mode is Insert, ensure that network slicing is deployed for this policy in E2E mode and that the primary path is working properly. If the encapsulation mode is Encap, you only need to ensure that the primary path is working properly.
Top Articles
Latest Posts
Article information

Author: Duane Harber

Last Updated: 03/24/2023

Views: 6567

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.