IPv6 deployment rate measurement method and related device

By dividing multiple sampling intervals in the target area and weighting the calculation, the problem of inaccurate IPv6 deployment rate calculation caused by unreasonable sample distribution in the prior art is solved, and higher calculation accuracy and authenticity are achieved.

CN120050700APending Publication Date: 2025-05-27CHINA INTERNET NETWORK INFORMATION CENTER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510195862.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

Among the existing active measurement methods, the unreasonable sample distribution leads to low accuracy in the calculation of IPv6 deployment rate.

Method used

By dividing multiple sampling intervals in the target area, serving advertisements to terminals with preset numbers within each sampling interval, triggering measurement tasks to obtain IPv6 deployment rate, and then weighted calculations are made based on the proportion of the real number of users between different sampling intervals to obtain the final IPv6 deployment rate.

Benefits of technology

The calculation error caused by unreasonable sample distribution is avoided, and the accuracy and authenticity of the IPv6 deployment rate calculation results are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050700A_ABST
    Figure CN120050700A_ABST
Patent Text Reader

Abstract

The invention discloses an IPv6 deployment rate measurement method and a related device, and the method comprises the steps: determining a plurality of sampling intervals in a target region according to the type of an operator, and putting advertisements to a preset number of terminals in each sampling interval, thereby enabling the same number of terminals to be triggered in different sampling intervals to execute a measurement task, and achieving the measurement of the IPv6 deployment rate. The method comprises the following steps of: performing statistical analysis according to a measurement result which is returned by a terminal and indicates whether IPv6 is supported or not, determining an IPv6 deployment rate corresponding to each sampling interval, and finally performing weighted summation on the IPv6 deployment rate corresponding to each sampling interval according to a real user quantity proportion between different sampling intervals to obtain an IPv6 deployment rate of a target area. In this way, the IPv6 deployment rates corresponding to different types of operators are weighted through the real user number proportion between the different types of operators in the target area, calculation errors caused by unreasonable sample distribution are avoided, and therefore the accuracy and authenticity of an IPv6 deployment rate calculation result are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technologies, and particularly to a method for measuring the IPv6 deployment rate and related devices. Background Art

[0002] The IPv6 deployment rate refers to the comprehensive IPv6 deployment situation calculated according to data such as IPv6 websites and IPv6 users with certain weights. Measuring the IPv6 deployment rate is of great significance for promoting the development and operation and maintenance of the Internet.

[0003] Currently, the measurement of the IPv6 deployment rate is mainly divided into two methods: active detection and passive detection. In China, the passive detection method is mainly used, and the data collection process is not transparent. Internationally, the active measurement method is mainly used. By placing advertisements on terminals and embedding measurement scripts in the advertisements, the measurement tasks are executed without the user's awareness. The measurement tasks can be flexibly controlled by the measurement agency, and then a statistical analysis report is formed based on the measurement results returned by the terminals to calculate the IPv6 deployment rate.

[0004] However, among the sample data published internationally, there are obvious differences between the sample proportions obtained according to the types of operators and the actual user quantity proportions. Due to the unreasonable sample distribution, the accuracy of the IPv6 deployment rate calculated by this active measurement method is not high. Summary of the Invention

[0005] In view of this, this application provides a method for measuring the IPv6 deployment rate and related devices. First, calculate the IPv6 deployment rate results corresponding to the same number of samples of different types of operators in the target area, and then perform weighted calculation on the deployment rates corresponding to different operators through the actual user quantity proportion between different types of operators in the target area to obtain the final IPv6 deployment rate, avoiding calculation errors caused by unreasonable sample distribution and improving the accuracy and authenticity of the calculation results of the IPv6 deployment rate.

[0006] To solve the above problems, the technical solution of this application is as follows:

[0007] On the one hand, this application provides a method for measuring the IPv6 deployment rate, and the method includes:

[0008] Determine a plurality of sampling intervals according to multiple types of operators in the target area;

[0009] Place advertisements on a preset number of terminals in each sampling interval, and the advertisements are used to trigger the terminals to execute measurement tasks, and the measurement tasks are used to return the measurement results of whether the terminals support IPv6;

[0010] Determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement results returned by the terminal;

[0011] Perform a weighted sum of the IPv6 deployment rates according to the actual user quantity ratio among the multiple sampling intervals to obtain the IPv6 deployment rate of the target area.

[0012] In a possible implementation manner, determining multiple sampling intervals according to multiple types of operators in the target area includes:

[0013] Divide the target area according to geographical regions to obtain multiple sub-regions;

[0014] Determine multiple sampling intervals according to the permutation and combination of the multiple types of operators and the multiple sub-regions.

[0015] In a possible implementation manner, the step of determining the IPv6 deployment rate corresponding to each sampling interval according to the measurement results returned by the terminal includes:

[0016] Determine an equal number of measurement results in each sampling interval according to the measurement results of the terminal;

[0017] Determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement results of each sampling interval.

