Network detection method, device and equipment and readable storage medium

By implementing a network detection method in network equipment, combining message traffic and hardware performance usage rate to determine link status, the traditional NQA mechanism has solved the shortcomings in false alarm rate, sensitivity, etc., and improved the accuracy and network stability of link detection.

CN119966852APending Publication Date: 2025-05-09XINHUASAN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510126368.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-27
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The traditional NQA mechanism has shortcomings in false alarm rate, sensitivity, network delay, resource occupation and flexibility, and cannot meet the high requirements for link detection in modern network environments.

Method used

By implementing a network detection method in a network device, after sending an NQA detection message, in response to events that have not received a reply within the preset time limit, the message traffic of the target interface is counted and the hardware performance utilization rate of the local device is obtained. If the hardware utilization rate is less than the second threshold, it is judged that the target network link is Down state.

Benefits of technology

It effectively reduces false alarms caused by instantaneous network congestion or device load, improves the accuracy of link Down state judgment, optimizes network maintenance efficiency, reduces unnecessary routing switching, and improves network stability and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966852A_ABST
    Figure CN119966852A_ABST
Patent Text Reader

Abstract

The invention provides a network detection method, device and equipment and a readable storage medium, and the method comprises the steps: transmitting a detection message through a target interface; in response to an event that the response message is not received within a preset time limit, counting the message flow of the target interface; in response to a statistical result that the message flow of the target interface is smaller than a first threshold value, acquiring a hardware performance utilization rate of the local equipment; and if the hardware utilization rate of the local equipment is smaller than a second threshold value, considering that the target network link is in an offline state. Through the technical scheme of the invention, when the response of the detection message is not received within the preset time limit, the link state is evaluated in combination with the target interface flow statistics and the hardware utilization rate of the local equipment, so that false alarms caused by instantaneous network congestion or equipment load are effectively reduced. According to the method, the accuracy of link offline state judgment is improved, the network maintenance efficiency is optimized, unnecessary route switching is reduced, and the network stability and the resource utilization rate are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of communication technology, and in particular to a network detection method, device, equipment and readable storage medium. Background Art

[0002] NQA sends probe messages to confirm whether the network link is working properly and judge the network quality accordingly. When the probe message fails to receive a response, NQA reports the link failure, which helps network administrators to find and solve the problem in a timely manner. However, the traditional NQA mechanism has certain limitations, especially in terms of false alarm rate. Although NQA is usually configured for 3-5 probes to reduce the possibility of false alarms, in some cases, even after multiple attempts, false alarms cannot be completely avoided. These false alarms not only increase the workload of network administrators, but may also cause unnecessary routing switches or network adjustments, thus affecting the overall network performance.

[0003] At present, the network environment is becoming increasingly complex, and different application scenarios have different requirements for network quality and response speed. For example, in high-availability demand scenarios, such as VRRP (Virtual Routing Redundancy Protocol) and RBM (Remote Business Management) modules, fast routing convergence is required to ensure service continuity and stability; while in other relatively stable network environments, more emphasis is placed on avoiding frequent routing switching to reduce the additional overhead caused by routing oscillation. In addition, with the influence of uncontrollable factors such as network delay, how to accurately identify real network failures has become a challenge.

[0004] Although existing technologies provide some solutions to the above problems, they often fail to fully consider the diverse networking requirements and complex network conditions. For example, the existing NQA mechanism mainly relies on the sending and receiving of a fixed number of probe messages to determine the link status, and lacks the ability to dynamically adapt to changes in actual business traffic and network environment. This results in that in certain situations, NQA may not accurately reflect the actual network status, which in turn affects the accuracy of decision-making. Summary of the invention

[0005] In view of this, the present specification provides a network detection method, device, electronic device, and readable storage medium to improve the problem of poor NQA detection effect.

[0006] The specific technical solutions are as follows:

[0007] The present specification provides a network detection method, which is applied to a network device, and the method includes: sending an NQA detection message associated with a target network link associated with the target interface through a target interface; in response to an event that a response message associated with the NQA detection message is not received within a preset time limit, counting the message traffic of the target interface; in response to a statistical result that the message traffic of the target interface is less than a first threshold, obtaining the hardware performance utilization rate of the local device; if the hardware utilization rate of the local device is less than a second threshold, the target network link is considered to be in a Down state.

