Aggregated dial test index determination method and device, computer equipment and storage medium
By obtaining and compensating time delays from the timing database according to the frequency of dialing task in the distributed cloud dialing system, the problem of low timing accuracy of network dialing indicators in traditional methods is solved, and a higher timing accuracy is achieved .
Patent Information
- Application Number
- CN202411659626.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2044-11-20
AI Technical Summary
When traditional indicator aggregation methods face the problem of low timing accuracy of network dialing indicators when facing the configuration of dialing tasks that may change at any time and dynamically changing aggregation.
By determining the dialing frequency based on the dialing task, obtaining the aggregate dialing indicators from the timing database, and obtaining the compensation time amount for each acquired indicator, delay compensation of the aggregate dialing time stamp to improve timing accuracy.
The timing accuracy of network dialing indicators is improved, making the timestamp of aggregated dialing indicators more accurate, and reducing the delay caused by failure to update the dialing task frequency in time.
Smart Images

Figure CN119484333A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network monitoring technology, and in particular to a method, apparatus, computer equipment, computer-readable storage medium and computer program product for determining an aggregated dialing indicator. Background Art
[0002] With the rapid development of cloud computing technology, distributed cloud dial-up testing systems have become an important tool for network performance monitoring and troubleshooting. Distributed cloud dial-up testing systems deploy multiple nodes around the world to monitor key indicators such as network connection quality and latency in real time, providing users with comprehensive performance data and fault diagnosis support.
[0003] In the current cloud computing environment, the distributed cloud dialing system needs to perform dynamic indicator aggregation calculations in real time according to the changes in the dialing tasks to ensure its stability and reliability.
[0004] However, traditional indicator aggregation methods have the problem of low timing accuracy of network dial-up test indicators when facing dial-up test task configurations that may change at any time and dynamically changing aggregations. Summary of the invention
[0005] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium and computer program product for determining an aggregated dialing indicator that can improve the timing accuracy of the network dialing indicator in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for determining an aggregated dialing test indicator. The method comprises:
[0007] Determine, according to the dialing test task, a dialing test frequency corresponding to the dialing test task;
[0008] According to the dial test frequency, obtaining the aggregated dial test indicator corresponding to the dial test task from the time series database;
[0009] For each acquired aggregate dialing measurement indicator, a compensation time amount corresponding to the aggregate dialing measurement indicator is acquired, and delay compensation is performed on the aggregate dialing measurement timestamp in the aggregate dialing measurement indicator according to the compensation time amount to obtain the aggregate dialing measurement indicator after delay compensation.
[0010] In one embodiment, obtaining the compensation time corresponding to the aggregated dialing indicator includes:
[0011] In a case where the aggregated dial measurement indicator is obtained from the time series database for the first time, determining that the compensation time amount is zero;
[0012] In the case that the aggregate dial measurement indicator is not obtained from the time series database for the first time, the compensation time amount is determined according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregate dial measurement timestamp after delay compensation.
[0013] In one of the embodiments, determining the compensation time amount according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation includes:
[0014] Determine a time difference between the historical dial measurement timestamp and the historical aggregated dial measurement timestamp;
[0015] The compensation time amount is determined according to the time difference value and a time difference threshold corresponding to the dialing test task, wherein different time difference thresholds corresponding to different dialing test tasks are different.
[0016] In one embodiment, determining the compensation time amount according to the time difference value and a time difference threshold corresponding to the dialing task includes:
[0017] If the time difference value is greater than the time difference threshold, determining the time difference value as the compensation time amount;
[0018] If the time difference value is less than or equal to the time difference threshold, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
[0019] In one embodiment, the dial test task further includes a task identifier, and obtaining the aggregated dial test indicator corresponding to the dial test task from a time series database according to the dial test frequency includes:
[0020] Generate a dialing query statement according to the task identifier and the dialing frequency;
[0021] A query instruction is generated according to the dial test query statement, and the aggregated dial test indicator is obtained by querying in the time series database according to the query instruction.
[0022] In one embodiment, the method further comprises:
[0023] Acquire full task configuration information from a task database, and acquire 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;
[0024] The configuration information of the dialing test task is determined according to the full task configuration information and the incremental task configuration information, where the configuration information includes the task identifier and the dialing test frequency.
[0025] In a second aspect, the present application also provides a device for determining an aggregated dialing test index. The device includes:
[0026] A first determining module, configured to determine a dialing test frequency corresponding to the dialing test task according to the dialing test task;
[0027] A first acquisition module, configured to acquire, from a time series database according to the dial test frequency, an aggregated dial test indicator corresponding to the dial test task;
[0028] The delay compensation module is used to obtain the compensation time amount corresponding to the aggregated dialing test indicator for each acquisition of the aggregated dialing test indicator, and perform delay compensation on the aggregated dialing test timestamp in the aggregated dialing test indicator according to the compensation time amount to obtain the aggregated dialing test indicator after delay compensation.
[0029] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0031] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0032] In the above-mentioned method, apparatus, computer device, storage medium and computer program product for determining the aggregated dialing test indicator, the aggregation server determines the dialing test frequency corresponding to the dialing test task according to the dialing test task, and then obtains the aggregated dialing test indicator corresponding to the dialing test task from the time series database according to the dialing test frequency. Then, for each obtained aggregated dialing test indicator, the compensation time amount corresponding to the aggregated dialing test indicator is obtained, and the aggregated dialing test timestamp in the aggregated dialing test indicator is delayed compensated according to the compensation time amount to obtain the aggregated dialing test indicator after delay compensation. Since the aggregation server can first obtain the dialing test frequency according to the dialing test task and obtain the aggregated dialing test indicator according to the dialing test frequency, the frequency of obtaining the aggregated dialing test indicator can be consistent with the frequency of the dialing test task, so as to reduce the delay of the obtained aggregated dialing test indicator caused by the failure to update the frequency of the dialing test task in time, so as to use the compensation time amount to delay compensate the aggregated dialing test timestamp in the aggregated dialing test indicator, which can improve the accuracy of the aggregated dialing test timestamp in the aggregated dialing test indicator, and further improve the time series accuracy of the network dialing test indicator. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0034] FIG1 is an application environment diagram of a method for determining an aggregated dialing test index in one embodiment;
[0035] FIG2 is a flow chart of a method for determining an aggregated dialing test index in one embodiment;
[0036] FIG3 is a flow chart of a method for determining an aggregated dialing test index in another embodiment;
[0037] FIG4 is a schematic diagram of a flow chart of step 202 in another embodiment;
[0038] FIG5 is a flow chart of a method for determining an aggregated dialing test index in another embodiment;
[0039] FIG6 is a flow chart of a method for determining an aggregated dialing test index in another embodiment;
[0040] FIG7 is a structural block diagram of a device for determining an aggregate dialing test index in one embodiment;
[0041] FIG. 8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] Typically, in a scenario where a distributed cloud dial-up test system is used to test network performance, after the dial-up test server in the distributed cloud dial-up test system obtains the dial-up test data of the target site, it can send the dial-up test data to the database, so that the aggregation server can obtain the dial-up test data from the database, and aggregate the dial-up test data to obtain the aggregated dial-up test data. However, after the dial-up test task changes, after the dial-up test server obtains the dial-up test data and forwards it to the database, the aggregation server cannot dynamically update the aggregation rules according to the changes in the dial-up test task parameters, resulting in a possible delay problem in the aggregated dial-up test data after aggregation, thereby causing the timing of the network dial-up test indicators to be inaccurate. For example, if the dial-up test data corresponding to a certain target site is delayed compared to other sites, but the delay of a target site has a small impact on the aggregated dial-up test data, at this time, if the aggregation server cannot dynamically update the aggregation rules according to the changes in the dial-up test task parameters, it will not be able to respond to the delay problem in time. In view of this, the present application proposes a method for determining an aggregated dial-up test indicator to improve the accuracy of the timing of the network dial-up test indicator.
[0044] The method for determining the aggregated dialing test index provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1. The aggregation server 102 communicates with the dialing test server 104 through a network, and the dialing test server 104 communicates with the target site 106 through a network. The first data storage system can store the data that the aggregation server 102 needs to process. The first data storage system can be integrated on the aggregation server 102, or placed on a cloud or other network server. The second data storage system can store the data that the dialing test server 104 needs to process. The second data storage system can be integrated on the dialing test server 104, or placed on a cloud or other network server. The aggregation server 102 determines the dialing test frequency corresponding to the dialing test task according to the dialing test task, and then obtains the aggregated dialing test index corresponding to the dialing test task from the time series database according to the dialing test frequency, and then, for each obtained aggregated dialing test index, obtains the compensation time corresponding to the aggregated dialing test index, and performs delay compensation on the dialing test timestamp in the aggregated dialing test index according to the compensation time, to obtain the aggregated dialing test index after delay compensation. The aggregation server 102 may be implemented by an independent server or a server cluster consisting of multiple servers, and the dialing server 104 may also be implemented by an independent server or a server cluster consisting of multiple servers.
[0045] In an exemplary embodiment, as shown in FIG2 , a method for determining an aggregated dialing test indicator is provided, which is described by taking the method applied to the aggregation server in FIG1 as an example, and includes the following steps:
[0046] Step 201: Determine a dialing test frequency corresponding to the dialing test task according to the dialing test task.
[0047] The dialing test task refers to a task of monitoring the operating status of multiple deployed target sites using a dialing test server. The dialing test frequency refers to the frequency at which the dialing test server obtains the operating status of the target site within a unit time. For example, the dialing test frequency can be 5 seconds, 1 minute, 5 minutes, etc. The dialing test frequency can be set according to the needs of the monitoring target and the detection purpose, and this embodiment does not limit this.
[0048] In this embodiment, the aggregation server may obtain the latest dialing test task from the task database, and then obtain the dialing test frequency from the configuration information of the latest dialing test task.
[0049] Step 202: According to the dial test frequency, the aggregated dial test indicator corresponding to the dial test task is obtained from the time series database.
[0050] The time series database is used to store the dial test data corresponding to the dial test task at each time point. It should be noted that the dial test data in the time series database is sent by the dial test server. The dial test server can execute the dial test task, periodically obtain the operating status of the target site according to the dial test frequency, and encapsulate the obtained operating status and send it to the time series database.
[0051] The aggregated dialing test index refers to a dialing test index obtained by aggregating the dialing test indexes sent by multiple dialing test servers. It can be understood that the frequency of the aggregated dialing test index obtained by the aggregation server is the same as the frequency of the dialing test server obtaining the operating status of the target site.
[0052] In this embodiment, the aggregation server may periodically obtain the aggregated dialing test indicator corresponding to the dialing test task from the time series database according to the dialing test frequency.
[0053] It should be noted that the time series database is a time series database, and a query engine can be built into the time series database to provide data query functions to the outside. Therefore, the aggregation server can send query instructions to the time series database, and the time series database responds to the query instructions, uses the query engine to query the corresponding data, and returns it to the aggregation server.
[0054] The following describes the process by which the dial-up server obtains the operating status of the target site and sends it to the time series database:
[0055] a. The dial-test server sends a network dial-test packet to multiple target sites according to the dial-test frequency, and receives multiple dial-test return packets;
[0056] b. The dial test server analyzes the dial test return packets respectively to obtain the dial test response time, packet loss rate, and dial test status code corresponding to each dial test return packet, and encapsulates the dial test response time, packet loss rate, and dial test status code corresponding to each dial test return packet to obtain the original dial test indicators.
[0057] c. The dial test server sends the original dial test indicators to the time series database.
[0058] Step 203: for each acquired aggregate dialing measurement indicator, obtain the compensation time amount corresponding to the aggregate dialing measurement indicator, and perform delay compensation on the dialing measurement timestamp in the aggregate dialing measurement indicator according to the compensation time amount to obtain the aggregate dialing measurement indicator after delay compensation.
[0059] It should be noted that, since there is a time delay between the aggregated dialing test indicator and the original dialing test indicator, it is necessary to perform delay compensation on the aggregated dialing test timestamp in the aggregated dialing test indicator. The aggregated dialing test timestamp refers to the time information corresponding to the aggregated dialing test indicator. For example, the aggregated dialing test timestamp can be 12:00:00 on January 1, 2024. The compensation time refers to the time difference between the aggregated dialing test indicator and the original dialing test indicator. It can be understood that the aggregated dialing test server can obtain multiple aggregated dialing test indicators from the time series database according to the dialing test frequency, and it is necessary to perform delay compensation on each aggregated dialing test indicator.
[0060] In this embodiment, for an aggregated dialing test indicator obtained once, the aggregation server can obtain the compensation time amount for delay compensation for the aggregated dialing test indicator of the same dialing test task last time, and then use the compensation time amount as a reference value to determine the compensation time amount for delay compensation for the aggregated dialing test timestamp in the current aggregated dialing test indicator, and then use the determined compensation time amount to perform delay compensation to obtain the aggregated dialing test indicator after delay compensation.
[0061] As a possible implementation, the aggregation server may sum the compensation time amount with the aggregated dialing timestamp, and then use the summed value to replace the aggregated dialing timestamp in the aggregated dialing indicator, and then use the replaced aggregated dialing timestamp and dialing value as the aggregated dialing indicator after delay compensation.
[0062] In the above-mentioned method for determining the aggregated dialing test indicator, the aggregation server determines the dialing test frequency corresponding to the dialing test task according to the dialing test task, and then obtains the aggregated dialing test indicator corresponding to the dialing test task from the time series database according to the dialing test frequency. Then, for each obtained aggregated dialing test indicator, the compensation time amount corresponding to the aggregated dialing test indicator is obtained, and the aggregated dialing test timestamp in the aggregated dialing test indicator is delayed compensated according to the compensation time amount to obtain the aggregated dialing test indicator after delay compensation. Since the aggregation server can first obtain the dialing test frequency according to the dialing test task and obtain the aggregated dialing test indicator according to the dialing test frequency, the frequency of obtaining the aggregated dialing test indicator can be consistent with the frequency of the dialing test task, so as to reduce the delay of the obtained aggregated dialing test indicator caused by the failure to update the frequency of the dialing test task in time, so as to use the compensation time amount to perform delay compensation on the aggregated dialing test timestamp in the aggregated dialing test indicator, which can improve the accuracy of the aggregated dialing test timestamp in the aggregated dialing test indicator, and further improve the time series accuracy of the network dialing test indicator.
[0063] In an exemplary embodiment, in the scenario where the delay compensation is performed on the dial measurement timestamp in the aggregated dial measurement indicator according to the compensation time amount to obtain the aggregated dial measurement indicator after the delay compensation, the aggregated dial measurement indicator 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 following describes the determination process of the compensation time amount in these two cases respectively:
[0064] First, when the aggregate dial measurement indicator is obtained from the time series database for the first time, the compensation time is determined to be zero.
[0065] It is understandable that when the aggregation server obtains the first aggregated dialing indicator based on the dialing frequency and performs delay compensation on the aggregated dialing indicator, since there is no previous aggregated dialing indicator, it is impossible to use the compensation time amount of the previous delay compensation process as a reference value to perform delay compensation on the aggregated dialing timestamp in the first aggregated dialing indicator.
[0066] In this embodiment, when the aggregation server obtains the aggregated dialing measurement indicator from the time series database for the first time, the compensation time amount may be determined to be zero.
[0067] The second method is to determine the compensation time amount according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation when the aggregated dial measurement indicator is not obtained from the time series database for the first time.
[0068] It is understandable that, in the process of obtaining the aggregated dialing test indicator, the aggregation server may obtain the aggregated dialing test indicator from the time series database multiple times according to the dialing test frequency. In this embodiment, other acquisition processes except the first acquisition process may be regarded as non-first acquisition processes.
[0069] Among them, the historical dial measurement timestamp refers to the time information in the original dial measurement indicator stored in the time series database during the process of obtaining the aggregated dial measurement indicator last time. The historical aggregated dial measurement timestamp refers to the time information in the aggregated dial measurement indicator returned to the aggregation server by the time series database during the process of obtaining the aggregated dial measurement indicator last time. The historical aggregated dial measurement timestamp after delay compensation refers to the time information obtained after delay compensation for the aggregated dial measurement timestamp in the aggregated dial measurement indicator obtained last time.
[0070] In this embodiment, when the aggregated dial measurement indicator is not obtained from the time series database for the first time, the aggregation server can obtain the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation, and then determine the difference between the historical dial measurement timestamp and the historical aggregated dial measurement timestamp after delay compensation as the compensation time amount.
[0071] In this embodiment, the aggregation server can determine that the compensation time is zero when the aggregated dial measurement indicator is obtained from the time series database for the first time, and can determine the compensation time according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation when the aggregated dial measurement indicator is not obtained from the time series database for the first time. Since the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation are historical information, the historical dial measurement timestamp and the historical aggregated dial measurement timestamp can be quickly obtained, so that the compensation time can be quickly obtained; in addition, the compensation time can be iteratively determined according to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp after each delay compensation, so as to iteratively improve the accuracy of the determined compensation time.
[0072] The specific process of determining the compensation time amount based on the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation is described in detail below. In an exemplary embodiment, as shown in FIG3 , the process may include:
[0073] Step 301: determine the time difference between the historical dial measurement timestamp and the historical aggregate dial measurement timestamp.
[0074] It is understandable that the aggregated dialing indicator is obtained by aggregating the original dialing indicators corresponding to the dialing frequency after the time series database receives the query instruction sent by the aggregation server. Therefore, the aggregated dialing timestamp in the aggregated dialing indicator may be later than the historical dialing timestamp in the original dialing indicator.
[0075] In this embodiment, the aggregation server may determine the value obtained by subtracting the historical dial measurement timestamp from the historical aggregated dial measurement timestamp as the time difference.
[0076] Step 302: Determine the compensation time amount according to the time difference value and the time difference threshold corresponding to the dialing test task, wherein different dialing test tasks correspond to different time difference thresholds.
[0077] The time difference threshold refers to the minimum value of the time difference between the historical dial test timestamp and the historical aggregated dial test timestamp. In this embodiment, the time difference threshold can be determined according to the dial test requirement of the dial test task. For example, if the dial test requirement is low latency and high reliability, the time difference threshold is smaller.
[0078] In this embodiment, the effect of the last delay compensation can be evaluated by the 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 last delay compensation is 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 last delay compensation is good.
[0079] Optionally, if the time difference value is greater than a time difference threshold, the time difference value 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 may determine that the historical aggregation dialing timestamp after the last delay compensation still has a large delay, and therefore determines the time difference as the compensation time amount.
[0081] Optionally, if the time difference value is less than or equal to the time difference threshold, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
[0082] In this embodiment, if the time difference value is less than or equal to the time difference threshold, the aggregation server can determine that the delay of the historical aggregation dialing timestamp after the last delay compensation is smaller, and therefore, the historical compensation time amount corresponding to the historical dialing timestamp and the historical aggregation dialing timestamp can be determined as the compensation time amount.
[0083] In this embodiment, the aggregation server determines the time difference between the historical dialing test timestamp and the historical aggregated dialing test timestamp, and can determine the compensation time amount according to the time difference and the time difference threshold corresponding to the dialing test task, wherein different dialing test tasks correspond to different time difference thresholds, so that for different dialing test tasks, it can be determined according to the corresponding time difference threshold whether the aggregated dialing test timestamp after the last delay compensation meets the delay compensation requirement, thereby meeting the delay compensation requirements of different dialing test tasks.
[0084] In the above scenario where the aggregated dialing test index corresponding to the dialing test task is obtained from the time series database according to the dialing test frequency, the aggregation server can obtain the aggregated dialing test index by sending a query instruction to the time series database. In an exemplary embodiment, the dialing test task also includes a task identifier, as shown in FIG4 , and the above step 202 includes:
[0085] Step 401: Generate a dialing query statement according to the task identifier and the dialing frequency.
[0086] The task identifier is the unique identification information of each dial test task. It is understandable that the aggregation server can periodically obtain the aggregated dial test index according to the dial test frequency. Therefore, in this embodiment, the aggregation server can generate a dial test query statement containing the task identifier and corresponding to the dial test frequency according to the dial test frequency of the dial test task, so that the aggregated dial test index can be obtained from the time series database using the dial test query statement according to the dial test frequency.
[0087] Exemplarily, the dial query statement may be in promql language, which is a data query language built into Prometheus, an open source service monitoring system and time series database, and may be used to query and aggregate time series data.
[0088] Step 402: Generate a query instruction according to the dialing query statement, and query the time series database according to the query instruction to obtain the aggregated dialing indicator.
[0089] In this embodiment, the aggregation server can generate a corresponding query instruction according to the dialing query statement, and then send the query instruction to the computer device where the time series database is located through the network according to the dialing frequency corresponding to the query instruction, so that the computer device responds to the query instruction, and uses the query engine built into the time series database to obtain multiple original dialing indicators corresponding to the dialing identifier, and aggregates the multiple original dialing indicators to obtain an aggregated dialing indicator, and returns the aggregated dialing indicator to the aggregation server.
[0090] In this embodiment, the aggregation server generates a dialing query statement according to the task identifier and the dialing frequency, can generate a query instruction according to the dialing query statement, and obtain an aggregated dialing indicator by querying in the time series database according to the query instruction. Since the time series database stores the original dialing indicators corresponding to the task identifier and the dialing frequency of the dialing task, and can aggregate the original dialing indicators according to the query instruction to obtain the aggregated dialing indicator, the aggregation server can quickly obtain the aggregated dialing indicator.
[0091] In the above scenario of determining the dial test frequency corresponding to the dial test task according to the dial test task, the aggregation server can determine the task configuration information of the dial test task by obtaining the full task configuration information and the incremental task configuration information from the task database. In an exemplary embodiment, as shown in FIG5 , the above method further includes:
[0092] Step 501 : Acquire full task configuration information from a task database, and acquire 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.
[0093] Among them, the task database is a database for storing the configuration information of the dial test task. The full task configuration information refers to all the task configuration information in the task database, and the incremental task configuration information refers to the task configuration information newly created, modified or deleted in a shorter time period. It should be noted that in order to determine the latest task configuration information of the dial test task based on the full task configuration information and the incremental task configuration information, it is necessary to obtain the modification information closest to the current moment in the task database. Therefore, the acquisition frequency of the incremental task configuration information can be set to be lower than the acquisition frequency of the full task configuration information. For example, the acquisition frequency of the full task configuration information can be 24 hours, and the acquisition frequency of the incremental task configuration information can be 1 hour.
[0094] In this embodiment, the aggregation server can send a full task configuration information acquisition instruction to the task database at a first acquisition frequency, thereby receiving the full task configuration information returned by the task database, and then send an incremental task configuration information acquisition instruction to the task database at a second frequency lower than the first acquisition frequency, thereby receiving the incremental task configuration information returned by the task database.
[0095] Step 502: Determine the configuration information of the dialing test task according to the full task configuration information and the incremental task configuration information. The configuration information includes a task identifier and a dialing test frequency.
[0096] It can be understood that by combining the incremental task configuration information with the 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 according to the incremental task configuration information, thereby determining the updated task configuration information as the configuration information of the dialing task. Furthermore, the task identifier and dialing frequency can be obtained from the configuration information of the dialing task, so that the aggregation server can generate a dialing query statement according to the task identifier and the dialing frequency, thereby using the query statement to obtain the aggregated dialing indicator from the time series database.
[0098] In this embodiment, the aggregation server obtains full task configuration information from the task database and obtains 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, and can timely obtain update information of the dialing test task, and then, according to the full task configuration information and the incremental task configuration information, determine the configuration information of the dialing test task, the configuration information includes the task identifier and the dialing test frequency, so that the corresponding aggregated dialing test indicator can be obtained from the time series database in time according to the dialing test frequency, thereby reducing the delay of the aggregated dialing test indicator.
[0099] To facilitate understanding by those skilled in the art, as shown in FIG6 , the following is a detailed introduction to the method for determining the aggregated dialing test index provided by the present application, which method may include:
[0100] Step 601, obtaining full task configuration information from a task database, and obtaining incremental task configuration information from the task database, wherein the frequency of obtaining the full task configuration information is greater than the frequency of obtaining the incremental task configuration information.
[0101] Step 602: Determine the configuration information of the dialing test task according to the full task configuration information and the incremental task configuration information. The configuration information includes a task identifier and a dialing test frequency.
[0102] Step 603: Determine the dialing test frequency corresponding to the dialing test task according to the configuration information of the dialing test task.
[0103] Step 604: Generate a dialing query statement according to the task identifier and the dialing frequency.
[0104] Step 605: Generate a query instruction according to the dialing query statement, and query the time series database according to the query instruction to obtain the aggregated dialing indicator.
[0105] Step 606 : for each acquired aggregate dialing measurement indicator, if the aggregate dialing measurement indicator is acquired from the time series database for the first time, determine that the compensation time is zero.
[0106] Step 607 : for each acquired aggregate dial measurement indicator, if the aggregate dial measurement indicator is not acquired from the time series database for the first time, determine the time difference between the historical dial measurement timestamp and the historical aggregate dial measurement timestamp.
[0107] Step 608: If the time difference value is greater than the time difference threshold, the time difference value is determined as the compensation time amount.
[0108] Step 609: If the time difference is less than or equal to the time difference threshold, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregate dial measurement timestamp is determined as the compensation time amount.
[0109] Step 6010: sum the aggregated dial measurement timestamp and the compensation time amount, and use the sum value obtained by the summation to replace the aggregated dial measurement timestamp in the aggregated dial measurement indicator.
[0110] Step 6011: Determine the replaced aggregate dialing test timestamp and aggregate dialing test value as the aggregate dialing test indicator after delay compensation.
[0111] It should be noted that for the descriptions in the above steps 601 to 6011, reference may be made to the relevant descriptions in the above embodiments, and the effects are similar, which will not be described in detail in this embodiment.
[0112] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0113] Based on the same inventive concept, the embodiment of the present application also provides a device for determining an aggregated dial test index for implementing the method for determining an aggregated dial test index involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for determining one or more aggregated dial test indicators provided below can refer to the limitations of the method for determining an aggregated dial test index above, and will not be repeated here.
[0114] In one embodiment, as shown in FIG. 7 , a device for determining an aggregated dialing test indicator is provided, including: a first determination module 701, a first acquisition module 702, and a delay compensation module 703, wherein:
[0115] The first determining module 701 is used to determine the dialing test frequency corresponding to the dialing test task according to the dialing test task;
[0116] The first acquisition module 702 is used to acquire the aggregated dialing test indicator corresponding to the dialing test task from the time series database according to the dialing test frequency;
[0117] The delay compensation module 703 is used to obtain the compensation time corresponding to the aggregated dialing measurement indicator for each acquired aggregated dialing measurement indicator, and perform delay compensation on the aggregated dialing measurement timestamp in the aggregated dialing measurement indicator according to the compensation time to obtain the aggregated dialing measurement indicator after delay compensation.
[0118] The device for determining the aggregated dialing test indicator provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0119] In one embodiment, the delay compensation module 703 includes:
[0120] A first determining unit, configured to determine that the compensation time amount is zero when the aggregated dialing measurement indicator is obtained from the time series database for the first time;
[0121] The second determining unit is configured to determine the compensation time amount according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation when the aggregated dial measurement indicator is not obtained from the time series database for the first time.
[0122] The device for determining the aggregated dialing test indicator provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0123] In one embodiment, the second determining unit is specifically configured to:
[0124] Determine the time difference between the historical dial measurement timestamp and the historical aggregate dial measurement timestamp;
[0125] The compensation time amount is determined according to the time difference value and the time difference threshold corresponding to the dialing test task, wherein different time difference thresholds corresponding to different dialing test tasks are different.
[0126] The device for determining the aggregated dialing test indicator provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0127] In one embodiment, the second determining unit is specifically configured to:
[0128] If the time difference is greater than the time difference threshold, 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, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
[0130] The device for determining the aggregated dialing test indicator provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0131] In one embodiment, the dialing task further includes a task identifier, and the first acquisition module 702 includes:
[0132] A generating unit, used for generating a dialing query statement according to a task identifier and a dialing frequency;
[0133] The acquisition unit is used to generate a query instruction according to the dial test query statement, and query the time series database according to the query instruction to obtain the aggregated dial test indicator.
[0134] The device for determining the aggregated dialing test indicator provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0135] In one embodiment, the above device further comprises:
[0136] A second acquisition module is used to acquire full task configuration information from the task database and to acquire 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;
[0137] The second determination module is used to determine the configuration information of the dialing test task according to the full task configuration information and the incremental task configuration information, where the configuration information includes the task identifier and the dialing test frequency.
[0138] The device for determining the aggregated dialing test indicator provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0139] Each module in the above-mentioned device for determining the aggregate dialing test index can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0140] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the 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 time series database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The time series database of the computer device is used to store dialing index 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 method for determining an aggregated dialing index is implemented.
[0141] Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial 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 arrangement of components.
[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0143] Determine the dialing frequency corresponding to the dialing task according to the dialing task;
[0144] According to the dial test frequency, obtain the aggregated dial test indicators corresponding to the dial test task from the time series database;
[0145] For each obtained aggregate dialing measurement indicator, a compensation time amount corresponding to the aggregate dialing measurement indicator is obtained, and delay compensation is performed on the aggregate dialing measurement timestamp in the aggregate dialing measurement indicator according to the compensation time amount to obtain the aggregate dialing measurement indicator after delay compensation.
[0146] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0147] In the case where the aggregate dial measurement indicator is obtained from the time series database for the first time, the compensation time amount is determined to be zero;
[0148] When the aggregate dial measurement indicator is not obtained from the time series database for the first time, the compensation time is determined according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregate dial measurement timestamp after delay compensation.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] Determine the time difference between the historical dial measurement timestamp and the historical aggregate dial measurement timestamp;
[0151] The compensation time amount is determined according to the time difference value and the time difference threshold corresponding to the dialing test task, wherein different dialing test tasks correspond to different time difference thresholds.
[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0153] If the time difference is greater than the time difference threshold, 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, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] Generate a dialing query statement based on the task ID and dialing frequency;
[0157] Generate a query instruction according to the dial test query statement, and query the time series database according to the query instruction to obtain the aggregated dial test indicator.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] Acquire full task configuration information from the task database, and acquire 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;
[0160] The configuration information of the dial test task is determined according to the full task configuration information and the incremental task configuration information. The configuration information includes a task identifier and a dial test frequency.
[0161] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0162] Determine the dialing frequency corresponding to the dialing task according to the dialing task;
[0163] According to the dial test frequency, obtain the aggregated dial test indicators corresponding to the dial test task from the time series database;
[0164] For each obtained aggregate dialing measurement indicator, a compensation time amount corresponding to the aggregate dialing measurement indicator is obtained, and delay compensation is performed on the aggregate dialing measurement timestamp in the aggregate dialing measurement indicator according to the compensation time amount to obtain the aggregate dialing measurement indicator after delay compensation.
[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0166] In the case where the aggregate dial measurement indicator is obtained from the time series database for the first time, the compensation time amount is determined to be zero;
[0167] When the aggregate dial measurement indicator is not obtained from the time series database for the first time, the compensation time is determined according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregate dial measurement timestamp after delay compensation.
[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0169] Determine the time difference between the historical dial measurement timestamp and the historical aggregate dial measurement timestamp;
[0170] The compensation time amount is determined according to the time difference value and the time difference threshold corresponding to the dialing test task, wherein different time difference thresholds corresponding to different dialing test tasks are different.
[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0172] If the time difference is greater than the time difference threshold, 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, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0175] Generate a dialing query statement based on the task ID and dialing frequency;
[0176] Generate a query instruction according to the dial test query statement, and query the time series database according to the query instruction to obtain the aggregated dial test indicator.
[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0178] Acquire full task configuration information from the task database, and acquire 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;
[0179] The configuration information of the dial test task is determined according to the full task configuration information and the incremental task configuration information. The configuration information includes a task identifier and a dial test frequency.
[0180] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0181] Determine the dialing frequency corresponding to the dialing task according to the dialing task;
[0182] According to the dial test frequency, obtain the aggregated dial test indicators corresponding to the dial test task from the time series database;
[0183] For each obtained aggregate dialing measurement indicator, a compensation time amount corresponding to the aggregate dialing measurement indicator is obtained, and delay compensation is performed on the aggregate dialing measurement timestamp in the aggregate dialing measurement indicator according to the compensation time amount to obtain the aggregate dialing measurement indicator after delay compensation.
[0184] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0185] In the case where the aggregate dial measurement indicator is obtained from the time series database for the first time, the compensation time amount is determined to be zero;
[0186] When the aggregate dial measurement indicator is not obtained from the time series database for the first time, the compensation time is determined according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregate dial measurement timestamp after delay compensation.
[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0188] Determine the time difference between the historical dial measurement timestamp and the historical aggregate dial measurement timestamp;
[0189] The compensation time amount is determined according to the time difference value and the time difference threshold corresponding to the dialing test task, wherein different time difference thresholds corresponding to different dialing test tasks are different.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0191] If the time difference is greater than the time difference threshold, 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, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0194] Generate a dialing query statement based on the task ID and dialing frequency;
[0195] Generate a query instruction according to the dial test query statement, and query the time series database according to the query instruction to obtain the aggregated dial test indicator.
[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0197] Acquire full task configuration information from the task database, and acquire 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;
[0198] The configuration information of the dial test task is determined according to the full task configuration information and the incremental task configuration information. The configuration information includes a task identifier and a dial test frequency.
[0199] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and 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 embodiments of the above-mentioned methods. Among them, any reference to the memory, time series 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), magnetoresistive 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The time series database involved in each embodiment provided in this application may include at least one of a relational time series database and a non-relational time series database. The non-relational time series database may include a distributed time series database based on blockchain, etc., but is not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but is not limited to this.
[0200] The technical features of the above embodiments may 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.
[0201] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for determining an aggregate dialing test index, characterized in that: The method comprises: Determine, according to the dialing test task, a dialing test frequency corresponding to the dialing test task; According to the dial test frequency, obtaining the aggregated dial test indicator corresponding to the dial test task from the time series database; For each acquired aggregate dialing measurement indicator, a compensation time amount corresponding to the aggregate dialing measurement indicator is acquired, and delay compensation is performed on the aggregate dialing measurement timestamp in the aggregate dialing measurement indicator according to the compensation time amount to obtain the aggregate dialing measurement indicator after delay compensation.
2. The method according to claim 1, characterized in that The obtaining of the compensation time amount corresponding to the aggregated dialing measurement indicator includes: In a case where the aggregated dial measurement indicator is obtained from the time series database for the first time, determining that the compensation time amount is zero; In the case that the aggregate dial measurement indicator is not obtained from the time series database for the first time, the compensation time amount is determined according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregate dial measurement timestamp after delay compensation.
3. The method according to claim 2, characterized in that The determining the compensation time amount according to the historical dial measurement timestamp corresponding to the last delay compensation process and the historical aggregated dial measurement timestamp after delay compensation includes: Determine a time difference between the historical dial measurement timestamp and the historical aggregated dial measurement timestamp; The compensation time amount is determined according to the time difference value and a time difference threshold corresponding to the dialing test task, wherein different time difference thresholds corresponding to different dialing test tasks are different.
4. The method according to claim 3, characterized in that The determining the compensation time amount according to the time difference value and a time difference threshold corresponding to the dialing task includes: If the time difference value is greater than the time difference threshold, determining the time difference value as the compensation time amount; If the time difference value is less than or equal to the time difference threshold, the historical compensation time amount corresponding to the historical dial measurement timestamp and the historical aggregated dial measurement timestamp is determined as the compensation time amount.
5. The method according to any one of claims 1 to 4, characterized in that: The dial test task also includes a task identifier, and obtaining the aggregated dial test indicator corresponding to the dial test task from the time series database according to the dial test frequency includes: Generate a dialing query statement according to the task identifier and the dialing frequency; A query instruction is generated according to the dial test query statement, and the aggregated dial test indicator is obtained by querying in the time series database according to the query instruction.
6. The method according to claim 5, characterized in that The method further comprises: Acquire full task configuration information from a task database, and acquire 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; The configuration information of the dialing test task is determined according to the full task configuration information and the incremental task configuration information, where the configuration information includes the task identifier and the dialing test frequency.
7. A device for determining an aggregate dialing test index, characterized in that: The device comprises: A first determining module, configured to determine a dialing test frequency corresponding to the dialing test task according to the dialing test task; A first acquisition module, configured to acquire, from a time series database according to the dial test frequency, an aggregated dial test indicator corresponding to the dial test task; The delay compensation module is used to obtain the compensation time amount corresponding to the aggregated dialing test indicator for each acquisition of the aggregated dialing test indicator, and perform delay compensation on the aggregated dialing test timestamp in the aggregated dialing test indicator according to the compensation time amount to obtain the aggregated dialing test indicator after delay compensation.
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
Patent Citations
Precision correction method, device and system and precision correction equipment
CN114267407A
Data compensation method and device for webpage dial testing
CN114679398A
Dial testing method and device, electronic equipment and storage medium
CN117544536A
Continuous aggregation data updating method and device, equipment and storage medium
CN117891822A
Time delay processing method and device for communication path
CN118138543A