Method and device for determining aggregated probing indicators, computer device and storage medium

By determining the frequency of network testing tasks and performing latency compensation in a distributed cloud testing system, the problem of low timing accuracy of network testing indicators in traditional methods is solved, achieving higher timing accuracy and stability of network performance monitoring.

CN119484333BActive Publication Date: 2026-01-13CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411659626.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2026-01-13
Estimated Expiration
2044-11-20

AI Technical Summary

Technical Problem

Traditional metric aggregation methods suffer from low time-series accuracy of network testing metrics when faced with constantly changing testing task configurations and dynamically evolving aggregations.

Method used

By determining the testing frequency corresponding to the testing task, aggregated testing indicators are obtained from the time series database, and the timestamps in the aggregated testing indicators are compensated for latency based on the compensation time amount, so as to ensure that the frequency of the aggregated testing indicators is consistent with the frequency of the testing task and reduce latency.

Benefits of technology

It improves the timing accuracy of network dialing test indicators, ensures the timestamp accuracy of aggregated dialing test indicators, and enhances the stability and reliability of network performance monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484333B_ABST
    Figure CN119484333B_ABST
Patent Text Reader

Abstract

The application relates to a method and device for determining a polymerization stress test index, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: determining a stress test frequency corresponding to a stress test task according to the stress test task; acquiring a polymerization stress test index corresponding to the stress test task from a time sequence database according to the stress test frequency; acquiring a compensation time amount corresponding to the polymerization stress test index for each acquired polymerization stress test index, and performing time delay compensation on a stress test timestamp in the polymerization stress test index according to the compensation time amount to obtain a time delay compensated polymerization stress test index. The method can improve the time sequence accuracy of a network stress test index.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network monitoring, and in particular to a method and device for determining aggregated probing indicators, a computer device, a computer readable storage medium, and a computer program product. BACKGROUND

[0002] With the rapid development of cloud computing technology, distributed cloud probing systems have become an important tool for network performance monitoring and troubleshooting. Distributed cloud probing systems can monitor the quality of network connections, delays and other key indicators in real time by deploying multiple nodes worldwide, providing users with comprehensive performance data and fault diagnosis support.

[0003] In the current cloud computing environment, distributed cloud probing systems need to perform dynamic indicator aggregation calculations in real time according to changes in probing tasks to ensure their stability and reliability.

[0004] However, traditional indicator aggregation methods have the problem of low timing accuracy of network probing indicators when facing probing task configurations that may change at any time and dynamic aggregation. SUMMARY

[0005] Therefore, it is necessary to provide a method and device for determining aggregated probing indicators that can improve the timing accuracy of network probing indicators, a computer device, a computer readable storage medium, and a computer program product.

[0006] In a first aspect, the present application provides a method for determining aggregated probing indicators. The method comprises:

[0007] determining a probing frequency corresponding to the probing task according to the probing task;

[0008] obtaining an aggregated probing indicator corresponding to the probing task from a time series database according to the probing frequency;

[0009] For each obtained aggregated probing indicator, obtaining a compensation time amount corresponding to the aggregated probing indicator, and performing time delay compensation on an aggregated probing timestamp in the aggregated probing indicator according to the compensation time amount to obtain a time delay compensated aggregated probing indicator.

[0010] In one embodiment, the method for determining aggregated probing indicators comprises:

[0011] In the case where the aggregated probing indicator is obtained from the time series database for the first time, the compensation time amount is determined to be zero;

[0012] In a case where the aggregated probing index is obtained from the time series database for the first time, the compensation time amount is determined according to a historical probing timestamp corresponding to a last time delay compensation process and a historical aggregated probing timestamp after time delay compensation.

[0013] In one of the embodiments, the determination of the compensation time amount according to the historical probing timestamp corresponding to the last time delay compensation process and the historical aggregated probing timestamp after time delay compensation comprises:

[0014] determining a time difference between the historical probing timestamp and the historical aggregated probing timestamp;

[0015] determining the compensation time amount according to the time difference and a time difference threshold corresponding to the probing task, wherein the time difference threshold corresponding to different probing tasks is different.

[0016] In one of the embodiments, the determination of the compensation time amount according to the time difference and the time difference threshold corresponding to the probing task comprises:

[0017] if the time difference is greater than the time difference threshold, the time difference is determined as the compensation time amount;

[0018] if the time difference is less than or equal to the time difference threshold, a historical compensation time amount corresponding to the historical probing timestamp and the historical aggregated probing timestamp is determined as the compensation time amount.

[0019] In one of the embodiments, the probing task further comprises a task identifier, and the obtaining of the aggregated probing index corresponding to the probing task from the time series database according to the probing frequency comprises:

[0020] generating a probing query statement according to the task identifier and the probing frequency;

[0021] generating a query instruction according to the probing query statement, and querying the aggregated probing index in the time series database according to the query instruction.

[0022] In one of the embodiments, the method further comprises:

[0023] obtaining full task configuration information from a task database and obtaining incremental task configuration information from the task database, wherein the obtaining frequency of the full task configuration information is greater than the obtaining frequency of the incremental task configuration information;

[0024] determining configuration information of the probing task according to the full task configuration information and the incremental task configuration information, wherein the configuration information comprises the task identifier and the probing frequency.

[0025] In a second aspect, the present application also provides a determination device of aggregated stress testing indicators. The device comprises:

[0026] a first determination module configured to determine, according to a stress testing task, a stress testing frequency corresponding to the stress testing task;

[0027] a first acquisition module configured to acquire, according to the stress testing frequency, an aggregated stress testing indicator corresponding to the stress testing task from a time series database;

[0028] a time delay compensation module configured to acquire, for each acquired aggregated stress testing indicator, a compensation time amount corresponding to the aggregated stress testing indicator, and to perform time delay compensation on an aggregated stress testing timestamp in the aggregated stress testing indicator according to the compensation time amount, to obtain a time delay compensated aggregated stress testing indicator.

[0029] In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method in the first aspect when executing the computer program.

[0030] In a fourth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program implements the steps of the method in the first aspect when executed by a processor.

[0031] In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program, and the computer program implements the steps of the method in the first aspect when executed by a processor.

[0032] The determination method, device, computer device, storage medium and computer program product of the aggregated stress testing indicators, the aggregation server determines the stress testing frequency corresponding to the stress testing task according to the stress testing task, then acquires the aggregated stress testing indicator corresponding to the stress testing task from the time series database according to the stress testing frequency, and then acquires the compensation time amount corresponding to the aggregated stress testing indicator for each acquired aggregated stress testing indicator, and performs time delay compensation on the aggregated stress testing timestamp in the aggregated stress testing indicator according to the compensation time amount, to obtain the time delay compensated aggregated stress testing indicator. Since the aggregation server can first acquire the stress testing frequency according to the stress testing task, and acquire the aggregated stress testing indicator according to the stress testing frequency, the frequency of acquiring the aggregated stress testing indicator can be consistent with the frequency of the stress testing task, so as to reduce the time delay of the acquired aggregated stress testing indicator due to the failure to update the frequency of the stress testing task in time, so as to improve the accuracy of the aggregated stress testing timestamp in the aggregated stress testing indicator, and further improve the time sequence accuracy of the network stress testing indicators. BRIEF DESCRIPTION OF DRAWINGS

[0033] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0034] Figure 1 This is an application environment diagram of the method for determining aggregated measurement indicators in one embodiment;

[0035] Figure 2 This is a flowchart illustrating a method for determining aggregated testing indicators in one embodiment;

[0036] Figure 3 This is a flowchart illustrating the method for determining aggregated measurement indicators in another embodiment;

[0037] Figure 4 This is a flowchart illustrating step 202 in another embodiment;

[0038] Figure 5 This is a flowchart illustrating the method for determining aggregated measurement indicators in another embodiment;

[0039] Figure 6 This is a flowchart illustrating the method for determining aggregated measurement indicators in another embodiment;

[0040] Figure 7 This is a structural block diagram of a device for determining aggregate measurement indicators in one embodiment;

[0041] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] Typically, in scenarios where network performance testing is performed using a distributed cloud testing system, the testing server in the system, after acquiring testing data from the target site, sends the data to a database. This allows the aggregation server to retrieve the data from the database and aggregate the various test data sets to obtain aggregated testing data. However, due to changes in the testing tasks, after the testing server acquires the testing data and forwards it to the database, the aggregation server cannot dynamically update the aggregation rules based on the changes in the testing task parameters. This can lead to latency issues in the aggregated testing data, resulting in inaccurate timing of network testing metrics. For example, if the testing data for a certain target site is delayed compared to other sites, but the delay of one target site has a relatively small impact on the aggregated testing data, the aggregation server will not be able to reflect the latency issue in a timely manner if it cannot dynamically update the aggregation rules based on changes in the testing task parameters. Therefore, this application proposes a method for determining aggregated testing metrics to improve the accuracy of the timing of network testing metrics.

[0044] The method for determining aggregated testing indicators provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, aggregation server 102 communicates with testing server 104 via a network, and testing server 104 communicates with target site 106 via a network. A first data storage system can store the data that aggregation server 102 needs to process. This first data storage system can be integrated onto aggregation server 102 or placed on a cloud or other network server. A second data storage system can store the data that testing server 104 needs to process. This second data storage system can be integrated onto testing server 104 or placed on a cloud or other network server. Aggregation server 102 determines the testing frequency corresponding to the testing task based on the testing task. Then, according to the testing frequency, it retrieves the aggregation testing index corresponding to the testing task from the time-series database. For each retrieved aggregation testing index, it obtains the compensation time amount corresponding to the aggregation testing index and performs latency compensation on the testing timestamp in the aggregation testing index based on the compensation time amount to obtain the latency-compensated aggregation testing index. Aggregation server 102 can be implemented using a standalone server or a server cluster composed of multiple servers, and testing server 104 can also be implemented using a standalone server or a server cluster composed of multiple servers.

