A method and system for detecting SRV6 TE tunnel failure based on BFD

By constructing dynamic learning packets and the END. and fault detection efficiency.

CN116208523BActive Publication Date: 2024-09-03CHONGQING AOPUTAI COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310075398.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2024-09-03
Estimated Expiration
2043-02-07

AI Technical Summary

Technical Problem

When the existing technology detects SRv6 TE tunnel faults, the forward path and the reverse path are inconsistent, resulting in misjudgments and false alarms.

Method used

By constructing dynamic learning packets, using SRv6 SID Tracert and the END.

Benefits of technology

It effectively avoids misjudgments caused by reverse path failures, improves the accuracy of BFD detection, and improves fault detection efficiency in the case of multiple business flows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208523B
    Figure CN116208523B
Patent Text Reader

Abstract

The present invention provides a method and system for detecting SRV6 TE tunnel failure based on BFD, which can be applied to IPRAN routers, SPN and other devices; in all cases where the SRH of the SRv6 TE tunnel contains END.X SID, END.B6.Encaps SID or END.B6.Encaps.Red SID, the method can well ensure that the reverse path is strictly consistent with the SRv6 TE tunnel path, therefore, the problem of misjudging the SRv6 TE tunnel failure due to the return path failure when the round-trip paths are inconsistent can be effectively avoided, and the accuracy of BFD detection of SRv6 TE tunnel failure can be better guaranteed; at the same time, through the fault detection of the SRv6 TE tunnel, when the tunnel carries multiple service flows, BFD fault detection can be performed on the tunnel, and there is no need to perform a separate BFD fault detection on each service, thereby effectively improving the fault detection efficiency and shortening the detection time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data communication technology, and in particular to a method for detecting SRV6 TE tunnel failure based on BFD and a readable storage medium, which can be applied to devices such as IPRAN routers and SPNs. Background Art

[0002] SRv6 (Segment Routing IPv6, RFC 8986) is a segment routing based on the IPv6 forwarding plane. It uses the newly added IPv6 extension header SRH (Segment Routing Header, RFC 8754) to encapsulate packets to implement segment path forwarding, and uses IGP (Interior Gateway Protocol) to spread SRv6 routes. The format of the SRH extension header is as follows: Figure 1 As shown, it contains function identifier Flags, segment list Segment List, segment list current position Segments Left and other contents. At the same time, the segment list Segment List carries a string of SIDs (Segment ID, RFC 8986). SID is used as the unique identifier of the segment path. Multiple SIDs are used to identify multiple segment paths.

[0003] SID has the same length as IPv6 address and consists of three fields: Locator with network positioning and IPv6 routing forwarding capabilities, Function indicating local forwarding behavior, and Arguments for extensible supplementary content. SID is divided into SIDs of different behavior types, such as END SID forwarded through IPv6 routing table, END.X SID forwarded by designated egress, END.B6.Encaps SID / END.B6.Encaps.Red SID that encapsulates a new IPv6 header and a new SRH header and then forwards according to the new SRH segment route, due to the difference in Function field. SID can be accompanied by Flavors additional behaviors, which include PSP (Penultimate Segment Pop of the SRH) and USP (Ultimate Segment Pop of the SRH). PSP means that the SRH header removal operation is performed when the SRH segment route reaches the second-to-last segment, and USP means that the SRH header is removed only when the SRH segment route reaches the last segment.

[0004] SRv6 TE (Segment Routing IPv6 Traffic Engineering) is a traffic engineering method implemented by encapsulating standard IPv6 packet headers and SRH headers in SRv6 segment routing. It can plan and control traffic forwarding paths and behaviors.

[0005] Bidirectional Forwarding Detection (BFD, RFC 5880 / RFC 5881) is a bidirectional forwarding detection protocol used to quickly detect path failures between two nodes in a network. BFD for IPv6 detects path failures by forwarding BFD packets between two network nodes through IPv6 routing.

[0006] SBFD (Seamless Bidirectional Forwarding Detection, RFC 7880 / RFC 7881) introduces a reflection mechanism based on BFD. It uses UDP port number 7784. After the message sent by the transmitter reaches the reflector, the IPv6 source address and destination address, UDP source port and destination port, and identifier are exchanged. The message is then forwarded back to the transmitter through IPv6 routing to detect path failures.

[0007] SRv6 SID Tracert is a method to check whether each SID in an SRv6 segment route is reachable. It is used to locate the fault point of the SRv6 segment route. It uses a UDP packet with an unreachable destination port to encapsulate an IPv6 packet header and an SRH header to detect the path fault point.

[0008] Currently, there are two main solutions for the SRv6 TE tunnel fault detection problem in the existing technology.

[0009] Solution 1:

[0010] One solution is the SBFD technical solution, which is to establish the SBFD transmitter and reflector at the start and end of the SRv6 TE tunnel. The transmitter sends a detection message, and the reflector reflects the message back. In this way, whether the SRv6 TE tunnel is faulty can be detected.

[0011] The detailed implementation is to open the SBFD transmitter at the starting point of the SRv6 TE tunnel. The SBFD message generated by the SBFD transmitter is encapsulated with a standard IPv6 message header and SRH header and sent to the terminal device node through the SRv6 TE tunnel. The SBFD reflector is opened at the end of the SRv6 TE tunnel. The reflector receives the SBFD message after the SRH is stripped, exchanges the IPv6 source address and destination address, the UDP protocol source port and destination port, and the identifier, and then forwards it back to the SBFD transmitter through the IPv6 optimal route. The reverse path of the optimal route here may be inconsistent with the forward path from the transmitter to the reflector.

[0012] For example, in Figure 2 In the network node communication shown in the figure, an SRv6 TE tunnel is established from node A through node B and node C to node D. Then the SBFD message sent by node A reaches node D along the forward path of the SRv6 TE tunnel, and the SBFD message returned by node D as the reflector is selected according to the optimal route to reach node A through node E. That is, the SBFD message paths in the two directions are different.

