Fault diagnosis method, system and storage medium

By detecting a fault in the SASE network, sending fault detection packets and analyzing the response data, the problem of difficulty in troubleshooting the SASE network is solved, rapid diagnosis and fault location are achieved, and the network usage experience is improved.

CN114760225BActive Publication Date: 2024-10-11SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210346337.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-10-11
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

It is difficult to effectively diagnose and troubleshoot SASE network faults with existing technology, making troubleshooting difficult. Traditional network diagnostic tools fail to detect SASE network connectivity and delay detection.

Method used

After the fault diagnosis node detects a network fault, it determines the path to be detected, sends a preset number of fault detection data packets, and receives response data from the path node to determine the fault information, thereby realizing rapid diagnosis of SASE network faults.

Benefits of technology

It improves the efficiency of SASE network fault diagnosis, quickly locates fault points, reduces the difficulty of troubleshooting, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114760225B_ABST
    Figure CN114760225B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a fault diagnosis method, which includes: if a network fault detection instruction is detected, determining a path to be detected; sending a preset number of fault detection data packets according to the path to be detected; receiving fault detection responses sent by m path nodes included in the path to be detected; wherein the fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1; based on the fault detection responses corresponding to the m path nodes, determining the fault information in the path to be detected; and displaying the fault information. The embodiment of the present application also discloses a fault diagnosis system and a storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a fault diagnosis method, system and storage medium. Background Art

[0002] With the rapid development of Internet technology, Internet applications have been widely used, and a large number of Internet data products have been generated. In order to ensure the secure access of applications, services, users and machines to cloud and network resources provided in the form of cloud services, a framework of software and hardware tools, namely Secure Access Service Edge (SASE), is currently proposed. The SASE core cloud network is the drainage access node (Points of Presence, POP), which is composed of multiple powerful existing servers (Commodity Off The Shelf Servers, COTS) running the same software stack. The network traffic of enterprises or individuals accesses the Internet through SASE POP, which implements security analysis and isolation of enterprise network traffic.

[0003] However, the current information transmission between the enterprise network and SASE POP is transmitted through tunnel encryption, which causes the failure of traditional network diagnostic tools to detect and cannot achieve the connectivity and latency detection of the SASE network, increasing the difficulty of SASE network troubleshooting. Summary of the invention

[0004] In view of this, the embodiments of the present application hope to provide a fault diagnosis method, apparatus, device and storage medium to solve the current problem of difficulty in troubleshooting SASE network faults, propose a method for SASE network fault diagnosis, and improve the efficiency of diagnosing network fault points.

[0005] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0006] In a first aspect, a fault diagnosis method is provided, the method being applied to a fault diagnosis node in an edge service network, the method comprising:

[0007] If a network fault detection instruction is detected, a path to be detected is determined;

[0008] Sending a preset number of fault detection data packets according to the path to be detected;

[0009] Receiving fault detection responses sent by m path nodes included in the path to be detected; wherein the fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1;

[0010] Based on the fault detection responses corresponding to the m path nodes, fault information in the path to be detected is determined.

[0011] Optionally, if a network fault detection instruction is detected, determining a path to be detected includes:

[0012] If a network fault detection instruction is detected, a target detection node is determined;

[0013] Send a path detection request to the target detection node;

[0014] Receive at least one path response data packet in response to the path detection request; wherein each of the path response data packets is response data generated by a path node between the fault diagnosis node and the target detection node in response to the path detection request after receiving the path detection request;

[0015] The path to be detected is determined based on at least one of the path response data packets.

[0016] Optionally, determining the path to be detected based on at least one of the path response data packets includes:

[0017] Determine, from at least one of the path response packets, a path response packet sent by the target detection node to obtain a target response packet;

[0018] The target response data packet is parsed and analyzed to obtain the path to be detected; wherein the target response data packet includes attribute information of the path nodes between the fault diagnosis node and the target detection node receiving the path detection request.

[0019] Optionally, after determining the path response data packet sent by the target detection node from at least one of the path response data packets and obtaining the target response data packet, the method further includes:

[0020] The target response data packet is parsed and analyzed to determine target delay data of each path node included in the path to be detected.

[0021] Optionally, sending a preset number of fault detection data packets according to the path to be detected includes:

[0022] According to the order of the path nodes in the path to be detected, the preset number of fault detection data packets are sent to each path node in the path to be detected in sequence.

[0023] Optionally, the determining the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes includes:

[0024] Performing statistical analysis on the fault detection response corresponding to each of the m path nodes to determine the number of fault detection data packets received by each path node; wherein the number of received data packets is less than or equal to the preset number;

[0025] Determine a first packet loss rate of the first path node based on the received number and the preset number of the first path node adjacent to the fault diagnosis node in the path to be detected;

[0026] If the first packet loss rate is greater than or equal to a preset packet loss rate, it is determined that the fault information indicates that a packet loss fault exists between the fault diagnosis node and the first path node.

[0027] Optionally, the method further includes:

[0028] If the first packet loss rate is less than the preset packet loss rate, and the first path node is not the target detection node, determining the received number and the preset number of second path nodes adjacent to the first path node in the path to be detected, and determining a second packet loss rate of the second path node;

[0029] If the second packet loss rate is greater than or equal to the preset packet loss rate, determining that the fault information is a packet loss fault between the first path node and the second path node;