[0045] In one exemplary embodiment, such as Figure 2 As shown, a method for determining aggregated measurement indicators is provided, and this method is applied to... Figure 1 Taking the aggregation server in the example, the following steps are included:

[0046] Step 201: Determine the dialing frequency corresponding to the dialing task based on the dialing task.

[0047] The "testing task" refers to the task of monitoring the operational status of multiple deployed target sites using a testing server. The testing frequency refers to the frequency at which the testing server acquires the operational status of the target sites per unit of time. For example, the testing frequency can be 5 seconds, 1 minute, 5 minutes, etc. The testing frequency can be set according to the needs of the monitoring target and the detection purpose; this embodiment does not impose any restrictions on this.

[0048] In this embodiment, the aggregation server can obtain the latest testing tasks from the task database, and then obtain the testing frequency from the configuration information of the latest testing tasks.

[0049] Step 202: According to the testing frequency, obtain the aggregated testing metrics corresponding to the testing tasks from the time series database.

[0050] The time-series database stores the test data corresponding to each time point in the test mission. It's important to note that the test data in the time-series database is sent by the test server. The test server executes test missions, periodically acquires the target site's operational status according to the test frequency, and then encapsulates and sends the acquired operational status data to the time-series database.

[0051] Aggregated testing metrics refer to the testing metrics obtained by aggregating testing metrics sent by multiple testing servers. It can be understood that the frequency at which the aggregation server obtains aggregated testing metrics is the same as the frequency at which the testing server obtains the target site's operational status.

[0052] In this embodiment, the aggregation server can periodically obtain the aggregated testing metrics corresponding to the testing tasks from the time-series database according to the testing frequency.

[0053] It's important to note that a time-series database is a database that can have a built-in query engine to provide data query functionality to external systems. Therefore, an aggregation server can send query commands to the time-series database, which then responds by using its query engine to retrieve the corresponding data and returns it to the aggregation server.

[0054] The following describes the process by which the test server obtains the operating status of the target site and sends it to the time-series database:

[0055] a. The test server sends network test packets to multiple target sites according to the test frequency and receives multiple test response packets;

[0056] b. The test server analyzes the test response packets to obtain the test response time, packet loss rate, and test status code corresponding to each test response packet. The test response time, packet loss rate, and test status code corresponding to each test response packet are then encapsulated to obtain the raw test metrics.

[0057] c. The test server sends the raw test metrics to the time series database.

[0058] Step 203: For each aggregated testing index obtained, obtain the compensation time amount corresponding to the aggregated testing index, and perform time delay compensation on the testing timestamp in the aggregated testing index according to the compensation time amount to obtain the time delay compensated aggregated testing index.

[0059] It should be noted that due to the time delay between aggregated testing metrics and original testing metrics, latency compensation is required for the aggregated testing timestamps in the aggregated testing metrics. The aggregated testing timestamp refers to the time information corresponding to the aggregated testing metric; for example, the aggregated testing timestamp could be January 1, 2024, 12:00:00. The compensation time amount refers to the time difference between the aggregated testing metric and the original testing metric. It is understandable that the aggregated testing server can obtain multiple aggregated testing metrics from the time-series database based on the testing frequency, thus requiring latency compensation for each aggregated testing metric.

[0060] In this embodiment, for a single aggregated testing metric, the aggregation server can obtain the compensation time amount for the previous aggregated testing metric for the same testing task, and then use this compensation time amount as a reference value to determine the compensation time amount for the current aggregated testing timestamp in the aggregated testing metric. Then, the determined compensation time amount is used to perform latency compensation to obtain the latency-compensated aggregated testing metric.

[0061] As one possible implementation, the aggregation server can sum the compensation time amount and the aggregation test timestamp, then use the sum to replace the aggregation test timestamp in the aggregation test index, and then use the replaced aggregation test timestamp and test value as the aggregation test index after latency compensation.

[0062] In the above method for determining aggregated testing metrics, the aggregation server determines the testing frequency corresponding to the testing task based on the testing task. Then, according to the testing frequency, it retrieves the aggregated testing metrics corresponding to the testing task from the time-series database. Subsequently, for each retrieved aggregated testing metric, it obtains the compensation time amount corresponding to the aggregated testing metric and performs latency compensation on the aggregated testing timestamp in the aggregated testing metric based on the compensation time amount to obtain the latency-compensated aggregated testing metric. Since the aggregation server can first obtain the testing frequency based on the testing task and then obtain the aggregated testing metric based on the testing frequency, the frequency of obtaining the aggregated testing metric can be kept consistent with the frequency of the testing task. This reduces the latency of the obtained aggregated testing metric due to the failure to update the frequency of the testing task in a timely manner. By using the compensation time amount to perform latency compensation on the aggregated testing timestamp in the aggregated testing metric, the accuracy of the aggregated testing timestamp in the aggregated testing metric can be improved, thereby improving the time-series accuracy of the network testing metrics.

