An abnormal link determination method and device, electronic equipment and storage medium

By continuously sending monitoring request messages and combining the latency and packet loss rate of response messages, the problem of difficulty in identifying abnormal links during short-term network lag is solved, achieving more efficient link anomaly detection.

CN118175562BActive Publication Date: 2026-06-05RUIJIE NETWORKS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
RUIJIE NETWORKS CO LTD
Filing Date
2022-12-01
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing technologies cannot accurately identify abnormal links in short-term network lag scenarios, resulting in the inability to detect and resolve network lag issues in a timely manner.

Method used

By continuously sending monitoring request messages to the link under test, and combining the average latency and packet loss rate of the monitoring response messages, abnormal conditions of the link are determined. Different time intervals and frequencies are used to send monitoring request messages to adapt to the characteristics of wireless and wired links.

Benefits of technology

It improves the accuracy of identifying abnormal links, enabling the detection of link anomalies in a short time, solving the problem of difficulty in locating short-term lag, and enhancing the efficiency of network fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118175562B_ABST
    Figure CN118175562B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, in particular to an abnormal link determination method and device, electronic equipment and storage medium, to improve the accuracy of abnormal link determination. The method comprises the following steps: based on the attribute information of a to-be-detected link, continuously sending a monitoring request message to a monitoring terminal corresponding to the to-be-detected link, wherein the monitoring request message at least contains a service type corresponding to the to-be-detected link; based on the average time delay of each monitoring response message returned by the monitoring terminal, and in combination with the packet loss rate of each monitoring request message that has been sent, obtaining a detection result of the to-be-detected link under the corresponding service type. In this way, since the abnormal time interval of the abnormal link is short, when determining the detection result of the to-be-detected link under the corresponding service type, continuously sending the monitoring request message of the corresponding service type can determine whether the to-be-detected link is abnormal under the corresponding service type at a certain moment, thereby improving the accuracy of abnormal link determination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, electronic device and storage medium for determining abnormal links. Background Technology

[0002] With the rapid development of wireless communication network technology, wireless networks are becoming increasingly widespread, and wireless office work has become a common and agile way of working. Due to the special nature of wireless network deployment, wireless network communication involves not only wireless links but also wired links. An anomaly in any link can cause network lag. Therefore, to solve the problem of network lag, it is necessary to identify the abnormal link in order to find the cause of the lag.

[0003] In related technologies, when identifying abnormal links, it is usually done by manually sending Packet Internet Groper (PING) messages to check each link segment by segment during the time interval when the network is experiencing lag, in order to identify the abnormal links.

[0004] However, in short-term lag scenarios, because short-term lags recover in a relatively short time, the lag time interval is short. Therefore, it is impossible to check each link segment by segment within the lag time interval, thus making it impossible to identify the abnormal link. For example, if the lag time interval of a short-term lag is 2 minutes, the maintenance personnel receive the fault report and check each link segment by segment. Before they can find the abnormal link causing the lag, the investigation time has exceeded 2 minutes, and the short-term lag has recovered, making it impossible to identify the abnormal link.

[0005] Therefore, the accuracy of identifying abnormal links using related technologies needs further improvement. Summary of the Invention

[0006] This application provides a method, apparatus, electronic device, and storage medium for determining abnormal links, so as to improve the accuracy of abnormal link determination.

[0007] The specific technical solutions provided in this application are as follows:

[0008] Firstly, a method for determining abnormal links is provided, including:

[0009] Based on the attribute information of the link to be detected, monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected. The monitoring request message includes at least the service type corresponding to the link to be detected.

[0010] Based on the average latency of each monitoring response message returned by the monitoring terminal, and combined with the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is obtained.

[0011] Optionally, based on the attribute information of the link to be detected, monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected, including:

[0012] If the attribute information of the link to be detected is a wireless link, the physical address of the wireless access point is added to the monitoring request message, and monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset first time interval.

[0013] If the attribute information of the link to be detected is a wired link, the physical address of the target terminal is added to the monitoring request message, and monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset second time interval.

[0014] Optionally, based on the average latency of each monitoring response message returned by the monitoring terminal, and combined with the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is obtained, including:

[0015] If the attribute information of the link to be detected is a wireless link, and each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation of receipt of the monitoring request message, then the detection result of the link to be detected under the service type is determined based on the average latency of each first message;

[0016] If the attribute information of the link to be detected is a wired link, and each monitoring response message returned by the monitoring terminal includes a second message representing the reply to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

[0017] Optionally, based on the average latency of each first message, the detection result of the link to be detected under the service type is determined, including:

[0018] If the average latency of each first message is greater than the preset first latency threshold, then the detection result of the link to be detected under the service type is determined to be abnormal.

[0019] If the average latency of each first message is not greater than the preset first latency threshold, and each monitoring response message returned by the monitoring terminal also includes a second message representing the response to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

[0020] Optionally, based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined, including:

[0021] If the average latency of each second message is greater than the preset second latency threshold, or if the packet loss rate of each target monitoring request message is greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be abnormal.