[0018] In a possible implementation manner, the step of delivering advertisements to a preset number of terminals in each sampling interval includes:

[0019] Deliver advertisements to a preset number of terminals in each sampling interval through a flow-limiting algorithm.

[0020] In a possible implementation manner, after delivering advertisements to a preset number of terminals in each sampling interval, the method further includes:

[0021] If the advertisement delivery to the terminal is successful, add a record to the IP table according to the IP information of the terminal, where the IP information includes the IP address of the terminal and the sampling interval where the IP address is located. The IP table includes IP address, sampling interval, and IP quantity fields, and the IP quantity field is used to represent the quantity of IP addresses corresponding to the current record in the IP table in the sampling interval corresponding to the current record up to the current record.

[0022] In a possible implementation manner, the IPv6 deployment rate is measured at a fixed period, and the step of delivering advertisements to a preset number of terminals in each sampling interval includes:

[0023] Determine N advertisement delivery time nodes;

[0024] At each of the N advertising delivery time nodes, advertisements are delivered to a specified number of terminals within each sampling interval, and the specified number is the preset number / N.

[0025] In a possible implementation, after delivering advertisements to the preset number of terminals within each sampling interval, the method further includes:

[0026] If the advertisement delivery to the first terminal fails, the advertisement is redelivered to the first terminal;

[0027] If the delivery is still not successful after exceeding the preset number of delivery attempts, the advertisement delivery to the first terminal is stopped.

[0028] In another aspect, the present application also provides a measurement device for the IPv6 deployment rate. The device includes a determination unit, a delivery unit, and a calculation unit:

[0029] The determination unit is configured to determine a plurality of sampling intervals according to multiple types of operators in the target area;

[0030] The delivery unit is configured to deliver advertisements to a preset number of terminals within each sampling interval, and the advertisements are used to trigger the terminals to execute a measurement task, and the measurement task is used to return a measurement result indicating whether the terminals support IPv6;

[0031] The determination unit is further configured to determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement results returned by the terminals;

[0032] The calculation unit is configured to perform a weighted sum of the IPv6 deployment rates according to the actual user number ratio between the multiple sampling intervals to obtain the IPv6 deployment rate of the target area.

[0033] In a possible implementation, the determination unit is specifically configured to:

[0034] Divide the target area according to geographical regions to obtain a plurality of sub-regions;

[0035] Determine a plurality of sampling intervals according to the permutation and combination of the multiple types of operators and the multiple sub-regions.

[0036] In a possible implementation, the determination unit is specifically configured to:

[0037] Determine an equal number of measurement results in each sampling interval according to the measurement results of the terminals;

[0038] Determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement results of each sampling interval.

[0039] In a possible implementation, the delivery unit is specifically configured to:

[0040] Deliver advertisements to a preset number of terminals in each sampling interval through a current limiting algorithm.

[0041] In a possible implementation, the device further includes an adding unit:

[0042] If the advertisement is successfully delivered to the terminal, the adding unit is used to add a record in the IP table according to the IP information of the terminal. The IP information includes the IP address of the terminal and the sampling interval where the IP address is located. The IP table includes fields of IP address, sampling interval, and IP quantity. The IP quantity field is used to represent the number of IP addresses corresponding to the current record in the sampling interval corresponding to the current record in the IP table up to the current record.

[0043] In a possible implementation, the IPv6 deployment rate is measured at a fixed period, and the delivery unit is specifically configured to:

[0044] Determine N delivery time nodes;

[0045] At each of the N delivery time nodes, deliver advertisements to a specified number of terminals in each sampling interval, where the specified number is the preset number / N.

[0046] In a possible implementation, the delivery unit is further configured to:

[0047] If the advertisement delivery to the first terminal fails, re - deliver the advertisement to the first terminal;

[0048] If the delivery is still not successful after exceeding the preset delivery times, stop delivering advertisements to the first terminal.

[0049] On the other hand, the present application further provides a computer device, which includes a processor and a memory:

[0050] The memory is used to store a computer program;

[0051] The processor is used to execute any one of the methods according to the computer program.

[0052] On the other hand, the present application further provides a computer - readable storage medium, which is used to store a computer program. The computer program, when executed by a computer device, implements any one of the methods.

[0053] As can be seen from the above technical solution, this method can be executed by the server. First, a plurality of sampling intervals corresponding to the types of operators in the target area are determined, and then advertisements are delivered to a preset number of terminals in each sampling interval, so that the same number of terminals are triggered to execute measurement tasks among different types of operators in the target area. After that, statistical analysis is performed based on the measurement results of whether the terminals support IPv6 returned by the terminals to determine the IPv6 deployment rate corresponding to each sampling interval. Finally, the IPv6 deployment rates of all sampling intervals are weighted and summed according to the actual user number ratio between different sampling intervals to obtain the IPv6 deployment rate of the final target area. Thus, the IPv6 deployment rates corresponding to all sampling intervals are weighted by the actual user number ratio between different types of operators in the target area, avoiding calculation errors caused by unreasonable sample distribution, and thereby improving the accuracy and authenticity of the calculation result of the IPv6 deployment rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0055] Figure 1 It is a flowchart of a method for measuring the IPv6 deployment rate provided by an embodiment of the present application;