[0008] As a technical solution, after the step of counting the message traffic of the target interface in response to the event that a response message associated with the NQA probe message is not received within a preset time limit, the step also includes: in response to the statistical result that the message traffic of the target interface is greater than or equal to a first threshold, determining the target network link and stopping sending the NQA probe message associated with the target network link.

[0009] As a technical solution, after the step of obtaining the hardware performance utilization rate of the local device in response to the statistical result that the message traffic of the target interface is less than the first threshold, it also includes: if the hardware utilization rate of the local device is greater than or equal to the second threshold, the hardware performance utilization rate of the local device is monitored, and in response to the event that the hardware utilization rate of the local device is reduced to less than the second threshold, the step of re-executing the step of sending the NQA detection message associated with the target network link associated with the target interface through the target interface.

[0010] As a technical solution, after the step of considering that the target network link is in the Down state if the hardware utilization rate of the local device is less than the second threshold, it also includes: in response to the event of receiving a reply message associated with the NQA probe message after a preset time limit, modifying and extending the preset time limit and lowering the priority of the target network link.

[0011] The present specification also provides a network detection device, which is applied to a network device, and the device includes: a first module, which is used to send an NQA detection message associated with a target network link associated with the target interface through a target interface; a second module, which is used to count the message traffic of the target interface in response to an event that a response message associated with the NQA detection message is not received within a preset time limit; a third module, which is used to obtain the hardware performance utilization rate of the local device in response to the statistical result that the message traffic of the target interface is less than a first threshold, if the hardware utilization rate of the local device is less than a second threshold, the target network link is considered to be in a Down state.

[0012] As a technical solution, after the second module executes the step of counting the message traffic of the target interface in response to the event that a response message associated with the NQA probe message is not received within a preset time limit, it also includes: the third module determines the target network link in response to the statistical result that the message traffic of the target interface is greater than or equal to a first threshold, and stops sending NQA probe messages associated with the target network link.

[0013] As a technical solution, after the third module executes the step of obtaining the hardware performance utilization rate of the local device in response to the statistical result that the message traffic of the target interface is less than the first threshold, it also includes: if the hardware utilization rate of the local device is greater than or equal to the second threshold, the third module monitors the hardware performance utilization rate of the local device, and in response to the event that the hardware utilization rate of the local device is reduced to less than the second threshold, the first module re-executes the step of sending the NQA detection message associated with the target network link associated with the target interface through the target interface.

[0014] As a technical solution, after the third module executes the step of considering that the target network link is in the Down state if the hardware usage rate of the local device is less than the second threshold, it also includes: the first module responds to the event of receiving a reply message associated with the NQA probe message after a preset time limit, modifies and extends the preset time limit, and lowers the priority of the target network link.

[0015] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned network detection method.

[0016] This specification also provides a readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the aforementioned network detection method.

[0017] The above technical solution provided in this specification brings at least the following beneficial effects:

[0018] When no response to the NQA probe message is received within the preset time limit, the link status is evaluated by combining the target interface traffic statistics and the local device hardware usage, effectively reducing false alarms caused by instantaneous network congestion or device load. This method improves the accuracy of link down status judgment, optimizes network maintenance efficiency, reduces unnecessary route switching, and improves network stability and resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.

[0020] Figure 1 is a flow chart of a network detection method in one implementation of this specification;

[0021] Figure 2 is a structural diagram of a network detection device in one implementation mode of this specification;

[0022] Figure 3 It is a hardware structure diagram of an electronic device in one implementation mode of this specification.

[0023] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION

[0024] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, rather than limiting this specification. The singular forms of "a", "said" and "the" used in this specification and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0025] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".

[0026] Network link detection is an important part of network maintenance. Its purpose is to detect the smoothness of the link so as to find faults in time and repair them. At present, network link detection mainly relies on network quality analysis (NQA) technology. NQA is a general network performance measurement tool that can detect link connectivity, delay, packet loss rate and other indicators by sending probe messages. However, the existing NQA technology has some problems in practical applications, especially in terms of adaptability in different networking environments.

[0027] When detecting link status, existing NQA technology usually configures multiple detections (such as 3-5 times) to reduce the probability of false alarms. However, even after multiple detections, false alarms may still occur. For example, when there is data traffic in the network, even if the NQA detection message does not receive a response, the link may still be normal. Such false alarms will cause network administrators to frequently perform unnecessary link switching operations, increasing maintenance costs and network instability.