[0022] If the average latency of each second message is not greater than the preset second latency threshold, and the packet loss rate of each target monitoring request message is not greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be normal.

[0023] Optionally, after obtaining the detection result of the link to be detected under the service type, the method further includes:

[0024] Store the data information of the link under test that indicates anomalies in the detection results;

[0025] Delete all second messages in each monitoring response message that represent the reply to the monitoring request message.

[0026] Secondly, an abnormal link determination device is provided, comprising:

[0027] The sending module is used to continuously send monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test. The monitoring request message shall at least include: the service type corresponding to the link under test.

[0028] The determination module is used to obtain the detection results of the link to be detected under the service type based on the average latency of each monitoring response message returned by the monitoring terminal and the packet loss rate of each monitoring request message that has been sent.

[0029] Optionally, when continuously sending monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test, the sending module is further configured to:

[0030] If the attribute information of the link to be detected is a wireless link, the physical address of the wireless access point is added to the monitoring request message, and monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset first time interval.

[0031] If the attribute information of the link to be detected is a wired link, the physical address of the target terminal is added to the monitoring request message, and monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset second time interval.

[0032] Optionally, when obtaining the detection result of the link to be detected under the service type based on the average latency of each monitoring response message returned by the monitoring terminal and the packet loss rate of each sent monitoring request message, the determining module is further configured to:

[0033] If the attribute information of the link to be detected is a wireless link, and each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation of receipt of the monitoring request message, then the detection result of the link to be detected under the service type is determined based on the average latency of each first message;

[0034] If the attribute information of the link to be detected is a wired link, and each monitoring response message returned by the monitoring terminal includes a second message representing the reply to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

[0035] Optionally, when determining the detection result of the link to be detected under the service type based on the average latency of each first message, the determining module is further configured to:

[0036] If the average latency of each first message is greater than the preset first latency threshold, then the detection result of the link to be detected under the service type is determined to be abnormal.

[0037] If the average latency of each first message is not greater than the preset first latency threshold, and each monitoring response message returned by the monitoring terminal also includes a second message representing the response to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

[0038] Optionally, when determining the detection result of the link to be detected under the service type based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the determining module is further configured to:

[0039] If the average latency of each second message is greater than the preset second latency threshold, or if the packet loss rate of each target monitoring request message is greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be abnormal.

[0040] If the average latency of each second message is not greater than the preset second latency threshold, and the packet loss rate of each target monitoring request message is not greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be normal.

[0041] Optionally, after obtaining the detection results of the link to be detected under the service type, the device further includes a processing module, which is used to:

[0042] Store the data information of the link under test that indicates anomalies in the detection results;

[0043] Delete all second messages in each monitoring response message that represent the reply to the monitoring request message.

[0044] Thirdly, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method described in any of the first aspects above.

[0045] Fourthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any of the first aspects above.

[0046] In this embodiment, based on the attribute information of the link to be detected, monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected. Each monitoring request message includes at least: the service type corresponding to the link to be detected; the average latency of each monitoring response message returned by the monitoring terminal; and the packet loss rate of each sent monitoring request message to obtain the detection result of the link to be detected under the corresponding service type. Thus, since the abnormal time interval of an abnormal link is relatively short, continuously sending monitoring request messages of the corresponding service type when determining the detection result of the link to be detected under each service type can improve the accuracy of abnormal link identification. Attached Figure Description

[0047] Figure 1 This is a schematic diagram of an application scenario in the embodiments of this application;

[0048] Figure 2 This is a flowchart illustrating an abnormal link determination method according to an embodiment of this application;

[0049] Figure 3 This is a schematic diagram of the process of sending a monitoring request message in an embodiment of this application;

[0050] Figure 4 This is a schematic diagram illustrating the sending of a monitoring request message in an embodiment of this application;

[0051] Figure 5A This is a schematic diagram of the process for obtaining the detection results of the wireless link in an embodiment of this application;

[0052] Figure 5B This is a schematic diagram of the process for obtaining the detection results of the wired link in an embodiment of this application;

[0053] Figure 6 This is a first schematic diagram illustrating the determination of the detection result of the link to be detected in an embodiment of this application;

[0054] Figure 7 This is a schematic diagram of the first process for obtaining the detection result of the link to be detected in an embodiment of this application;

[0055] Figure 8 This is a second schematic diagram illustrating the determination of the detection result of the link to be detected in an embodiment of this application;

[0056] Figure 9 This is a schematic diagram of the second process for obtaining the detection result of the link to be detected in an embodiment of this application;

[0057] Figure 10 This is a third schematic diagram illustrating the determination of the detection result of the link to be detected in this embodiment of the application;

[0058] Figure 11 This is a fourth schematic diagram illustrating the determination of the detection result of the link to be detected in this embodiment of the application;

[0059] Figure 12 This is a schematic diagram illustrating the process of storing data information and deleting each second message in an embodiment of this application;

[0060] Figure 13 This is a schematic diagram illustrating the storage of data information of the link to be detected in an embodiment of this application;

[0061] Figure 14 This is a schematic diagram illustrating the deletion of each second message in an embodiment of this application;

