Method and apparatus for fault detection

By constructing detection packets and detecting the health status of the service path based on the packet loss rate, it solves the problem that existing technology cannot detect sub-healthy nodes, achieves accurate health status assessment of the entire service path and matches business traffic processing capabilities, and improves efficiency. Resource utilization and processing efficiency.

WO2024217020A1PCT designated stage expired Publication Date: 2024-10-24HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD

Patent Information

Application Number
PCT/CN2023/138878
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-03
Filing Date
2023-12-14
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing service path fault detection technology cannot accurately detect the health status of the entire service path, especially nodes in a sub-healthy state, which leads to incorrect judgment of business traffic processing capabilities and the inability to process all business traffic.

Method used

By constructing user-like service detection packets and regularly sending them to the target path, and determining whether the components or nodes in the target path are in a sub-healthy state based on the packet loss rate of the detection packets, full-path health status detection of the entire target path is achieved. And adjust the bypass mode according to the packet loss rate to ensure that business traffic can be processed normally.

Benefits of technology

It improves the accuracy of fault detection and business traffic processing efficiency, ensures that business traffic can be matched by the current actual processing capacity of the target path, and improves resource utilization and processing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023138878_24102024_PF_FP_ABST
    Figure CN2023138878_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of cloud computing, and provides a method for fault detection, applied to a network device. The network device is communicated with at least one distributed cluster by means of a target path, the network device sends a data packet to the at least one distributed cluster by means of the target path, and the method comprises: sending a plurality of probe packets to the target path, the probe packets being constructed according to a first data packet in the target path; determining a packet loss rate of the plurality of probe packets in the target path; and determining a bypass mode proportion of the target path according to the packet loss rate. According to the method, whether a component or node in the target path is in a sub-health state according to the packet loss rate of the probe packets can be determined by actively constructing probe packets of a class user service and regularly sending the probe packets to the target path, so as to perform full-path detection on a health state of the entire target path from the perspective of a user real service.
Need to check novelty before this filing date? Find Prior Art

Description

Fault detection method and device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 17, 2023, with application number 202310409192.0 and application name “A method, device and other equipment for fault detection”, and claims priority to the Chinese patent application filed with the China Patent Office on August 3, 2023, with application number 202310973178.3 and application name “Method and device for fault detection”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of cloud computing, and more specifically, to a method and apparatus for fault detection. Background Art

[0003] In the cloud computing field, to meet diverse business processing requirements, distributed systems often distribute business traffic to different service paths at specific nodes for traffic processing. Common traffic processing modes include diversion mode and diversion mode, which are used to divert and divert normal business traffic, respectively. In diversion mode, the diversion device diverts normal business traffic to the service path for processing such as anti-DDOS attacks and cloud firewall filtering, and then injects normal traffic back to the normal path. In diversion mode, the diversion device distributes business traffic to different diversion nodes in the cluster for processing according to a specific diversion algorithm, achieving load balancing, horizontal scalability, and eliminating single points of failure.

[0004] However, existing service path fault detection technology can only detect adjacent nodes along the service path and cannot detect nodes in a sub-healthy state. This can cause traffic diversion or distribution devices to misjudge the service path's actual traffic processing capacity, resulting in the inability to fully process the traffic allocated to the service path. Therefore, accurately detecting the health of the entire service path has become a pressing technical problem.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a method and apparatus for fault detection. By actively constructing a detection packet for a user-like service and sending it to a target path at regular intervals, it is possible to determine whether a component or node in the target path is in a sub-healthy state based on the packet loss rate of the detection packet, thereby performing full-path detection of the health status of the entire target path from the perspective of the user's actual service.

[0007] In a first aspect, a fault detection method is provided, which is applied to a network device, wherein the network device is connected to at least one distributed cluster through a target path, and the network device sends a data packet to the at least one distributed cluster through the target path. The method includes: sending multiple detection packets to the target path, wherein the detection packet is constructed based on a first data packet in the target path; determining a packet loss rate of the multiple detection packets in the target path; and determining a bypass mode ratio of the target path based on the packet loss rate, wherein the bypass mode ratio of the target path is used to indicate a ratio of second data packets to be sent to the target path that bypass the target path.

[0008] Optionally, the network device is a diverting device, the target path is the diverted path, the diverting device is connected to at least one distributed cluster through the diverted path, and the diverting device is used to divert data packets to at least one distributed cluster for security processing. The security processing includes one or more of the following: anti-DDOS attack, cloud firewall, network detection and response; based on the packet loss rate, determine the bypass mode ratio of the target path, including: based on the packet loss rate, determine the ratio of the second data packet to be sent to the diverted path bypassing the diverted path and directly passing through the diverting device.

[0009] Optionally, the network device is a diversion device, at least one distributed cluster includes a target distributed cluster, the diversion device is connected to a target diversion node among multiple diversion nodes of the target distributed cluster through a target path, and the diversion device is used to distribute the second data packet to multiple diversion nodes, and determine the bypass mode ratio of the target path based on the packet loss rate, including: determining the ratio of the second data packet to be sent to the target diversion node to other diversion nodes of the target distributed cluster based on the packet loss rate.

[0010] According to the technical solution provided in this application, by constructing a detection packet of user-like services and sending it to the target path at regular intervals, the business processing capability of the entire target path is detected from the perspective of the user's actual business, so that the diversion device and / or the diversion device can determine the current actual business processing capability of the target path based on the packet loss rate of the detection packet, thereby improving the accuracy of detecting the health status of all components or nodes in the entire target path.

[0011] In combination with the first aspect, in certain implementations of the first aspect, determining the bypass mode ratio of the target path based on the packet loss rate includes: when the packet loss rate is less than a first threshold, determining the bypass mode ratio to be 0%, so that all second data packets to be sent to the target path pass through the target path.

[0012] In combination with the first aspect, in certain implementations of the first aspect, the bypass mode ratio of the target path is determined based on the packet loss rate, including: when the packet loss rate is greater than or equal to a second threshold, determining the bypass mode ratio to be 100%, so that all second data packets to be sent to the target path bypass the target path.