[0028] Different network applications have different requirements for the sensitivity of link detection. For example, Virtual Router Redundancy Protocol (VRRP) and Router Backup Module (RBM) require fast routing convergence so that they can quickly switch to the backup link when a link fails. However, existing NQA technology is insufficient in sensitivity and cannot meet these high-demand application scenarios.

[0029] In the case of large network delays, existing NQA technology may not be able to accurately determine the link status. For example, when the timeout period of the probe message is set to a short time, the link may be mistakenly judged as unreachable, when in fact the link is just delayed. In this case, a mechanism that can dynamically adjust the timeout period is needed to more accurately reflect the actual status of the link.

[0030] Existing NQA technology may occupy a large amount of network resources during the detection process, especially when sending detection packets frequently. This not only increases the burden on the network, but may also affect other business traffic. In addition, when the CPU and memory utilization of the device is high, the detection packets may be discarded, thus affecting the accuracy of the detection results.

[0031] Existing NQA technologies lack flexibility in handling detection requirements in different networking environments. For example, for stable links forwarded through normal routing or policy routing, frequent switching is not required, but existing technologies cannot distinguish between these different scenarios, resulting in unnecessary link switching and network oscillation.

[0032] In summary, the existing NQA technology has many deficiencies in terms of false alarms, sensitivity, network delay, resource usage and flexibility, and cannot meet the high requirements for link detection in modern network environments. Therefore, a more intelligent, flexible and efficient link detection technology is needed to improve network stability and reliability, reduce false alarms, optimize the use of network resources, and better adapt to different networking environments and business needs.

[0033] In view of this, the present specification provides a network detection method, device, electronic device, and readable storage medium to improve at least one of the above technical problems.

[0034] The specific technical solution is described below.

[0035] In one embodiment, the present specification provides a network detection method, which is applied to a network device, and the method includes: sending an NQA detection message associated with a target network link associated with the target interface through a target interface; in response to an event in which a reply message associated with the NQA detection message is not received within a preset time limit, counting the message traffic of the target interface; in response to the statistical result that the message traffic of the target interface is less than a first threshold, obtaining the hardware performance utilization rate of the local device; if the hardware utilization rate of the local device is less than a second threshold, the target network link is considered to be in a Down state.

[0036] Specifically, Figure 1 , including the following steps:

[0037] Step S11: Sending, through the target interface, an NQA detection message associated with the target network link associated with the target interface.

[0038] Send an NQA probe message of the target network link associated with the interface through the target interface. This process is based on the standard operation of the NQA protocol and is intended to confirm whether the link is working properly. In an enterprise-level network environment, if the administrator wants to detect the link status from router A to server B, an NQA probe message will be sent to server B through an interface on router A.

[0039] Step S12: In response to the event that no response message associated with the NQA detection message is received within a preset time limit, counting the message flow of the target interface.

[0040] After sending the NQA probe message, the system will wait to receive the corresponding response message within the preset time limit. If no response message is received within this time, it means that there may be a link failure. At this time, unlike the traditional way of directly determining whether the link is Down, this method adopts a more detailed analysis strategy-counting the message traffic of the target interface. Specifically, it is to check whether there is data traffic passing through the interface and whether this traffic reaches a certain proportion (such as not less than 1% of the interface bandwidth). In the above example, even if there is no response from server B, if there is still significant data flow (such as video conferencing data) on the interface between router A and server B, it can be inferred that the link may actually be normal.

[0041] Step S13, in response to the statistical result that the packet flow of the target interface is less than the first threshold, obtaining the hardware performance utilization rate of the local device.

[0042] If the result of step S12 shows that the message flow of the target interface is lower than the set first threshold, this may indicate that there is indeed a problem with the link or that it is experiencing an abnormal condition. In this case, the method further analyzes and eliminates other potential causes by obtaining the hardware performance utilization of the local device. If the CPU occupancy rate of the network device exceeds 90%, then the failure to receive a response to the NQA probe message may be due to a processing delay caused by device overload rather than a real link failure. Therefore, by monitoring the usage of key hardware resources such as CPU and memory, it can help to diagnose the root cause of the problem more accurately.

[0043] Step S14: If the hardware usage of the local device is less than the second threshold, it is considered that the target network link is in the Down state.

[0044] Finally, if it is found in step S13 that the hardware usage of the local device is lower than the second threshold (for example, the CPU usage is lower than 90%), it can be relatively certain that the target network link is in the Down state. This means that the previous detection failure was not caused by the load of the device itself, but by an actual link failure. Assuming that in a redundant routing configuration deployed in a data center, if the main link fails but the backup link fails to take over in time, this method can quickly identify and switch to the backup path, thereby ensuring the continuity and stability of the service.