[0013] However, the defect of this solution is that since the reflector end of SBFD forwards the reverse path based on the optimal path, it cannot ensure that the reverse path is consistent with the SRv6 TE tunnel path. If the forward path of the SRv6 TE tunnel is normal but the reverse path fails, SBFD will mistakenly believe that the detected SRv6 TE tunnel has failed.

[0014] Option 2:

[0015] Another solution is to ensure that the forward and reverse paths of the SRv6 TE tunnel are consistent as much as possible to perform fault detection. For example, the "Method and System for Bidirectional Forwarding Detection in SRv6 Networks" solution disclosed in my country's patent application CN113381933A extracts the path information of the SRv6 TE tunnel message, that is, the Segment List, and then performs a fixed logical flip on the path information to obtain the reverse path information Reverse Segment List, and finally uses BFD technology to perform fault detection on the forward and reverse paths of the SRv6 TE tunnel. Compared with the 1.2.1 technology, this solution adds reverse path calculation and use to avoid inconsistency between the reverse path and the forward path.

[0016] The detailed implementation process of this solution is as follows: a BFD session is started at the starting point of the SRv6 TE tunnel. The BFD packet is encapsulated with an IPv6 packet header and an SRH header. The SRH encapsulated in the initial stage of the BFD session occupies the undefined bit of Flags and carries the private Bfd_Reverese_Path_Flag identifier. The end point of the SRv6 TE tunnel performs special processing on the BFD packet with the Bfd_Reverese_Path_Flag identifier in the Flags of the SRH, extracts the IPv6 source address in the packet and the Segment List[0..n] in the SRH, adds the IPv6 source address in the packet to the end of the Segment List[0..n], removes the local address segment of the end device of the SRv6 TE tunnel in the Segment List[0..n], reverses the corrected Segment List[0..n] to obtain the Reverese Segment List[0..n], and uses the Reverese SegmentList[0..n] to encapsulate the SRH and forwards it to the SRv6 The starting point of the TE tunnel sends a BFD response message to ensure that the direction of the path is consistent with the SRv6 TE tunnel path.

[0017] by Figure 3 Taking the SRv6 segment routing network shown in the figure as an example, an SRv6 TE tunnel is established between node A and node D, and the nodes passed by the tunnel are node B, node E, node F, and node C. Node A needs to detect the SRv6 TE tunnel failure of the path from node A to node D, which is SegmentList[D:1::1,F:1::2,B:1::2], where F:1::2 and B:1::2 are the END.X SIDs forwarded by the designated egress. The detection message transmission path and process are as follows:

[0018] 1. Node A sends a detection message to node B;

[0019] 2. Node B forwards the message to node E through the local SID forwarding table;

[0020] 3. Node E forwards to node F via IPv6 routing;

[0021] 4. Node F forwards to node C through the local SID forwarding table. If F:1::2 has a PSP flag and the Bfd_Reverese_Path_Flag flag is carried in the SRH flags, then the patent solution describes a special treatment for this situation without PSP behavior (removing the SRH header in the second to last section);

[0022] 5. Node C forwards to node D via IPv6 routing;

[0023] 6. Node D extracts the message content to get Reversed Segment List [A:1::1, B:1::2, E:1::2, F:1::2] as the reverse path response message and sends it to node C;

[0024] 7. Node C forwards to node F via IPv6 routing;

[0025] 8. Node F finds that F:1::2 is the local ENDX SID and because the forwarding interface specified by the END.X SID is the same as the incoming interface of the message, the patent solution describes a special treatment for this situation so that the message is not forwarded by the specified interface but is treated as the behavior of the END SID and forwarded by IPv6 routing. If the optimal path to B:1::2 on node F is F->E->B, then the message will be forwarded to node E;

[0026] 9. Node E forwards to node B via IPv6 routing;

[0027] 10. Node B finds that B:1::2 is the local END.X SID, and because the forwarding interface specified by the END.X SID is the same as the incoming interface of the message, it treats the behavior of the END SID as IPv6 routing forwarding, and finally forwards the message to node A, so as to achieve consistency in the forward and reverse paths of the detection message, solving the problem existing in the aforementioned solution 1.

[0028] However, the first solution has the defect that it is difficult to ensure that the forward path and reverse path of the SRv6 TE tunnel to be detected are absolutely consistent. If a section of the reverse path that is different from the SRv6 TE tunnel fails, it will be mistakenly detected as a SRv6 TE tunnel failure, and the calculated reverse path may form a loop.

[0029] Based on the example of the above communication process, in step 8, after receiving the message, node F replaces the designated export behavior of END.X SID with the IPv6 routing forwarding behavior of END SID. If the optimal path from node F to B:1::2 is F->C->B, then it will lead to the message path behavior shown in the following figure. The return path of the detection reply message is not strictly consistent with the SRv6 TE tunnel path. At this time, if the path between node B and node C fails, the BFD reverse message cannot be returned to node A normally, which will mistakenly believe that the SRv6 TE tunnel path is faulty, while in fact the SRv6 TE tunnel is normal.

[0030] It can be seen that the solutions for SRv6 TE tunnel fault detection in the prior art may cause inconsistency in the forward and reverse transmission paths of the detection message, resulting in the problem of false alarm of SRv6 TE tunnel fault. Summary of the invention

[0031] In view of the deficiencies in the existing technology, the present invention provides a method for detecting SRV6 TE tunnel faults based on BFD, so as to ensure that the fault grids of the forward path and the reverse path of the SRv6 TE tunnel are consistent, thereby better ensuring the accuracy of BFD detection of SRv6 TE tunnel faults.

[0032] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0033] A method for detecting an SRV6 TE tunnel fault based on BFD, comprising:

[0034] S1: The source node of the SRv6 TE tunnel constructs a dynamic learning message containing path learning information and sends it to the egress node of the SRv6 TE tunnel through the SRv6 TE tunnel path;

[0035] S2: When the intermediate node of the SRv6 TE tunnel receives the dynamic learning message, it uses route tracking to add the END.X SID diffusion mark of the IGP protocol to the nodes along the path of the dynamic learning message, fills it into the path learning information of the dynamic learning message, and transmits it to the next node.

