Web access quality auditing method and device, electronic equipment and medium

By obtaining and analyzing the delay data between the client and the server, including client delay, server delay and application delay, the problem of difficulty in accurately assessing network quality in the existing technology is solved, and a more accurate network quality assessment is achieved.

CN119814607APending Publication Date: 2025-04-11WUHAN SIPU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411917080.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The prior art lacks a method to judge network quality through auditing of time delays, making it difficult to accurately determine the quality of network quality.

Method used

By obtaining the interval between the client and the server, the client delay and the server delay are determined, and the application request time and application reply time of the request message sent by the client to the application server to the gateway, the application delay is calculated, and the network quality is finally determined based on multiple delay dimensions.

Benefits of technology

It realizes accurate evaluation of network quality from multiple delay dimensions, can more accurately judge the quality of network quality and improve the granularity of network quality evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814607A_ABST
    Figure CN119814607A_ABST
Patent Text Reader

Abstract

The invention relates to a web access quality auditing method and device, electronic equipment and a medium, and belongs to the technical field of computer networks, and the method comprises the following steps: obtaining the interval time when a client and a server end interact messages to a gateway based on a TCP protocol; determining client time delay and server time delay based on the interval time; acquiring application request time when a request message sent by a client to an application server reaches a gateway; obtaining application reply time when a response message sent by the application server to the client reaches the gateway; obtaining application time delay based on the application request time and the application reply time; and determining the quality of web access corresponding to the client based on the client time delay, the server time delay and the application time delay. According to the method, the network quality is evaluated from a plurality of time delay dimensions, so that the network quality can be accurately determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer network technology, and in particular to a method, device, electronic equipment and medium for web access quality audit. Background Art

[0002] Latency refers to the time interval from when one end of the network starts sending data to when the other end of the network completely receives the data. Network latency is an important indicator for evaluating network status.

[0003] Currently, the commonly used methods for measuring network quality are: direct measurement on web pages and measurement using proprietary tools. For example, uplink and downlink data are transmitted through HTTP or HTTPS protocols on web pages to measure the user's uplink and downlink bandwidth. Another method is to audit the traffic to determine the traffic rate, which application the traffic belongs to, the traffic inlet and outlet interfaces, and the traffic volume. In summary, the prior art lacks a method for judging network quality by auditing latency, thereby accurately determining the quality of the network. Summary of the invention

[0004] In view of this, it is necessary to provide a method, device, electronic device and medium for web access quality auditing to achieve the purpose of accurately determining the quality of the network.

[0005] In order to achieve the above object, the present invention provides a method for web access quality audit, comprising: Get the interval time between the TCP protocol interaction messages between the client and the server and their arrival at the gateway; Determine the client latency and server latency based on the interval time; Obtain the application request time when the request message sent by the client to the application server arrives at the gateway; Get the application reply time when the response message sent by the application server to the client arrives at the gateway; Get application latency based on application request time and application response time; The quality of the web access corresponding to the client is determined based on the client latency, server latency and application latency.

[0006] In a possible implementation, obtaining the interval time for the TCP protocol-based interactive messages between the client and the server to arrive at the gateway includes: Get the first time when the first message sent by the client based on the TCP protocol arrives at the gateway; Obtain the second time when the second message sent by the server based on the TCP protocol arrives at the gateway; Obtain a third time when a third message sent by the client based on the TCP protocol arrives at the gateway.

[0007] In a possible implementation, determining the client delay and the server delay based on the interval time includes: Determining a client latency based on the second time and the third time; The server latency is determined based on the first time and the second time.

[0008] In a possible implementation, the application server includes a DNS server, an HTTP server, and an HTTPS server, and obtaining the application request time when the request message sent by the client to the application server arrives at the gateway includes: Obtain the fourth time when the request message sent by the client to the DNS server arrives at the gateway; Get the sixth time when the request message sent by the client to the HTTP server arrives at the gateway; Gets the ninth time when the request message sent by the client to the HTTPS server arrives at the gateway.

[0009] In a possible implementation, obtaining the application reply time when the response message sent by the application server to the client reaches the gateway includes: Obtain the fifth time when the response message sent by the DNS server to the client arrives at the gateway; Get the seventh time when the response message sent by the HTTP server to the client arrives at the gateway; Gets the time when the response message sent by the HTTPS server to the client arrives at the gateway.