[0056] Figure 2 It is a flowchart of an advertisement delivery provided by an embodiment of the present application;

[0057] Figure 3 It is a schematic diagram of a device for measuring the IPv6 deployment rate provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0058] In order to enable those skilled in the art to better understand the solution of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0059] According to the data of China's IPv6 development detection platform, the IPv6 deployment rate in China reached 74.8% in December 2024, far exceeding that of Western countries such as the United States, France, and Germany. However, data released by the international authoritative organization APNIC during the same period shows that China's IPv6 deployment rate is only 40.5%, and there is a large difference between domestic and foreign statistical results.

[0060] As described in the background art, currently, the measurement of the IPv6 deployment rate is mainly divided into two methods: active detection and passive detection. In China, the passive detection method is mainly adopted, which mainly analyzes DNS service logs and operator traffic. The data collection process is not transparent. Internationally, the active measurement method is mainly used to calculate the IPv6 deployment rate. In the domestic sample data published by APNIC, the sample proportion of the three major operators is as high as 98.61%. Therefore, the representativeness of the samples of the three major operators can basically reflect the representativeness of the overall samples in China. However, currently, the sample proportion of the three major operators sampled by this active measurement method has a significant difference from the true user number proportion among the three major operators, resulting in a low accuracy of the measurement result of the IPv6 deployment rate.

[0061] Therefore, this application proposes a method and related device for measuring the IPv6 deployment rate. First, different sampling intervals are determined according to the types of operators in the target area. Then, advertisements are sent to a preset number of terminals in each sampling interval, so that the same number of terminals are triggered to execute the measurement task in different sampling intervals. After that, statistical analysis is performed based on the measurement results of whether the terminals support IPv6 returned, and the IPv6 deployment rate corresponding to each sampling interval is determined. Finally, the IPv6 deployment rates of different sampling intervals are weighted and summed according to the true user number proportion between different sampling intervals to obtain the IPv6 deployment rate of the final target area. Thus, by weighting the IPv6 deployment rates corresponding to different sampling intervals according to the true user number proportion between different sampling intervals in the target area, the calculation error caused by unreasonable sample distribution is avoided, thereby improving the accuracy and authenticity of the calculation result of the IPv6 deployment rate.

[0062] The method provided in this application is applied to the field of network communication technology and is specifically described through the following embodiments.

[0063] See Figure 1 As shown, it is a schematic flowchart of a method for measuring the IPv6 deployment rate provided by an embodiment of this application, which is executed by a computer device. In the embodiment of this application, a server is used as the execution subject for description.

[0064] S101: Determine multiple sampling intervals according to multiple types of operators in the target area.

[0065] Among them, the target area is the measurement area of the IPv6 deployment rate, which can be a country, a province, a city, etc. Due to the huge number of Internet users, it requires a large amount of cost to count all the terminals in the target area. Therefore, multiple sampling intervals are divided to sample the terminals in order to calculate the situation of the IPv6 deployment rate.

[0066] The types of operators can be divided through multiple dimensions such as the types of services they provide, business scope, network technologies, etc. Currently in our country, they are usually divided into 3 types.

[0067] Different types of operators are managed by specialized institutions and personnel, and have information such as the specific service usage situations of users in different regions.

[0068] Multiple sampling intervals can be divided according to the types of operators. Each type of operator corresponds to a sampling interval, and user information using the services of the corresponding operator can be obtained in different sampling intervals.

[0069] S102: Deliver advertisements to a preset number of terminals in each of the sampling intervals.

[0070] The preset number can be determined by the ISO2859 sampling inspection standard, which not only avoids the problem of low calculation efficiency caused by too many sample numbers, but also avoids the data contingency caused by too few sample numbers, and can effectively improve the accuracy of the calculation results and the measurement efficiency. It should be emphasized that the preset number in each sampling interval is the same.

[0071] When delivering advertisements, an advertisement delivery information table can be established to record the advertisement delivery quantities in each sampling interval. This advertisement delivery information table can include fields such as time, sampling interval, and the number of advertisements already delivered.

[0072] In this application, there is no restriction on the specific content of the advertisement. It is mainly used to trigger the terminal to execute a measurement task. This measurement task can be embedded in the advertisement in the form of a code segment and is automatically executed when the advertisement is loaded onto the terminal.

[0073] In this application, there is no specific limitation on this measurement task. According to actual needs, this measurement task can be changed. For example, it can be to determine whether the terminal supports IPv6, or when it supports both IPv6 and IPv4, whether IPv6 is preferred, or calculate the network traffic used by the terminal, etc. After the terminal executes the measurement task, it returns the measurement result of whether the terminal supports IPv6 to the server.

[0074] S103: Determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement results returned by the terminals.