[0030] If the second packet loss rate is less than the preset packet loss rate, and the second path node is not the target detection node, determine the received number and the preset number of the third path node adjacent to the first path node in the path to be detected, determine the third packet loss rate of the third path node, and repeat this process until it is determined that the fourth packet loss rate is greater than or equal to the preset packet loss rate, determine that the fault information is that there is a packet loss fault between the fourth path node corresponding to the fourth packet loss rate and the previous path node adjacent to the fourth path node, or until it is analyzed that the fifth packet loss rate of the target detection node in the path to be detected is less than the preset packet loss rate, and then end the fault detection operation.

[0031] Optionally, the path nodes included in the path to be detected include at least one of the following nodes: an access interface of an edge service network access node, a network exit of an edge service network access node, and a target access node having a target Internet Protocol IP address.

[0032] In a second aspect, a fault diagnosis system is provided, the system comprising: a fault diagnosis node, an edge service network access node, and a target access node having an IP address; wherein:

[0033] The edge service network access node comprises an access interface of the edge service network access node and a network exit of the edge service network access node; wherein the access interface of the edge service network access node is used to receive a service request sent by a fault diagnosis node, and the network exit of the edge service network access node is used to forward the service request sent by the fault diagnosis node to a corresponding target access node with an IP address;

[0034] The target access node with an IP address is used to provide the fault diagnosis node with a business service corresponding to the business request;

[0035] The fault diagnosis node is used to determine the path to be detected if a network fault detection instruction is detected; send a preset number of fault detection data packets according to the path to be detected; receive fault detection responses sent by m path nodes included in the path to be detected; wherein the fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1; determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes; and display the fault information.

[0036] In a third aspect, a storage medium is provided, wherein a fault diagnosis program is stored on the storage medium, and when the fault diagnosis program is executed by a processor, the steps of the fault diagnosis method as described in any one of the above items are implemented.

[0037] The fault diagnosis method, system and storage medium provided by the embodiments of the present application, if a network fault detection instruction is detected, after the fault diagnosis node determines the path to be detected, it sends a preset number of fault detection data packets according to the path to be detected, and receives the fault detection responses sent by the m path nodes included in the path to be detected, so as to determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes, and display the fault information. In this way, after the fault diagnosis node detects the fault detection instruction, it determines the path to be detected, and sends the corresponding fault detection data packet based on the path to be detected, so as to realize the fault detection of the path to be detected, solve the problem that the current SASE network troubleshooting is difficult, and propose a method for SASE network fault diagnosis, which improves the diagnostic efficiency of diagnosing network fault points. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A flowchart of a fault diagnosis method provided in an embodiment of the present application;

[0039] Figure 2 A flowchart of another fault diagnosis method provided in an embodiment of the present application;

[0040] Figure 3An application scenario of a fault diagnosis method provided in an embodiment of the present application;

[0041] Figure 4 A schematic diagram of data transmission in a fault diagnosis method provided in an embodiment of the present application;

[0042] Figure 5 A schematic diagram of an implementation flow of determining a path to be detected provided in an embodiment of the present application;

[0043] Figure 6 A schematic diagram of a packet loss detection process for implementing the present application embodiment

[0044] Figure 7 A schematic diagram of the structure of a fault detection system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The embodiment of the present application provides a fault diagnosis method, which is applied to a fault diagnosis node in an edge service network. Figure 1 As shown, the method comprises the following steps:

[0047] Step 101: If a network fault detection instruction is detected, a path to be detected is determined.

[0048] In an embodiment of the present application, the fault diagnosis node can run in an edge service network, for example, it can be a client device in a SASE cloud network. In some application scenarios, it can also run in a server device in a SASE cloud network, or in a device with computing functions for information transmission in a SASE cloud network. The fault diagnosis node can be specifically implemented through a fault application program. The network fault detection instruction can be obtained by a user or administrator controlling the fault diagnosis node according to the actual application scenario. The network fault detection instruction is used to instruct the corresponding path to be detected to perform fault detection. The path to be detected can be a certain information transmission path in the SASE cloud network specified by the user or administrator, such as an information transmission path from a certain client device to a certain server device, or it can be an information transmission path to the information transmission end point determined by the fault diagnosis node after determining the information transmission end point node through information sending.

[0049] Step 102: Send a preset number of fault detection data packets according to the path to be detected.

[0050] In the embodiment of the present application, the preset number is an empirical value of the number of data packets obtained based on a large number of experiments, and the larger the number, the better. The fault detection data packet is a specific data packet used to implement packet loss detection. After the fault diagnosis node determines the path to be detected, it sends a preset number of fault detection data packets according to the path to be detected to monitor the fault conditions of other path nodes in the path to be detected except the fault diagnosis node, such as packet loss.

[0051] Step 103: Receive fault detection responses sent by m path nodes included in the path to be detected.

[0052] The fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1.

[0053] In the embodiment of the present application, m is the number of data forwarding nodes included in the path to be detected except the fault diagnosis node, and the path to be detected includes at least one path node. After receiving the fault detection data packet, each path node will parse and analyze the fault detection data packet, and analyze it according to the actual situation of the fault detection data packet, such as the survival time (Time To Live, TTL) to determine whether to forward the fault detection data packet, stop forwarding, or respond to it. According to stopping forwarding or responding, each path node can generate a fault detection response corresponding to the fault detection data packet, so that the fault detection responses sent by m path nodes can be obtained.

[0054] Step 104: Determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes.

[0055] In the embodiment of the present application, the fault detection responses corresponding to the m path nodes are analyzed to determine the packet loss rate of each path node. Thus, the fault information in the path to be detected can be determined based on the packet loss rate of each path node. Furthermore, the fault information is displayed to locate the fault, which is beneficial for users to quickly troubleshoot the fault based on the displayed fault information, thereby improving the user experience of the SASE cloud network.