[0036] S3: When receiving the dynamic learning message, the tail node of the SRv6 TE tunnel reads the path learning information of the dynamic learning message, determines the reverse path of the tunnel, establishes a bidirectional forwarding detection BFD, and sends a bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel;

[0037] S4: After receiving the bidirectional forwarding detection BFD message, the source node of the SRv6 TE tunnel updates the local bidirectional forwarding detection BFD configuration and establishes a bidirectional forwarding detection channel to detect the SRv6 TE tunnel failure.

[0038] In the above-mentioned method for detecting SRV6 TE tunnel failure based on BFD, specifically, in step S1, the source node constructs a dynamic learning message using the SRv6 SID Tracert message encapsulation format, records the path learning information in the UDP data segment of the dynamic learning message, and while constructing the dynamic learning message, the source node records the END SID address of the local PSP of the source node in the path learning information.

[0039] In the above-mentioned method for detecting SRV6 TE tunnel failure based on BFD, specifically, the UDP data segment of the dynamic learning message includes the following fields in sequence:

[0040] The learning message identification field Type is used to indicate that the data is used for path learning;

[0041] The data byte identification field Len is used to indicate the number of bytes of the following data;

[0042] The path information segment number identification field SL is used to indicate the number of segments filled in the subsequent path information field Segment List;

[0043] The reserved field is used as a byte reserved field;

[0044] The BFD Discriminator field is used to store the BFD identifier;

[0045] The path information field Segment List is used to store the completed path learning information.

[0046] In the above-mentioned method for detecting SRV6 TE tunnel failure based on BFD, specifically, in step S1, the specific manner in which the source node constructs a dynamic learning message is:

[0047] The source node constructs a dynamic learning message using the SRv6 SID Tracert message encapsulation format. In the UDP data segment of the dynamic learning message, the learning message identification field Type is filled with the identifier used to indicate path learning, the data byte identification field Len is filled with the number of bytes of the following data, the path information segment number identification field SL is filled with 0, the reserved field Reserved is fixedly filled with 0, the BFD Discriminator field is filled with the BFD identifier assigned to the source node by the SRv6TE tunnel to enable BFD detection, and the 0th segment Segment List[0] of the path information field Segment List is filled with the local ENDSID address of the source node; then, the destination port number of the UDP data segment is filled with the custom identifier used for path learning, and the constructed SRv6 SID Tracert message is encapsulated with the SRH header of the SRv6 TE tunnel and the standard IPv6 header, and sent to the next node of the SRv6 TE tunnel path.

[0048] In the above method for detecting SRV6 TE tunnel failure based on BFD, specifically, step S2 is specifically:

[0049] S201: When receiving a dynamic learning message, the intermediate node extracts the destination IPv6 address in the dynamic learning message, and the data of the path information segment number identification field SL and the path information field Segment List in the UDP data segment;

[0050] S202: According to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value state indicated by the SL segment Segment List[SL] in the path information field Segment List, determine whether the diffusion marking condition is met; if so, perform the END.X SID diffusion marking of the IGP protocol according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message, fill it into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and continue to execute step S203; if not, jump to execute step S204;

[0051] S203: adding 1 to the value of the path information segment number identification field SL in the UDP data segment of the dynamic learning message, and updating the path information segment number identification field SL;

[0052] S204: Send the dynamic learning message to the next node of the SRv6 TE tunnel path.

[0053] In the above method for detecting SRV6 TE tunnel failure based on BFD, specifically, step S202 is specifically:

[0054] Determine the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value status indicated by the SL segment Segment List [SL] in the path information field Segment List:

[0055] If the SID type is an END.X SID forwarded by a designated egress, it is determined that the diffusion marking condition is met, and the value of the END.X SID corresponding to the neighbor of the designated interface of the END.X SID learned by the local IGP protocol of the intermediate node is used as a diffusion mark, and is filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued;

[0056] If the SID type is END.B6.Encaps SID or END.B6.Encaps.Red SID, and the value of the SLth segment Segment List[SL] in the path information field Segment List is not the local SID address of the intermediate node, it is determined that the diffusion mark condition is met, and the value of the local END SID address of the intermediate node is used as the diffusion mark and filled into the SL+1th segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued;

[0057] If the SID type is an END SID forwarded by the IPv6 routing table, and the value of the SL segment Segment List[SL] in the path information field Segment List is not the local SID address of the intermediate node, it is determined that the diffusion marking condition is met, and the value of the END SID is used as a diffusion mark and filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued;

[0058] If it is another case, it is determined that the diffusion mark condition is not satisfied, and the process jumps to step S204.

[0059] In the above-mentioned method for detecting SRV6 TE tunnel failure based on BFD, specifically, in step S3, the specific manner in which the tail node determines the reverse path of the tunnel by reading the path learning information of the dynamic learning message is:

[0060] When the tail node receives a dynamic learning message, it extracts the source address of the IPv6 header in the dynamic learning message and the data of the path information field Segment List in the UDP data segment, adds the source address of the IPv6 header to the last SID position of the extracted path information field SegmentList data, and then performs reverse path assembly, that is, determines the reverse path of the tunnel.

[0061] In the above-mentioned method for detecting SRV6 TE tunnel failure based on BFD, specifically, in step S3, the specific manner in which the tail node sends a bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel is:

[0062] When the tail node receives the dynamic learning message, it also extracts the BFD identifier of the source node in the dynamic learning message; after determining the reverse path of the tunnel, it allocates the BFD identifier of the tail node, creates a bidirectional forwarding detection BFD whose remote BFD identifier is the BFD identifier of the source node and the local BFD identifier is the BFD identifier of the tail node, encapsulates the bidirectional forwarding detection BFD message with the SRH header of the SRv6 TE tunnel and the standard IPv6 header, and sends it to the source node of the SRv6TE tunnel according to the reverse path of the tunnel.

[0063] In the above method for detecting SRV6 TE tunnel failure based on BFD, specifically, in step S4, the processing process of the source node is specifically as follows:

[0064] After the source node receives the bidirectional forwarding detection BFD message, it updates the local bidirectional forwarding detection BFD configuration according to the BFD identifier recorded in the bidirectional forwarding detection BFD message, updates the remote BFD identifier to the tail node BFD identifier, and updates the local BFD identifier to the source node BFD identifier. The SRv6 TE tunnel path is used as the detection path, establishes a bidirectional forwarding detection channel from the source node to the tail node, sends a bidirectional forwarding detection BFD message, and performs bidirectional forwarding detection of SRv6 TE tunnel failures.

[0065] The present invention also discloses a system for detecting SRV6 TE tunnel failure based on BFD, comprising:

[0066] The source node of the SRv6 TE tunnel is used to construct a dynamic learning message containing path learning information and send it to the egress node of the SRv6 TE tunnel through the SRv6 TE tunnel path. After receiving the bidirectional forwarding detection (BFD) message sent by the egress node, the source node updates the local bidirectional forwarding detection (BFD) configuration and establishes a bidirectional forwarding detection channel to detect SRv6 TE tunnel failures.

[0067] The intermediate node of the SRv6 TE tunnel is used to, when receiving a dynamic learning message, perform IGP protocol END.X SID diffusion marking on the nodes along the path of the dynamic learning message through route tracking, fill it into the path learning information of the dynamic learning message, and transmit it to the next node; and when receiving a bidirectional forwarding detection BFD message sent by the tail node, forward it according to the reverse path of the tunnel;

[0068] The tail node of the SRv6 TE tunnel is used to read the path learning information of the dynamic learning message when receiving the dynamic learning message, determine the reverse path of the tunnel, establish a bidirectional forwarding detection BFD, and send the bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel.

[0069] Compared with the prior art, the present invention has the following beneficial effects:

[0070] 1. The method for detecting SRV6 TE tunnel failure based on BFD of the present invention can well ensure that the reverse path is strictly consistent with the SRv6 TE tunnel path in all cases where the SRH of the SRv6 TE tunnel includes END.X SID, END.B6.EncapsSID or END.B6.Encaps.Red SID. Therefore, the problem of misjudging the SRv6 TE tunnel failure due to the return path failure when the round-trip path is inconsistent can be effectively avoided, and the accuracy of BFD detection of SRv6 TE tunnel failure can be better guaranteed.

[0071] 2. The method for detecting SRV6 TE tunnel faults based on BFD of the present invention can perform BFD fault detection on the SRv6 TE tunnel when the tunnel carries multiple service flows through fault detection of the SRv6 TE tunnel. There is no need to perform separate BFD fault detection on each service, which effectively improves fault detection efficiency and shortens detection time. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:

[0073] Figure 1 This is a schematic diagram of the SRH extended header format.

[0074] Figure 2 This is an example diagram of SRv6 TE tunnel routing network node communication for demonstrating the first prior art method.

[0075] Figure 3 This is an example diagram of SRv6 TE tunnel routing network node communication for demonstrating the second prior art method.

[0076] Figure 4 It is a flow chart of a method for detecting SRV6 TE tunnel failure based on BFD of the present invention.

[0077] Figure 5 It is a schematic diagram of the UDP data segment format of the dynamic learning message constructed in the method of the present invention.

[0078] Figure 6 It is a schematic diagram of the processing process of the intermediate node in the method of the present invention when receiving a dynamic learning message.

[0079] Figure 7 It is an example diagram of SRv6 TE tunnel routing network node communication for demonstrating the method of the present invention.

[0080] Figure 8 yes Figure 7 This figure shows an example of how to establish a bidirectional forwarding detection (BFD) network in an SRv6 TE tunnel. DETAILED DESCRIPTION

[0081] First, technical terms related to the present invention are explained.

[0082] SRv6 (Segment Routing IPv6), segment routing based on the IPv6 forwarding plane;

[0083] SRH (Segment Routing Header), IPv6 extended segment routing header;

[0084] SID (Segment ID), segment routing identifier, the same as the common IPv6 address format;

[0085] PSP (Penultimate Segment Pop of the SRH), the penultimate segment performs SRH removal operation;

[0086] USP (Ultimate Segment Pop of the SRH), the last segment performs the SRH removal operation;

[0087] SL (Segments Left) indicates the current segment number in the segment routing header;

[0088] IGP (Interior Gateway Protocol), interior gateway protocol;

[0089] BFD Disc (BFD Discriminator), BFD identifier;

[0090] UDP (User Datagram Protocol) is a connectionless transport protocol supported by the Internet protocol suite, providing a simple, transaction-oriented, unreliable information transmission service. UDP provides a way for applications to send encapsulated IP data packets without establishing a connection. [RFC 768] is the official specification of UDP. The Internet's transport layer has two main protocols that complement each other; the connectionless one is UDP, which does almost nothing special except sending data packets to applications and allowing them to build their own protocols at the required level; the connection-oriented one is TCP, which does almost everything. The UDP protocol is used to process data packets like the TCP protocol. In the OSI (Open System Interconnection) model, both are located in the transport layer, which is the upper layer of the IP protocol. UDP has the disadvantages of not providing data packet grouping, assembly, and inability to sort data packets. That is, after a message is sent, it is impossible to know whether it has arrived safely and completely. UDP is used to support network applications that need to transmit data between computers. Many client / server network applications, including network video conferencing systems, need to use the UDP protocol. The UDP protocol has been used for many years since its introduction. Although its initial glory has been overshadowed by some similar protocols, UDP is still a very practical and feasible network transport layer protocol even today.

[0091] The present invention relates to data communication technology field

[0092] The invention belongs to the field of communication technology and is a method for detecting SRv6 TE tunnel failures. The method can be applied to devices such as IPRAN routers and SPNs.

[0093] The present invention is further described and illustrated below in conjunction with the accompanying drawings and specific embodiments. The technical features of each embodiment of the present invention can be combined accordingly without conflicting with each other.

[0094] The present invention proposes a method for detecting SRV6 TE tunnel failure based on BFD, which can be applied to devices such as IPRAN routers and SPNs. The technical solution process is as follows: Figure 4 As shown, the following steps are included:

[0095] S1: The source node of the SRv6 TE tunnel constructs a dynamic learning message containing path learning information and sends it to the egress node of the SRv6 TE tunnel through the SRv6 TE tunnel path;

[0096] S2: When the intermediate node of the SRv6 TE tunnel receives the dynamic learning message, it uses route tracking to add the END.X SID diffusion mark of the IGP protocol to the nodes along the path of the dynamic learning message, fills it into the path learning information of the dynamic learning message, and transmits it to the next node.

[0097] S3: When receiving the dynamic learning message, the tail node of the SRv6 TE tunnel reads the path learning information of the dynamic learning message, determines the reverse path of the tunnel, establishes a bidirectional forwarding detection BFD, and sends a bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel;

[0098] S4: After receiving the bidirectional forwarding detection BFD message, the source node of the SRv6 TE tunnel updates the local bidirectional forwarding detection BFD configuration and establishes a bidirectional forwarding detection channel to detect the SRv6 TE tunnel failure.

[0099] The present invention is based on a method for detecting SRV6 TE tunnel failures based on BFD. The method makes use of the SRv6 SID Tracert technology and the END.X SID diffusion technology of the IGP. A source node constructs a dynamic learning message and sends it to a tail node through an SRv6 TE tunnel path. The path learning information contained in the dynamic learning message is used to perform END.X SID diffusion marking of the IGP protocol on the path nodes of the dynamic learning message. The reverse path of the tunnel is determined according to the path learning information. A bidirectional forwarding detection BFD is established to detect SRv6 TE tunnel failures. In all cases where the SRH of the SRv6 TE tunnel contains END.X SID, END.B6.Encaps SID or END.B6.Encaps.Red SID, the reverse path can be well guaranteed to be strictly consistent with the SRv6 TE tunnel path. Therefore, the problem of misjudging the SRv6 TE tunnel failure due to the return path failure when the round-trip paths are inconsistent can be effectively avoided, and the accuracy of BFD in detecting SRv6 TE tunnel failures can be better guaranteed.

[0100] In the specific implementation, in step S1, the source node constructs a dynamic learning message using the SRv6 SID Tracert message encapsulation format, records the path learning information in the UDP data segment of the dynamic learning message, and while constructing the dynamic learning message, the source node records the END SID address of the local PSP of the source node in the path learning information. In the dynamic learning message in the SRv6 SID Tracert message encapsulation format, the UDP data segment format for path learning is defined as follows: Figure 5 As shown, the UDP data segment contains the following fields in sequence:

[0101] The learning message identification field Type is used to indicate that the data is used for path learning;

[0102] The data byte identification field Len is used to indicate the number of bytes of the following data;

[0103] The path information segment number identification field SL is used to indicate the number of segments filled in the subsequent path information field Segment List;

[0104] The reserved field is used as a byte reserved field;

[0105] The BFD Discriminator field is used to store the BFD identifier;

[0106] The path information field Segment List is used to store the completed path learning information.

[0107] In step S1, the specific manner in which the source node constructs the dynamic learning message is as follows: the source node constructs the dynamic learning message using the SRv6 SID Tracert message encapsulation format; in the UDP data segment of the dynamic learning message, the learning message identification field Type is filled with the identifier used to indicate path learning; the data byte identification field Len is filled with the number of bytes of the following data; the path information segment number identification field SL is filled with 0; the reserved field Reserved is fixedly filled with 0; the BFD Discriminator field is filled with the BFD identifier assigned to the source node by the SRv6 TE tunnel enabling BFD detection; the 0th segment Segment List[0] of the path information field Segment List is filled with the local END SID address of the source node; then, the destination port number of the UDP data segment is filled with the custom identifier used for path learning; the constructed SRv6 SID Tracert dynamic learning message is encapsulated with the SRH header of the SRv6 TE tunnel and the standard IPv6 header, and sent to the next node of the SRv6 TE tunnel path.

[0108] In specific implementation, in step S2, the processing process of the intermediate node is as follows: Figure 6 As shown, specifically:

[0109] S201: When receiving a dynamic learning message, the intermediate node extracts the destination IPv6 address in the dynamic learning message, and the data of the path information segment number identification field SL and the path information field Segment List in the UDP data segment;

[0110] S202: According to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value state indicated by the SL segment Segment List[SL] in the path information field Segment List, determine whether the diffusion marking condition is met; if so, perform the END.X SID diffusion marking of the IGP protocol according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message, fill it into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and continue to execute step S203; if not, jump to execute step S204;

[0111] Here, the specific processing method of step S202 is:

[0112] Determine the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value status indicated by the SL segment Segment List [SL] in the path information field Segment List:

[0113] If the SID type is an END.X SID forwarded by a designated egress, it is determined that the diffusion marking condition is met, and the value of the END.X SID corresponding to the neighbor of the designated interface of the END.X SID learned by the local IGP protocol of the intermediate node is used as a diffusion mark, and is filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued;

[0114] If the SID type is END.B6.Encaps SID or END.B6.Encaps.Red SID, and the value of the SLth segment Segment List[SL] in the path information field Segment List is not the local SID address of the intermediate node, it is determined that the diffusion mark condition is met, and the value of the local END SID address of the intermediate node is used as the diffusion mark and filled into the SL+1th segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued;

[0115] If the SID type is an END SID forwarded by the IPv6 routing table, and the value of the SL segment Segment List[SL] in the path information field Segment List is not the local SID address of the intermediate node, it is determined that the diffusion marking condition is met, and the value of the END SID is used as a diffusion mark and filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued;

[0116] If it is other cases, it is determined that the diffusion mark condition is not met, and the process jumps to step S204;

[0117] S203: adding 1 to the value of the path information segment number identification field SL in the UDP data segment of the dynamic learning message, and updating the path information segment number identification field SL;

[0118] S204: Send the dynamic learning message to the next node of the SRv6 TE tunnel path.

[0119] Therefore, the solution of the present invention can cope with all situations in which the SRH of the SRv6 TE tunnel contains END.XSID, END.B6.Encaps SID or END.B6.Encaps.Red SID.