[0075] Based on the measurement results returned by the terminals, the server can know how many of the preset number of terminals in different sampling intervals support the deployment of IPv6, and thus calculate the IPv6 deployment rate corresponding to the operator in each sampling interval.

[0076] As an example, in the target area, it is divided into three sampling intervals of type A, type B, and type C according to the operator type. 30,000 advertisements are sent to the terminals in each sampling interval, and a total of 90,000 advertisements are sent to the terminals in the target area. After the terminals execute the measurement task, they return 90,000 measurement results on whether they support IPv6. Thus, the number of terminals supporting IPv6 in these three sampling intervals can be determined respectively. Suppose among the 90,000 terminals, 25,000 terminals using type A support IPv6, 20,000 terminals using type B support IPv6, and 15,000 terminals using type C support IPv6. Then the IPv6 deployment rates corresponding to the operators in the three sampling intervals of type A, type B, and type C are 83.3%, 66.7%, and 50% respectively.

[0077] S104: According to the user quantity ratio between multiple sampling intervals, perform weighted summation on the IPv6 deployment rates to obtain the IPv6 deployment rate of the target area.

[0078] According to the data published by the institutions of different types of operators, the real user quantity ratio between different types of operators in the target area can be known. By performing weighted summation on the IPv6 deployment rates corresponding to each type of operator through this user quantity ratio, a more accurate IPv6 deployment rate can be obtained.

[0079] Taking the three major operators as different sampling intervals as an example, suppose the user quantity ratio between the three operators of type A, type B, and type C in the target area is 10:5:4, and the number of measurement results returned in each sampling interval is 30,000. The corresponding IPv6 deployment rates obtained are 83.3%, 66.7%, and 50% respectively. Then the IPv6 deployment rate of the target area is:

[0080]

[0081] Thus, in the target area, sampling intervals are divided based on different types of operators. For an equal number of terminals in different sampling intervals, measurements are made on whether IPv6 is supported, so as to determine the IPv6 deployment rates corresponding to different sampling intervals. Then, according to the actual user number ratio among different types of operators in the target area, the IPv6 deployment rates corresponding to different operators are weighted and summed to obtain the IPv6 deployment rate of the target area, avoiding calculation errors caused by unreasonable sample distribution, and thus improving the accuracy and authenticity of the calculation result of the IPv6 deployment rate.

[0082] In a possible implementation manner, step S101 can be implemented through the following steps:

[0083] A1: Divide the target area according to geographical regions to obtain multiple sub-regions.

[0084] A2: Determine multiple sampling intervals according to the permutations and combinations of multiple types of operators and multiple sub-regions.

[0085] Since the Internet development levels in each region are different, when dividing the target area according to geographical regions, the division granularity is finer. After permuting and combining with the types of operators, more sampling intervals are obtained. Therefore, when calculating the IPv6 deployment rate by weighting according to the user number ratio of sampling intervals, the measurement result of the IPv6 deployment rate of the target area is more accurate.

[0086] It can be divided according to administrative regions, such as dividing by provincial administrative regions, lower-level administrative regions, county-level administrative regions or township-level administrative regions. However, the smaller the division granularity, the more resources are required. Therefore, the division unit can be determined according to actual needs.

[0087] As an example, the types of operators in the target area include three types: type A, type B, and type C. According to geographical regions, it can be divided into sub-region 1, sub-region 2, and sub-region 3. Then, the types of operators and sub-regions are permuted and combined to obtain 9 sampling intervals. Assuming the preset quantity is 1250, the actual user number ratio of different sampling intervals and the IPv6 deployment rates corresponding to each sampling interval are shown in Table 1. Then, the calculation method of the IPv6 deployment rate of the target area is as follows:

[0088]

[0089] Table 1

[0090]

[0091] Thus, more sampling intervals can be obtained through finer-grained division, and then, based on the proportion of the number of users in different sampling intervals, weighted summation is performed on the IPv6 deployment rates of different sampling intervals obtained separately, which can improve the accuracy of calculating the IPv6 deployment rate of the target area.

[0092] In a possible implementation manner, step S103 includes:

[0093] B1: According to the measurement results of the terminals, determine an equal number of measurement results in each sampling interval.

[0094] B2: According to the measurement results of each sampling interval, determine the IPv6 deployment rate corresponding to each sampling interval respectively.

[0095] After the server receives the measurement results of the terminals, it can obtain the measurement results of each sampling interval. Due to changes in the networking situation of the terminals, it may not be possible to deliver advertisements to some terminals, resulting in the terminals being unable to return measurement results, or errors occurring during the process of the terminals returning measurement results, resulting in different numbers of measurement results for each sampling interval obtained by the server.

[0096] To avoid this situation, the number of the least measurement results in each sampling interval can be used as the measurement results of each sampling interval. For example, the preset number of advertisements delivered in each sampling interval is 1000, but the number of measurement results returned in one of the sampling intervals is the least, only 900. Then, 900 measurement results are selected from other sampling intervals for calculating the IPv6 deployment rate.