[0056] In the fault diagnosis method provided by the embodiment of the present application, if a network fault detection instruction is detected, after the fault diagnosis node determines the path to be detected, it sends a preset number of fault detection data packets according to the path to be detected, and receives the fault detection responses sent by the m path nodes included in the path to be detected, so as to determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes. In this way, after the fault diagnosis node detects the fault detection instruction, it determines the path to be detected, and sends the corresponding fault detection data packet based on the path to be detected, so as to realize the fault detection of the path to be detected, solve the problem that the current SASE network troubleshooting is difficult, and propose a method for SASE network fault diagnosis, which improves the diagnostic efficiency of diagnosing network fault points.

[0057] Based on the foregoing embodiments, the embodiments of the present application provide a fault diagnosis method, which is applied to a fault diagnosis node in an edge service network, referring to Figure 2 As shown, the method comprises the following steps:

[0058] Step 201: If a network fault detection instruction is detected, a target detection node is determined.

[0059] In an embodiment of the present application, the fault diagnosis node is a fault diagnosis application running in a client device, and the target detection node is a target access server. The target detection node can be obtained by the user performing diagnostic configuration settings in the fault diagnosis application. The target detection node can be the IP address corresponding to the target access server, or it can be other identification information of the target access server, such as service identification information.

[0060] Step 202: Send a path detection request to a target detection node.

[0061] In an embodiment of the present application, the path detection request can be an Internet Control Message Protocol (ICMP) response request message request data packet, which is used to determine the path to be detected between the fault diagnosis node and the target detection node. The path detection request can be generated by the fault diagnosis node for the configuration parameters corresponding to the target detection node.

[0062] Step 203: Receive at least one path response data packet in response to the path detection request.

[0063] Each path response data packet is response data generated by a path node between the fault diagnosis node and the target detection node in response to the path detection request after receiving the path detection request.

[0064] In an embodiment of the present application, a path response data packet is response data generated by the last path node that receives a path detection request after the path node between the fault diagnosis node and the target detection node receives the path detection request. The last path node that receives the path detection request includes a path node that cannot forward the path detection request to the next path node after receiving the path detection request, for example, it may be a path node when the TTL of the parsed received path detection request is 0, and correspondingly, the path response data packet may be an ICMP TTL timeout message; the last path node that receives the path detection request also includes the target detection node that finally receives the path detection request, and correspondingly, the path response data packet may be an ICMP reply response data packet.

[0065] Step 204: Determine a path to be detected based on at least one path response data packet.

[0066] In an embodiment of the present application, the fault diagnosis application parses and processes at least one path response data packet to determine a path to be detected between the fault diagnosis node and the target detection node.

[0067] Step 205: Send a preset number of fault detection data packets according to the path to be detected.

[0068] In an embodiment of the present application, the fault diagnosis application only sends a set of preset number of fault detection data packets to the target detection node according to the path to be detected, or can also send a set of preset number of fault detection data packets to each path node in the path to be detected except the fault diagnosis node, including the target detection node target access server according to the path to be detected. The fault detection data packet can be a packet loss detection data packet generated by the path to be detected according to the configuration parameters of the target detection node.

[0069] Step 206: Receive fault detection responses sent by m path nodes included in the path to be detected.

[0070] The fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1.

[0071] In an embodiment of the present application, the m path nodes included in the path to be detected will return the corresponding fault detection response to the fault diagnosis application along the original path based on the actual receipt of the fault detection data packet, so that the fault diagnosis node can determine the fault location based on the received fault detection response analysis.

[0072] The path nodes included in the path to be detected include at least one of the following nodes: an access interface of an edge service network access node, a network exit of an edge service network access node, and a target access node with a target Internet Protocol IP address.

[0073] In an embodiment of the present application, the target access node with a target Internet Protocol (IP) address may be a node corresponding to a server device that provides network services. The access interface of the edge service network access node may be, for example, an access interface of a SASE POP node, which is used to receive service request data sent by a user terminal, and the network exit of the edge service network access node may be, for example, a network exit of a SASE POP node, which is used to send the received read service request data to the Internet. In some application scenarios, the path nodes included in the path to be detected may also include device nodes such as gateways, firewalls, and routers.

[0074] Corresponding, refer to Figure 3 The figure shows an application scenario of a fault diagnosis method, including enterprise network A, SASE POP node B and Internet terminal C; wherein the fault diagnosis node can be set in A, B or C according to actual needs.

[0075] Step 207: Determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes.

[0076] In an embodiment of the present application, the fault diagnosis application parses and analyzes the fault detection responses corresponding to the m path nodes to determine the fault information in the path to be detected.

[0077] Step 208: Display fault information.

[0078] Based on the above embodiments, in other embodiments of the present application, step 204 can be implemented by steps 204a to 204b:

[0079] Step 204a: Determine the path response data packet sent by the target detection node from at least one path response data packet, and obtain a target response data packet.

[0080] In the embodiment of the present application, since the path response data packet sent by the target detection node completely includes the path information of the path detection request actually transmitted between the fault diagnosis node and the target detection node, it is necessary to determine the path data packet sent by the target detection node from at least one path response data packet to obtain the target response data packet. It should be noted that in some application scenarios, the fault diagnosis node can continue to send the path detection request until it receives the target response data packet fed back by the target detection node, and then it can stop sending the path detection request.