[0013] In combination with the first aspect, in certain implementations of the first aspect, the bypass mode ratio of the target path is determined based on the packet loss rate, including: when the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, determining that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate.

[0014] According to the above technical solution, the network device adjusts the bypass mode ratio in real time based on the health status of the target path reflected by the packet loss rate of the detection packet, so that the business traffic allocated to the target path by the network device is consistent with the current actual business processing capacity of the target path, thereby improving the utilization rate of the target path and improving resource utilization efficiency while ensuring that the business traffic can be processed normally.

[0015] In combination with the first aspect, in certain implementations of the first aspect, when the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, after determining that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate, the method further includes: obtaining a second data packet to be sent to the target path; and sending the second data packet to the target path based on the value of the bypass mode ratio of the target path.

[0016] According to the above technical solution, the network device can detect the fault of the target path during the period when the business traffic is silent, actively discover the fault of the target path before the user's business traffic arrives, and turn on the bypass mode in advance to respond, so that the user's business traffic can be directly sent according to the bypass mode ratio when it arrives, thereby improving the processing efficiency of the business traffic.

[0017] In combination with the first aspect, in some implementations of the first aspect, sending multiple probe packets to the target path includes: when a first data packet sent to the target path exists on the target path, sending the first data packet to the target path as a probe packet.

[0018] According to the above technical solution, during the user traffic activity, real user service packets can be used as detection packets to suppress the generation and sending process of user-like service detection packets, thereby reducing the occupation of the detection packets on the target path service processing capacity and improving the target path's processing performance for service traffic.

[0019] In a second aspect, a fault detection device is provided, which is arranged in a network device, and the network device is connected to at least one distributed cluster through a target path. The network device sends a data packet to the at least one distributed cluster through the target path. The device includes: a sending module, which is used to send multiple detection packets to the target path, and the detection packet is constructed based on the first data packet in the target path; a detection module, which is used to determine the packet loss rate of the multiple detection packets in the target path; a determination module, which is used to determine the bypass mode ratio of the target path based on the packet loss rate, and the bypass mode ratio of the target path is used to indicate the ratio of the second data packet to be sent to the target path bypassing the target path.

[0020] Optionally, the network device is a diverting device, the target path is the diverted path, the diverting device is connected to at least one distributed cluster through the diverted path, and the diverting device is used to divert data packets to at least one distributed cluster for security processing. The security processing includes one or more of the following: anti-DDOS attack, cloud firewall, network detection and response; the determination module is used to: determine the proportion of second data packets to be sent to the diverted path that bypass the diverted path and pass directly through the diverting device based on the packet loss rate.

[0021] Optionally, the network device is a diversion device, at least one distributed cluster includes a target distributed cluster, the diversion device is connected to a target diversion node among multiple diversion nodes of the target distributed cluster through a target path, the diversion device is used to distribute the second data packet to multiple diversion nodes, and the determination module is used to: determine the proportion of the second data packet to be sent to the target diversion node sent to other diversion nodes of the target distributed cluster based on the packet loss rate.

[0022] In combination with the second aspect, in some implementations of the second aspect, the determination module is used to: when the packet loss rate is less than the first threshold, determine the bypass mode ratio to be 0%, so that all second data packets to be sent to the target path pass through the target path.

[0023] In combination with the second aspect, in certain implementations of the second aspect, the determination module is used to: when the packet loss rate is greater than or equal to the second threshold, determine that the bypass mode ratio is 100%, so that all second data packets to be sent to the target path bypass the target path.

[0024] In combination with the second aspect, in some implementations of the second aspect, the determination module is used to: when the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, determine that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate.

[0025] In combination with the second aspect, in certain implementations of the second aspect, when the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, after determining that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate, the sending module is further used to: obtain a second data packet to be sent to the target path; and send the second data packet to the target path based on the value of the bypass mode ratio of the target path.

[0026] In combination with the second aspect, in some implementations of the second aspect, the sending module is configured to: when a first data packet that has been sent to the target path exists on the target path, send the first data packet to the target path as a probe packet.

[0027] In a third aspect, a computing device is provided, comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call and execute the instructions from the memory, so that the computing device executes the method in the first aspect or any possible implementation of the first aspect.

[0028] In a fourth aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call and execute the instructions from the memory, so that the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0029] Optionally, the processor may be a general-purpose processor, which may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated into the processor or located independently of the processor.

[0030] In a fifth aspect, a chip is provided, which obtains instructions and executes the instructions to implement the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0031] Optionally, as an implementation, the chip includes a processor and a data interface, and the processor reads instructions stored in the memory through the data interface to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect.

[0032] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the method in the above-mentioned first aspect or any possible implementation method of the first aspect.

[0033] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster executes the method in the first aspect or any possible implementation of the first aspect.

[0034] In a seventh aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect.

[0035] By way of example, these computer-readable storage media include, but are not limited to, one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), Flash memory, electrically EPROM (EEPROM), and a hard drive.

[0036] Optionally, as an implementation manner, the above-mentioned storage medium may specifically be a non-volatile storage medium. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] FIG1 is a schematic diagram of a drainage device.

[0038] FIG2 is a schematic diagram of a flow diversion device.

[0039] FIG3 is a schematic diagram of a failure of a diverted service path.

[0040] FIG4 is a schematic diagram of a shunt node in a sub-healthy state.

[0041] FIG5 is a schematic flowchart of a fault detection method provided in an embodiment of the present application.

[0042] FIG6 is a schematic diagram of determining a bypass mode based on a packet loss rate in a diversion mode provided by an embodiment of the present application.

[0043] FIG7 is a schematic diagram of determining a bypass mode based on a packet loss rate in a diversion mode provided by an embodiment of the present application.

[0044] FIG8 is a schematic diagram of a bypass mode switching process according to a packet loss rate provided in an embodiment of the present application.

[0045] FIG9 is a schematic diagram of a process of capacity expansion of a service cluster according to a total packet loss rate provided in an embodiment of the present application.

[0046] FIG10 is a schematic structural block diagram of a fault detection device provided in an embodiment of the present application.

[0047] FIG11 is a schematic structural block diagram of a computing device provided in an embodiment of the present application.