[0010] In a possible implementation, obtaining the application delay based on the application request time and the application response time includes: Obtaining a DNS application delay based on the fourth time and the fifth time; Obtain HTTP application delay based on the seventh time and the eighth time; The HTTPS application delay is obtained based on the ninth time and the tenth time.

[0011] In a possible implementation, determining the Internet access quality of a user based on client latency, server latency, and application latency includes: When it is determined that the client delay is greater than the first threshold, or the server delay is greater than the second threshold, or the application delay is greater than the third threshold, it is determined that the quality of the web access corresponding to the client is poor.

[0012] On the other hand, the present invention also provides a device for web access quality audit, comprising: The interval time acquisition module is used to obtain the interval time between the client and the server based on the TCP protocol interaction message reaching the gateway; The client delay and server delay acquisition module is used to determine the client delay and server delay based on the interval time; The application request time acquisition module is used to obtain the application request time when the request message sent by the client to the application server arrives at the gateway; The application response time acquisition module is used to obtain the application response time when the response message sent by the application server to the client arrives at the gateway; An application delay determination module, used to obtain application delay based on application request time and application response time; The Internet access quality determination module is used to determine the quality of the web access corresponding to the client based on the client delay, the server delay and the application delay.

[0013] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for web access quality audit described in any one of the above implementations.

[0014] On the other hand, the present invention also provides a computer-readable storage medium for storing a computer-readable program or instruction, which, when executed by a processor, can implement the steps in a method for web access quality auditing described in any of the above implementations.

[0015] The beneficial effect of the present invention is as follows: a method for auditing the quality of web access provided by the present invention comprises: first obtaining the interval time for the TCP protocol interaction message between the client and the server to reach the gateway, then determining the client delay and the server delay based on the interval time, further obtaining the application request time for the request message sent by the client to the application server to reach the gateway, further obtaining the application reply time for the response message sent by the application server to the client to reach the gateway, obtaining the application delay based on the application request time and the application reply time, thereby obtaining delays in multiple dimensions, so that the granularity of evaluating network quality is more accurate, and finally determining the quality of the web access corresponding to the client based on the client delay, the server delay and the application delay. The present invention evaluates the network quality from multiple delay dimensions, so that the quality of the network can be accurately determined. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A method flow chart of an embodiment of a method for web access quality auditing provided by the present invention; Figure 2 For the present invention Figure 1 A schematic flow chart of an embodiment of S101; Figure 3 For the present invention Figure 1 A schematic flow chart of an embodiment of S102; Figure 4 For the present invention Figure 1 A schematic flow chart of an embodiment of S103; Figure 5 For the present invention Figure 1 A schematic flow chart of an embodiment of S104; Figure 6 For the present invention Figure 1 A schematic flow chart of an embodiment of S105; Figure 7 A network quality monitoring graphic page is provided as an embodiment of a method for web access quality auditing provided by the present invention; Figure 8 A schematic flow chart of an embodiment of a device for web access quality auditing provided by the present invention; Fig. 9 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0017] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0018] Before presenting the embodiments, the following terms are explained.

[0019] The TCP handshake process, also known as the three-way handshake, is a mechanism used by the TCP protocol when establishing a connection to ensure that both parties can communicate normally.

[0020] The specific steps of the three-way handshake are: First handshake: The client sends a SYN segment to the server, indicating that the client wants to establish a connection. The SYN segment contains an initial sequence number seq=x, and the client enters the SYN_SENT state, waiting for the server's confirmation.

[0021] Second handshake: After receiving the SYN segment from the client, the server sends a SYN-ACK segment as a response. In this segment, the SYN flag is 1, the ACK flag is 1, the confirmation number is x+1, and the server selects an initial sequence number seq=y. The server enters the SYN_RECV state, indicating that it is waiting for the client's confirmation.

[0022] Third handshake: After receiving the SYN-ACK segment from the server, the client sends an ACK segment as confirmation. In the ACK segment, the ACK flag is 1 and the confirmation number is y+1. Both the client and the server enter the ESTABLISHED state, indicating that the connection is successfully established.

[0023] The present invention provides a method, device, electronic device and medium for web access quality audit, which are respectively described below.

[0024] Figure 1 A flow chart of an embodiment of the method for web access quality auditing provided by the present invention is as follows: Figure 1 As shown, the methods of web access quality audit include: S101, obtaining the interval time for the TCP protocol-based interactive messages between the client and the server to reach the gateway; S102, determining the client delay and the server delay based on the interval time; S103, obtaining the application request time when the request message sent by the client to the application server arrives at the gateway; S104, obtaining the application reply time when the response message sent by the application server to the client reaches the gateway; S105, obtaining application delay based on application request time and application response time; S106: Determine the quality of the web access corresponding to the client based on the client delay, the server delay and the application delay.