[0081] Step 204b: parse and analyze the target response data packet to obtain the path to be detected.

[0082] The target response data packet includes attribute information of the path nodes between the fault diagnosis node and the target detection node receiving the path detection request.

[0083] In an embodiment of the present application, the attribute information may be the receiving time attribute when the path node between the fault diagnosis node and the target detection node receives the path detection request and the identification information of the corresponding receiving path node. The fault diagnosis node parses and analyzes the target response data packet, from which the identification information of each path node when the path detection request is received can be determined, and the path to be detected can be obtained by sorting them in order from far to near according to the time attribute of receiving the path detection request. In some application scenarios, after obtaining the path to be detected, the path to be detected can also be displayed.

[0084] Based on the above embodiment, in other embodiments of the present application, after the fault diagnosis node executes step 204a, it is further configured to execute steps 204b to 204c:

[0085] Step 204b: parse and analyze the target response data packet to determine the target delay data of each path node included in the path to be detected.

[0086] In an embodiment of the present application, the fault diagnosis node parses and analyzes the target response data packet, from which the actual reception time when each path node included in the path to be detected receives the path detection request can be determined. Since the path detection request is sent by the fault diagnosis node, the fault diagnosis node can determine the sending time of the path detection request received by the target detection node, and calculate the theoretical receiving time when each path node in the path to be detected receives the path detection request based on the sending time and each path node in the path to be detected. In this way, the target delay data of each path node in the path to be detected can be determined based on the theoretical receiving time of each path node and the actual receiving time of each path node.

[0087] Step 204c: Display the target delay data of each path node included in the path to be detected.

[0088] In an embodiment of the present application, the calculated target delay data of each path node included in the path to be detected is displayed so that the user or technician can perform corresponding delay debugging according to the displayed delay data to solve the problem of large delay.

[0089] Based on the foregoing embodiments, in other embodiments of the present application, step 205 may be implemented by the following steps: sending a preset number of fault detection data packets to each path node in the path to be detected in sequence according to the order of the path nodes in the path to be detected.

[0090] In the embodiment of the present application, it is assumed that the path to be detected is: fault diagnosis node → access interface of SASE POP node → network interface of SASE POP node → target detection node. Therefore, the fault diagnosis node first sends a preset number of fault detection data packets to the access interface of SASE POP node, and then the fault diagnosis node sends a preset number of fault detection data packets to the network interface of SASE POP node, and finally the fault diagnosis node sends a preset number of fault diagnosis data packets to the target detection node. It should be noted that the preset number of fault diagnosis data packets sent by the fault diagnosis node to each path node in the path to be detected can be the same or different, which is determined by the actual application scenario.

[0091] Furthermore, when the fault diagnosis node sends fault diagnosis data packets to each path node in the path to be detected in turn, it can be that after sending a preset number of fault detection data packets to a certain path node, it continues to send the preset number of fault detection data packets to the next path node adjacent to the path node only when it is determined that the path node has no fault according to the fault detection response corresponding to the path node; otherwise, if it is determined that the path node has a fault, it stops sending the preset number of fault detection data packets, thereby ensuring the quality of fault detection and reducing resource consumption.

[0092] Based on the above embodiments, in other embodiments of the present application, step 207 can be implemented by steps 207a to 207c:

[0093] Step 207a: Perform statistical analysis on the fault detection response corresponding to each path node among the fault detection responses corresponding to the m path nodes to determine the number of fault detection data packets received by each path node.

[0094] The received quantity is less than or equal to the preset quantity.

[0095] In an embodiment of the present application, after the fault diagnosis node sends a preset number of fault detection data packets to each path node, it counts the fault detection responses fed back by each path node regarding the number of fault monitoring data packets received, and determines the number of fault detection data packets actually received by each path node.

[0096] Step 207b: Determine a first packet loss rate of the first path node based on the number of received packets and a preset number of first path nodes adjacent to the fault diagnosis node in the path to be detected.

[0097] In the embodiment of the present application, the packet loss rate of each path node is determined in sequence according to the order of the path nodes to be detected. That is, the ratio of the number of received packets of the first path node adjacent to the fault diagnosis node to the preset number corresponding to the first path node is first determined to obtain the packet loss rate of the first path node.

[0098] Step 207c: If the first packet loss rate is greater than or equal to the preset packet loss rate, determine that the fault information is a packet loss fault between the fault diagnosis node and the first path node.

[0099] In the embodiment of the present application, the preset packet loss rate is an empirical value of packet loss obtained based on a large number of experiments. The greater the packet loss rate, the greater the impact on the user experience. Further, when displaying the fault information, the first packet loss rate can also be displayed.

[0100] Based on the above embodiment, in other embodiments of the present application, after the fault diagnosis node executes step 207b, it may also choose to execute steps 207d to 207e, or step 207d and step 207f:

[0101] Step 207d: If the first packet loss rate is less than the preset packet loss rate and the first path node is not the target detection node, determine the received number and the preset number of second path nodes adjacent to the first path node in the path to be detected, and determine the second packet loss rate of the second path node.

[0102] In the embodiment of the present application, if the first packet loss rate is less than the preset packet loss rate, it indicates that there is no fault between the fault diagnosis node and the first path node. Therefore, the ratio between the number of received second path nodes adjacent to the first path node in the path to be detected and the preset number corresponding to the second path node is determined to obtain the second packet loss rate of the second path node. It should be noted that if the path to be detected only includes the fault diagnosis node and the first path node, after determining the first packet loss rate of the first path node, if the first packet loss rate is greater than or equal to the preset packet loss rate, it is determined that the fault information is the fault diagnosis node and the first path node and / or the first packet loss rate, and if the first packet loss rate is less than the preset packet loss rate, the fault detection process ends.