[0120] In the specific implementation, in step S3, the specific method for the tail node to determine the reverse path of the tunnel when reading the path learning information of the dynamic learning message is as follows: when the tail node receives the dynamic learning message, it extracts the source address of the IPv6 header in the dynamic learning message and the data of the path information field Segment List in the UDP data segment, adds the source address of the IPv6 header to the last SID position of the extracted path information field Segment List data, and then performs reverse path assembly, that is, determines the reverse path of the tunnel.

[0121] In step S3, the specific manner in which the tail node sends a bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel is as follows: when the tail node receives the dynamic learning message, it also extracts the BFD identifier of the source node in the dynamic learning message; after determining the reverse path of the tunnel, it allocates the BFD identifier of the tail node, creates a bidirectional forwarding detection BFD whose remote BFD identifier is the source node BFD identifier and whose local BFD identifier is the tail node BFD identifier, encapsulates the bidirectional forwarding detection BFD message with the SRH header of the SRv6 TE tunnel and the standard IPv6 header, and sends it to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel.

[0122] During specific implementation, in step S4, the processing process of the source node is as follows: after the source node receives the bidirectional forwarding detection BFD message, the local bidirectional forwarding detection BFD configuration is updated according to the BFD identifier recorded in the bidirectional forwarding detection BFD message, the remote BFD identifier is updated to the tail node BFD identifier, and the local BFD identifier is updated to the source node BFD identifier. The SRv6 TE tunnel path is used as the detection path, a bidirectional forwarding detection channel from the source node to the tail node is established, and a bidirectional forwarding detection BFD message is sent to perform bidirectional forwarding detection of SRv6 TE tunnel failures.

[0123] In order to facilitate understanding of the method for detecting SRV6 TE tunnel failure based on BFD of the present invention, the solution of the present invention is further explained below through an example.

[0124] Example of an SRv6 TE tunnel:

[0125] Figure 7 An example of SRv6 TE tunnel routing network node communication is shown. Figure 7In the figure, the END SID address of node A is A:1::1, the END SID address of node B is B:1::1, the END SID address of node C is C:1::1, and the ENDSID address of node D is D:1::1. B:1::2 is the END.X SID forwarded by the local designated interface of node B to node C, C:1::2 is the END.X SID forwarded by the local designated interface of node C to node B, A::1 is the local loopback IPv6 address of node A and the source address of SRv6 tunnel message encapsulation, D::1 is the local loopback IPv6 address of node D and the source address of SRv6 tunnel message encapsulation, node A has an SRv6 TE tunnel to node D, with node A as the source node of the tunnel and node D as the tail node of the tunnel, and the path information Segment List of the tunnel is [D:1::1, C:1::1, B:1::2].

[0126] The following is a description of the implementation process of BFD fault detection based on the tunnel; in the following process, link 2 is equivalent to step S1 in the process description of the above method of the present invention, links 3 and 4 are equivalent to step S2 in the process description of the above method of the present invention, link 5 is equivalent to step S3 in the process description of the above method of the present invention, and link 6 is equivalent to step S4 in the process description of the above method of the present invention; the specific links of the process are as follows:

[0127] 1. Node A enables BFD detection for the SRv6 TE tunnel to node D, randomly assigns a local BFD identifier (1001 in this example), and then configures BFD without sending BFD packets.

[0128] 2. Node A then constructs the SRv6 SID Tracert message encapsulation format to construct a dynamic learning message. The UDP data segment format of the dynamic learning message remains the same as Figure 5 As shown in the figure, the Type field with a fixed value of 0x7F is used to indicate that the data is used for path learning. The Len field is used to indicate the number of bytes of the following data. The SL field is used to indicate the number of segments in the following Segment List. The Reserved field is an unused one-byte reserved field. The BFDDiscriminator field is used to store the BFD identifier for remote learning. Finally, the Segment List field is used to store the path learning information.

[0129] Specifically, when node A constructs a dynamic learning message, it needs to fill in the local BFD identifier and the 0th segment of the path information field Segment List [0] (that is, the last segment of the reverse path). Here, Segment List [0] in the UDP data message is filled with the END SID address A:1::1 of the local PSP of node A, the SL field is fixed with 0, the Reserved field is fixed with 0, the BFD Discriminator field is filled with the BFD identifier 1001 allocated by node A for detecting the SRv6 TE tunnel, the Type field is fixed with 0x7F, the Len field is filled with 22 according to the number of bytes of the following data, and the UDP destination port number is marked as the path learning of the SRv6 TE tunnel with an unused custom value. Here, 54321 is filled in as an example. Finally, the constructed SRv6 SIDTracert message is encapsulated with the SRH header of the SRv6 TE tunnel to be tested and the standard IPv6 header and forwarded to node B through the IPv6 routing table learned by IGP.

[0130] 3. Node B uses route tracking to perform IGP protocol END.XSID diffusion marking on the nodes along the way of the received dynamic learning message. The specific method is as follows: Node B extracts the destination IPv6 address in the dynamic learning message as B:1::2, and SL is 0. Therefore, the current Segment List[SL] refers to SegmentList[0]. The value of Segment List[0] is A:1::1. Since the destination IPv6 address B:1::2 indicates the END.X SID forwarded by the local designated interface of Node B to Node C, the diffusion marking condition is met. The END.X SID address C:1::2 corresponding to the neighbor node C is filled in the position of Segment List[1] in the UDP data in the dynamic learning message. Then, the SL in the UDP data in the dynamic learning message is increased by 1 and updated to 1. Finally, the processed message is forwarded to Node C through the SRv6 channel.

[0131] 4. When the dynamic learning message reaches the intermediate node C, it will perform the corresponding path learning processing through route tracking just like node B. Node C extracts the destination IPv6 address in the received dynamic learning message as C:1::1, and SL is 1. Therefore, the current Segment List[SL] refers to Segment List[1], and the query Segment List[1] is C:1::2. Since the destination IPv6 address C:1::1 indicates the END SID address of node C, but the value C:1::2 of Segment List[1] is also the local SID address of node C, the diffusion marking condition is not met, and no modification is made to the dynamic learning message. The dynamic learning message is directly forwarded to node D through the SRv6 channel.