[0045] For example, a company's network center used this technical solution to maintain its core switch. When performing regular NQA detection, it was found that a certain important business link was unresponsive. According to the traditional method, this would immediately trigger a link down alarm. However, after adopting this method, the system not only checked the actual business traffic on the link (and found that there was a large amount of real-time transaction data transmission), but also monitored the CPU utilization of the switch (only 50%). Based on this information, the system intelligently decided not to adjust the link status, avoiding unnecessary route switching. Subsequently, after a period of observation, it was found that the problem was caused by temporary network congestion, rather than the failure of the link itself, which effectively reduced the occurrence of false alarms.

[0046] In one embodiment, the network device sends an NQA detection message associated with the target network link through the target interface. This process is a basic step in network link detection and is used to detect the connectivity of the link. For example, in a typical network environment, device A needs to detect the link status between it and device B. Device A sends an NQA detection message to device B through its interface (such as eth0).

[0047] If the response message corresponding to the NQA probe message is not received within the preset timeout period, the network device will count the message traffic of the target interface. The purpose of this step is to determine whether the link still has data transmission, even if the NQA probe message has not received a response. For example, after sending the probe message, device A waits for 3 seconds and still does not receive a response message from device B. At this time, device A starts to count the traffic of its interface eth0 to check whether there are any data packets transmitted through this interface.

[0048] If the packet flow of the target interface is less than the preset first threshold (such as 2% of the interface bandwidth), the device will further obtain the hardware performance utilization of the local device, including CPU and memory utilization. This step is used to determine whether the device fails to properly process the NQA probe message due to busy hardware. For example, device A finds that the traffic ratio of its interface eth0 is only 1.5%, which is far below the 2% threshold. At this time, device A detects that its CPU utilization is as high as 95%, indicating that the device may be too busy to process the probe message in time.

[0049] If the hardware performance utilization of the local device is less than the preset second threshold (such as CPU and memory utilization are both less than 20%), the target network link is considered to be in the Down state. This judgment is based on the final result after excluding hardware busyness and traffic interference. For example, after confirming that its CPU and memory utilization are both less than 20%, device A believes that the link is indeed unreachable, so it marks the link status as Down and notifies the relevant modules to adjust the route.

[0050] In one embodiment, after the step of counting the message traffic of the target interface in response to the event that a response message associated with the NQA probe message is not received within a preset time limit, the step further includes: in response to the statistical result that the message traffic of the target interface is greater than or equal to a first threshold, determining the target network link, and stopping sending the NQA probe message associated with the target network link.

[0051] If the statistics show that the packet flow of the target interface is greater than or equal to the set first threshold (for example, not less than 1% of the interface bandwidth), it can be inferred that the link is currently active and normal. At this time, the system will automatically determine that the target network link is available and immediately stop sending NQA detection packets for the link. This processing method not only reduces the number of detection packets in the network and reduces the additional network load, but also avoids the waste of network resources and potential performance impact caused by unnecessary detection activities.

[0052] Assume that in a large enterprise network environment, the network administrator configures NQA monitoring of key business links. During a routine detection process, the response to the NQA detection message of a certain important link was not received on time. According to the present technical solution, the system first checked the data traffic on the link and found that although the NQA detection failed, there was still a large amount of real-time data transmission on the interface (such as video conferencing, file transfer, etc.), and these flows exceeded the pre-set first threshold. Based on this observation, the system intelligently decided not to continue to perform NQA detection on the link, but directly confirmed that it was in normal working condition. The advantage of doing this is that it can not only ensure that business continuity is not disturbed, but also effectively utilize network resources and improve the overall network management efficiency.

[0053] In one embodiment, after the step of obtaining the hardware performance utilization rate of the local device in response to the statistical result that the message traffic of the target interface is less than the first threshold, the step also includes: if the hardware utilization rate of the local device is greater than or equal to the second threshold, monitoring the hardware performance utilization rate of the local device, and in response to the event that the hardware utilization rate of the local device decreases to less than the second threshold, re-executing the step of sending, through the target interface, an NQA detection message associated with the target network link associated with the target interface.