[0103] Step 207e: If the second packet loss rate is greater than or equal to the preset packet loss rate, determine that the fault information is a packet loss fault between the first path node and the second path node.

[0104] Step 207f, if the second packet loss rate is less than the preset packet loss rate, and the second path node is not the target detection node, determine the number of receptions and the preset number of the third path node adjacent to the first path node in the path to be detected, determine the third packet loss rate of the third path node, and repeat this process until it is determined that the fourth packet loss rate is greater than or equal to the preset packet loss rate, determine that the fault information is that there is a packet loss fault between the fourth path node corresponding to the fourth packet loss rate and the previous path node adjacent to the fourth path node, or until it is analyzed that the fifth packet loss rate of the target detection node in the path to be detected is less than the preset packet loss rate, and the fault detection operation is terminated.

[0105] In the embodiment of the present application, when the second packet loss rate is less than the preset packet loss rate and the second path node is the target detection node, the fault detection operation is terminated. When the second packet loss rate is less than the preset packet loss rate and the second path node is not the target detection node, the third packet loss rate of the third path node adjacent to the second path node in the path to be detected is continuously analyzed. If the third packet loss rate is greater than or equal to the preset packet loss rate, it can be determined that the fourth path node is the third path node, and the corresponding fault information is that there is a packet loss fault between the second path node and the third path node. If the third packet loss rate is less than the preset packet loss rate and the third path node is the target detection node, the fault diagnosis operation is terminated. In this way, each path node in the path to be detected is analyzed to achieve fault detection.

[0106] Based on the above embodiments, the present application provides a Figure 3 The corresponding data transmission diagram is as follows: Figure 4 As shown, it includes a user side, a SASE POP node side and a target side. The user side includes a client device running a fault detection node, the SASE POP node side includes an access interface TUN-IN of the SASE POP node and a network interface NAT-OUT of the SASE POP node, and the target side is through a server side that provides services for the user side; wherein, the service request sent by the user side is forwarded to the target side via the SASE POP node side, and after receiving the service request, the target side provides the user side with corresponding service data that is forwarded to the user side via the SASE POP node side.

[0107] Correspondingly, based on Figure 4 The data transmission diagram shown in FIG. 1 provides a method for determining a path to be detected. Figure 5 As shown:

[0108] Step 301: A technical support person or user triggers a diagnostic button of a fault diagnosis application installed in a client device, obtains a network fault detection instruction, and the client device sends a path detection request to an access interface of a SASE POP node.

[0109] Among them, the path detection request is obtained by the diverter performing data packet tunnel adaptation on the diagnostic data packet after the fault diagnosis application in the client device sends out the diagnostic data packet. The diagnostic data packet can be a normal ICMP echo request (Echo request) data packet with an incremented TTL sent by the fault diagnosis application in the client device. After the ICMP Echo request data packet reaches the diverter or diversion application, the diverter or diversion application performs tunnel protocol encapsulation on the ICMP Echo request data packet and copies the TTL field of the IP protocol header of the ICMP Echo request packet to the TTL field in the tunnel protocol IP header.

[0110] When the client device sends a path detection request to the access interface of the SASE POP node, all routing devices in the general network will consume the TTL in the path detection request. If the TTL in the path detection request is consumed, the access interface of the SASEPOP node will reply with a TTL error report message (exceeded ICMP) to the fault diagnosis application in the client device.

[0111] The path detection request may be a detection data packet including information of a target detection node.

[0112] Step 302: After receiving the path detection request, the SASE POP access interface decapsulates the tunnel data packet, synchronizes the tunnel IP protocol header TTL to the passenger IP protocol header TTL, consumes the passenger protocol TTL, that is, TTL-1. If the consumption is completed, that is, TTL=0, execute step 303, otherwise execute 304.

[0113] Step 303: The SASE POP access interface replies with a TTL exceeded ICMP message to the client device.

[0114] Step 304: The SASE POP access interface normally forwards the path detection request to the network egress of the SASE POP node.

[0115] Among them, the implementation process of steps 302 to 304 can be implemented by setting an entry sentinel at the access interface of the SASE POP node. That is, after the entry sentinel set at the access interface of the SASE POP node receives the path detection request, it adapts the path detection request. If the target detection node is the access interface of the SASE POP node, it directly replies with a path response data packet, otherwise it forwards the path detection request to the network exit of the SASE POP node.

[0116] Step 305: After receiving the path detection request, the network exit of the SASE POP node decapsulates the tunnel data packet, synchronizes the tunnel IP protocol header TTL to the passenger IP protocol header TTL, consumes the passenger protocol TTL, that is, TTL-1. If the consumption is completed, that is, TTL=0, execute step 306, otherwise execute 307.

[0117] Step 306: The network egress of the SASE POP node replies with a TTL exceeded ICMP message to the client device.

[0118] Step 307: The network egress of the SASE POP node forwards the path detection request to the target end normally.

[0119] Among them, the implementation process of steps 305 to 307 can be achieved by setting an exit sentinel at the network exit of the SASE POP node. That is, after receiving the path detection request, the exit sentinel set at the network exit of the SASE POP node adapts the path detection request. If the target detection node is the network exit of the SASE POP node, the path response data packet is directly replied, otherwise the path detection request is forwarded to the target end. The target end is the aforementioned target detection node.