[0048] FIG12 is a schematic structural block diagram of a computing device cluster provided in an embodiment of the present application.

[0049] FIG13 is a schematic structural block diagram of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.

[0051] This application will present various aspects, embodiments, or features around systems including multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. Furthermore, combinations of these aspects may also be used.

[0052] Additionally, in the embodiments of this application, words such as "exemplary" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0053] In the embodiments of the present application, “corresponding” and “relevant” may sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings they intend to express are consistent.

[0054] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person skilled in the art will appreciate that, with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0055] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0056] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0057] To facilitate understanding, the following first introduces relevant terms and concepts that may be involved in the embodiments of this application.

[0058] Subhealth: A subhealthy state refers to a distributed system node that is not in a faulty state. That is, the node can still process some services, but the quantity and quality of services it can handle are reduced compared to its normal health state. Therefore, a node's subhealthy state is an intermediate state between a healthy state and a faulty state.

[0059] Distributed denial of service (DDoS): A DDoS attack uses multiple computers in different locations as attack platforms to launch DDoS attacks against one or more targets, multiplying the attack's power. Because the attack originates from different locations, this type of attack is called a distributed denial of service attack. Security detection methods to prevent and control DDoS attacks are called anti-DDoS (ATDDoS).

[0060] Network detection and response (NDR): Network detection and response is one of the security detection methods in network services. It is a solution that monitors enterprise networks to detect and prevent network traffic anomalies, network security threats, insider attacks, and other non-malware risks. It provides greater visibility into network traffic activities, minimizing the significance of any potential threats or malicious behavior.

[0061] Database Security Service (DBSS): DBSS is a security detection method in network services. It is an intelligent database security service based on machine learning mechanisms and big data analysis technologies. It provides database auditing, SQL injection attack detection, risk operation identification and other functions to ensure the security of cloud databases.

[0062] Web application firewall (WAF): WAF is one of the security detection methods in network services. It is a product that specifically provides protection for web applications by executing a series of security policies for the HTTP / HTTPS protocol.

[0063] Cloud firewalls (CFW): Like traditional firewalls, they filter out potentially malicious network traffic. However, unlike traditional firewalls, cloud firewalls are hosted in the cloud. Just as traditional firewalls form a barrier around the enterprise's internal network, cloud-based firewalls form a virtual barrier around cloud platforms, infrastructure, and applications. Cloud firewalls can also protect internal infrastructure.

[0064] Bypass mode: Distributed systems have multiple check mechanisms in their normal operating processes. Bypass mode is an operating mode in which, when a check mechanism detects an anomaly that cannot be corrected quickly, the system bypasses the abnormal node and continues execution.

[0065] Packet loss refers to the inability of one or more data packets to reach their destination within the specified timeframe. This can occur due to timeouts and packet discards. Timeouts occur when a packet is able to travel along a path but does not reach its destination on time, such as due to path congestion. Packet discards can be caused by a variety of factors, including but not limited to signal attenuation due to multipath fading, packet corruption leading to packet rejection, network hardware defects, and network driver failures.

[0066] Packet loss tolerance (or packet loss rate): The packet loss rate is the ratio of the number of packets lost during a test to the total number of packets sent. It is calculated as: packet loss rate = [(number of packets sent - number of packets received) / number of packets sent] * 100%. The packet loss rate is related to packet length and packet transmission frequency.

[0067] In the field of cloud computing, in order to meet different business processing requirements, a specific network device will forward data packets in the business traffic to a specific cluster through a specific path, and the specific cluster will process the data packets. Specifically, the network device can be connected to at least one distributed cluster through a target path, and the network device can send data packets to all or part of the nodes in the at least one distributed cluster through the target path. Among them, at least one distributed cluster is a computing device cluster used to perform at least one processing on the data packet, for example, security monitoring of each data packet, or load balancing of multiple data packets. According to the processing services provided by the at least one connected distributed cluster, the types of network devices can include at least diversion devices and diversion devices. The diversion devices and diversion devices are described in detail below with reference to the accompanying drawings.

[0068] The network device may be a drainage device. The drainage device connects multiple components through a diverted service path. The target path mentioned above may be the diverted service path, and at least one distributed cluster may be the component connected to the diverted service path. As shown in Figure 1, the drainage device 110 may be a device or equipment responsible for guiding data packets to the diverted service path 120 for processing, and then returning to the drainage device 110 to continue the normal business traffic path, such as a router. Each component on the diverted service path 120 corresponds to a computing device cluster for performing security processing on the data packets. The security processing includes but is not limited to ATDDoS, NDR, DBSS, WAF, CFW, etc. It should be understood that the components on the diversion service path 120 may be distributed clusters, that is, corresponding to one of the at least one distributed cluster mentioned above, but is not limited to this. It may also be a centralized cluster, or an independent computing device. This application does not make specific limitations on this.

[0069] When a network device is a traffic diversion device, the corresponding packet forwarding mode is called a diversion mode. In this mode, the diverted service path typically consists of multiple continuous components. Existing fault detection technologies can only target adjacent nodes in the diverted service path, resulting in low efficiency or accuracy in fault detection of the diverted service path in some cases.

[0070] Figure 2 shows a schematic diagram of three situations in which a fault occurs in the diverted service path. The situation shown in (a) in Figure 2 is that component 1 adjacent to the diversion device in the diverted service path fails. In this case, the diversion device can promptly detect that a component in the diverted service path is in a faulty state, so it can directly release the data packet through the bypass mode and no longer divert the traffic. The situation shown in (b) in Figure 2 is that component 3 in the diverted service path that is not directly adjacent to the diversion device fails. In this case, due to the use of segmented detection, the diversion device can only detect the failure of the directly adjacent component, and the failure of the subsequent component needs to be monitored by its upper-level directly connected component. Therefore, the data packet will be diverted through the healthy components 1 and 2. After component 2 detects that component 3 is in a faulty state, it will return the data packet to the diversion device along the original path and then send it through the bypass mode. The above process leads to low data packet processing efficiency and waste of resources of components 1 and 2. Figure 2 (c) shows a situation where a component 2 in the redirected service path is in a subhealthy state. Since some packets are still able to pass through, the redirection device cannot accurately detect the subhealth of the service path and continues to redirect all packets to the redirected service path according to its normal processing capacity. However, due to the subhealth of component 2, the redirected service path is unable to process some packets in a timely manner, resulting in packet processing timeouts or packet loss.