[0097] Thus, according to the equal number of measurement results in different sampling intervals, the IPv6 deployment rate is calculated. With the same deployment rate calculation standard in each sampling interval, and then weighted summation is performed according to the proportion of the number of users in different sampling intervals. When obtaining the IPv6 deployment rate of the target area, the situation of low calculation accuracy caused by unbalanced sample distribution is further avoided.

[0098] In a possible implementation manner, an advertising delivery request to a preset number of terminals in each sampling interval is restricted through a rate-limiting algorithm.

[0099] When a terminal accesses the server, the server can resolve the terminal through DNS to obtain the IP address and sampling interval corresponding to the terminal, and thus can targetedly deliver advertisements to the terminals accessing the server in the target area.

[0100] The server can use a rate-limiting algorithm, such as one of the fixed window algorithm, token bucket algorithm, or leaky bucket algorithm, etc., to limit the number of advertising delivery requests to the terminals in each sampling interval, so as to achieve the goal of delivering advertisements to the same number of terminals in each sampling interval for the purpose of measuring the IPv6 deployment rate.

[0101] Thus, the number of requests for the server to deliver advertisements can be restricted, preventing the degradation of system performance caused by excessive requests, thereby effectively improving the measurement efficiency.

[0102] In a possible implementation, after delivering advertisements to a preset number of terminals in each sampling interval, the method further includes:

[0103] If the advertisement delivery to the terminal is successful, add a record in the IP table according to the IP information of the terminal. The IP information includes the IP address of the terminal and the sampling interval where the IP address is located. The IP table includes IP address, sampling interval, and IP quantity fields. The IP quantity field is used to represent the number of IP addresses corresponding to the sampling interval of the current record in the IP table up to the current record.

[0104] The successful loading of the advertisement by the terminal represents the successful delivery of the advertisement to the terminal. Due to the influence of the terminal environment, the terminal may not be able to load the advertisement, resulting in the failure of advertisement delivery. The IP table can monitor whether the advertisement delivery to the terminals in different sampling intervals by the server is successful.

[0105] As an example, there are two sampling intervals, type A and type B, in the target area. 1250 terminals are delivered advertisements in each sampling interval. When delivering advertisements to the terminals in the type A sampling interval, 2 terminals cannot successfully load the advertisement. Then, there are only 1248 records in the type A sampling interval of the IP table. When delivering advertisements to the terminals in the type B sampling interval, 3 terminals cannot successfully load the advertisement. Then, there are only 1247 records in the type B sampling interval of the IP table. Table 2 is the IP table for this example.

[0106] Table 2

[0107]

[0108]

[0109] Thus, by establishing the IP table, the IP addresses and sampling intervals corresponding to the terminals that have successfully loaded the advertisement can be recorded and displayed, and according to the IP quantity field, the number of terminals to which the advertisement has been successfully delivered in different sampling intervals by the server can be known, thereby improving the measurement accuracy of the IPv6 deployment rate in the target area.

[0110] In a possible implementation, if the IPv6 deployment rate is measured at fixed intervals, step S102 can be implemented through the following steps:

[0111] C1: Determine N advertisement delivery time nodes.

[0112] C2: At each of the N advertising delivery time nodes, advertisements are delivered to a specified number of terminals within each sampling interval.

[0113] Among them, the specified number is the preset number / N, and the N advertising delivery time nodes are different time nodes for delivering advertisements to terminals within the target area within one measurement period.

[0114] As an example, the measurement period of the IPv6 deployment rate is one day. When delivering advertisements, in order to avoid concentrated delivery of advertisements, the advertisement delivery can be dispersed over 24 hours. Taking each whole hour as the delivery time, advertisements are delivered to the preset number / 24 terminals in each sampling interval respectively. For example, at 1:00 on the same day, advertisements are delivered to the preset number / 24 terminals in each sampling interval, and at 2:00 on the same day, advertisements are delivered to the preset number / 24 terminals that have not received advertisements in each sampling interval...

[0115] Thus, through this dispersed delivery method, the pressure on the server can be effectively dispersed, network congestion caused by concentrated delivery can be avoided, the advertisement loading speed can be increased, and thus the efficiency of deployment rate measurement can be improved.

[0116] In a possible implementation manner, after delivering advertisements to the preset number of terminals in each sampling interval, the method further includes:

[0117] If the advertisement delivery to the first terminal fails, the advertisement is redelivered to the first terminal;

[0118] If the delivery is still not successful after exceeding the preset delivery times, the advertisement delivery to the first terminal is stopped.

[0119] When the advertisement server delivers advertisements to the terminal, due to the occurrence of situations such as the terminal being disconnected from the network or other reasons, the terminal may be unable to load the advertisement, resulting in a delivery failure. At this time, the terminal cannot trigger the measurement task and thus cannot return the measurement result.