[0063] In an exemplary embodiment, in the scenario described above where latency compensation is applied to the timestamps in the aggregated testing metrics based on the compensation time amount to obtain the latency-compensated aggregated testing metrics, the aggregated testing metrics may be obtained from the time-series database for the first time or may not be obtained from the time-series database for the first time. The determination process of the compensation time amount is described below for these two cases respectively:

[0064] The first approach is to determine the compensation time as zero when the aggregated measurement index is obtained from the time series database for the first time.

[0065] It is understandable that when the aggregation server obtains the first aggregation testing indicator based on the testing frequency and performs latency compensation on that aggregation testing indicator, since there is no previous aggregation testing indicator, it is impossible to use the compensation time of the previous latency compensation process as a reference value to perform latency compensation on the aggregation testing timestamp in the first aggregation testing indicator.

[0066] In this embodiment, when the aggregation server first obtains the aggregation test index from the time series database, it can set the compensation time amount to zero.

[0067] The second approach involves determining the compensation time based on the historical test timestamp corresponding to the previous latency compensation process and the historical aggregated test timestamp after latency compensation, when the aggregated test index is not obtained from the time-series database for the first time.

[0068] It is understandable that during the process of obtaining aggregated testing metrics, the aggregation server can obtain aggregated testing metrics from the time-series database multiple times according to the testing frequency. In this embodiment, the acquisition processes other than the first acquisition process can be regarded as non-first acquisition processes.

[0069] Among them, the historical test timestamp refers to the time information in the original test indicators stored in the time series database during the last acquisition of aggregate test indicators, the historical aggregate test timestamp refers to the time information in the aggregate test indicators returned by the time series database to the aggregation server during the last acquisition of aggregate test indicators, and the historical aggregate test timestamp after latency compensation refers to the time information obtained after latency compensation of the aggregate test timestamp in the last acquired aggregate test indicators.

[0070] In this embodiment, when the aggregation test index is not obtained from the time series database for the first time, the aggregation server can obtain the historical test timestamp corresponding to the previous latency compensation process and the historical aggregation test timestamp after latency compensation, and then determine the difference between the historical test timestamp and the historical aggregation test timestamp after latency compensation as the compensation time amount.

[0071] In this embodiment, when the aggregation test index is obtained from the time-series database for the first time, the aggregation server can determine that the compensation time is zero. When the aggregation test index is not obtained from the time-series database for the first time, the server can determine the compensation time based on the historical test timestamp corresponding to the previous latency compensation process and the historical aggregation test timestamp after latency compensation. Since the historical test timestamp corresponding to the previous latency compensation process and the historical aggregation test timestamp after latency compensation are historical information, the historical test timestamp and the historical aggregation test timestamp can be obtained quickly, thereby quickly obtaining the compensation time. In addition, based on the historical test timestamp and the historical aggregation test timestamp after each latency compensation, the compensation time can be determined iteratively, thereby iteratively improving the accuracy of the determined compensation time.

[0072] The following describes in detail the specific process of determining the compensation time amount based on the historical dialing timestamp corresponding to the previous delay compensation process and the historical aggregated dialing timestamp after delay compensation. In an exemplary embodiment, such as Figure 3 As shown, the process may include:

[0073] Step 301: Determine the time difference between the historical dialing timestamp and the historical aggregated dialing timestamp.

[0074] It is understandable that the aggregated testing metrics are obtained by aggregating the original testing metrics corresponding to the testing frequency after the time-series database receives the query command sent by the aggregation server. Therefore, the aggregated testing timestamp in the aggregated testing metrics may be later than the historical testing timestamp in the original testing metrics.

[0075] In this embodiment, the aggregation server can determine the time difference by subtracting the historical test timestamp from the historical aggregate test timestamp.

[0076] Step 302: Determine the amount of compensation time based on the time difference value and the time difference threshold corresponding to the testing task. The time difference threshold is different for different testing tasks.

[0077] The time difference threshold refers to the minimum time difference between the historical test timestamp and the historical aggregated test timestamp. In this embodiment, the time difference threshold can be determined according to the test requirements of the test task. For example, if the test requirement is low latency and high reliability, the smaller the time difference threshold, the better.

[0078] In this embodiment, the effect of the previous delay compensation can be evaluated by using a time difference threshold. For example, if the time difference value is greater than the time difference threshold, it can be determined that the effect of the previous delay compensation was poor. If the time difference value is less than or equal to the time difference threshold, it can be determined that the effect of the previous delay compensation was poor.

[0079] Optionally, if the time difference is greater than the time difference threshold, the time difference is determined as the compensation time amount.

[0080] In this embodiment, if the time difference is greater than the time difference threshold, the aggregation server can determine that the historical aggregation test timestamp after the last delay compensation still has a large delay. Therefore, the time difference is determined as the amount of compensation time.

[0081] Optionally, if the time difference is less than or equal to the time difference threshold, the historical compensation time corresponding to the historical test timestamp and the historical aggregate test timestamp is determined as the compensation time.

