Network quality monitoring method, device, equipment and storage medium

By distinguishing between normal and abnormal scenarios, the quality score is calculated and the score proportion is adjusted according to the preset proportion, the problems of large data volatility and weak anti-interference ability in network quality monitoring are solved, and a more accurate network quality evaluation is achieved.

CN116647483BActive Publication Date: 2025-08-26CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310736878.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2025-08-26
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

The existing network quality monitoring technology has high volatility in quality score data in abnormal scenarios, weak anti-interference ability, and cannot accurately reflect the actual network situation.

Method used

By distinguishing network messages from normal and abnormal scenarios, the first and second quality scores are calculated respectively, and the third quality score is determined based on the preset ratio, and the score ratio is adjusted to meet the network quality needs of different service types.

Benefits of technology

It improves the robustness of network quality scores, accurately reflects abnormal scenarios, adapts to network quality requirements of different service types, and reduces the volatility and deviation of score data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116647483B_ABST
    Figure CN116647483B_ABST
Patent Text Reader

Abstract

The present application provides a network quality monitoring method, device, equipment and storage medium, which relate to the field of network communication technology. The method includes: obtaining multiple first network messages and multiple second network messages in a preset time period, the first network message refers to the network message that the client interacts with the target server when the network scenario is a normal scenario, and the second network message refers to the network message that the client interacts with the target server when the network scenario is an abnormal scenario; determining a first quality score based on the multiple first network messages, and determining a second quality score based on the multiple second network messages; determining a third quality score based on the first quality score, the second quality score and a preset ratio, the third quality score is used to indicate the network quality between the client and the target server within the preset time period. The method of the present application solves the problem that when there are abnormal scenarios in the network scenario, the quality score data has large volatility, weak anti-interference ability, and a high degree of deviation from the actual situation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a network quality monitoring method, apparatus, device and storage medium. Background Art

[0002] Network quality monitoring refers to obtaining the network delay between the client and the target server, processing and quantifying the network delay, obtaining a quality score, and indicating the network quality based on the quality score.

[0003] Indirect monitoring technology is usually used to obtain quality scores. Indirect monitoring technology refers to adding monitoring equipment between the client and the target server to obtain communication information between the two, and then obtain the network delay of the message exchange indicated by the communication information, thereby obtaining the quality score.

[0004] However, indirect monitoring techniques directly calculate the geometric mean of network latency, failing to account for abnormal network scenarios. These scenarios involve failures in the client's connection to the target server, resulting in infinite latency or a set maximum latency. Consequently, the quality scores derived from indirect monitoring techniques are highly volatile, less robust to interference, and significantly deviate from actual conditions. Summary of the Invention

[0005] The present application provides a network quality monitoring method, apparatus, device and storage medium to solve the problem that when abnormal scenarios exist in the network scenario, the quality score data obtained through indirect monitoring technology has large volatility, weak anti-interference ability, and a high degree of deviation from the actual situation.

[0006] In a first aspect, the present application provides a network quality monitoring method, the method comprising:

[0007] Acquire multiple first network packets and multiple second network packets in a preset time period, where the first network packets refer to network packets exchanged between the client and the target server when the network scenario is normal, and the second network packets refer to network packets exchanged between the client and the target server when the network scenario is abnormal;

[0008] Determining a first quality score based on a plurality of first network messages, and determining a second quality score based on a plurality of second network messages;

[0009] A third quality score is determined according to the first quality score, the second quality score, and a preset ratio. The third quality score is used to indicate the network quality between the client and the target server within a preset time period.

[0010] In one possible design, determining a first quality score based on a plurality of first network packets includes:

[0011] Determining a network delay corresponding to each first network message;

[0012] A first quality score is determined based on a plurality of network delays.

[0013] In one possible design, determining a first quality score based on multiple network delays includes:

[0014] Determining a fourth quality score corresponding to each network delay according to a preset delay data quantization table, wherein the delay data quantization table is used to indicate the quality score corresponding to each network delay;

[0015] A first quality score is calculated according to the plurality of fourth quality scores, where the first quality score is equal to an arithmetic average of the plurality of fourth quality scores.

[0016] In one possible design, determining the second quality score based on the plurality of second network packets includes:

[0017] Obtaining a network reconnection result corresponding to each second network message, where the network reconnection result refers to a result of the client reestablishing a network connection with the target server, and the network reconnection result includes a network reconnection success or a network reconnection failure;

[0018] Obtain a first value and a second value, where the first value refers to the number of successful network reconnections and the second value refers to the total number of successful and failed network reconnections;

[0019] A second quality score is calculated according to the first value and the second value. The second quality score is equal to the product of the third value and the preset value. The third value is equal to the quotient of the first value and the second value.

[0020] In one possible design, determining the third quality score according to the first quality score, the second quality score, and a preset ratio includes:

[0021] A third quality score is calculated based on the first quality score, the second quality score, the first preset ratio, and the second preset ratio. The third quality score is equal to the sum of the first product and the second product. The first product is equal to the product of the first quality score and the first preset ratio. The second product is equal to the product of the first quality score and the second preset ratio. The sum of the first preset ratio and the second preset ratio is equal to 100%.

[0022] In one possible design, obtaining a plurality of first network packets and a plurality of second network packets within a preset time period includes:

[0023] When network traffic information is monitored, network packets are collected from the network traffic information;

