Network quality analysis method, device, equipment, medium and product
By collecting and analyzing three-time handshake messages in the WiFi network on the operation server, the problem of the inability to quickly locate the WiFi network quality in the existing technology, and efficient network quality analysis and user experience improvement are achieved.
Patent Information
- Application Number
- CN202411929745.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-25
AI Technical Summary
The prior art cannot quickly locate the specific reasons for poor quality when detecting poor WiFi network quality, resulting in poor user experience.
By collecting three-time handshake messages between the target network terminal, router and optical network unit on the operation server, conducting delay analysis, and performing network quality difference analysis based on the preset delay quality difference threshold, the quality difference analysis results are obtained.
It realizes rapid positioning reasons for poor quality when network quality is poor, improves the efficiency of network quality analysis, and improves user experience.
Smart Images

Figure CN119676098A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network quality analysis method, device, equipment, medium and product. Background Art
[0002] Wi-Fi is a wireless local area network technology that allows electronic devices to connect to the Internet or communicate with each other via wireless signals. It usually uses 2.4GHz or 5GHz wireless frequency bands for data transmission. Wi-Fi technology is widely used due to its convenience, flexibility and high data transmission rate, especially in indoor Internet access places such as homes and offices.
[0003] The existing method of discovering poor quality of home broadband WiFi is generally achieved by testers testing the WiFi network rate, channel conditions, and signal strength on site. Although on-site testing can comprehensively evaluate the poor quality of WiFi, it relies on manual on-site testing. The effect of poor quality detection depends on the technical ability and experience of the testers and is inefficient. In addition, the poor quality WiFi algorithm based on field strength and interference requires the WiFi device to have built-in soft probes and other plug-in modules, which are not very versatile. Not only that, even when poor WiFi quality is detected, the specific cause cannot be accurately located, and subsequent analysis and processing are required, resulting in a poor user experience.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a network quality analysis method, device, equipment, medium and product, aiming to solve the technical problem that when the network quality is poor, the specific root cause of the poor quality cannot be quickly located, resulting in a poor user experience.
[0006] To achieve the above object, the present application proposes a network quality analysis method, which is applied to an operation service end, the operation service end includes a router and an optical network unit, and the method includes:
[0007] When it is detected that the network quality of the target Internet terminal is poor, collecting a three-way handshake message between the target Internet terminal, the router and the optical network unit;
[0008] Performing delay analysis through the three-way handshake message to obtain delay distribution;
[0009] A network quality difference analysis is performed on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result.
[0010] In one embodiment, the operation service end further includes a content server, a broadband remote access server and an optical line terminal. Before the step of collecting a three-way handshake message between the target Internet terminal, the router and the optical network unit when the network quality of the target Internet terminal is detected to be poor, the method further includes:
[0011] Receiving Internet access message parameters of the target Internet access terminal;
[0012] Parsing the Internet access message parameters to obtain the round trip time of data from the target Internet access terminal to the content server;
[0013] According to the Internet access message parameters and the data round trip time, the first communication time from the target Internet access terminal to the optical network unit is calculated by the broadband remote access server and the network testing tool;
[0014] According to the first communication duration, a discrete value calculation is performed by the optical line terminal to obtain a jitter discrete value of the target Internet access terminal;
[0015] The network quality is detected according to the preset quality difference jitter threshold and jitter discrete value to obtain the quality detection result.
[0016] In one embodiment, the step of calculating the first communication duration from the target Internet access terminal to the optical network unit through the broadband remote access server and the network testing tool according to the Internet access message parameters and the data round-trip duration includes:
[0017] According to the Internet access message parameters, querying the broadband remote access server to obtain the dial-up message sent by the optical network unit;
[0018] Parsing the dial-up message to obtain a second communication duration from the optical network unit to the broadband remote access server;
[0019] According to the pre-configured periodic dialing test task, a third communication duration from the broadband remote access server to the content server is calculated by a network test tool;
[0020] The first communication duration from the target Internet access terminal to the optical network unit is obtained by calculating according to the data round trip time, the second communication duration and the third communication duration.
[0021] In one embodiment, the three-way handshake message includes a first synchronization packet, a second synchronization packet, a first synchronization confirmation packet, a second synchronization confirmation packet, a first confirmation packet, and a second confirmation packet, and the step of collecting the three-way handshake message between the target Internet access terminal, the router, and the optical network unit includes:
[0022] Determine, according to the Internet access message parameters, a first synchronization packet sent by the target Internet access terminal to the router, a first synchronization confirmation packet returned by the router to the target Internet access terminal based on the first synchronization packet, and a first confirmation packet sent by the target Internet access terminal to the router based on the first synchronization confirmation packet;
[0023] Collect three-way handshake messages between the router and the optical network unit, and determine, according to the three-way handshake messages between the router and the optical network unit, a second synchronization packet sent by the router to the optical network unit, a second synchronization confirmation packet sent by the optical network unit to the router based on the second synchronization packet, and a second confirmation packet sent by the router to the optical network unit based on the second synchronization confirmation packet.
[0024] In one embodiment, the step of performing delay analysis through the three-way handshake message to obtain a delay distribution includes:
[0025] Analyze the first synchronization packet and the first synchronization confirmation packet to obtain a router response delay;
[0026] Analyze the first synchronization confirmation packet and the first confirmation packet to obtain a channel transmission delay;
[0027] Analyze the second synchronization packet and the second synchronization confirmation packet to obtain the optical network unit response delay;
[0028] The second synchronization confirmation packet and the second confirmation packet are analyzed to obtain the router uplink link delay.
[0029] In one embodiment, the step of performing network quality analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result includes:
[0030] If the router delay exceeds the router response delay quality threshold, the quality analysis result is output as insufficient router performance; and / or
[0031] If the channel transmission delay exceeds the channel transmission delay quality difference threshold, outputting the quality difference analysis result as poor channel quality; and / or
[0032] If the optical network unit response delay exceeds the optical network unit response delay quality threshold, the output quality analysis result is that the ONU performance is insufficient; and / or
[0033] If the router uplink delay exceeds the router uplink transmission delay quality poor threshold, the output quality poor analysis result is that the router uplink quality is poor.
[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes a network quality analysis device, which is applied to an operation service end, and the operation service end includes a router and an optical network unit, and the device includes:
[0035] A collection module, used for collecting three-way handshake messages between the target Internet terminal, the router and the optical network unit when it is detected that the network quality of the target Internet terminal is poor;
[0036] A delay analysis module, used to perform delay analysis through the three-way handshake message to obtain delay distribution;
[0037] The quality difference analysis module is used to perform network quality difference analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result.
[0038] In addition, to achieve the above objectives, the present application also proposes a network quality analysis device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the network quality analysis method described above.
[0039] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the network quality analysis method described above are implemented.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the network quality analysis method described above are implemented.
[0041] One or more technical solutions proposed in this application have at least the following technical effects:
[0042] The embodiment of the present application proposes a network quality analysis method, device, equipment, medium and product, which collects three-way handshake messages between the target Internet terminal, the router and the optical network unit when the network quality of the target Internet terminal is detected to be poor; performs delay analysis through the three-way handshake message to obtain the delay distribution; performs network quality difference analysis on the delay distribution according to the preset delay quality difference threshold to obtain the quality difference analysis result. Thus, when the network quality of the target Internet terminal is detected to be poor, the delay distribution is obtained by performing delay analysis through the collected three-way handshake messages between the target Internet terminal, the router and the optical network unit, and finally performs quality difference analysis on the delay distribution according to the preset delay quality difference threshold, and obtains the root cause of the current network quality difference, which solves the problem that the specific quality difference cause cannot be located when the network quality is poor, resulting in poor user experience, and improves the efficiency of network quality analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0045] Figure 1 A flowchart of the first embodiment of the network quality analysis method of the present application is provided;
[0046] Figure 2 A schematic diagram of a network topology structure is provided for the network quality analysis method of this application;
[0047] Figure 3 The network quality analysis method of this application involves a schematic diagram of the communication line from the target Internet terminal to the content server;
[0048] Figure 4 A flowchart of the second embodiment of the network quality analysis method of the present application is provided;
[0049] Figure 5 A schematic diagram of a three-way handshake interaction of a target Internet access terminal involved in the network quality analysis method of this application;
[0050] Figure 6 This is a schematic diagram of the module structure of the network quality analysis device according to an embodiment of the present application;
[0051] Figure 7Schematic diagram of the device structure of the hardware operating environment involved in the network quality analysis method in the embodiment of the present application.
[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0055] The main solution of the embodiment of the present application is: receiving the Internet access message parameters of the target Internet access terminal; parsing the Internet access message parameters to obtain the data round-trip time from the target Internet access terminal to the content server; according to the Internet access message parameters and the data round-trip time, the first communication time from the target Internet access terminal to the optical network unit is calculated by the broadband remote access server and the network test tool; according to the first communication time, the jitter discrete value of the target Internet access terminal is obtained by discrete value calculation through the optical line terminal; network quality detection is performed according to the preset quality difference jitter threshold and jitter discrete value to obtain the quality detection result. According to the Internet access message parameters, the dial-up message sent by the optical network unit is obtained by querying the broadband remote access server; the dial-up message is parsed to obtain the second communication time from the optical network unit to the broadband remote access server; according to the pre-configured regular dial-up test task, the third communication time from the broadband remote access server to the content server is calculated by the network test tool; according to the data round-trip time, the second communication time and the third communication time, the first communication time from the target Internet access terminal to the optical network unit is calculated. According to the Internet access message parameters, determine the first synchronization packet sent by the target Internet access terminal to the router, the first synchronization confirmation packet returned by the router to the target Internet access terminal based on the first synchronization packet, and the first confirmation packet sent by the target Internet access terminal to the router based on the first synchronization confirmation packet; collect the three-way handshake message between the router and the optical network unit, and determine the second synchronization packet sent by the router to the optical network unit, the second synchronization confirmation packet sent by the optical network unit to the router based on the second synchronization packet, and the second confirmation packet sent by the router to the optical network unit based on the second synchronization confirmation packet. Analyze the first synchronization packet and the first synchronization confirmation packet to obtain the router response delay; analyze the first synchronization confirmation packet and the first confirmation packet to obtain the channel transmission delay; analyze the second synchronization packet and the second synchronization confirmation packet to obtain the optical network unit response delay; analyze the second synchronization confirmation packet and the second confirmation packet to obtain the router uplink link delay. If the router delay exceeds the router response delay quality threshold, the output quality analysis result is that the router performance is insufficient; and / or if the channel transmission delay exceeds the channel transmission delay quality threshold, the output quality analysis result is that the channel quality is poor; and / or if the optical network unit response delay exceeds the optical network unit response delay quality threshold, the output quality analysis result is that the ONU performance is insufficient; and / or if the router uplink delay exceeds the router uplink transmission delay quality threshold, the output quality analysis result is that the router uplink quality is poor.This solves the problem of poor user experience caused by the inability to locate the specific cause of poor quality when the network quality is poor, and realizes the analysis of network quality, thereby improving the efficiency of network quality analysis. Based on the scheme of the present invention, a network quality analysis method is designed based on the fact that the analysis of network quality in reality relies on manual on-site testing, the effect of poor quality detection depends on the technical ability and experience of testers, and the efficiency is low. The effectiveness of the network quality analysis method of the present invention is verified when analyzing the network quality. Finally, the efficiency of network quality analysis performed by the method of the present invention is significantly improved.
[0056] In this embodiment, for the convenience of description, the following description is made by taking the network quality analysis device as the execution subject.
[0057] Since the network quality of wireless WIFI in the existing technology is the key to affecting the Internet access perception of home broadband customers, how to effectively evaluate WIFI quality perception, discover and solve WIFI quality problems in advance, reduce user complaints, and improve home broadband Internet access quality satisfaction is a difficult point in the exploration and research of home broadband quality operation and maintenance. In the existing solutions, manual on-site testing is usually relied on, and the quality detection effect depends on the technical ability and experience of the testers, and the efficiency is low. In addition, the existing technology cannot accurately locate the root cause of poor WIFI quality, which leads to user dissatisfaction.
[0058] The present application provides a solution, in which, in the operation service end, the quality of the network is analyzed by using the quality difference jitter threshold, so as to quickly obtain the current network quality. At the same time, when the network quality is poor, the quality difference analysis is performed through the communication message of the target Internet terminal to obtain the quality difference analysis result, so as to provide users with better quality services.
[0059] It can be seen from the above embodiments that the present application collects three-way handshake messages between the target Internet terminal, the router and the optical network unit when the network quality of the target Internet terminal is detected to be poor; performs delay analysis through the three-way handshake messages to obtain delay distribution; performs network quality difference analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result. Thus, when the network quality of the target Internet terminal is detected to be poor, delay analysis is performed through the three-way handshake messages collected between the target Internet terminal, the router and the optical network unit to obtain delay distribution, and finally, quality difference analysis is performed on the delay distribution according to the preset delay quality difference threshold, and the root cause of the current network quality difference is obtained, which solves the problem of poor user experience caused by the inability to locate the specific quality difference cause when the network quality is poor, and improves the efficiency of network quality analysis.
[0060] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a network quality analysis device, etc. The following takes the network quality analysis device as an example to illustrate this embodiment and the following embodiments.
[0061] Based on this, the present application embodiment provides a network quality analysis method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the network quality analysis method of the present application.
[0062] In this embodiment, the network quality analysis method is applied to an operation service end, the operation service end includes a router and an optical network unit, and the method includes steps S01 to S04:
[0063] Step S06, when it is detected that the network quality of the target Internet terminal is poor, collecting a three-way handshake message between the target Internet terminal, the router and the optical network unit;
[0064] Before the present embodiment scheme is explained, it should be clear that Wi-Fi is a wireless local area network technology that allows electronic devices to connect to the Internet or communicate with each other through wireless signals. It usually uses 2.4GHz or 5GHz wireless frequency bands for data transmission. Wi-Fi technology is widely used due to its convenience, flexibility and high data transmission rate, especially in indoor Internet access places such as homes and offices. The existing home broadband WiFi quality discovery method is generally achieved by testers on-site testing of WIFI network rate, channel conditions, and signal strength. Although on-site testing can comprehensively evaluate the poor quality of WIFI from all aspects, it needs to rely on manual on-site testing. The quality detection effect depends on the technical ability and experience of the testers, and the efficiency is low. In addition, the poor quality WIFI algorithm based on field strength and interference requires plug-in modules such as built-in soft probes in WIFI devices, which are not very versatile. Not only that, even when poor WIFI quality is detected, the specific cause cannot be accurately located, and subsequent analysis and processing are required, resulting in a poor user experience.
[0065] Therefore, in this embodiment, in order to solve the above problem, when it is detected that the network quality of the target Internet terminal is poor, three-way handshake messages are collected between the target Internet terminal, the router and the optical network unit. Among them, the target Internet terminal in this embodiment refers to the actual user, who is connected to the operation service end through a mobile phone, tablet computer, or other device with Internet access function.
[0066] Step S07, performing network quality detection according to the Internet access message parameters, obtaining the quality detection result, performing delay analysis through the three-way handshake message, and obtaining delay distribution;
[0067] In the above network quality analysis results, the results of good network quality or poor network quality may be obtained. When the network quality is good, it will not be processed and will not affect the actual user's use. However, in the case of poor network quality, if it is not adjusted, it may lead to user complaints. However, in the use of the prior art, the actual quality problem cannot be located, and the manual processing method has the problem of low efficiency. Therefore, in this embodiment, the three-way handshake message between the router and the optical network unit and the three-way handshake message between the target Internet terminal and the router included in the above-mentioned Internet access message parameters are collected, and the delay analysis is performed through the three-way handshake message between the router and the optical network unit and the three-way handshake message between the target Internet terminal and the router to obtain the delay distribution of the current network.
[0068] Step S08, performing network quality analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result;
[0069] By performing quality analysis on the delay distribution obtained in the above embodiment through the preset delay quality difference threshold, the cause of the current poor network quality can be obtained, and then the corresponding manual processing can be notified to achieve efficient network quality problem processing.
[0070] In this embodiment, when the operation service end receives an Internet access request sent by the target Internet access terminal, it responds to it through the router and simultaneously detects the current network quality. When the network quality is poor, the quality difference is analyzed through the obtained Internet access message parameters and the three-way handshake message between the router and the optical network unit, and the specific cause of the quality difference is obtained, thereby realizing rapid detection of network quality and quickly locating the root cause of the poor quality when the network quality is abnormal, thereby solving the technical problem that the specific cause of the poor quality cannot be located when the network quality is poor, resulting in poor user experience.
[0071] Specifically, the operation service end also includes a content server, a broadband remote access server and an optical line terminal. In the above step S06, when it is detected that the network quality of the target Internet terminal is poor, before the step of collecting a three-way handshake message between the target Internet terminal, the router and the optical network unit, the method further includes:
[0072] Step S01, receiving Internet access message parameters of the target Internet access terminal;
[0073] Step S02, parsing the Internet access message parameters to obtain the round trip time of data from the target Internet access terminal to the content server;
[0074] Step S03, calculating the first communication duration from the target Internet access terminal to the optical network unit through the broadband remote access server and the network testing tool according to the Internet access message parameters and the data round-trip duration;
[0075] Step S04, performing discrete value calculation by the optical line terminal according to the first communication duration to obtain a jitter discrete value of the target Internet access terminal;
[0076] Step S05, performing network quality detection according to a preset quality difference jitter threshold and a jitter discrete value to obtain a quality detection result.
[0077] It should be clear that in actual network use, one optical line terminal OLT is connected to multiple optical modems, so in this embodiment, Figure 2 As shown, according to the actual home broadband customer multi-terminal wireless Internet access network topology, it is assumed that the OLT is connected to p home gateway ONUs, and the wireless terminal devices connected to each home gateway ONU device are sequentially numbered from 1 to n;
[0078] Then, according to the computing power of the content server or DPI server, the communication time T11 to T1n from 1 to n wireless Internet terminals to the home gateway ONU under 1 to p home gateway ONU devices under the OLT is obtained in hours or minutes;
[0079] Then, the difference between the collected communication time from the i-th wireless Internet terminal to the home gateway ONU and the average communication time from all wireless Internet terminals to the home gateway ONU under the OLT is calculated, each difference is squared, and then the sum of the squares of the differences is calculated, and then divided by the number of collections, and finally the square root is taken to obtain the jitter discrete value of the communication time from the target Internet terminal to the home gateway ONU.
[0080]
[0081] Among them, D i is the jitter discrete value of the communication time from the i-th target Internet terminal to the home gateway ONU, T 1i is the communication time from the target wireless Internet terminal to the home gateway ONU, T 1μ is the average communication time from the wireless Internet terminals under OLT to the home gateway ONU, and Q is the number of collection times in a day;
[0082] Finally, by traversing and analyzing D iAnd compare it with the quality difference discrete experience threshold (quality difference jitter threshold) M. Take multiple collections in one day as an example: data can be collected every 10 minutes, and 143 times can be collected within 24 hours. The finer the collection granularity, the higher the accuracy. In actual application, the jitter discrete value D of the communication time from the i-th target Internet terminal to the home gateway ONU can be determined according to the performance of the collection server. i >M, it is determined that the communication time T1 from the i-th wireless Internet terminal device to the home gateway ONU exceeds the poor quality jitter threshold, and the wireless Internet terminal device is determined to have poor indoor wireless Internet quality.
[0083] More specifically, the above step S03, the step of calculating the first communication duration from the target Internet access terminal to the optical network unit through the broadband remote access server and the network testing tool according to the Internet access message parameters and the data round-trip duration, includes:
[0084] Step S031, according to the Internet access message parameters, querying the broadband remote access server to obtain the dial-up message sent by the optical network unit;
[0085] Step S032, parsing the dial-up message to obtain a second communication duration from the optical network unit to the broadband remote access server;
[0086] Step S033, according to the pre-configured periodic dialing test task, a third communication duration from the broadband remote access server to the content server is calculated by a network test tool;
[0087] Step S034, calculating according to the data round-trip time, the second communication duration and the third communication duration to obtain the first communication duration from the target Internet access terminal to the optical network unit.
[0088] In this embodiment, the communication line from the target Internet terminal to the content server is as follows: Figure 3 As shown, it includes the target Internet terminal (wireless Internet terminal), optical network unit ONU, optical line terminal OLT, broadband remote access server BRAS and content server, so the first communication time from the target Internet terminal to the ONU needs to be calculated:
[0089] First, the RTT from the wireless Internet terminal device to the content server is collected through the content server or DPI server deployed by the operator (generally deployed at the provincial network exit). Then the unilateral end-to-end communication time from the wireless Internet terminal device to the content server is T = RTT / 2;
[0090] Then, the home broadband Internet access currently uses PPPoE dial-up for authentication. The dial-up initiator is the home gateway ONU, and the PPPoE responder is the BRAS. By parsing the PPPoE dial-up message from the home gateway ONU to the BRAS, the communication time T2 from the home gateway ONU to the BRAS can be calculated.
[0091] Then, since both BRAS and content server have separate fixed IP addresses, a regular dial test task can be configured on the content server, and the communication time T3 from BRAS to content server can be calculated through ping test.
[0092] Then, based on the unilateral end-to-end communication time T from the wireless Internet terminal device to the content server, the communication time T2 from the home gateway ONU device to the BRAS, and the communication time T3 from the BRAS to the content server, the communication time T1 from the wireless Internet terminal device to the home gateway ONU can be calculated as T-T2-T3. Among them, T2 and T3 are mainly related to the transmission link structure and quality of the operator network, and the fluctuation is not large. Generally, they can be dialed and measured on a daily or weekly basis for analysis and calculation. T can be obtained based on the computing power of the content server or DPI server, and is generally analyzed and calculated at the hourly or minute granularity.
[0093] Finally, the communication time T1 from the wireless Internet terminal device to the home gateway ONU is analyzed and calculated to see whether it exceeds the poor quality jitter threshold. If so, the wireless Internet terminal device is judged to have poor indoor wireless Internet quality, thereby realizing automatic discovery of poor WIFI wireless Internet quality.
[0094] This embodiment adopts the above scheme, specifically, when the network quality of the target Internet terminal is detected to be poor, the three-way handshake message between the target Internet terminal, the router and the optical network unit is collected; the delay distribution is obtained by performing delay analysis through the three-way handshake message; the network quality difference analysis is performed on the delay distribution according to the preset delay quality difference threshold to obtain the quality difference analysis result. Thus, when the network quality of the target Internet terminal is detected to be poor, the delay distribution is obtained by performing delay analysis through the three-way handshake message between the collected target Internet terminal, the router and the optical network unit, and finally the quality difference analysis is performed on the delay distribution according to the preset delay quality difference threshold, and the root cause of the current network quality difference is obtained, which solves the problem that the specific quality difference cause cannot be located when the network quality is poor, resulting in poor user experience, and improves the efficiency of network quality analysis.
[0095] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4In step S06, in the step of collecting three-way handshake messages between the target Internet terminal, the router and the optical network unit, the network quality analysis method further includes steps S071 to S072:
[0096] Step S061, determining, according to the Internet access message parameters, a first synchronization packet sent by the target Internet access terminal to the router, a first synchronization confirmation packet returned by the router to the target Internet access terminal based on the first synchronization packet, and a first confirmation packet sent by the target Internet access terminal to the router based on the first synchronization confirmation packet;
[0097] Step S062, collecting a three-way handshake message between the router and the optical network unit, and determining, according to the three-way handshake message between the router and the optical network unit, a second synchronization packet sent by the router to the optical network unit, a second synchronization confirmation packet sent by the optical network unit to the router based on the second synchronization packet, and a second confirmation packet sent by the router to the optical network unit based on the second synchronization confirmation packet;
[0098] It should be clear that the three-way handshake message in this embodiment includes a first synchronization packet, a second synchronization packet, a first synchronization confirmation packet, a second synchronization confirmation packet, a first confirmation packet and a second confirmation packet. Therefore, after determining that the current network quality is poor, it is necessary to locate the cause of the poor quality of the network. In this embodiment, since the target Internet terminal needs to perform a three-way handshake interaction with the router and the ONU gateway, the communication message can be obtained for this purpose, such as Figure 5 As shown in FIG. 1 , the TCP three-way handshake process between the wireless Internet terminal, the wireless Internet router, and the ONU gateway is divided into two stages. The first stage is the TCP three-way handshake interaction between the wireless Internet terminal and the wireless Internet router, and the second stage is the TCP three-way handshake interaction between the wireless Internet router and the ONU gateway.
[0099] In the TCP three-way handshake interaction between the wireless Internet terminal and the wireless Internet router, the time when the wireless Internet terminal sends a SYN packet is recorded as Ta1, the time when the wireless Internet router responds to the SYN-ACK packet is recorded as Ta2, and the time when the wireless Internet terminal sends an ACK packet is recorded as Ta3;
[0100] Subsequently, in the three-way handshake interaction between the wireless router and the ONU gateway, the time when the wireless router sends the SYN packet is recorded as Tb1, the time when the ONU gateway responds to the SYN-ACK packet is recorded as Tb2, and the time when the wireless router sends the ACK packet is recorded as Tb3;
[0101] Then, the delay distribution of the current network is obtained by analyzing the above communication packets Ta1, Ta2, Ta3, Tb1, Tb2 and Tb3.
[0102] Specifically, in step S07 in the above embodiment, the step of performing delay analysis through the three-way handshake message to obtain the delay distribution includes:
[0103] Step S071, analyzing the first synchronization packet and the first synchronization confirmation packet to obtain a router response delay;
[0104] Step S072, analyzing the first synchronization confirmation packet and the first confirmation packet to obtain a channel transmission delay;
[0105] Step S073, analyzing the second synchronization packet and the second synchronization confirmation packet to obtain the optical network unit response delay;
[0106] Step S074: Analyze the second synchronization confirmation packet and the second confirmation packet to obtain the router uplink delay.
[0107] Analyze and calculate the six key time points of the two-stage TCP three-way handshake between the wireless Internet terminal, wireless Internet router, and ONU gateway to calculate the wireless Internet router response delay, wireless channel transmission delay, ONU gateway response delay, and wireless Internet router uplink transmission delay;
[0108] More specifically, the above-mentioned wireless Internet router response delay = Ta2-Ta1, wireless channel transmission delay = Ta3-Ta2, ONU gateway response delay = Tb2-Tb1 and wireless Internet router uplink transmission delay = Tb3-Tb2.
[0109] More specifically, the above-mentioned delay quality difference threshold includes a router response delay quality difference threshold, a channel transmission delay quality difference threshold, an optical network unit response delay quality difference threshold, and a router uplink transmission delay quality difference threshold. Therefore, in the above-mentioned step S08, the network quality difference analysis is performed on the delay distribution according to the preset delay quality difference threshold, and the step of obtaining the quality difference analysis result includes:
[0110] Step S081, if the router delay exceeds the router response delay quality experience threshold, outputting the quality analysis result as insufficient router performance; and / or
[0111] Step S082: if the channel transmission delay exceeds the channel transmission delay quality difference empirical threshold, outputting the quality difference analysis result as poor channel quality; and / or
[0112] Step S083, if the response delay of the optical network unit exceeds the optical network unit response delay quality difference empirical threshold, outputting the quality difference analysis result as insufficient ONU performance; and / or
[0113] Step S084: if the router uplink delay exceeds the router uplink transmission delay quality difference empirical threshold, the quality difference analysis result is output as poor quality of the router uplink.
[0114] Assume that the wireless router response delay quality threshold is F1, the wireless channel transmission delay quality threshold is F2, the ONU gateway response delay quality threshold is F3, and the wireless router uplink transmission delay quality threshold is F4;
[0115] By analyzing and calculating the relationship between the wireless router response delay, wireless channel transmission delay, ONU gateway response delay, wireless router uplink transmission delay and the empirical thresholds F1, F2, F3, and F4 of each segment quality difference, the root cause of the poor WIFI quality can be accurately located.
[0116] For example, if the wireless router response delay = Ta2-Ta1>F1, the root cause of poor WIFI quality is due to insufficient performance of the wireless router. Otherwise, this cause is eliminated.
[0117] Similarly, if the wireless channel transmission delay = Ta3-Ta2>F2, the root cause of poor WIFI quality is due to poor wireless channel quality (coverage, interference), otherwise this cause is eliminated;
[0118] If ONU gateway response delay = Tb2-Tb1>F3, the root cause of poor WIFI quality is insufficient ONU gateway performance. Otherwise, this cause is eliminated.
[0119] If the wireless router uplink transmission delay = Tb3-Tb2>F4, the root cause of the poor WIFI quality is due to the poor quality of the wireless router uplink (network port, network cable, negotiated rate configuration). Otherwise, this cause is eliminated.
[0120] This embodiment uses the above scheme to determine the first synchronization packet sent by the target Internet terminal to the router, the first synchronization confirmation packet returned by the router to the target Internet terminal based on the first synchronization packet, and the first confirmation packet sent by the target Internet terminal to the router based on the first synchronization confirmation packet according to the Internet message parameters; collect the three-way handshake message between the router and the optical network unit, and determine the second synchronization packet sent by the router to the optical network unit, the second synchronization confirmation packet sent by the optical network unit to the router based on the second synchronization packet, and the second confirmation packet sent by the router to the optical network unit based on the second synchronization confirmation packet according to the three-way handshake message between the router and the optical network unit. Therefore, when it is detected that the network quality of the target Internet terminal is poor, the delay distribution is obtained by performing delay analysis through the three-way handshake messages collected between the target Internet terminal, the router and the optical network unit, and finally the delay distribution is analyzed according to the preset delay quality difference threshold, and the root cause of the current network quality difference is obtained, which solves the problem that the specific quality difference cause cannot be located when the network quality is poor, resulting in poor user experience, and improves the efficiency of network quality analysis.
[0121] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the network quality analysis method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0122] This application also provides a network quality analysis device, please refer to Figure 6 , the network quality analysis device comprises:
[0123] The collection module 10 is used to collect the three-way handshake message between the target Internet terminal, the router and the optical network unit when it is detected that the network quality of the target Internet terminal is poor;
[0124] A delay analysis module 20, configured to perform delay analysis on the three-way handshake message to obtain a delay distribution;
[0125] The quality difference analysis module 30 is used to perform network quality difference analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result.
[0126] The network quality analysis device provided by the present application adopts the network quality analysis method in the above embodiment, which can solve the technical problem that the specific cause of poor quality cannot be located when the network quality is poor, resulting in poor user experience. Compared with the prior art, the beneficial effects of the network quality analysis device provided by the present application are the same as the beneficial effects of the network quality analysis method provided by the above embodiment, and other technical features in the network quality analysis device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0127] The present application provides a network quality analysis device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network quality analysis method in the above-mentioned embodiment one.
[0128] Reference below Figure 7 , which shows a schematic diagram of the structure of a network quality analysis device suitable for implementing an embodiment of the present application. The network quality analysis device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The network quality analysis device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0129] like Figure 7As shown, the network quality analysis device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the network quality analysis device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the network quality analysis device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a network quality analysis device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0130] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0131] The network quality analysis device provided by the present application adopts the network quality analysis method in the above embodiment, which can solve the technical problem that the specific cause of poor quality cannot be located when the network quality is poor, resulting in poor user experience. Compared with the prior art, the beneficial effects of the network quality analysis device provided by the present application are the same as the beneficial effects of the network quality analysis method provided by the above embodiment, and the other technical features in the network quality analysis device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0134] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the network quality analysis method in the above-mentioned embodiment.
[0135] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0136] The computer-readable storage medium may be included in the network quality analysis device; or may exist independently without being assembled into the network quality analysis device.
[0137] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the network quality analysis device, the network quality analysis device: when detecting that the network quality of the target Internet terminal is poor, collects the three-way handshake messages between the target Internet terminal, the router and the optical network unit; performs delay analysis through the three-way handshake messages to obtain delay distribution; performs network quality difference analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result.
[0138] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0140] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0141] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned network quality analysis method, and can solve the technical problem that the specific cause of poor quality cannot be located when the network quality is poor, resulting in poor user experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the network quality analysis method provided by the above-mentioned embodiment, and will not be repeated here.
[0142] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned network quality analysis method when executed by a processor.
[0143] The computer program product provided by the present application can solve the technical problem that the specific cause of poor quality cannot be located when the network quality is poor, resulting in poor user experience. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the network quality analysis method provided by the above embodiment, and will not be repeated here.
[0144] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A network quality analysis method, characterized in that: The method is applied to an operation service end, the operation service end includes a router and an optical network unit, and the method includes: When it is detected that the network quality of the target Internet terminal is poor, collecting a three-way handshake message between the target Internet terminal, the router and the optical network unit; Performing delay analysis through the three-way handshake message to obtain delay distribution; A network quality difference analysis is performed on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result.
2. The method according to claim 1, characterized in that The operation service end also includes a content server, a broadband remote access server and an optical line terminal. Before the step of collecting a three-way handshake message between the target Internet terminal, the router and the optical network unit when the network quality of the target Internet terminal is detected to be poor, the method also includes: Receiving Internet access message parameters of the target Internet access terminal; Parsing the Internet access message parameters to obtain the round trip time of data from the target Internet access terminal to the content server; According to the Internet access message parameters and the data round trip time, the first communication time from the target Internet access terminal to the optical network unit is calculated by the broadband remote access server and the network testing tool; According to the first communication duration, a discrete value calculation is performed by the optical line terminal to obtain a jitter discrete value of the target Internet access terminal; The network quality is detected according to the preset quality difference jitter threshold and jitter discrete value to obtain the quality detection result.
3. The method according to claim 2, characterized in that The step of calculating the first communication duration from the target Internet access terminal to the optical network unit through the broadband remote access server and the network testing tool according to the Internet access message parameters and the data round-trip duration comprises: According to the Internet access message parameters, querying the broadband remote access server to obtain the dial-up message sent by the optical network unit; Parsing the dial-up message to obtain a second communication duration from the optical network unit to the broadband remote access server; According to the pre-configured periodic dialing test task, a third communication duration from the broadband remote access server to the content server is calculated by a network test tool; The first communication duration from the target Internet access terminal to the optical network unit is obtained by calculating according to the data round trip time, the second communication duration and the third communication duration.
4. The method according to claim 2, characterized in that The three-way handshake message includes a first synchronization packet, a second synchronization packet, a first synchronization confirmation packet, a second synchronization confirmation packet, a first confirmation packet and a second confirmation packet, and the step of collecting the three-way handshake message between the target Internet access terminal, the router and the optical network unit includes: Determine, according to the Internet access message parameters, a first synchronization packet sent by the target Internet access terminal to the router, a first synchronization confirmation packet returned by the router to the target Internet access terminal based on the first synchronization packet, and a first confirmation packet sent by the target Internet access terminal to the router based on the first synchronization confirmation packet; Collect three-way handshake messages between the router and the optical network unit, and determine, according to the three-way handshake messages between the router and the optical network unit, a second synchronization packet sent by the router to the optical network unit, a second synchronization confirmation packet sent by the optical network unit to the router based on the second synchronization packet, and a second confirmation packet sent by the router to the optical network unit based on the second synchronization confirmation packet.
5. The method according to claim 4, characterized in that The step of performing delay analysis through the three-way handshake message to obtain delay distribution includes: Analyze the first synchronization packet and the first synchronization confirmation packet to obtain a router response delay; Analyze the first synchronization confirmation packet and the first confirmation packet to obtain a channel transmission delay; Analyze the second synchronization packet and the second synchronization confirmation packet to obtain the optical network unit response delay; The second synchronization confirmation packet and the second confirmation packet are analyzed to obtain the router uplink link delay.
6. The method according to claim 5, characterized in that The step of performing network quality analysis on the delay distribution according to the preset delay quality difference threshold to obtain the quality difference analysis result comprises: If the router delay exceeds the router response delay quality threshold, the quality analysis result is output as insufficient router performance; and / or If the channel transmission delay exceeds the channel transmission delay quality difference threshold, outputting the quality difference analysis result as poor channel quality; and / or If the optical network unit response delay exceeds the optical network unit response delay quality threshold, the output quality analysis result is that the ONU performance is insufficient; and / or If the router uplink delay exceeds the router uplink transmission delay quality poor threshold, the output quality poor analysis result is that the router uplink quality is poor.
7. A network quality analysis device, characterized in that: The device is applied to an operation service end, the operation service end includes a router and an optical network unit, and the device includes: A collection module, used for collecting three-way handshake messages between the target Internet terminal, the router and the optical network unit when it is detected that the network quality of the target Internet terminal is poor; A delay analysis module, used to perform delay analysis through the three-way handshake message to obtain delay distribution; The quality difference analysis module is used to perform network quality difference analysis on the delay distribution according to a preset delay quality difference threshold to obtain a quality difference analysis result.
8. A network quality analysis device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the network quality analysis method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the network quality analysis method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the network quality analysis method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Wireless network time delay processing method and system and access server
CN114650592A
Network diagnosis method and electronic equipment
CN116708148A
Data transmission method and device
CN118573716A
Model data source determination method and device, equipment and storage medium
CN118802613A
Home gateway equipment interconnection method based on 5G network and Mesh network
CN119182624A