Network quality analysis method, apparatus, device, medium, and product
By collecting three-way handshake messages on the operation server for latency analysis and using preset thresholds to determine the cause of poor network quality, the problem of not being able to pinpoint the specific quality issue when the network quality is poor is solved, thus improving analysis efficiency and user experience.
Patent Information
- Application Number
- CN202411929745.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2044-12-25
AI Technical Summary
In existing technologies, it is impossible to quickly pinpoint the specific cause of poor network quality, resulting in a poor user experience, and relying on manual on-site testing is inefficient.
By collecting three-way handshake messages between the target Internet terminal, router, and optical network unit at the operation server, latency analysis is performed, and network quality analysis is conducted using a preset latency quality difference threshold to determine the specific cause of the quality difference.
It enables rapid identification of the root causes of poor network quality, improves the efficiency of network quality analysis, and enhances the user experience.
Smart Images

Figure CN119676098B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a network quality analysis method, apparatus, device, medium, and product. Background Technology
[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 typically uses the 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 locations such as homes and offices.
[0003] Current methods for detecting poor WiFi quality in home broadband typically involve on-site testing by personnel to assess WiFi network speed, channel conditions, and signal strength. While on-site testing allows for a comprehensive evaluation of WiFi quality, it relies on manual testing, making the detection effectiveness dependent on the tester's technical skills and experience, and is inefficient. Furthermore, WiFi quality algorithms based on field strength and interference require WiFi devices to have built-in software probes and other plug-in modules, resulting in limited versatility. Moreover, even when poor WiFi quality is detected, the specific cause cannot be accurately pinpointed, requiring further analysis and processing, leading to a poor user experience.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a network quality analysis method, apparatus, device, medium, and product, which aims to solve the technical problem of being unable to quickly locate the specific root cause of poor network quality, resulting in a poor user experience.
[0006] To achieve the above objectives, this application proposes a network quality analysis method, which is applied to an operation server, the operation server including a router and an optical network unit, and the method includes:
[0007] If 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.
[0008] Delay analysis was performed on the three handshake messages to obtain the delay distribution;
[0009] The network quality analysis is performed on the latency distribution based on the preset latency quality difference threshold to obtain the quality difference analysis results.
[0010] In one embodiment, the operation server further includes a content server, a broadband remote access server, and an optical line terminal. Before the step of collecting the 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, the method further includes:
[0011] Receive the Internet access packet parameters of the target Internet access terminal;
[0012] The round-trip time of data from the target internet terminal to the content server is obtained by parsing the internet access packet parameters;
[0013] Based on the Internet access packet 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 network testing tools.
[0014] Based on the first communication duration, the jitter discrete value of the target Internet access terminal is obtained by performing discrete value calculation through the optical line terminal;
[0015] Network quality is detected based on the preset quality difference jitter threshold and jitter discrete value, and the quality detection results are obtained.
[0016] In one embodiment, the step of calculating the first communication duration from the target internet terminal to the optical network unit based on the internet access packet parameters and the data round-trip time using the broadband remote access server and network testing tools includes:
[0017] Based on the Internet access message parameters, the dial-up message sent by the optical network unit is obtained by querying the broadband remote access server;
[0018] The second communication duration from the optical network unit to the broadband remote access server is obtained by parsing the dial message;
[0019] Based on the pre-configured periodic testing tasks, the third communication duration from the broadband remote access server to the content server is calculated using network testing tools.
[0020] The first communication duration from the target internet terminal to the optical network unit is obtained by calculating 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 acknowledgment packet, a second synchronization acknowledgment packet, a first acknowledgment packet, and a second acknowledgment packet. The step of collecting the three-way handshake message between the target Internet terminal, the router, and the optical network unit includes:
[0022] Based on the Internet access packet 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;
[0023] Collect the three-way handshake messages 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 acknowledgment packet sent by the optical network unit to the router based on the second synchronization packet, and the second acknowledgment packet sent by the router to the optical network unit based on the second synchronization acknowledgment packet based on the second synchronization acknowledgment packet.
[0024] In one embodiment, the step of performing delay analysis through the three-way handshake messages to obtain the delay distribution includes:
[0025] The router response delay is obtained by analyzing the first synchronization packet and the first synchronization acknowledgment packet.
[0026] The channel transmission delay is obtained by analyzing the first synchronization acknowledgment packet and the first acknowledgment packet.
[0027] The optical network unit response delay is obtained by analyzing the second synchronization packet and the second synchronization acknowledgment packet;
[0028] The uplink latency of the router is obtained by analyzing the second synchronization acknowledgment packet and the second acknowledgment packet.
[0029] In one embodiment, the step of performing network quality analysis on the latency distribution based on a preset latency quality difference threshold to obtain the quality difference analysis result includes:
[0030] If the router latency exceeds the router response latency quality defect threshold, the output quality defect analysis result is that the router performance is insufficient; and / or
[0031] If the channel transmission delay exceeds the channel transmission delay quality defect threshold, the output quality defect analysis result is "poor channel quality"; and / or
[0032] If the response delay of the optical network unit exceeds the optical network unit response delay quality defect threshold, the output quality defect analysis result is insufficient ONU performance; and / or
[0033] If the uplink latency of the router exceeds the uplink latency quality defect threshold, the output quality defect analysis result is that the router's uplink quality is poor.
[0034] Furthermore, to achieve the above objectives, this application also proposes a network quality analysis device, which is applied to an operation server, the operation server including a router and an optical network unit, and the device includes:
[0035] The acquisition module is used to acquire the 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.
[0036] The delay analysis module is used to perform delay analysis on the three-way handshake messages to obtain the delay distribution;
[0037] The latency quality analysis module is used to perform network latency quality analysis on the latency distribution according to a preset latency quality quality threshold, and obtain the latency quality analysis results.
[0038] In addition, to achieve the above objectives, this application also proposes a network quality analysis device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network quality analysis method as described above.
[0039] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the network quality analysis method described above.
[0040] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the network quality analysis method described above.
[0041] One or more technical solutions proposed in this application have at least the following technical effects:
[0042] This application proposes a network quality analysis method, apparatus, device, medium, and product. When poor network quality is detected in a target internet terminal, the method collects three-way handshake messages between the target internet terminal, router, and optical network unit (ONU). Delay analysis is performed on these three-way handshake messages to obtain a delay distribution. Finally, network quality analysis is conducted on the delay distribution based on a preset delay quality difference threshold to obtain a quality difference analysis result. Therefore, when poor network quality is detected in a target internet terminal, delay analysis is performed on the collected three-way handshake messages between the target internet terminal, router, and ONU to obtain a delay distribution. Finally, quality difference analysis is conducted on the delay distribution based on a preset delay quality difference threshold to identify the root cause of the current poor network quality. This solves the problem of not being able to pinpoint the specific cause of poor network quality, leading to a poor user experience, and improves the efficiency of network quality analysis. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a flowchart illustrating an embodiment of the network quality analysis method of this application.
[0046] Figure 2 This is a schematic diagram of the network topology involved in the network quality analysis method of this application;
[0047] Figure 3 This is a schematic diagram of the communication line from the target internet terminal to the content server involved in the network quality analysis method of this application;
[0048] Figure 4 This is a flowchart illustrating Embodiment 2 of the network quality analysis method of this application;
[0049] Figure 5 This is a schematic diagram illustrating the three-way handshake interaction of the target Internet 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 this application;
[0051] Figure 7This is a schematic diagram of the device structure of the hardware operating environment involved in the network quality analysis method in this application embodiment.
[0052] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0053] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0054] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0055] The main solution of this application embodiment is as follows: receiving the internet access packet parameters of the target internet terminal; parsing the internet access packet parameters to obtain the data round-trip time from the target internet terminal to the content server; calculating the first communication duration from the target internet terminal to the optical network unit using the broadband remote access server and network testing tools based on the internet access packet parameters and the data round-trip time; calculating the jitter discrete value of the target internet terminal using the optical line terminal based on the first communication duration; performing network quality detection based on a preset quality jitter threshold and the jitter discrete value to obtain the quality detection result. Based on the internet access packet parameters, querying the dial-up packet sent by the optical network unit using the broadband remote access server; parsing the dial-up packet to obtain the second communication duration from the optical network unit to the broadband remote access server; calculating the third communication duration from the broadband remote access server to the content server using network testing tools based on a pre-configured periodic dial-up test task; and calculating the first communication duration from the target internet terminal to the optical network unit based on the data round-trip time, the second communication duration, and the third communication duration. Based on the Internet access packet parameters, determine the first synchronization packet sent by the target Internet access terminal to the router, the first synchronization acknowledgment packet returned by the router to the target Internet access terminal based on the first synchronization packet, and the first acknowledgment packet sent by the target Internet access terminal to the router based on the first synchronization acknowledgment packet. Collect the three-way handshake messages between the router and the optical network unit (ONU), and based on the three-way handshake messages between the router and the ONU, determine the second synchronization packet sent by the router to the ONU, the second synchronization acknowledgment packet sent by the ONU to the router based on the second synchronization packet, and the second acknowledgment packet sent by the router to the ONU based on the second synchronization acknowledgment packet. Analyze the first synchronization packet and the first synchronization acknowledgment packet to obtain the router response delay; analyze the first synchronization acknowledgment packet and the first acknowledgment packet to obtain the channel transmission delay; analyze the second synchronization packet and the second synchronization acknowledgment packet to obtain the ONU response delay; analyze the second synchronization acknowledgment packet and the second acknowledgment packet to obtain the router uplink delay. If the router latency exceeds the router response latency quality defect threshold, the output quality defect analysis result is "insufficient router performance"; and / or if the channel transmission latency exceeds the channel transmission latency quality defect threshold, the output quality defect analysis result is "poor channel quality"; and / or if the optical network unit (ONU) response latency exceeds the optical network unit (ONU) response latency quality defect threshold, the output quality defect analysis result is "insufficient ONU performance"; and / or if the router uplink latency exceeds the router uplink transmission latency quality defect threshold, the output quality defect analysis result is "poor router uplink quality".This solves the problem of poor user experience caused by the inability to pinpoint the specific cause of poor network quality, enabling network quality analysis and improving its efficiency. Based on this invention, addressing the issue that real-world network quality analysis relies on manual on-site testing, where the effectiveness of quality detection depends heavily on the testers' technical skills and experience, resulting in low efficiency, a network quality analysis method was designed. The effectiveness of this method was verified during network quality analysis, and the efficiency of network quality analysis using this method was significantly improved.
[0056] In this embodiment, for ease of description, the network quality analysis device will be used as the execution subject in the following description.
[0057] Since the network quality of wireless Wi-Fi is a key factor affecting the internet experience of home broadband customers, effectively assessing Wi-Fi quality perception, identifying and resolving poor Wi-Fi quality issues in advance, reducing user complaints, and improving home broadband internet quality satisfaction are challenging aspects of home broadband quality operation and maintenance. Existing solutions typically rely on manual on-site testing, and the effectiveness of quality detection depends on the technical skills and experience of the testers, which is inefficient. Furthermore, existing technologies cannot accurately pinpoint the root cause of poor Wi-Fi quality, leading to user dissatisfaction.
[0058] This application provides a solution that uses a quality difference jitter threshold to analyze network quality in the operation server, thereby quickly obtaining the current network quality. At the same time, when the network quality is poor, quality difference analysis is performed on the communication packets of the target Internet terminal to obtain the quality difference analysis results, thus providing users with better services.
[0059] As can be seen from the above embodiments, this application, when the network quality of the target internet terminal is detected to be poor, collects the three-way handshake messages between the target internet terminal, the router, and the optical network unit; performs latency analysis on the three-way handshake messages to obtain the latency distribution; and performs network quality analysis on the latency distribution according to a preset latency quality difference threshold to obtain the quality difference analysis result. Therefore, when the network quality of the target internet terminal is detected to be poor, latency distribution is obtained by collecting the three-way handshake messages between the target internet terminal, the router, and the optical network unit, and finally, quality difference analysis is performed on the latency distribution according to a preset latency quality difference threshold, thus identifying the root cause of the current poor network quality. This solves the problem of not being able to pinpoint the specific cause of poor network quality, leading to a poor user experience, and improves the efficiency of network quality analysis.
[0060] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or network quality analysis device capable of performing the above functions. The following description uses a network quality analysis device as an example to illustrate this embodiment and the subsequent embodiments.
[0061] Based on this, embodiments of this application provide a network quality analysis method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the network quality analysis method of this application.
[0062] In this embodiment, the network quality analysis method is applied to an operation server, which includes a router and an optical network unit. The method includes steps S01 to S04:
[0063] Step S06: If the network quality of the target Internet terminal is detected to be poor, collect the three-way handshake messages between the target Internet terminal, the router, and the optical network unit.
[0064] Before describing the solution in this embodiment, 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 via wireless signals. It typically uses the 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 locations such as homes and offices. Existing methods for detecting poor Wi-Fi quality in home broadband generally involve on-site testing by personnel to check the Wi-Fi network speed, channel conditions, and signal strength. Although on-site testing can comprehensively evaluate poor Wi-Fi quality from multiple perspectives, it relies on manual on-site testing. The effectiveness of quality detection depends on the technical skills and experience of the testers and is inefficient. In addition, Wi-Fi quality algorithms based on field strength and interference require Wi-Fi devices to have built-in soft probes and other plug-in modules, which are not very universal. Moreover, even when poor Wi-Fi quality is detected, the specific cause cannot be accurately located, requiring subsequent analysis and processing, resulting in a poor user experience.
[0065] Therefore, in this embodiment, in order to solve the above problems, when the network quality of the target Internet terminal is detected to be poor, the three-way handshake messages between the target Internet terminal, the router and the optical network unit are collected. In this embodiment, the target Internet terminal refers to the actual user, who connects to the operation server through a device with Internet access, such as a mobile phone, tablet and computer.
[0066] Step S07: Perform network quality detection based on the Internet access packet parameters to obtain the quality detection results. Perform latency analysis on the three-way handshake packets to obtain the latency distribution.
[0067] The network quality analysis results above may yield either good or poor network quality. If the network quality is good, no action is taken, and it will not affect actual user experience. However, if the network quality is poor and no adjustments are made, it may lead to user complaints. However, current technology cannot pinpoint the actual quality issue, and manual processing is inefficient. Therefore, this embodiment collects the three-way handshake messages between the router and the optical network unit, as well as the three-way handshake messages between the target internet terminal and the router, included in the aforementioned internet access message parameters. Latency analysis is then performed using these three-way handshake messages to obtain the current network latency distribution.
[0068] Step S08: Perform network quality analysis on the latency distribution according to the preset latency quality difference threshold to obtain the quality difference analysis results;
[0069] By performing a latency quality difference analysis on the latency distribution obtained in the above embodiments using a pre-set latency quality difference threshold, the cause of the current poor network quality can be obtained. Then, the corresponding human intervention can be notified to handle the problem, thus achieving efficient network quality problem handling.
[0070] In this embodiment, when the operating server receives an internet access request from the target internet terminal, it responds to it through the router and simultaneously detects the current network quality. If the network quality is poor, it performs a quality defect analysis based on the obtained internet access packet parameters and the three-way handshake packets between the router and the optical network unit to obtain the specific cause of the quality defect. This enables rapid detection of network quality and quick location of the root cause of the quality defect when an anomaly occurs. This solves the technical problem of not being able to locate the specific cause of the quality defect when the network quality is poor, which leads to a poor user experience.
[0071] Specifically, the operation server also includes a content server, a broadband remote access server, and an optical line terminal. Before step S06, which involves collecting the 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, the method further includes:
[0072] Step S01: Receive the Internet access packet parameters of the target Internet access terminal;
[0073] Step S02: Parse the Internet access packet parameters to obtain the round-trip time of data from the target Internet access terminal to the content server;
[0074] Step S03: Based on the Internet access packet 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.
[0075] Step S04: Based on the first communication duration, the jitter discrete value of the target Internet access terminal is obtained by performing discrete value calculation through the optical line terminal;
[0076] Step S05: Perform network quality detection based on the preset quality difference jitter threshold and jitter discrete value to obtain the quality detection result.
[0077] It should be clear that in actual network use, a single optical line terminal (OLT) connects to multiple optical modems; therefore, this implementation example... Figure 2 As shown, based on the actual network topology of a home broadband customer with multiple terminals for wireless internet access, it is assumed that the OLT has p home gateway ONUs connected to it, and the wireless terminal devices connected to each home gateway ONU are numbered sequentially from 1 to n.
[0078] Subsequently, based on the computing power of the content server or DPI server, the communication time T11 to T1n of all wireless Internet terminals from 1 to n home gateway ONU devices under 1 to p under the OLT to the home gateway ONU is obtained in hourly and minute granularity.
[0079] Then, calculate the difference between the 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 this OLT. Square each difference, then calculate the sum of the squared differences, divide by the number of collections, and finally take the square root 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 T is the discrete jitter value of the communication time from the i-th target internet terminal to the home gateway ONU. 1i T is the communication time from the target wireless internet terminal to the home gateway ONU. 1μ Q is the average communication time from all wireless internet terminals under the OLT to the home gateway ONU, while Q is the number of data collections per day.
[0082] Finally, by traversing and analyzing D iThe data was compared with the quality difference discrete experience threshold (quality difference jitter threshold) M. Taking multiple data collections within a day as an example, data can be collected once every 10 minutes, and 143 times can be collected within 24 hours. The finer the data collection granularity, the higher the accuracy. In practical applications, 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 data collection server. i If the communication time T1 from the i-th wireless internet terminal device to the home gateway ONU exceeds the quality jitter threshold, then the wireless internet terminal device is determined to have poor indoor wireless internet quality.
[0083] More specifically, step S03 above, which involves calculating the first communication duration from the target internet terminal to the optical network unit based on the internet access packet parameters and the data round-trip time using the broadband remote access server and network testing tools, includes:
[0084] Step S031: Based on the Internet access packet parameters, query the broadband remote access server to obtain the dial-up packet sent by the optical network unit;
[0085] Step S032: Parse the dial message to obtain the second communication duration from the optical network unit to the broadband remote access server;
[0086] Step S033: According to the pre-configured periodic testing task, the third communication duration from the broadband remote access server to the content server is calculated using a network testing tool.
[0087] Step S034: Calculate the first communication duration from the target Internet terminal to the optical network unit based on the data round-trip time, the second communication duration, and the third communication duration.
[0088] In this embodiment, the communication line from the target internet terminal to the content server is as follows: Figure 3 As shown, the network includes the target internet terminal (wireless internet terminal), optical network unit (ONU), optical line terminal (OLT), broadband remote access server (BRAS), and content server. Therefore, the first communication time from the target internet terminal to the ONU is calculated to be:
[0089] First, the RTT from the wireless internet terminal device to the content server is collected by the content server or DPI server deployed by the operator (usually deployed at the provincial network exit). Then, the one-way end-to-end communication time from the wireless internet terminal device to the content server is T = RTT / 2.
[0090] Then, home broadband internet access currently uses PPPoE dialing for authentication. The dialing initiating device is the home gateway ONU, and the PPPoE responding device is the BRAS. By parsing the PPPoE dialing 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 the BRAS and the content server have their own fixed IPs, a periodic dial-up test task can be configured on the content server, and the communication time T3 between the BRAS and the content server can be calculated by ping test.
[0092] Then, based on the one-way 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 T1 = T - T2 - T3. Among them, T2 and T3 are mainly related to the structure and quality of the operator's network transmission link, and the fluctuation is not significant. They are generally measured and analyzed on a daily or weekly basis. T can be obtained based on the computing power of the content server or DPI server, and is generally analyzed and calculated at an hourly or minute level.
[0093] Finally, the system analyzes and calculates whether the communication time T1 from the wireless internet terminal device to the home gateway ONU exceeds the quality jitter threshold. If it exceeds the quality jitter threshold, the wireless internet terminal device is determined to have poor indoor wireless internet quality, thereby realizing the automatic detection of poor WIFI wireless internet quality.
[0094] This embodiment, through the above-described scheme, specifically, when poor network quality is detected in the target internet terminal, collects the three-way handshake messages between the target internet terminal, the router, and the optical network unit; performs latency analysis on the three-way handshake messages to obtain the latency distribution; and then performs network quality analysis on the latency distribution according to a preset latency quality difference threshold to obtain the quality difference analysis result. Therefore, when poor network quality is detected in the target internet terminal, latency distribution is obtained through the collected three-way handshake messages between the target internet terminal, the router, and the optical network unit. Finally, quality difference analysis is performed on the latency distribution according to a preset latency quality difference threshold, thus identifying the root cause of the current network quality problem. This solves the problem of not being able to pinpoint the specific cause of poor network quality, leading to a poor user experience, and improves the efficiency of network quality analysis.
[0095] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4In step S06, the network quality analysis method further includes steps S071 to S072, in the step of collecting the three-way handshake messages between the target Internet terminal, the router, and the optical network unit:
[0096] Step S061: 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 access packet parameters.
[0097] Step S062: Collect the three-way handshake messages 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 acknowledgment packet sent by the optical network unit to the router based on the second synchronization packet, and the second acknowledgment packet sent by the router to the optical network unit based on the second synchronization acknowledgment packet based on the second synchronization acknowledgment packet based on the three-way handshake messages between the router and the optical network unit.
[0098] It should be clear that the three-way handshake messages in this embodiment include a first synchronization packet, a second synchronization packet, a first synchronization acknowledgment packet, a second synchronization acknowledgment packet, a first acknowledgment packet, and a second acknowledgment packet. Therefore, after determining that the current network quality is poor, it is necessary to locate the cause of the poor network quality. In this embodiment, since the target internet terminal needs to perform a three-way handshake interaction with the router and ONU gateway, the communication messages can be obtained accordingly, such as... Figure 5 As shown, the TCP three-way handshake process between the wireless internet terminal, the wireless internet router, and the ONU gateway is divided into two parts: the first part is the TCP three-way handshake interaction between the wireless internet terminal and the wireless internet router, and the second part is the 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 the 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 the ACK packet is recorded as Ta3.
[0100] Subsequently, during 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 with the SYN-ACK packet is recorded as Tb2, and the time when the wireless router sends the ACK packet is recorded as Tb3.
[0101] Subsequently, the latency distribution of the current network is obtained by analyzing the aforementioned communication packets Ta1, Ta2, Ta3, Tb1, Tb2, and Tb3.
[0102] Specifically, step S07 in the above embodiment, which involves performing delay analysis on the three-way handshake messages to obtain the delay distribution, includes:
[0103] Step S071: Analyze the first synchronization packet and the first synchronization acknowledgment packet to obtain the router response delay;
[0104] Step S072: Analyze the first synchronization confirmation packet and the first confirmation packet to obtain the channel transmission delay;
[0105] Step S073: Analyze the second synchronization packet and the second synchronization acknowledgment 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] The analysis and calculation of six key time points in the two TCP three-way handshakes between the wireless internet terminal, the wireless internet router, and the ONU gateway yielded 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 router response delay = Ta2-Ta1, wireless channel transmission delay = Ta3-Ta2, ONU gateway response delay = Tb2-Tb1, and wireless router uplink transmission delay = Tb3-Tb2.
[0109] More specifically, the aforementioned latency quality degradation thresholds include router response latency quality degradation thresholds, channel transmission latency quality degradation thresholds, optical network unit response latency quality degradation thresholds, and router uplink transmission latency quality degradation thresholds. Therefore, step S08, which involves performing network quality degradation analysis on the latency distribution based on the preset latency quality degradation thresholds to obtain the quality degradation analysis results, includes:
[0110] Step S081: If the router latency exceeds the router response latency quality defect empirical threshold, then the quality defect analysis result is output as insufficient router performance; and / or
[0111] Step S082: If the channel transmission delay exceeds the channel transmission delay quality defect empirical threshold, then the quality defect analysis result is output as poor channel quality; and / or
[0112] Step S083: If the optical network unit (ONU) response delay exceeds the empirical threshold for poor ONU response delay quality, the quality analysis result is output as insufficient ONU performance; and / or
[0113] Step S084: If the uplink latency of the router exceeds the empirical threshold for poor uplink transmission latency of the router, the quality analysis result is output as poor uplink quality of the router.
[0114] Assume that the empirical threshold for poor response latency of the wireless router is F1, the empirical threshold for poor transmission latency of the wireless channel is F2, the empirical threshold for poor response latency of the ONU gateway is F3, and the empirical threshold for poor transmission latency of the uplink of the wireless router is F4.
[0115] By analyzing and calculating the relationship between the response latency of the wireless router, the transmission latency of the wireless channel, the response latency of the ONU gateway, the transmission latency of the wireless router uplink, and the empirical thresholds F1, F2, F3, and F4 for each segment of poor quality, the root cause of poor WIFI quality can be accurately located.
[0116] For example, if the response latency of a wireless router = Ta2 - Ta1 > F1, then the root cause of poor Wi-Fi quality is insufficient performance of the wireless router; otherwise, this cause can be ruled out.
[0117] Similarly, if the wireless channel transmission delay = Ta3 - Ta2 > F2, then the root cause of poor WIFI quality is poor wireless channel quality (coverage, interference), and the opposite is true.
[0118] If the ONU gateway response latency = Tb2 - Tb1 > F3, then the root cause of poor WIFI quality is insufficient ONU gateway performance; otherwise, this cause can be ruled out.
[0119] If the uplink transmission delay of the wireless router = Tb3 - Tb2 > F4, then the root cause of the poor WIFI quality is the poor quality of the uplink of the wireless router (network port, network cable, negotiation speed configuration). Otherwise, this cause can be ruled out.
[0120] This embodiment, through the above-described scheme, specifically determines the first synchronization packet sent by the target internet terminal to the router, the first synchronization acknowledgment packet returned by the router to the target internet terminal based on the first synchronization packet, and the first acknowledgment packet sent by the target internet terminal to the router based on the first synchronization acknowledgment packet, based on the internet access packet parameters. It collects the three-way handshake packets between the router and the optical network unit (ONU), and determines the second synchronization packet sent by the router to the ONU, the second synchronization acknowledgment packet sent by the ONU to the router based on the second synchronization packet, and the second acknowledgment packet sent by the router to the ONU based on the second synchronization acknowledgment packet, based on the three-way handshake packets between the router and the ONU. Therefore, when poor network quality is detected in the target internet terminal, latency analysis is performed on the collected three-way handshake packets between the target internet terminal, the router, and the ONU to obtain the latency distribution. Finally, quality analysis is performed on the latency distribution based on a preset latency quality difference threshold to obtain the root cause of the current poor network quality. This solves the problem of not being able to pinpoint the specific cause of poor network quality, leading to a poor user experience, and improves the efficiency of network quality analysis.
[0121] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the network quality analysis method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0122] This application also provides a network quality analysis device; please refer to [reference needed]. Figure 6 The network quality analysis device includes:
[0123] The acquisition module 10 is used to acquire the 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.
[0124] The delay analysis module 20 is used to perform delay analysis on the three-way handshake messages to obtain the delay distribution;
[0125] The quality difference analysis module 30 is used to perform network quality difference analysis on the time delay distribution according to a preset time delay quality difference threshold, and obtain the quality difference analysis result.
[0126] The network quality analysis device provided in this application, employing the network quality analysis method described in the above embodiments, can solve the technical problem of poor user experience caused by the inability to pinpoint the specific cause of poor network quality. Compared with the prior art, the beneficial effects of the network quality analysis device provided in this application are the same as those of the network quality analysis method provided in the above embodiments, and other technical features in the network quality analysis device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0127] This application provides a network quality analysis device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the network quality analysis method in Embodiment 1 above.
[0128] The following is for reference. Figure 7 The diagram illustrates a structural schematic of a network quality analysis device suitable for implementing embodiments of this application. The network quality analysis device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The network quality analysis device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0129] like Figure 7As shown, the network quality analysis device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the network quality analysis device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the network quality analysis device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a network quality analysis device with various systems, it should be understood that implementing or having all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0130] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0131] The network quality analysis device provided in this application, employing the network quality analysis method described in the above embodiments, can solve the technical problem of poor user experience caused by the inability to pinpoint the specific cause of poor network quality. Compared with the prior art, the beneficial effects of the network quality analysis device provided in this application are the same as those of the network quality analysis method provided in the above embodiments, and other technical features of this network quality analysis device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0132] It should be understood that the various parts disclosed in this application can be implemented using 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 suitable manner in one or more embodiments or examples.
[0133] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0134] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the network quality analysis method described in the above embodiments.
[0135] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. 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 conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0136] The aforementioned computer-readable storage medium may be included in the network quality analysis device; or it may exist independently and not be assembled into the network quality analysis device.
[0137] The aforementioned computer-readable storage medium carries one or more programs. When the aforementioned one or more programs are executed by the network quality analysis device, the network quality analysis device: when it detects that the network quality of the target Internet terminal is poor, collects three-way handshake messages between the target Internet terminal, the router, and the optical network unit; performs latency analysis on the three-way handshake messages to obtain a latency distribution; and performs network quality analysis on the latency distribution according to a preset latency quality difference threshold to obtain a quality difference analysis result.
[0138] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0139] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0140] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0141] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described network quality analysis method. This solves the technical problem of poor user experience caused by the inability to pinpoint the specific cause of poor network quality. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the network quality analysis method provided in the above embodiments, and will not be repeated here.
[0142] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the network quality analysis method described above.
[0143] The computer program product provided in this application can solve the technical problem of poor user experience caused by the inability to pinpoint the specific cause of poor network quality. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the network quality analysis method provided in the above embodiments, and will not be repeated here.
[0144] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A network quality analysis method, characterized in that, The method is applied to an operation server, which includes a router and an optical network unit, and the method includes: If 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 latency distribution is obtained by performing latency analysis on the three-way handshake messages. The latency distribution includes the response latency of the wireless router, the wireless channel transmission latency, the ONU gateway response latency, and the uplink transmission latency of the wireless router. The network quality analysis is performed on the latency distribution based on a preset latency quality difference threshold to obtain the quality difference analysis results; The latency quality thresholds include router response latency quality thresholds, channel transmission latency quality thresholds, optical network unit response latency quality thresholds, and router uplink transmission latency quality thresholds. The step of performing network quality analysis on the latency distribution based on the preset latency quality thresholds to obtain the quality analysis results includes: If the router response latency exceeds the router response latency quality defect threshold, the output quality defect analysis result is that the router performance is insufficient. If the channel transmission delay exceeds the channel transmission delay quality defect threshold, the output quality defect analysis result is poor channel quality; If the response delay of the optical network unit exceeds the response delay quality defect threshold of the optical network unit, the output quality defect analysis result is that the ONU performance is insufficient; If the uplink latency of the router exceeds the uplink latency quality defect threshold, the output quality defect analysis result is that the router's uplink quality is poor.
2. The method as described in claim 1, characterized in that, The operation server also includes a content server, a broadband remote access server, and an optical line terminal. Before the step of collecting the 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, the method further includes: Receive the Internet access packet parameters of the target Internet access terminal; The round-trip time of data from the target internet terminal to the content server is obtained by parsing the internet access packet parameters; Based on the Internet access packet 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 network testing tools. Based on the first communication duration, the jitter discrete value of the target Internet access terminal is obtained by performing discrete value calculation through the optical line terminal; Network quality is detected based on the preset quality difference jitter threshold and jitter discrete value, and the quality detection results are obtained.
3. The method as described in claim 2, characterized in that, The step of calculating the first communication duration from the target internet terminal to the optical network unit based on the internet access packet parameters and the data round-trip time using the broadband remote access server and network testing tools includes: Based on 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 second communication duration from the optical network unit to the broadband remote access server is obtained by parsing the dial message; Based on the pre-configured periodic testing tasks, the third communication duration from the broadband remote access server to the content server is calculated using network testing tools. The first communication duration from the target internet terminal to the optical network unit is obtained by calculating the data round-trip time, the second communication duration, and the third communication duration.
4. The method as described in claim 2, characterized in that, The three-way handshake message includes a first synchronization packet, a second synchronization packet, a first synchronization acknowledgment packet, a second synchronization acknowledgment packet, a first acknowledgment packet, and a second acknowledgment packet. The step of collecting the three-way handshake message between the target Internet terminal, the router, and the optical network unit includes: Based on the Internet access packet 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 messages 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 acknowledgment packet sent by the optical network unit to the router based on the second synchronization packet, and the second acknowledgment packet sent by the router to the optical network unit based on the second synchronization acknowledgment packet based on the second synchronization acknowledgment packet.
5. The method as described in claim 4, characterized in that, The step of performing delay analysis through the three-way handshake messages to obtain the delay distribution includes: The router response delay is obtained by analyzing the first synchronization packet and the first synchronization acknowledgment packet. The channel transmission delay is obtained by analyzing the first synchronization acknowledgment packet and the first acknowledgment packet. The optical network unit response delay is obtained by analyzing the second synchronization packet and the second synchronization acknowledgment packet; The uplink latency of the router is obtained by analyzing the second synchronization acknowledgment packet and the second acknowledgment packet.
6. A network quality analysis device, characterized in that, The device is used in an operation server, which includes a router and an optical network unit. The device includes: The acquisition module is used to acquire the 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. The latency analysis module is used to perform latency analysis on the three-way handshake messages to obtain the latency distribution, wherein the latency distribution includes the wireless router response latency, the wireless channel transmission latency, the ONU gateway response latency, and the wireless router uplink transmission latency. The latency quality analysis module is used to perform network latency quality analysis on the latency distribution according to a preset latency quality quality threshold, and obtain the latency quality analysis results. The latency quality difference thresholds include router response latency quality difference thresholds, channel transmission latency quality difference thresholds, optical network unit response latency quality difference thresholds, and router uplink transmission latency quality difference thresholds. The quality difference analysis module is also used for: If the router response latency exceeds the router response latency quality defect threshold, the output quality defect analysis result is that the router performance is insufficient. If the channel transmission delay exceeds the channel transmission delay quality defect threshold, the output quality defect analysis result is poor channel quality; If the response delay of the optical network unit exceeds the response delay quality defect threshold of the optical network unit, the output quality defect analysis result is that the ONU performance is insufficient; If the uplink latency of the router exceeds the uplink latency quality defect threshold, the output quality defect analysis result is that the router's uplink quality is poor.
7. A network quality analysis device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the network quality analysis method as described in any one of claims 1 to 5.
8. A computer storage medium, characterized in that, The computer storage medium is a computer-readable storage medium, and a computer program is stored on the computer storage medium. When the computer program is executed by a processor, it implements the steps of the network quality analysis method as described in any one of claims 1 to 5.
9. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the network quality analysis method as described in any one of claims 1 to 5.
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