Network performance measurement method and device, computer equipment, storage medium and computer program product
The network performance measurement command triggered by the client downloads the script, generates IPv4 and/or IPv6 access addresses, and records and sends the test results to the log server. This solves the high deployment cost and complex management problems of traditional methods and achieves more accurate network performance measurement.
Patent Information
- Application Number
- CN202510924716.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-09-12
AI Technical Summary
Traditional network performance measurement methods have high deployment costs and complex management in large or distributed networks, making it difficult to accurately reflect user experience and affecting measurement accuracy.
The network performance measurement command triggered by the client downloads the measurement script, generates IPv4 and/or IPv6 access addresses, records the test results and sends them to the log server for measurement, supporting asynchronous operation and automated data collection.
It achieves a more realistic and accurate reflection of network performance, reduces resource usage, improves measurement accuracy and convenience, and meets the needs of network performance monitoring and evaluation.
Smart Images

Figure CN120639664A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a network performance measurement method, apparatus, computer equipment, storage medium, and computer program product. Background Art
[0002] In order to accelerate the deployment and application promotion of IPv6 (Internet Protocol Version 6), relevant departments have adopted a series of policies and incentives. The deployment and promotion of IPv6 is inseparable from the measurement of its network performance.
[0003] Traditional network performance testing methods deploy specialized hardware or software probes to capture and analyze network data. However, this method doesn't accurately reflect actual user experiences, is difficult to manage, and is expensive and complex to manage in large or distributed networks. These issues all affect the accuracy of network performance measurements. Consequently, current network performance measurement accuracy is low. Summary of the Invention
[0004] Based on this, it is necessary to provide a network performance measurement method, apparatus, computer equipment, computer-readable storage medium and computer program product to address the technical problem of low accuracy of the above-mentioned network performance measurement.
[0005] In a first aspect, the present application provides a network performance measurement method, comprising:
[0006] In response to a network performance measurement instruction triggered by a user on a client, download a measurement script;
[0007] Call the measurement script and perform the following steps:
[0008] Generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address;
[0009] Sending an access request to the test access address and recording the test result of the website to be tested;
[0010] The website address of the website to be tested, the test access address and the corresponding test result are sent to a log server, so that the log server performs network performance measurement based on the test access address.
[0011] In one embodiment, the method further includes: generating a user ID of the user through the measurement script; and sending the user ID, the website address of the website to be tested, the test access address and the corresponding test result to the log server.
[0012] In one embodiment, the website to be tested is any one in a preset business website list; the method further includes: calling the measurement script, cyclically accessing each business website in the business website list, and obtaining the test result of the user visiting each business website; sending the test result of each business website to the log server.
[0013] In one embodiment, the log server is also used to collect statistics on the test results of the users on the same business website to obtain an average value of the test results; based on the average value of the test results of each business website under the IPv4 access address and the average value of the test results under the IPv6 access address, a network performance comparison report of the IPv4 access address and the IPv6 access address is generated.
[0014] In one embodiment, recording the response time of the website to be tested includes: recording a start timestamp and an end timestamp of accessing the website to be tested; and obtaining the response time based on the start timestamp and the end timestamp.
[0015] In one embodiment, the measurement script runs asynchronously in the client.
[0016] In a second aspect, the present application further provides a network performance measurement device, comprising:
[0017] A script acquisition module, configured to download a measurement script in response to a network performance measurement instruction triggered by a user on a client;
[0018] The script calling module is used to call the measurement script and perform the following steps:
[0019] An address generation module is used to generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address;
[0020] A result recording module is used to send an access request to the test access address and record the test result of the website to be tested;
[0021] The result sending module is used to send the website address of the website to be tested, the test access address and the corresponding test result to the log server, so that the log server can perform network performance measurement based on the test access address.
[0022] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0023] In response to a network performance measurement instruction triggered by a user on a client, download a measurement script;
[0024] Call the measurement script and perform the following steps:
[0025] Generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address;
[0026] Sending an access request to the test access address and recording the test result of the website to be tested;
[0027] The website address of the website to be tested, the test access address and the corresponding test result are sent to a log server, so that the log server performs network performance measurement based on the test access address.
[0028] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the following steps:
[0029] In response to a network performance measurement instruction triggered by a user on a client, download a measurement script;
[0030] Call the measurement script and perform the following steps:
[0031] Generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address;
[0032] Sending an access request to the test access address and recording the test result of the website to be tested;
[0033] The website address of the website to be tested, the test access address and the corresponding test result are sent to a log server, so that the log server performs network performance measurement based on the test access address.
[0034] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
[0035] In response to a network performance measurement instruction triggered by a user on a client, download a measurement script;
[0036] Call the measurement script and perform the following steps:
[0037] Generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address;
[0038] Sending an access request to the test access address and recording the test result of the website to be tested;
[0039] The website address of the website to be tested, the test access address and the corresponding test result are sent to a log server, so that the log server performs network performance measurement based on the test access address.
[0040] The above-mentioned network performance measurement method, device, computer equipment, storage medium and computer program product, in the process of network performance measurement, first responds to the network performance measurement instruction triggered by the user on the client and downloads the measurement script; then calls the measurement script and performs the following steps: based on the address information of the website to be tested, generates the test access address of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address; sends an access request to the test access address and records the test results of the website to be tested; sends the website address of the website to be tested, the test access address and the corresponding test results to the log server, so that the log server performs network performance measurement based on the test access address. Through the above process, end-to-end access delay data can be collected, thereby more realistically and accurately reflecting the user's actual network usage experience, and the running resources are small. The measurement script can be automatically run in an asynchronous manner without manual intervention, which has high practicality and convenience, can effectively meet the needs of network performance monitoring and evaluation, and improve the accuracy of network performance measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 A diagram illustrating an application environment of a network performance measurement method according to an embodiment;
[0043] Figure 2 1 is a flow chart of a network performance measurement method according to an embodiment;
[0044] Figure 3 1 is a flow chart of network performance measurement steps in one embodiment;
[0045] Figure 4 Schematic diagram of a network performance measurement method according to an embodiment;
[0046] Figure 5 A schematic diagram of the decomposition of measurement tasks of a network performance measurement method in one embodiment;
[0047] Figure 6 Detailed flowchart of a network performance measurement method according to an embodiment;
[0048] Figure 7 A schematic diagram of a log data recording format structure of a network performance measurement method in one embodiment;
[0049] Figure 8 A schematic diagram of a log file sample of a network performance measurement method according to an embodiment;
[0050] Figure 9 is a structural block diagram of a network performance measurement device in one embodiment;
[0051] Figure 10 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0053] With the accelerated deployment and application of IPv6, traditional probe-based network performance measurement has become a common monitoring method. This approach involves deploying specialized hardware or software probes to capture and analyze network traffic data. However, this approach has many limitations. First, deploying probes on a large scale across large or distributed networks is not only costly but also complex and cumbersome. Second, traditional probe-based measurement methods don't trigger end-to-end measurements from the end user, making them difficult to accurately reflect the user experience. Third, the data captured by probes may contain sensitive information, requiring strict measures to protect user privacy and data security during data processing, which undoubtedly increases the difficulty and risk of data management. These limitations all affect the accuracy of network performance measurement. Consequently, network performance measurement currently suffers from low accuracy.
[0054] In this application, APNIC (Asia-Pacific Network Information Center) is one of the world's five major regional Internet registration management organizations. It is an international organization mainly responsible for the allocation of IP addresses and ASNs (Autonomous System Numbers) in the Asia-Pacific region and the management of a portion of root domain name server mirrors; IPv6 (Internet Protocol Version 6) is the next-generation IP protocol designed by the Internet Engineering Task Force (IETF) to replace IPv4.
[0055] In response to the above technical problems, this paper proposes a network performance measurement method that can be applied to Figure 1 In the application environment shown, the server 101 where the operator portal website homepage is located responds to a network performance measurement instruction triggered by a user on the client 102. The server 101 where the operator portal website homepage is located downloads a measurement script, invokes the measurement script, and performs the following steps: first, based on the address information of the website to be tested, generates a test access address of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address; then, sends an access request to the test access address and records the test result of the website to be tested; finally, sends the website address of the website to be tested, the test access address, and the corresponding test result to the log server 103, so that the log server performs network performance measurement based on the test access address.
[0056] In an exemplary embodiment, Figure 2 As shown, a network performance measurement method is provided, which is applied to Figure 1 Taking the server 101 where the operator portal website homepage is located as an example, the process includes the following steps S202 to S208.
[0057] Step S202 : downloading a measurement script in response to a network performance measurement instruction triggered by a user on the client.
[0058] Among them, the network performance measurement instruction is an instruction initiated by the user on the client, which can be used to test the quality and performance of the network connection and trigger the subsequent measurement script download process; downloading the measurement script refers to downloading the script for subsequent network performance measurement, which is used to perform network performance detection tasks.
[0059] Step S204 , calling the measurement script to execute the following steps: generating a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address.
[0060] Among them, the address information of the website to be tested can be www.qq.com, and a test access address for measurement can be generated based on the address information of the website to be tested; the test access address refers to the test access address of the website to be tested, which is a specific access address for testing generated based on the original website address, and can be an IPv4 access address or an IPv6 access address; the IPv4 access address and the IPv6 access address refer to addresses of different Internet Protocol versions. IPv4 is a traditional address format, and IPv6 is a new generation address format. IPv6 has greater compatibility and address space.
[0061] Step S206: Send an access request to the test access address and record the test result of the website to be tested.
[0062] Among them, sending an access request is to send an actual network request to the test access address, which is used to measure performance indicators such as response time, packet loss rate, bandwidth, etc. of the website under test; the test results can include feedback data of the network request, such as latency, throughput, packet loss rate, etc.
[0063] Step S208: Send the website address of the website to be tested, the test access address and the corresponding test result to the log server, so that the log server performs network performance measurement based on the test access address.
[0064] Among them, the log server can be a server that centrally collects and stores test data, and is used to centrally manage and analyze network performance test results; the test access address of the website to be tested can support both IPv4 access addresses and IPv6 access addresses, or only support IPv4 access addresses or only support IPv6 access addresses.
[0065] As an example, when the website to be tested supports both IPv4 and IPv6 access addresses, the user identifier, the website address of the website to be tested, the IPv4 and IPv6 access addresses and their corresponding response times are sent to the log server so that the log server performs network performance measurements based on IPv4 and IPv6.
[0066] As another example, when the website to be tested only supports IPv4 access addresses, the user identifier, the website address of the website to be tested, the IPv4 access address and the corresponding response time are sent to the log server so that the log server performs IPv4-based network performance measurement.
[0067] As another example, when the website to be tested only supports IPv6 access addresses, the user identifier, the website address of the website to be tested, the IPv6 access address and the corresponding response time are sent to the log server so that the log server performs IPv6-based network performance measurement.
[0068] In the above-mentioned network performance measurement method, during the network performance measurement process, first, in response to the network performance measurement instruction triggered by the user on the client, the measurement script is downloaded; then the measurement script is called to perform the following steps: based on the address information of the website to be tested, a test access address of the website to be tested is generated; the test access address includes an IPv4 access address and / or an IPv6 access address; an access request is sent to the test access address, and the test results of the website to be tested are recorded; the website address of the website to be tested, the test access address and the corresponding test results are sent to the log server, so that the log server performs network performance measurement based on the test access address. Through the above process, end-to-end access delay data can be collected, thereby more realistically and accurately reflecting the user's actual network usage experience, and the running resources are small, and the measurement script can be automatically run in an asynchronous manner without manual intervention, which has high practicality and convenience, can effectively meet the needs of network performance monitoring and evaluation, and improve the accuracy of network performance measurement.
[0069] In an exemplary embodiment, the network performance measurement method further includes:
[0070] Generate a user ID for the user through the measurement script; send the user ID, the website address of the website to be tested, the test access address and the corresponding test results to the log server.
[0071] The user ID is the unique identifier of a user and is used to distinguish test data from different users. The user ID can be a randomly generated ID or user login information. The user ID can also be used to correlate test results and analyze network experience differences between different users.
[0072] In this embodiment, the user ID of the user can be efficiently generated through the automation of the measurement script, so that the collected data (user ID, test website, test address and results) can be centrally sent to the log server, realizing efficient monitoring of network performance.
[0073] Furthermore, in one embodiment, the website to be tested is any one in a preset business website list; the method further includes:
[0074] The measurement script is called to cyclically access each business website in the business website list to obtain the test result of the user accessing each business website; and the test result of each business website is sent to the log server.
[0075] Among them, the preset business website list is a set of predefined target business website collections for performance testing, which can be used to ensure that the network performance measurement process covers major business scenarios; circular access is the operation of visiting each website in the business website list in turn, which can realize automated scripts to request each website in turn to ensure that each website is performance tested and improve the comprehensiveness of the test; calling the measurement script can be an operation to execute predefined programs or codes, initiate network requests, and obtain performance data, and then automatically collect network response time, bandwidth, packet loss rate and other indicators; obtaining the test results of users visiting each business website is the performance test data generated by the script after each visit, which can include response time, download speed, upload speed, packet loss rate, and connection status (success or failure); sending the test results of each business website is the process of pushing the performance data of each website to the log server, which can realize centralized data management and storage.
[0076] In this embodiment, a measurement script is used to cyclically access a predefined list of business websites, continuously and systematically test the network performance indicators of each business website, and the test results are uploaded to the log server in a timely manner, providing basic data for network maintenance and optimization, thereby improving the accuracy of network performance measurement.
[0077] Furthermore, in one embodiment, the log server is also used to collect statistics on the test results of users on the same business website to obtain the average value of the test results; based on the average value of the test results of each business website under the IPv4 access address and the average value of the test results under the IPv6 access address, a network performance comparison report of the IPv4 access address and the IPv6 access address is generated.
[0078] Among them, the statistics of users' test results on the same business website summarize all performance indicator data obtained by users from multiple tests on the same business website, and then extract the average value of the test, eliminate accidental fluctuations, and obtain more representative performance indicators; the network performance comparison report is based on the analysis and presentation of the average performance indicators of IPv4 and IPv6 tests, which can be used to show the advantages and disadvantages of the two in the form of charts to help formulate network optimization and upgrade plans.
[0079] In this embodiment, the log server collects the results of different tests of users on the same business website, and then calculates the average performance indicators of each website in IPv4 and IPv6 environments. These average values are then used as a basis for comparison to generate a detailed network performance comparison report, including a difference analysis of various indicators, which can reflect the actual performance differences between IPv4 and IPv6 network environments.
[0080] In an exemplary embodiment, recording the response time of the website to be tested includes:
[0081] Record the start and end timestamps of accessing the website to be tested; and get the response time based on the start and end timestamps.
[0082] Among them, the start timestamp is the time point when the user starts to access the website to be tested, usually expressed in milliseconds or seconds, which is used to mark the start time of the test request and calculate the waiting time and response time; the end timestamp is the system time point when the user's request to access the website to be tested is completed, also expressed in milliseconds or seconds, which is used to mark the end time point of the test request and accurately measure the response time; the response time is the total time from issuing a request to receiving a response, and the response time is the difference between the end timestamp and the start timestamp.
[0083] In this embodiment, when conducting a network performance test, the measurement script records the start timestamp before the request is issued, and the end timestamp after the request is completed, thereby obtaining the response time of each test for subsequent statistical analysis. This can be used to evaluate service performance under different network environments or configurations, diagnose network failures, and optimize web page loading speed.
[0084] In one embodiment, the measurement script runs asynchronously in the client.
[0085] Among them, asynchronous operation means that the measurement script executes tasks without blocking the main program flow. Therefore, the measurement script can perform multiple tests or requests simultaneously in the background without affecting the normal interactive experience of the page or application, ensuring that the network performance measurement process collects data in real time, efficiently and continuously without interfering with user operations.
[0086] This application provides a network performance measurement method. In order to better understand the process of the above network performance measurement method, combined with Figure 3 As shown, the following describes in detail a specific process of the network performance measurement method of the present application, including the following steps:
[0087] Step S302: The user's browser accesses the homepage of the operator's portal website.
[0088] Among them, the website homepage is pre-embedded with a script loading mechanism for network performance measurement.
[0089] Step S304: When the user's browser loads the operator's portal website homepage, the homepage will automatically and asynchronously download the script from the measurement server.
[0090] The Script contains code logic for measuring network performance. After the Script is loaded, it will automatically initialize and randomly generate a unique identification ID for each user to distinguish the measurement data of different users.
[0091] Step S306: The script generates corresponding IPv4 and IPv6 dual-stack domain names according to the preset business website list, and sends HTTP access requests to the IPv4 address and IPv6 address respectively.
[0092] The website list may be www.qq.com. For www.qq.com, its IPv4 and IPv6 access addresses will be generated. Before the Script script sends HTTP requests to the IPv4 address and IPv6 address respectively, the Script script will record the current timestamp startTime (start timestamp) as the time mark of the start of the access.
[0093] Step S308: The script calculates the response time.
[0094] When the browser receives a response from the business website, such as HTTP status code 200, the script triggers the calculation of the response time. The specific steps may be: recording the current timestamp endTime (end timestamp); calculating the access delay, where the calculation formula for the access delay is: delay (access delay) = endTime (end timestamp) - startTime (start timestamp).
[0095] Step S310: Send the calculated access delay together with the user's unique ID, the visited website address, the protocol type and other information to the log server for storage.
[0096] The access delay includes the access delay of IPv4 and / or IPv6; and the protocol type includes IPv4 and / or IPv6.
[0097] Furthermore, the script can loop through multiple websites, such as www.qq.com and www.baidu.com, based on a preset list of service websites, and measure the IPv4 and / or IPv6 access latency for each website. Furthermore, the results of each access are recorded and sent to a log server for subsequent statistical analysis. The log server can periodically receive measurement data from user browsers and perform statistical analysis on multiple visits by the same user to the same website, calculating the average latency for IPv4 and / or IPv6 accesses. Ultimately, it generates an IPv4 and / or IPv6 network performance comparison report, providing operators with a reference for network performance optimization.
[0098] In addition, the script runs asynchronously in the browser and will not block the user's normal browsing of the web page, ensuring that the user experience is not affected. And because the script is designed to be lightweight, it occupies very few running resources and will not have a significant impact on the user's device performance.
[0099] In the above embodiment, by simulating the process of broadband users accessing business websites, end-to-end access delay data is collected, so that the user's actual network usage experience can be more realistically and accurately reflected. In addition, the system operation occupies few resources and can automatically run asynchronously in the browser without human intervention. It has high practicality and convenience and can effectively meet the needs of network performance monitoring and evaluation.
[0100] Furthermore, in one embodiment, Figure 4 As shown, it includes parameters User_id (user identifier), T-v4 (delay when accessing the business website homepage via IPv4), T-v6 (delay when accessing the business website homepage via IPv6), Web_id (business website address), and DateTime (delay). Among them, Web_id includes 1, 2, 3,... N users access the main webpage of the operator's portal website through a browser. At the same time, the main webpage downloads a Script script, calls the Script script and generates test access addresses of N business websites (websites to be tested), including IPv4 access addresses and / or IPv6 access addresses. The log website (log server) obtains and records the log records of the website to be tested (the website address of the website to be tested, the test access address and the corresponding test results), and generates a statistical report after further statistical analysis to measure network performance.
[0101] In an exemplary embodiment, Figure 5 As shown, the process of embedding a script into an operator's portal website includes Ad Placement, Script Control, Experiment, Results, and Processing. Ad Placement may include browser-controlled movement of the embedded ad location, and fixed-line clients support ad embedding. Script Control may include the execution of a script control task and randomly assigning a unique ID to the task. Experimental tasks may include task name resolution and web resolution to record task completion time. Results may include statistical task results within a timing period. Processing may include collecting task results and capturing and analyzing server-side data.
[0102] Furthermore, in one embodiment, Figure 6As shown, a user's browser accesses the operator's portal website. The measurement server downloads a script, triggering the script to run. The script calculates and generates IPv4 and IPv6 dual-stack domain names, records the start timestamp startTime, and initiates access to N application websites (business websites). If the access is successful, a success status code is received, triggering the calculation of the access time. The average access latency is calculated using the start timestamp startTime and the end timestamp endTime. The user's IPv4 access address and IPv6 access address are also obtained. The script downloads an advertisement on the measurement server using the obtained user IP address and generates a log file. The log file is then parsed to extract feature information (such as datetime, user ID, user type, IPv4 address, IPv6 address, and domain name). The obtained IP address is then matched with the operator's address database. If the IP address is in the operator's address database, it is determined whether it is a mobile network URL. If so, the IP address is recorded as a 4G or 5G user. If not, the IP address query interface is called to record the province, prefecture, and city where the IP address is located, corresponding to a fixed network user. Finally, the above data is written to a local file for statistical analysis.
[0103] In one embodiment, Figure 7 As shown, this is a log data record format, which includes, in sequence, serial number, date and time, user address, user type, user source IPv4 address / port, user source IPv4 address / port, web page address, delay in accessing the website homepage via IPv4, and delay in accessing the website homepage via IPv6; among them, user types include fixed-line broadband users and mobile broadband users.
[0104] In an exemplary embodiment, Figure 8 The figure shows a sample log file, including marked IPv4, IPv6, IPv4-only (supports only IPv4), IPv6-only (supports only IPv6), User_id, Datetime, and Dual Stack (supports both IPv4 and IPv6).
[0105] Through the above embodiment, it is possible to initiate access services from the user's application client, collect end-to-end access delays, and design and execute overall solutions and scripts. The operator's portal website is accessed through the user's browser. When the homepage runs in the browser, the script is activated and downloaded from the measurement server, including the design and programming of the script. At the same time, the portal website distributes N application websites, and the script controls the cyclic access to the N application websites. The script runs asynchronously in the browser, and based on the behavior of a large number of terminal users, the network performance using the IPv4 protocol or the IPv6 protocol is measured. The end-to-end network performance at the prefecture-level city level can be measured, making the measurement results more accurate.
[0106] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0107] Based on the same inventive concept, embodiments of the present application further provide a network performance measurement device for implementing the aforementioned network performance measurement method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations in one or more embodiments of the network performance measurement device provided below can be found in the above-mentioned limitations on the network performance measurement method and will not be further elaborated here.
[0108] In an exemplary embodiment, Figure 9 As shown, a network performance measurement device is provided, including: a script acquisition module 901, a script calling module 902, an address generation module 903, a result recording module 904 and a result sending module 905, wherein:
[0109] The script acquisition module 901 is configured to download a measurement script in response to a network performance measurement instruction triggered by a user on the client.
[0110] The script calling module 902 is used to call the measurement script and perform the following steps:
[0111] The address generation module 903 is used to generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address.
[0112] The result recording module 904 is used to send an access request to the test access address and record the test result of the website to be tested.
[0113] The result sending module 905 is used to send the website address of the website to be tested, the test access address and the corresponding test result to the log server, so that the log server can perform network performance measurement based on the test access address.
[0114] Furthermore, in one embodiment, the result sending module 905 is further configured to generate a user ID of the user through a measurement script; and send the user ID, the website address of the website to be tested, the test access address and the corresponding test result to the log server.
[0115] Furthermore, in one embodiment, the result sending module 905 is further configured to call a measurement script, cyclically access each business website in the business website list, obtain a test result of the user accessing each business website, and send the test result of each business website to the log server.
[0116] Furthermore, in one embodiment, the result recording module 904 is further configured to record a start timestamp and an end timestamp of accessing the website to be tested; and obtain a response time based on the start timestamp and the end timestamp.
[0117] Each module in the aforementioned network performance measurement device may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0118] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 10As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store network performance measurement data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a network performance measurement method is implemented.
[0119] Those skilled in the art will understand that Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0120] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0121] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0122] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0123] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0124] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0125] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0126] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A network performance measurement method, characterized in that: The method comprises: In response to a network performance measurement instruction triggered by a user on a client, download a measurement script; Call the measurement script and perform the following steps: Generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address; Sending an access request to the test access address and recording the test result of the website to be tested; The website address of the website to be tested, the test access address and the corresponding test result are sent to a log server, so that the log server performs network performance measurement based on the test access address.
2. The method according to claim 1, characterized in that The method further comprises: generating a user ID of the user through the measurement script; The user identification, the website address of the website to be tested, the test access address and the corresponding test result are sent to the log server.
3. The method according to claim 2, characterized in that The website to be tested is any one in a preset business website list; the method further includes: Calling the measurement script to cyclically access each business website in the business website list to obtain a test result of the user accessing each business website; Send the test results of each business website to the log server.
4. The method according to claim 3, characterized in that The log server is further used to collect statistics on the test results of the user on the same business website to obtain an average value of the test results; Based on the average test results of each business website under the IPv4 access address and the average test results under the IPv6 access address, a network performance comparison report for the IPv4 access address and the IPv6 access address is generated.
5. The method according to claim 1, wherein The recording of the response time of the website to be tested includes: Record the start and end timestamps of accessing the website to be tested; The response time is obtained based on the start timestamp and the end timestamp.
6. The method according to claim 1, characterized in that The measurement script runs asynchronously in the client.
7. A network performance measurement device, characterized in that: The device comprises: A script acquisition module, configured to download a measurement script in response to a network performance measurement instruction triggered by a user on a client; The script calling module is used to call the measurement script and perform the following steps: An address generation module is used to generate a test access address of the website to be tested according to the address information of the website to be tested; the test access address includes an IPv4 access address and / or an IPv6 access address; A result recording module is used to send an access request to the test access address and record the test result of the website to be tested; The result sending module is used to send the website address of the website to be tested, the test access address and the corresponding test result to the log server, so that the log server can perform network performance measurement based on the test access address.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Website statistical analysis method, device and equipment and storage medium
CN121580444A