[0082] In this embodiment, if the time difference is less than or equal to the time difference threshold, the aggregation server can determine that the latency of the historical aggregation test timestamp after the last latency compensation is small. Therefore, the historical compensation time amount corresponding to the historical test timestamp and the historical aggregation test timestamp can be determined as the compensation time amount.

[0083] In this embodiment, the aggregation server determines the time difference between the historical test timestamp and the historical aggregated test timestamp. Based on the time difference and the time difference threshold corresponding to the test task, it can determine the amount of compensation time. Different test tasks correspond to different time difference thresholds. Thus, for different test tasks, it can determine whether the aggregated test timestamp after the last latency compensation meets the latency compensation requirements based on the corresponding time difference threshold, thereby satisfying the latency compensation requirements of different test tasks.

[0084] In the scenario described above, where aggregated testing metrics corresponding to testing tasks are obtained from a time-series database according to the testing frequency, the aggregation server can obtain the aggregated testing metrics by sending a query command to the time-series database. In an exemplary embodiment, the testing task also includes a task identifier, such as... Figure 4As shown, step 202 above includes:

[0085] Step 401: Generate a dial-up query statement based on the task identifier and dial-up frequency.

[0086] The task identifier is a unique identifier for each testing task. It is understood that the aggregation server can periodically obtain aggregated testing metrics based on the testing frequency. Therefore, in this embodiment, the aggregation server can generate a testing query statement containing the task identifier and corresponding to the testing frequency, thereby obtaining aggregated testing metrics from the time-series database using the testing query statement based on the testing frequency.

[0087] For example, the test query statement can be in the PromQL language. PromQL is a built-in data query language of Prometheus, an open-source service monitoring system and time series database, which can be used to query and aggregate time series data.

[0088] Step 402: Generate a query instruction based on the dial-up query statement, and retrieve the aggregated dial-up metrics from the time-series database based on the query instruction.

[0089] In this embodiment, the aggregation server can generate a corresponding query instruction based on the dial-up query statement, and then send the query instruction to the computer device where the time series database is located via the network according to the dial-up frequency corresponding to the query instruction. In response to the query instruction, the computer device uses the query engine built into the time series database to obtain multiple original dial-up indicators corresponding to the dial-up identifier, aggregates the multiple original dial-up indicators to obtain aggregated dial-up indicators, and returns the aggregated dial-up indicators to the aggregation server.

[0090] In this embodiment, the aggregation server generates a dial-up query statement based on the task identifier and dial-up frequency. It can generate a query instruction based on the dial-up query statement and retrieve aggregated dial-up metrics from the time-series database based on the query instruction. Since the time-series database stores the original dial-up metrics corresponding to the task identifier and dial-up frequency of the dial-up task, and can aggregate the original dial-up metrics based on the query instruction to obtain aggregated dial-up metrics, the aggregation server can quickly obtain aggregated dial-up metrics.

[0091] In the scenario described above, where the testing frequency corresponding to a testing task is determined based on the testing task, the aggregation server can determine the task configuration information of the testing task by obtaining full task configuration information and incremental task configuration information from the task database. In an exemplary embodiment, such as... Figure 5 As shown, the above method also includes:

[0092] Step 501: Obtain full task configuration information from the task database and obtain incremental task configuration information from the task database. The frequency of obtaining full task configuration information is greater than the frequency of obtaining incremental task configuration information.

[0093] The task database stores configuration information for probing tasks. Full task configuration information refers to all task configurations in the database, while incremental task configuration information refers to newly created, modified, or deleted task configurations within a short timeframe. It's important to note that to determine the latest task configuration for a probing task based on both full and incremental configuration information, the most recent modification information from the task database needs to be retrieved. Therefore, the retrieval frequency for incremental task configuration information can be set to be less than the retrieval frequency for full task configuration information; for example, the retrieval frequency for full task configuration information could be 24 hours, while the retrieval frequency for incremental task configuration information could be 1 hour.

[0094] In this embodiment, the aggregation server can send a full task configuration information retrieval instruction to the task database at a first retrieval frequency, thereby receiving the full task configuration information returned by the task database, and then send an incremental task configuration information retrieval instruction to the task database at a second frequency less than the first retrieval frequency, thereby receiving the incremental task configuration information returned by the task database.

[0095] Step 502: Based on the full task configuration information and the incremental task configuration information, determine the configuration information of the testing task. The configuration information includes the task identifier and the testing frequency.

[0096] It is understandable that by combining incremental task configuration information with full task configuration information, the latest task configuration information can be obtained.

[0097] In this embodiment, the aggregation server can update the full task configuration information based on the incremental task configuration information, thereby determining the updated task configuration information as the configuration information for the testing task. Furthermore, the task identifier and testing frequency can be obtained from the testing task configuration information, so that the aggregation server can generate a testing query statement based on the task identifier and testing frequency, and then use the query statement to obtain the aggregated testing index from the time series database.