[0024] Parse the network message and determine the five-tuple information corresponding to the network message;

[0025] If the five-tuple information indicates that the network packet is used for interaction between the client and the target server, the network packet is marked as the first network packet or the second network packet.

[0026] In one possible design, marking a network packet as a first network packet or a second network packet includes:

[0027] Get the network connection result corresponding to the network message, which includes network connection success and network connection failure;

[0028] When the network connection result is that the network connection is successful, marking the network message as the first network message;

[0029] When the network connection result is a network connection failure, the network message is marked as a second network message.

[0030] In a second aspect, the present application provides a network quality monitoring device, comprising: a first acquisition module, a first determination module, and a second determination module;

[0031] a first acquisition module, configured to acquire a plurality of first network packets and a plurality of second network packets within a preset time period, wherein the first network packets refer to network packets exchanged between the client and the target server when the network scenario is a normal scenario, and the second network packets refer to network packets exchanged between the client and the target server when the network scenario is an abnormal scenario;

[0032] a first determining module, configured to determine a first quality score based on a plurality of first network packets, and to determine a second quality score based on a plurality of second network packets;

[0033] The second determining module is configured to determine a third quality score according to the first quality score, the second quality score and a preset ratio, where the third quality score is used to indicate the network quality between the client and the target server within a preset time period.

[0034] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0035] Memory stores computer-executable instructions;

[0036] The processor executes the computer-executable instructions stored in the memory to implement a network quality monitoring method according to the first aspect of the invention.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement a network quality monitoring method according to the first aspect of the invention.

[0038] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement a network quality monitoring method according to the first aspect of the invention.

[0039] The present application provides a network quality monitoring method, apparatus, device, and storage medium. The method obtains first quality scores corresponding to multiple first network packets exchanged between a client and a target server during a preset time period when the network scenario is normal; and obtains second quality scores corresponding to multiple second network packets exchanged between the client and the target server during an abnormal time period when the network scenario is abnormal; and determines a third quality score based on the first quality score, the second quality score, and a preset ratio, so as to indicate the network quality between the client and the target server during the preset time period based on the third quality score. The method achieves the following technical effects: The third quality score is determined by using the first quality score when the network scenario is normal and the second quality score when the network scenario is abnormal, thereby improving the robustness of the third quality score and resolving the issues of high volatility, weak anti-interference capability, and high deviation from actual conditions in quality score data; The second quality score reflects the abnormality of the network scenario, thereby resolving the issue of network quality monitoring failing to reflect abnormal scenarios; and by adjusting the preset ratio, adjusting the ratio of the first quality score to the second quality score for different service types, thereby adjusting the third quality score, thereby resolving the issue of different network quality requirements between the client and the target server for different service types. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 A schematic diagram of the system architecture of the network quality monitoring method provided in an embodiment of the present application;

[0042] Figure 2 A framework diagram of an application scenario of the network quality monitoring method provided in an embodiment of the present application;

[0043] Figure 3 Schematic diagram of the network quality monitoring method provided in this embodiment of the application Figure 1 ;

[0044] Figure 4 Schematic diagram of the network quality monitoring method provided in this embodiment of the application Figure 2 ;

[0045] Figure 5 A schematic diagram of the structure of a network quality monitoring device provided in an embodiment of the present application;

[0046] Figure 6 A schematic diagram of the structure of the electronic device hardware provided in an embodiment of the present application.

[0047] Reference numerals:

[0048] 100 - Network quality monitoring system architecture; 110 - Client; 120 - Quality monitoring module; 130 - Target server; 140 - Desktop computer; 150 - Quality monitoring plug-in; 160 - Application server;

[0049] 200-network quality monitoring device; 210-first acquisition module; 220-first determination module; 230-second determination module;

[0050] 300 - electronic device; 310 - processor; 320 - memory; 330 - communication component; 340 - bus. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0052] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first network message and the second network message are merely used to distinguish network messages in different network scenarios and do not limit their order of precedence. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily mean different. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way. In the embodiments of the present application, "at least one" means one or more, and "more" means two or more.

[0053] It should be noted that the "at..." in the embodiments of the present application can be the instant when a certain situation occurs, or it can be a period of time after the situation occurs, and the embodiments of the present application do not specifically limit this. In addition, the network quality monitoring method provided in the embodiments of the present application is only an example, and the network quality monitoring method can also include more or less content.

[0054] To facilitate a clear description of the technical solutions of the embodiments of the present application, some of the terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0055] Network scenario: refers to the network connection between the client and the target server over a period of time. Network connection results include successful and failed connections.

[0056] Normal scenario: refers to a period of time when the network connection between the client and the target server is successful.

[0057] Abnormal scenario: refers to the failure of the network connection between the client and the target server for a period of time.

[0058] Network latency: This refers to the time it takes for a network message to travel from one network node to another. Network latency is composed of transmission latency, propagation latency, processing latency, and queuing latency. In abnormal network scenarios, network latency is infinite, but is typically set to a larger value.

[0059] Network traffic information: refers to the traffic between two network nodes. Network packets are transmitted between two network nodes in the form of traffic.

[0060] Quintuple information: refers to a set of five quantities consisting of the source Internet Protocol (IP) address, source port, destination IP address, destination port, and transport layer protocol.

