A network quality detection method, device, computer equipment and storage medium

By detecting the network quality between the terminal device and the target network device, and the network quality between the target network device and the application server, and displaying this information on the network detection page, the problem of VPN network problems that cannot be reproduced on-site location is solved, and the troubleshooting efficiency and network connection stability are improved.

CN118646674BActive Publication Date: 2025-04-01BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410781133.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2025-04-01
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

After problems occur in the VPN network, the on-site situation cannot be reproduced and the problem is located, and the administrator needs to remotely access the user's terminal equipment for troubleshooting, resulting in very low efficiency.

Method used

By obtaining the network quality detection request of the terminal device, determine the target network device currently connected to the terminal device, detect the network quality between the terminal device and the target network device, and the network quality between the target network device and the application server, and display these information on the network detection page.

Benefits of technology

Real-time monitoring of network quality between terminal equipment and target network equipment is achieved, timely discover network problems, accurately locate the source of problems, improve the investigation efficiency, and provide network quality information through visual means to assist users in coordinating the remote access of terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646674B_ABST
    Figure CN118646674B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of network communications, and specifically to a method, device, computer equipment and storage medium for detecting network quality. The method provided by the present disclosure detects the network quality of the line between the terminal device and the target network device, as well as the network quality of the line between the target network device and the target application server. This helps the user understand the quality of the current network of the terminal device, so that the line with poor current network quality can be quickly located, and is also conducive to subsequent problem detection and network optimization. Then, by displaying the quality of different network links on the network detection page, the user can intuitively understand the status of the network connection. Even if the problem site cannot be reproduced, the source of the problem can be determined based on the results of the network quality detection, thereby improving the troubleshooting efficiency. At the same time, it solves the problem of being unable to reproduce the on-site situation and locate the problem when a problem occurs in the VPN network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network communications, and in particular to a method, device, computer equipment and storage medium for detecting network quality. Background Art

[0002] A Virtual Private Network (VPN) is a network that establishes an encrypted channel through a public network (such as the Internet) to achieve remote access and secure data transmission. VPN can create an encrypted tunnel on a public network, allowing users to securely access resources within a private network through the Internet while ensuring the confidentiality and integrity of data transmission.

[0003] At present, faults may occur due to various reasons during the use of VPN clients, such as network failure, configuration error, network environment, etc. In order to more effectively solve the VPN client fault reporting problem, it is necessary to quickly determine whether the user fault is caused by terminal failure or network failure. However, during the user's use of VPN, there is a lack of administrators on site to conduct timely troubleshooting. Moreover, VPN network problems are time-sensitive, because after the problem occurs, it is impossible to reproduce the on-site situation and locate the problem. In addition, in order to analyze the current network quality of the user's terminal device, the administrator needs to remotely access the user's terminal device for troubleshooting, which results in low efficiency. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a network quality detection method, apparatus, computer equipment and storage medium to solve the problem that after a VPN network problem occurs, it is impossible to reproduce the on-site situation and locate the problem, and the administrator needs to remotely access the user's terminal device for troubleshooting, resulting in very low efficiency.

[0005] Obtain a network quality detection request for a terminal device;

[0006] In response to the network quality detection request, determining a target network device to which the terminal device is currently connected based on the network connection status of the terminal device;

[0007] Detecting the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and detecting the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition;

[0008] Based on the network detection page, a first network quality condition of the line between the terminal device and the target network device and a second network quality condition of the line between the target network device and the target application server are displayed.

[0009] In a second aspect, an embodiment of the present disclosure provides a device for detecting network quality, the device comprising:

[0010] An acquisition module, used to acquire a network quality detection request for a terminal device;

[0011] A response module, used to respond to the network quality detection request and determine a target network device to which the terminal device is currently connected based on the network connection status of the terminal device;

[0012] A detection module, configured to detect the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and to detect the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition;

[0013] The processing module is used to display a first network quality status of a line between the terminal device and the target network device and a second network quality status of a line between the target network device and the target application server based on a network detection page.

[0014] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding implementation manner thereof.

[0016] The method provided by the present disclosure monitors the network quality between the terminal device and the target network device in real time, including indicators such as delay and packet loss rate, so as to promptly discover network problems. By detecting the network quality between the terminal device and the target network device, as well as the network quality between the target network device and the application server, it helps to locate the problem more accurately. In addition, the network detection page can intuitively display the network quality of the line between the terminal device and the target network device, as well as the line between the target network device and the application server, so that the user can check the terminal device without on-site operation, thereby improving the troubleshooting efficiency.

[0017] The present invention detects the network quality of the line between the terminal device and the target network device, as well as the network quality of the line between the target network device and the target application server. This helps the user understand the quality of the current network of the terminal device, so that the line with poor current network quality can be quickly located, and is also conducive to subsequent problem detection and network optimization. Then, by displaying the quality of different network links on the network detection page, the user can intuitively understand the status of the network connection. Even if the problem site cannot be reproduced, the source of the problem can be determined based on the results of the network quality detection, thereby improving the troubleshooting efficiency. The problem of being unable to reproduce the on-site situation and locate the problem when a problem occurs in the VPN network is solved. In addition, by providing the network quality to the user in a visual manner, it can help the user coordinate the remote access of the terminal device and improve the stability and efficiency of the network connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 is a schematic diagram of a network architecture according to some embodiments of the present disclosure;

[0020] Figure 2 is a flowchart of a method for detecting network quality according to some embodiments of the present disclosure;

[0021] Figure 3 is a schematic diagram of a configuration interface according to some embodiments of the present disclosure;

[0022] Figure 4 is a schematic diagram of an application information input interface according to some embodiments of the present disclosure;

[0023] Figure 5 is a schematic diagram of an effective area configuration interface according to some embodiments of the present disclosure;

[0024] Figure 6 is a schematic diagram of an alarm parameter configuration interface according to some embodiments of the present disclosure;

[0025] Figure 7 is a schematic diagram of a validation object configuration interface according to some embodiments of the present disclosure;

[0026] Figure 8 is a schematic diagram of the structure of a target network according to some embodiments of the present disclosure;

[0027] Fig. 9 is a schematic diagram of the structure of a target network according to some embodiments of the present disclosure;

[0028] Fig.10 is a schematic diagram of the effect of abnormal network quality conditions according to some embodiments of the present disclosure;

[0029] Fig.11 is a schematic diagram of the effect of normal network quality according to some embodiments of the present disclosure;

[0030] Fig.12 is a display effect diagram of a network detection page according to some embodiments of the present disclosure;

[0031] Fig.13 is a flowchart of a method for detecting network quality according to some embodiments of the present disclosure;

[0032] Fig.14 is a display effect diagram of a first line as a target object according to some embodiments of the present disclosure;

[0033] Fig.15 is a display effect diagram of a target object being an aggregated line according to some embodiments of the present disclosure;