[0062] Figure 15 This is a schematic diagram of the vehicle lane change determination device in the embodiments of this application;

[0063] Figure 16 This is a schematic diagram of the structure of the electronic device in the embodiments of this application. Detailed Implementation

[0064] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0065] The following describes some of the concepts involved in the embodiments of this application.

[0066] (1) Wireless Access Point (AP): A wireless AP, also known as a session point or access bridge, is a wireless switch used in wireless networks. It is the core of a wireless network. A wireless AP is the access point for mobile computer users to access a wired network. It is mainly used in broadband homes, buildings and parks, and can cover tens to hundreds of meters.

[0067] (2) Target terminal: The target terminal is the wireless user terminal, that is, the user who accesses the wireless AP, such as a laptop, wireless network card, etc.

[0068] (3) Media Access Control (MAC) address: The MAC address is also called the LAN address, MAC address, Ethernet address, or physical address. It is an address used to identify the location of a network device.

[0069] (4) Packet Internet Groper (PING): A program used to test network connectivity. PING is a service command that works at the application layer in the TCP / IP network architecture. It mainly sends Internet Control Message Protocol (ICMP) request messages to a specific destination host to test whether the destination site is reachable and to understand the status information of the destination site.

[0070] (5) Acknowledge character (abbreviated as ACK): In data communication, a type of transmission control character sent by the receiving station to the sending station indicates that the data has been acknowledged to have been received without error.

[0071] (6) Processing device: used to send monitoring request messages and obtain the detection results of the link to be detected under the service type, for example, it may be an AP device.

[0072] (7) Monitoring terminal equipment: used to return monitoring response messages. The monitoring terminal equipment can be the target terminal, gateway, external network, etc.

[0073] The preferred embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0074] like Figure 1 The diagram illustrates an application scenario of this application. The application scenario diagram includes a processing device 110 and monitoring terminal devices 120 (including monitoring terminal devices 1201, 1202, ..., 120n). The processing device 110 and the monitoring terminal devices 120 are connected via a communication link. The processing device 110 sends monitoring request messages to the monitoring terminal devices 120, and the monitoring terminal devices 120 return monitoring response messages. Then, based on the average latency of each monitoring response message and the packet loss rate of each sent monitoring request message, the processing device 110 obtains the detection result of the link to be detected under the service type. Finally, it stores the data information of the links to be detected that exhibit abnormal detection results and restores the links to be detected that exhibit abnormal detection results.

[0075] In this embodiment, the monitoring terminal device 120 can be a wireless user terminal, gateway, external network, or other devices. The processing device 110 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. For example, it can be an AP device. This embodiment does not impose specific limitations here.

[0076] Based on the above embodiments, see Figure 2 The diagram shown is a flowchart illustrating an abnormal link determination method according to an embodiment of this application, specifically including:

[0077] Step 20: Based on the attribute information of the link to be detected, continuously send monitoring request messages to the monitoring terminal corresponding to the link to be detected.

[0078] The monitoring request message must include at least: the service type corresponding to the link to be monitored.

[0079] In this embodiment, the AP device continuously sends monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test.

[0080] The attribute information of the link to be detected includes at least: link type, which is divided into wireless link and wired link; the service type corresponding to the link to be detected includes at least: video stream, audio stream, normal stream and background stream, etc. The Differential Services Code Point (DSCP) field in the monitoring request message is changed so that the monitoring request message is sent with the corresponding service type.

[0081] Additionally, it should be noted that the monitoring request message can be an Internet Control Message Protocol (ICMP) request message, and the monitoring request message may also include: protocol type and identification information, etc., which are not limited in this embodiment.

[0082] Specifically, during step 20, the AP device performs the following operations. (See also...) Figure 3 As shown, this is a flowchart illustrating the process of sending a monitoring request message in an embodiment of this application. The following is a detailed explanation in conjunction with the attached diagram. Figure 3 The specific operations to be performed will be explained in detail:

[0083] Step 200: Determine whether the attribute information of the link to be detected is a wireless link. If yes, proceed to step 201; otherwise, proceed to step 202.

[0084] Step 201: Add the physical address of the wireless access point to the monitoring request message, and continuously send monitoring request messages to the monitoring terminal corresponding to the link to be detected according to the preset first time interval.

[0085] In this embodiment, it is determined whether the attribute information of the link to be detected is a wireless link. If the attribute information of the link to be detected is a wireless link, the physical address of the wireless access point is added to the monitoring request message to construct the monitoring request message. The monitoring request message is then continuously sent to the monitoring terminal corresponding to the link to be detected through air interface drive according to the preset first time interval.

[0086] The physical address can be a MAC address, and this application embodiment does not impose any restrictions on it.

[0087] For example, see Figure 4 The diagram shown is a schematic of sending monitoring request messages in an embodiment of this application. Assuming that the attribute information of the link to be detected 1 is a wireless link, the MAC address of the AP end, 00:26:9E:26:87:8C, is added to the monitoring request message 1. Within a preset first time interval of 5 seconds, at a frequency of 1 message per second, 5 monitoring request messages 1 containing video streams are continuously sent to the monitoring terminal 1 corresponding to the link to be detected 1 through air interface drive.