[0061] Network message: refers to the data unit exchanged and transmitted in the network. Network message includes message data at or below Layer 4.

[0062] When a client sends a network message to a target server, or when a target server sends a network message to a client, network traffic information is generated. The monitoring device is located at the intermediate node between the client and the target server. When the monitoring device monitors the network traffic information, it collects the network message from the network traffic information and obtains the network delay t corresponding to the network message. i , i refers to the sequence number of the network delay, which can be determined based on the order in which the network messages corresponding to the network delay are obtained. The preset time period can be set in advance and automatically triggered, or it can be manually set by a technician.

[0063] After the preset time period ends, the monitoring device summarizes n network delays t i , for n network delays t i Calculate the geometric mean to get the quality score F,

[0064]

[0065] However, indirect monitoring technology does not take into account the network delay when the network scenario is an abnormal scenario. i There are n1 network scenarios with a normal network delay t j , and the network delay t when n2 network scenarios are abnormal scenarios k , where t k =∞, or t k =t max .at this time,

[0066]

[0067] Due to the network delay t k The value of is large, resulting in a large value of the quality score F calculated by this method, which in turn leads to large volatility of the quality score data, weak anti-interference ability, and a high degree of deviation from the actual situation.

[0068] To avoid network delay k If the value is too large, the quality score F will fluctuate significantly and deviate from the actual situation. Therefore, the first quality score for a normal network scenario and the second quality score for an abnormal network scenario can be summarized separately, and a preset ratio can be determined based on the type of data transmitted by the application. A third quality score is determined based on the first quality score, the second quality score, and the preset ratio. The third quality score is used to indicate the network quality between the client and the target server.

[0069] Based on this, embodiments of the present application provide a network quality monitoring method, apparatus, device, and storage medium that can be used in the field of network communication technology to address the aforementioned technical issues of the prior art. The method of the present application addresses the issue of high volatility, weak anti-interference capabilities, and high deviation from actual conditions in network scenarios when abnormal scenarios exist.

[0070] Figure 1 This is a schematic diagram of the system architecture of the network quality monitoring method provided in the embodiment of the present application. It should be noted that, Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present application can be applied, to help those skilled in the art understand the technical content of the present application, but does not mean that the embodiments of the present application cannot be used in other devices, systems, environments or scenarios.

[0071] like Figure 1As shown, the network quality monitoring system architecture 100 includes: a client 110, a quality monitoring module 120, and a target server 130. The client 110 is connected to the target server 130 to establish a communication link. The quality monitoring module 120 is located at an intermediate node between the client 110 and the target server 130. The communication connection can include various connection types, such as wired, wireless communication links, or fiber optic cables.

[0072] In the embodiments of the present application, client 110 may be any type of electronic device, including but not limited to a smartphone, a laptop computer, and a desktop computer. Client 110 may send network messages to target server 130 and may also receive network messages sent by target server 130. Network messages are used to send specific data to target server 130 and may also be used to request specific data from target server 130. Network messages are transmitted over the communication link in the form of network traffic information.

[0073] The target server 130 may be a server that provides various service supports (for example only). The target server 130 may send network messages to the client 110 or receive network messages sent by the client 110. The function and transmission form of the network messages are the same as those described above.

[0074] The quality monitoring module 120 can be software or hardware (for example only) for monitoring network quality. The quality monitoring module 120 can be integrated into the client 110 or into a gateway of the communication link, such as an egress router. The target server 130 monitors the communication link in real time. When network traffic information is detected on the communication link, the target server 130 captures the network traffic information and collects network packets from the network traffic information.

[0075] Figure 2 This is a diagram of an application scenario framework of the network quality monitoring method provided in an embodiment of the present application. The application scenario framework diagram can be used in the following application scenarios, and can also be used in other application scenarios not specified.

[0076] like Figure 2As shown, an application is running on the desktop computer 140 (i.e., the client 110). The desktop computer 140 uploads the user's operation information to the application server 160 (i.e., the target server 130) in real time. The application server 160 determines the operation result based on the user's operation information and the operation information of other users obtained, and returns the operation result to the desktop computer 140. During this period, the operation information uploaded by the desktop computer 140 and the operation result returned by the application server 160 are both transmitted in the form of network traffic information in the communication link through network messages. The quality monitoring plug-in 150 (i.e., the quality monitoring module 120) monitors the network traffic information in real time. When the network traffic information is monitored, the network message is captured from the network traffic information through a packet capture tool. The quality monitoring plug-in 150 determines the quality score when the network scenario is a normal scenario based on the multiple network messages captured.

[0077] During the operation of the application, if the network connection of the desktop computer 140 fails, or the network connection of the application server 160 fails, or the gateway in the communication link fails, the network scenario will become an abnormal scenario. During this period, the desktop computer 140 will fail to send a network message to the application server 160, and the desktop computer 140 will try to re-establish the network connection with the application server 160; if the network scenario returns to the normal scenario at this time, the network connection is successfully re-established, and the network reconnection result is a successful network reconnection; if the network scenario is still an abnormal scenario at this time, the network connection is failed to be re-established, and the network reconnection result is a failed network reconnection. When monitoring network traffic information, the quality monitoring plug-in 150 captures network messages from the network traffic information through a packet capture tool. The quality monitoring plug-in 150 determines the quality score when the network scenario is an abnormal scenario based on the multiple captured network messages.