[0034] Fig.16 is a display effect diagram of an application server as a target object according to some embodiments of the present disclosure;

[0035] Fig.17 is a display effect diagram of detailed information corresponding to an application icon according to some embodiments of the present disclosure;

[0036] Fig.18 is a flowchart of a method for detecting network quality according to some embodiments of the present disclosure;

[0037] Fig.19 is a structural block diagram of a network quality detection device according to an embodiment of the present disclosure;

[0038] Fig. 20 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0040] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.

[0041] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0042] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition, use, storage or deletion of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0043] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scopes of use, usage scenarios, etc. of the information involved in the present disclosure should be informed to relevant users and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. The relevant users may include any type of right holders, such as individuals, enterprises, and groups.

[0044] For example, in response to receiving an active request from a user, a prompt message is sent to the relevant user to clearly prompt the relevant user that the operation requested to be performed will require obtaining and using the information of the relevant user, so that the relevant user can independently choose whether to provide information to software or hardware such as an electronic device, application, server or storage medium that executes the operation of the technical solution of the present disclosure based on the prompt message.

[0045] As an optional but non-limiting implementation, in response to receiving an active request from a relevant user, a prompt message is sent to the relevant user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to select "agree" or "disagree" to provide information to the electronic device.

[0046] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0047] Office security usually involves the security management of networks, identities, and terminals. By implementing private network networking, access control, terminal management in private networks, and information security protection, digital office can be made safer, more efficient, and easier to use. Security management at the network level can ensure that private networks such as office networks can operate safely and efficiently, thereby ensuring that business data can be safely transmitted and stored. Security management at the identity level can improve the efficiency and security of identity authentication for users accessing private networks. Security management at the terminal level can achieve unified management of terminal devices within the private network, data leakage prevention, and terminal threat protection, thereby ensuring the security of corporate data.

[0048] In actual applications, the security management of networks, identities, and terminals can achieve technical linkage in multiple technical branches such as networking strategies, network access and control, remote access, unified terminal management, terminal detection and response, enterprise data leakage prevention, and identity authentication management, making digital office simpler, more efficient, and easier to implement.

[0049] Combined with reference Figure 1 , is a schematic diagram of a network architecture provided by an embodiment of the present disclosure, Figure 1 The network architecture shown includes: a terminal device 101, a router 102, a VPN server 103 and multiple application servers. Multiple applications to be tested for network quality are deployed on the terminal device 101, and the applications to be tested for network quality on the terminal device are divided into two types, namely Internet applications and private network applications. A client of a security management application is installed on the terminal device 101, and the client is used to perform network quality detection when the terminal device is in different network connection conditions, and display the network quality detection results. Specifically, the operator opens the security management application client and logs in to the application interface. The function option showing network quality detection is found on the interface, which is usually displayed in the form of a button, menu or link. The operator uses a mouse, touch screen or other input device to click on the corresponding network quality detection function option. The click operation triggers the security management application client to start testing the network quality of each line and application server in the target network. The client will display real-time feedback information during the detection process, including network quality indicators such as delay and packet loss rate. After the detection is completed, the client may display the detection results to the operator in the form of a chart or text to let him understand the quality of the target network. Based on this, the security management application can help users detect and manage the security and quality of network connections, promptly discover and solve network problems, and improve the network connection reliability and stability of the terminal device 101.

[0050] Among them, for Internet applications, first, the terminal device 101 is connected to the router 102 to ensure that the terminal device 101 is in a state of connecting to the local area network, that is, when the terminal device is successfully connected to the router, it will obtain an IP address assigned by the router and join the local area network (LAN) provided by the router. At this time, the terminal device 101 can access the application server through the local area network. When performing network quality detection, the client of the security management application installed on the terminal device 101 sends a quantity packet for detecting network quality to the router 102, and then the router 102 forwards the quantity packet to the corresponding application server to complete the network quality detection.

[0051] For private network applications, first, the terminal device 101 is connected to the router 102, and a connection is established between the router 102 and the VPN server to ensure that the terminal device 101 is in a state of connecting to the VPN network. Then, the client of the security management application installed on the terminal device 101 sends a data packet for detecting the network quality to the router 102, and then the router 102 forwards the data packet to the VPN server 103. Finally, the VPN server 103 forwards the data packet to the corresponding application server to complete the network quality detection. Figure 1 The network architecture shown can ensure that users can perform network quality detection on Internet applications and private network applications.

[0052] It should be noted that in the corporate office scenario, LAN refers to the local network within the enterprise. The LAN is used to connect various devices in the office area, such as computers, printers, IP phones, etc., and provides high-speed, secure, and reliable internal network communications for the above devices. In the corporate office scenario, the VPN network can connect remote users or corporate branches to the corporate internal LAN through a public network (such as the Internet), achieving remote access and secure data transmission functions.

[0053] The following is an explanation of the above network framework through a specific application scenario:

[0054] For LAN access to application servers: suppose a company has multiple departments, each department has its own office area, and each office area has a LAN. In this case, if an employee of a department needs to access a server of an Internet application, he or she can directly access it through the LAN of the office area where he or she is located. For private network (VPN) access to application servers: suppose that some employees of the company need to remotely access the company's internal application servers from other locations. In this case, using a LAN is not feasible because they are not in the company's internal network environment. At this time, employees outside can connect to the company's network through a private network (VPN) and then access the application server. For example, after an employee connects to the company's network through a VPN at home, he or she can access the company's data management system. This method provides a secure remote access method, allowing employees to still access the company's internal system when working from other locations.

[0055] By deploying a security management application client on the user's terminal device, the present application can detect the network quality of the line between the terminal device and the network device to which it is connected, as well as the network quality of the line between the network device and its corresponding target application server when the user's terminal device is in different network connection conditions, and display the detection results on the client's network detection page.

[0056] According to an embodiment of the present disclosure, a network quality detection method, apparatus, computer device and storage medium are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0057] In this embodiment, a method for detecting network quality is provided. The method provided in the embodiment of the present disclosure is applied to a client of a security management application deployed on a terminal device in the above network architecture. Figure 2 is a flow chart of a method for detecting network quality according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:

[0058] Step S11, obtaining a network quality detection request for a terminal device.

[0059] In the embodiments of the present disclosure, Figure 2As shown, the operator can log in to the client of the security management application on the terminal device, which can be a computer, a smart phone, etc. The client of the security management application displays a function option of network quality detection. Based on this, the operator's click operation based on the function option can be detected, and the network quality detection of each line and application server in the target network can be triggered by the click operation. The click operation refers to the operator using an input device such as a mouse or a touch screen to perform an operation by clicking on the function option. For example, the operator can move the mouse cursor to the network quality detection option and then press the left mouse button to click the option. When the operator clicks the network quality detection option, a network quality detection request will be constructed, and the request contains the parameters of each device line and application server in the target network, such as IP address, port number, etc. The network quality detection operation will be performed later according to the parameters in the request. The detection operation includes sending some specific data packets to each line and application server, and evaluating the network quality by measuring the round-trip time, packet loss rate, jitter, etc. of the data packets.