[0120] Step 308: After receiving the path detection request, the target end generates a path response data packet.

[0121] Step 309: The target end sends a path response data packet to the client device.

[0122] Among them, after the client device receives the path response data packet sent by the target end, it parses and analyzes the path corresponding data packet, and can determine that the path to be detected is: client device→access interface of SASE POP node→network exit of SASE POP node→target end. Furthermore, it is also possible to determine the corresponding delay data when the access interface of SASE POP node, the network exit of SASE POP node and the target end respectively receive the path detection request, and perform corresponding display processing on the determined path to be detected and the corresponding delay data.

[0123] based on Figure 5 The detection method of the path to be detected shown in the figure assumes that the path to be detected is: client device → path target → access interface of SASE POP node → network exit of SASE POP node → target end. The corresponding packet loss detection process can refer to Figure 6 As shown in the figure, the path target is a router connected to the client device. Figure 6 The packet loss detection process shown includes the following steps:

[0124] Step 401: The client device first sends n1 fault detection data packets to the path target according to the path to be detected.

[0125] Step 402: The path target responds to the received m1 fault detection data packets, generates a fault detection response, and sends the m1 fault detection responses to the client device.

[0126] Step 403: The client device determines the packet loss rate of the path target based on m1 and n1. If the packet loss rate of the path target is greater than or equal to the preset packet loss rate, execute step 404; if the packet loss rate of the path target is less than the preset packet loss rate, execute step 405.

[0127] Step 404: The client device displays fault information including a packet loss fault between the client device and the path target and a packet loss rate of the path target.

[0128] Step 405: The client device sends n2 fault detection data packets to the access interface of the SASE POP node.

[0129] Step 406: The access interface of the SASE POP node responds to the received m2 fault detection data packets, generates a fault detection response, and sends m2 fault detection responses to the client device.

[0130] Step 407: The client device determines the packet loss rate of the access interface of the SASE POP node based on m2 and n2. If the packet loss rate of the access interface of the SASE POP node is greater than or equal to the preset packet loss rate, execute step 408; if the packet loss rate of the access interface of the SASE POP node is less than the preset packet loss rate, execute step 409.

[0131] Step 408: The client device displays fault information including a packet loss fault between the path target and the access interface of the SASE POP node and a packet loss rate of the access interface of the SASE POP node.

[0132] Step 409: The client device sends n3 fault detection data packets to the network egress of the SASE POP node.

[0133] Step 410: The network egress of the SASE POP node responds to the received m3 fault detection data packets, generates a fault detection response, and sends m3 fault detection responses to the client device.

[0134] Step 411: The client device determines the packet loss rate of the network exit of the SASE POP node based on m3 and n3. If the packet loss rate of the network exit of the SASE POP node is greater than or equal to the preset packet loss rate, execute step 412; if the packet loss rate of the network exit of the SASE POP node is less than the preset packet loss rate, execute step 413.

[0135] Step 412: The client device displays fault information including a packet loss fault between the access interface of the SASE POP node and the network exit of the SASE POP node and a packet loss rate of the network exit of the SASE POP node.

[0136] Step 413: The client device sends n4 fault detection data packets to the target end.

[0137] Step 414: The target end responds to the received m4 fault detection data packets, generates a fault detection response, and sends m4 fault detection responses to the client device.

[0138] Step 415: The client device determines the packet loss rate of the target end based on m4 and n4. If the packet loss rate of the target end is greater than or equal to the preset packet loss rate, execute step 416; if the packet loss rate of the target end is less than the preset packet loss rate, stop fault detection.

[0139] Step 416: The client device displays fault information including packet loss between the network exit of the SASE POP node and the target end and the packet loss rate of the target end.

[0140] It should be noted that the explanations of the same steps or concepts in this embodiment as those in other embodiments can refer to the descriptions in other embodiments and will not be repeated here.

[0141] In the fault diagnosis method provided by the embodiment of the present application, if a network fault detection instruction is detected, after the fault diagnosis node determines the path to be detected, it sends a preset number of fault detection data packets according to the path to be detected, and receives the fault detection responses sent by the m path nodes included in the path to be detected, so as to determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes, and display the fault information. In this way, after the fault diagnosis node detects the fault detection instruction, it determines the path to be detected, and sends the corresponding fault detection data packet based on the path to be detected, so as to realize the fault detection of the path to be detected, solve the problem that the current SASE network troubleshooting is difficult, and propose a method for SASE network fault diagnosis, which improves the diagnostic efficiency of diagnosing network fault points.

[0142] Based on the above embodiments, the present application provides a fault diagnosis system 5, which can be applied to Figures 1-2 In the corresponding embodiment, refer to Figure 7 As shown, the fault diagnosis system 4 includes: a fault diagnosis node 51, an edge service network access node 52, and a target access node 53 with an IP address; wherein:

[0143] The edge service network access node 52 includes an access interface of the edge service network access node and a network exit of the edge service network access node; wherein the access interface of the edge service network access node is used to receive a service request sent by the fault diagnosis node, and the network exit of the edge service network access node is used to forward the service request sent by the fault diagnosis node to a corresponding target access node with an IP address;

[0144] A target access node 53 having an IP address, used to provide a business service corresponding to the business request for the fault diagnosis node;

[0145] The fault diagnosis node 51 is used to determine the path to be detected if a network fault detection instruction is detected; send a preset number of fault detection data packets according to the path to be detected; receive fault detection responses sent by m path nodes included in the path to be detected; wherein the fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1; based on the fault detection responses corresponding to the m path nodes, determine the fault information in the path to be detected.

