Method and system for testing network link quality, storage medium and program product
By configuring a consistent speed test server and using a comprehensive evaluation method, the problem that existing network speed test tools cannot accurately reflect the performance of business networks has been solved, achieving a more realistic and comprehensive evaluation of network link quality.
Patent Information
- Application Number
- CN202511187590.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-25
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2045-08-25
AI Technical Summary
Existing network speed testing tools cannot accurately reflect network performance in real-world business scenarios. They suffer from mismatched test nodes, insufficient latency and stability assessments, and an inability to comprehensively capture the overall health status of network links.
By configuring a speed test server that is consistent with the business server in terms of network service configuration, the target speed test server is determined by the management server, and the network link quality is evaluated by combining the actual round-trip latency and packet loss rate. Multiple speed test communications and mathematical formulas are used to evaluate the network link quality.
It enables a more realistic reflection of the service link status, allows for a more comprehensive assessment of network performance, and provides more accurate network link quality assessment results.
Smart Images

Figure CN120710903B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of computer networks, and in particular, to a network link quality testing method, a testing system, a storage medium and a program product. BACKGROUND
[0002] With the rapid development of the Internet and cloud services, network speed and stability have become key factors affecting user experience and business performance. Existing network speed testing tools rely heavily on standardized testing protocols and testing nodes, which cannot fully reflect the network performance in actual business scenarios. Such tools mainly have the following problems.
[0003] Inconsistency with actual business
[0004] Most existing network speed testing tools usually use uniform (or standardized) testing protocols and methods for operation, such as HTTP / HTTPS, FTP, etc. general protocols. Although these methods can provide basic network bandwidth and response time information, they often cannot accurately simulate the complex communication patterns in specific business scenarios. In actual business environments, network traffic may contain a large number of dynamic content requests, database queries, real-time video streaming, and other types of interactions. Traditional speed testing tools do not fully consider these differentiated application scenarios, resulting in test results that cannot accurately reflect the real network performance during business operation. In addition, different business applications may need to follow their own specific security policies and data processing procedures, further increasing the difficulty of fully evaluating business network performance through standardized testing methods.
[0005] Testing nodes do not match
[0006] Existing speed testing tools use fixed testing nodes distributed around the world for speed testing, but these nodes are not always consistent with the actual network paths used by businesses, and cannot truly reflect the network link conditions.
[0007] Insufficient evaluation of delay and stability
[0008] Existing network speed testing tools tend to analyze network latency and connection stability (such as packet loss rate) separately, ignoring the inherent relationship between the two and their combined effect on overall network link quality. In fact, in complex network environments, delay fluctuations and transient packet loss not only directly affect the success or failure of a single request, but also can cause subsequent retransmission mechanisms to start, thereby exacerbating congestion and prolonging response time. Therefore, an evaluation system based solely on a single indicator cannot fully capture the overall health status of the network link, and is not conducive to timely identifying potential problem points and taking appropriate optimization measures. SUMMARY
[0009] Technical problems to be solved by the invention
[0010] The present application is formed to solve the above technical problems, and aims to provide a network link quality testing method which can more truly reflect the status of a service link. On this basis, the present application further provides a network link quality testing system, a computer readable storage medium and a computer program product.
[0011] Technical solutions adopted to solve the technical problems
[0012] One technical solution of the present application provides a network link quality testing method, wherein a network is connected with a client which is installed with an application service, a management server, a service server which can provide the application service, and a speed testing server which can provide a speed testing service, and the method comprises:
[0013] Causing the client to send a speed testing request to the management server, wherein the application service is implemented through communication between the client and the service server;
[0014] Causing the management server to determine a target speed testing server in the speed testing server which is consistent with the service server in terms of network service configuration according to the speed testing request;
[0015] Causing the management server to return response information containing speed testing related information of the target speed testing server to the client; and
[0016] Causing the client to perform speed testing communication with the target speed testing server according to the response information, so as to evaluate the network link quality between the client and the service server based on the result of the speed testing communication.
[0017] According to the testing method of the technical solution, for each application service, a speed testing server which is consistent with the service server providing the application service in terms of network service configuration is configured as a target speed testing server which provides speed testing service for each application service. Thus, a testing link which is consistent or similar to an actual service link can be selected according to the service type of the application service for speed testing communication. In this way, the result of the speed testing communication can more truly reflect the status of the service link and the real network performance of the service.
[0018] On the basis of the above technical solution, the speed testing related information comprises a region where the speed testing server is located, a speed testing protocol which can be provided by the speed testing server, a domain name of the speed testing server, and a port number of the speed testing server for speed testing service.
[0019] According to the testing method of the technical solution, the target speed testing server can be determined according to a specific application service and corresponding speed testing related information.
[0020] On the basis of the above technical solutions, the consistency in network service configuration includes:
[0021] The region where the target speed testing server is located and the region where the service server is located are the same, or the distance between the region where the target speed testing server is located and the region where the service server is located is less than a predetermined threshold value.
[0022] The domain name of the target speed testing server is configured to be the same as the domain name of the service server.
[0023] The port number of the target speed testing server for speed testing service is configured to be different from the port number of the service server for providing the application service.
[0024] The speed testing protocol that the target speed testing server can provide is the same as the service communication protocol adopted by the application service.
[0025] According to the test method, by configuring the regional information, domain name information, port number information and protocol information, the consistency of the target speed testing server and the service server in network service configuration can be ensured.
[0026] On the basis of the above technical solutions, the speed testing related information of the speed testing server is configured to the management server by the management personnel, and / or
[0027] The speed testing server sends a registration request to the management server to register the speed testing related information of the speed testing server.
[0028] According to the test method, the speed testing related information of each speed testing server can be added, modified, updated and deleted.
[0029] On the basis of the above technical solutions, the result of the speed testing communication includes the actual round-trip time delay, and the network link quality is evaluated based on at least the length of the actual round-trip time delay.
[0030] On the basis of the above technical solutions, the result of the speed testing communication includes the actual round-trip time delay and the packet loss rate, and the network link quality is evaluated based on the length of the actual round-trip time delay, the size of the packet loss rate and the length of the predetermined theoretical maximum round-trip time delay.
[0031] According to the test method, by considering the network time delay and the network stability in the evaluation, the network link quality can be evaluated more comprehensively, and the evaluation result can also more truly reflect the network performance.
[0032] On the basis of the above technical solutions, the client performs the speed test communication with the target speed test server multiple times according to the response information to obtain the results of the multiple speed test communications,
[0033] The network link quality is evaluated by the following mathematical formula:
[0034]
[0035] Wherein:
[0036] represents the score of the network link quality;
[0037] represents the average value of the actual round-trip delays;
[0038] is the score weight of the actual round-trip delay;
[0039] represents the standard deviation of the actual round-trip delays;
[0040] is the score weight of the actual round-trip delay;
[0041] represents the value of the packet loss rate;
[0042] is the score weight of the packet loss rate; and
[0043] represents the value of the theoretical maximum round-trip delay.
[0044] In another aspect, the application also provides a network link quality test system, wherein,
[0045] The test system comprises a management server, a speed test service access point, a speed test server capable of providing speed test service, and a link quality evaluation module,
[0046] The management server is configured to:
[0047] receive a speed test request sent from a client installed with an application service, the application service being implemented through communication between the client and a service server capable of providing the application service;
[0048] determine a target speed test server in the speed test server that is consistent with the service server in terms of network service configuration according to the received speed test request; and
[0049] returning response information including speed test related information of the target speed test server to the client,
[0050] The speed test service access point is configured to forward the speed test request to the target speed test server according to the domain name corresponding to the speed test request and the speed test protocol, so as to perform speed test communication between the client and the target speed test server.
[0051] The link quality evaluation module is configured to evaluate the network link quality between the client and the service server according to the result of the speed test communication. BRIEF DESCRIPTION OF DRAWINGS
[0052] Figure 1 FIG. 1 is a system architecture diagram of a network link quality test system for implementing a network link quality test method according to an embodiment of the present application.
[0053] Figure 2 FIG. 2 is a timing diagram of a network link quality test method according to an embodiment of the present application.
[0054] Figure 3 FIG. 3 is an example of a speed test service list formed by speed test related information configuration work based on input of an administrator.
[0055] Figure 4 FIG. 4 is another example of a speed test service list formed by speed test related information configuration work based on input of an administrator.
[0056] Figure 5 FIG. 5 is still another example of a speed test service list formed by speed test related information configuration work based on input of an administrator.
[0057] Figure 6 FIG. 6 is an example of a speed test service list formed by speed test related information configuration work based on a registration request of a speed test server. DETAILED DESCRIPTION
[0058] TERMS
[0059] Before specific embodiments and their modifications are described, some technical terms involved in the present application are described.
[0060] In the present application, "server" not only includes the traditional physical server, but also includes the virtual server constructed by virtualization technology (VM technology) and the container (Container) constructed by container orchestration platform (for example, kubernetes). That is, in the present application, the "management server", "speed test server" and "service server" described below not only refer to the traditional physical server, but also include the virtual server configured on the same physical server or different physical servers. That is, the "server" mentioned in the present application should be understood in a broad sense as a "service" or a functional entity providing a specific service, and is not limited to a specific hardware form.
[0061] In the present application, "application service" refers to a set of software functions designed for a specific purpose, which are provided to users or other application programs through a network or local interface. For example, "application" can be a standalone application, a Web service, a microservice, or any service component capable of performing a specific task and interacting with other systems. Taking electronic games as an example, an electronic game can contain multiple application services, including but not limited to online matching service, real-time communication service, file download service, multi-player game synchronization service, account management service, payment service, push notification service, data analysis and monitoring service, etc.
[0062] In the present application, "network service configuration" refers to a set of technical parameters and rules pre-set between the client and various servers to support the normal operation of a specific application service, including but not limited to geographic location, network topology structure, network protocol selection, bandwidth allocation, hardware configuration, software environment, routing strategy, network security measures, performance optimization settings, etc.
[0063] In particular, in the present application, "consistent in network service configuration" means that the speed test server and the service server are the same or highly similar in network service configuration such as geographic location, network protocol selection, routing strategy, performance optimization settings, etc. to be able to provide a network link test environment as real as possible, so as to make the test results as accurately as possible reflect the real network link quality between the client and the service server.
[0064] Main architecture of network link quality test system S
[0065] Hereinafter, with reference to Figure 1 , the main system architecture of the network link quality test system S applicable to the network link quality test method described in an embodiment of the present application is described.
[0066] As Figure 1As shown, the network link quality test system S mainly comprises a management server S1, a speed test server S2, a speed test access node S3, and a link quality evaluation module S4. Figure 1 Four regions are shown where application services are required, "pek" represents Beijing, China, "sha" represents Shanghai, China, "sin" represents Singapore, and "tyo" represents Tokyo, Japan, and "fra" represents Frankfurt, Germany.
[0067] From Figure 1 it can be known that the management server S1 is configured in Shanghai and Singapore, and is not configured in Beijing, Tokyo, and Frankfurt. However, the configuration of the management server S1 is not limited to this, and the management server S1 can be configured in each region where application services are required according to actual conditions.
[0068] The management server S1 can provide services of managing information related to application services, i.e. service related information, and information related to speed test services, i.e. speed test related information. Details of the service related information and the speed test related information will be described later. In addition, the management server S1 is configured to be able to communicate with a client CL installed with an application service, a speed test server S2, and a service server S0. Further, the management server S1 is configured to:
[0069] (1) receive a speed test request sent from the client CL installed with an application service, which is implemented through communication between the client CL and the service server S0 capable of providing the application service;
[0070] (2) determine a target speed test server in the speed test server which has consistency with the service server S0 capable of providing the application service in terms of network service configuration according to the received speed test request; and
[0071] (3) return response information including speed test related information of the target speed test server to the client CL.
[0072] How the above configuration of the management server S1 is implemented will be described in the embodiment of the test method, which is omitted here.
[0073] On the other hand, it can also be known from Figure 1 that a speed test server S2 is correspondingly provided in each region where application services are required. Each speed test server S2 provides speed test services for a specific application service. More specifically, each speed test server S2 is configured to be able to perform speed test communication with the client CL installed with the application service according to a speed test request corresponding to the specific application service, so as to provide a result of the speed test communication to the link quality evaluation module S4. For example, as shown in Figure 1As shown, multiple speed test servers S2 are configured in Shanghai, each of which is configured to provide speed test service for a specific application service. Although multiple speed test servers S2 are also configured or can also be configured in other regions, the detailed arrangement of speed test servers S2 in other regions is omitted here for the convenience of viewing the drawings.
[0074] In addition, as can be known from Figure 1 , a speed test access node S3 is configured in each region. The speed test access node S3 is configured to forward a speed test request to a target speed test server according to the domain name and the speed test protocol corresponding to the speed test request, so as to enable the speed test communication between the client CL and the target speed test server. In particular, in the case where multiple speed test servers S2 corresponding to different types of application services are configured, in order to implement the speed test of each type of application service, it is preferred to use a speed test access node S3 supporting multi-domain name and multi-protocol access. Sometimes, in the same region, multiple speed test servers S2 for the same application service can be provided, each of which has a different domain name and can be configured at different locations in the region. Moreover, these speed test servers S2 can all provide speed test service for the application service. Then, by enabling the speed test access node S3 to support multi-domain name access, the most suitable (for example, the shortest distance from the client) speed test server S2 can be found and speed test communication can be performed based on the speed test server S2. In addition, the function of multi-domain name access can also achieve technical effects such as load balancing and failover. Sometimes, although a specific domain name is used in the speed test request, the speed test server S2 pointed to by the domain name can be overloaded or fail. In this case, since the speed test access node S3 supports multi-domain name access, the speed test request can be distributed to other suitable speed test servers S2 as target speed test servers through domain name resolution. On the other hand, since different types of application services can use different communication protocols, by enabling the speed test access node S3 to support multi-protocol, the client CL and the target speed test server can perform speed test communication based on the same speed test protocol as the communication protocol used by the application service.
[0075] The link quality evaluation module S4 is configured to evaluate the network link quality between the client CL and the target speed test server according to the result of the speed test communication between them. As shown in Figure 1 , a link quality evaluation module S4 is configured in each region, but the configuration of the link quality evaluation module S4 is not limited thereto, and the link quality evaluation module S4 can also be configured in part of the regions. In this case, the regions not configured with the link quality evaluation module S4 can send the result of the speed test communication to the regions configured with the link quality evaluation module S4 in a cross-regional manner. In addition, as shown in Figure 1The case where the link quality evaluation module S4 belongs to the management server S1 is shown, but is not limited thereto, and the link quality evaluation module S4 can also be provided in other servers, and can also be provided independently. For the purpose of understanding and description, in the following, the case where the link quality evaluation module S4 is configured as a part of the management server S1 will be described as an example.
[0076] On the other hand, a plurality of service servers S0 are provided in each region. As described above, the service servers S0 implement specific application services by communicating with the clients CL. However, the service servers S0 do not belong to the network link quality test system S described in the present application, but are service entities that interact with the network link quality test system S.
[0077] Further, if a service server S0 is provided in a region, a speed test server S2 is usually provided to provide a corresponding speed test service.
[0078] An embodiment of the test method
[0079] In the following, an embodiment of the test method proposed in the present application will be described in detail. Figure 2 to Figure 6 An embodiment of the test method proposed in the present application will be described in detail.
[0080] Figure 2 A timing chart of an embodiment of the test method proposed in the present application is shown, and mainly includes a speed test related information configuration work A, a target speed test server determination work B, a speed test communication work C, and a quality evaluation work D.
[0081] Speed test related information configuration work A
[0082] Figure 2 Part A in FIG. 1 shows a timing chart of the speed test related information configuration work A of the test method of the present embodiment. In the present example, the speed test related information configuration work A includes a speed test related information configuration work based on an input of a management person and a speed test related information configuration work based on a registration request of the speed test server S2. However, it should be noted that, Figure 2 The configuration mode shown is only an example, and is not limited thereto. That is, the speed test related information configuration work A can also include only the speed test related information configuration work based on the input of the management person or the speed test related information configuration work based on the registration request of the speed test server S2.
[0083] In addition, here, for the purpose of explanation, it is assumed that the management server S1 has an HTTP service function (i.e., the management server S1 is an HTTP server), and the case where the management server S1 is of this type will be described as an example.
[0084] In the speed test related information configuration work based on the input of the administrator, since the management server S1 is an HTTP server, the administrator first establishes a connection with the management server S1 through the management terminal S5 and based on the TCP protocol. Specifically, through the action of three handshakes, the TCP connection is established between the management terminal S5 and the management server S1.
[0085] After the TCP connection is established, the administrator sends an HTTP request to the management server S1 through the management terminal S5, and the HTTP request is used to request to configure the speed test related information. The speed test related information refers to the related information required by the speed test communication, including but not limited to the service type of the application service as the speed test service object of the speed test server S2, the version information of the speed test server S2, the access endpoint information of the speed test server S2, the speed test protocol that can be provided by the speed test server S2, and the geographic location (i.e., the region) where the speed test server S2 is located. However, it should be noted that the speed test related information does not necessarily include all the above information. For example, the speed test related information can not include the service type of the application service as the speed test service object of the speed test server S2 and / or the version information of the speed test server S2.
[0086] In particular, the domain name in the access endpoint of each speed test server S2 is configured to be the same as the domain name of the corresponding business server S0. The "corresponding business server S0" referred to here refers to the business server S0 that provides the application service to be speed tested. Specifically, the speed test server S2 and the business server S0 use the same domain name, but use different ports. For example, the domain name of the business server S0 is set to im.game.com:443, and the domain name of the speed test server S2 is set to im.game.com:8000. These two servers share the same domain name im.game.com, but use different ports, i.e., the 443 port and the 8000 port. On this basis, the business server S0 and the speed test server S2 apply the same domain name resolution strategy and configuration, including but not limited to TTL (Time To Live) setting, load balancing strategy, geolocation routing, etc. In addition, the business server S0 and the speed test server S2 apply consistent security strategies, such as DNSSEC (DNS Security Extensions), HTTPS forced jump, etc., to ensure the security and consistency of the service.
[0087] In addition, the speed test protocol that can be provided by each speed test server S2 is the same as the service communication protocol used by the application service supported by the corresponding business server S0.
[0088] Further, as mentioned above, if a service server S0 is provided in a region, a corresponding speed test server S2 is usually configured to provide a corresponding speed test service. That is, the region where the speed test server S2 is located is the same as the region where the corresponding service server S0 is located.
[0089] It should be noted that establishing a connection is not a necessary action. In the present embodiment, the reason for first establishing a connection is that the management server S1 and the management terminal S5 communicate using the HTTP protocol as an application layer communication protocol. In the case of using an application layer communication protocol such as RTP, MQTT, etc., a UDP protocol can be used as a transport layer communication protocol. In this case, it is not necessary to establish a connection in advance.
[0090] Further, the "access endpoint" mentioned in the present application includes a domain name and a port number, or includes an IP address and a port number. An access endpoint can be expressed as <IP address>: <port number> or <domain name>: <port number>, both of which are valid, and the appropriate form can be selected according to the specific application scenario.
[0091] The management server S1 stores the speed test related information after receiving the HTTP request and the corresponding speed test related information. In the present embodiment, the management server S1, for example, writes the received speed test related information into Redis for storage. Redis is an in-memory high-performance key-value storage system, and is a distributed storage system. Redis is mainly used for caching and temporary data storage, but also supports persistent storage functions, and provides a corresponding persistent storage mechanism. However, the mechanism for storage is not limited to Redis, nor is it limited to distributed storage. For example, a relational storage mechanism (such as MySQL), a NoSQL storage mechanism (such as MongoDB), and a cloud service storage mechanism (such as AWS DynamoDB), etc. can be used.
[0092] After writing is successful, Redis returns response information indicating that writing is successful to the management server S1. The management server S1 returns response information indicating that information configuration is successful to the management terminal S5 after receiving the response information indicating that writing is successful. In this way, the speed test related information configuration work based on the input of the management personnel is completed.
[0093] Figure 3 to Figure 5The speed test service list formed by the speed test related information configuration work based on the input of the administrator is shown. Specifically, the service type of the application service to which the speed test service is to be provided, the version of the speed test server S2, the access endpoint of the speed test server S2, the speed test protocol provided by the speed test server S2, and the region (geographical location) where the speed test server S2 is located are stored as a piece of speed test related information in an array. For ease of understanding, the first piece of speed test related information in the list is described. In the first piece of speed test related information, the service type of the application service is "instant messaging", the version of the speed test server S2 capable of providing the speed test service for the application service is 1.0, the corresponding access endpoint is <im.game.com>: <8000>, the speed test protocol that can be provided is WebSocket (application layer) and TCP (transport layer), and the region where the speed test server S2 is located is Shanghai. Among them, the domain name im.game.com in the access endpoint is the same as the domain name of the service server S0 providing the application service of "instant messaging". In addition, it should be noted that, Figure 3 to Figure 5 The speed test service list shown only shows part of the stored speed test related information, not all of the speed test related information.
[0094] On the other hand, in the speed test related information configuration work based on the registration request of the speed test server S2, the speed test server S2 actively sends a registration request to the management server S1, requesting the management server S1 to register (store) the speed test related information sent by the speed test server S2. Of course, the same as above, before sending the registration request, the speed test server S2 needs to first establish a connection with the management server S1, and the repeated description is omitted here.
[0095] After receiving the registration request and the corresponding speed test related information from the speed test server S2, the management server S1 writes the speed test related information into Redis. In the case of successful writing, Redis returns response information indicating successful writing to the management server S1.
[0096] After receiving the response information indicating successful writing, the management server S1 returns response information indicating successful registration to the speed test server S2. In this way, the speed test related information configuration work based on the registration request of the speed test server S2 is completed.
[0097] It should be noted that, in the case where the same region is configured with both the management server S1 and the speed measurement server S2, the speed measurement server S2 preferably sends a registration request to the management server S1 located in the same region, but is not limited thereto. In addition to sending a registration request to the management server S1 located in the same region, the speed measurement server S2 can also send a registration request to the management server S1 located in an adjacent region or another region separated by a certain distance. On the other hand, in the case where the region configured with the speed measurement server S2 is not configured with the management server S1, the speed measurement server S2 can send a registration request to the management server S1 located in an adjacent region or another region separated by a certain distance.
[0098] In addition, it should be noted that the speed measurement related information configuration work A is not performed only once. The administrator periodically configures the management server S1 with new speed measurement related information or updates the old speed measurement related information. On the other hand, when the version of the speed measurement server S2 itself changes, the speed measurement server S2 automatically sends a registration request to the management server S1 to update the original speed measurement related information. In addition, in the case where a new speed measurement server S2 is added, the new speed measurement server S2 automatically sends a registration request to the management server S1 to request registration of its speed measurement related information.
[0099] Figure 6 The speed measurement service list formed based on the speed measurement related information configuration work performed based on the registration request of the speed measurement server is shown. Compared with Figure 3 It can be found that, in some speed measurement related information, the version information of the speed measurement server S2 has changed (updated). In other speed measurement related information, the access endpoint of the speed measurement server S2 has changed (updated). In addition, it can also be found that new speed measurement related information has been added.
[0100] Target speed measurement server determination work B
[0101] In the target speed measurement server determination work B, for an application service to be speed measured, a suitable speed measurement server S2, i.e., a target speed measurement server, is determined. Specifically, a certain client CL is installed with a specific application service. When the client CL starts the application service, the client CL sends a speed measurement request to the management server S1. To which management server S1 the client CL sends the speed measurement request is determined in advance. For example, it can be designed that the client CL sends the speed measurement request to the management server S1 closest to the client CL. Preferably, it is designed that the client CL sends the speed measurement request to the management server S1 located in the same region. The speed measurement request includes the service type of the application service to be speed measured, the access endpoint of the service server S0 capable of providing the application service, the service communication protocol used by the application service, and the region where the client CL is located, etc.
[0102] After receiving the speed test request, the management server S1 parses the speed test request to obtain the above information. Then, the management server S1 determines the speed test server S2, i.e., the target speed test server, which is consistent with the network service configuration of the service server S0 providing the application service according to the above information parsed. Specifically, the management server S1 searches the speed test service list stored in Redis according to the above information parsed to determine the appropriate speed test server S2. For example, the management server S1 knows through parsing the speed test request that the service type of the application service is "instant messaging", the access endpoint of the corresponding service server S0 is <im.game.com>: <443>, the service communication protocol used is WebSocket (application layer) and TCP (transport layer), and the region where the client CL initiating the application service is located is Shanghai. Then, the management server S1 searches the speed test service list stored in Redis. As can be seen from Figure 3 and Figure 6 , the speed test service list stores speed test related information matching the above information. Through the speed test related information, the target speed test server can be determined. Therefore, the management server S1 successfully pulls the speed test related information matching the above information from the speed test service list stored in Redis, and further returns the pulled speed test related information to the client CL. That is, the management server S1 returns the response information including the speed test related information of the target speed test server to the client CL. Thus, the target speed test server providing speed test service for the application service can be determined.
[0103] Speed test communication work C
[0104] After determining the target speed test server, the speed test communication work C is performed. Specifically, the client CL sends a plurality of speed test messages (packets) to the target speed test server in sequence, and records the sending time of each speed test message and the number of speed test messages. Each speed test message contains speed test related information of the target speed test server. More specifically, the client CL sends a plurality of speed test messages to the speed access node S3 configured in the region according to the region information contained in the speed test related information of the target speed test server in sequence, for example. The speed access node S3 determines the target speed test server from a plurality of speed test servers S2 according to the speed test related information contained in each speed test message. Then, the speed access node S3 sends the speed test messages to the target speed test server in sequence.
[0105] The target speed measurement server sends a response message to the client CL after receiving each speed measurement message. After receiving the response messages corresponding to the speed measurement messages, the client CL records the time of receiving each response message corresponding to each speed measurement message sent from the target speed measurement server. In addition, the client CL also records the number of actually received response messages.
[0106] Then, the client CL sends the time of sending each speed measurement message, the number of sent speed measurement messages, the time of receiving the response messages corresponding to the speed measurement messages, and the number of actually received response messages to the link quality assessment module S4 in the management server S1.
[0107] Quality assessment work D
[0108] In the quality assessment work D, the link quality assessment module S4 determines the multiple round-trip delays between the client and the target speed measurement server by comparing the time of sending each speed measurement message and the time of receiving the response message corresponding to the speed measurement message. Then, the link quality assessment module S4 calculates the average value and the standard deviation of the multiple round-trip delays based on the received multiple round-trip delays.
[0109] On the other hand, the link quality assessment module S4 determines the packet loss rate of the current speed measurement communication by comparing the number of sent speed measurement messages and the number of actually received response messages.
[0110] Then, the link quality assessment module S4 scores the network link quality obtained through the current speed measurement communication by the following mathematical formula.
[0111]
[0112] wherein, represents the value of the theoretical maximum round-trip delay, represents the network link quality between the client C and the target speed measurement server, is the score weight of the average value of the multiple round-trip delays, is the score weight of the standard deviation of the multiple round-trip delays, is the score weight of the packet loss rate. and take values in the interval [0, 1], The maximum timeout time is multiplied by any value in the interval [0, 1]. The "maximum timeout time" mentioned here is a time threshold set according to the speed test result, which is used to determine whether a packet loss occurs. Specifically, in the case of sending a data packet to the server, if the reply data from the server is still not received after the "maximum timeout time", it is determined that a packet loss occurs. It should be noted that, , and The values of and can be set according to different actual scenarios. For example, in the scenario where the stability of the connection is required to be higher, and The values of and are appropriately increased. For example, in the scenario where there is no need to maintain a long connection and the transmission speed is pursued, The value of is appropriately increased. Thus, the calculated score can be more referential.
[0113] Since the target speed test server and the service server providing the application service have consistency in network service configuration, the network link state between the client C and the target speed test server is closer to the network link state between the client C and the service server S0 providing the application service. That is, the above can be used to evaluate the network link quality between the client C and the service server corresponding to the target speed test server.
[0114] According to the network link quality test method of the present embodiment, unlike the test tools in the prior art which mostly use unified test methods and protocols, corresponding speed test services are configured for different application services. That is, for each application service, a speed test service is configured which has consistency with the application service in network service configuration. In this way, the speed test service with network link consistent or close to the network link when the application service is implemented can be provided for the client, so that the speed test result of the speed test service can more truly reflect the current service link condition.
[0115] In addition, according to the network link quality test method of the present embodiment, unlike the network delay test and network stability test in the prior art which are performed separately, the delay and stability of the network link are measured simultaneously in the speed test communication process. Specifically, the delay, jitter, packet loss rate and other data of the network are recorded and analyzed in the speed test communication process, and the network link quality is scored by a fusion calculation method. Thus, the network link quality can be more comprehensively evaluated.
[0116] Supplementary notes
[0117] In the above-described embodiments, the network link quality is evaluated based on both the network delay and the packet loss rate, but is not limited thereto. For example, the network link quality can be evaluated based on only the length of the round-trip time.
[0118] In the above-described embodiments, the link quality evaluation module S4 is configured as a part of the management server S1, but is not limited thereto. The link quality evaluation module S4 can be configured as a part of the client C, can be configured as a part of another server other than the management server S1, or can be configured as a stand-alone server.
[0119] In addition, it should be noted that the communication method of the above-described embodiments and each modification example of the present application can also be implemented as a computer software program. For example, an embodiment of the present application and each modification example thereof include a computer program product including a computer program carried on a computer readable medium of each communication subject, and the computer program includes program codes for executing the communication method described in the above-described embodiments and each modification example.
[0120] The foregoing description has provided a number of features and advantages, including various alternative embodiments, as well as details of structure and function of the devices and methods. It is intended that the description be exemplary, rather than exhaustive or limiting.
[0121] It will be apparent to those skilled in the art that various modifications can be made to the full scope of the terms indicated by the broad generic meaning of the terms expressed by the appended claims, particularly in terms of the hardware configuration or system configuration of the communication system, including combinations thereof within the scope of the principles described herein. To the extent that these various modifications do not depart from the spirit and scope of the appended claims, it is meant that they are also encompassed herein.
Claims
1. A network link quality test method, the network being connected with a client in which an application service is installed, a management server, a service server capable of providing the application service, and a speed test server capable of providing a speed test service, characterized by, comprising: causing the client to send a speed test request to a management server; causing the management server to determine, according to the speed test request, a target speed test server among the speed test servers that is consistent with the service server in network service configuration; causing the management server to return response information including speed test related information of the target speed test server to the client; and causing the client to perform speed test communication with the target speed test server according to the response information, to evaluate network link quality between the client and the service server based on a result of the speed test communication, wherein the speed test related information includes a domain name of the speed test server and a port number of the speed test server for speed test service, consistency in network service configuration includes: the domain name of the target speed test server is configured to be the same as the domain name of the service server; and the port number of the target speed test server for speed test service is configured to be different from the port number of the service server for providing the application service, the test method further comprises causing the client to perform multiple speed test communications with the target speed test server according to the response information to obtain results of the multiple speed test communications, the results of the speed test communications including actual round-trip time and packet loss rate, the network link quality is evaluated by the following mathematical formula: wherein: a score indicative of the network link quality; an average of a plurality of said actual round-trip times; is about the score weight; a standard deviation representing a plurality of said actual round-trip times; is about the score weight; a value representative of the packet loss rate; is about the score weight; and a value representing a predetermined theoretical maximum round-trip latency.
2. The network link quality test method of claim 1, wherein the speed test related information further includes a region where the speed test server is located and a speed test protocol that the speed test server can provide.
3. The network link quality test method of claim 2, wherein consistency in network service configuration further includes: the region where the target speed test server is located is the same as the region where the service server is located, or the distance between the region where the target speed test server is located and the region where the service server is located is less than a predetermined threshold; and the speed test protocol that the target speed test server can provide is the same as the service communication protocol adopted by the application service.
4. The network link quality test method of any one of claims 1 to 3, wherein the speed test related information of the speed test server is configured to the management server by a management personnel, and / or causing the speed test server to send a registration request to the management server to register the speed test related information of the speed test server.
5. A network link quality test system, comprising: the test system includes a management server, a speed test service access point, a speed test server capable of providing speed test service, and a link quality evaluation module, the management server is configured to: receive a speed test request sent from a client installed with an application service, the application service being implemented through communication between the client and a service server capable of providing the application service; determine, according to the received speed test request, a target speed test server among the speed test servers that is consistent with the service server in network service configuration; and returning response information including speed test related information of the target speed test server to the client, the speed test service access point is configured to forward the speed test request to the target speed test server according to a domain name corresponding to the speed test request and a speed test protocol, so as to perform speed test communication between the client and the target speed test server, the link quality evaluation module is configured to evaluate network link quality between the client and the service server according to a result of the speed test communication, wherein the speed test related information includes a domain name of the speed test server and a port number of the speed test server for speed test service, the consistency in network service configuration includes: the domain name of the target speed test server is configured to be the same as the domain name of the service server; and the port number of the target speed test server for speed test service is configured to be different from the port number of the service server for providing the application service, the link quality evaluation module is further configured to enable the client to perform multiple speed test communications with the target speed test server according to the response information, so as to obtain multiple results of the speed test communication, the result of the speed test communication including actual round-trip time and packet loss rate, the network link quality is evaluated by the following mathematical formula: wherein: a score indicative of the network link quality; an average of a plurality of said actual round-trip times; is about the score weight; a standard deviation representing a plurality of said actual round-trip times; is about the score weight; a value indicative of the packet loss rate; is about the score weight; and a value representing a predetermined theoretical maximum round-trip latency.
6. The network link quality test system of claim 5, wherein the speed test related information further includes a region where the speed test server is located and a speed test protocol that the speed test server can provide.
7. The network link quality test system of claim 6, wherein the consistency in network service configuration further includes: the region where the target speed test server is located is the same as the region where the service server is located; and the speed test protocol that the target speed test server can provide is the same as the service communication protocol adopted by the application service.
8. A computer readable storage medium, the computer readable storage medium storing a computer program, characterized in that the computer program is executed by a processor to implement the test method of any one of claims 1 to 4.
9. A computer program product, comprising a computer program, characterized in that the computer program is executed by a processor to implement the test method of any one of claims 1 to 4.
Citation Information
Patent Citations
Method, system and equipment for testing speed through router network
CN108322360A
Network acceleration service processing method and device
CN110557290A