[0060] The round-trip time of a data packet refers to the time from sending a data packet to receiving the corresponding confirmation packet. For example, in the above network architecture, the data packet is sent from the terminal device to the router, and then returned from the router to the terminal device. The time spent in this whole process is the round-trip time. The round-trip time is usually used to measure the delay in the network. It is an important indicator for evaluating network performance and is used to measure the response speed and stability of the network.

[0061] Packet loss rate refers to the ratio of the number of data packets lost during data transmission to the total number of data packets sent. During network communication, data packets may be lost due to various reasons, such as network congestion, router failure, etc. Packet loss rate is an important indicator to measure network quality and stability. A high packet loss rate will slow down network transmission speed, affecting user experience and data integrity.

[0062] Jitter refers to the delay variation or instability of network data packets during transmission. Even if the round-trip time is consistent, if the arrival time of the data packet is unstable, it will cause jitter. Jitter is used to describe the stability of network performance. High jitter will affect the effectiveness of real-time communication and multimedia applications. Therefore, jitter in the network should be reduced as much as possible to ensure the stability and reliability of data transmission.

[0063] Step S12, responding to the network quality detection request, and determining the target network device to which the terminal device is currently connected based on the network connection status of the terminal device.

[0064] In the embodiment of the present disclosure, the network device includes: a router and a VPN server, and the target application server includes: a first application server and a second application server. The first application server associated with the router and the second application server associated with the VPN server are pre-configured. The specific configuration process is as follows: First, pre-configure the application to be tested for network quality. Then obtain the configuration request triggered by the operator, and display the configuration interface based on the configuration request, such as Figure 3 As shown, the configuration interface displays an "Add Application" option, detects a click operation on the "Add Application" option, and displays an application information input interface, such as Figure 4 As shown in the figure, the application information input interface displays multiple configuration items, namely, application name, application type, application address, application port, effective area, etc. Among them, the application type includes private network application or Internet application. The application address can be a domain name or an IP address. Figure 5 As shown, the effective area can be specified globally or in a specific geographical location. When a specific geographical location is selected, a region list is displayed, and the corresponding continent / country exists in the region list. Multiple selection is supported. If continent A is selected in the first-level unit, all regions in continent A in the second-level unit will be selected.