[0088] Furthermore, within the next 5-second time interval, at a frequency of 1 message per second, 5 monitoring request messages 3 containing audio streams are continuously sent to the monitoring terminal 1 corresponding to the link to be tested 1 via the air interface. Monitoring request messages are sent to the link to be tested under each service type in sequence, thereby determining the detection result of the link to be tested under the corresponding service type. In this way, it is ensured that anomalies of the link to be tested under each service type can be detected, and the accuracy of anomaly link identification is improved.

[0089] Additionally, it's worth noting that the first time interval and the frequency of monitoring request messages can be configured differently depending on the scenario.

[0090] Step 202: Add the physical address of the target terminal to the monitoring request message, and continuously send monitoring request messages to the monitoring terminal corresponding to the link to be detected according to the preset second time interval.

[0091] In this embodiment, it is determined whether the attribute information of the link to be detected is a wireless link. If the attribute information of the link to be detected is a wired link, the physical address of the target terminal is added to the monitoring request message to construct the monitoring request message. The monitoring request message is then continuously sent to the monitoring terminal corresponding to the link to be detected through air interface drive according to the preset second time interval.

[0092] The preset second time interval is longer than the preset first time interval.

[0093] For example, such as Figure 4 As shown, assuming the attribute information of the link to be detected 2 is a wired link, the MAC address of the target terminal 00:25:8D:25:88:42 is added to the monitoring request message 2. Within the preset second time interval of 10 seconds, at a frequency of 2 messages per second, 5 monitoring request messages 2 containing background streams are continuously sent to the monitoring terminal 2 corresponding to the link to be detected 2 through wired drive.

[0094] In this way, monitoring request messages of different service types are constructed at the wireless access point on the wireless link, and monitoring request messages of different service types are constructed at the target terminal on the wired link. The monitoring request messages of the constructed real terminal are used periodically and continuously to monitor the abnormal situation of the link under test, ensuring that the abnormality of the link under test can be detected in a short time. This solves the problem of difficulty in locating occasional stuttering in the existing wireless scenario, and also has a good location effect for stuttering faults of various service types.

[0095] Additionally, it's worth noting that wireless and wired links don't need to be detected simultaneously. In some scenarios, only the wireless link or only the wired link can be detected.

[0096] In this application embodiment, different detection strategies, detection precision, and detection methods are used to determine abnormal links in different scenarios. The detection strategies include at least: (1) for important customers, continuously detecting each link of a specific MAC address; (2) for a network site, such as a bank branch, continuously detecting the links of all terminals in a specific IP network segment; (3) for an AP group, such as a branch campus of a university, continuously detecting the links of all associated terminals in the AP group; (4) for small customers, such as a scenario with less than 2,000 small customers, detecting the links of all terminals in the entire network. The detection precision includes at least: (1) the types of monitoring request messages for wired and wireless links, which can be configured according to the needs of the scenario; (2) the granularity of sending monitoring request messages for wired and wireless links can be configured according to different scenarios. For example, in a large Layer 2 scenario, the monitoring request message for wired links is not sent according to each terminal, but is constructed according to each virtual local area network. The detection methods include at least: (1) passive triggering: the AP actively records the situation where the air interface sends a message but does not receive the terminal's confirmation, or actively records the situation where the air interface sends a message with a delayed confirmation, records the specific message and triggers active detection; (2) active detection: the AP periodically sends a monitoring request message to the terminal within a fixed monitoring range, or receives the terminal quality poor notification given by the passive triggering method and actively sends a monitoring request message. This application embodiment does not impose any restrictions on this.

[0097] Step 21: Based on the average latency of each monitoring response message returned by the monitoring terminal, and combined with the packet loss rate of each sent monitoring request message, obtain the detection result of the link to be detected under the service type.

[0098] Specifically, during step 21, when the attribute information of the link to be detected is a wireless link, the AP device performs the following operations. (See also...) Figure 5A As shown, this is a flowchart illustrating the process of obtaining the detection results of the wireless link in an embodiment of this application. The following is a detailed explanation in conjunction with the attached diagram. Figure 5A The specific operations to be performed will be explained in detail:

[0099] Step 211: Determine whether each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation that the monitoring request message has been received. If yes, proceed to step 212; otherwise, proceed to step 213.

[0100] Step 212: Based on the average latency of each first message, determine the detection result of the link to be detected under the corresponding service type.

[0101] In this embodiment of the application, it is determined whether the attribute information of the link to be detected is a wireless link, and whether each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation of receiving the monitoring request message. If the attribute information of the link to be detected is a wireless link, and each monitoring response message returned by the monitoring terminal includes: a first message, then the detection result of the link to be detected under the corresponding service type is determined based on the average latency of each first message.

[0102] The first message can be an ACK message, and this embodiment does not impose any restrictions on it.