[0098] In this embodiment, the aggregation server obtains full task configuration information and incremental task configuration information from the task database. The acquisition frequency of full task configuration information is greater than that of incremental task configuration information, which enables timely acquisition of test task update information. Then, based on the full task configuration information and incremental task configuration information, the configuration information of the test task is determined. The configuration information includes task identifier and test frequency, thereby enabling timely acquisition of corresponding aggregated test indicators from the time series database according to the test frequency, reducing the latency of aggregated test indicators.

[0099] For ease of understanding by those skilled in the art, such as Figure 6 As shown below, the method for determining the aggregated measurement index provided in this application will be described in detail. This method may include:

[0100] Step 601: Obtain full task configuration information from the task database and obtain incremental task configuration information from the task database. The frequency of obtaining full task configuration information is greater than the frequency of obtaining incremental task configuration information.

[0101] Step 602: Based on the full task configuration information and the incremental task configuration information, determine the configuration information of the testing task. The configuration information includes the task identifier and the testing frequency.

[0102] Step 603: Determine the dialing frequency corresponding to the dialing task based on the configuration information of the dialing task.

[0103] Step 604: Generate a dial-up query statement based on the task identifier and dial-up frequency.

[0104] Step 605: Generate a query instruction based on the dial-up query statement, and retrieve the aggregated dial-up metrics from the time-series database based on the query instruction.

[0105] Step 606: For each aggregated test metric obtained, if the aggregated test metric is obtained from the time series database for the first time, determine that the compensation time is zero.

[0106] Step 607: For each aggregated testing metric obtained, if the aggregated testing metric is not obtained from the time series database for the first time, determine the time difference between the historical testing timestamp and the historical aggregated testing timestamp.

[0107] Step 608: If the time difference is greater than the time difference threshold, then the time difference is determined as the compensation time amount.

[0108] Step 609: If the time difference is less than or equal to the time difference threshold, then the historical compensation time corresponding to the historical dialing timestamp and the historical aggregated dialing timestamp is determined as the compensation time.

[0109] Step 6010: Sum the aggregated test timestamp and the compensation time amount, and use the sum to replace the aggregated test timestamp in the aggregated test index.

[0110] Step 6011: The replaced aggregated test timestamp and aggregated test value are determined as the aggregated test indicators after delay compensation.

[0111] It should be noted that the descriptions of steps 601-6011 above can be found in the relevant descriptions in the above embodiments, and their effects are similar, so they will not be repeated here.

[0112] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0113] Based on the same inventive concept, this application also provides an apparatus for determining aggregated measurement indicators to implement the above-described method for determining aggregated measurement indicators. The solution provided by this apparatus is similar to the solution described in the above-described method. Therefore, the specific limitations of one or more embodiments of the apparatus for determining aggregated measurement indicators provided below can be found in the limitations of the method for determining aggregated measurement indicators described above, and will not be repeated here.

[0114] In one embodiment, such as Figure 7 As shown, a device for determining aggregated dialing indicators is provided, comprising: a first determining module 701, a first acquiring module 702, and a delay compensation module 703, wherein:

[0115] The first determining module 701 is used to determine the dialing frequency corresponding to the dialing task based on the dialing task.

[0116] The first acquisition module 702 is used to acquire the aggregated testing indicators corresponding to the testing tasks from the time series database according to the testing frequency.

[0117] The delay compensation module 703 is used to obtain the compensation time amount corresponding to each aggregated test index, and to perform delay compensation on the aggregated test timestamp in the aggregated test index according to the compensation time amount, so as to obtain the delay-compensated aggregated test index.

[0118] The apparatus for determining the aggregate measurement index provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0119] In one embodiment, the delay compensation module 703 includes:

[0120] The first determining unit is used to determine that the compensation time is zero when the aggregated measurement index is obtained from the time series database for the first time.

[0121] The second determining unit is used to determine the amount of compensation time based on the historical test timestamp corresponding to the previous delay compensation process and the historical aggregated test timestamp after delay compensation, when the aggregated test index is not obtained from the time series database for the first time.

[0122] The apparatus for determining the aggregate measurement index provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0123] In one embodiment, the second determining unit is specifically used for:

[0124] Determine the time difference between the historical test timestamp and the historical aggregated test timestamp;

[0125] The amount of compensation time is determined based on the time difference value and the time difference threshold corresponding to the testing task. The time difference threshold is different for different testing tasks.

[0126] The apparatus for determining the aggregate measurement index provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0127] In one embodiment, the second determining unit is specifically used for:

[0128] If the time difference is greater than the time difference threshold, then the time difference is determined as the compensation time amount;

[0129] If the time difference is less than or equal to the time difference threshold, then the historical compensation time corresponding to the historical test timestamp and the historical aggregated test timestamp is determined as the compensation time.

[0130] The apparatus for determining the aggregate measurement index provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0131] In one embodiment, the above-mentioned testing task further includes a task identifier, and the first acquisition module 702 includes:

[0132] The generation unit is used to generate a dialing query statement based on the task identifier and dialing frequency;