[0071] A network device can also be a traffic diversion device. A traffic diversion device connects to multiple diversion nodes in a service cluster via multiple paths, with one diversion node corresponding to one path. The at least one distributed cluster mentioned above can be the service cluster, and the target path can be a path connecting to a target node among the multiple nodes of the service cluster. As shown in Figure 3, the traffic diversion device 310 can be a device or equipment, such as a load balancer, responsible for distributing multiple data packets to different diversion nodes 320 in the service cluster for processing according to a specific diversion algorithm.

[0072] When the network device is a traffic diversion device, the corresponding packet forwarding mode can be called a traffic diversion mode. In traffic diversion mode, the traffic diversion device generally performs node "liveliness detection" based on network layer or transport layer mechanisms. However, the traffic diversion node may have the problem of "false liveness" or "survival". "False liveness" refers to a situation where the traffic diversion device determines that it can allocate data packets to the traffic diversion node based on network layer or transport layer mechanisms, but in fact, there is a fault at the traffic diversion node, resulting in all data packets sent to the traffic diversion node being discarded by the traffic diversion node. "Survival" has a similar mechanism to "false liveness". In this case, the traffic diversion device determines that it can allocate data packets to the traffic diversion node based on network layer or transport layer mechanisms, but in fact, the traffic diversion node is in a sub-healthy state. Figure 4 shows a schematic diagram of a traffic diversion node in a sub-healthy state. As shown in Figure 4, traffic diversion node 2 is in a sub-healthy state, resulting in its actual ability to process fewer data packets than normal. This may cause some data packets diverted to the node to not be processed in a timely manner. Whether "false liveness" or "survival" is described above, it is actually caused by the traffic diversion device's inability to accurately detect the health status of nodes on the service path.

[0073] In view of this, an embodiment of the present application provides a fault detection method, which is applied to a network device, wherein the network device is connected to at least one distributed cluster via a target path, and the network device sends data packets to the at least one distributed cluster via the target path. By actively constructing a user-service-like detection packet and periodically sending it to the target path, the network device can determine whether a component or node in the target path is in a sub-healthy state based on the packet loss rate of the detection packet, thereby performing full-path detection of the health status of the entire target path from the perspective of the user's actual service.

[0074] The embodiments of the present application are applied to network devices, including but not limited to flow diversion devices and flow splitting devices. For example, the network device may be the flow diversion device 110 shown in FIG1 or the flow splitting device 310 shown in FIG3 , which is not specifically limited in the present application.

[0075] In the embodiments of the present application, the target path refers to a path connected to a network device that executes the method provided in the embodiments of the present application and is used to receive data packets sent by a traffic management node. As an example, when the network device is a traffic diversion device as shown in Figure 1, the target path can be the diverted service path shown in Figure 1; when the network device is a traffic diversion device as shown in Figure 3, the target path can be a path connected to a target node in multiple diversion nodes in Figure 3.

[0076] It should be understood that the functions of a network device are not limited to a single traffic diversion or distribution point, and therefore the paths connected to the network can exist in multiple forms simultaneously. For example, a network device may be responsible for diverting service traffic for processing before distributing it to various distribution nodes. In this case, the paths connected to the network device may include both the diverted service path and multiple distribution nodes of the service cluster.

[0077] The fault detection method of the present application is described in detail below with reference to FIG5 .

[0078] Figure 5 shows a schematic flow chart of a fault detection method provided in an embodiment of the present application. As shown in Figure 5, the method includes the following steps.

[0079] Step S510: Send multiple detection packets to the target path.

[0080] For example, in step S510, the network device may send multiple probe packets to the target path. Specifically, the probe packet is constructed based on the first data packet in the target path, that is, the probe packet is determined based on the data packets processed when the target path is actually operating. Optionally, when the method is executed during a period of user traffic silence, that is, when the network device currently has no service traffic data packets to be sent to the target path, the network device may proactively construct the probe packet.

[0081] In some possible implementations, the network device can construct a first detection packet by modifying the data in the user's historical real business data packet. Specifically, the network device can obtain the first data packet that has been sent to the target path, and generate a set of first random numbers based on the business data in the first data packet, replace the business data in the first data packet with one of the set of first random numbers to generate a detection packet, and replace the business data in the first data packet with a set of first random numbers to construct multiple detection packets. Among them, generating a set of first random numbers based on the user data in the first data packet includes but is not limited to generating a set of first random numbers with the same characteristics as the user data based on the type, length, range and other characteristics of the user data. Through the above scheme, by using the first data packet sent historically, a detection packet with a high degree of similarity to the data packet processed by the target path during actual operation can be constructed with lower computational complexity, thereby improving the efficiency and accuracy of fault detection.

[0082] In other possible implementations, for example, when the type of service processed by the target path is relatively simple, the network device can generate a set of second random numbers based on the type of service processed by the target path, and encapsulate each second random number in the set of second random numbers according to the protocol requirements of the first service path, thereby constructing multiple detection packets of user-like services with random content but the same structure as the data packets processed by the target path during actual operation. Optionally, the multiple detection packets can include multiple types, and the type composition of the multiple detection packets can also be determined based on the type composition of the first data packet in the target path. Through the above scheme, according to the characteristics of the user service processed by the target path, a rich variety of detection packets can be constructed with a high degree of freedom, thereby improving the comprehensiveness and accuracy of fault detection.

[0083] Optionally, when this method is executed during active user traffic, that is, when the network device currently has a first data packet sent to the target path, the network device can directly use the first data packet as a probe packet. According to the above technical solution, using real user service data packets as probe packets during active user traffic can suppress the construction and transmission of user service-like probe packets, thereby reducing the probe packet's occupation of the target path's service processing capacity and improving the target path's service traffic processing performance.

[0084] Step S520: Determine the packet loss rate of the plurality of detection packets in the target path.