[0103] For example, see Figure 6 As shown, this is a first schematic diagram for determining the detection result of the link to be detected in an embodiment of this application. Assuming that the attribute information of the link to be detected 1 is a wireless link, the monitoring response messages returned by the monitoring terminal 1 include: a first message. Based on each first message, the detection result of the link to be detected is determined.

[0104] Specifically, during step 212, the AP device performs the following operations. (See also...) Figure 7 As shown, this is a schematic diagram of the first process for obtaining the detection result of the link to be detected in an embodiment of this application. The following is a detailed explanation in conjunction with the attached diagram. Figure 7 The specific operations to be performed will be explained in detail:

[0105] Step 2120: Determine whether the average delay of each first message is greater than the preset first delay threshold. If yes, proceed to step 2121; otherwise, proceed to step 2122.

[0106] Step 2121: Determine that the detection result of the link to be tested is abnormal under the corresponding service type.

[0107] In this embodiment of the application, it is determined whether the average latency of each first message is greater than a preset first latency threshold. If the average latency of each first message is greater than the preset first latency threshold, the detection result of the link to be detected under the corresponding service type is determined to be abnormal.

[0108] For example, see Figure 8 As shown, this is a second schematic diagram for determining the detection result of the link to be detected in this embodiment of the application. Assuming that the service type of the monitoring request message sent by the AP device is video stream, the preset first latency threshold is 300ms, and the average latency of the first message returned by the monitoring terminal 4 is 400ms, then the average latency of each first message 400ms is greater than the preset first latency threshold of 300ms, and the detection result of the link to be detected under video stream is determined to be abnormal.

[0109] Step 2122: Determine whether the monitoring response messages returned by the monitoring terminal also include a second message representing the reply to the monitoring request message. If yes, proceed to step 2123; otherwise, proceed to step 2121.

[0110] Step 2123: Based on the average latency of each second message and the packet loss rate of each sent monitoring request message, determine the detection result of the link to be detected under the corresponding service type.

[0111] In this embodiment, it is determined whether the average latency of each first message is greater than a preset first latency threshold, and whether each monitoring response message returned by the monitoring terminal also includes a second message representing a reply to the monitoring request message. If the average latency of each first message is not greater than the preset first latency threshold, and each monitoring response message returned by the monitoring terminal also includes a second message representing a reply to the monitoring request message, then based on the average latency of each second message and combined with the packet loss rate of each sent monitoring request message, the detection result of the link to be detected is determined.

[0112] The second message can be an ICMP response message, and this embodiment does not impose any restrictions on it.

[0113] For example, such as Figure 8 As shown, assuming the preset first latency threshold is 300ms, the average latency of the first message returned by monitoring terminal 1 is 200ms, and each monitoring response message returned by monitoring terminal 1 also includes a second message, then the average latency of each first message, 200ms, is not greater than the preset first latency threshold of 300ms. Based on the average latency of each second message, combined with the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the corresponding service type is determined.

[0114] Step 213: Determine that the detection result of the link to be tested is abnormal under the corresponding service type.

[0115] In this embodiment of the application, it is determined whether the attribute information of the link to be detected is a wireless link, and whether each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation of receiving the monitoring request message, and a second message indicating reply to the monitoring request message. If the attribute information of the link to be detected is a wireless link, and the monitoring response messages returned by the monitoring terminal do not include the first message, then it is determined that the detection result of the link to be detected under the corresponding service type is abnormal.

[0116] For example, such as Figure 6 As shown, assuming the monitoring request message sent by the AP device contains an audio stream as the service type, the attribute information of the link to be tested 3 is a wireless link, and the monitoring response messages returned by the monitoring terminal 3 do not include the first message, then the detection result of the link to be tested under the audio stream is determined to be abnormal.

[0117] Specifically, during step 21, if the attribute information of the link to be tested is a wired link, the AP device performs the following operations. (See also...) Figure 5B As shown, this is a flowchart illustrating the process of obtaining the detection results of a wired link in an embodiment of this application. The following is a detailed explanation in conjunction with the attached diagram. Figure 5B The specific operations to be performed will be explained in detail:

[0118] Step 214: Determine whether each monitoring response message returned by the monitoring terminal includes: a second message representing the reply to the monitoring request message. If yes, proceed to step 215; otherwise, proceed to step 216.

[0119] Step 215: Based on the average latency of each second message and the packet loss rate of each sent monitoring request message, determine the detection result of the link to be detected under the corresponding service type.

[0120] In this embodiment, it is determined whether the attribute information of the link to be detected is a wireless link, and whether each monitoring response message returned by the monitoring terminal includes a second message representing the reply to the monitoring request message. If the attribute information of the link to be detected is a wired link, and each monitoring response message returned by the monitoring terminal includes a second message, then based on the average latency of each second message and combined with the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the corresponding service type is determined.

[0121] For example, such as Figure 6 As shown, assuming the attribute information of the link to be detected 2 is a wired link, the monitoring response messages returned by the monitoring terminal 2 include: the second message. Based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the corresponding service type is determined.