[0078] After monitoring the network traffic information, the quality monitoring plug-in 150 determines the quality score based on the quality score when the network scenario is a normal scenario, the quality score when the network scenario is an abnormal scenario, and the preset ratio, which is used for the network quality between the desktop computer 140 and the application server 160 within the preset time period.

[0079] Figure 3 Schematic diagram of the network quality monitoring method provided in this embodiment of the application Figure 1 .like Figure 3 As shown, the method includes:

[0080] S101. Acquire multiple first network messages and multiple second network messages in a preset time period;

[0081] Specifically, within a preset time period, there are several normal network scenarios and several abnormal network scenarios. When the network scenario is a normal scenario, the network messages sent by the client to the target server, and the network messages sent by the target server to the client, are both first network messages; when the network scenario is an abnormal scenario, the network messages sent by the client to the target server, and the network messages sent by the target server to the client, are both second network messages.

[0082] The preset time period refers to a time period preset by an operator according to needs, and the preset time period may be 1 minute, 1 hour, or 1 day, etc. At the end of the preset time period, a plurality of first network packets and a plurality of second network packets are finally obtained.

[0083] S102: determining a first quality score based on a plurality of first network messages, and determining a second quality score based on a plurality of second network messages;

[0084] Specifically, after a preset time period, a first quality score is determined based on multiple first network messages. The first quality score indicates the network quality between the client and the target server during a normal network scenario during the preset time period. A second quality score is determined based on multiple second network messages. The second quality score indicates the network quality between the client and the target server during an abnormal network scenario during the preset time period. Determining the second quality score based on the second network messages reflects abnormal network scenarios, resolving the issue of network quality monitoring failing to reflect abnormal scenarios.

[0085] S103, determining a third quality score according to the first quality score, the second quality score, and a preset ratio;

[0086] Specifically, the third quality score is used to indicate the network quality between the client and the target server within a preset time period. The preset ratio refers to the ratio preset by the operator, and the preset ratio can be determined based on the type of data transmitted by the application. For example, when the data transmitted by the application is hot data, the client and the target server have higher requirements for network quality, and one or a group of preset ratios are set at this time; when the data transmitted by the application is cold data, the client and the target server have lower requirements for network quality, and one or a group of preset ratios are set at this time. Different preset ratios are set for different business types, and the proportion of the first quality score and the second quality score is adjusted by the preset ratio, and then the third quality score is adjusted, thereby meeting the problem that the client and the target server have different requirements for network quality in different business types.

[0087] Determining the first and second quality scores separately, and using them to determine the third quality score, mitigates the impact of excessive network latency on the quality score in abnormal network scenarios. The third quality score accurately indicates network quality and is more robust than quality scores determined by existing technologies, such as indirect monitoring.

[0088] This embodiment provides a network quality monitoring method, which obtains first quality scores corresponding to multiple first network packets exchanged between a client and a target server during a preset time period when the network scenario is normal; obtains second quality scores corresponding to multiple second network packets exchanged between the client and the target server during an abnormal network scenario during the preset time period; and determines a third quality score based on the first quality score, the second quality score, and a preset ratio, so as to indicate the network quality between the client and the target server during the preset time period based on the third quality score. The method achieves the following technical effects: determining the third quality score based on the first quality score when the network scenario is normal and the second quality score when the network scenario is abnormal, thereby improving the robustness of the third quality score and resolving the issues of high volatility, weak anti-interference ability, and high deviation from actual conditions in quality score data; reflecting the abnormal network scenario through the second quality score, thereby resolving the issue of network quality monitoring failing to reflect abnormal scenarios; and adjusting the preset ratio to adjust the ratio of the first quality score to the second quality score for different service types, thereby adjusting the third quality score, thereby resolving the issue of different network quality requirements between the client and the target server for different service types.

[0089] Figure 4 Schematic diagram of the network quality monitoring method provided in this embodiment of the application Figure 2 .like Figure 4 As shown, this embodiment Figure 3 Based on the embodiment, the network quality monitoring method is described in detail. This embodiment provides a network quality monitoring method, which includes:

[0090] S201, when monitoring network traffic information, collecting network messages from the network traffic information;

[0091] Specifically, the client may establish a communication link with one server, or may establish communication links with multiple servers, and network traffic information is transmitted in these communication links. During a preset time period, when network traffic information is monitored, the network traffic information is captured and network packets are collected from it.

[0092] S202, parsing the network message to determine the quintuple information corresponding to the network message;

[0093] Specifically, during a preset time period, each network packet collected is parsed to obtain the corresponding five-tuple information. The five-tuple information includes the source IP address, source port, destination IP address, destination port, and transport layer protocol. Using this five-tuple information, it is possible to determine which server the corresponding network packet was sent to or from.

[0094] S203. If the five-tuple information indicates that the network message is used for interaction between the client and the target server, obtain a network connection result corresponding to the network message, where the network connection result includes a network connection success or a network connection failure.

[0095] Specifically, the five-tuple information is used to determine whether the network message is used for interaction between the client and the target server, and the network scenario in which the network message is located is obtained. Specifically, it includes:

[0096] If the source IP address and source port of the five-tuple information are the same as the IP address and port of the client, respectively, and the destination IP address and destination port of the five-tuple information are the same as the IP address and port of the target server, respectively, then it is determined that the network message corresponding to the five-tuple information is sent from the client to the target server;