[0085] For example, in step S520, the network device may determine the packet loss rate of the multiple probe packets sent in step S510 in the target service path. Specifically, the network device may send multiple probe packets to the target path in one probe, and thereby determine the packet loss rate of the multiple probe packets in the target path based on the number of probe packets returned in the target path and / or information fed back by the target path.

[0086] As an example, when the target path is the diverted path, since the sent detection packets eventually return to the diverting device after passing through the diverted path, the diverting device can directly count the number of first detection packets sent and the number of detection packets returned to the diverting device within a certain period of time, thereby calculating the packet loss rate of multiple detection packets in the target path according to the following formula: Packet loss rate = [(number of detection packets sent by the diverting device - number of detection packets returned to the diverting device) / number of detection packets sent by the diverting device] * 100%.

[0087] As another example, when the target path is a target diversion node, the probe packet sent by the diversion device can request the diversion node to feedback confirmation information. When the target diversion node successfully receives and processes a probe packet, it sends a feedback signal to the diversion device. Therefore, the diversion device can calculate the packet loss rate of multiple probe packets in the target path based on the number of probe packets sent and the number of feedback signals received from the target diversion node: packet loss rate = [(number of probe packets sent by the diversion device to the target diversion node - number of probe packets received as feedback by the target diversion node) / number of probe packets sent by the diversion device to the target diversion node] * 100%.

[0088] Step S530: Determine the bypass mode ratio of the target path according to the packet loss rate.

[0089] For example, in step S530, the network device may determine a bypass mode ratio for the target path based on the packet loss rate determined in step S520. Specifically, the bypass mode ratio for the target path indicates the ratio of second data packets to be sent to the target path that bypass the target path. Based on the health status of the target path as reflected by the packet loss rate, the determined bypass mode ratio can be categorized into the following three situations.

[0090] When the packet loss rate is less than the first threshold, the bypass mode ratio is determined to be 0%. In this case, the network device can detect that all components or nodes in the target path are in a healthy state, and therefore executes a non-bypass mode, so that all second data packets to be sent to the target path pass through the target path.

[0091] When the packet loss rate is greater than or equal to the second threshold, the bypass mode ratio is determined to be 100%. In this case, the network device can detect the presence of a component or node in a faulty state in the target path, and therefore executes a complete bypass mode, so that the second data packet to be sent to the target path completely bypasses the target path.

[0092] When the packet loss rate is greater than or equal to a first threshold and less than a second threshold, the bypass mode ratio is determined based on the packet loss rate. For example, the bypass mode ratio is determined to be equal to the packet loss rate, or the bypass mode ratio is determined to be greater than a predetermined range of packet loss rates. In this case, the network device can detect the presence of a sub-healthy node in the target path and therefore execute a partial bypass mode, so that some second data packets to be sent to the target path pass through the target path, while another part of the second data packets to be sent to the target path bypass the target path.

[0093] The following describes in detail the implementation of the bypass mode in the drainage mode and the diversion mode in conjunction with the accompanying drawings.

[0094] As an example, FIG6 shows a schematic diagram of a diversion device activating bypass mode based on the detection packet loss rate in diversion mode. As shown in FIG6, the dotted arrows represent the path of the detection packet transmitted in the target path, the solid arrows represent the data packet path sent to the target path, and the hollow solid arrows represent the data packet path bypassing the target path and sent via bypass mode. In the case shown in FIG6 (a), the three components in the diverted service path are all in a healthy state, so the detection packets passing through the diverted service path can all return to the diversion device within the time limit. Therefore, this is a non-bypass mode, and all second data packets are sent through the diverted service path. In the case shown in FIG6 (b), component 1 in the diverted service path is in a sub-healthy state, so the detection packets passing through the diverted service path can partially return to the diversion device within the time limit. Therefore, this is a partial bypass mode, with both data packets sent through the diverted service path and data packets sent directly without passing through the diverted service path. At the same time, the diversion device can report a sub-health alarm. In the situation shown in (c) in Figure 6, component 2 in the diverted service path is in a faulty state, so the detection packet passing through the diverted service path cannot return to the diversion device within the time limit. Therefore, at this time it is a full bypass mode, and all second data packets are sent directly without passing through the diverted service path. At the same time, the diversion device can report an emergency alarm.

[0095] As another example, FIG7 shows a schematic diagram of a diversion device in bypass mode based on the detection packet loss rate in diversion mode. In the case shown in FIG7 (a), the three diversion nodes in the service cluster are equivalent to three service paths, all of which are in a healthy state, so the data packets of the diversion nodes are normally distributed to the three diversion nodes. In the case shown in FIG7 (b), taking the service path flowing with diversion node 2 as the target path as an example, diversion node 2 is in a sub-healthy state, so the diversion device reduces the second data packet allocated to diversion node 2, and the reduced portion is borne by diversion node 1 and / or diversion node 3 in a healthy state, and the diversion device can report a sub-healthy alarm. In the case shown in FIG7 (c), diversion node 2 is in a faulty state, so the diversion point stops allocating the second data packet to diversion node 2, and the reduced portion is borne by other diversion nodes in a healthy state, and the diversion device can report an emergency alarm.

[0096] It should be understood that if Diverter Node 2 is in a sub-healthy state, data packets sent via bypass mode can prioritize newly established connections after detection. Specifically, for data packets that already have TCP status information before the partial bypass mode is enabled, assigning them to other diverter nodes for processing requires re-establishing new connections, which is inconvenient for forwarding. Therefore, within the current actual processing capacity of Diverter Node 2, these packets are still preferentially assigned to Diverter Node 2 for processing. For data packets that require a new connection after the partial bypass mode is enabled, they are assigned to other diverter nodes for processing based on the bypass mode ratio, thereby improving processing efficiency.

[0097] Optionally, after the diversion node 2 fails, the diversion device can distribute the second data packet to other service paths that are already connected to it, such as the diversion node 1 and the diversion node 3 shown in (c) of Figure 7, or it can distribute the second data packet to the service path newly connected to the diversion device, such as the diversion node 4 for temporary disaster recovery provided by the automatic scaling (AS) service shown in (c) of Figure 7.