[0122] Specifically, when determining the detection result of the link to be detected under the corresponding service type based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the AP device performs the following operations. (See also...) Figure 9 As shown, this is a schematic diagram of the second process for obtaining the detection result of the link to be detected in an embodiment of this application. The following is a detailed explanation in conjunction with the attached diagram. Figure 9 The specific operations to be performed will be explained in detail:

[0123] Step 2150: Determine whether the average delay of each second message is not greater than the preset second delay threshold, and determine whether the packet loss rate of each sent monitoring request message is not greater than the preset packet loss rate threshold. If yes, proceed to step 2151; otherwise, proceed to step 2152.

[0124] Step 2151: Determine that the detection result of the link to be tested is normal under the corresponding service type.

[0125] In this embodiment of the application, it is determined whether the average latency of each second message is not greater than a preset second latency threshold, and whether the packet loss rate of each sent monitoring request message is not greater than a preset packet loss rate threshold. If the average latency of each second message is not greater than the preset second latency threshold, and the packet loss rate of each sent monitoring request message is not greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the corresponding service type is determined to be normal.

[0126] For example, see Figure 10 The diagram shown is a third schematic diagram for determining the detection result of the link to be detected in this embodiment of the application. Assuming that the service type of the monitoring request message sent by the AP device is normal flow, the preset second latency threshold is 350ms, the preset packet loss rate threshold is 20%, the average latency of each second message returned by the monitoring terminal 5 is 300ms, and the packet loss rate of each monitoring request message sent is 18%, then the average latency of each second message 300ms is not greater than the preset second latency threshold of 350ms, and the packet loss rate of each monitoring request message sent is 18% which is not greater than the preset packet loss rate threshold of 20%. Therefore, the detection result of the link to be detected under normal flow is determined to be normal.

[0127] For example, see Figure 11 The diagram shown is a fourth schematic diagram for determining the detection result of the link to be tested in this embodiment of the application. Assuming that the monitoring request message sent by the AP device contains an audio stream as the service type, the preset second latency threshold is 350ms, the preset packet loss rate threshold is 20%, the average latency of each second message returned by the monitoring terminal 6 is 300ms, and the packet loss rate of each sent monitoring request message is 17%, then the average latency of each second message 300ms is not greater than the preset second latency threshold of 350ms, and the packet loss rate of each sent monitoring request message 17% is not greater than the preset packet loss rate threshold of 20%, and the detection result of the link to be tested under the audio stream is determined to be normal.

[0128] Step 2152: Determine that the detection result of the link to be tested is abnormal under the corresponding service type.

[0129] In this embodiment of the application, it is determined whether the average latency of each second message is not greater than a preset second latency threshold, and whether the packet loss rate of each sent monitoring request message is not greater than a preset packet loss rate threshold. If the average latency of each second message is greater than the preset second latency threshold, or the packet loss rate of each sent monitoring request message is greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the corresponding service type is determined to be abnormal.

[0130] For example, such as Figure 10As shown, assuming the monitoring request message sent by the AP device contains a video stream service type, the preset second latency threshold is 350ms, the preset packet loss rate threshold is 20%, the average latency of each second message returned by monitoring terminal 1 is 360ms, and the packet loss rate of each sent monitoring request message is 19%, then the average latency of each second message 360ms is greater than the preset second latency threshold of 350ms, and the packet loss rate of each sent monitoring request message 19% is not greater than the preset packet loss rate threshold of 20%. Therefore, the detection result of the link under the video stream is determined to be abnormal.

[0131] For example, such as Figure 11 As shown, assuming the monitoring request message sent by the AP device contains a background flow service type, the preset second latency threshold is 350ms, the preset packet loss rate threshold is 20%, the average latency of each second message returned by monitoring terminal 2 is 300ms, and the packet loss rate of each sent monitoring request message is 30%, then the average latency of each second message 300ms is not greater than the preset second latency threshold of 350ms, and the packet loss rate of each sent monitoring request message 30% is greater than the preset packet loss rate threshold of 20%, thus determining that the detection result of the link to be detected under the background flow is abnormal.

[0132] In this way, by determining the detection results of the link under test from multiple perspectives, the accuracy of the detection is improved.

[0133] Step 216: Determine that the detection result of the link to be tested is abnormal under the corresponding service type.

[0134] In this embodiment of the application, it is determined whether each monitoring response message returned by the monitoring terminal includes a second message representing a response to the monitoring request message. If each monitoring response message returned by the monitoring terminal does not include a second message representing a response to the monitoring request message, then the detection result of the link to be detected under the corresponding service type is determined to be abnormal.

[0135] Furthermore, in this embodiment, after obtaining the detection results of the link to be detected under the corresponding service type, the data information of the link to be detected can be stored according to the detection results, and each second message can be deleted. (See [reference]). Figure 12 The diagram shown is a schematic representation of the process for storing data information and deleting each second message in an embodiment of this application. The following is a detailed explanation in conjunction with the attached diagram. Figure 12 Detailed explanation:

[0136] Step 22: Store the data information of the link to be tested that indicates anomalies in the detection results.

[0137] In this embodiment of the application, after obtaining the detection result of the link to be detected under the corresponding service type, it is determined whether the detection result is abnormal. If the detection result is abnormal, the data information of the link to be detected is stored; if the detection result is normal, it is not stored.