[0065] Next, configure the alarm parameters from the terminal device to the router, the alarm parameters from the router to the VPN server, and the alarm parameters from the router to the application server to which the application to be tested for network quality belongs (such as Figure 6 In addition, you can also select "Effective Object", which can be understood as the terminal device that performs network detection in the target network. Figure 7 As shown, the effective objects can be determined based on departments and roles. Different detection methods can be set for different objects to meet different needs and requirements.

[0066] Finally, after completing the configuration, the first application server associated with the router and the second application server associated with the VPN server can be determined. The first application server is the server corresponding to the configured Internet application that requires network quality detection, and the second application server is the server corresponding to the configured private network application that requires network quality detection.

[0067] Based on this, it can be determined that the network connection conditions include: connecting to a local area network and connecting to a VPN network. According to the network connection conditions, the target network device currently connected to the terminal device is determined from the target network, including: if the network connection condition is connecting to a local area network, the target network device is a router; if the network connection condition is connecting to a VPN network, the target network device is a VPN server.

[0068] Step S13, detecting the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and detecting the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition.

[0069] In one embodiment of the present disclosure, the line between the terminal device and the target network device can be a wired line or a wireless line. Wired line: The wired line uses a physical cable to connect the terminal device and the target network device. The wired line can be an Ethernet cable (such as copper cable, optical fiber) and power line communication. The wireless line uses wireless signals to transmit data, and there is no need to connect the terminal device and the target network device through a physical cable. Wireless lines include Wi-Fi, Bluetooth, and mobile networks. Similarly, the line between the target network device and the target application server can also be a wired line or a wireless line.

[0070] The method of detecting the network quality of a first line between the terminal device and the target network device to obtain a first network quality condition and detecting the network quality of a second line between the target network device and the corresponding target application server to obtain a second network quality condition comprises the following steps A1-A3:

[0071] Step A1, if the network connection is connected to a local area network and the target network device is a router, then detect the first line between the terminal device and the router to obtain first indicator data, and detect at least one second line between the router and at least one first application server to obtain second indicator data.

[0072] Specifically, if the current network connection status of the terminal device is connected to the local area network, the first line between the terminal device and the router and the second line between the router and the first application server are detected respectively to obtain the first indicator data and the second indicator data. Network indicators include delay, jitter, packet loss rate, etc. Delay refers to the time difference from the start of sending data to the start of receiving data. Jitter refers to the degree of fluctuation of network delay data over a period of time. Packet loss rate refers to the proportion of data packets lost during transmission during network communication.

[0073] like Figure 8As shown, the specific process of detecting the first line between the terminal device and the router is as follows: a. Use the PING packet protocol to send a detection packet to the router, and set the packet sending interval to 5 seconds. b. In each detection, record the packet loss of the 24 detection packets in the last 2 minutes. c. Calculate the packet loss rate based on the packet loss of the 24 detection packets in the last 2 minutes. d. In each detection, record the delay of the 24 detection packets in the last 2 minutes. e. Smooth the delay of the 24 detection packets in the last 2 minutes and calculate the average delay. f. In each detection, record the jitter of the 24 detection packets in the past 2 minutes. g. Calculate the jitter value based on the jitter of the 24 detection packets in the past 2 minutes. h. Set the refresh frequency to 5 seconds, that is, perform detection and calculation every 5 seconds. Finally, the first indicator data of the first line is obtained.

[0074] Then, the process of detecting the second line between the router and the first application server is as follows: perform network quality detection on each first application server to obtain a detection result corresponding to each first application server; based on each detection result and the number of times the network quality detection is performed on the first application server, calculate the second indicator data of at least one second line.

[0075] Specifically, the client uses the PING packet protocol to send a detection packet to the IP address of the first application server through the router. The detection packet is transmitted to the first application server in the network. After receiving the detection packet, the first application server returns a response packet to the client. After receiving the client, the client calculates the detection results based on the returned data, including indicators such as delay and packet loss rate. By continuously sending detection packets and receiving corresponding response packets, multiple network quality tests can be performed. Based on the results of multiple tests, indicators such as average delay and packet loss rate can be calculated as the detection results of the first application server.

[0076] For example, there are currently three first application servers, namely A, B and C. Five network quality tests were performed, and the test results are as follows: For server A: Delay data: 30ms, 33ms, 31ms, 29ms, 32ms. Jitter data: 2ms, 3ms, 1ms, 2ms, 3ms Packet loss rate data: 1%, 0.5%, 1.2%, 0.8%, 0.5%. For server B: Delay data: 40ms, 42ms, 38ms, 39ms, 40ms. Jitter data: 1ms, 2ms, 1ms, 2ms, 1ms. Packet loss rate data: 0.5%, 0.8%, 0.5%, 0.5%, 0.7%. For server C: Delay data: 25ms, 27ms, 26ms, 24ms, 25ms. Jitter data: 1ms, 1ms, 2ms, 1ms, 1ms. Packet loss rate data: 0.5%, 0.5%, 0.8%, 0.5%, 0.5%. Now calculate the second indicator data of the second line, such as average delay. The average delay of server A is: (30+33+31+29+32) / 5=31ms The average delay of server B is: (40+42+38+39+40) / 5=39.8ms The average delay of server C is: (25+27+26+24+25) / 5=25.4ms, thus obtaining the average delay data of the second line, which are 31ms for server A, 39.8ms for server B and 25.4ms for server C.

[0077] In order to solve the delay jitter problem, the delay is smoothed. In real-time monitoring, a sliding window is used to take the most recent data at regular intervals to calculate the average value. This reduces the frequent data fluctuations caused by delay jitter and ensures the accuracy of the detection data. For example, in the time period from 00:00 to 00:02, the delay data is recorded every 60 seconds, which are 100ms, 120ms, 150ms, 80ms, and 130ms respectively. The delay data in the last 2 minutes is 100ms, 120ms, 150ms, 80ms, and 130ms. Remove the highest and lowest values ​​80ms and 150ms, and the remaining delay values ​​are 100ms, 120ms, and 130ms. The average of these three delay values ​​is 116.7ms.

[0078] Step A2: Reading a first indicator threshold corresponding to the first line and a second indicator threshold corresponding to the second line from preset configuration information.

[0079] Specifically, after obtaining the above indicator data, the first indicator threshold corresponding to the first line and the second indicator threshold corresponding to the second line are read from the preset configuration information. The first indicator threshold and the second indicator threshold are used to determine whether the state of the line is in a stable state.

[0080] Step A3, comparing the first indicator data and the first indicator threshold to obtain the first network quality status, and comparing the second indicator data and the second indicator threshold to obtain the second network quality status.

[0081] Specifically, the first indicator data is compared with the first indicator threshold to obtain the first network quality situation. If the first indicator data is lower than the first indicator threshold, it means that there is a problem with the line and the network quality situation is unstable. Otherwise, it means that the line is stable. Then the second indicator data needs to be compared with the second indicator threshold to obtain the second network quality situation. If the second indicator data is lower than the second indicator threshold, it means that there is a problem with the line and the network quality situation is unstable; otherwise, it means that the line state is stable.

[0082] In another embodiment of the present disclosure, detecting the network quality of a first line between a terminal device and a target network device to obtain a first network quality situation, and detecting the network quality of a second line between the target network device and a corresponding target application server to obtain a second network quality situation, further includes the following steps B1-B3:

[0083] Step B1, if the network connection status is to connect to a VPN network, and the target network devices are a router and a VPN server, then a fifth line between the terminal device and the VPN server is detected to obtain indicator data, a second line between the router and the first application server is detected to obtain second indicator data, and at least one third line between the VPN server and at least one second application server is detected to obtain third indicator data, wherein the fifth line includes: a first line between the terminal device and the router and a fourth line between the router and the VPN server, and the indicator data includes first indicator data corresponding to the first line and fourth indicator data corresponding to the fourth line.

[0084] Specifically, Fig. 9 As shown, if the network connection is connected to a VPN network, it is necessary to detect the index data of the fifth line between the terminal device and the VPN server, and the fifth line includes the first line between the terminal device and the router and the fourth line between the router and the VPN server. Similarly, the index data includes: the first index data of the line between the terminal device and the router and the fourth index data of the fourth line between the router and the VPN server. In addition, it is also necessary to detect the second line between the router and the first application server to obtain the second index data, and to detect the third line between the VPN server and the second application server to obtain the third index data.

[0085] The process of detecting the first line between the terminal device and the router and detecting the second line between the router and the first application server refers to the above embodiment and will not be described again.

[0086] The process of detecting the third line between the VPN server and the second application server is as follows: perform network quality detection on each second application server to obtain a detection result corresponding to each second application server; based on each detection result and the number of times the network quality detection is performed on the second application server, calculate the third indicator data of at least one third line.

[0087] Specifically, the client establishes a connection with the second application server through the VPN server. The client can use the ping command or related network libraries to send a detection packet. When sending the detection packet, specify the IP address of the second application server as the target address. The client sends a detection packet to the second application server through the VPN server. The detection packet will be transmitted to the second application server in the network. After receiving the detection packet, the second application server will return a response packet to the client. The response packet contains data related to the detection packet. After receiving the response packet, the client can calculate the detection results based on the returned data, such as indicators such as delay and packet loss rate.

[0088] For example, the client performs 5 network quality tests on each second application server associated with the VPN server, and the test results are as follows: Server A: delay (1ms, 2ms, 3ms, 4ms, 5ms), packet loss rate (1%, 1%, 1%, 1%, 1%) Server B: delay (2ms, 3ms, 4ms, 5ms, 6ms), packet loss rate (0%, 0%, 0%, 0%, 0%) Server C: delay (3ms, 4ms, 5ms, 6ms, 7ms), packet loss rate (0%, 0%, 0%, 0%, 0%) Based on these data, the average delay and packet loss rate of each server can be calculated: Average delay of server A = (1ms + 2ms + 3ms + 4ms + 5ms) / 5 = 3ms. Average packet loss rate of server A = (1% + 1% + 1% + 1% + 1%) / 5 = 1%. Average delay of server B = (2ms + 3ms + 4ms + 5ms + 6ms) / 5 = 4ms. Average packet loss rate of server B = (0% + 0% + 0% + 0% + 0%) / 5 = 0%. Average delay of server C = (3ms + 4ms + 5ms + 6ms + 7ms) / 5 = 5ms. Average packet loss rate of server C = (0% + 0% + 0% + 0% + 0%) / 5 = 0%. According to the average delay and packet loss rate of each server, the third indicator data of at least one third line can be further calculated.

[0089] Step B2, reading the first indicator threshold corresponding to the first line, the second indicator threshold corresponding to the second line, the third indicator data corresponding to the third line, and the fourth indicator threshold corresponding to the fourth line from the preset configuration information.

[0090] Specifically, after obtaining the above indicator data, a first indicator threshold corresponding to the first line, a second indicator threshold corresponding to the second line, a third indicator threshold corresponding to the third line, and a fourth indicator threshold corresponding to the fourth line are read from the preset configuration information. The first indicator threshold and the fourth indicator threshold are used to determine the network quality between the terminal device and the VPN server. The second indicator threshold and the third indicator threshold are used to determine the network quality between the network device and the application server.

[0091] Step B3, comparing the first indicator data with the first indicator threshold, and comparing the fourth indicator data with the fourth indicator threshold, to obtain the first network quality status.

[0092] Specifically, since the line between the terminal device and the VPN server includes the first line between the terminal device and the router and the fourth line between the router and the VPN server, the first network quality between the terminal device and the VPN server can be determined by combining the indicator data of the first line and the fourth line. For example: the first indicator data is 332.5 milliseconds, and the first indicator threshold is 300 milliseconds. It can be seen that there is a slight delay in the first line between the terminal device and the VPN server, which exceeds the threshold. Next, compare the fourth indicator data with the fourth indicator threshold. The fourth indicator data is 295 milliseconds, and the fourth indicator threshold is 300 milliseconds. This shows that on the fourth line, that is, the connection between the router and the VPN server is very stable and meets the threshold requirements. In summary, the first network quality between the terminal device and the VPN server can be determined as: there is a slight delay, and the overall stability is relatively stable.

[0093] Step B4, comparing the second indicator data with the second indicator threshold, and comparing the third indicator data with the third indicator threshold, to obtain the second network quality status.

[0094] Specifically, since the current network connection status of the terminal device is connected to the VPN network, the target network devices include routers and VPN servers. When determining the second network quality status, it is necessary to combine the second indicator data between the router and the first application server, and the third indicator data between the VPN server and the second application server to determine the network quality status between the network devices and their corresponding application servers.

[0095] Step S14, based on the network detection page, displaying the first network quality status of the line between the terminal device and the target network device and the second network quality status of the line between the target network device and the target application server.

[0096] In the disclosed embodiment, if the network connection is connected to a local area network, the structure of the target network is displayed on the network detection page, and the VPN server in the target network is grayed out, and then the first display effect corresponding to the first network quality condition and the second display effect corresponding to the second network quality condition are determined. Fig.10 As shown, if the quality of the first network is normal, the line between the terminal device and the router will be green, indicating a normal connection. If the quality of the first network is abnormal (for example, the network speed is too slow), the line between the terminal device and the router will be red. Similarly, if the quality of the second network is normal, the line between the router and the first application server will be green, indicating a normal connection. If the quality of the second network is abnormal, the line between the router and the first application server will be red.

[0097] If the network connection is connected to a VPN network, the target network structure is displayed on the network detection page, and then the first display effect corresponding to the first network quality condition and the second display effect corresponding to the second network quality condition are determined. Fig.11 As shown, if the quality of the first network is normal, the line between the terminal device and the VPN server will be displayed in green, indicating that the connection is normal. If the quality of the first network is abnormal (for example, the network speed is too slow), the line between the terminal device and the VPN server will be displayed in red. Similarly, if the quality of the second network is normal, the line between the VPN server and the second application server will be displayed in green, indicating that the connection is normal. If the quality of the second network is abnormal, the line between the VPN server and the second application server will be displayed in red. The final display effect of the network detection page is as follows: Fig.12 shown.

[0098] The present invention detects the network quality of the line between the terminal device and the target network device, as well as the network quality of the line between the target network device and the target application server. This helps the user understand the quality of the current network of the terminal device, so that the line with poor current network quality can be quickly located, and is also conducive to subsequent problem detection and network optimization. Then, by displaying the quality of different network links on the network detection page, the user can intuitively understand the status of the network connection. Even if the problem site cannot be reproduced, the source of the problem can be determined based on the results of the network quality detection, thereby improving the troubleshooting efficiency. The problem of being unable to reproduce the on-site situation and locate the problem when a problem occurs in the VPN network is solved. In addition, by providing the network quality to the user in a visual manner, it can help the user coordinate the remote access of the terminal device and improve the stability and efficiency of the network connection.

[0099] In the disclosed embodiment, the method also includes: obtaining historical indicator data of each network indicator of the application server within a preset time; analyzing the historical indicator data based on the analysis rules corresponding to the network indicators to obtain the change trend of the network indicators within the preset time; and associating the change trend corresponding to the network indicator with the visualization component corresponding to the application server in the network detection page.

[0100] Specifically, to obtain the historical indicator data of each network indicator of the application server within a preset time, the data can be collected and stored through a monitoring system or a network performance management tool. These tools usually record network indicator data, such as packet loss rate, delay, and jitter. After obtaining the historical indicator data, the data is analyzed based on the analysis rules corresponding to the network indicators. The analysis rules can be pre-defined rules for detecting anomalies or change trends of network indicators. For example, the packet loss rate exceeds a certain threshold or the delay continues to increase. By analyzing the historical indicator data, the change trend of the network indicator within the preset time can be obtained. This can be a trend chart displayed in the form of a chart, showing the change of the network indicator over time. For example, the change trend of the packet loss rate, delay, and jitter can be displayed to observe the change of network performance. Finally, the change trend corresponding to the network indicator is associated with the visualization component corresponding to the application server in the network detection page. This can be to embed the trend chart into the application server component in the network detection page so that the user can intuitively view and analyze the network performance. For example, the trend chart of packet loss rate and delay can be displayed on the application server component so that the user can understand the quality of the network connection in a timely manner.

[0101] Fig.13 is a flow chart of a method for detecting network quality according to an embodiment of the present disclosure, such as Fig.12 As shown, the process includes the following steps:

[0102] Step S21, obtaining a query request triggered based on a network detection page, wherein the query request includes a target object, the network detection page displays the line between the terminal device and the target network device, the line between the target network device and the target application server, and the network quality status corresponding to each line, and the target object includes any one of the multiple lines displayed on the network detection page or any one of the multiple application servers.

[0103] Specifically, the network detection page displays a network topology diagram or a connection line diagram between the terminal device and the target network device. The diagram shows the line between the terminal device and the target network device, and the line between the target network device and the target application server. The above lines represent the path for the terminal device to access the application target server through the target network device.

[0104] When a user clicks on a connection or application server on the network detection page, the connection or application server that the user clicked is determined based on the click position. Specifically, when a user clicks on a connection or application server, an event detector is triggered and relevant information about the click event is obtained, such as the coordinates or the ID of the element clicked. A query request is generated based on the obtained click information. The query request may include a query on the detailed network quality of the connection or application server, such as jitter, packet loss rate, delay, and other information.

[0105] It is understandable that if the network connection of the terminal device is to connect to a local area network, the target object may be the first line between the terminal device and the router, or the second line between the router and the first application server, or any one of the multiple first application servers. If the network connection of the terminal device is to connect to a VPN network, the target object may be the first line between the terminal device and the router, or the second line between the router and the first application server, or the third line between the VPN server and the second application server, or the fourth line between the router and the VPN server, or any one of the multiple first application servers, or any one of the multiple second application servers.

[0106] Step S22, obtaining current indicator data of the target object for evaluating the network quality, and displaying the indicator data in a designated area corresponding to the target object.

[0107] Specifically, Fig.14 As shown, if the target object is a first line between the terminal device and the router, the first indicator data corresponding to the first line is displayed in the designated area corresponding to the first line.

[0108] Or, if Fig.15As shown, or, if the target object is the first aggregate line between the router and multiple first application servers, based on the second indicator data corresponding to the second line and the number corresponding to the second line, the first average indicator data between the router and the first application server is calculated, and the first average indicator data is displayed in the designated area corresponding to the first aggregate line; or, if the target object is the second aggregate line between the VPN server and the second application server, based on the third indicator data corresponding to the third line and the number corresponding to the third line, the second average indicator data is calculated, and the second average indicator data is displayed in the designated area corresponding to the second aggregate line. It should be noted that when the router or VPN server is connected to multiple application servers, the first aggregate line is displayed between the router and the multiple first application servers, and the second aggregate line is displayed between the VPN server and the multiple second application servers, and the aggregate line reflects the overall network quality of the lines between the router and the multiple first application servers and the lines between the router and the multiple second application servers.

[0109] Alternatively, if the target object is the fourth line between the router and the VPN server, the fourth indicator data corresponding to the fourth line is displayed in the designated area corresponding to the third line.

[0110] Or, if Fig.16 As shown, if the target object is any first application server, the network quality data corresponding to the first application server is displayed in the designated area corresponding to the first application server. Alternatively, if the target object is any second application server, the network quality data corresponding to the second application server is displayed in the designated area corresponding to the second application server.

[0111] In the designated area corresponding to the target object, you can use symbols, colors, line segments and other methods to clearly display the packet loss, delay and jitter of the router gateway network quality, which can facilitate a more intuitive understanding of the stability and performance of the network connection. For example, when you click on the connection between the terminal device and the router, you can determine that the target object is the connection line between the terminal device and the router, and display the router network quality in the form of a schematic diagram, including packet loss, delay and jitter. If any of the indicators of packet loss, delay and jitter exceeds the threshold, the line will be displayed in red to prompt the user that the current line is abnormal. If none of the indicators of packet loss, delay and jitter exceeds the threshold, the line will be displayed in green. Or, when you click on the icon of a certain application, you can determine that the target object is the application server of the clicked application, and display the packet loss, delay and jitter values ​​of the application server on the network detection page.

[0112] The disclosed embodiment can accurately determine which line or application server the user clicked by detecting the click position, and automatically generate a query request based on the user's click information, thereby avoiding the tedious steps of the user manually entering the query information, thereby improving efficiency and convenience. The current network quality of the target object is obtained and displayed in the designated area, so that the user can understand the current network status in a timely manner, helping them to make corresponding decisions or adjustments. In addition, when a router or VPN server is connected to multiple application servers, the aggregated line is displayed. By displaying the aggregated lines between multiple application servers and the router or VPN server, the overall network quality can be fully reflected, providing users with more comprehensive information.

[0113] In addition, you can also click the visual component associated with the application icon, such as Fig.17 As shown, a page or sidebar can be opened to display the real-time monitoring information of all applications, including latency trends and packet loss trends. Among them, the real-time information can help users fully understand the network performance of each application in the current network environment. The latency trend can be displayed through a line graph or a curve graph, with the horizontal axis representing time and the vertical axis representing latency time. Each application can be represented by a different color or line type. The latency situation can be judged by observing the ups and downs and fluctuations of the curve, such as whether there is a peak or continuous fluctuation. The packet loss trend can also be displayed through a line graph or a curve graph, with the horizontal axis representing time and the vertical axis representing packet loss rate. Each application can be represented by a different color or line type. Users can understand the packet loss situation by observing the fluctuations and changes of the curve, such as whether there is a sudden increase or a continuous high packet loss rate.

[0114] Based on this, the trend of delay and packet loss is displayed in the form of a line chart or a curve chart, making the information more intuitive and easy to understand. Users can visually observe the ups and downs and fluctuations of the curve to judge the delay and packet loss situation. At the same time, users can understand the delay and packet loss situation by observing the fluctuations and changes of the curve. For example, a high peak or continuous fluctuation may indicate a delay problem, and a sudden increase or continuous high packet loss rate may indicate a packet loss problem. This provides users with a reference basis so that they can quickly take corresponding measures when network problems occur.

[0115] Fig.18 is a flow chart of a method for detecting network quality according to an embodiment of the present disclosure, such as Figure 4 As shown, the process includes the following steps:

[0116] Step S31, generating network detection data based on the first network quality status and the second network quality status.

[0117] Specifically, based on the first network quality situation and the second network quality situation, network detection data is generated. The network detection data may be a data report showing the first network quality situation of the line between the terminal device and the target network device, and the second network quality situation of the line between the target network device and the target application server. The data report may include data charts, numerical indicators, etc., so as to view and analyze network quality.

[0118] Step S32, obtaining the currently logged-in role information.

[0119] Specifically, the terminal device maintains login session information, which includes relevant information of the currently logged-in user. By querying the login session information, the role information of the currently logged-in user can be obtained. The role information generally includes: role name, permission information, group to which the role belongs, etc.

[0120] Step S33, matching the role information with the preset role list to obtain a matching result.

[0121] Specifically, the role information is matched with the preset role list to obtain a matching result. The preset role list may be a set of role accounts configured in advance. The roles in the preset role list are required to automatically report network detection data, that is, when a role logs in on a terminal device, the network detection data generated on the terminal device will be automatically reported to the database.

[0122] Step S34: Perform alarm processing on the network detection data based on the alarm processing strategy corresponding to the matching result.

[0123] In an embodiment of the present disclosure, alarm processing is performed on the network detection data based on the alarm processing strategy corresponding to the matching result, including: if the matching result is that the role information hits any account in the preset role list, the network detection data is transmitted to the database, and it is determined whether the network detection data meets the alarm conditions; if the network detection data meets the alarm conditions, an alarm message is generated based on the network detection data, and the alarm message is sent.

[0124] If the role information hits any account in the preset role list, the network detection data is automatically transmitted to the database. Then, it is determined whether the network detection data meets the alarm condition. According to the alarm processing strategy, the network detection data is judged to determine whether the alarm condition is met. If the network detection data meets the alarm condition, an alarm message is generated based on the network detection data. According to the specific alarm processing strategy, the corresponding alarm information can be generated, including the alarm type, alarm level, alarm content, etc. Finally, the generated alarm information is sent out. The alarm information can be sent to relevant personnel through emails, text messages, system notifications, etc., so that corresponding processing measures can be taken in time.

[0125] It should be noted that when new network detection data is generated, the terminal device automatically uploads it to the database to ensure the continuous recording of network quality data. At the same time, when the network detection data meets the preset alarm conditions, an abnormal alarm is automatically triggered. The alarm information can include problems such as network quality degradation and abnormal traffic, so that users can handle them in time. The alarm information can also be fed back to the client log, allowing users to perceive network problems in time without waiting for users to handle them manually. This makes it easy for users to access the database at any time and view the user's historical network quality data, including indicators such as network delay and packet loss rate, so as to analyze the trend and root cause of network quality problems. For example, based on the analysis of historical data, corresponding measures can be taken to optimize network configuration or adjust network equipment to improve network quality.

[0126] In an embodiment of the present disclosure, alarm processing is performed on the network detection data based on the alarm processing strategy corresponding to the matching result, including: if the matching result is that the role information does not hit the account in the preset role list, the network detection data is stored in the terminal device and a prompt message is triggered, wherein the prompt message is used to prompt whether to execute the alarm; obtain execution information based on the prompt information feedback; if the execution information is an execution alarm, the network detection data is transmitted to the database.

[0127] If the role information does not hit an account in the preset role list, the following operations are performed: a. The network detection data is stored in the terminal device. b. A prompt message is triggered to prompt whether to execute the alarm. The execution information based on the prompt information feedback is obtained. The execution information is judged. If the execution information is an execution alarm, the following operations are performed: a. The network detection data is transmitted to the database. Please note that according to the description, if the role information does not hit an account in the preset role list, the alarm processing flow will not be triggered. On the contrary, the network detection data will be stored in the terminal device and the prompt message will be triggered. The network detection data will only be transmitted to the database when the execution information based on the prompt information feedback is an execution alarm.

[0128] In this embodiment, a network quality detection device is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0129] This embodiment provides a network quality detection device, such as Fig.19 As shown, including:

[0130] An acquisition module 41 is used to acquire a network quality detection request for a terminal device;

[0131] A response module 42, used to respond to the network quality detection request and determine the target network device to which the terminal device is currently connected based on the network connection status of the terminal device;

[0132] The detection module 43 is used to detect the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and to detect the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition;

[0133] The processing module 44 is used to display a first network quality status of a line between the terminal device and the target network device and a second network quality status of a line between the target network device and the target application server based on the network detection page.

[0134] In the disclosed embodiment, the network device includes: a router and a VPN server, the application server includes: a first application server and a second application server, the first application server is associated with the router, the second application server is associated with the VPN server, the first application server is a server corresponding to the Internet application, and the second application server is a server corresponding to the private network application;

[0135] The response module 42 is used for, if the network connection condition is to connect to a local area network, the target network device is a router; or, if the network connection condition is to connect to a VPN network, the target network device is a router and a VPN server.

[0136] In the embodiment of the present disclosure, the detection module 43 is used to detect the first line between the terminal device and the router to obtain first indicator data, and detect at least one second line between the router and at least one first application server to obtain second indicator data if the network connection status is connected to a local area network and the target network device is a router; read the first indicator threshold corresponding to the first line and the second indicator threshold corresponding to the second line from the preset configuration information; compare the first indicator data and the first indicator threshold to obtain the first network quality status, and compare the second indicator data and the second indicator threshold to obtain the second network quality status.