[0098] Optionally, when shunt node 2 is in a subhealthy state or a faulty state, the shunt device can temporarily remove shunt node 2 from the service cluster to facilitate better scheduling of the service cluster's work. It should be understood that after the shunt device removes shunt node 2 from the service cluster, it can continue to periodically perform fault detection on shunt node 2, so that shunt node 2 can be re-added to the service cluster when shunt node 2 returns to a healthy state.

[0099] Through the technical solution of the embodiments of the present application, the network device constructs a detection packet of the user-related service and sends it to the service path at regular intervals, and detects the service processing capability of the entire target path from the perspective of the user's actual service. The network device can determine the current actual service processing capability of the service path based on the packet loss rate of the detection packet, thereby improving the accuracy of detecting the health status of all components or nodes in the entire target path.

[0100] The fault detection method provided in the embodiment of the present application can be executed repeatedly. Therefore, for the above step S530, the network device can dynamically adjust the bypass mode ratio of the target path according to the change of the detection packet loss rate.

[0101] FIG8 is a schematic diagram showing the real-time switching process of the bypass mode according to the packet loss rate. As shown in FIG8 , when the packet loss rate is less than the first threshold, the target path switches to the non-bypass mode, and the bypass mode ratio is 0% at this time; when the packet loss rate is greater than or equal to the second threshold, the target path switches to the full bypass mode, and the bypass mode ratio is 100% at this time; when the packet loss rate is greater than or equal to the first threshold and the first packet loss rate is less than the second threshold, the target path switches to the partial bypass mode, and the specific value of the bypass mode ratio of the target path is determined according to the specific value of the packet loss rate, for example, the value of the bypass mode ratio is equal to or greater than the value of the first packet loss rate. It should be understood that the first threshold and the second threshold can be 10% and 90% as shown in the example of FIG8 , or can be determined as other suitable values ​​according to the specific circumstances, and this application does not make specific limitations on this.

[0102] Through the technical solution of the embodiment of the present application, the bypass mode ratio is adjusted in real time according to the health status of the target path reflected by the packet loss rate of the detection packet, so that the business traffic allocated to the target path by the network device is consistent with the current actual business processing capacity of the target path, thereby improving the utilization rate of the target path and improving resource utilization efficiency while ensuring that the data packets can be processed normally.

[0103] Optionally, in some possible implementations, for the diversion mode, while detecting the packet loss rate of a single target path, the diversion device can also dynamically adjust the number and connectivity of service paths in the cluster based on the total packet loss rate of all service paths in the service cluster. Specifically, the total packet loss rate of all service paths in a cluster is defined as: total packet loss rate = [(number of detection packets sent by the diversion device to all diversion nodes in the service cluster - total number of detection packets received as feedback by all diversion nodes) / number of detection packets sent by the diversion device to all diversion nodes in the service cluster] * 100%.

[0104] FIG9 shows a schematic diagram of the dynamic expansion process based on the total packet loss rate. As shown in FIG9 , a service cluster may include multiple service paths corresponding to multiple diversion nodes, wherein each service path can be independently switched to bypass mode as a target path in the manner shown in FIG8 . At the same time, the diversion device can also determine the total packet loss rate of multiple service paths in the service cluster. When the total packet loss rate is greater than the third threshold, such as 10% as shown in FIG9 , the service cluster is expanded, and the diversion device establishes connectivity with the expanded service path, wherein the expanded service path is an emergency node that does not originally belong to the service cluster; when the total packet loss rate is less than the fourth threshold, such as 1% as shown in FIG9 , the cluster is restored to the state before the expansion, and the traffic management node disconnects the connectivity with the expanded service path, thereby releasing the emergency node resources to provide expansion services for other failed service clusters.

[0105] Through the technical solution of the embodiments of the present application, the diversion device not only detects the health status of a single target path, but also detects the total packet loss rate of multiple service paths in the service cluster, so that when the sum of the data packet processing capabilities that can currently be provided by all service paths in the service cluster cannot meet the demand, a connection can be established with a new service path, the service cluster can be dynamically expanded, and the system's emergency handling capabilities for faults can be improved.

[0106] In addition, after detecting a fault, the diversion device continues to send detection packets to the faulty service path at regular intervals. When the total business processing capacity that the service paths in the cluster can actually provide returns to normal levels, the connection with the service path used for capacity expansion is disconnected, thereby releasing capacity expansion resources in a timely manner to respond to emergencies for other faulty nodes and improve resource utilization.

[0107] Since the fault detection method provided in the embodiment of the present application can actively construct a detection packet for user-related services, the above method can be executed during the user traffic silence period, thereby actively discovering the fault of the target path before the user's service traffic data packet arrives, and turning on the bypass mode in advance to respond, so that the user's service traffic data packet can be directly sent according to the bypass mode ratio when it arrives, thereby improving the processing efficiency of the service traffic data packet.

[0108] Specifically, after determining the bypass mode ratio of the target path in step S530, the network device can also obtain a second data packet to be sent to the target path. The traffic management node can send the second data packet according to the bypass mode ratio of the target path.

[0109] In summary, the fault detection method provided in the embodiment of the present application, by actively constructing a detection packet of a user-like service and sending it to the target path at regular intervals, can determine whether the components or nodes in the target path are in a sub-healthy state based on the packet loss rate of the detection packet, thereby performing full-path detection of the health status of the entire target path from the perspective of the user's real service.

[0110] The above description describes an embodiment of the fault detection method provided by the present application in conjunction with FIG. 5 to FIG. 9 . The following description describes an embodiment of the fault detection device provided by the present application in conjunction with FIG. 10 to FIG. 13 .

[0111] Figure 10 shows a schematic structural diagram of a fault detection apparatus 1000 provided in an embodiment of the present application. The apparatus 1000 can be provided in a network device, which is connected to at least one distributed cluster via a target path, and the network device sends a data packet to the at least one distributed cluster via the target path.

[0112] As shown in FIG. 10 , the fault detection apparatus 1000 includes: a sending module 1010 , a detection module 1020 , and a determination module 1030 .