[0054] When the system detects that the packet flow of the target interface is less than the set first threshold, it will further obtain the hardware performance utilization of the local device. This process is to eliminate the possibility of NQA detection failure due to reasons such as device overload. If it is found that the hardware utilization of the local device is greater than or equal to the second threshold (for example, the CPU occupancy rate reaches 90%), it means that the current network device may be in a high load state, which may be one of the reasons for the failure to receive the NQA detection response in time.

[0055] In this case, the hardware performance utilization of the local device is continuously monitored. Once the hardware utilization is detected to be lower than the second threshold (i.e., the CPU occupancy rate drops below 90%), it is considered that the device has recovered from the high load state and has the ability to re-perform NQA detection. At this time, the system will automatically trigger the step of sending the NQA detection message of the target network link associated with the interface through the target interface again to re-evaluate the link status.

[0056] In a busy data center environment, suppose a core switch is performing large-scale data processing tasks, causing its CPU usage to soar to 95%, which in turn affects the NQA detection process, causing the detection request for a specific link to be unresponsive. According to the method of the present invention, the system first identifies the high load situation and stops further NQA detection operations to avoid increasing the burden on the equipment. Subsequently, the system enters a waiting state and continuously monitors the CPU usage. As the data processing task is completed, the CPU usage gradually drops to 85%, which is lower than the preset second threshold. At this point, the system automatically restarts the NQA detection process and resends the detection message to confirm the actual status of the link. This method not only avoids false alarms caused by temporary overload of the equipment, but also ensures that the link status information can be updated in a timely and accurate manner when network conditions permit, thereby improving the efficiency and reliability of network management.

[0057] In one embodiment, after the step of considering that the target network link is in the Down state if the hardware usage rate of the local device is less than the second threshold, the step also includes: in response to an event of receiving a reply message associated with the NQA probe message after a preset time limit, modifying and extending the preset time limit and lowering the priority of the target network link.

[0058] After determining that the hardware usage of the local device is lower than the set second threshold, if the target network link is still considered to be in the Down state, the system will further take additional measures to optimize network performance and improve the accuracy of fault detection. Specifically, after determining that the target network link is in the Down state, if a response message related to the previously sent NQA probe message is unexpectedly received after the preset time limit, this indicates that although the response was not received in time before, the current link may actually have a large network delay rather than being completely unreachable.

[0059] In this case, in response to this delayed response event, the system will automatically extend the preset NQA detection time limit (for example, from 2 seconds, 4 seconds to 8 seconds). In this way, it can better adapt to the larger delay situation in the actual network environment and reduce the misjudgment caused by short delays. Secondly, in order to prevent the impact of frequent delay problems on key businesses, the system will correspondingly reduce the priority of the target network link. This means that when selecting a network path, the link will no longer be the first choice, but will be used as a backup or secondary path, ensuring the stability and reliability of data transmission.

[0060] In an enterprise network environment, suppose that the administrator configures NQA monitoring for a key link connecting the headquarters and the branch office. During a routine detection process, although the hardware utilization rate of the equipment is normal, due to the large network delay, the response to the NQA probe message was not received on time, and the system initially determined that the link might be down. However, a late response message was indeed received later. At this time, according to the method of the present invention, the system will not only extend the waiting time for the next detection to adapt to the larger network delay, but also automatically adjust the priority of this link in the network routing so that it no longer undertakes the main data transmission task, but serves as a backup path. The advantage of doing this is that it can not only ensure that the quality of network services is not significantly affected, but also effectively utilize all available resources to improve the flexibility and stability of the overall network.

[0061] In one embodiment, Figure 2 This specification also provides a network detection device, which is applied to a network device, and the device includes: a first module, which is used to send an NQA detection message associated with a target network link associated with the target interface through a target interface; a second module, which is used to count the message traffic of the target interface in response to an event that a response message associated with the NQA detection message is not received within a preset time limit; a third module, which is used to obtain the hardware performance utilization rate of the local device in response to the statistical result that the message traffic of the target interface is less than a first threshold, if the hardware utilization rate of the local device is less than a second threshold, the target network link is considered to be in a Down state.

[0062] In one embodiment, after the second module executes the step of counting the message traffic of the target interface in response to the event that a response message associated with the NQA probe message is not received within a preset time limit, the step further includes: the third module determines the target network link in response to the statistical result that the message traffic of the target interface is greater than or equal to a first threshold, and stops sending the NQA probe message associated with the target network link.