[0120] As an example, when delivering advertisements to the terminal, the advertisement server will query the measurement server to check if the delivery is completed. If the delivery is completed, the measurement server returns a successful delivery result. If the delivery fails, the advertisement can be redelivered to the terminal after a period of time. The preset delivery times can be 2 times, 3 times, etc., without limitation here. If the delivery is still not successful after exceeding the preset delivery times, the advertisement delivery to the terminal is stopped.

[0121] Thus, through the operation of repeated delivery, the probability of delivery failure can be reduced, further ensuring that an equal number of measurement results can be obtained in each sampling interval. Therefore, when performing weighted summation according to the user number ratio of the sampling interval, the accuracy of weighted calculation can be guaranteed, and the accuracy of the IPv6 deployment rate can be improved.

[0122] To describe the measurement method of the IPv6 deployment rate more clearly, the implementation steps are described in detail with the following examples. First, according to the ISO2859 sampling inspection standard, the preset number of samples to be sampled in each sampling interval every day is 1250. Then the specific measurement steps are as follows:

[0123] Step 1: Divide the target area into 31 sub-areas according to region + operator type, and divide the operators into 3 types: type A, type B, and type C, obtaining 93 network lines as the sampling intervals for extracting user terminals as samples.

[0124] Examples of sampling intervals are as follows:

[0125] Type A_Sub-region 1, Type A_Sub-region 2, Type A_Sub-region 3...

[0126] Type B_Sub-region 1, Type B_Sub-region 2, Type B_Sub-region 3...

[0127] Type C_Sub-region 1, Type C_Sub-region 2, Type C_Sub-region 3...

[0128] Step 2: Establish an advertising placement information table to record the daily advertising placement quantity of each network line. The column fields of the table include time, network line, and the quantity of placed advertisements. At the beginning of each day, the "quantity of placed advertisements" field is cleared. Table 3 is an example of an advertising placement information table.

[0129] Table 3

[0130]

[0131]

[0132] Step 3: Establish an IP table to record the IP information of each network line. The column fields of the table include network line, IP address, and IP quantity. Taking 24 hours as a cycle, at the beginning of each day, the IP quantity field is cleared. Table 4 is an example of an IP table.

[0133] Table 4

[0134] ID IP address Network line Number of IPs 1 240e:304:c00:e002 Type B - Sub-region 1 1 2 103.135.161.0 Type C - Sub-region 1 1 3 101.52.204.0 Type B - Sub-region 5 1 … 9024 111.17.26.221 Type A - Sub-region 5 1250 …

[0135] Step 4: Start the service server, advertising placement server, and measurement server. The service server is used to obtain the IP information of the terminal through an interceptor when the user terminal sends a service request. The advertising placement server is used to place advertisements to the user terminal. The measurement server is used to receive the measurement results returned by the user terminal, and to statistically calculate the IPv6 deployment rate of the target area.

[0136] Step 5: Embed JavaScript scripts in the user terminal.

[0137] Step 6: When the user accesses the business server, the business server intercepts the user's IP address and reports it to the ad server.

[0138] Step 7: The ad server delivers ads:

[0139] 1) The ad server receives the user's IP address, accurately locates the user's geographical information, etc. using DNS services, records the IP information in the IP table. First, it checks whether there are duplicate IP addresses in the network line corresponding to this IP address in the IP table. If there are duplicates, it discards this IP address and does not record it. If the number of IPs reaches 1250, it will no longer add the IP information corresponding to the network line that has reached 1250 to this IP table.

[0140] 2) Taking 24 hours as a cycle, in each network line, starting from zero, it delivers ads to approximately 53 IP addresses (1250 / 24≈53) at the front of the IP table according to the network line. After successful delivery, the ad server queries the measurement server to check if the delivery is completed. If the delivery is completed, the measurement server returns OK. If the delivery is not completed, the measurement server returns the number of uncompleted deliveries and the IP addresses. After 10 minutes, it redelivers the ads to the uncompleted IP addresses until all OK responses are received and the delivery stops. At the hour points of the day, it sequentially takes the IP addresses from (53 * hour point + 1) to (53 * (hour point + 1)) of this network line in the IP table for delivery. For example, at 10:00, it takes the IP addresses from the 53 * 10 + 1 = 531st to 53 * (10 + 1) = 583rd of this network line for delivery, and so on until 23:00.

[0141] Step 8: The script on the user terminal automatically executes after obtaining the execution task list from the measurement server, and this task list can be updated according to different requirements.

[0142] Step 9: The measurement server receives the measurement results transmitted back after the user terminal executes the script, and statistically analyzes the number of users supporting IPv6 on each network line based on the measurement results.

[0143] Step 10: The measurement server calculates the IPv6 deployment rate corresponding to each network line, and performs weighted calculation on the IPv6 deployment rate corresponding to each network line according to the user number ratio of each network line to obtain the result of the IPv6 deployment rate in the target area. Table 5 describes the user number ratio between each network line and the IPv6 deployment rate corresponding to each network line.

[0144] Table 5

[0145]

[0146] Then, for the target area