[0097] If the source IP address and source port of the five-tuple information are the same as the IP address and port of the target server, and the destination IP address and destination port of the five-tuple information are the same as the IP address and port of the client, then it is determined that the network message corresponding to the five-tuple information is sent by the target server to the client.

[0098] In this way, when the client interacts with multiple servers, the network messages interacting between the client and the target server can be filtered out for subsequent operations.

[0099] The network connection result corresponding to the filtered network message is obtained. This can be obtained from the client, the quality monitoring module can determine the network connection result independently, or the network reconnection result can be obtained from other network nodes. Different operations are performed based on the obtained network connection result: if the network connection result is a successful network connection, execute S204; if the network connection result is a failed network connection, execute S207.

[0100] S204: When the network connection result is successful, mark the network message as a first network message;

[0101] Specifically, when the network connection result is that the network connection is successful, the network message is marked as the first network message m 1i, where i refers to the sequence number of the first network message, and the sequence number can be determined according to the order in which the first network message is obtained.

[0102] S205. Determine the network delay corresponding to each first network message;

[0103] Specifically, determine the first network message m 1i The corresponding network delay t 1i , network delay t 1i It can be obtained from the client, the target server, or other network nodes.

[0104] S206. Determine a fourth quality score corresponding to each network delay according to a preset delay data quantization table;

[0105] Specifically, the delay data quantization table is used to indicate the quality score corresponding to each network delay, and the network delay t 1i Substitute into the delay data quantization table to obtain the network delay t 1i The corresponding fourth quality score f i .

[0106] The latency data quantification table can take different forms in different application scenarios. For example, when the data transmitted by an application is hot data and has high requirements for network latency, the latency data quantification table can be a data graph. In this case, the horizontal axis of the latency data quantification table can be network latency, and the vertical axis can be the fourth quality score. The latency data curve can be a one-to-one correspondence between network latency and the fourth quality score. The greater the network latency, the smaller the corresponding fourth quality score. When the network latency reaches the set maximum value, the corresponding fourth quality score reaches the minimum value.

[0107] When the data transmitted by an application is cold data, network latency requirements are lower. In this case, the latency data quantization table can be a data table. The first row of the latency data quantization table can include a latency interval and a fourth quality score. Each row, except the first, includes a latency interval and the fourth quality score corresponding to that latency interval. As you go down a row, the minimum network latency in the latency interval increases, and the corresponding fourth quality score decreases.

[0108] S207: When the network connection result is a network connection failure, mark the network message as a second network message;

[0109] Specifically, when the network connection result is a network connection failure, the network message is marked as the second network message m 2i .

[0110] S208. Obtain a network reconnection result corresponding to each second network message, where the network reconnection result includes a network reconnection success or a network reconnection failure;

[0111] Specifically, obtain the second network message m 2i The corresponding network reconnection result may be obtained from the client, or the quality monitoring module may determine the network reconnection result on its own, or the network reconnection result may be obtained from other network nodes.

[0112] During the preset time period, the quality monitoring module will parse out multiple first network messages m 1i and multiple second network packets m 2i , each time a first network message m is parsed 1i Or the second network message m 2i , then execute S201-S208 in the above operation once.

[0113] After the preset time period ends, S209 may be executed first and then S210, or S210 may be executed first and then S209, or S209 and S210 may be executed simultaneously.

[0114] S209, calculating a first quality score according to a plurality of fourth quality scores;

[0115] Specifically, within the preset time period, n1 fourth quality scores f are obtained. i , the first quality score F1 is equal to n1 fourth quality scores f i The arithmetic mean of , that is:

[0116]

[0117] Determine each network delay t according to the delay data quantification table 1i The corresponding fourth quality score f i , and then calculate multiple fourth quality scores f i The arithmetic mean of the values ​​is used to obtain the first quality score F1. This improves the accuracy of the first quality score F1 and solves the problem that when the network scenario is normal, the network delay cannot directly and accurately indicate the network quality between the client and the target server.

[0118] S210. Obtain a first value and a second value, where the first value refers to the number of successful network reconnections, and the second value refers to the total number of successful and failed network reconnections;

[0119] Specifically, the number of successful network reconnections within the preset time period is summarized, that is, the first value a1, and the total number of successful network reconnections and failed network reconnections, that is, the total number of network reconnections, that is, the second value a2.

[0120] S211, calculating a second quality score according to the first value and the second value;

[0121] Specifically, the second quality score F2 is equal to the product of the third value a3 and the preset value a4, and the third value is equal to the quotient a2 of the first value a1 and the second value, that is:

[0122]

[0123] The value of the preset value a4 is determined according to the value range of the first quality score F1. The function of the preset value a4 is to ensure that the value range of the second quality score F2 is the same as that of the first quality score F1. The reason is that in the delay data quantization table, the fourth quality score f i The value range of may be [0, 1], [0, 10], or [0, 100]. The value range of the first quality score F1 is the same as that of the fourth quality score f i The value range of the second quality score F2 is [0, 1]. Therefore, it is necessary to multiply the preset value a4 when calculating the second quality score F2 to ensure that the value range of the first quality score F1 and the second quality score F2 is the same.

[0124] The second quality score F2 is calculated based on the ratio of successful network reconnections to the total number of network reconnections in the network reconnection results. This solves the problem of increased volatility in quality score data when the network scenario is abnormal and the network delay value is infinite or the set maximum value.

