A method, server and storage medium for probing
Patent Information
- Application Number
- CN202211369887.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2042-11-03
AI Technical Summary
[0003]现有拨测系统的拨测方法较为固定和单一,通常由人为设定需要拨测的边缘节点主机和进行拨测任务的拨测客户端,拨测服务端使用静态配置完成固定的拨测流程,但是这种拨测方法往往在跨省拨测时会产生拨测超时的问题,进而对判断边缘节点的死活造成较大影响,导致拨测结果的准确性低
[0037]本申请实施例提供了一种拨测方法及拨测服务端、存储介质,该方法包括:接收在拨客户端上报的样本拨测数据;并对样本拨测数据进行聚类,得到至少一个聚类中心;样本拨测数据包括在拨客户端的客户端标识和在拨客户端对应边缘节点的拨测省份;根据至少一个聚类中心、将在拨客户端和拨测省份进行区域划分,得到至少一个区域对应的至少一组子在拨客户端和至少一组子拨测省份;根据每个区域对应的一组子拨测省份、为每个区域内的一组子在拨客户端设置拨测任务;并将拨测任务对应发送至每个区域内的一组子在拨客户端中;以供该组子在拨客户端基于拨测任务为对应的边缘节点进行拨测操作。采用上述实现方案,拨测服务端可以通过自适应区域规划将在拨客户端和需要拨测的边缘节点的所在的省份进行区域划分,避免了不同省份之间在网络状况不稳定时,影响拨测结果的情况,进而提高了拨测结果的准确性。
Smart Images