[0025] Compared with the prior art, the present embodiment provides a method for auditing the quality of web access, which includes: first obtaining the interval time for the TCP protocol interaction message between the client and the server to reach the gateway, then determining the client delay and the server delay based on the interval time, further obtaining the application request time for the request message sent by the client to the application server to reach the gateway, further obtaining the application reply time for the response message sent by the application server to the client to reach the gateway, obtaining the application delay based on the application request time and the application reply time, thereby obtaining delays in multiple dimensions, so that the granularity of evaluating network quality is more accurate, and finally determining the quality of the web access corresponding to the client based on the client delay, the server delay and the application delay. The present invention evaluates the network quality from multiple delay dimensions, so that the quality of the network can be accurately determined.

[0026] In a specific embodiment of the present invention, the interaction of network information relies on messages, and a 5-tuple is used to determine a unique session, so the traffic type in the network can be counted using sessions as units, and the delay is determined according to the interval between the interactive reception and transmission of messages.

[0027] The present invention involves three types of delays, namely client delay, server delay, application delay, web network quality monitoring graphic page display and session delay domain name display. TCP has client delay, server delay and application delay, while UDP only has application delay.

[0028] In some embodiments of the present invention, in step S101, Figure 2 As shown, the step of obtaining the interval time for the TCP protocol-based interactive messages between the client and the server to reach the gateway includes: S201, obtaining the first time when the first message sent by the client based on the TCP protocol arrives at the gateway; S202, obtaining a second time when a second message sent by the server based on the TCP protocol arrives at the gateway; S203: Obtain a third time when a third message sent by the client based on the TCP protocol arrives at the gateway.

[0029] In some embodiments of the present invention, in step S102, as Figure 3 As shown, the determining of the client delay and the server delay based on the interval time includes: S301, determining a client delay based on the second time and the third time; S302: Determine the server delay based on the first time and the second time.

[0030] In the specific implementation of the present invention, the traffic of the client Client and the server Server will pass through the gateway. According to the TCP three-way handshake principle, when the first SYN message sent by the client arrives at the gateway, the gateway records the time, that is, the first time client_A; when the server replies to the client with a SYN+ACK message to the gateway, the gateway records the time, that is, the second time server_A; when the client replies to the ACK message sent by the server to the gateway, the gateway records the time, that is, the third time client_B.

[0031] Client latency is the network latency from the user to the gateway. If the client latency is too large, it means that the intranet environment has too much latency.

[0032] Client delay = client_B-server_A.

[0033] The server delay is the network delay from the gateway to the server. If the service delay is too large, it means that the bearer network delay provided by the intermediate network (operator) is too large. The formula is as follows: Server delay = server_A-client_A.

[0034] In some embodiments of the present invention, in step S103, Figure 4 As shown, the application server includes a DNS server, an HTTP server, and an HTTPS server, and the obtaining of the application request time when the request message sent by the client to the application server arrives at the gateway includes: S401, obtaining a fourth time when a request message sent by a client to a DNS server arrives at a gateway; S402, obtaining a sixth time when a request message sent by the client to the HTTP server arrives at the gateway; S403: Obtain a ninth time when the request message sent by the client to the HTTPS server arrives at the gateway.

[0035] In some embodiments of the present invention, in step S104, Figure 5 As shown, the step of obtaining the application reply time when the response message sent by the application server to the client reaches the gateway includes: S501, obtaining the fifth time when the response message sent by the DNS server to the client arrives at the gateway; S502, obtaining the seventh time when the response message sent by the HTTP server to the client arrives at the gateway; S503: Obtain the tenth time when the response message sent by the HTTPS server to the client arrives at the gateway.

[0036] In some embodiments of the present invention, in step S105, Figure 6 As shown, the application delay is obtained based on the application request time and the application response time, including: S601, obtaining a DNS application delay based on the fourth time and the fifth time; S602, obtaining HTTP application delay based on the seventh time and the eighth time; S603: Obtain HTTPS application delay based on the ninth time and the tenth time.

[0037] In a specific embodiment of the present invention, application delay includes DNS application delay, HTTP application delay and HTTPS application delay. Specifically, application delay is the response delay of the application server. If the application delay is too large, it means that the delay in providing services by the service provider is too large.