[0125] After executing S209 and S211, execute S212.

[0126] S212: Calculate a third quality score based on the first quality score, the second quality score, the first preset ratio, and the second preset ratio;

[0127] Specifically, the third quality score F3 is equal to the sum of the first product and the second product, the first product is equal to the product of the first quality score F1 and the first preset ratio b1, and the second product is equal to the product of the first quality score F2 and the second preset ratio b2, where b1+b2=1, and the first preset ratio b1 and the second preset ratio b2 are composed of Figure 3 The preset ratio in the embodiment is:

[0128] F3=F1×b1+F2×(1-b1)

[0129] The first preset ratio b1 is a ratio pre-set by an operator. The value of the first preset ratio b1 may be determined based on the type of data transmitted by the application. For example, when the data transmitted by the application is hot data, b1 may be 55%, 60%, or 65%; and when the data transmitted by the application is cold data, b1 may be 65%, 70%, or 75%.

[0130] In addition, the method of this embodiment can also be used when the network scenarios within a preset time period are all normal scenarios or abnormal scenarios. When the network scenarios are all normal scenarios, only the first network message is obtained, and a first quality score is obtained based on multiple first network messages. The first quality score is used to indicate the network quality between the client and the target server within the preset time period. When the network scenarios are all abnormal scenarios, only the second network message is obtained, and a second quality score is obtained based on multiple second network messages. The second quality score is used to indicate the network quality between the client and the target server within the preset time period.

[0131] The method of this embodiment can also be used when there are multiple target servers. In this case, network packets exchanged between the client and multiple servers are filtered out based on the quintuple information, and the network scenarios of these network packets are determined one by one. The first quality score or third quality score of these network packets is calculated based on this, and then the third quality score for the preset time period is calculated.

[0132] The method of this embodiment can also be used in situations where the client is multiple client terminals, and / or the preset time period is multiple discontinuous time periods, and / or other unspecified situations. Its means and technical effects are similar and will not be repeated in this embodiment.

[0133] This embodiment provides a network quality monitoring method, which obtains a first quality score corresponding to multiple first network packets interacting between a client and a target server when the network scenario is a normal scenario within a preset time period; and obtains a second quality score corresponding to multiple second network packets interacting between the client and the target server when the network scenario is an abnormal scenario within the preset time period; determines a third quality score based on the first quality score, the second quality score, and a preset ratio, so as to indicate the network quality between the client and the target server within the preset time period based on the third quality score. The following technical effects are achieved: the third quality score is determined by the first quality score when the network scenario is a normal scenario and the second quality score when the network scenario is an abnormal scenario, thereby improving the robustness of the third quality score and solving the problems of large volatility, weak anti-interference ability, and high deviation from the actual situation in the quality score data; the second quality score reflects the situation that the network scenario is an abnormal scenario, thereby solving the problem that the abnormal scenario cannot be reflected during network quality monitoring; by adjusting the preset ratio, the proportion of the first quality score and the second quality score is adjusted in different business types, and then the third quality score is adjusted, thereby solving the problem that the client and the target server have different network quality requirements in different business types; the corresponding quintuple information is determined based on the quintuple information Whether the network message is used for interaction between the client and the target server solves the problem of being unable to distinguish the network messages interacting with the target server when the client interacts with multiple servers; based on the delay data quantification table, the fourth quality score of the network delay corresponding to each first network message is determined, and the first quality score is calculated based on the arithmetic average of multiple fourth quality scores, which improves the accuracy of the first quality score and solves the problem that the network delay cannot directly and accurately indicate the network quality between the client and the target server when the network scenario is normal; the second quality score is calculated based on the network reconnection result, which solves the problem that when the network scenario is abnormal, the network delay value is infinite or the set maximum value, which leads to increased volatility of the quality score data.

[0134] The following will Figure 4 Based on the embodiment, a detailed case is provided for specific explanation of the network quality monitoring method.

[0135] To obtain the network quality between the client and the target server within a natural day, the first step is to obtain multiple first network packets m within the natural day. 1i , each first network message m 1i The corresponding fourth quality score f i , multiple second network packets m 2i , and each second network message m 2i The corresponding network reconnection result. Wherein, any first network message m is obtained 1i , and the first network message m 1iThe corresponding fourth quality score f i , specifically including:

[0136] The quality monitoring module monitors network traffic and captures network packets using a packet capture tool. After parsing the packets, a five-tuple of data is obtained. The five-tuple contains the following information: 192.168.1.110000 TCP 121.14.88.76 80. This five-tuple indicates that the corresponding network packet was sent from a terminal with an IP address of 192.168.1.1 via port 10000, using the TCP protocol, to a terminal with an IP address of 121.14.88.76 and port 80. Data comparison reveals that the network packet was sent from the client to the target server.

[0137] The quality monitoring module obtains the network connection result corresponding to the network message from the client, and obtains that the network connection result is successful, so the network message is marked as the first network message. Since the first network message has been marked with 8 first network messages before, the first network message is recorded as m 1009 .

[0138] The quality monitoring module obtains the first network message m from the client 1009 The corresponding network delay t 1009 , we get t 1009 =50ms, set t 1009 =50ms Substituting into Table 1, we can know the network delay t 1009 The corresponding fourth quality score f 009 Table 1 is a quantization table of delay data provided in an embodiment of the present application.