[0137] In the embodiment of the present disclosure, the detection module 43 is used to perform network quality detection on each first application server to obtain network quality data corresponding to each first application server; based on each network quality data and the number of times the network quality detection is performed on the first application server, the second indicator data of at least one second line is calculated.

[0138] In the embodiment of the present disclosure, the detection module 43 is used to detect the fifth line between the terminal device and the VPN server to obtain indicator data, detect the second line between the router and the first application server to obtain second indicator data, and detect at least one third line between the VPN server and at least one second application server to obtain third indicator data if the network connection status is connecting to a VPN network and the target network device is a router and a VPN server, wherein the fifth line includes: the first line between the terminal device and the router and the fourth line between the router and the VPN server, and the indicator data includes first indicator data corresponding to the first line and fourth indicator data corresponding to the fourth line; read the first indicator threshold corresponding to the first line, the second indicator threshold corresponding to the second line, the third indicator threshold corresponding to the third line, and the fourth indicator threshold corresponding to the fourth line from the preset configuration information; compare the first indicator data with the first indicator threshold, and compare the fourth indicator data with the fourth indicator threshold, to obtain the first network quality status; compare the second indicator data with the second indicator threshold, and compare the third indicator data with the third indicator threshold, to obtain the second network quality status.

[0139] In the embodiment of the present disclosure, the detection module 43 is used to perform network quality detection on each second application server to obtain network quality data corresponding to each second application server; based on each network quality data and the number of times the network quality detection is performed on the second application server, calculate the third indicator data of at least one third line.