[0146] Based on the foregoing embodiment, in other embodiments of the present application, if the fault diagnosis node executes the step of detecting a network fault detection instruction and determining a path to be detected, the following steps can be performed:

[0147] If a network fault detection instruction is detected, a target detection node is determined;

[0148] Send a path detection request to the target detection node;

[0149] Receive at least one path response data packet in response to the path detection request; wherein each path response data packet is response data generated by a path node between the fault diagnosis node and the target detection node in response to the path detection request after receiving the path detection request;

[0150] A path to be detected is determined based on at least one path response data packet.

[0151] Based on the foregoing embodiment, in other embodiments of the present application, when the fault diagnosis node performs the step of determining the path to be detected based on at least one path response data packet, it can be implemented by the following steps:

[0152] Determine, from at least one path response data packet, a path response data packet sent by a target detection node, and obtain a target response data packet;

[0153] The target response data packet is parsed and analyzed to obtain the path to be detected; wherein the target response data packet includes attribute information of the path nodes between the fault diagnosis node and the target detection node receiving the path detection request.

[0154] Based on the foregoing embodiment, in other embodiments of the present application, the fault diagnosis node executes the step of determining the path response data packet sent by the target detection node from at least one path response data packet, and after obtaining the target response data packet, is further used to execute the following steps:

[0155] The target response data packet is parsed and analyzed to determine the target delay data of each path node included in the path to be detected.

[0156] Based on the foregoing embodiment, in other embodiments of the present application, when the fault diagnosis node executes the step of sending a preset number of fault detection data packets according to the path to be detected, it can be implemented by the following steps:

[0157] According to the order of the path nodes in the path to be detected, a preset number of fault detection data packets are sent to each path node in the path to be detected in turn.

[0158] Based on the foregoing embodiment, in other embodiments of the present application, when the fault diagnosis node performs the step of determining the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes, it can be implemented by the following steps:

[0159] Performing statistical analysis on the fault detection response corresponding to each path node among the fault detection responses corresponding to the m path nodes, and determining the number of fault detection data packets received by each path node; wherein the number of received data packets is less than or equal to a preset number;

[0160] Determine a first packet loss rate of the first path node based on the number of received packets and a preset number of first path nodes adjacent to the fault diagnosis node in the path to be detected;

[0161] If the first packet loss rate is greater than or equal to the preset packet loss rate, it is determined that the fault information is a packet loss fault between the fault diagnosis node and the first path node.

[0162] Based on the foregoing embodiment, in other embodiments of the present application, the fault diagnosis node is further configured to perform the following steps:

[0163] If the first packet loss rate is less than the preset packet loss rate, determining the number of received and the preset number of second path nodes adjacent to the first path node in the path to be detected, and determining a second packet loss rate of the second path node;

[0164] If the second packet loss rate is greater than or equal to the preset packet loss rate, determining the fault information is that there is a packet loss fault between the first path node and the second path node;

[0165] If the second packet loss rate is less than the preset packet loss rate, determine the number of receptions and the preset number of the third path node adjacent to the first path node in the path to be detected, determine the third packet loss rate of the third path node, and repeat this process until it is determined that the fourth packet loss rate is greater than or equal to the preset packet loss rate, determine that the fault information is that there is a packet loss fault between the fourth path node corresponding to the fourth packet loss rate and the previous path node adjacent to the fourth path node, or until it is analyzed that the fifth packet loss rate of the target detection node in the path to be detected is less than the preset packet loss rate, and the fault detection operation is terminated.

[0166] Based on the foregoing embodiments, in other embodiments of the present application, the path nodes included in the path to be detected include at least one of the following nodes: an access interface of an edge service network access node, a network exit of an edge service network access node, and a target access node with a target Internet Protocol IP address.

[0167] It should be noted that the information interaction process between nodes in this embodiment can refer to the information interaction process described in the aforementioned method embodiment, and will not be repeated here.

[0168] In the fault diagnosis system provided by the embodiment of the present application, if a network fault detection instruction is detected, after the fault diagnosis node determines the path to be detected, it sends a preset number of fault detection data packets according to the path to be detected, and receives the fault detection responses sent by the m path nodes included in the path to be detected, so as to determine the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes, and display the fault information. In this way, after the fault diagnosis node detects the fault detection instruction, it determines the path to be detected, and sends the corresponding fault detection data packet based on the path to be detected, so as to realize the fault detection of the path to be detected, solve the problem that the current SASE network troubleshooting is difficult, propose a method for SASE network fault diagnosis, and improve the diagnostic efficiency of diagnosing network fault points.

[0169] Based on the foregoing embodiments, the embodiments of the present application provide a computer-readable storage medium, referred to as a storage medium, which stores one or more fault diagnosis programs, and the one or more fault diagnosis programs can be executed by one or more processors to implement the following. Figures 1-2 The fault diagnosis method provided by the corresponding embodiment will not be described in detail here.

[0170] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0171] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, ..., an air conditioner, or a network communication link device, etc.) to execute the methods described in each embodiment of the present application.