[0147]

[0148] Step 11: According to the IPv6 deployment rate result of the target area, evaluate the application status of the current Internet IPv6 and form statistical data.

[0149] Among them, as shown in Figure 2 Figure 14, it is a flowchart of an advertisement placement provided in the steps of this embodiment. When a user terminal device makes a service request, the service server obtains the IP address through an interceptor, then sends it to the placement server, and through the DNS service, returns the region and operator of the IP address to the placement server according to the IP address. Subsequently, the placement server samples according to the sampling interval of region + operator to determine the IP addresses in different sampling intervals for advertisement placement. When the placement starts, a rule table is established, that is, a placement information table and an IP table, and during the placement process, it is queried through the rule table whether the advertisement placement has been completed. When the placement is not completed, the number of unplaced advertisements is returned, and the placement server re-places the IP addresses of the uncompleted placements. After the placement is successful, the measurement task is executed by the Javascript script of the user terminal, and the measurement result is sent from the user terminal to the measurement server.

[0150] Based on the IPv6 deployment rate measurement method provided in the above embodiments, the embodiments of the present application also provide an IPv6 deployment rate measurement device, which will be introduced in detail below with reference to the accompanying drawings.

[0151] See Figure 3 Figure 21, which is a schematic diagram of an IPv6 deployment rate measurement device provided in the embodiments of the present application. The device 300 includes a determination unit 301, a placement unit 302, and a calculation unit 303:

[0152] The determination unit is used to determine multiple sampling intervals according to multiple types of operators in the target area;

[0153] The placement unit is used to place advertisements to a preset number of terminals in each sampling interval, and the advertisements are used to trigger the terminals to execute a measurement task, and the measurement task is used to return the measurement result of whether the terminals support IPv6;

[0154] The determination unit is further used to determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement result returned by the terminals;

[0155] The computing unit is configured to perform a weighted sum of the IPv6 deployment rates according to the actual proportion of the number of users among the multiple sampling intervals, so as to obtain the IPv6 deployment rate of the target area.

[0156] Therefore, sampling intervals are determined based on different types of operators in the target area, and for an equal number of terminals in different sampling intervals, measurements are made on whether IPv6 is supported, so as to determine the IPv6 deployment rates corresponding to different sampling intervals. Then, according to the actual proportion of the number of users among different types of operators in the target area, a weighted sum of the IPv6 deployment rates corresponding to different operators is performed to obtain the IPv6 deployment rate of the final target area, avoiding calculation errors caused by unreasonable sample distribution, thereby improving the accuracy and authenticity of the calculation result of the IPv6 deployment rate.

[0157] In a possible implementation manner, the determining unit is specifically configured to:

[0158] Divide the target area according to geographical regions to obtain a plurality of sub-regions;

[0159] Determine a plurality of sampling intervals according to the permutation and combination of the plurality of types of operators and the plurality of sub-regions.

[0160] Therefore, more sampling intervals can be obtained through finer-grained division, and thus a weighted sum can be performed based on the proportion of the number of users in different sampling intervals, which can improve the accuracy of the IPv6 deployment rate calculation.

[0161] In a possible implementation manner, the determining unit is specifically configured to:

[0162] Receive the measurement results of the terminals, and determine an equal number of measurement results in each sampling interval;

[0163] Determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement results of each sampling interval.

[0164] Therefore, the IPv6 deployment rate is calculated based on an equal number of measurement results in different sampling intervals, and there is the same deployment rate calculation standard among different sampling intervals. When a weighted sum is performed according to the proportion of the number of users in different sampling intervals to obtain the IPv6 deployment rate of the target area, the situation of low calculation accuracy caused by unbalanced sample distribution is further avoided.

[0165] In a possible implementation manner, the delivering unit is specifically configured to:

[0166] Deliver advertisements to a preset number of terminals in each sampling interval through a flow limiting algorithm.

[0167] Thus, the number of requests for the server to deliver advertisements can be restricted, preventing the degradation of system performance caused by excessive requests, thereby effectively improving the measurement efficiency.

[0168] In a possible implementation manner, the device further includes an adding unit:

[0169] The adding unit is configured to, if the advertisement delivery to the terminal is successful, add a record in the IP table according to the IP information of the terminal. The IP information includes the IP address of the terminal and the sampling interval where the IP address is located. The IP table includes IP address, sampling interval, and IP quantity fields. The IP quantity field is used to represent the number of IP addresses corresponding to the current record in the sampling interval in the IP table up to the current record.

[0170] Thus, by establishing the IP table, the IP addresses and sampling intervals corresponding to the terminals that have successfully loaded advertisements can be recorded and displayed, and according to the IP quantity field, the number of terminals to which the server has successfully delivered advertisements in different sampling intervals can be known, thereby improving the measurement accuracy of the IPv6 deployment rate in the target area.

[0171] In a possible implementation manner, the IPv6 deployment rate is measured at a fixed period. The delivery unit is specifically configured to:

[0172] Determine N delivery time nodes;

[0173] At each of the N delivery time nodes, deliver advertisements to a specified number of terminals in each sampling interval. The specified number is the preset number / N.

[0174] Thus, through this decentralized delivery method, the pressure on the server can be effectively dispersed, avoiding network congestion caused by centralized delivery, and improving the advertisement loading speed and the execution efficiency of the measurement task.

[0175] In a possible implementation manner, the delivery unit is further configured to:

[0176] If the advertisement delivery to the first terminal fails, redeliver the advertisement to the first terminal;

[0177] If the delivery is still not successful after exceeding the preset number of delivery attempts, stop delivering advertisements to the first terminal.

[0178] Thus, through the repeated delivery operation, the probability of delivery failure can be reduced, further ensuring that an equal number of measurement results can be obtained in each sampling interval, so as to ensure the accuracy of the weighted calculation when performing weighted summation according to the user quantity ratio of the sampling interval, thereby improving the accuracy of the IPv6 deployment rate.

[0179] Based on the method for measuring the IPv6 deployment rate provided in the above embodiments, an embodiment of the present application further provides a computer device, which includes a processor and a memory:

[0180] The memory is used to store a computer program;

[0181] The processor is configured to execute the method according to any one of the above according to the computer program.

[0182] Based on the method for measuring the IPv6 deployment rate provided in the above embodiments, an embodiment of the present application further provides a computer-readable storage medium, which is used to store a computer program, and the computer program realizes the execution of the method according to any one of the above when executed by a computer device.

[0183] It should be noted that the various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

[0184] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for measuring IPv6 deployment rate, characterized in that: The method comprises: Determine multiple sampling intervals according to multiple types of operators in the target area; Place advertisements to a preset number of terminals within each sampling interval, where the advertisements are used to trigger the terminals to perform a measurement task, where the measurement task is used to return a measurement result of whether the terminals support IPv6; Determine, according to the measurement result returned by the terminal, the IPv6 deployment rate corresponding to each sampling interval; According to the ratio of the actual number of users between the multiple sampling intervals, the IPv6 deployment rate is weightedly summed to obtain the IPv6 deployment rate of the target area.

2. The method according to claim 1, characterized in that The determining of multiple sampling intervals according to multiple types of operators in the target area includes: Divide the target area according to geographical areas to obtain multiple sub-areas; A plurality of sampling intervals are determined according to the plurality of types of operators and the arrangement and combination of the plurality of sub-areas.

3. The method according to claim 1, characterized in that Determining the IPv6 deployment rate corresponding to each sampling interval according to the measurement result returned by the terminal includes: Determining an equal number of measurement results in each sampling interval according to the measurement results of the terminal; According to the measurement result of each sampling interval, the IPv6 deployment rate corresponding to each sampling interval is determined.

4. The method according to claim 1 or 2, characterized in that: The delivering advertisements to a preset number of terminals in each sampling interval includes: Advertisements are delivered to a preset number of terminals within each sampling interval using a current limiting algorithm.

5. The method according to claim 1 or 2, characterized in that: After delivering advertisements to a preset number of terminals in each sampling interval, the method further includes: If the advertisement is successfully delivered to the terminal, a record is added to the IP table according to the IP information of the terminal, the IP information includes the IP address of the terminal and the sampling interval where the IP address is located, the IP table includes the IP address, sampling interval and IP quantity field, the IP quantity field is used to indicate the number of IP addresses corresponding to the sampling interval corresponding to the current record in the IP table as of the current record.

6. The method according to claim 1, characterized in that The IPv6 deployment rate is measured at a fixed period, and the delivering advertisements to a preset number of terminals in each sampling interval includes: Determine N delivery time nodes; At each of the N delivery time nodes, advertisements are delivered to a specified number of terminals within each sampling interval, where the specified number is a preset number / N.

7. The method according to claim 1, characterized in that After delivering advertisements to a preset number of terminals in each sampling interval, the method further includes: If the advertisement delivery to the first terminal fails, re-deliver the advertisement to the first terminal; If the delivery is still unsuccessful after exceeding the preset delivery times, the delivery of advertisement to the first terminal is stopped.

8. A device for measuring IPv6 deployment rate, characterized in that: The device comprises a determination unit, a delivery unit and a calculation unit: The determining unit is used to determine a plurality of sampling intervals according to a plurality of types of operators in the target area; The delivery unit is used to deliver advertisements to a preset number of terminals in each sampling interval, the advertisements are used to trigger the terminals to perform a measurement task, and the measurement task is used to return a measurement result of whether the terminals support IPv6; The determining unit is further configured to determine the IPv6 deployment rate corresponding to each sampling interval according to the measurement result returned by the terminal; The calculation unit is used to perform weighted summation on the IPv6 deployment rate according to the actual user quantity ratio between the multiple sampling intervals to obtain the IPv6 deployment rate of the target area.

9. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 7 according to the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer device, the method according to any one of claims 1 to 7 is implemented.