[0140] In the embodiment of the present disclosure, the device further includes: a display module, including:

[0141] An acquisition submodule, used to acquire a query request triggered based on a network detection page, wherein the query request includes a target object, the network detection page displays a line between the terminal device and the target network device, a line between the target network device and the target application server, and network quality conditions corresponding to each line, and the target object includes any one of the multiple lines displayed on the network detection page or any one of the multiple application servers;

[0142] The display submodule is used to obtain the current indicator data of the target object for evaluating the network quality, and display the indicator data in the designated area corresponding to the target object.

[0143] In the embodiment of the present disclosure, the acquisition submodule is used to detect a click operation on a network detection page; in response to the click operation, determine the clicked line or application server in the network detection page; take the clicked line or application server as a target object, and generate a query request based on the target object.

[0144] In the embodiment of the present disclosure, the display submodule is used to display the first indicator data corresponding to the first line in the designated area corresponding to the first line if the target object is the first line between the terminal device and the router; or, if the target object is the first aggregated line between the router and the first application servers, calculate the first average indicator data between the router and the first application server based on the second indicator data corresponding to the second line and the number corresponding to the second line, and display the first average indicator data in the designated area corresponding to the first aggregated line; or, if the target object is the second aggregated line between the VPN server and the second application server, calculate the second average indicator data based on the third indicator data corresponding to the third line and the number corresponding to the third line, and display the second average indicator data in the designated area corresponding to the second aggregated line;

[0145] Alternatively, if the target object is the fourth line between the router and the VPN server, the third indicator data corresponding to the third line is displayed in the designated area corresponding to the third line; or, if the target object is any first application server, the network quality data corresponding to the first application server is displayed in the designated area corresponding to the first application server; or, if the target object is any second application server, the network quality data corresponding to the second application server is displayed in the designated area corresponding to the second application server.

[0146] See also Fig. 20 , Fig. 20 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Fig. 20 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).

[0147] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0148] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0149] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0150] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0151] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0152] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0153] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for detecting network quality, characterized in that: The method comprises: Obtain a network quality detection request for a terminal device; In response to the network quality detection request, determining a target network device to which the terminal device is currently connected based on the network connection status of the terminal device; Detecting the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and detecting the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition; Displaying a first network quality status of a line between the terminal device and the target network device and a second network quality status of a line between the target network device and the target application server based on a network detection page; The target application server includes: a first application server and a second application server, the first application server is associated with the router, the second application server is associated with the VPN server, the first application server is a server corresponding to an Internet application, and the second application server is a server corresponding to a private network application; The determining, based on the network connection status of the terminal device, a target network device to which the terminal device is currently connected, comprises: If the network connection condition is to connect to a local area network, the target network device is a router; or, if the network connection condition is to connect to a VPN network, the target network device is a router and a VPN server.

