Network quality determination method, device and equipment
By sending probe and response messages carrying target information between terminal devices and servers, the problem of coarse-grained network quality in existing technologies is solved, and fine-grained network quality determination and accurate network problem localization are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-11-15
- Publication Date
- 2026-05-15
AI Technical Summary
Existing technologies can only determine end-to-end network quality in a coarse-grained manner, and cannot accurately locate and delineate network problems.
The terminal device sends a probe message carrying target information to the server. The server determines relevant indicator information based on the target information and responds with a response message. The terminal device determines network quality based on the response message, including indicators such as the number of probe packets received, RTT, and network status information.
This enables terminal devices to determine network quality at a fine-grained level, improving the accuracy of locating and defining network problems.
Smart Images

Figure CN122053440A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus and device for determining network quality. Background Technology
[0002] With the continuous development of network technology and the rapid growth of network traffic, the problems of network link congestion and WLAN wireless channel congestion are also constantly evolving. When network link congestion and WLAN wireless channel congestion occur, it often leads to packet loss or increased network latency, resulting in a decrease in network quality.
[0003] Currently, many scenarios have high requirements for network quality, such as web conferencing, cloud desktops, and real-time competitive games. In these scenarios, in order to detect the network status, it is usually necessary to embed network detection tools in the network. These tools can determine the network quality between ends.
[0004] However, determining only the network quality between ends provides a coarse-grained perception of network quality, making it impossible to accurately locate and delimit network problems. Summary of the Invention
[0005] This application provides a method, apparatus, and device for determining network quality, which enables terminal devices to determine network quality at a fine-grained level, thereby improving the accuracy of locating and demarcating network problems.
[0006] In a first aspect, embodiments of this application provide a network quality determination method, applied to a terminal device, comprising:
[0007] Send probe messages to the server. The probe messages carry target information. The target information is used to indicate the indicator information that the network device needs to obtain. The indicator information is used to measure network quality.
[0008] The server receives a response message in response to the probe message. The response message carries the indicator information obtained by the network device.
[0009] Determine the network quality of network devices based on indicator information.
[0010] According to this scheme, a terminal device sends a probe message to the server, which responds and then sends a response message to the terminal device. The probe message carries target information, indicating the network quality-related metrics that need to be determined between the terminal device and the server. The server then sends a response message to the terminal device, containing the metric information determined by at least one network device. Upon receiving this metric information, the terminal device can determine the network quality between at least one network device and the server and / or itself, enabling fine-grained determination of network quality and improving the accuracy of locating and delimiting network problems.
[0011] In one possible implementation, the target information is first information and / or second information. When the target information is first information, the indicator information includes the number of probe packets received and the number of response packets received, the round-trip time (RTT) between the network device and the server, and the time when the network device receives probe packets.
[0012] When the target information is the second type of information, the indicator information includes the network status information of the network devices.
[0013] In this way, network quality can be evaluated from at least one dimension, enabling terminal devices to determine network quality in a fine-grained manner while improving the accuracy of network quality determination.
[0014] In one possible implementation, the target information is the first information, the indicator information is the RTT between the network device and the server, and the response message includes an RTT measurement unit, which includes the number of network devices measuring the RTT and the RTT between each network device and the server.
[0015] In this way, network quality can be determined in a fine-grained manner based on RTT, thereby improving the accuracy of network problem localization and delimitation.
[0016] In one possible implementation, when the target information is the first information and the indicator information is the RTT between the network device and the server, the network quality of the network device is determined based on the indicator information, including: determining the network quality based on the RTT between the network device and the server.
[0017] In this way, network quality can be determined in a fine-grained manner based on RTT, thereby improving the accuracy of network problem localization and delimitation.
[0018] In one possible implementation, the target information is the first information, and the indicator information is the number of probe packets received and the number of response packets received.
[0019] The response message includes an uplink packet loss measurement section and a downlink packet loss measurement section. The uplink packet loss measurement section includes the number of network devices performing uplink packet reception measurement and the number of probe packets received by each network device.
[0020] The downlink packet loss measurement section includes the number of network devices measuring downlink packet loss and the number of packets received by each network device in response messages.
[0021] In this way, network quality can be determined in a fine-grained manner based on the number of uplink and downlink packets received, thereby improving the accuracy of locating and delimiting network problems.
[0022] In one possible implementation, when the target information is the first information and the indicator information is the number of probe packets received and the number of response packets received, the network quality of the network device is determined based on the indicator information, including:
[0023] The number of packets lost by the network device is determined based on the number of probe packets received and the number of response packets received.
[0024] Determine network quality based on the number of packet losses.
[0025] In this way, network quality can be determined in a fine-grained manner based on the number of uplink and downlink packets received, thereby improving the accuracy of locating and delimiting network problems.
[0026] In one possible implementation, the target information is the first information, the indicator information is the second timestamp of the probe message received by the network device, and the response message includes a timestamp measurement unit, which includes the number of network devices recording timestamps and the second timestamp.
[0027] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0028] In one possible implementation, the probe message includes a sequence number, and the terminal device stores a first timestamp of sending the probe message. Given that the target information is the first information and the indicator information is the second timestamp of the network device receiving the probe message, the network quality of the network device is determined based on the indicator information, including:
[0029] Based on the first timestamp of the first probe message and the second probe message, the first time difference is determined. The first probe message and the second probe message are probe messages with adjacent sequence numbers among multiple probe messages.
[0030] The second time difference is determined based on the second timestamps of the first and second probe messages;
[0031] The network quality of network devices is determined based on the first time difference and the second time difference.
[0032] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0033] In one possible implementation, the target information is the second information, the indicator information is the network status information of the network device, and the response message includes the number of network devices measuring the network status information, the data length of the network device's network status information, and the network status information of the network device.
[0034] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0035] In one possible implementation, where the target information is the second information and the indicator information is the network status information of the network device, the network status information includes at least the device name, identity identifier, number of users when the probe message is received, user access signal strength, and user negotiated bandwidth of the network device.
[0036] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0037] In one possible implementation, the probe message is carried in an ICMP message, a UDP message, or a TCP message.
[0038] Thus, probing network quality using existing messages is a low-cost and high-benefit approach for terminal devices. It enables fine-grained determination of network quality at a low cost, thereby improving the accuracy of locating and defining network problems.
[0039] Secondly, embodiments of this application provide a method for determining network quality, applied to network devices, the method comprising:
[0040] Acquire probe messages, which carry target information. The target information is used to indicate the indicator information that the network device needs to acquire. The indicator information is related to network quality.
[0041] Based on the target information, the first information received from the probe message is determined, and the first information received is used to indicate the indicator information.
[0042] A response message is sent to the terminal device in response to the probe message. The response message carries indicator information.
[0043] According to this solution, after receiving a probe message, the network device collects network quality-related indicator information based on the target information indicated by the probe message, and updates the indicator information in the response message of the probe message. This enables the device to determine the network quality between the network device and the server and / or terminal device based on the indicator information, thereby enabling the terminal device to determine the network quality at a fine-grained level and improving the accuracy of locating and delimiting network problems.
[0044] In one possible implementation, the first information received is indicator information, and the method further includes:
[0045] Update the first received information to the probe message;
[0046] Send an updated probe message to the server to receive a response message from the server.
[0047] In one possible implementation, the method also includes:
[0048] Obtain the response message and determine the second received information of the response message, which is used to indicate indicator information;
[0049] Based on the first and second collected information, the indicator information is determined.
[0050] Thirdly, embodiments of this application provide a network quality determination apparatus, applied to a terminal device, comprising:
[0051] The sending module is used to send probe messages to the server. The probe messages carry target information, which is used to indicate the indicator information that the network device needs to obtain. The indicator information is used to measure network quality.
[0052] The receiving module is used to receive the response message sent by the server in response to the probe message, wherein the response message carries at least one indicator information obtained by the network device.
[0053] The determination module is used to determine the network quality of network devices based on indicator information.
[0054] According to this scheme, a terminal device sends a probe message to the server, which responds and then sends a response message to the terminal device. The probe message carries target information, indicating the network quality-related metrics that need to be determined between the terminal device and the server. The server then sends a response message to the terminal device, containing the metric information determined by at least one network device. Upon receiving this metric information, the terminal device can determine the network quality between at least one network device and the server and / or itself, enabling fine-grained determination of network quality and improving the accuracy of locating and delimiting network problems.
[0055] In one possible implementation, the target information is first information and / or second information. When the target information is first information, the indicator information includes the number of probe packets received and the number of response packets received, the round-trip time (RTT) between the network device and the server, and the time when the network device receives probe packets.
[0056] When the target information is the second type of information, the indicator information includes the network status information of the network devices.
[0057] In this way, network quality can be evaluated from at least one dimension, enabling terminal devices to determine network quality in a fine-grained manner while improving the accuracy of network quality determination.
[0058] In one possible implementation, the target information is the first information, the indicator information is the RTT between the network device and the server, and the response message includes an RTT measurement unit, which includes the number of network devices measuring the RTT and the RTT between each network device and the server.
[0059] In this way, network quality can be determined in a fine-grained manner based on RTT, thereby improving the accuracy of network problem localization and delimitation.
[0060] In one possible implementation, when the target information is the first information and the indicator information is the RTT between the network device and the server, a determination module is used to determine the network quality based on the RTT between the network device and the server.
[0061] In this way, network quality can be determined in a fine-grained manner based on RTT, thereby improving the accuracy of network problem localization and delimitation.
[0062] In one possible implementation, the target information is the first information, and the indicator information is the number of probe packets received and the number of response packets received.
[0063] The response message includes an uplink packet loss measurement section and a downlink packet loss measurement section. The uplink packet loss measurement section includes the number of network devices performing uplink packet reception measurement and the number of probe packets received by each network device.
[0064] The downlink packet loss measurement section includes the number of network devices measuring downlink packet loss and the number of packets received by each network device in response messages.
[0065] In this way, network quality can be determined in a fine-grained manner based on the number of uplink and downlink packets received, thereby improving the accuracy of locating and delimiting network problems.
[0066] In one possible implementation, when the target information is the first information and the indicator information is the number of probe packets received and the number of response packets received, the determining module is used to:
[0067] The number of packets lost by the network device is determined based on the number of probe packets received and the number of response packets received.
[0068] Determine network quality based on the number of packet losses.
[0069] In this way, network quality can be determined in a fine-grained manner based on the number of uplink and downlink packets received, thereby improving the accuracy of locating and delimiting network problems.
[0070] In one possible implementation, the target information is the first information, the indicator information is the second timestamp of the probe message received by the network device, and the response message includes a timestamp measurement unit, which includes the number of network devices recording timestamps and the second timestamp.
[0071] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0072] In one possible implementation, the probe message includes a sequence number, and the terminal device stores a first timestamp of sending the probe message. Given that the target information is the first information and the indicator information is the second timestamp of the network device receiving the probe message, the determination module is used to:
[0073] Based on the first timestamp of the first probe message and the second probe message, the first time difference is determined. The first probe message and the second probe message are probe messages with adjacent sequence numbers among multiple probe messages.
[0074] The second time difference is determined based on the second timestamps of the first and second probe messages;
[0075] The network quality of network devices is determined based on the first time difference and the second time difference.
[0076] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0077] In one possible implementation, the target information is the second information, the indicator information is the network status information of the network device, and the response message includes the number of network devices measuring the network status information, the data length of the network device's network status information, and the network status information of the network device.
[0078] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0079] In one possible implementation, where the target information is the second information and the indicator information is the network status information of the network device, the network status information includes at least the device name, identity identifier, number of users when the probe message is received, user access signal strength, and user negotiated bandwidth of the network device.
[0080] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0081] In one possible implementation, the probe message is carried in an ICMP message, a UDP message, or a TCP message.
[0082] Thus, probing network quality using existing messages is a low-cost and high-benefit approach for terminal devices. It enables fine-grained determination of network quality at a low cost, thereby improving the accuracy of locating and defining network problems.
[0083] Fourthly, embodiments of this application provide a network quality determination apparatus, applied to a network device, the apparatus comprising:
[0084] The acquisition module is used to acquire probe packets. The probe packets carry target information, which is used to indicate the indicator information that the network device needs to acquire. The indicator information is related to network quality.
[0085] The determination module is used to determine the first received information of the probe message based on the target information. The first received information is used to indicate indicator information.
[0086] The sending module is used to send response messages to the probe messages to the terminal device. The response messages carry indicator information.
[0087] According to this solution, after receiving a probe message, the network device collects network quality-related indicator information based on the target information indicated by the probe message, and updates the indicator information in the response message of the probe message. This enables the device to determine the network quality between the network device and the server based on the indicator information, thereby enabling the terminal device to determine the network quality at a fine-grained level and improving the accuracy of locating and delimiting network problems.
[0088] In one possible implementation, the first information received is indicator information, and the device further includes:
[0089] The update module is used to update the probe message with the first received information;
[0090] The sending module is used to send updated probe messages to the server in order to obtain response messages from the server.
[0091] In one possible implementation, the acquisition module is further configured to acquire the response message and determine the second acquisition information of the response message, the second acquisition information being used to indicate indicator information;
[0092] The determination module is also used to determine indicator information based on the first and second collected information.
[0093] Fifthly, embodiments of this application provide a network quality determination device, comprising: at least one memory for storing a program; and at least one processor for executing the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method provided in the first aspect or to execute the method provided in the second aspect.
[0094] In a sixth aspect, embodiments of this application provide a network quality determination device, characterized in that the device executes computer program instructions to perform the method provided in the first aspect, or to perform the method provided in the second aspect. For example, the device may be a chip or a processor.
[0095] In one example, the device may include a processor that may be coupled to memory, read instructions from the memory and execute the methods provided in the first aspect according to those instructions, or execute the methods provided in the second aspect. The memory may be integrated into the chip or processor, or it may be independent of the chip or processor.
[0096] In a seventh aspect, embodiments of this application provide a computer storage medium storing instructions that, when executed on a computer, cause the computer to perform the method provided in the first aspect, or to perform the method provided in the second aspect.
[0097] Eighthly, embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method provided in the first aspect, or to perform the method provided in the second aspect. Attached Figure Description
[0098] Figure 1 This is a schematic diagram of a campus network scenario provided in an embodiment of this application;
[0099] Figure 2 This is a schematic diagram of the architecture of a network quality determination system provided in an embodiment of this application;
[0100] Figure 3 This is one of the schematic diagrams of a probe message format provided in an embodiment of this application;
[0101] Figure 4 This is a second schematic diagram of a probe message format provided in an embodiment of this application;
[0102] Figure 5 This is the third schematic diagram of a probe message format provided in the embodiments of this application;
[0103] Figure 6 This is the fourth schematic diagram of a probe message format provided in the embodiments of this application;
[0104] Figure 7 This is the fifth schematic diagram of a probe message format provided in the embodiments of this application;
[0105] Figure 8 This is the sixth schematic diagram of a probe message format provided in the embodiments of this application;
[0106] Figure 9 This is the seventh schematic diagram of a probe message format provided in the embodiments of this application;
[0107] Figure 10 This is the eighth schematic diagram of a probe message format provided in the embodiments of this application;
[0108] Figure 11 This is a flowchart illustrating another method for determining network quality provided in an embodiment of this application;
[0109] Figure 12 This is a schematic diagram of the structure of a network quality determination device provided in an embodiment of this application;
[0110] Figure 13 This is a schematic diagram of another network quality determination device provided in an embodiment of this application;
[0111] Figure 14 This is a schematic diagram of the structure of a network quality determination device provided in an embodiment of this application. Detailed Implementation
[0112] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0113] Before describing the technical solutions provided in the embodiments of this application, the terms involved in the embodiments of this application will be explained.
[0114] Packet Received Count: The packet received count can refer to the number of messages received by the receiving end within a certain period, or it can refer to the number of data packets received by the receiving end. In this embodiment, the packet received count refers to the number of messages received by the receiving end. The packet received count reflects the activity level of network transmission and the amount of data received by the receiving end. In practical applications, the packet received count is an important monitoring indicator, which can help network administrators understand the network transmission status and data traffic, thereby enabling network optimization and troubleshooting.
[0115] With the continuous development of network technology and the rapid growth of network traffic, the problems of network link congestion and WLAN wireless channel congestion are also constantly evolving. When network link congestion and WLAN wireless channel congestion occur, it often leads to packet loss or increased network latency, resulting in a decrease in network quality.
[0116] Currently, many scenarios have high requirements for network quality, such as web conferencing, cloud desktops, and real-time competitive games. In these scenarios, network probing tools are typically embedded in the network to probe its status. Common metrics probed by these tools include, but are not limited to, packet loss rate and round-trip time (RTT). The probing mechanisms of these tools are usually based on protocols such as Internet Control Message Protocol (ICMP), User Datagram Protocol (UDP), and Transmission Control Protocol (TCP). The probe packets generated by these tools can be independent of the service flow or carried within it (i.e., the probe packet and the service flow's five-tuple are identical).
[0117] For example, ICMP-based network probing mechanisms, such as the Ping command, are used. The Ping command is a combination of commands that send ICMP echo request and response information. Through the Ping command, network quality information such as end-to-end RTT and packet loss can be obtained. Another example is determining end-to-end network quality information such as RTT and packet loss by coloring packets.
[0118] Therefore, existing technologies can only determine the end-to-end network quality, resulting in a coarse granularity of network quality perception.
[0119] Based on this, embodiments of this application provide a method, apparatus, and network device for determining network quality. In this method, a terminal device sends a probe message to a server, which responds by sending a response message back to the terminal device. The probe message carries target information, indicating the network quality-related metrics that need to be determined between the terminal device and the server. The server then sends a response message to the terminal device, containing the metric information determined by at least one network device. Upon receiving this metric information, the terminal device can determine the network quality between at least one network device and the server, enabling fine-grained determination of network quality and improving the accuracy of locating and delimiting network problems.
[0120] The technical solution of this application is described below. First, the application scenarios of the embodiments of this application are introduced.
[0121] The application scenario of this application embodiment provides a campus network. For example... Figure 1 As shown in the figure, an embodiment of this application provides a campus network including a terminal 11 and a network device 12.
[0122] In this embodiment, terminal 11 accesses the Internet through network device 12, thereby accessing the server. Different applications are deployed on terminal 11, and these applications access the server to run corresponding services, such as web conferencing, cloud desktops, and real-time multiplayer games. Here, terminal 11 can be a desktop computer, laptop computer, mobile phone, printer, camera, or other devices. This application embodiment does not specifically limit the type of terminal 1501.
[0123] Network device 12 is used to forward data streams, thereby enabling communication between terminals and servers. In a campus network, network device 12 includes various types. For example, such as... Figure 1 As shown, network device 12 includes an access point (AP) 121, at least one switch 122, and an access router (AR) 123. The AP 121 is used to transmit and receive wireless signals via an antenna, thereby providing network connectivity to terminal 11. The switch 122 is used to forward data streams, thereby enabling end-to-end network quality determination. The AR 123 is used to access the Internet, enabling the terminal to access the Internet.
[0124] Figure 1 As an exemplary application scenario, the network quality determination method provided in this application embodiment can be applied to various application scenarios, such as home networks, data centers, and other local area networks. This application embodiment does not specifically limit the application scenario.
[0125] The above is an introduction to the application scenarios of this application. The following describes the system architecture of the method embodiments of this application.
[0126] Figure 2 This is a schematic diagram of the architecture of a network quality determination system provided in an embodiment of this application. Figure 2 As shown, the network quality determination system provided in this embodiment includes a terminal device 21, a server 22, and a network device 23. The terminal device 21 and the server 22 communicate through the network device 23.
[0127] In this embodiment, terminal device 21 sends a probe message to server 22 via network device 23. After receiving the probe message, network device 23 determines indicator information related to network quality. Server 22 then sends a response message to terminal device. This response message is a reply to the probe message, and network device 23 carries indicator information in it. This allows terminal device to determine the network quality between terminal device 23 and server 22 based on the indicator information in the response message, enabling fine-grained determination of network quality and improving the accuracy of locating and delimiting network problems.
[0128] Next, based on Figure 2 The network quality determination system shown herein provides a detailed description of the network quality determination method provided in the embodiments of this application.
[0129] Figure 3 This is a flowchart illustrating a network quality determination method provided in an embodiment of this application. The network quality determination method provided in this embodiment is applied to... Figure 2 The terminal devices in the network quality determination system shown. For example, the network quality determination method provided in the embodiments of this application is applied to at least AP and AR. Figure 2 As shown, the transmission method provided in this application embodiment includes steps S301 to S305.
[0130] S301 sends a probe message to the server. The probe message carries target information, which is used to indicate the indicator information that the network device needs to obtain. The indicator information is used to measure network quality.
[0131] When network quality degrades, terminal devices can communicate with the server through network devices, sending probe messages to the server to determine the network quality between at least some network devices and the server, thus locating and delimiting network problems. Probe messages are sent from the terminal device to the server; therefore, they are uplink messages.
[0132] Network quality can be measured using various metrics, such as RTT (Round-Trip Time), packet loss, and network device status information. To determine the network quality between network devices and servers, network devices need to collect metric information. To obtain the specific metrics required, network devices include target information in their probe packets. Based on this target information, the network devices determine the metric information they need to acquire.
[0133] Specifically, the probe message includes an identification header, which includes a target information field, where the target information is placed. For example, such as... Figure 4 The probe message shown includes a target information field in its header, which is used to store target information.
[0134] In some embodiments, both probe and response messages can be carried within ICMP, UDP, or TCP messages. To enable identification of probe messages, the probe message header includes an identifier for the probe message. Furthermore, the probe message also includes the offset and length of the identifier, allowing the determination of the identifier's specific location within the probe message. In some cases, such as... Figure 5 As shown, the probe message may also include the probe message sequence number. The identification header of the probe message can be set according to the actual situation, and this embodiment of the application does not specifically limit it.
[0135] In some embodiments, the target information may be first information. When the target information is first information, the indicator information includes the number of probe packets received and the number of response packets received, the RTT between the network device and the server, and the time when the network device receives probe packets. The response packet is the packet in which the server responds to the probe packets.
[0136] In other embodiments, the target information may be second information. When the target information is second information, the indicator information is the network status information of the network device. The network status information of the network device includes at least the device name, the identification of the network device, the real-time number of users (e.g., the number of users when a probe message is received or the number of users when a response message is received), the user access signal strength, and the user negotiated bandwidth.
[0137] In some other embodiments, the target information can be first information and second information. When the target information is first information and second information, the indicator information includes the number of probe packets received and the number of response packets received, the RTT between the network device and the server, the time when the network device receives probe packets, and the network status information of the network device.
[0138] For example, target information can be represented by letters, numbers, etc. For instance, the letter "A" can represent target information as the first information, the letter "B" can represent target information as the second information, and the letter "C" can represent target information as both the first and second information.
[0139] In this embodiment, the terminal device sends a probe message to the server through a network device. Upon receiving the probe message, the network device determines the indicator information to be collected based on the target information carried in the probe message. The specific implementation process of the network device can be found in the following embodiments regarding the specific process of the network device executing the network quality determination method.
[0140] S302, Receive the response message sent by the server in response to the probe message, wherein the response message carries the indicator information obtained by the network device.
[0141] After receiving a probe message, the server can respond to the terminal device based on the probe message, thereby sending a response message to the terminal device through the network device. It is understood that the response message is a downlink message. Since the response message is the server's reply to the probe message, its format is the same as the probe message.
[0142] Because the target information differs, the indicator information collected by network devices will also differ.
[0143] In some embodiments, when the target information is the first information, the identification header of the response message includes a sequence number. The indicator information may be the RTT between the network device and the server, the uplink and downlink packet counts received by the network device, or the timestamps of the probe and / or response messages received by the network device. Alternatively, the indicator information may include the RTT between the network device and the server, the uplink and downlink packet counts received by the network device, and the timestamps of the probe and / or response messages. The specific content of the indicators can be flexibly set according to the actual situation, and this application does not impose specific limitations on it.
[0144] As one possible implementation, the target information is the first information, and the indicator information is the RTT between the network device and the server. For example, such as... Figure 6 As shown, the response message includes an RTT measurement section, which includes the number of network devices measuring RTT and multiple RTTs. Multiple RTTs refer to the RTTs between multiple network devices and the server, respectively. It is understood that the response message may include at least one RTT, depending on the specific circumstances. Figure 6 This is for illustrative purposes only.
[0145] As another possible implementation, the target information is the first information, and the indicator information is the number of uplink packets received and the number of downlink packets received by the network device. The uplink packet count represents the number of probe packets received by the network device, and the downlink packet count represents the number of acknowledgment packets received by the network device. For example, such as... Figure 7 As shown, the response message includes an uplink packet loss measurement section and a downlink packet loss measurement section. The uplink packet loss measurement section includes the number of uplink measured packets and multiple uplink received packet counts. The downlink packet loss measurement section includes the number of downlink measured packets and multiple downlink received packet counts. The uplink measured packet count refers to the number of network devices measuring the number of uplink received packets, and the downlink measured packet count refers to the number of network devices measuring the number of downlink received packets. It is understood that the response message may include at least one uplink received packet count and at least one downlink received packet count, depending on the actual situation. Figure 7 This is for illustrative purposes only.
[0146] It should be noted that the network device needs to determine the number of received probe packets and the number of received response packets to determine the number of lost packets. For example, with 64 probe packets, for probe packet with sequence number 1, the network device uses probe packets with sequence numbers 1-16 to determine the number of received response packets with sequence numbers 1-16. Similarly, for probe packet with sequence number 2, the network device uses probe packets with sequence numbers 2-17 to determine the number of received response packets with sequence numbers 2-17 to determine the number of received response packets with sequence number 2. It is understood that the above description is only an example, and the determination of the number of received packets can be based on actual circumstances; this application embodiment does not impose specific limitations.
[0147] As another possible implementation, the target information is the first information, and the indicator information is the timestamp of the network device receiving the probe message and / or the timestamp of the network device receiving the response message. For example, such as... Figure 8 As shown, the response message includes a timestamp measurement section, which includes the number of timestamp measurements and multiple timestamps. The timestamp can be the timestamp at which the network device received the probe message. It is understood that the response message may include at least one timestamp. Figure 8 This is for illustrative purposes only; the actual implementation may vary. When the metrics include the timestamp of the network device receiving the probe packet and the timestamp of the network device receiving the response packet, the response packet includes an uplink timestamp measurement unit and a downlink timestamp measurement unit. The uplink timestamp measurement unit includes the number of uplink timestamp measurements and the uplink timestamp. The downlink timestamp measurement unit includes the number of downlink timestamp measurements and the downlink timestamp. The uplink timestamp refers to the timestamp when the network device receives the probe packet, and the downlink timestamp refers to the timestamp when the network device receives the response packet.
[0148] As another possible implementation, the target information is the first information, and the indicator information includes the RTT between the network device and the server, the number of uplink and downlink packets received by the network device, and the timestamps of probe packets and / or response packets. For example, such as... Figure 9 As shown, the response message includes an RTT measurement section, an uplink packet loss measurement section, a downlink packet loss measurement section, and a timestamp measurement section. See details in [link to relevant documentation]. Figures 6 to 8 Detailed descriptions of each measurement section will not be repeated here.
[0149] As another possible implementation, the target information is the second information, and the indicator information is the network status information of the network device. The network status information includes at least the network device's device name, identity identifier, number of users receiving probe packets, user access signal strength, and user negotiated bandwidth. For example, such as... Figure 10 As shown, the response message includes a header, information section 1, information section 2, and other information sections. The header includes the number of information measurements and the length of each network status message. Each information section is used to store network status information for different network devices. For example, information section 1 stores network status information 1, information section 2 stores network status information 2, and so on. Network status information 1 refers to the network status information of network device 1, and network status information 2 refers to the network status information of network device 2.
[0150] S303 determines the network quality of network devices based on indicator information.
[0151] Different metrics can measure network quality. Examples include RTT (Round-Trip Time), packet loss rate, and network status. Since probe packets carry metrics about network devices, the network quality between network devices and receivers, and between network devices and terminal devices, can be determined based on the metrics in response packets.
[0152] In some embodiments, the indicator information is the RTT (Round-Trip Time) between the network device and the receiving end. The terminal device parses the response message to obtain the RTT. Based on the RTT, the network quality between the network device and the server is determined. For example, if the RTT is greater than a preset RTT threshold, it is determined that the network quality between the network device and the server has deteriorated. The response message can include at least one RTT, thus enabling the determination of the network quality between at least one network device and the server. This allows the terminal device to determine network quality at a fine-grained level, thereby improving the accuracy of network problem localization and delimitation.
[0153] In other embodiments, the indicator information is the number of uplink and downlink packets received. Based on the uplink and downlink packet counts, the terminal device can determine the number of packets lost by the network device. Thus, the network device can determine the network quality between itself and the receiving end based on the number of packet losses. The response message can include at least one uplink and downlink packet count, thereby determining the network quality between at least one network device and the server. This allows the terminal device to determine network quality at a fine-grained level, improving the accuracy of network problem localization and delimitation.
[0154] In some embodiments, the indicator information is the timestamp of the probe packet received by the network device, i.e., the second timestamp. The terminal device stores the first timestamp of the probe packet sent. The network device determines a first time difference based on the first timestamps of the first and second probe packets, where the first and second probe packets are probe packets with adjacent sequence numbers among multiple probe packets. Based on the second timestamps of the first and second probe packets, the network device determines a second time difference. Based on the first and second time differences, the jitter between the network device and the terminal device is determined, thereby determining the network quality between the network device and the terminal device.
[0155] In some other embodiments, the indicator information is the network status information of the network device. The terminal device analyzes the network status information of the network device to achieve fine-grained determination of network quality, thereby improving the accuracy of network problem localization and delimitation.
[0156] Understandably, in some embodiments, the indicator information may include the RTT between the network device and the receiving end, the number of uplink packets received and the number of downlink packets received, a second timestamp, and the network status information of the network device. In this way, the terminal device can determine network quality more accurately based on multiple indicators, thereby improving the accuracy of network quality determination while achieving fine-grained determination.
[0157] According to an embodiment of this application, a terminal device sends a probe message to a server, which responds by sending a response message back to the terminal device. The probe message carries target information, indicating the network quality-related metrics that need to be determined between the terminal device and the server. The server then sends a response message to the terminal device, containing the metric information determined by at least one network device. Upon receiving this metric information, the terminal device can determine the network quality between at least one network device and the server, enabling fine-grained determination of network quality and improving the accuracy of locating and delimiting network problems.
[0158] Figure 11 This is a flowchart illustrating another network quality determination method provided in an embodiment of this application. The network quality determination method provided in this embodiment is applied to... Figure 2 The network quality determination system shown includes at least one network device. For example... Figure 11 As shown, the network quality determination method provided in this application embodiment includes the following steps S1101 to S1103.
[0159] S1101, Obtain probe messages. The probe messages carry target information, which is used to indicate the indicator information that the network device needs to obtain. The indicator information is related to network quality.
[0160] The probe message carries target information. Upon receiving the probe message, the network device uses the target information to determine the specific metrics it needs to acquire. Target and metric information can be found in [link to relevant documentation]. Figure 3 Detailed descriptions of the corresponding embodiments are omitted here.
[0161] S1102, Based on the target information, determine the first received information of the probe message. The first received information is used to indicate the indicator information.
[0162] The first received information refers to some indicator information when a network device receives probe packets, such as the timestamp of the probe packet, the number of users receiving the probe packet, the user access signal strength, and the user negotiated bandwidth. The first received information differs depending on the target information. For example, when the target information is "first information," the first received information is the timestamp of the probe packet received by the network device. The network device stores the timestamp of the probe packet based on its header. For instance, a terminal device sends 16 probe packets with the target information being "first information," all with the identifier E21EA133FA81723C, and sequence numbers 1-16. The probe packet with sequence number 2 is not received by the network device. Thus, the network device generates the first received information as shown in Table 1 based on the timestamp of the received probe packet, the identifier of the probe packet, and the sequence number of the probe packet. The reception time of the unreceived probe packet can be marked as null.
[0163] Table 1
[0164] Identity identifier Serial Number Timestamp E21EA133FA81723C 1 1720171539020 E21EA133FA81723C 2 Null …… …… E21EA133FA81723C 15 1720171558174 E21EA133FA81723C 16 1720171558195
[0165] In another example, when the target information is the second information, the first received information includes the identity identifier, sequence number, and network status information of the probe packets received by the network device. For instance, a terminal device sends 16 probe packets with the first information as the target information, all with the identity identifier E21EA133FA81723C and sequence numbers 1-16. The probe packet with sequence number 2 is not received by the network device. Thus, the network device generates the first received information as shown in Table 2 based on the identity identifier and sequence number of the probe packets.
[0166] Table 2
[0167] Identity identifier Serial Number Network status information E21EA133FA81723C 1 Network status information 101 E21EA133FA81723C 2 Network status information 102 …… …… …… E21EA133FA81723C 15 Network status information 115 E21EA133FA81723C 16 Network status information 116
[0168] In some embodiments, network state information is stored in the form of Type-Length-Value (TLV). For example, network state information can be as shown in Table 3.
[0169] Type Length Value 1 2 Equipment Name 2 2 Device identification 3 2 Current number of users 4 2 User access signal strength 5 2 User negotiated bandwidth …… ……
[0170] S1103, send a response message to the probe message to the terminal device. The response message carries indicator information.
[0171] A response message is a message sent by the server to the terminal device in response to a probe message. In this embodiment, the network device needs to forward the probe message to transmit it to the server. After receiving the probe message, the server sends a response message to the terminal.
[0172] In some embodiments, when the target information is the second information, the first received information is indicator information, that is, the indicator information is the network status information when the network device receives the probe message.
[0173] As one possible implementation, the network device can update the probe packet with the first received information and then forward the probe packet. As another possible implementation, the network device can generate the information shown in Table 2.
[0174] In other embodiments, the network device caches the first reception information locally. Upon receiving a response message, it can also generate a second reception information, namely the reception status of the response message, thereby determining indicator information based on the first and second reception information. For example, the first reception information is shown in Table 1, and the second reception information is shown in Table 4, which represents the reception status of the response message.
[0175] Table 4
[0176] Identity identifier Serial Number Timestamp E21EA133FA81723C 1 1720171539040 E21EA133FA81723C 2 Null …… …… E21EA133FA81723C 15 1720171558194 E21EA133FA81723C 16 1720171558240
[0177] Thus, the RTT is determined based on the timestamp of each message in Table 1 and Table 4.
[0178] It is understandable that, in the actual implementation, some indicator information can be updated in the probe message before the probe message is forwarded. Alternatively, the network device can cache the indicator information and update it in the response message after receiving it. The specific implementation depends on the actual situation, and this application embodiment does not impose any specific limitations on this.
[0179] Based on the same concept as the method embodiments of this application, this application also provides a network quality determination device. The network quality determination device includes several modules, each module being used to execute various steps in the network quality determination method provided in the embodiments of this application. The division of modules is not limited here. Those skilled in the art will clearly understand that in practical applications, the various steps in the network quality determination method provided in the embodiments of this application can be assigned to different modules as needed, that is, the internal structure of the device can be divided into different modules to complete all or part of the functions described above. The modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more modules can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the modules in the above device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0180] For example, the network quality determination apparatus is used to execute the network quality determination method provided in the embodiments of this application. Figure 12 This is a schematic diagram of the network quality determination device provided in an embodiment of this application. The network quality determination device provided in this embodiment is applied to a terminal device. Figure 12 As shown, the network quality determination apparatus provided in this application embodiment includes:
[0181] The sending module 1201 is used to send probe messages to the server. The probe messages carry target information, which is used to indicate the indicator information that the network device needs to obtain. The indicator information is used to measure network quality.
[0182] The receiving module 1202 is used to receive a response message sent by the server in response to the probe message, wherein the response message carries at least one indicator information obtained by the network device.
[0183] The determination module 1203 is used to determine the network quality between the network device and the receiving end based on the indicator information.
[0184] According to this scheme, a terminal device sends a probe message to the server, which responds and then sends a response message to the terminal device. The probe message carries target information, indicating the network quality-related metrics that need to be determined between the terminal device and the server. The server then sends a response message to the terminal device, containing the metric information determined by at least one network device. Upon receiving this metric information, the terminal device can determine the network quality between at least one network device and the server and / or itself, enabling fine-grained determination of network quality and improving the accuracy of locating and delimiting network problems.
[0185] In one possible implementation, the target information is first information and / or second information. When the target information is first information, the indicator information includes the number of probe packets received and the number of response packets received, the round-trip time (RTT) between the network device and the server, and the time when the network device receives probe packets.
[0186] When the target information is the second type of information, the indicator information includes the network status information of the network devices.
[0187] In this way, network quality can be evaluated from at least one dimension, enabling terminal devices to determine network quality in a fine-grained manner while improving the accuracy of network quality determination.
[0188] In one possible implementation, the target information is the first information, the indicator information is the RTT between the network device and the server, and the response message includes an RTT measurement unit, which includes the number of network devices measuring the RTT and the RTT between each network device and the server.
[0189] In this way, network quality can be determined in a fine-grained manner based on RTT, thereby improving the accuracy of network problem localization and delimitation.
[0190] In one possible implementation, when the target information is the first information and the indicator information is the RTT between the network device and the server, a determination module is used to determine the network quality based on the RTT between the network device and the server.
[0191] In this way, network quality can be determined in a fine-grained manner based on RTT, thereby improving the accuracy of network problem localization and delimitation.
[0192] In one possible implementation, the target information is the first information, and the indicator information is the number of probe packets received and the number of response packets received.
[0193] The response message includes an uplink packet loss measurement section and a downlink packet loss measurement section. The uplink packet loss measurement section includes the number of network devices performing uplink packet reception measurement and the number of probe packets received by each network device.
[0194] The downlink packet loss measurement section includes the number of network devices measuring downlink packet loss and the number of packets received by each network device in response messages.
[0195] In this way, network quality can be determined in a fine-grained manner based on the number of uplink and downlink packets received, thereby improving the accuracy of locating and delimiting network problems.
[0196] In one possible implementation, when the target information is the first information and the indicator information is the number of probe packets received and the number of response packets received, the determining module is used to:
[0197] The number of packets lost by the network device is determined based on the number of probe packets received and the number of response packets received.
[0198] Determine network quality based on the number of packet losses.
[0199] In this way, network quality can be determined in a fine-grained manner based on the number of uplink and downlink packets received, thereby improving the accuracy of locating and delimiting network problems.
[0200] In one possible implementation, the target information is the first information, the indicator information is the second timestamp of the probe message received by the network device, and the response message includes a timestamp measurement unit, which includes the number of network devices recording timestamps and the second timestamp.
[0201] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0202] In one possible implementation, the probe message includes a sequence number, and the terminal device stores a first timestamp of sending the probe message. Given that the target information is the first information and the indicator information is the second timestamp of the network device receiving the probe message, the determination module is used to:
[0203] Based on the first timestamp of the first probe message and the second probe message, the first time difference is determined. The first probe message and the second probe message are probe messages with adjacent sequence numbers among multiple probe messages.
[0204] The second time difference is determined based on the second timestamps of the first and second probe messages;
[0205] The network quality of network devices is determined based on the first time difference and the second time difference.
[0206] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0207] In one possible implementation, the target information is the second information, the indicator information is the network status information of the network device, and the response message includes the number of network devices measuring the network status information, the data length of the network device's network status information, and the network status information of the network device.
[0208] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0209] In one possible implementation, where the target information is the second information and the indicator information is the network status information of the network device, the network status information includes at least the device name, identity identifier, number of users when the probe message is received, user access signal strength, and user negotiated bandwidth of the network device.
[0210] This allows for fine-grained determination of network quality, thereby improving the accuracy of locating and delimiting network problems.
[0211] In one possible implementation, the probe message is carried in an ICMP message, a UDP message, or a TCP message.
[0212] Thus, probing network quality using existing messages is a low-cost and high-benefit approach for terminal devices. It enables fine-grained determination of network quality at a low cost, thereby improving the accuracy of locating and defining network problems.
[0213] For example, the network quality determination apparatus is used to execute the network quality determination method provided in the embodiments of this application. Figure 13 This is a schematic diagram of the network quality determination device provided in an embodiment of this application. The network quality determination device provided in this embodiment is applied to network devices. Figure 13 As shown, the network quality determination apparatus provided in this application embodiment includes:
[0214] The acquisition module 1301 is used to acquire probe messages. The probe messages carry target information, which is used to indicate the indicator information that the network device needs to acquire. The indicator information is related to network quality.
[0215] The determination module 1302 is used to determine the first received information of the probe message based on the target information. The first received information is used to indicate indicator information.
[0216] The sending module 1303 is used to send a response message to the probe message to the terminal device. The response message carries indicator information.
[0217] According to this solution, after receiving a probe message, the network device collects network quality-related indicator information based on the target information indicated by the probe message, and updates the indicator information in the response message of the probe message. This enables the device to determine the network quality between the network device and the server and / or terminal device based on the indicator information, thereby enabling the terminal device to determine the network quality at a fine-grained level and improving the accuracy of locating and delimiting network problems.
[0218] In one possible implementation, the first information received is indicator information, and the device further includes:
[0219] The update module is used to update the probe message with the first received information;
[0220] The sending module is used to send updated probe messages to the server in order to obtain response messages from the server.
[0221] In one possible implementation, the acquisition module is further configured to acquire the response message and determine the second acquisition information of the response message, the second acquisition information being used to indicate indicator information;
[0222] The determination module is also used to determine indicator information based on the first and second collected information.
[0223] Based on the same concept as the method embodiments of this application, this application also provides a network quality determination device. This network quality determination device can be the terminal device in the above embodiments, or it can be the network device in the above embodiments. The network device can be a data forwarding device such as a switch, router, or access point (AP).
[0224] like Figure 14 As shown, the network quality determination device provided in this application embodiment includes a processor 1401, a memory 1402, and a communication interface 1403.
[0225] In this embodiment, the processor 1401 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0226] The memory 1402 may include a large-capacity memory for data or instructions, thereby providing storage space for the operating system and executable program code of the network quality determination device, which may include, but is not limited to: Windows system (an operating system), Linux system (an operating system), HarmonyOS system (an operating system), etc.
[0227] For example, and not as a limitation, memory 1402 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1402 may include removable or non-removable (or fixed) media. Where appropriate, memory 1402 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 1402 is non-volatile solid-state memory.
[0228] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory may include one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software that may include computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to this application.
[0229] For example, a computer program may be stored on the memory 1402, and the processor 1401 executes the computer program to implement the steps in the above method embodiments. Alternatively, the processor 1401 executes the computer program to implement the functions of each module in the above device embodiments. Exemplarily, the computer program may be divided into one or more modules / units, which may be a series of computer program instruction segments capable of performing a specific function. The one or more modules / units are stored in the memory 1402 and executed by the processor 1401 to complete this application. For example, the computer program may be divided into multiple modules, as in the modules of the device described above.
[0230] The communication interface 1403 is used to send and receive data, for example, to send data processed by the processor 1401 to other devices, or to receive data sent by other devices.
[0231] Of course, for the sake of simplicity, Figure 14This document only shows some of the components of the network quality determination device 1400 relevant to this application, omitting components such as buses, input / output interfaces, etc. In addition, the network quality determination device 1400 may include any other suitable components depending on the specific application. Furthermore, the network quality determination device can be a network device such as a desktop computer, laptop, handheld computer, or cloud server. Those skilled in the art will understand that... Figure 14 This is merely an example of a network quality determination device 1400 and does not constitute a limitation on the device. It may include more or fewer components than illustrated, or combine certain components, or use different components. For example, the network quality determination device may also include input devices, output devices, network access devices, buses, etc. For example, the input device may be a microphone array, and may also include, for example, a keyboard, mouse, etc. For example, the output device may output various information externally, including, for example, a display, speaker, printer, and communication networks and their connected remote output devices, etc.
[0232] In addition to the methods, apparatus, and network quality determination devices described above, embodiments of this application may also provide a computer program product comprising computer program instructions. When executed by a processor, these computer program instructions cause the processor to perform the steps of the methods in the various embodiments of this application described in the "Method" section of this specification. The computer program product may be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The computer program code may be in source code form, object code form, executable file, or some intermediate form. The computer program code may be executed entirely on a user's computing device, partially on a user's device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0233] Furthermore, embodiments of this application may also provide a computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the display control method according to various embodiments of this disclosure as described in the "Method" section above. The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, 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 device, magnetic storage device, or any suitable combination thereof. It should be noted that the content contained in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, a computer-readable medium may not include electrical carrier signals and telecommunication signals.
[0234] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.
[0235] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. It should be understood that in the embodiments of this application, the order of the process numbers does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0236] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of this application.
Claims
1. A method for determining network quality, characterized in that, Applied to terminal devices, including: Send a probe message to the server. The probe message carries target information. The target information is used to indicate the indicator information that the network device needs to obtain. The indicator information is used to measure network quality. The receiving server sends a response message in response to the probe message, wherein the response message carries the indicator information obtained by the network device; The network quality of the network device is determined based on the aforementioned indicator information.
2. The method according to claim 1, characterized in that, The target information is first information and / or second information. When the target information is first information, the indicator information includes the number of probe packets received and the number of response packets received, the round-trip time (RTT) between the network device and the server, and the time when the network device receives the probe packets. When the target information is the second type of information, the indicator information includes the network status information of the network device.
3. The method according to claim 1 or 2, characterized in that, The target information is the first information, the indicator information is the RTT between the network device and the server, the response message includes an RTT measurement unit, and the RTT measurement unit includes the number of network devices measuring RTT and the RTT between each network device and the server.
4. The method according to any one of claims 1-3, characterized in that, When the target information is the first information and the indicator information is the RTT between the network device and the server, determining the network quality of the network device based on the indicator information includes: determining the network quality based on the RTT between the network device and the server.
5. The method according to any one of claims 1-4, characterized in that, The target information is the first information, and the indicator information is the number of probe packets received and the number of response packets received. The response message includes an uplink packet loss measurement unit and a downlink packet loss measurement unit. The uplink packet loss measurement unit includes the number of network devices performing uplink packet reception measurement and the number of packets received by each network device from the probe message. The downlink packet loss measurement unit includes the number of network devices measuring downlink packet loss and the number of packets received by each network device from the response messages.
6. The method according to claims 1-5, characterized in that, When the target information is the first information and the indicator information is the number of received probe packets and the number of received response packets, determining the network quality of the network device based on the indicator information includes: The number of packets lost by the network device is determined based on the number of probe packets received and the number of response packets received. The network quality is determined based on the number of packet losses.
7. The method according to any one of claims 1-6, characterized in that, The target information is the first information, the indicator information is the second timestamp of the probe message received by the network device, and the response message includes a timestamp measurement unit, which includes the number of network devices recording timestamps and the second timestamp.
8. The method according to any one of claims 1-7, characterized in that, The probe message includes a sequence number, and the terminal device stores a first timestamp of sending the probe message. When the target information is the first information and the indicator information is the second timestamp of the network device receiving the probe message, determining the network quality of the network device based on the indicator information includes: Based on the first timestamp of the first probe message and the second probe message, a first time difference is determined, wherein the first probe message and the second probe message are probe messages with adjacent sequence numbers among the plurality of probe messages; The second time difference is determined based on the second timestamps of the first and second probe messages; The network quality of the network device is determined based on the first time difference and the second time difference.
9. The method according to any one of claims 1-8, characterized in that, The target information is the second information, the indicator information is the network status information of the network device, and the response message includes the number of network devices measuring the network status information, the data length of the network status information of the network device, and the network status information of the network device.
10. The method according to any one of claims 1-9, characterized in that, When the target information is the second information and the indicator information is the network status information of the network device, the network status information includes at least the device name, identity identifier, number of users when the probe message is received, user access signal strength, and user negotiated bandwidth of the network device.
11. The method according to any one of claims 1-10, characterized in that, The probe message is carried in an ICMP message, UDP message, or TCP message.
12. A method for determining network quality, characterized in that, Applied to network devices, the method includes: Acquire probe messages, the probe messages carrying target information, the target information being used to indicate the indicator information that the network device needs to acquire, the indicator information being related to the network quality; Based on the target information, the first information to be received from the probe message is determined, and the first information to be received is used to indicate the indicator information; A response message to the probe message is sent to the terminal device, and the response message carries the indicator information.
13. The method according to claim 12, characterized in that, The first received information is the indicator information, and the method further includes: Update the first received information into the probe message; Send the updated probe message to the server to obtain the response message sent by the server.
14. The method according to claim 12, characterized in that, The method further includes: The response message is obtained, and the second retrieval information of the response message is determined, wherein the second retrieval information is used to indicate the indicator information; The indicator information is determined based on the first received information and the second received information.
15. A network quality determination device, characterized in that, Applied to terminal devices, including: The sending module is used to send probe messages to the server. The probe messages carry target information, which is used to indicate the indicator information that the network device needs to obtain. The indicator information is used to measure network quality. The receiving module is used to receive a response message sent by the server in response to the probe message, wherein the response message carries at least one indicator information obtained by the network device. The determination module is used to determine the network quality of the network device based on the indicator information.
16. A device for determining network quality, characterized in that, Applied to network devices, the device includes: The acquisition module is used to acquire probe messages, which carry target information. The target information is used to indicate the indicator information that the network device needs to acquire, and the indicator information is related to network quality. The determination module is used to determine the first receiving information of the probe message based on the target information, wherein the first receiving information is used to indicate the indicator information; The sending module is used to send a response message to the probe message to the terminal device, and the response message carries the indicator information.
17. A network quality determination device, characterized in that, include: Memory, used to store executable code; A processor, when executing the executable code, performs the method of any one of claims 1-11, or performs the method of any one of claims 12 to 14.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed in a computer, causes the computer to perform the method of any one of claims 1-11, or to perform the method of any one of claims 12 to 14.
19. A computer program product containing instructions, characterized in that, When the instructions are executed on a computer, the computer performs the method of any one of claims 1-11, or performs the method of any one of claims 12 to 14.