[0113] Specifically, the sending module 1010 is configured to send a plurality of detection packets to the target path, where the detection packets are constructed according to the first data packet in the target path.

[0114] Optionally, the sending module 1010 is specifically configured to send the first data packet to the target path as a detection packet when there is a first data packet sent to the target path on the target path.

[0115] Specifically, the detection module 1020 is used to determine the packet loss rate of multiple detection packets in the target path.

[0116] Specifically, the determining module 1030 is configured to determine a bypass mode ratio of the target path according to the packet loss rate. The bypass mode ratio of the target path is configured to indicate a ratio of second data packets to be sent to the target path that bypass the target path.

[0117] Optionally, when the network device is a diverting device and the target path is a diverted path, the determination module 1030 is specifically used to determine the proportion of second data packets to be sent to the diverted path that bypass the diverted path and directly pass through the diverting device based on the packet loss rate.

[0118] Optionally, when the network device is a diversion device, at least one distributed cluster includes a target distributed cluster, and the diversion device is connected to a target diversion node among multiple diversion nodes of the target distributed cluster through a target path, the determination module 1030 is specifically used to determine the proportion of second data packets to be sent to the target diversion node sent to other diversion nodes of the target distributed cluster based on the packet loss rate.

[0119] Optionally, the determining module 1030 is specifically configured to determine the bypass mode ratio to be 0% when the packet loss rate is less than a first threshold, so that all second data packets to be sent to the target path pass through the target path.

[0120] Optionally, the determining module 1030 is specifically configured to determine the bypass mode ratio to be 100% when the packet loss rate is greater than or equal to a second threshold, so that all second data packets to be sent to the target path bypass the target path.

[0121] Optionally, the determination module 1030 is specifically configured to determine that a value of the bypass mode ratio is greater than or equal to a value of the packet loss rate when the packet loss rate is greater than or equal to a first threshold and less than a second threshold.

[0122] Optionally, when the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, after determining that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate, the sending module 1010 is further used to obtain a second data packet to be sent to the target path; and send the second data packet to the target path according to the value of the bypass mode ratio of the target path.

[0123] The above modules can be implemented in software or hardware. For example, the following describes the implementation of the detection module 1020, taking the detection module 1020 as an example. Similarly, the implementation of the sending module 1010 and the determination module 1030 can refer to the implementation of the detection module 1020.

[0124] As an example of a software functional unit, the detection module 1020 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the detection module 1020 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.

[0125] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.

[0126] As an example of a hardware functional unit, the detection module 1020 may include at least one computing device, such as a server. Alternatively, the detection module 1020 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0127] The multiple computing devices included in the detection module 1020 can be distributed in the same region or in different regions. The multiple computing devices included in the detection module 1020 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the detection module 1020 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.

[0128] It should be noted that, in other embodiments, the sending module 1010, the detection module 1020 and the determination module 1030 can be used to respectively execute any step in the above-mentioned fault detection method, and the steps that the sending module 1010, the detection module 1020 and the determination module 1030 are responsible for implementing can be specified as needed. The full functions of the device 1000 are realized by respectively implementing different steps in the above-mentioned fault detection method through the sending module 1010, the detection module 1020 and the determination module 1030.

[0129] This application also provides a computing device 100. As shown in Figure 11, computing device 100 includes a bus 102, a processor 104, a memory 106, and a communication interface 108. Processor 104, memory 106, and communication interface 108 communicate with each other via bus 102. Computing device 100 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 100.

[0130] Bus 102 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG11 shows only one bus line, but this does not imply a single bus or type of bus. Bus 102 may include a path for transmitting information between various components of computing device 100 (e.g., memory 106, processor 104, and communication interface 108).

[0131] The processor 104 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).

[0132] The memory 106 may include volatile memory, such as random access memory (RAM). The memory 106 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).

[0133] The memory 106 stores executable program code, and the processor 104 executes the executable program code to respectively implement the functions of the aforementioned sending module, detection module, and determination module, thereby implementing the aforementioned fault detection method. In other words, the memory 106 stores instructions for executing the aforementioned fault detection method.

[0134] The communication interface 108 uses a command distribution module such as, but not limited to, a network interface card, a transceiver, etc. to implement communication between the computing device 100 and other devices or a communication network.

[0135] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0136] As shown in Figure 12, the computing device cluster includes at least one computing device 100. The memory 106 of one or more computing devices 100 in the computing device cluster may store the same instructions for executing the above fault detection method.

[0137] In some possible implementations, the memory 106 of one or more computing devices 100 in the computing device cluster may also store partial instructions for executing the above-mentioned fault detection method. In other words, the combination of one or more computing devices 100 can jointly execute the instructions for executing the above-mentioned fault detection method.

[0138] It should be noted that the memory 106 in different computing devices 100 in the computing device cluster can store different instructions, each for executing a portion of the functions of the above-mentioned operation and maintenance channel management cluster. In other words, the instructions stored in the memory 106 in different computing devices 100 can implement the functions of one or more modules among the sending module, the detection module, and the determination module.

[0139] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network (WAN) or a local area network (LAN), etc. FIG13 illustrates a possible implementation. As shown in FIG13 , two computing devices 100A and 100B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 106 in the computing device 100A stores instructions for executing the functions of the sending module and the detection module. Simultaneously, the memory 106 in the computing device 100B stores instructions for executing the functions of the determination module.

[0140] It should be understood that the functions of the computing device 100A shown in FIG13 may also be completed by multiple computing devices 100. Similarly, the functions of the computing device 100B may also be completed by multiple computing devices 100.

[0141] An embodiment of the present application further provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to execute the above-mentioned fault detection method.

[0142] Embodiments of the present application also provide a computer program product containing instructions. The computer program product may be software or a program product containing instructions that can be run on a computing device or stored on any available medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform the aforementioned fault detection method.

[0143] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state hard disk), etc. The computer-readable storage medium includes instructions that instruct the computing device to perform the above-mentioned management. The various technical features can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0144] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the embodiments of the present application.

Claims