[0038] DNS application delay: When the client sends a DNS request message to the gateway, the gateway records the fourth time, DNS_request_A. When the gateway receives the response message from the DNS server, the gateway records the fifth time, DNS_reply_A. The difference between the two delays is the DNS application delay.

[0039] DNS application delay = DNS_reply_A - DNS_request_A HTTP delay: When the client sends an HTTP request message to the gateway, the gateway records the sixth time, HTTP_request_A. When the gateway receives the response message from the HTTP server, the gateway records the seventh time, HTTP_reply_A. The difference between the two delays is the HTTP application delay.

[0040] HTTP application delay = HTTP_reply_A - HTTP_request_A HTTPS delay: When the client sends a client hello message to the gateway, the gateway records the eighth time HTTPS_request_A. When the gateway receives the server hello message from the HTTPS server, the gateway records the ninth time HTTPS_reply_A. The difference between the two delays is the HTTPS application delay.

[0041] HTTPS application delay = HTTP_reply_A - HTTP_request_A In some embodiments of the present invention, determining the quality of web access corresponding to the client based on the client delay, the server delay and the application delay includes: When it is determined that the client delay is greater than the first threshold, or the server delay is greater than the second threshold, or the application delay is greater than the third threshold, it is determined that the quality of the web access corresponding to the client is poor.

[0042] In a specific embodiment of the present invention, specifically, Figure 7 As shown in the figure, the web access quality monitoring graph page only counts users whose applications are HTTP and HTTPS. Statistics are based on users for easy viewing and understanding. Therefore, sessions are counted based on users. The user's client delay, server delay, and application delay are calculated based on the client delay, server delay, and application delay of the session involved. The network delay is obtained based on these three indicators.

[0043] Three thresholds are set for the three latency of the user as evaluation indicators. If any latency of the three indicators is greater than the threshold, the user is considered to have a slow Internet access, otherwise, the user is considered to have a fast Internet access.

[0044] Set the ratio of users with fast and slow Internet access to the threshold, and use the ratio to determine whether the current network quality is good or bad. Set the duration of poor network quality to the threshold, and use the duration of poor network quality to determine whether the network quality is good or bad throughout the day. Display users with slow Internet access in a table.

[0045] Domain name display of session delay: User traffic passing through the gateway will create a new session. When the session is DNS, the domain name in the DNS request message will be recorded and displayed on the session. When the session is HTTP, the host field in the request message will be recorded and displayed on the session. When the session is HTTPS, the host name in the client hello will be recorded and displayed on the session. The delay recorded from the session mark will be displayed on the session.

[0046] In order to better implement a method for web access quality auditing in an embodiment of the present invention, based on a method for web access quality auditing, correspondingly, as follows Figure 8 As shown, an embodiment of the present invention further provides a device for web access quality auditing, and a device 800 for web access quality auditing includes: The interval time acquisition module 801 is used to obtain the interval time of the TCP protocol interaction message between the client and the server to reach the gateway; The client delay and server delay acquisition module 802 is used to determine the client delay and server delay based on the interval time; The application request time acquisition module 803 is used to obtain the application request time when the request message sent by the client to the application server arrives at the gateway; The application response time acquisition module 804 is used to acquire the application response time when the response message sent by the application server to the client reaches the gateway; An application delay determination module 805, configured to obtain application delay based on application request time and application response time; The Internet access quality determination module 806 is used to determine the quality of the web access corresponding to the client based on the client delay, the server delay and the application delay.

[0047] The device 800 for web access quality auditing provided in the above embodiment can implement the technical solution described in the above method embodiment for web access quality auditing. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above method embodiment for web access quality auditing, which will not be repeated here.

[0048] like Fig. 9 As shown, the present invention also provides an electronic device 900. The electronic device 900 includes a processor 901, a memory 902 and a display 903. Fig. 9 Only some components of the electronic device 900 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0049] In some embodiments, the processor 901 may be a central processing unit (CPU), a microprocessor or other data processing chip, and is used to run program codes or process data stored in the memory 902, such as a method of web access quality auditing in the present invention.

[0050] In some embodiments, the processor 901 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 901 may be local or remote. In some embodiments, the processor 901 may be implemented in a cloud platform. In some embodiments, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.

[0051] In some embodiments, the memory 902 may be an internal storage unit of the electronic device 900, such as a hard disk or memory of the electronic device 900. In other embodiments, the memory 902 may also be an external storage device of the electronic device 900, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 900.

