A method and system for detecting Internet link quality based on browser HTTP protocol
By using a browser-based HTTP protocol-based Internet link quality detection method, dynamic path parameters and timestamp queries are used to eliminate outliers and generate visual reports. This solves the device dependency and accuracy problems of existing detection methods and achieves efficient and secure link quality assessment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI HENGXIANG NETWORK TECH CO LTD
- Filing Date
- 2026-02-28
- Publication Date
- 2026-05-26
AI Technical Summary
Existing methods for testing Internet link quality rely on dedicated terminal equipment, which are complex to operate, require manual recording of reports, result in distorted test results, lack comprehensive quality assessment, and have low accuracy.
By using a browser-based HTTP protocol, we construct a method to dynamically generate random path parameters, add timestamp query parameters, set request timeout thresholds, and disable caching mechanisms. We use XMLHttpRequest to perform asynchronous TCP connection testing, combine it with an IP query interface to obtain geographical location, remove outliers, calculate quality indicator data, and generate a visual report.
No dedicated terminal equipment is required, reducing operational complexity, improving testing efficiency and accuracy, enhancing concealment and security, ensuring the comprehensiveness and reliability of test results, and reducing internet usage costs.
Smart Images

Figure CN122093281A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer network quality detection technology, specifically a method and system for detecting internet link quality based on the browser HTTP protocol. Background Technology
[0002] Testing the quality of internet links is beneficial for accurately evaluating performance indicators such as bandwidth, latency, and packet loss rate. Based on the test results, network bandwidth allocation and routing strategies can be optimized to improve network transmission speed and response time. This enhances network efficiency, facilitating faster web browsing, file downloads, video streaming, and other internet activities. Currently, end-to-end access latency quality verification of existing broadband internet lines commonly uses ICMP ping testing. However, this existing method has the following shortcomings:
[0003] (1) Existing testing methods require the use of PC devices with ping tools installed, while PDA terminals are often used in actual construction, which require dedicated terminal devices and have limited functionality;
[0004] (2) Existing testing methods require manual recording of test results and compilation of reports, which is highly complex and inefficient.
[0005] (3) Because some network environments prohibit the ICMP protocol, the existing testing methods may result in distorted test results.
[0006] (4) Existing testing methods can only obtain basic connectivity data, lack comprehensive quality assessment, and have single indicators, resulting in low accuracy of quality assessment results. Summary of the Invention
[0007] The purpose of this invention is to provide an Internet link quality detection method and system based on the browser HTTP protocol. By constructing an HTTP request that dynamically generates random path parameters, adds timestamp query parameters, sets request timeout thresholds, and disables caching mechanisms, the system can detect TCP ports and monitor latency data through statistical analysis of quality indicator data. This can effectively improve the testing efficiency of TCP ports and reduce the cost of Internet use.
[0008] To achieve the above objectives, the present invention provides the following technical solution:
[0009] Firstly, a method for detecting internet link quality based on the browser's HTTP protocol is provided, including:
[0010] Based on the HTTP protocol, the public IP query interface is called to obtain the public IP address and geographical location of the target terminal;
[0011] Construct an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, and use the first object XMLHttpRequest to initiate asynchronous TCP connection test requests to multiple pre-configured target nodes (IP:Port);
[0012] Receive and store the response status of each test request, and use the timestamp to get the latency data of each test request (performance.now()), where the response status includes success, timeout, and reachability;
[0013] Several outliers in the latency data are removed to obtain valid latency data. The TCP handshake duplicate latency of the valid latency data is eliminated to obtain the target latency data. The quality index data of the target latency data is calculated, including the values of connectivity, average latency, maximum / minimum latency and network jitter.
[0014] A six-dimensional statistical panel is used to output quality indicator data, resulting in a visualized quality test report.
[0015] As a further aspect of the present invention: the HTTP request includes dynamically generating random path parameters, adding timestamp query parameters, setting a request timeout threshold, and disabling the caching mechanism, wherein the default value of the request timeout threshold is 1500ms.
[0016] As a further aspect of the present invention: the public IP query interface includes an IP location interface (ipapi.co) for obtaining IP addresses and geographical locations associated with IP addresses, an IP address query interface (ipinfo.io) for obtaining IP addresses, ASNs, AS names, AS domain names, and zone codes, and an interface (ipify.org) for obtaining public IP addresses in plain text format.
[0017] As a further aspect of the present invention: the step of obtaining the public IP address and geographical location of the target terminal by calling the public IP query interface based on the HTTP protocol includes:
[0018] Parallel calls to the IP location interface, IP address query interface, and public IP address interface;
[0019] A failover mechanism is employed to automatically obtain the public IP address and geographical location of the target terminal. The IP location interface, IP address query interface, and public IP address interface are all third-party API interfaces.
[0020] As a further aspect of the present invention: the step of removing several outliers from the latency data to obtain valid latency data, and eliminating the TCP handshake duplicate latency of the valid latency data, includes:
[0021] Remove the three highest latency data from the acquired latency data and use the remaining latency data as valid latency data;
[0022] Divide the effective delay data by 2 to eliminate TCP handshake duplicate delay.
[0023] As a further aspect of the present invention: the construction of an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, and the initiation of asynchronous TCP connection test requests to multiple pre-configured target nodes (IP:Port) using a first object XMLHttpRequest, includes:
[0024] Generate a test path containing a random string for each target node.
[0025] (Math.random().toString(36).substr(2,6));
[0026] Configure a dual timeout mechanism with a global timeout of 3 seconds and a timeout of 1.5 seconds for each request;
[0027] The TCP connection latency is calculated using the trigger events of the XHR interface, which include onloadstart, onerror, and onload events.
[0028] As a further aspect of the present invention: the formula for calculating network jitter value is as follows:
[0029] jitter = Σ|delay[n] - delay[n-1]| / (number of valid samples - 1).
[0030] As a further aspect of the present invention: the formula for calculating the connectivity rate is:
[0031] Connectivity = (Number of successful responses / Total number of tests) × 100%;
[0032] The formula for calculating network jitter is:
[0033] Network jitter = Σ|difference between adjacent delays| / (number of valid samples - 1).
[0034] As a further aspect of the present invention: the visualized quality test report includes a node status container grouped by target node, a statistical matrix of quality indicator data displayed in a 6-column grid layout, and a hover dynamic effect (transform:translateY(-3px)).
[0035] Secondly, an Internet link quality detection system based on the browser HTTP protocol is provided, the system including an IP detection module, a test execution module, a data analysis module and a report generation module;
[0036] The IP detection module is configured to use the HTTP protocol to call a public IP query interface to obtain the public IP address and geographical location of the target terminal.
[0037] The test execution module is configured to construct an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, and use the first object XMLHttpRequest to initiate asynchronous TCP connection test requests to multiple pre-configured target nodes (IP:Port);
[0038] The data analysis module is configured to receive and store the response status of each test request, and to obtain the latency data of each test request using a timestamp acquisition program (performance.now()), where the response status includes success, timeout, and reachability; remove several outliers from the latency data to obtain valid latency data, eliminate duplicate TCP handshake latency in the valid latency data to obtain target latency data, and calculate the quality index data of the target latency data, where the quality index data includes connectivity, average latency, maximum / minimum latency, and network jitter values.
[0039] The report generation module is configured to output quality indicator data using a six-dimensional statistical panel to obtain a visualized quality test report.
[0040] Compared with the prior art, the beneficial effects of the present invention are:
[0041] 1. In this invention, by constructing an HTTP request that dynamically generates random path parameters, adds timestamp query parameters, sets request timeout thresholds, and disables caching mechanisms, TCP port probing is performed. Latency data can be monitored through statistical analysis of quality indicator data, which can effectively improve the testing efficiency and the authenticity of TCP ports. It does not rely on specific terminal devices, does not require manual recording and compilation of test result reports, and can effectively reduce the complexity of testing operations and reduce the cost of Internet use.
[0042] 2. In this invention, by setting up an IP detection module, a test execution module, a data analysis module, and a report generation module, a test path containing a random string can be generated for each target node, which greatly improves the concealment and security of the test. At the same time, during the TCP port probing process, it is not easy to be identified by the target system and may trigger corresponding defense mechanisms, which can effectively protect the security of the port testing process without affecting the normal operation of the tested port, and improve the accuracy and comprehensiveness of the port test results.
[0043] 3. In this invention, by setting a dual timeout mechanism, testing efficiency and accuracy can be improved. By combining a global 3-second timeout with a single request 1.5-second timeout, the timeliness of the testing process is guaranteed, while avoiding the decrease in testing efficiency caused by excessively long single request timeouts. This ensures that each target node can be fully tested, which not only effectively improves the test coverage but also reduces the test failure rate caused by network fluctuations or target system response delays.
[0044] 4. In this invention, the TCP connection latency is accurately calculated through the triggering event of XHR, which can ensure the accuracy and reliability of TCP port test results. By capturing information on the connection start, error occurrence and connection completion times in the TCP connection process in real time through the triggering event, the TCP connection latency is accurately calculated and used to evaluate the network performance and stability of the target node, which facilitates the daily troubleshooting of Internet link quality. Attached Figure Description
[0045] Figure 1 This is a diagram illustrating the method steps of the present invention;
[0046] Figure 2 This is a flowchart of the present invention;
[0047] Figure 3 This is a diagram showing the algorithm set and algorithm framework of the present invention;
[0048] Figure 4 This is the TCP timing detection diagram of the present invention;
[0049] Figure 5 This is a flowchart of the process for handling abnormal states according to the present invention;
[0050] Figure 6 This is a diagram showing the actual test results of the TCP port of this invention.
[0051] In the diagram: 1. IP detection module; 2. Test execution module; 3. Data analysis module; 4. Report generation module. Detailed Implementation
[0052] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0053] Example:
[0054] The hardware implementation environment configuration requirements of this invention include Chrome 89+ and Android 10+, wherein the maximum number of concurrent test nodes for Chrome 89+ is 20 nodes and the maximum number of concurrent test nodes for Android 10+ is 10 nodes.
[0055] Please see Figure 1 In this embodiment of the invention, an Internet link quality detection method based on the browser HTTP protocol is provided, comprising the following steps:
[0056] S1: Based on the HTTP protocol, call the ipapi.co, ipinfo.io, and ipify.org interfaces to obtain the public IP address and geographical location of the target terminal;
[0057] S2: Construct an HTTP request URL containing random path parameters and timestamps, and use XMLHttpRequest to initiate asynchronous TCP connection test requests to multiple pre-configured IP:Port addresses;
[0058] S3: Receive and store the response status of each test request, and use performance.now() to obtain the latency data of each test request, where the response status includes success, timeout, and reachability;
[0059] S4: Remove several outliers from the latency data to obtain valid latency data, eliminate duplicate TCP handshake latency in the valid latency data to obtain target latency data, and calculate the quality index data of the target latency data, which includes the values of connectivity, average latency, maximum / minimum latency and network jitter.
[0060] S5: Use a six-dimensional statistical panel to output quality indicator data and obtain a visualized quality test report.
[0061] Example 1:
[0062] Preferably, in step S1, a failover mechanism is used to automatically obtain the public IP address and geographical location of the target terminal.
[0063] Preferably, in step S2, the HTTP request includes dynamically generating random path parameters, adding timestamp query parameters, setting a request timeout threshold, and disabling the caching mechanism, wherein the default value of the request timeout threshold is 1500ms.
[0064] Preferably, in step S2, an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps is constructed, and an asynchronous TCP connection test request is initiated to multiple pre-configured target nodes (IP:Port) using the first object XMLHttpRequest, including:
[0065] Generate a test path containing a random string for each target node.
[0066] (Math.random().toString(36).substr(2,6));
[0067] Setting up a dual timeout mechanism with a global 3-second timeout and a single request 1.5-second timeout can improve testing efficiency and accuracy. The combination of the global 3-second timeout and the single request 1.5-second timeout ensures the timeliness of the testing process while avoiding the decrease in testing efficiency caused by excessively long single request timeouts, thus ensuring that each target node is fully tested.
[0068] The TCP connection latency is calculated using the trigger events of the XHR interface, which include onloadstart, onerror, and onload events.
[0069] Preferably, in step S4, several outliers in the latency data are removed to obtain valid latency data, and the TCP handshake duplicate latency of the valid latency data is eliminated, including:
[0070] Remove the three highest latency data from the acquired latency data and use the remaining latency data as valid latency data;
[0071] Divide the effective delay data by 2 to eliminate TCP handshake duplicate delay.
[0072] Preferably, in step S4, the formula for calculating the network jitter value is:
[0073] jitter = Σ|delay[n] - delay[n-1]| / (number of valid samples - 1).
[0074] Preferably, the formula for calculating connectivity is:
[0075] Connectivity = (Number of successful responses / Total number of tests) × 100%;
[0076] The formula for calculating network jitter is:
[0077] Network jitter = Σ|difference between adjacent delays| / (number of valid samples - 1).
[0078] Preferably, in step S5, the visualized quality test report includes a node status container grouped by target node, a statistical matrix of quality indicator data displayed in a 6-column grid layout, and a hover dynamic effect (transform:translateY(-3px)).
[0079] In this embodiment, steps S1 to S6 are used to measure the latency of the TCP port. The program code is as follows:
[0080] let preciseStart;
[0081] xhr.onloadstart = () => {
[0082] preciseStart = performance.now(); / / High-precision timing start point
[0083] timeoutTimer = setTimeout(() => {
[0084] xhr.abort();
[0085] recordTimeout();
[0086] }, dynamicTimeout()); / / Dynamic timeout threshold
[0087] }
[0088] Example 2:
[0089] The difference between this embodiment and the above embodiments is that it is optimized for mobile devices, and the program code is as follows:
[0090] function touchHandler() {
[0091] button.addEventListener('touchend', () => {
[0092] setTimeout(startTest, 300); / / Touch delay compensation
[0093] })
[0094] }
[0095] Example 3:
[0096] The difference between this embodiment and the above embodiments is that it discloses the process for handling abnormal states.
[0097] like Figure 5 As shown in this embodiment, the process for handling abnormal states includes the test engine sending an HTTP request to the server, the server responding normally or after a timeout, and when the server responds after a timeout, the backup node will be automatically switched to respond to the test engine's HTTP request through the backup node.
[0098] like Figure 2 As shown, an Internet link quality detection system based on the browser HTTP protocol is provided. The system includes an IP detection module 1, a test execution module 2, a data analysis module 3, and a report generation module 4. By configuring the IP detection module 1, test execution module 2, data analysis module 3, and report generation module 4, a test path containing a random string can be generated for each target node, which greatly improves the concealment and security of the test. At the same time, during TCP port probing, it is not easy to be identified by the target system and may trigger corresponding defense mechanisms. It can effectively protect the security of the port testing process without affecting the normal operation of the tested port, and improve the accuracy and comprehensiveness of the port test results.
[0099] Among them, IP detection module 1 is configured to use the HTTP protocol to call the public IP query interface to obtain the public IP address and geographical location of the target terminal;
[0100] Test execution module 2 is configured to construct an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, and use the first object XMLHttpRequest to initiate asynchronous TCP connection test requests to multiple pre-configured target nodes (IP:Port);
[0101] Data analysis module 3 is configured to receive and store the response status of each test request. It uses a timestamp acquisition program (performance.now()) to obtain the latency data of each test request, where the response status includes success, timeout, and reachability. It removes several outliers from the latency data to obtain valid latency data, eliminates duplicate TCP handshake latency in the valid latency data to obtain target latency data, and calculates the quality index data of the target latency data, where the quality index data includes the values of connectivity, average latency, maximum / minimum latency, and network jitter.
[0102] The report generation module 4 is configured to output quality indicator data using a six-dimensional statistical panel to obtain a visualized quality test report. By accurately calculating TCP connection latency and outputting the corresponding quality test report, it can ensure the accuracy, reliability, and readability of TCP port test results. By triggering events to capture information on the connection start, error occurrence, and connection completion times in the TCP connection process in real time, it can accurately calculate the TCP connection latency and use it to evaluate the network performance and stability of the target node, facilitating the daily maintenance of Internet link quality.
[0103] Preferably, the procedure for generating random path parameters is:
[0104] ${Math.random().toString(36).substr(2,6)};
[0105] The program that generates the query with added timestamp parameters is:
[0106] ?t=${Date.now().toString(36)};
[0107] When the caching mechanism is disabled, set the Cache-Control header to no-cache.
[0108] Preferably, the IP detection module 1 is also configured with a redundancy query mechanism, which automatically switches to a backup API interface when the first API interface request fails.
[0109] Preferably, the test execution module 2 is also configured to support 23 consecutive tests on more than 5 target nodes simultaneously.
[0110] Preferably, the report generation module 4 includes an adaptive rendering module, which is configured to dynamically generate a statistical panel containing connectivity percentage, absolute packet loss, maximum / minimum / average latency, and jitter value based on the test results. The connectivity percentage value is retained to one decimal place, and the units of the maximum / minimum / average latency and jitter value are all in milliseconds.
[0111] like Figure 3 As shown, this embodiment discloses the system's algorithm and algorithm framework. The system also includes an algorithm set, which integrates a latency compensation model, a jitter elimination algorithm, and an outlier filtering. This is achieved by working with an IP detection module, a multi-node test engine adapted to multiple target nodes, a data analysis core in the test execution module 2, and a visualization report in the report generation module 4.
[0112] In this embodiment, the implementation program proxy of the multi-node testing engine includes:
[0113] / / Core test logic
[0114] function calculateStats(results) {
[0115] const reachable = results.filter(r => r.status !== 'timeout');
[0116] / / Divide the original latency value by 2 to eliminate the TCP handshake latency overhead during the probe process.
[0117] let delays = reachable.map(r=> r.delay / 2).filter(d =>d<=REQUEST_TIMEOUT && d >= 0);
[0118] / / Eliminate the impact of TCP establishment delay jitter
[0119] if (delays.length > 3) {
[0120] const sortedDelays = [...delays].sort((a, b) => b - a);
[0121] const top3MaxValues = sortedDelays.slice(0, 3);
[0122] for (const maxValue of top3MaxValues) {
[0123] const index = delays.indexOf(maxValue);
[0124] if (index !== -1) {
[0125] delays.splice(index, 1);
[0126] }
[0127] }
[0128] }
[0129] like Figure 4 As shown, this embodiment also discloses a TCP probe timing management process based on XHR, which further reveals the anti-caching design, probe response timeout mechanism, real-time rendering, and timing management process of the core algorithm in the TCP port probe process.
[0130] In this embodiment, HTML5 + JavaScript technology is used, and the core code includes:
[0131] 1. Precise time delay measurement model
[0132] T_{comp} = \frac{1}{2n}\sum_{i=1}^{n}(T_{response}^i - T_{establish})
[0133] in:
[0134] $T_{establish}$ = TCP handshake baseline latency (measured average 12.3ms);
[0135] $n$ = Number of valid tests (default 23);
[0136] 2. Dynamic jitter calculation
[0137] Jitter = \frac{1}{n-1}\sum_{k=1}^{n-1}|ΔT_k - \mu|
[0138] Parameter description:
[0139] $ΔT_k$ = the time delay difference between adjacent tests;
[0140] $\mu$ = Average delay;
[0141] 3. Outlier Filtering Rules
[0142] if delay > (μ + 3σ) or delay < (μ - 3σ):
[0143] exclude_sample() # Removes outlier data based on the 3σ principle.
[0144] In this embodiment, the IP detection module includes three backup API interfaces, forming a multiple API interface failover mechanism through redundancy settings. In addition, the IP detection module also uses a geographic information fusion algorithm to weight the LBS data.
[0145] like Figure 6 The image shown is a diagram illustrating the actual test results of the TCP port in this embodiment.
[0146] Comparative Example 1:
[0147] Comparative Example 1 compares the differences between the traditional ICMP solution and the solution of the present invention from a technical perspective, and discloses the improvement effect of the solution of the present invention compared with the traditional ICMP solution. As can be seen from Table 1 below, the solution of the present invention can effectively improve the test success rate, device coverage, evaluation dimensions and work efficiency of TCP ports.
[0148] Technical dimension Traditional ICMP solution Invention Solution Improvement effect Protocol compatibility It relies on the ICMP protocol (which is often blocked by firewalls). Based on HTTP / 80, 443, and a custom port (100% penetration rate) Test success rate increased by 28%. Terminal dependency Depends on system command line or dedicated testing software Running in a pure browser Equipment coverage increased to 100%. Test metrics Connectivity, Base Latency 6-dimensional quality indicator system The evaluation dimensions increased by 400%. Report generation Manual recording Generate automatic visual reports with one click Work efficiency increased by 65%
[0149] Table 1
[0150] Comparative Example 2:
[0151] Comparative Example 2 compares the results of the traditional solution with those of the present invention based on three indicators: test success rate, delay measurement error, and single-line test report generation time. As shown in Table 2 below, the present invention improves the test success rate and significantly reduces delay measurement error and single-line test report generation time compared to the traditional solution.
[0152] index Traditional solution This invention Increase Test success rate 92.3% 98.7% +6.4% Time delay measurement error ±15ms ±3.2ms -78.7% Single-line test report generation time 300s 23s -92.3%
[0153] Table 2
[0154] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for detecting internet link quality based on the browser's HTTP protocol, characterized in that, include: Based on the HTTP protocol, the public IP query interface is called to obtain the public IP address and geographical location of the target terminal; Construct an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, and use the first object to initiate asynchronous TCP connection test requests to multiple pre-configured target nodes; Receive and store the response status of each test request, and use a timestamp acquisition program to obtain the latency data of each test request, where the response status includes success, timeout, and reachability; Several outliers in the latency data are removed to obtain valid latency data. The TCP handshake duplicate latency of the valid latency data is eliminated to obtain the target latency data. The quality index data of the target latency data is calculated, including the values of connectivity, average latency, maximum / minimum latency and network jitter. A six-dimensional statistical panel is used to output quality indicator data, resulting in a visualized quality test report.
2. The Internet link quality detection method based on browser HTTP protocol according to claim 1, characterized in that: The HTTP request includes dynamically generating random path parameters, adding timestamp query parameters, setting a request timeout threshold, and disabling the caching mechanism. The default value of the request timeout threshold is 1500ms.
3. The Internet link quality detection method based on browser HTTP protocol according to claim 2, characterized in that: The public IP query interface includes an IP location interface for obtaining IP addresses and the geographical locations associated with those IP addresses, an IP address query interface for obtaining IP addresses, ASNs, AS names, AS domain names, and zone codes, and an interface for obtaining public IP addresses in plain text format.
4. The Internet link quality detection method based on browser HTTP protocol according to claim 3, characterized in that: The step of obtaining the target terminal's public IP address and geographical location by calling a public IP query interface based on the HTTP protocol includes: Parallel calls to the IP location interface, IP address query interface, and public IP address interface; A failover mechanism is employed to automatically obtain the public IP address and geographical location of the target terminal. The IP location interface, IP address query interface, and public IP address interface are all third-party API interfaces.
5. The Internet link quality detection method based on browser HTTP protocol according to claim 4, characterized in that: The process of removing several outliers from the latency data to obtain valid latency data, and eliminating duplicate TCP handshake latency in the valid latency data, includes: Remove the three highest latency data from the acquired latency data and use the remaining latency data as valid latency data; Divide the effective delay data by 2 to eliminate TCP handshake duplicate delay.
6. The Internet link quality detection method based on browser HTTP protocol according to claim 1, characterized in that: The construction of an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, using the first object to initiate asynchronous TCP connection test requests to multiple pre-configured target nodes (IP:Port), includes: Generate a test path containing a random string for each target node; Configure a dual timeout mechanism with a global timeout of 3 seconds and a timeout of 1.5 seconds for each request; The TCP connection latency is calculated using the trigger events of the XHR interface, which include onloadstart, onerror, and onload events.
7. The Internet link quality detection method based on browser HTTP protocol according to claim 1, characterized in that: The formula for calculating network jitter is: jitter = Σ|delay[n] - delay[n-1]| / (number of valid samples - 1).
8. The Internet link quality detection method based on browser HTTP protocol according to claim 1, characterized in that: The formula for calculating connectivity is: Connectivity rate = (Number of successful responses / Total number of tests) × 100%; The formula for calculating network jitter is: Network jitter = Σ|difference between adjacent delays| / (number of valid samples - 1).
9. The Internet link quality detection method based on browser HTTP protocol according to claim 1, characterized in that: The visualized quality test report includes a node status container grouped by target node, a statistical matrix of quality indicator data displayed in a 6-column grid layout, and a hover dynamic effect.
10. An Internet link quality detection system based on the browser HTTP protocol, characterized in that, The system includes an IP detection module, a test execution module, a data analysis module, and a report generation module; The IP detection module is configured to use the HTTP protocol to call a public IP query interface to obtain the public IP address and geographical location of the target terminal. The test execution module is configured to construct an HTTP request Uniform Resource Locator (URL) containing random path parameters and timestamps, and use the first object to initiate asynchronous TCP connection test requests to multiple pre-configured target nodes; The data analysis module is configured to receive and store the response status of each test request, and to obtain the latency data of each test request using a timestamp acquisition program, wherein the response status includes success, timeout, and reachability; Several outliers are removed from the latency data to obtain valid latency data. TCP handshake duplication delays in the valid latency data are then eliminated to obtain the target latency data. Quality metrics for the target latency data are calculated, including connectivity, average latency, maximum / minimum latency, and network jitter. The report generation module is configured to output quality indicator data using a six-dimensional statistical panel to obtain a visualized quality test report.