[0173] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0174] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0176] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A fault diagnosis method, It is characterized in that The method is applied to a fault diagnosis node in an edge service network, and the method comprises: If a network fault detection instruction is detected, a path to be detected is determined; the path to be detected is determined based on at least one path response data packet, wherein the at least one path response data packet is a response to a path detection request, and each of the path response data packets is response data generated by a path node between a fault diagnosis node and a target detection node in response to the path detection request after receiving the path detection request; the path detection request is used to be sent to a target detection node, and the target detection node is determined after the network fault detection instruction is detected; Sending a preset number of fault detection data packets according to the path to be detected; Receiving fault detection responses sent by m path nodes included in the path to be detected; wherein the fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1; Determining fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes; Wherein, determining the path to be detected based on at least one path response data packet includes: Determine, from at least one of the path response packets, a path response packet sent by the target detection node to obtain a target response packet; The target response data packet is parsed and analyzed to determine the identification information of each path node when the path detection request is received, and the path to be detected is sorted in order from far to near according to the time attribute of receiving the path detection request, so as to obtain the path to be detected; wherein the target response data packet includes the attribute information of the path nodes between the fault diagnosis node and the target detection node receiving the path detection request, and the attribute information includes: the receiving time attribute of the path nodes between the fault diagnosis node and the target detection node when receiving the path detection request and the identification information of the corresponding receiving path nodes; After determining the path response data packet sent by the target detection node from at least one of the path response data packets and obtaining the target response data packet, the method further includes: The target response data packet is parsed and analyzed to determine target delay data of each path node included in the path to be detected; the target delay data is used for delay debugging.

2. The method according to claim 1, It is characterized in that The sending of a preset number of fault detection data packets according to the path to be detected includes: According to the order of the path nodes in the path to be detected, the preset number of fault detection data packets are sent to each path node in the path to be detected in sequence.

3. The method according to claim 1, It is characterized in that The determining the fault information in the path to be detected based on the fault detection responses corresponding to the m path nodes includes: Performing statistical analysis on the fault detection response corresponding to each of the m path nodes to determine the number of fault detection data packets received by each path node; wherein the number of received data packets is less than or equal to the preset number; Determine a first packet loss rate of the first path node based on the received number and the preset number of the first path node adjacent to the fault diagnosis node in the path to be detected; If the first packet loss rate is greater than or equal to a preset packet loss rate, it is determined that the fault information indicates that a packet loss fault exists between the fault diagnosis node and the first path node.

4. The method according to claim 3, It is characterized in that The method further comprises: If the first packet loss rate is less than the preset packet loss rate, and the first path node is not the target detection node, determining the received number and the preset number of second path nodes adjacent to the first path node in the path to be detected, and determining a second packet loss rate of the second path node; If the second packet loss rate is greater than or equal to the preset packet loss rate, determining that the fault information is a packet loss fault between the first path node and the second path node; If the second packet loss rate is less than the preset packet loss rate, and the second path node is not the target detection node, determine the received number and the preset number of the third path node adjacent to the first path node in the path to be detected, determine the third packet loss rate of the third path node, and repeat this process until it is determined that the fourth packet loss rate is greater than or equal to the preset packet loss rate, determine that the fault information is that there is a packet loss fault between the fourth path node corresponding to the fourth packet loss rate and the previous path node adjacent to the fourth path node, or until it is analyzed that the fifth packet loss rate of the target detection node in the path to be detected is less than the preset packet loss rate, and then end the fault detection operation.

5. The method according to claim 1, It is characterized in that The path nodes included in the path to be detected include at least one of the following nodes: an access interface of an edge service network access node, a network exit of an edge service network access node, and a target access node with a target Internet Protocol IP address.

6. A fault diagnosis system, It is characterized in that The system includes: a fault diagnosis node, an edge service network access node, and a target access node with an IP address; wherein: The edge service network access node comprises an access interface of the edge service network access node and a network exit of the edge service network access node; wherein the access interface of the edge service network access node is used to receive a service request sent by a fault diagnosis node, and the network exit of the edge service network access node is used to forward the service request sent by the fault diagnosis node to a corresponding target access node with an IP address; The target access node with an IP address is used to provide the fault diagnosis node with a business service corresponding to the business request; The fault diagnosis node is used to determine a path to be detected if a network fault detection instruction is detected, and the path to be detected is determined based on at least one path response data packet, wherein the at least one path response data packet is a response to a path detection request, and each of the path response data packets is response data generated by a path node between the fault diagnosis node and the target detection node in response to the path detection request after receiving the path detection request; the path detection request is used to send to the target detection node, and the target detection node is determined after the network fault detection instruction is detected; according to the path to be detected, a preset number of fault detection data packets are sent; and fault detection responses sent by m path nodes included in the path to be detected are received; wherein the fault detection response is response data generated by the path nodes included in the path to be detected based on the fault detection data packet, and m is a positive integer greater than or equal to 1; based on the fault detection responses corresponding to the m path nodes, the fault information in the path to be detected is determined; and the fault information is displayed; The fault diagnosis node is further used to determine the path response data packet sent by the target detection node from at least one of the path response data packets to obtain a target response data packet; parse and analyze the target response data packet to determine the identification information of each path node when a path detection request is received, and sort the data in order from far to near according to the time attribute of receiving the path detection request to obtain the path to be detected; wherein the target response data packet includes the attribute information of the path node between the fault diagnosis node and the target detection node receiving the path detection request, and the attribute information includes: the receiving time attribute of the path node between the fault diagnosis node and the target detection node when receiving the path detection request and the identification information of the corresponding receiving path node; The fault diagnosis node is further used to parse and analyze the target response data packet to determine the target delay data of each path node included in the path to be detected; the target delay data is used for delay debugging.

7. A storage medium, It is characterized in that The storage medium stores a fault diagnosis program, which, when executed by a processor, implements the steps of the fault diagnosis method according to any one of claims 1 to 5.