[0133] The acquisition unit is used to generate a query instruction based on the test query statement, and to retrieve the aggregated test indicators from the time series database according to the query instruction.

[0134] The apparatus for determining the aggregate measurement index provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0135] In one embodiment, the above-mentioned apparatus further includes:

[0136] The second acquisition module is used to acquire full task configuration information from the task database and incremental task configuration information from the task database. The acquisition frequency of full task configuration information is greater than that of incremental task configuration information.

[0137] The second determination module is used to determine the configuration information of the testing task based on the full task configuration information and the incremental task configuration information. The configuration information includes the task identifier and the testing frequency.

[0138] The apparatus for determining the aggregate measurement index provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0139] Each module in the aforementioned device for determining aggregated measurement indicators can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0140] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a timing database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The timing database stores test data. The I / O interfaces allow the processor to exchange information with external devices. The communication interface allows communication with external terminals via a network connection. When executed by the processor, the computer program implements a method for determining aggregated test data.

[0141] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0143] Determine the corresponding dialing frequency based on the dialing task;

[0144] Based on the testing frequency, retrieve the aggregated testing metrics corresponding to the testing tasks from the time-series database;

[0145] For each aggregated testing metric acquired, the corresponding compensation time amount is obtained, and the aggregated testing timestamp in the aggregated testing metric is compensated for delay based on the compensation time amount to obtain the aggregated testing metric after delay compensation.

[0146] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0147] When the aggregated test metrics are obtained from the time series database for the first time, the compensation time is determined to be zero.

[0148] When the aggregated testing metrics are not obtained from the time-series database for the first time, the compensation time amount is determined based on the historical testing timestamp corresponding to the previous latency compensation process and the historical aggregated testing timestamp after latency compensation.

[0149] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0150] Determine the time difference between the historical test timestamp and the historical aggregated test timestamp;

[0151] The amount of compensation time is determined based on the time difference value and the time difference threshold corresponding to the testing task. The time difference threshold is different for different testing tasks.

[0152] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0153] If the time difference is greater than the time difference threshold, then the time difference is determined as the compensation time amount;

[0154] If the time difference is less than or equal to the time difference threshold, then the historical compensation time corresponding to the historical test timestamp and the historical aggregated test timestamp is determined as the compensation time.

[0155] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0156] Generate a test query statement based on the task identifier and test frequency;

[0157] Generate a query instruction based on the test query statement, and retrieve aggregated test metrics from the time series database based on the query instruction.

[0158] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0159] Retrieve full task configuration information from the task database, and retrieve incremental task configuration information from the task database. The frequency of retrieving full task configuration information is greater than the frequency of retrieving incremental task configuration information.

[0160] Based on the full task configuration information and the incremental task configuration information, the configuration information of the testing task is determined. The configuration information includes the task identifier and the testing frequency.

[0161] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0162] Determine the corresponding dialing frequency based on the dialing task;

[0163] Based on the testing frequency, retrieve the aggregated testing metrics corresponding to the testing tasks from the time-series database;

[0164] For each aggregated testing metric acquired, the corresponding compensation time amount is obtained, and the aggregated testing timestamp in the aggregated testing metric is compensated for delay based on the compensation time amount to obtain the aggregated testing metric after delay compensation.

[0165] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0166] When the aggregated test metrics are obtained from the time series database for the first time, the compensation time is determined to be zero.

[0167] When the aggregated testing metrics are not obtained from the time-series database for the first time, the compensation time amount is determined based on the historical testing timestamp corresponding to the previous latency compensation process and the historical aggregated testing timestamp after latency compensation.

[0168] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0169] Determine the time difference between the historical test timestamp and the historical aggregated test timestamp;

[0170] The amount of compensation time is determined based on the time difference value and the time difference threshold corresponding to the testing task. The time difference threshold is different for different testing tasks.

[0171] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0172] If the time difference is greater than the time difference threshold, then the time difference is determined as the compensation time amount;

[0173] If the time difference is less than or equal to the time difference threshold, then the historical compensation time corresponding to the historical test timestamp and the historical aggregated test timestamp is determined as the compensation time.

[0174] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0175] Generate a test query statement based on the task identifier and test frequency;

[0176] Generate a query instruction based on the test query statement, and retrieve aggregated test metrics from the time series database based on the query instruction.

[0177] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0178] Retrieve full task configuration information from the task database, and retrieve incremental task configuration information from the task database. The frequency of retrieving full task configuration information is greater than the frequency of retrieving incremental task configuration information.

[0179] Based on the full task configuration information and the incremental task configuration information, the configuration information of the testing task is determined. The configuration information includes the task identifier and the testing frequency.

[0180] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0181] Determine the corresponding dialing frequency based on the dialing task;

[0182] Based on the testing frequency, retrieve the aggregated testing metrics corresponding to the testing tasks from the time-series database;

[0183] For each aggregated testing metric acquired, the corresponding compensation time amount is obtained, and the aggregated testing timestamp in the aggregated testing metric is compensated for delay based on the compensation time amount to obtain the aggregated testing metric after delay compensation.