[0052] Furthermore, the memory 902 may include both an internal storage unit of the electronic device 900 and an external storage device. The memory 902 is used to store application software installed in the electronic device 900 and various data.

[0053] In some embodiments, the display 903 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 903 is used to display information on the electronic device 900 and to display a visual user interface. The components 901-903 of the electronic device 900 communicate with each other via a system bus.

[0054] In one embodiment, when the processor 901 executes a program for web access quality audit in the memory 902, the following steps may be implemented: Get the interval time between the TCP protocol interaction messages between the client and the server and their arrival at the gateway; Determine the client latency and server latency based on the interval time; Obtain the application request time when the request message sent by the client to the application server arrives at the gateway; Get the application reply time when the response message sent by the application server to the client arrives at the gateway; Get application latency based on application request time and application response time; The quality of the web access corresponding to the client is determined based on the client latency, server latency and application latency.

[0055] It should be understood that: when the processor 901 executes a program for web access quality audit in the memory 902, in addition to the above functions, other functions may also be implemented, and details may refer to the description of the above corresponding method embodiments.

[0056] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 900 mentioned, and the electronic device 900 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 900 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0057] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0058] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for web access quality audit, characterized in that: include: Get the interval time between the TCP protocol interaction messages between the client and the server and their arrival at the gateway; Determine the client latency and server latency based on the interval time; Obtain the application request time when the request message sent by the client to the application server arrives at the gateway; Get the application reply time when the response message sent by the application server to the client arrives at the gateway; Get application latency based on application request time and application response time; The quality of the web access corresponding to the client is determined based on the client latency, server latency and application latency.

2. The method for web access quality audit according to claim 1, characterized in that: The step of obtaining the interval time between the TCP protocol-based interactive messages between the client and the server and arriving at the gateway includes: Get the first time when the first message sent by the client based on the TCP protocol arrives at the gateway; Obtain the second time when the second message sent by the server based on the TCP protocol arrives at the gateway; Obtain a third time when a third message sent by the client based on the TCP protocol arrives at the gateway.

3. The method for web access quality audit according to claim 2, characterized in that: Determining the client delay and the server delay based on the interval time includes: Determining a client latency based on the second time and the third time; The server latency is determined based on the first time and the second time.

4. The method for web access quality audit according to claim 1, characterized in that: The application server includes a DNS server, an HTTP server, and an HTTPS server, and the obtaining of the application request time when the request message sent by the client to the application server arrives at the gateway includes: Obtain the fourth time when the request message sent by the client to the DNS server arrives at the gateway; Get the sixth time when the request message sent by the client to the HTTP server arrives at the gateway; Gets the ninth time when the request message sent by the client to the HTTPS server arrives at the gateway.

5. The method for web access quality audit according to claim 4, characterized in that: The obtaining of the application reply time of the response message sent by the application server to the client reaching the gateway includes: Obtain the fifth time when the response message sent by the DNS server to the client arrives at the gateway; Get the seventh time when the response message sent by the HTTP server to the client arrives at the gateway; Gets the time when the response message sent by the HTTPS server to the client arrives at the gateway.

6. The method for web access quality audit according to claim 5, characterized in that: The obtaining of application delay based on application request time and application response time includes: Obtaining a DNS application delay based on the fourth time and the fifth time; Obtain HTTP application delay based on the seventh time and the eighth time; The HTTPS application delay is obtained based on the ninth time and the tenth time.

7. The method for web access quality audit according to claim 1, characterized in that: The determining the quality of web access corresponding to the client based on the client delay, the server delay and the application delay includes: When it is determined that the client delay is greater than the first threshold, or the server delay is greater than the second threshold, or the application delay is greater than the third threshold, it is determined that the quality of the web access corresponding to the client is poor.

8. A device for web access quality audit, characterized in that: include: The interval time acquisition module is used to obtain the interval time between the client and the server based on the TCP protocol interaction message reaching the gateway; The client delay and server delay acquisition module is used to determine the client delay and server delay based on the interval time; The application request time acquisition module is used to obtain the application request time when the request message sent by the client to the application server arrives at the gateway; The application response time acquisition module is used to obtain the application response time when the response message sent by the application server to the client arrives at the gateway; An application delay determination module, used to obtain application delay based on application request time and application response time; The Internet access quality determination module is used to determine the quality of the web access corresponding to the client based on the client delay, the server delay and the application delay.

9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for web access quality auditing as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of a method for web access quality auditing as described in any one of claims 1 to 7.