[0138] The data information includes at least: message data information of the link to be tested, buffer data information of the AP device, scheduling data information of the AP device, power saving data information of the monitoring terminal, etc., and this application embodiment does not impose any restrictions on this.

[0139] In addition, it is worth noting that data information can be judged and collected according to the abnormal type of the link to be detected. For example: (1) If the message contains a specific 0x88e, causing the terminal message to be lost and resulting in lag, then store the message data information of the link to be detected; (2) If the 60-byte roaming message of the terminal is discarded by the intermediate network, causing lag, then store the message data information of the link to be detected; (3) If the device thinks that the terminal is abnormally power-saving at a certain moment, causing the terminal message to be discarded, then store the power-saving data information of the terminal being monitored, such as the power-saving queue status, the number of power-saving messages, the number of times the terminal saves power, etc.; (4) If the device's own buffer is abnormal, causing packet sending failure, then store the buffer data information of the AP device; (5) If the terminal lags intermittently, the reason is that the device's fair scheduling algorithm is unreasonable, then store the scheduling data information of the AP device, as well as the underlying message statistics of each terminal at this time; (6) If the device occasionally sends packets abnormally, then store the packet statistics and placeholders of the host and target ends of the driver, as well as the information of each register.

[0140] For example, see Figure 13 The diagram shown is a schematic of storing the data information of the link to be tested in an embodiment of this application. If the detection result of the link to be tested 1 is abnormal, the data information of the link to be tested 1 will be stored. If the detection result of the link to be tested 2 is normal, the data information of the link to be tested 2 will not be stored.

[0141] In this way, the data information of the detected link that indicates anomalies in the detection results is stored. When the object reports a fault, the abnormal link and the corresponding data information of the abnormal link when the anomaly occurred can be quickly found through the archive, thereby determining the cause of the anomaly.

[0142] Step 23: Delete each second message in each monitoring response message that represents a reply to the monitoring request message.

[0143] In this embodiment of the application, after obtaining the detection results of the link to be detected under the corresponding service type, each second message representing the reply to the monitoring request message in each monitoring response message is deleted.

[0144] For example, see Figure 14The diagram shown is a schematic of deleting each second message in an embodiment of this application. The identification information contained in the sent monitoring request message is 8080. Each second message in the monitoring response message returned by the monitoring terminal 2, which represents the reply to the monitoring request message, contains the identification information 8080. Each second message is then deleted.

[0145] This avoids the second message from the wireless link polluting the wired link, and the second message from the wired link polluting the wireless link, thus reducing the number of messages and alleviating the network burden.

[0146] Based on the same inventive concept, this application also provides an abnormal link determination device, see reference. Figure 15 The diagram shown is a structural schematic of the abnormal link determination device in an embodiment of this application, specifically including:

[0147] The sending module 1501 is used to continuously send monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test. The monitoring request message includes at least the service type corresponding to the link under test.

[0148] The determination module 1502 is used to obtain the detection result of the link to be detected under the service type based on the average latency of each monitoring response message returned by the monitoring terminal and the packet loss rate of each monitoring request message sent.

[0149] Optionally, when continuously sending monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test, the sending module 1501 is further configured to:

[0150] If the attribute information of the link to be detected is a wireless link, the physical address of the wireless access point is added to the monitoring request message, and monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset first time interval.

[0151] If the attribute information of the link to be detected is a wired link, the physical address of the target terminal is added to the monitoring request message, and monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset second time interval.

[0152] Optionally, when obtaining the detection result of the link to be detected under the service type based on the average latency of each monitoring response message returned by the monitoring terminal and the packet loss rate of each sent monitoring request message, the determining module 1502 is further used to:

[0153] If the attribute information of the link to be detected is a wireless link, and each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation of receipt of the monitoring request message, then the detection result of the link to be detected under the service type is determined based on the average latency of each first message;

[0154] If the attribute information of the link to be detected is a wired link, and each monitoring response message returned by the monitoring terminal includes a second message representing the reply to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

[0155] Optionally, when determining the detection result of the link to be detected under the service type based on the average latency of each first message, the determining module 1502 is further configured to:

[0156] If the average latency of each first message is greater than the preset first latency threshold, then the detection result of the link to be detected under the service type is determined to be abnormal.

[0157] If the average latency of each first message is not greater than the preset first latency threshold, and each monitoring response message returned by the monitoring terminal also includes a second message representing the response to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

[0158] Optionally, when determining the detection result of the link to be detected under the service type based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the determining module 1502 is further configured to:

[0159] If the average latency of each second message is greater than the preset second latency threshold, or if the packet loss rate of each target monitoring request message is greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be abnormal.

[0160] If the average latency of each second message is not greater than the preset second latency threshold, and the packet loss rate of each target monitoring request message is not greater than the preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be normal.

[0161] Optionally, after obtaining the detection results of the link to be detected under the service type, the device further includes a processing module 1503, which is used for:

[0162] Store the data information of the link under test that indicates anomalies in the detection results;

[0163] Delete all second messages in each monitoring response message that represent the reply to the monitoring request message.

[0164] Based on the above embodiments, see Figure 16 The diagram shown is a structural schematic of the electronic device in an embodiment of this application.

[0165] This application provides an electronic device that may include a processor 1610 (Center Processing Unit, CPU), a memory 1620, an input device 1630, and an output device 1640. The input device 1630 may include a keyboard, a mouse, a touch screen, etc., and the output device 1640 may include a display device, such as a liquid crystal display (LCD) or a cathode ray tube (CRT).

[0166] The memory 1620 may include read-only memory (ROM) and random access memory (RAM), and provides the processor 1610 with program instructions and data stored in the memory 1620. In this embodiment, the memory 1620 may be used to store the program of any abnormal link determination method in this embodiment.

[0167] The processor 1610 executes any of the abnormal link determination methods in the embodiments of this application according to the program instructions stored in the memory 1620.

[0168] Based on the above embodiments, this application provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the abnormal link determination method in any of the above method embodiments.

[0169] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied 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.

[0170] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0171] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0172] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0173] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for determining abnormal links, characterized in that, include: Based on the attribute information of the link to be detected, monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected. The attribute information includes at least the link type corresponding to the link to be detected, which includes wired links and wireless links. The time interval for sending the monitoring request messages is set based on the attribute information of the link to be detected. The monitoring request messages include at least the service type corresponding to the link to be detected. Based on the average latency of each monitoring response message returned by the monitoring terminal, and combined with the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is obtained.

2. The method as described in claim 1, characterized in that, Based on the attribute information of the link to be detected, monitoring request messages are continuously sent to the monitoring terminal corresponding to the link to be detected, including: If the attribute information of the link to be detected is a wireless link, then the physical address of the wireless access point is added to the monitoring request message, and the monitoring request message is continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset first time interval. If the attribute information of the link to be detected is a wired link, the physical address of the target terminal is added to the monitoring request message, and the monitoring request message is continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset second time interval.

3. The method as described in claim 1 or 2, characterized in that, The method of obtaining the detection result of the link to be detected under the service type based on the average latency of each monitoring response message returned by the monitoring terminal and the packet loss rate of each sent monitoring request message includes: If the attribute information of the link to be detected is a wireless link, and each monitoring response message returned by the monitoring terminal includes: a first message indicating confirmation of receipt of the monitoring request message, then the detection result of the link to be detected under the service type is determined based on the average latency of each first message; If the attribute information of the link to be detected is a wired link, and each monitoring response message returned by the monitoring terminal includes a second message representing the reply to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

4. The method as described in claim 3, characterized in that, The step of determining the detection result of the link to be detected under the service type based on the average latency of each first message includes: If the average latency of each first message is greater than a preset first latency threshold, then the detection result of the link to be detected under the service type is determined to be abnormal. If the average latency of each first message is not greater than a preset first latency threshold, and each monitoring response message returned by the monitoring terminal further includes a second message representing a reply to the monitoring request message, then based on the average latency of each second message and the packet loss rate of each sent monitoring request message, the detection result of the link to be detected under the service type is determined.

5. The method as described in claim 4, characterized in that, The determination of the detection result of the link to be detected under the service type, based on the average latency of each second message and the packet loss rate of each sent monitoring request message, includes: If the average delay of each second message is greater than a preset second delay threshold, or if the packet loss rate of each sent monitoring request message is greater than a preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be abnormal. If the average delay of each second message is not greater than a preset second delay threshold, and the packet loss rate of each sent monitoring request message is not greater than a preset packet loss rate threshold, then the detection result of the link to be detected under the service type is determined to be normal.

6. The method as described in claim 3, characterized in that, After obtaining the detection result of the link to be detected under the service type, the method further includes: Store the data information of the link under test that indicates anomalies in the detection results; Delete each second message in each monitoring response message that represents a reply to the monitoring request message.

7. An abnormal link determination device, characterized in that, include: The sending module is used to continuously send monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test. The attribute information includes at least: the link type corresponding to the link under test, the link type includes wired link and wireless link. The time interval for sending the monitoring request message is set based on the attribute information of the link under test. The monitoring request message includes at least: the service type corresponding to the link under test and the physical address of the terminal corresponding to the link under test. The determination module is used to obtain the detection result of the link to be detected under the service type based on the average latency of each monitoring response message returned by the monitoring terminal and the packet loss rate of each monitoring request message sent.

8. The apparatus as claimed in claim 7, characterized in that, When continuously sending monitoring request messages to the monitoring terminal corresponding to the link under test based on the attribute information of the link under test, the sending module is further configured to: If the attribute information of the link to be detected is a wireless link, then the physical address of the wireless access point is added to the monitoring request message, and the monitoring request message is continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset first time interval. If the attribute information of the link to be detected is a wired link, the physical address of the target terminal is added to the monitoring request message, and the monitoring request message is continuously sent to the monitoring terminal corresponding to the link to be detected according to the preset second time interval.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1-6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.