[0132] 5. After receiving the dynamic learning message, the tail node D of the SRv6 TE tunnel extracts the source address A::1 in the IPv6 header of the message, the Segment List information in the UDP data, and the BFD identifier 1001 of node A. Node D adds the extracted IPv6 source address A::1 of the message to the last SID position of the extracted path information Segment List, and then performs reverse path assembly. The assembled tunnel reverse path Segment List is [A::1, A:1::1, C:1::2]. Then, the tail node D is assigned a local BFD identifier 2001, and a BFD with a remote BFD identifier of 1001 and a local BFD identifier of 2001 is created. The sent BFD message is encapsulated and forwarded with an SRH header and a standard IPv6 header through the assembled tunnel reverse path Segment List [A::1, A:1::1, C:1::2].

[0133] 6. After receiving the message, node C forwards it to node B through the local ENDX SID; node B forwards it to node A through IPv6 routing. After node A receives the BFD message, it learns that the remote BFD identifier is 2001 and the remote IPv6 address is D::1. It then refreshes the local BFD configuration, sends a local BFD identifier update of 1001 and a remote BFD identifier update of 2001, establishes a bidirectional forwarding detection channel with a tunnel segment list of [D::1, D:1::1, C:1::1, B:1::2], and sends a bidirectional forwarding detection BFD message. Figure 8 As shown in the figure, the bidirectional BFD for the SRv6 TE tunnel from node A to node D is established successfully, and whether the SRv6 TE tunnel is faulty is determined based on the BFD status.

[0134] It can be seen from the above process that in the system using the method for detecting SRV6 TE tunnel failure based on BFD of the present invention, the source node of the SRv6 TE tunnel is used to construct a dynamic learning message containing path learning information, and send it to the tail node of the SRv6 TE tunnel through the SRv6 TE tunnel path, and after receiving the bidirectional forwarding detection BFD message sent by the tail node, update the local bidirectional forwarding detection BFD configuration, and establish a bidirectional forwarding detection channel to detect the SRv6 TE tunnel failure; the intermediate node of the SRv6 TE tunnel is used to perform the END.X SID diffusion mark of the IGP protocol on the path nodes of the dynamic learning message through route tracking when receiving the dynamic learning message, fill it into the path learning information of the dynamic learning message, and transmit it to the next node, and when receiving the bidirectional forwarding detection BFD message sent by the tail node, forward it according to the reverse path of the tunnel; the tail node of the SRv6 TE tunnel is used to read the path learning information of the dynamic learning message when receiving the dynamic learning message, determine the reverse path of the tunnel, and establish a bidirectional forwarding detection BFD, and send the bidirectional forwarding detection BFD message to the SRv6 according to the reverse path of the tunnel. Source node of the TE tunnel.

[0135] In summary, the method for detecting SRV6 TE tunnel faults based on BFD in the present invention can well ensure that the reverse path is strictly consistent with the SRv6 TE tunnel path in all cases where the SRH of the SRv6 TE tunnel includes END.X SID, END.B6.Encaps SID or END.B6.Encaps.Red SID. Therefore, the problem of misjudging the SRv6 TE tunnel fault due to the return path failure when the round-trip paths are inconsistent can be effectively avoided, and the accuracy of BFD detection of SRv6 TE tunnel faults can be better guaranteed; at the same time, through the fault detection of the SRv6 TE tunnel, when the tunnel carries multiple service flows, BFD fault detection can be performed on the tunnel, and there is no need to perform a separate BFD fault detection on each service, which effectively improves the fault detection efficiency and shortens the detection time.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.

Claims

1. A method for detecting SRV6 TE tunnel failure based on BFD, characterized in that: include: S1: The source node of the SRv6 TE tunnel constructs a dynamic learning message containing path learning information and sends it to the tail node of the SRv6 TE tunnel through the SRv6 TE tunnel path. The source node constructs the dynamic learning message using the SRv6 SID Tracert message encapsulation format and records the path learning information in the UDP data segment of the dynamic learning message. When constructing the dynamic learning message, the source node records the END SID address of the local PSP of the source node in the path learning information. S2: When the intermediate node of the SRv6 TE tunnel receives the dynamic learning message, it performs the IGP protocol END.X SID diffusion marking on the nodes along the path of the dynamic learning message through route tracking, fills it into the path learning information of the dynamic learning message, and transmits it to the next node; wherein, according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value state indicated by the SL segment Segment List [SL] in the path information field Segment List, it is determined whether the diffusion marking condition is met; if it is met, the IGP protocol END.X SID diffusion marking is performed according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message; S3: When receiving the dynamic learning message, the tail node of the SRv6 TE tunnel reads the path learning information of the dynamic learning message, determines the reverse path of the tunnel, establishes a bidirectional forwarding detection BFD, and sends a bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel; S4: After receiving the bidirectional forwarding detection BFD message, the source node of the SRv6 TE tunnel updates the local bidirectional forwarding detection BFD configuration and establishes a bidirectional forwarding detection channel to detect the SRv6 TE tunnel failure.

2. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 1, characterized in that: The UDP data segment of the dynamic learning message includes the following fields in sequence: The learning message identification field Type is used to indicate that the data is used for path learning; The data byte identification field Len is used to indicate the number of bytes of the following data; The path information segment number identification field SL is used to indicate the number of segments filled in the subsequent path information field Segment List; The reserved field is used as a byte reserved field; The BFD Discriminator field is used to store the BFD identifier; The path information field Segment List is used to store the completed path learning information.

3. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 2, characterized in that: In step S1, the specific manner in which the source node constructs a dynamic learning message is: The source node constructs a dynamic learning message using the SRv6 SID Tracert message encapsulation format. In the UDP data segment of the dynamic learning message, the learning message identification field Type is filled with the identifier used to indicate path learning, the data byte identification field Len is filled with the number of bytes of the following data, the path information segment number identification field SL is filled with 0, the reserved field Reserved is fixedly filled with 0, the BFD Discriminator field is filled with the BFD identifier assigned to the source node by the SRv6 TE tunnel enabling BFD detection, and the 0th segment Segment List[0] of the path information field Segment List is filled with the local END SID address of the source node; then, the destination port number of the UDP data segment is filled with the custom identifier used for path learning, and the constructed SRv6 SID Tracert message is encapsulated with the SRH header of the SRv6 TE tunnel and the standard IPv6 header, and sent to the next node of the SRv6 TE tunnel path.

4. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 1, characterized in that: The step S2 is specifically as follows: S201: When receiving a dynamic learning message, the intermediate node extracts the destination IPv6 address in the dynamic learning message, and the data of the path information segment number identification field SL and the path information field Segment List in the UDP data segment; S202: judging whether a diffusion marking condition is met according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value state indicated by the SL segment Segment List [SL] in the path information field Segment List; If the conditions are met, the END.X SID diffusion mark of the IGP protocol is performed according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message, and is filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued; if the conditions are not met, the execution is jumped to step S204; S203: adding 1 to the value of the path information segment number identification field SL in the UDP data segment of the dynamic learning message, and updating the path information segment number identification field SL; S204: Send the dynamic learning message to the next node of the SRv6 TE tunnel path.

5. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 4, characterized in that: The step S202 is specifically as follows: Determine the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value status indicated by the SL segment Segment List [SL] in the path information field SegmentList: If the SID type is an END.X SID forwarded by a designated egress, it is determined that the diffusion marking condition is met, and the value of the END.X SID corresponding to the neighbor of the designated interface of the END.X SID learned by the local IGP protocol of the intermediate node is used as a diffusion mark, and is filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued; If the SID type is END.B6.Encaps SID or END.B6.Encaps.Red SID, and the value of the SLth segment Segment List[SL] in the path information field Segment List is not the local SID address of the intermediate node, it is determined that the diffusion mark condition is met, and the value of the local END SID address of the intermediate node is used as the diffusion mark and filled into the SL+1th segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued; If the SID type is an END SID forwarded by the IPv6 routing table, and the value of the SL segment Segment List[SL] in the path information field Segment List is not the local SID address of the intermediate node, it is determined that the diffusion marking condition is met, and the value of the END SID is used as a diffusion mark and filled into the SL+1 segment Segment List[SL+1] of the path information field Segment List in the UDP data segment, and step S203 is continued; If it is another case, it is determined that the diffusion mark condition is not satisfied, and the process jumps to step S204.

6. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 1, characterized in that: In step S3, the specific manner in which the tail node determines the reverse path of the tunnel by reading the path learning information of the dynamic learning message is: When the tail node receives a dynamic learning message, it extracts the source address of the IPv6 header in the dynamic learning message and the data of the path information field Segment List in the UDP data segment, adds the source address of the IPv6 header to the last SID position of the extracted path information field Segment List data, and then performs reverse path assembly, that is, determines the reverse path of the tunnel.

7. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 6, characterized in that: In step S3, the specific manner in which the tail node sends a bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel is: When the tail node receives the dynamic learning message, it also extracts the BFD identifier of the source node in the dynamic learning message; after determining the reverse path of the tunnel, it allocates the BFD identifier of the tail node, creates a bidirectional forwarding detection BFD whose remote BFD identifier is the BFD identifier of the source node and the local BFD identifier is the BFD identifier of the tail node, encapsulates the bidirectional forwarding detection BFD message with the SRH header of the SRv6 TE tunnel and the standard IPv6 header, and sends it to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel.

8. The method for detecting SRV6 TE tunnel failure based on BFD according to claim 7, characterized in that: In step S4, the processing process of the source node is specifically as follows: After the source node receives the bidirectional forwarding detection BFD message, it updates the local bidirectional forwarding detection BFD configuration according to the BFD identifier recorded in the bidirectional forwarding detection BFD message, updates the remote BFD identifier to the tail node BFD identifier, and updates the local BFD identifier to the source node BFD identifier. The SRv6 TE tunnel path is used as the detection path, establishes a bidirectional forwarding detection channel from the source node to the tail node, sends a bidirectional forwarding detection BFD message, and performs bidirectional forwarding detection of SRv6 TE tunnel failures.

9. A system for detecting SRV6 TE tunnel failure based on BFD, characterized in that: include: The source node of the SRv6 TE tunnel is used to construct a dynamic learning message containing path learning information and send it to the egress node of the SRv6 TE tunnel through the SRv6 TE tunnel path. After receiving the bidirectional forwarding detection BFD message sent by the tail node, the local bidirectional forwarding detection BFD configuration is updated, and a bidirectional forwarding detection channel is established to detect SRv6 TE tunnel failures; wherein, the source node constructs a dynamic learning message using the SRv6 SID Tracert message encapsulation format, records the path learning information in the UDP data segment of the dynamic learning message, and while constructing the dynamic learning message, the source node records the ENDSID address of the local PSP of the source node in the path learning information; The intermediate node of the SRv6 TE tunnel is used to perform an END.X SID diffusion mark of the IGP protocol on the nodes through which the dynamic learning message passes through through route tracking when receiving the dynamic learning message, fill it into the path learning information of the dynamic learning message, and transmit it to the next node; and when receiving the bidirectional forwarding detection BFD message sent by the tail node, forward it according to the reverse path of the tunnel; wherein, according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message and the SID value state indicated by the SL segment Segment List [SL] in the path information field Segment List, it is judged whether the diffusion marking condition is met; if it is met, the END.X SID diffusion mark of the IGP protocol is performed according to the SID type of the node indicated by the destination IPv6 address in the dynamic learning message; The tail node of the SRv6 TE tunnel is used to read the path learning information of the dynamic learning message when receiving the dynamic learning message, determine the reverse path of the tunnel, establish a bidirectional forwarding detection BFD, and send the bidirectional forwarding detection BFD message to the source node of the SRv6 TE tunnel according to the reverse path of the tunnel.