[0139] Table 1

[0140] Delay interval (ms) Quality scoref [0,30) 100 [30,100) 80 [100,200) 50 [200,1000) 30 [1000,∞) 10

[0141] As shown in Table 1, when t 1009 =50ms, t 1009 The delay interval is [30, 100), and the corresponding quality score f is 80, so f 009 =80.

[0142] Secondly, after the preset time period ends, according to the obtained n1 fourth quality scores f i Determine the first quality score F1, and calculate the number of second network packets m that are successfully reconnected based on the first value a1 obtained. 2i , and the second value a2 network reconnection failed second network message m 2i Determine the second quality score F2. Specifically include:

[0143] According to n1 fourth quality scores f i , calculate the first quality score F1:

[0144]

[0145] The value range of the first quality score F1 is [0, 100]. Therefore, the preset value a4 is 100. The second quality score F2 is calculated based on the first value a1, the second value a2, and the preset value a4:

[0146]

[0147] Finally, the third quality score F3 is determined based on the first quality score F1 and the second quality score F2, specifically including:

[0148] It is determined that the application running on the client is a financial application and the data transmitted by the application is hot data. Therefore, the first preset ratio b1 is set to 60%. Based on the first quality score F1, the second quality score F2, and the first preset ratio b1, the third quality score F3 is calculated:

[0149] F3=F1×60%+F2×40%

[0150] In an embodiment of the present invention, the electronic device or main control device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0151] Figure 5 This is a schematic diagram of the structure of the network quality monitoring device provided in the embodiment of the present application. Figure 5 As shown, a network quality monitoring device 200 provided in an embodiment of the present application includes: a first acquisition module 210, a first determination module 220 and a second determination module 230;

[0152] A first acquisition module 210 is configured to acquire a plurality of first network packets and a plurality of second network packets within a preset time period, wherein the first network packets refer to network packets exchanged between the client and the target server when the network scenario is normal, and the second network packets refer to network packets exchanged between the client and the target server when the network scenario is abnormal;

[0153] A first determining module 220, configured to determine a first quality score based on a plurality of first network packets, and to determine a second quality score based on a plurality of second network packets;

[0154] The second determining module 230 is configured to determine a third quality score according to the first quality score, the second quality score, and a preset ratio, where the third quality score indicates the network quality between the client and the target server within a preset time period.

[0155] In one possible design, the first determining module 220 is configured to determine a network delay corresponding to each first network message;

[0156] The first determining module 220 is further configured to determine a first quality score according to multiple network delays.

[0157] In one possible design, the first determination module 220 includes: a substitution module and a first calculation module;

[0158] A substitution module is used to determine a fourth quality score corresponding to each network delay according to a preset delay data quantization table, wherein the delay data quantization table is used to indicate the quality score corresponding to each network delay;

[0159] The first calculation module is configured to calculate a first quality score according to the plurality of fourth quality scores, where the first quality score is equal to an arithmetic average of the plurality of fourth quality scores.

[0160] In one possible design, the first determining module 220 further includes: a second obtaining module and a third obtaining module;

[0161] A second acquisition module is used to obtain a network reconnection result corresponding to each second network message, where the network reconnection result refers to a result of the client reestablishing a network connection with the target server, and the network reconnection result includes a network reconnection success or a network reconnection failure;

[0162] A third acquisition module is used to obtain a first value and a second value, the first value is the number of successful network reconnections, and the second value is the total number of successful network reconnections and failed network reconnections;

[0163] The first calculation module is used to calculate a second quality score according to the first value and the second value, where the second quality score is equal to the product of a third value and a preset value, and the third value is equal to the quotient of the first value and the second value.

[0164] In one possible design, the second determining module 230 includes: a second calculating module

[0165] The second calculation module is configured to calculate a third quality score based on the first quality score, the second quality score, the first preset ratio, and the second preset ratio, where the third quality score is equal to the sum of the first product and the second product, the first product is equal to the product of the first quality score and the first preset ratio, the second product is equal to the product of the first quality score and the second preset ratio, and the sum of the first preset ratio and the second preset ratio is equal to 100%.

[0166] In one possible design, the first acquisition module 210 includes: a collection module, a parsing module, and a marking module;

[0167] The collection module is used to collect network messages from the network flow information when monitoring the network flow information;

[0168] A parsing module, used to parse network messages and determine the quintuple information corresponding to the network messages;

[0169] The marking module is configured to mark the network message as the first network message or the second network message if the five-tuple information indicates that the network message is used for interaction between the client and the target server.

[0170] In one possible design, the marking module includes: a fourth acquisition module;

[0171] A fourth acquisition module is used to obtain a network connection result corresponding to the network message, where the network connection result includes a network connection success or a network connection failure;

[0172] a marking module, configured to mark the network message as a first network message when the network connection result is that the network connection is successful;

[0173] The marking module is further configured to mark the network message as a second network storage 320 network message when the network connection result is a network connection failure.

[0174] This embodiment provides a network quality monitoring device that can execute a network quality monitoring method of the above embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0175] In a specific implementation of the aforementioned network quality monitoring method, each module may be implemented as a processor, and the processor may execute computer-executable instructions stored in a memory, so that the processor executes the aforementioned network quality monitoring method.