1. A fault detection method, characterized in that: The method is applied to a network device, the network device is connected to at least one distributed cluster through a target path, and the network device sends a data packet to the at least one distributed cluster through the target path. The method includes: sending a plurality of detection packets to the target path, the detection packets being constructed based on a first data packet in the target path; Determining a packet loss rate of the plurality of detection packets in the target path; The bypass mode ratio of the target path is determined according to the packet loss rate, where the bypass mode ratio of the target path is used to indicate a ratio of second data packets to be sent to the target path bypassing the target path.

2. The method according to claim 1, characterized in that The network device is a traffic diversion device, the target path is a diverted path, the traffic diversion device is connected to the at least one distributed cluster through the diverted path, and the traffic diversion device is used to divert data packets to the at least one distributed cluster for security processing, and the security processing includes one or more of the following: anti-DDOS attack, cloud firewall, network detection and response; The determining, according to the packet loss rate, a bypass mode ratio of the target path includes: According to the packet loss rate, a proportion of the second data packets to be sent to the diverted path that bypass the diverted path and directly pass through the diverting device is determined.

3. The method according to claim 1, characterized in that The network device is a shunt device, the at least one distributed cluster includes a target distributed cluster, the shunt device is connected to a target shunt node among multiple shunt nodes of the target distributed cluster through the target path, the shunt device is used to distribute the second data packet to the multiple shunt nodes, and determining the bypass mode ratio of the target path according to the packet loss rate includes: According to the packet loss rate, a proportion of the second data packet to be sent to the target diversion node that is sent to other diversion nodes of the target distributed cluster is determined.

4. The method according to any one of claims 1 to 3, characterized in that The determining, according to the packet loss rate, a bypass mode ratio of the target path includes: When the packet loss rate is less than the first threshold, the bypass mode ratio is determined to be 0%, so that all second data packets to be sent to the target path pass through the target path.

5. The method according to any one of claims 1 to 3, characterized in that: The determining, according to the packet loss rate, a bypass mode ratio of the target path includes: When the packet loss rate is greater than or equal to the second threshold, the bypass mode ratio is determined to be 100%, so that all second data packets to be sent to the target path bypass the target path.

6. The method according to any one of claims 1 to 3, characterized in that: The determining, according to the packet loss rate, a bypass mode ratio of the target path includes: When the packet loss rate is greater than or equal to a first threshold and less than a second threshold, it is determined that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate.

7. The method according to claim 6, characterized in that When the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, after determining that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate, the method further includes: Acquire the second data packet to be sent to the target path; The second data packet is sent to the target path according to the value of the bypass mode ratio of the target path.

8. The method according to any one of claims 1 to 7, characterized in that The sending a plurality of detection packets to the target path comprises: When the network device has a first data packet that has been sent to the target path, the network device sends the first data packet to the target path as the detection packet.

9. A fault detection device, characterized in that: The device is arranged on a network device, the network device is connected to at least one distributed cluster via a target path, the network device sends a data packet to the at least one distributed cluster via the target path, and the device comprises: a sending module, configured to send a plurality of detection packets to the target path, wherein the detection packets are constructed according to the first data packet in the target path; A detection module, used to determine the packet loss rate of the multiple detection packets in the target path; A determination module is used to determine the bypass mode ratio of the target path according to the packet loss rate, and the bypass mode ratio of the target path is used to indicate the ratio of the second data packet to be sent to the target path bypassing the target path.

10. The device according to claim 9, characterized in that The network device is a traffic diversion device, the target path is a diverted path, the traffic diversion device is connected to the at least one distributed cluster through the diverted path, and the traffic diversion device is used to divert data packets to the at least one distributed cluster for security processing, and the security processing includes one or more of the following: anti-DDOS attack, cloud firewall, network detection and response; The determining module is used to: According to the packet loss rate, a proportion of the second data packets to be sent to the diverted path that bypass the diverted path and directly pass through the diverting device is determined.

11. The device according to claim 9, characterized in that The network device is a traffic diversion device, the at least one distributed cluster includes a target distributed cluster, the traffic diversion device is connected to a target diversion node among multiple diversion nodes of the target distributed cluster through the target path, the traffic diversion device is used to distribute the second data packet to the multiple diversion nodes, and the determination module is used to: According to the packet loss rate, a proportion of the second data packet to be sent to the target diversion node that is sent to other diversion nodes of the target distributed cluster is determined.

12. The device according to any one of claims 9 to 11, characterized in that The determining module is used to: When the packet loss rate is less than the first threshold, the bypass mode ratio is determined to be 0%, so that all second data packets to be sent to the target path pass through the target path.

13. The device according to any one of claims 9 to 11, characterized in that The determining module is used to: When the packet loss rate is greater than or equal to the second threshold, the bypass mode ratio is determined to be 100%, so that all second data packets to be sent to the target path bypass the target path.

14. The device according to any one of claims 9 to 11, characterized in that The determining module is used to: When the packet loss rate is greater than or equal to a first threshold and less than a second threshold, it is determined that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate.

15. The device according to claim 14, characterized in that When the packet loss rate is greater than or equal to the first threshold and the packet loss rate is less than the second threshold, after determining that the value of the bypass mode ratio is greater than or equal to the value of the packet loss rate, the sending module is further used to: Acquire the second data packet to be sent to the target path; The second data packet is sent to the target path according to the value of the bypass mode ratio of the target path.

16. The device according to any one of claims 9 to 15, characterized in that The sending module is used for: When there is a first data packet sent to the target path on the target path, the first data packet is sent to the target path as the detection packet.

17. A computing device, characterized in that The computer comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory so that the computing device executes the method according to any one of claims 1 to 8.

18. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 8.

19. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, which, when executed by a computing device cluster, cause the computing device cluster to perform the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Access request processing method and system in load balancing cluster and readable medium

    CN110198226A

  • Video data transmission method and device

    CN111107113A

  • Network path determination method and device, electronic equipment, medium and program product

    CN113542064A

  • Network health state analysis method and device, computer equipment and storage medium

    CN113890816A

  • High-reliability wireless ad hoc network routing communication method for power meter reading

    CN114374893A

Cited By

  • Method and device for segmenting aneurysm and storage medium

    CN120689323A