2. The method according to claim 1, characterized in that The detecting the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and the detecting the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition, comprises: If the network connection is a local area network, and the target network device is a router, a first line between the terminal device and the router is detected to obtain first indicator data, and at least one second line between the router and at least one first application server is detected to obtain second indicator data; Reading a first indicator threshold corresponding to the first line and a second indicator threshold corresponding to the second line from preset configuration information; The first indicator data and the first indicator threshold are compared to obtain the first network quality status, and the second indicator data and the second indicator threshold are compared to obtain the second network quality status.

3. The method according to claim 2, characterized in that The detecting at least one second line between the router and at least one of the first application servers to obtain second indicator data includes: Performing a network quality test on each of the first application servers to obtain a test result corresponding to each of the first application servers; Based on each of the detection results and the number of times the network quality detection is performed on the first application server, the second indicator data of the at least one second line is calculated.

4. The method according to claim 1, characterized in that: The detecting the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and the detecting the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition, include: If the network connection condition is to connect to a VPN network, and the target network devices are a router and a VPN server, then a fifth line between the terminal device and the VPN server is detected to obtain indicator data, a second line between the router and a first application server is detected to obtain second indicator data, and at least one third line between the VPN server and at least one second application server is detected to obtain third indicator data, wherein the fifth line includes: a first line between the terminal device and the router and a fourth line between the router and the VPN server, and the indicator data includes first indicator data corresponding to the first line and fourth indicator data corresponding to the fourth line; Reading from preset configuration information a first indicator threshold corresponding to the first line, a second indicator threshold corresponding to the second line, a third indicator threshold corresponding to the third line, and a fourth indicator threshold corresponding to the fourth line; Comparing the first indicator data with the first indicator threshold, and comparing the fourth indicator data with the fourth indicator threshold, to obtain the first network quality situation; The second indicator data is compared with the second indicator threshold, and the third indicator data is compared with the third indicator threshold to obtain the second network quality situation.

5. The method according to claim 4, characterized in that The detecting at least one third line between the VPN server and at least one of the second application servers to obtain third indicator data includes: Performing network quality detection on each of the second application servers to obtain a detection result corresponding to each of the second application servers; Based on each of the detection results and the number of times the network quality detection is performed on the second application server, third indicator data of at least one of the third lines is calculated.

6. The method according to claim 1, characterized in that The method further comprises: Obtaining a query request triggered based on the network detection page, wherein the query request includes a target object, the network detection page displays a line between the terminal device and the target network device, a line between the target network device and the target application server, and network quality conditions corresponding to each line, and the target object includes any one of the multiple lines or any one of the multiple application servers displayed on the network detection page; The current indicator data of the target object for evaluating the network quality is obtained, and the current indicator data is displayed in a designated area corresponding to the target object.

7. The method according to claim 6, characterized in that The obtaining of the query request triggered based on the network detection page includes: Detecting a click operation on the network detection page; In response to the click operation, determining the line or application server clicked in the network detection page; The clicked line or application server is taken as the target object, and the query request is generated based on the target object.

8. The method according to claim 6, characterized in that The displaying the current indicator data in a designated area corresponding to the target object includes: If the target object is a first line between the terminal device and the router, displaying first indicator data corresponding to the first line in a designated area corresponding to the first line; Alternatively, if the target object is a first aggregated line between the router and a plurality of first application servers, first average index data between the router and the first application server is calculated based on second index data corresponding to the second line and the number corresponding to the second line, and the first average index data is displayed in a designated area corresponding to the first aggregated line; Alternatively, if the target object is a second aggregated line between the VPN server and the second application server, the second average index data is calculated based on the third index data corresponding to the third line and the quantity corresponding to the third line, and the second average index data is displayed in the designated area corresponding to the second aggregated line; Alternatively, if the target object is a fourth line between the router and the VPN server, the third indicator data corresponding to the third line is displayed in a designated area corresponding to the third line; Alternatively, if the target object is any first application server, corresponding indicator data is obtained from the detection result corresponding to the first application server, and the indicator data corresponding to the first application server is displayed in a designated area corresponding to the first application server; Alternatively, if the target object is any second application server, corresponding indicator data is obtained from the detection result corresponding to the second application server, and the indicator data corresponding to the second application server is displayed in a designated area corresponding to the second application server.

9. The method according to claim 1, characterized in that: The method further comprises: Generate network detection data based on the first network quality situation and the second network quality situation; Get the currently logged in role information; Matching the role information with a preset role list to obtain a matching result; Perform alarm processing on the network detection data based on the alarm processing strategy corresponding to the matching result.

10. The method according to claim 9, characterized in that The performing alarm processing on the network detection data based on the alarm processing strategy corresponding to the matching result includes: If the matching result is that the role information hits any account in the preset role list, the network detection data is transmitted to a database, and it is determined whether the network detection data meets an alarm condition; If the network detection data meets the alarm condition, alarm information is generated based on the network detection data, and the alarm information is sent.

11. The method according to claim 9, characterized in that The performing alarm processing on the network detection data based on the alarm processing strategy corresponding to the matching result includes: If the matching result is that the role information does not match an account in the preset role list, the network detection data is stored in the terminal device, and a prompt message is triggered, wherein the prompt message is used to prompt whether to execute an alarm; Acquire execution information based on the prompt information feedback; If the execution information is an execution alarm, the network detection data is transmitted to a database.

12. A network quality detection device, characterized in that: The device comprises: An acquisition module, used to acquire a network quality detection request for a terminal device; A response module, used to respond to the network quality detection request and determine a target network device to which the terminal device is currently connected based on the network connection status of the terminal device; A detection module, configured to detect the network quality of the line between the terminal device and the target network device to obtain a first network quality condition, and to detect the network quality of the line between the target network device and the corresponding target application server to obtain a second network quality condition; A processing module, configured to display a first network quality status of a line between the terminal device and the target network device and a second network quality status of a line between the target network device and the target application server based on a network detection page; The target application server includes: a first application server and a second application server, the first application server is associated with the router, the second application server is associated with the VPN server, the first application server is a server corresponding to an Internet application, and the second application server is a server corresponding to a private network application; The response module is used for, if the network connection condition is to connect to a local area network, the target network device is a router; or, if the network connection condition is to connect to a VPN network, the target network device is a router and a VPN server.

13. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 11 by executing the computer instructions.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Network quality testing method and network quality testing device

    CN108809765A

  • Network quality analysis method, data receiving server and storage medium

    CN113676369A