[0184] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0185] When the aggregated test metrics are obtained from the time series database for the first time, the compensation time is determined to be zero.

[0186] When the aggregated testing metrics are not obtained from the time-series database for the first time, the compensation time amount is determined based on the historical testing timestamp corresponding to the previous latency compensation process and the historical aggregated testing timestamp after latency compensation.

[0187] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0188] Determine the time difference between the historical test timestamp and the historical aggregated test timestamp;

[0189] The amount of compensation time is determined based on the time difference value and the time difference threshold corresponding to the testing task. The time difference threshold is different for different testing tasks.

[0190] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0191] If the time difference is greater than the time difference threshold, then the time difference is determined as the compensation time amount;

[0192] If the time difference is less than or equal to the time difference threshold, then the historical compensation time corresponding to the historical test timestamp and the historical aggregated test timestamp is determined as the compensation time.

[0193] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0194] Generate a test query statement based on the task identifier and test frequency;

[0195] Generate a query instruction based on the test query statement, and retrieve aggregated test metrics from the time series database based on the query instruction.

[0196] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0197] Retrieve full task configuration information from the task database, and retrieve incremental task configuration information from the task database. The frequency of retrieving full task configuration information is greater than the frequency of retrieving incremental task configuration information.

[0198] Based on the full task configuration information and the incremental task configuration information, the configuration information of the testing task is determined. The configuration information includes the task identifier and the testing frequency.

[0199] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, timing databases, 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 many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The time-series databases involved in the embodiments provided in this application may include at least one type of relational time-series database and non-relational time-series database. Non-relational time-series databases may include, but are not limited to, blockchain-based distributed time-series databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0200] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0201] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for determining aggregated measurement indicators, characterized in that, The method comprises: According to the dialing task, determine the dialing frequency corresponding to the dialing task; According to the dialing frequency, obtain the aggregated dialing index corresponding to the dialing task from the time series database; For each obtained aggregated dialing index, if the aggregated dialing index is obtained from the time series database for the first time, determine that the compensation time amount corresponding to the aggregated dialing index is zero; if the aggregated dialing index is not obtained from the time series database for the first time, determine the compensation time amount according to the historical dialing timestamp and the historical aggregated dialing timestamp after time delay compensation corresponding to the last time delay compensation process, and perform time delay compensation on the aggregated dialing timestamp in the aggregated dialing index according to the compensation time amount to obtain the aggregated dialing index after time delay compensation.

2. The method of claim 1, wherein, The method comprises: Determine the time difference between the historical dialing timestamp and the historical aggregated dialing timestamp; According to the time difference and the time difference threshold corresponding to the dialing task, determine the compensation time amount, wherein the time difference threshold corresponding to different dialing tasks is different.

3. The method of claim 2, wherein, The method comprises: If the time difference is greater than the time difference threshold, determine the time difference as the compensation time amount; If the time difference is less than or equal to the time difference threshold, determine the historical compensation time amount corresponding to the historical dialing timestamp and the historical aggregated dialing timestamp as the compensation time amount.

4. The method according to any one of claims 1 to 3, characterized in that, The dialing task further comprises a task identifier, and the method comprises: According to the task identifier and the dialing frequency, generate a dialing query statement; According to the dialing query statement, generate a query instruction, and query the aggregated dialing index in the time series database according to the query instruction.

5. The method of claim 4, wherein, The method further comprises: Obtain full task configuration information from a task database, and obtain incremental task configuration information from the task database, wherein the acquisition frequency of the full task configuration information is greater than the acquisition frequency of the incremental task configuration information; According to the full task configuration information and the incremental task configuration information, determine the configuration information of the dialing task, wherein the configuration information comprises the task identifier and the dialing frequency.

6. The method of claim 1, wherein, The dialing frequency is the frequency of obtaining the running state of the target site corresponding to the dialing task within a unit time.

7. A device for determining a polymeric indicator of botting, characterized in that, The device comprises: A first determination module configured to determine the dialing frequency corresponding to the dialing task according to the dialing task; A first acquisition module configured to obtain the aggregated dialing index corresponding to the dialing task from the time series database according to the dialing frequency; The time delay compensation module is configured to, for each acquired aggregated probe index, determine a compensation time amount corresponding to the aggregated probe index as zero in a case where the aggregated probe index is acquired from the time series database for the first time; in a case where the aggregated probe index is acquired from the time series database for the second time, determine the compensation time amount according to a historical probe timestamp corresponding to a last time delay compensation process and a historical aggregated probe timestamp after time delay compensation, and perform time delay compensation on an aggregated probe timestamp in the aggregated probe index according to the compensation time amount to obtain an aggregated probe index after time delay compensation.

8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 6.

9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.

10. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6. The computer program, when executed by the processor, implements the steps of the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Dial testing method and device, electronic equipment and storage medium

    CN117544536A

  • Time delay processing method and device for communication path

    CN118138543A