[0063] In one embodiment, after the third module executes the step of obtaining the hardware performance utilization rate of the local device in response to the statistical result that the message traffic of the target interface is less than the first threshold, it also includes: if the hardware utilization rate of the local device is greater than or equal to the second threshold, the third module monitors the hardware performance utilization rate of the local device, and in response to the event that the hardware utilization rate of the local device is reduced to less than the second threshold, the first module re-executes the step of sending the NQA detection message associated with the target network link associated with the target interface through the target interface.

[0064] In one embodiment, after the third module executes the step of considering the target network link to be in the Down state if the hardware usage rate of the local device is less than the second threshold, it also includes: the first module responds to the event of receiving a reply message associated with the NQA probe message after a preset time limit, modifies and extends the preset time limit, and lowers the priority of the target network link.

[0065] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.

[0066] In one embodiment, this specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned network detection method. From a hardware level, the hardware architecture diagram can be seen in Figure 3 shown.

[0067] In one embodiment, the present specification provides a readable storage medium, wherein the readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned network detection method.

[0068] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0069] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0070] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0071] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0072] This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of 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 produce 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.

[0073] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0074] 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 executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0075] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0076] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A network detection method, characterized in that: Applied to a network device, the method comprises: Sending an NQA detection message associated with the target network link associated with the target interface through the target interface; In response to an event that a response message associated with the NQA probe message is not received within a preset time limit, counting message traffic of the target interface; In response to a statistical result that the packet flow of the target interface is less than a first threshold, obtaining a hardware performance usage rate of the local device; If the hardware usage of the local device is less than the second threshold, the target network link is considered to be in the Down state.

2. The method according to claim 1, characterized in that After the step of counting the message traffic of the target interface in response to the event that no response message associated with the NQA detection message is received within a preset time limit, the method further includes: In response to a statistical result that the packet flow of the target interface is greater than or equal to the first threshold, the target network link is determined, and the sending of NQA detection packets associated with the target network link is stopped.

3. The method according to claim 1, characterized in that After the step of obtaining the hardware performance utilization rate of the local device in response to the statistical result that the packet flow of the target interface is less than the first threshold, the method further includes: If the hardware utilization rate of the local device is greater than or equal to the second threshold, the hardware performance utilization rate of the local device is monitored, and in response to the event that the hardware utilization rate of the local device decreases to less than the second threshold, the step of sending an NQA detection message associated with the target network link associated with the target interface through the target interface is re-executed.

4. The method according to claim 1, characterized in that After the step of considering the target network link to be in the Down state if the hardware usage rate of the local device is less than the second threshold, the method further includes: In response to an event of receiving a response message associated with the NQA probe message after a preset time limit, the preset time limit is modified to be extended, and the priority of the target network link is lowered.

5. A network detection device, characterized in that: Applied to network equipment, the device comprises: The first module is used to send an NQA detection message associated with a target network link associated with the target interface through a target interface; The second module is used to count the message traffic of the target interface in response to the event that a response message associated with the NQA detection message is not received within a preset time limit; The third module is used to obtain the hardware performance utilization rate of the local device in response to the statistical result that the message flow of the target interface is less than the first threshold. If the hardware utilization rate of the local device is less than the second threshold, the target network link is considered to be in the Down state.

6. The device according to claim 5, characterized in that After the second module executes the step of counting the message traffic of the target interface in response to the event that a response message associated with the NQA detection message is not received within a preset time limit, the step further includes: The third module determines the target network link in response to the statistical result that the message flow of the target interface is greater than or equal to the first threshold, and stops sending the NQA detection message associated with the target network link.

7. The device according to claim 5, characterized in that After the third module executes the step of obtaining the hardware performance utilization rate of the local device in response to the statistical result that the packet flow of the target interface is less than the first threshold, the step further includes: If the hardware usage of the local device is greater than or equal to the second threshold, the third module monitors the hardware performance usage of the local device, and in response to the event that the hardware usage of the local device drops to less than the second threshold, the first module re-executes the step of sending an NQA probe message associated with the target network link associated with the target interface through the target interface.

8. The device according to claim 5, characterized in that After the third module executes the step of considering the target network link to be in the Down state if the hardware usage rate of the local device is less than the second threshold, the following steps are further included: The first module responds to an event of receiving a response message associated with the NQA probe message after a preset time limit, modifies and extends the preset time limit, and reduces the priority of the target network link.

9. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method described in any one of claims 1 to 4.

10. A readable storage medium, characterized in that: The readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement any one of the methods of claims 1-4.