Figure CN116915680B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer networks, and in particular to a dial-up testing method, a dial-up testing server, and a storage medium. Background Technology
[0002] For service systems deployed in a distributed cluster, the management of node hosts is particularly important, as the availability of edge nodes directly affects service functionality. Currently, edge node liveness detection primarily uses a probe-based approach. Its basic architecture consists of two parts: a probe-based client and a probe-based server. The probe-based server sends probe-based tasks to the probe-based client, which then probes the edge node hosts according to the tasks. Finally, the probe-based server determines the liveness of the edge nodes based on the received probe results.
[0003] The existing testing methods of the testing system are relatively fixed and simple. Usually, the edge node host to be tested and the testing client to perform the testing task are manually set. The testing server uses static configuration to complete a fixed testing process. However, this testing method often causes testing timeout problems when testing across provinces, which has a significant impact on judging the life or death of edge nodes and results in low accuracy of testing results. Summary of the Invention
[0004] This application provides a dial-up testing method, a dial-up testing server, and a storage medium, which can improve the accuracy of dial-up testing results.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, embodiments of this application provide a dial-up testing method, applied to a dial-up testing server, wherein the dial-up testing server manages the dial-up client; the method includes:
[0007] Receive sample dialing test data reported by the dialing client; and cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client;
[0008] Based on the at least one cluster center, the dialing client and the dialing province are divided into regions to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0009] Based on a set of sub-testing provinces corresponding to each region, a test task is set for a set of sub-on-the-dial clients within each region; and the test task is sent to the corresponding set of sub-on-the-dial clients within each region, so that the sub-on-the-dial clients can perform test operations based on the test task as the corresponding edge node.
[0010] In the above-mentioned testing method, the step of clustering the sample testing data to obtain at least one cluster center includes:
[0011] Set the preset number of regions; and use the preset number of regions to initialize the initial Gaussian mixture model to obtain the preset Gaussian mixture model;
[0012] The sample measurement data is input into the preset Gaussian mixture model to obtain at least one cluster center corresponding to the preset number of regions.
[0013] In the above-mentioned dialing test method, the sample dialing test data further includes the client province corresponding to the dialing client; the step of dividing the dialing clients and the dialing provinces into regions based on the at least one cluster center to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region includes:
[0014] Determine a set of subsample test data for each cluster center in the at least one cluster center;
[0015] The statistics include at least one set of sub-client identifiers, at least one set of sub-client provinces, and at least one set of dialing provinces in at least one set of sub-sample dialing data;
[0016] Each group of sub-client provinces and each group of dial-up provinces are combined into a region corresponding to a cluster center, resulting in at least one region;
[0017] Based on the at least one set of sub-client identifiers and the at least one set of sub-test provinces, the dialing clients and the test provinces are divided into regions to obtain at least one set of sub-dialing clients and at least one set of test provinces corresponding to the at least one region.
[0018] In the above-described dialing test method, after sending the dialing test task to a set of sub-dial clients in each region, the method further includes:
[0019] Receive dial test data reported by a group of dialing clients in each region; and determine the dial test success rate corresponding to each dialing client in the dialing clients based on the dial test results included in the dial test data;
[0020] Based on the dialing success rate corresponding to each dialing client, determine the regional average success rate corresponding to each region in the at least one region;
[0021] Whether to replace the dialing client is determined based on the dialing test success rate corresponding to each dialing client and the regional average success rate corresponding to each region.
[0022] In the above-described dialing test method, the dialing test server manages the dialing test clients, which include active dialing clients and idle clients; the step of determining whether to replace an active dialing client based on the dialing success rate corresponding to each active dialing client and the regional average success rate corresponding to each region includes:
[0023] If the success rate of the first dialing client is lower than the regional average success rate of the region where the first dialing client is located, then the historical number of dialing tests of the first dialing client and the total number of historical dialing tests issued by the dialing test server are determined.
[0024] The historical dialing probability of the first dialing client is determined based on the historical dialing count and the total historical dialing count; and the historical dialing probability and the dialing success rate of the first dialing client are input into a preset Bayesian decision model to obtain a first probability value.
[0025] If the first probability value is greater than the preset probability threshold, then the first dialing client will not be replaced;
[0026] If the first probability value is greater than the preset probability threshold, then a second dialing client is selected from the idle clients to replace the first dialing client.
[0027] In the above dialing test method, the step of determining whether to replace the dialing client based on the dialing test success rate corresponding to each dialing client and the regional average success rate corresponding to each region includes:
[0028] If the success rate of the first dialing client is not lower than the regional average success rate of the region where the first dialing client is located, then the first dialing client will not be replaced.
[0029] In the above-described dial-up testing method, the dial-up testing server manages the dial-up testing clients, and the dial-up testing clients include the dialing clients; before receiving the sample dial-up testing data reported by the dialing clients, the method further includes:
[0030] The dialing client is selected from the dialing test clients according to a preset ratio; and a dialing test task is issued to the dialing client so that the dialing client can perform dialing test operations based on the dialing test task.
[0031] Secondly, embodiments of this application provide a dial-up testing server, which manages the dial-up client; the server includes:
[0032] A receiving unit is configured to receive sample dialing test data reported by the dialing client; and to cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client;
[0033] A partitioning unit is used to divide the dialing client and the dialing province into regions based on the at least one cluster center, so as to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0034] The setting unit is used to set up a dialing task for a set of sub-dialing clients in each region according to a set of sub-dialing provinces corresponding to each region; and send the dialing task to the set of sub-dialing clients in each region so that the set of sub-dialing clients can perform dialing operations based on the dialing task as the corresponding edge node.
[0035] Thirdly, embodiments of this application provide a dial-up testing server, characterized in that the server includes: a processor, a transmitter, a receiver, a memory, and a communication bus; when the processor executes the running program stored in the memory, it implements the dial-up testing method as described in any of the above.
[0036] Fourthly, embodiments of this application provide a storage medium storing a computer program thereon, characterized in that the computer program, when executed by a processor, implements the dialing test method as described in any of the preceding claims.
[0037] This application provides a dial-up testing method, a dial-up testing server, and a storage medium. The method includes: receiving sample dial-up testing data reported by dialing clients; clustering the sample dial-up testing data to obtain at least one cluster center; the sample dial-up testing data includes the client identifier of the dialing client and the dial-up testing province of the corresponding edge node of the dialing client; dividing the dialing clients and dial-up testing provinces into regions according to at least one cluster center to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region; setting dial-up testing tasks for one set of sub-dialing clients in each region according to one set of sub-dialing provinces corresponding to each region; and sending the dial-up testing tasks to one set of sub-dialing clients in each region so that the sub-dialing clients can perform dial-up testing operations for the corresponding edge nodes based on the dial-up testing tasks. Using the above implementation scheme, the dial-up testing server can use adaptive region planning to divide the provinces where the dialing clients and the edge nodes to be tested are located, avoiding the impact of unstable network conditions between different provinces on the dial-up testing results, thereby improving the accuracy of the dial-up testing results. Attached Figure Description
[0038] Figure 1A flowchart of a dialing test method provided in an embodiment of this application;
[0039] Figure 2 A schematic diagram illustrating an exemplary dialing process provided for an embodiment of this application;
[0040] Figure 3 A schematic diagram of the composition structure of a dial-up testing server provided in this application embodiment. Figure 1 ;
[0041] Figure 4 A schematic diagram of the composition structure of a dial-up testing server provided in this application embodiment. Figure 2 . Detailed Implementation
[0042] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit the scope of this application.
[0043] This application provides a dial-up testing method applied to a dial-up testing server, where the dial-up testing server manages the dial-up client. Figure 1 A flowchart of a dialing test method provided in an embodiment of this application is shown below. Figure 1 As shown, the dialing test method may include:
[0044] S101. Receive sample dialing test data reported by the dialing client; and cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client.
[0045] In this embodiment of the application, the dialing test server receives sample dialing test data reported by the dialing client; and clusters the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client.
[0046] The technical solution provided in this application is applicable to scenarios where the dial-up test server controls the dial-up client to detect the liveness or deadness of edge nodes.
[0047] It should be noted that, in this embodiment of the application, the dialing test server manages the dialing test clients. The dialing test clients include dialing clients that are performing dialing tests and idle clients that are candidates. The ratio of dialing clients to idle clients in the dialing test clients can be divided into 8:2 or 9:1 depending on the situation. The specific ratio can be determined according to the actual situation. This embodiment of the application does not make a specific limitation here.
[0048] It should be noted that, in this embodiment of the application, primary and backup dial-up testing servers can be deployed on multiple servers simultaneously, and dial-up testing clients can be deployed on the server where dial-up testing tasks need to be performed; the specific deployment method of the dial-up testing server and dial-up testing client can be determined according to the actual situation, and this embodiment of the application does not make specific limitations here.
[0049] In this embodiment of the application, the dial test server manages the dial test clients, which include dial clients; before the dial test server receives the sample dial test data reported by the dial clients, the method further includes: selecting dial clients from the dial test clients according to a preset ratio; and issuing dial test tasks to the dial clients; so that the dial clients can perform dial test operations based on the dial test tasks.
[0050] It should be noted that before starting the dial test, the basic parameters of the dial test task need to be set, which may include the number of dial test cycles, the time interval between each dial test, the Uniform Resource Locator (URL) for dial heartbeat detection, and the Internet Protocol (IP) port and path on the dial server corresponding to the dial test result reporting. The specific dial test task can be specified according to the actual situation, and this application embodiment does not make specific limitations here.
[0051] It should be noted that before the dial-up test begins, the dial-up test server needs to pull the configuration data required for the test, mainly including the IP address and port of the dial-up client, and the IP address and port of the dial-up test target (i.e., the edge node); and after combining the pulled configuration data and basic parameters into a dial-up test task, it will be sent to the dial-up client.
[0052] It should be noted that after the dial-up test has been running for a certain period of time, the dial-up test server collects and summarizes all sample dial-up test data reported by the dialing clients, and extracts four parameters from each sample dial-up test data: the province of the dialing client, the dial-up province of the edge node, the dial-up test result (success or failure), and the dial-up test latency.
[0053] In this embodiment of the application, the test server clusters the sample test data to obtain at least one cluster center, including: setting a preset number of regions; initializing the initial Gaussian mixture model using the preset number of regions to obtain a preset Gaussian mixture model; and inputting the sample test data into the preset Gaussian mixture model to obtain at least one cluster center corresponding to the preset number of regions.
[0054] It should be noted that the number of preset regions can be set. For example, for services deployed nationwide, the country is generally divided into seven regions: Central China, East China, North China, Northeast China, Northwest China, South China, and Southwest China. The specific preset regions can be divided according to the actual situation, and this application embodiment does not make specific limitations here.
[0055] It should be noted that before inputting the sample dialing test data into the preset Gaussian mixture model, it is necessary to extract four parameters from the sample dialing test data: the province of the dialing client, the dialing province of the edge node, the dialing result (success or failure), and the dialing delay, as attributes to construct a sample data point, and then input the sample data point into the preset Gaussian mixture model.
[0056] It should be noted that after inputting the sample data points into the preset Gaussian mixture model, at least one Gaussian distribution corresponding to the preset number of regions is obtained. At this point, the mean and variance need to be randomly assigned. The probability of each sample data point under each Gaussian distribution is calculated, and the sample data point with the highest calculated probability is assigned to that class. Then, for each class of sample data points, the Gaussian parameter that maximizes the aggregation degree of the sample data points in that class is calculated using the maximum likelihood estimation method. Based on the new Gaussian parameter, the probability of each data point belonging to each class is recalculated until the Gaussian parameter of each Gaussian distribution converges, resulting in at least one cluster center corresponding to the preset number of regions.
[0057] S102. Based on at least one cluster center, the dialing client and the dialing province will be divided into regions to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0058] In this embodiment of the application, after obtaining at least one cluster center, the dialing test server divides the dialing client and the dialing test province into regions based on the at least one cluster center, thereby obtaining at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0059] It should be noted that regional division can be understood as combining the provinces of the dialing clients and the provinces of the edge nodes included in the same cluster center into the region corresponding to that cluster center.
[0060] In this embodiment, the sample dialing data also includes the client province corresponding to the dialing client; the dialing server divides the dialing client and the dialing province into regions based on at least one cluster center, to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region, including: determining a set of sub-sample dialing data included in each of the at least one cluster center; counting at least one set of sub-client identifiers, at least one set of sub-client provinces, and at least one set of sub-dialing provinces included in the at least one set of sub-sample dialing data; combining the corresponding set of sub-client provinces and set of sub-dialing provinces into a region corresponding to a cluster center, to obtain at least one region; dividing the dialing client and the dialing province into regions based on at least one set of sub-client identifiers and at least one set of sub-dialing provinces, to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0061] It should be noted that after obtaining at least one cluster center, the testing server will collect the province information of all sample data points in each cluster center, including the province of the client in the dialing client and the testing province of the edge node. If a province belongs to different cluster centers at the same time, the proportion of that province in each cluster center will be calculated and it will be assigned to the cluster center with the higher proportion.
[0062] It should be noted that after obtaining the provincial information of all sample data points in each cluster center, the data is divided into a region corresponding to that cluster center. Each time, the testing region is adaptively divided based on the clustering results, and testing is carried out again within the region. In the initial stage of adaptive adjustment, the mean and variance of the Gaussian distribution are assigned small random values to avoid overfitting to the testing data. At the same time, after each division, a small number of clients in the region are retained to continue testing the targets in all other regions, and their testing results are used as the input for the next adaptive division adjustment, and are given appropriate weights.
[0063] It should be noted that in this embodiment of the application, the process of dividing the dialing client into regions needs to be repeated every preset time period, so as to keep the dialing client with better dialing test quality for dialing test operation.
[0064] S103. Based on the set of sub-testing provinces corresponding to each region, set up a test task for a set of sub-testing clients in each region; and send the test task to the set of sub-testing clients in each region so that the sub-testing clients can perform test operations on the corresponding edge nodes based on the test task.
[0065] In this embodiment, after obtaining at least one set of sub-dial clients and at least one set of sub-dial provinces corresponding to at least one region, the dialing test server sets up dialing test tasks according to the set of sub-dial provinces corresponding to each region and the set of sub-dial clients in each region; and sends the dialing test tasks to the set of sub-dial clients in each region, so that the set of sub-dial clients can perform dialing test operations for the corresponding edge nodes based on the dialing test tasks.
[0066] It should be noted that the test server selects the dialing clients and edge nodes within the divided regions, and reconfigures the test tasks for the dialing clients within the regions based on the test provinces of the edge nodes.
[0067] In this embodiment of the application, after the dialing test server sends the dialing test task to a group of sub-dial clients in each region, the method further includes: receiving dialing test data reported by a group of sub-dial clients in each region; determining the dialing test success rate corresponding to each sub-dial client based on the dialing test results included in the dialing test data; determining the regional average success rate corresponding to each region in at least one region based on the dialing test success rate corresponding to each sub-dial client; and determining whether to replace the sub-dial client based on the dialing test success rate corresponding to each sub-dial client and the regional average success rate corresponding to each region.
[0068] It should be noted that after the dialing client performs dialing tests on the edge nodes according to the dialing test task reissued by the dialing test server, it reports the dialing test data to the dialing test server. The dialing test server calculates the dialing success rate of each dialing client in this dialing test operation based on the dialing test results in the dialing test data, and at the same time calculates the average success rate of all dialing clients in each region.
[0069] In this embodiment, the testing server manages testing clients, which include active clients and idle clients. The testing server determines whether to replace an active client based on the testing success rate of each active client and the regional average success rate of each region. This includes: if the testing success rate of the first active client is lower than the regional average success rate of the region where the first active client is located, then determining the historical number of tests of the first active client and the total number of historical tests issued by the testing server; determining the historical active probability of the first active client based on the historical number of tests and the total number of historical tests; and inputting the historical active probability and the testing success rate of the first active client into a preset Bayesian decision model to obtain a first probability value; if the first probability value is greater than a preset probability threshold, then the first active client is not replaced; if the first probability value is greater than the preset probability threshold, then a second active client is selected from the idle clients to replace the first active client.
[0070] It should be noted that, in this embodiment of the application, the decision to replace the client in the call can be made not only by judging the difference between the success rate of the dial test and the corresponding regional average success rate, but also by calculating the difference between the success rate of the dial test and the corresponding regional average success rate, and determining whether to replace the client in the call if the difference is greater than a preset threshold; the specific judgment rules can be determined according to the actual situation, and this embodiment of the application does not impose specific limitations here.
[0071] It should be noted that the historical dialing probability can be understood as the dialing success rate of the first dialing client when completing the historical dialing test task; the specific historical dialing probability can be determined according to the actual situation, and this application embodiment does not make specific limitations here.
[0072] It should be noted that before inputting the historical dialing probability and dialing success rate into the preset Bayesian decision model, different weights can be assigned to the historical dialing probability and dialing success rate according to their time sequence, with more recent data being assigned higher weights. Using these two data points as inputs to the preset Bayesian decision model, the first probability value of the first dialing client being available can be obtained.
[0073] It should be noted that after the second dialing client is selected from the idle clients to replace the first dialing client, the dialing test server reissues the dialing test task to the second dialing client. At this time, the first dialing client stops the dialing test operation and rejoins the idle client queue in this area.
[0074] In this embodiment of the application, the dialing test server determines whether to replace the dialing client based on the dialing test success rate corresponding to each dialing client and the regional average success rate corresponding to each region, including: if the dialing test success rate of the first dialing client is not lower than the regional average success rate of the region where the first dialing client is located, then the first dialing client is not replaced.
[0075] It should be noted that in this embodiment of the application, the process of judging and replacing the dialing client needs to be repeated every preset time period, so as to always retain the dialing client with better dialing test quality for dialing test operation.
[0076] In the embodiments of this application, Figure 2 This application provides an exemplary schematic diagram of a dialing test process, as shown in the embodiment of the present application. Figure 2 As shown, through the technical solution of this application, the dial-up test server can use adaptive regional planning to divide the provinces where the dial-up client and the edge node to be tested are located, avoiding the impact of unstable network conditions between different provinces on the dial-up test results. At the same time, by timely replacing dial-up clients with poor quality, the accuracy of the dial-up test results is further improved.
[0077] This application provides a dial-up testing method, which includes: receiving sample dial-up testing data reported by a dialing client; clustering the sample dial-up testing data to obtain at least one cluster center; the sample dial-up testing data includes the client identifier of the dialing client and the dial-up testing province of the corresponding edge node of the dialing client; dividing the dialing client and the dial-up testing province into regions according to at least one cluster center to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region; setting a dial-up testing task for a set of sub-dialing clients in each region according to a set of sub-dialing provinces corresponding to each region; and sending the dial-up testing task to a set of sub-dialing clients in each region so that the set of sub-dialing clients can perform dial-up testing operations for the corresponding edge nodes based on the dial-up testing task. By adopting the above implementation scheme, the dial-up testing server can divide the provinces where the dialing client and the edge node to be tested are located into regions through adaptive regional planning, avoiding the situation where the dial-up testing results are affected by the unstable network conditions between different provinces, thereby improving the accuracy of the dial-up testing results.
[0078] Based on the above embodiments, in another embodiment of this application, a dial-up testing server 1 is provided. Figure 3 A schematic diagram of the composition structure of a dial-up testing server provided in this application. Figure 1 ,like Figure 3 As shown, the test server 1 includes:
[0079] The receiving unit 10 is configured to receive sample dialing test data reported by the dialing client; and to cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client;
[0080] The partitioning unit 11 is used to divide the dialing client and the dialing province into regions based on the at least one cluster center, so as to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0081] The setting unit 12 is used to set up a dialing task for a group of sub-dialing clients in each region according to a group of sub-dialing provinces corresponding to each region; and send the dialing task to the group of sub-dialing clients in each region so that the group of sub-dialing clients can perform dialing operations based on the dialing task as the corresponding edge node.
[0082] Optionally, the test server 1 further includes: an input unit;
[0083] The setting unit 12 is also used to set the number of preset regions; and to initialize the initial Gaussian mixture model using the number of preset regions to obtain the preset Gaussian mixture model.
[0084] The input unit is used to input the sample measurement data into the preset Gaussian mixture model to obtain the at least one cluster center corresponding to the preset number of regions.
[0085] Optionally, the test server 1 further includes: a determination unit, a statistics unit, and a combination unit;
[0086] The determining unit is used to determine a set of subsample test data included in each of the at least one cluster center;
[0087] The statistical unit is used to count at least one set of sub-client identifiers, at least one set of sub-client provinces, and at least one set of dialing provinces included in at least one set of sub-sample dialing data;
[0088] The combination unit is used to combine a group of corresponding sub-client provinces and a group of sub-test provinces into a region corresponding to a cluster center, thereby obtaining at least one region.
[0089] The division unit 11 is further configured to divide the dialing client and the dialing province into regions based on the at least one set of sub-client identifiers and the at least one set of sub-dialing provinces, so as to obtain at least one set of sub-dialing clients and at least one set of dialing provinces corresponding to the at least one region.
[0090] Optionally, the test server 1 further includes: a judgment unit;
[0091] The receiving unit 10 is further configured to receive dial test data reported by a group of dialing clients in each region; and determine the dial test success rate corresponding to each dialing client in the dialing clients based on the dial test results included in the dial test data;
[0092] The determining unit is further configured to determine the average success rate of each region in the at least one region based on the dialing test success rate corresponding to each dialing client.
[0093] The judgment unit is used to determine whether to replace the dialing client based on the dialing success rate corresponding to each dialing client and the regional average success rate corresponding to each region.
[0094] Optionally, the test server 1 further includes: a replacement unit;
[0095] The determining unit is further configured to determine the historical number of dialing tests of the first dialing client and the total number of historical dialing tests issued by the dialing test server if the dialing test success rate of the first dialing client is lower than the regional average success rate of the region where the first dialing client is located.
[0096] The determining unit is further configured to determine the historical dialing probability of the first dialing client based on the historical dialing count and the total historical dialing count; and input the historical dialing probability and the dialing success rate of the first dialing client into a preset Bayesian decision model to obtain a first probability value;
[0097] The replacement unit is configured to: if the first probability value is greater than a preset probability threshold, not replace the first dialing client; if the first probability value is greater than the preset probability threshold, select a second dialing client from the idle clients to replace the first dialing client.
[0098] Optionally, the replacement unit is further configured to not replace the first dialing client if the dialing success rate of the first dialing client is not lower than the regional average success rate of the area where the first dialing client is located.
[0099] Optionally, the test server 1 further includes: a selection unit and a sending unit;
[0100] The selection unit is used to select the dialing client from the dialing clients according to a preset ratio;
[0101] The sending unit is used to send a dialing test task to the dialing client so that the dialing client can perform dialing test operations based on the dialing test task.
[0102] This application provides a dial-up testing server, which includes a receiving unit, a partitioning unit, and a setting unit. The receiving unit receives sample dial-up testing data reported by dialing clients and clusters the sample dial-up testing data to obtain at least one cluster center. The sample dial-up testing data includes the client identifier of the dialing client and the dial-up testing province corresponding to the edge node of the dialing client. The partitioning unit partitions the dialing clients and dial-up testing provinces according to at least one cluster center, obtaining at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region. The setting unit sets dial-up testing tasks for each set of sub-dialing clients within each region according to the set of sub-dialing provinces corresponding to each region, and sends the dial-up testing tasks to the corresponding set of sub-dialing clients within each region, so that the sub-dialing clients can perform dial-up testing operations for the corresponding edge nodes based on the dial-up testing tasks. Using the above implementation scheme, the dial-up testing server can partition the provinces where the dialing clients and the edge nodes to be tested are located through adaptive regional planning, avoiding the impact of unstable network conditions between different provinces on the dial-up testing results, thereby improving the accuracy of the dial-up testing results.
[0103] Figure 4 A schematic diagram of the composition structure of a dial-up testing server provided in this application embodiment. Figure 2In practical applications, based on the same disclosed concept of the above embodiments, such as Figure 4 As shown, the dial-up test server 1 in this embodiment also includes: processor 13, transmitter 14, receiver 15, memory 16 and communication bus 17.
[0104] In the specific embodiments, the division unit 11, setting unit 12, input unit, determining unit, statistical unit, combination unit, judgment unit, replacement unit, and selection unit can be implemented by the processor 13 located on the test server 1, the sending unit can be implemented by the transmitter 14 located on the test server 1, and the receiving unit 10 can be implemented by the receiver 15 located on the test server 1. The processor 13 can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), CPU, controller, microcontroller, and microprocessor. It is understood that for different test servers, the electronic device used to implement the above processor functions can also be other types; this embodiment does not specifically limit this.
[0105] In this embodiment, the communication bus 17 is used to realize the connection communication between the processor 13 and the memory 16; when the processor 13 executes the running program stored in the memory 16, it implements the following dialing method:
[0106] Receive sample dialing test data reported by the dialing client; and cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client;
[0107] Based on the at least one cluster center, the dialing client and the dialing province are divided into regions to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region.
[0108] Based on a set of sub-testing provinces corresponding to each region, a test task is set for a set of sub-on-the-dial clients within each region; and the test task is sent to the corresponding set of sub-on-the-dial clients within each region, so that the sub-on-the-dial clients can perform test operations based on the test task as the corresponding edge node.
[0109] Optionally, the processor 13 is further configured to set a preset number of regions; and use the preset number of regions to initialize an initial Gaussian mixture model to obtain a preset Gaussian mixture model; input the sample test data into the preset Gaussian mixture model to obtain the at least one cluster center corresponding to the preset number of regions.
[0110] Optionally, the processor 13 is further configured to: determine a set of sub-sample dialing data included in each of the at least one cluster center; count at least one set of sub-client identifiers, at least one set of sub-client provinces, and at least one set of sub-dialing provinces included in the at least one set of sub-sample dialing data; combine the corresponding set of sub-client provinces and the set of sub-dialing provinces into a region corresponding to a cluster center, thereby obtaining at least one region; and divide the dialing clients and the dialing provinces into regions according to the at least one set of sub-client identifiers and the at least one set of sub-dialing provinces, thereby obtaining at least one set of sub-dialing clients and at least one set of dialing provinces corresponding to the at least one region.
[0111] Optionally, the processor 13 is further configured to receive dial test data reported by a group of dialing clients in each region; and determine the dial test success rate corresponding to each dialing client in the dialing clients based on the dial test results included in the dial test data; determine the regional average success rate corresponding to each region in the at least one region based on the dial test success rate corresponding to each dialing client; and determine whether to replace the dialing client based on the dial test success rate corresponding to each dialing client and the regional average success rate corresponding to each region.
[0112] Optionally, the processor 13 is further configured to: if the success rate of the first dialing client is lower than the regional average success rate of the area where the first dialing client is located, determine the historical dialing count of the first dialing client and the total historical dialing count sent by the dialing server; determine the historical dialing probability of the first dialing client based on the historical dialing count and the total historical dialing count; input the historical dialing probability and the success rate of the first dialing client into a preset Bayesian decision model to obtain a first probability value; if the first probability value is greater than a preset probability threshold, then the first dialing client is not replaced; if the first probability value is greater than the preset probability threshold, then a second dialing client is selected from the idle clients to replace the first dialing client.
[0113] Optionally, the processor 13 is further configured to not replace the first dialing client if the dialing success rate of the first dialing client is not lower than the regional average success rate of the area where the first dialing client is located.
[0114] Optionally, the processor 13 is further configured to select the dialing client from the dialing test clients according to a preset ratio; and issue a dialing test task to the dialing client; so that the dialing client can perform dialing test operations based on the dialing test task.
[0115] This application provides a storage medium storing a computer program thereon. The computer-readable storage medium stores one or more programs, which can be executed by one or more processors and applied in a dial-up testing server. The computer program implements the dial-up testing method described above.
[0116] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0117] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause an image display device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the dialing test methods described in the various embodiments of this disclosure.
[0118] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.
Claims
1. A dialing test method, characterized in that, The method is applied to a dial-up testing server, which manages dial-up testing clients, and the dial-up testing clients include dial-up clients; the method includes: The dialing client is selected from the dialing test clients according to a preset ratio; and a dialing test task is sent to the dialing client so that the dialing client can perform dialing test operations based on the dialing test task. Receive sample dialing test data reported by the dialing client; and cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client; Based on the at least one cluster center, the dialing client and the dialing province are divided into regions to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region. Based on a set of sub-testing provinces corresponding to each region, a test task is set for a set of sub-on-the-dial clients within each region; and the test task is sent to the corresponding set of sub-on-the-dial clients within each region, so that the sub-on-the-dial clients can perform test operations based on the test task as the corresponding edge node.
2. The method according to claim 1, characterized in that, The step of clustering the sample test data to obtain at least one cluster center includes: Set the preset number of regions; and use the preset number of regions to initialize the initial Gaussian mixture model to obtain the preset Gaussian mixture model; The sample measurement data is input into the preset Gaussian mixture model to obtain at least one cluster center corresponding to the preset number of regions.
3. The method according to claim 1, characterized in that, The sample dialing data also includes the client province corresponding to the dialing client; the step of dividing the dialing clients and the dialing provinces into regions based on the at least one cluster center to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region includes: Determine a set of subsample test data for each cluster center in the at least one cluster center; The statistics include at least one set of sub-client identifiers, at least one set of sub-client provinces, and at least one set of dialing provinces in at least one set of sub-sample dialing data; Each group of sub-client provinces and each group of dial-up provinces are combined into a region corresponding to a cluster center, resulting in at least one region; Based on the at least one set of sub-client identifiers and the at least one set of sub-test provinces, the dialing clients and the test provinces are divided into regions to obtain at least one set of sub-dialing clients and at least one set of test provinces corresponding to the at least one region.
4. The method according to claim 1, characterized in that, After sending the test task to a set of sub-dialing clients in each region, the method further includes: Receive dial test data reported by a group of dialing clients in each region; and determine the dial test success rate corresponding to each dialing client in the dialing clients based on the dial test results included in the dial test data; Based on the dialing success rate corresponding to each dialing client, determine the regional average success rate corresponding to each region in the at least one region; Whether to replace the dialing client is determined based on the dialing test success rate corresponding to each dialing client and the regional average success rate corresponding to each region.
5. The method according to claim 4, characterized in that, The testing server manages the testing clients, which include active clients and idle clients. The step of determining whether to replace an active client based on the testing success rate of each active client and the regional average success rate for each region includes: If the success rate of the first dialing client is lower than the regional average success rate of the region where the first dialing client is located, then the historical number of dialing tests of the first dialing client and the total number of historical dialing tests issued by the dialing test server are determined. The historical dialing probability of the first dialing client is determined based on the historical dialing count and the total historical dialing count; and the historical dialing probability and the dialing success rate of the first dialing client are input into a preset Bayesian decision model to obtain a first probability value. If the first probability value is greater than the preset probability threshold, then the first dialing client will not be replaced; If the first probability value is greater than the preset probability threshold, then a second dialing client is selected from the idle clients to replace the first dialing client.
6. The method according to claim 4, characterized in that, The step of determining whether to replace the dialing client based on the dialing test success rate corresponding to each dialing client and the regional average success rate corresponding to each region includes: If the success rate of the first dialing client is not lower than the regional average success rate of the region where the first dialing client is located, then the first dialing client will not be replaced.
7. A dial-up testing server, characterized in that, The testing server manages the testing clients, and the testing clients include the dialing clients; the server includes: A selection unit is used to select the dialing client from the dialing clients according to a preset ratio; The sending unit is used to send a dialing test task to the dialing client so that the dialing client can perform a dialing test operation based on the dialing test task. A receiving unit is configured to receive sample dialing test data reported by the dialing client; and to cluster the sample dialing test data to obtain at least one cluster center; the sample dialing test data includes the client identifier of the dialing client and the dialing province of the corresponding edge node of the dialing client; A partitioning unit is used to divide the dialing client and the dialing province into regions based on the at least one cluster center, so as to obtain at least one set of sub-dialing clients and at least one set of sub-dialing provinces corresponding to at least one region. The setting unit is used to set up a dialing task for a set of sub-dialing clients in each region according to a set of sub-dialing provinces corresponding to each region; and send the dialing task to the set of sub-dialing clients in each region so that the set of sub-dialing clients can perform dialing operations based on the dialing task as the corresponding edge node.
8. A dial-up testing server, characterized in that, The server includes a processor, a transmitter, a receiver, a memory, and a communication bus; when the processor executes the running program stored in the memory, it implements the method as described in any one of claims 1-6.
9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Service dial testing method, device and system and storage medium
CN111221714A