[0176] Figure 6 This is a schematic diagram of the structure of the electronic equipment hardware provided in the embodiment of the present application. Figure 6As shown, the electronic device 300 includes: at least one processor 310 and a memory 320. The electronic device 300 also includes a communication component 330. The processor 310, the memory 320 and the communication component 330 are connected via a bus 340.

[0177] In a specific implementation process, at least one processor 310 executes the computer-executable instructions stored in the memory 320, so that the at least one processor 310 executes a network quality monitoring method executed by the electronic device side as described above.

[0178] The specific implementation process of the processor 310 can be found in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0179] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0180] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.

[0181] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be classified into address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0182] The above-mentioned functions implemented by the electronic device and the main control device have introduced the solutions provided by the embodiments of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of the various examples described in the embodiments disclosed in the embodiments of the present invention, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present invention.

[0183] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned network quality monitoring method is implemented.

[0184] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. The computer-readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0185] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.

[0186] The present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0187] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0188] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the scope of protection of the present application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solution of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solution to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A network quality monitoring method, characterized in that: The method comprises: Acquire multiple first network packets and multiple second network packets in a preset time period, where the first network packets refer to network packets exchanged between the client and the target server when the network scenario is a normal scenario, and the second network packets refer to network packets exchanged between the client and the target server when the network scenario is an abnormal scenario; Determining a first quality score based on the plurality of first network packets, and determining a second quality score based on the plurality of second network packets; determining a third quality score according to the first quality score, the second quality score, and a preset ratio, wherein the third quality score is used to indicate the network quality between the client and the target server within the preset time period; Determining a second quality score according to the plurality of second network messages includes: Obtaining a network reconnection result corresponding to each second network message, wherein the network reconnection result refers to a result of the client reestablishing a network connection with the target server, and the network reconnection result includes a network reconnection success or a network reconnection failure; Obtaining a first value and a second value, wherein the first value refers to the number of successful network reconnections, and the second value refers to the total number of successful network reconnections and failed network reconnections; The second quality score is calculated based on the first value and the second value, where the second quality score is equal to the product of a third value and a preset value, and the third value is equal to the quotient of the first value and the second value.

2. The method according to claim 1, characterized in that The determining a first quality score according to the plurality of first network packets includes: Determining a network delay corresponding to each first network message; The first quality score is determined according to a plurality of network delays.

3. The method according to claim 2, characterized in that The determining the first quality score according to the multiple network delays includes: Determining a fourth quality score corresponding to each network delay according to a preset delay data quantization table, wherein the delay data quantization table is used to indicate the quality score corresponding to each network delay; The first quality score is calculated according to a plurality of fourth quality scores, where the first quality score is equal to an arithmetic average of the plurality of fourth quality scores.

4. The method according to claim 3, characterized in that Determining the third quality score according to the first quality score, the second quality score, and a preset ratio includes: The third quality score is calculated based on the first quality score, the second quality score, a first preset ratio, and a second preset ratio, where the third quality score is equal to the sum of a first product and a second product, the first product is equal to the product of the first quality score and a first preset ratio, the second product is equal to the product of the first quality score and a second preset ratio, and the sum of the first preset ratio and the second preset ratio is equal to 100%.

5. The method according to any one of claims 1 to 4, characterized in that The acquiring of a plurality of first network messages and a plurality of second network messages in a preset time period includes: When network traffic information is monitored, collecting the network message from the network traffic information; Parsing the network message to determine the quintuple information corresponding to the network message; If the five-tuple information indicates that the network packet is used for interaction between the client and the target server, the network packet is marked as the first network packet or the second network packet.

6. The method according to claim 5, characterized in that The marking the network packet as the first network packet or the second network packet includes: Obtaining a network connection result corresponding to the network message, wherein the network connection result includes a network connection success or a network connection failure; When the network connection result is that the network connection is successful, marking the network message as the first network message; When the network connection result is that the network connection fails, the network packet is marked as the second network packet.

7. A network quality monitoring device, characterized in that: The device includes: a first acquisition module, a first determination module, and a second determination module; The first acquisition module is configured to acquire a plurality of first network packets and a plurality of second network packets within a preset time period, wherein the first network packets refer to network packets exchanged between the client and the target server when the network scenario is a normal scenario, and the second network packets refer to network packets exchanged between the client and the target server when the network scenario is an abnormal scenario; The first determining module is configured to determine a first quality score based on the plurality of first network packets, and determine a second quality score based on the plurality of second network packets; The second determining module is configured to determine a third quality score according to the first quality score, the second quality score, and a preset ratio, wherein the third quality score is used to indicate the network quality between the client and the target server within the preset time period; The first determining module is specifically configured to: Obtaining a network reconnection result corresponding to each second network message, wherein the network reconnection result refers to a result of the client reestablishing a network connection with the target server, and the network reconnection result includes a network reconnection success or a network reconnection failure; Obtaining a first value and a second value, wherein the first value refers to the number of successful network reconnections, and the second value refers to the total number of successful network reconnections and failed network reconnections; The second quality score is calculated based on the first value and the second value, where the second quality score is equal to the product of a third value and a preset value, and the third value is equal to the quotient of the first value and the second value.

8. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the network quality monitoring method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the network quality monitoring method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Assessment and detection method and device of network quality

    CN107026766A

  • Network quality detection method and device, and storage medium

    CN114501495A