A content distribution network domain name traffic scheduling method and system
By constructing an optimization model with domain names as the decision-making unit, utilizing a cluster of billing functions and price coefficients, and combining simulated annealing optimization and branch-bound pruning, the total cost of CDN bandwidth billing was solved, achieving optimal traffic scheduling and feasible business decisions under various billing models.
Patent Information
- Application Number
- CN202611535631.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot effectively solve the problem of total CDN bandwidth billing costs. They cannot achieve optimal and efficient traffic scheduling under the hard constraint of the entire domain name billing cycle belonging to a single CDN provider. Furthermore, they suffer from high computational overhead and high migration risks.
An optimization model with domain names as the decision-making unit is constructed. By using a cluster of billing functions and price coefficients, and through portability constraint filtering and periodic profiling filtering, combined with simulated annealing optimization and branch-bound pruning, the optimal indivisible assignment scheme is generated, and a feasible scheduling scheme is output.
It achieves optimality and efficiency in domain traffic scheduling under various billing modes, reduces computational overhead, minimizes migration risks, outputs feasible scheduling solutions, and supports multi-vendor expansion and reconcilable business decisions.
Smart Images

Figure CN123185262A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of CDN transmission technology, and in particular to a method and system for scheduling domain name traffic in a content delivery network. Background Technology
[0002] CDN has become an important foundational technology for network transmission. The core objective of CDN is to schedule user requests to the nearest edge node with the best service capabilities, thereby reducing access latency and improving service quality.
[0003] In actual CDN usage, businesses typically purchase acceleration services from multiple CDN providers simultaneously. Different CDN providers employ differentiated bandwidth billing models, with mainstream models including monthly 95th percentile billing, daily 95th percentile monthly average billing, and daily peak monthly average billing. The unit bandwidth price varies significantly across these different billing models. Business traffic is based on domain names as the fundamental unit. Under actual business constraints, a single domain name must belong entirely to the same CDN provider throughout the entire billing cycle; traffic cannot be arbitrarily split and allocated to multiple providers based on request granularity. Different domain names exhibit different peak times and cyclical fluctuation patterns in their bandwidth time-series curves. How to rationally assign domain name combinations to providers with corresponding billing models, while significantly reducing the total CDN bandwidth billing cost without changing the total business traffic, is a technical problem that the industry has been continuously optimizing. Existing technologies mainly include the following solutions: The first category is billing-aware CDN bandwidth scheduling patents, which mainly focus on online peak-shifting scheduling at the node, user, and request granularity. They collect real-time bandwidth data to pull traffic from high-peak nodes to low-peak nodes. However, this type of solution uses nodes, users, and access requests as scheduling objects and does not take "the entire billing cycle of the domain name belonging to a certain vendor" as a discrete decision variable. It cannot establish a global assignment optimization model under the condition of multiple types of billing functions coexisting. It is only suitable for peak-shifting traffic during runtime and cannot output business decisions on domain name migration for the next billing cycle.
[0004] The second category is domain pooling and cost optimization. Existing solutions cluster businesses according to user profiles to form domain pools, using cost as a constraint rather than a direct optimization target. Clustering is based on the similarity of business profiles, without combining vendor billing functions, and lacks provable lower bound pruning methods. Its scheduling object is domain name to node, rather than domain name to billing vendor for the entire cycle.
[0005] The third category involves research on percentile-based billing traffic engineering. Adler et al.'s classic 2011 paper mathematically modeled AVG, MAX, and 95th percentile contracts, proving that 95th percentile cost optimization is an NP-hard problem. However, the core assumption of this paper is that traffic can be arbitrarily finely divided and allocated to various ISPs. Subsequent academic work by Cascara, Goldenenberg, and COIN also relies on the premise that time-slot traffic can be continuously divided. When the constraints are that domain names are indivisible and the entire period belongs to a single vendor, all such continuous traffic allocation algorithms become inapplicable. While some mixed-integer programming-related works address 95th percentile billing allocation, the decision variables are time-slot routing edge selection, not indivisible discrete assignment at the domain level, and they lack a dimensionality reduction-exact solution transition scheme.
[0006] The fourth category is billing auxiliary calculation, which mainly realizes the rapid incremental statistics of percentile billing values. It only solves the billing value calculation efficiency, but does not solve the decision-making problem of how to assign domain names to minimize billing.
[0007] In summary, the existing technology has the following shortcomings: 1. Misalignment of decision-making units: Existing online scheduling and time-slot-level continuous traffic allocation schemes all rely on the assumption that traffic can be split and perform traffic scheduling based on requests, nodes, and time slots. They cannot handle the hard business constraint that "the domain name billing cycle belongs to a single vendor as a whole" and cannot output the business decision of migrating the domain name to the vendor in the next billing cycle. The underlying model structure of the problem is fundamentally different, not a difference in the accuracy of the solution.
[0008] 2. Lack of a unified model for discrete assignment of mixed billing: Multiple billing functions coexist, including monthly 95th percentile, daily 95th percentile average, and daily peak average. The price coefficients of each vendor are different, and the total cost is non-convex. This combination assignment is an NP-hard problem. Existing technologies either only handle a single 95th percentile billing mode or set the cost only as a constraint condition, without using it as a direct optimization target.
[0009] 3. The solution scale and optimality cannot be balanced: The number of business domain names can reach thousands, and the search space for direct and accurate solutions explodes exponentially; existing clustering dimensionality reduction methods are based on user profiles and are disconnected from billing cost targets, so the optimal solution for billing caliber cannot be guaranteed after dimensionality reduction.
[0010] 4. The computational cost of scheme evaluation is huge: Every domain name assignment adjustment requires a complete re-aggregation of the bandwidth time sequence of all domain names and recalculation of percentile and peak statistical indicators. The computational cost is high in large-scale neighborhood search scenarios.
[0011] 5. Lack of migration risk constraint mechanism: Some domain names with special configurations are not allowed to be migrated; the bandwidth timing of some domain names fluctuates drastically and has no stable cycle. If a migration plan is directly output, the billing of the theoretically calculated low-cost plan will deviate significantly from the simulation results after implementation.
[0012] Therefore, there is an urgent need for a domain traffic scheduling technology that adapts to the indivisible ownership constraint of the entire domain lifecycle, is compatible with multiple CDN hybrid billing modes, balances solution efficiency and optimality, and manages the risk of domain migration. Summary of the Invention
[0013] This application addresses the technical problems existing in the prior art by providing a method for scheduling domain name traffic in a content delivery network, including the following steps: S1: Collect bandwidth time-series data of each domain name under each vendor within the billing period, and parse the billing method and price coefficient of each vendor to obtain the billing function cluster composed of the billing function corresponding to the billing method of each vendor, and construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization target. S2: Perform portability constraint screening and periodic profile screening on the domain names to determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution; S3: Divide the candidate domain name set into indivisible assignment units, and use the monotonically non-decreasing property of the billing function family on the point-by-point non-negative superposition of the vendor aggregation time sequence. Use the current cost of the already assigned partial solution as the lower bound of the cost of all its subsequent expansions, and perform branch pruning to solve the indivisible assignment units to obtain the optimal assignment scheme of the billing caliber at the granularity of the indivisible assignment units. S4: Perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and output a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
[0014] Furthermore, in S1, the parsed billing function family includes the monthly 95th percentile billing function, the daily 95th percentile monthly average billing function, and the daily peak monthly average billing function, wherein: The vendor's aggregation time sequence is the sum of the bandwidth of all domains under the vendor's name over time, and its formula is: For domain name serial number, To assign domain names to vendor mappings, For domain name At sampling time Bandwidth: The monthly 95th percentile billing function is: That is, the empirical 95th percentile value of the whole month bandwidth sequence; The 95th percentile monthly average billing function is: This is the monthly average of the 95th percentile of daily experience. The daily peak and monthly average billing function is: This is the monthly average of the daily peak bandwidth; Assignment scheme The corresponding total cost is calculated as follows:
[0015] in, For manufacturers, For the empirical 95th percentile operator For vendor aggregation timing, This represents the number of sampling points per day. The number of complete days within the billing cycle. For the sequence number of days, For the first The set of sampling times for each day; the billing function family serves as both the optimization objective of the optimization model and the common caliber for billing calculation.
[0016] Further, in S2, the portability constraint screening includes: Based on the vendor's configuration, domain names are divided into a fixed set and a movable set. The fixed set only participates in the billing calculation of the aggregation time series and does not enter the search space; the movable domain names are subject to an entry threshold based on their billing value. The billing value will be lower than the aforementioned entry threshold. Long-tail domain name filtering This sets the threshold for domain name billing.
[0017] Furthermore, in S2, the periodic image filtering includes: Additive time series decomposition is performed on the time series of the migrated domain name to obtain trend components, seasonal components and residual components; Calculate the cycle energy ratio , in For domain name Seasonal portion For variance operators; When the cycle energy ratio Greater than the periodic energy ratio threshold A domain name is considered a periodic domain name if it meets at least one of the following conditions: (a) The range of the seasonal component is greater than the range of the residual component; (b) The spectrum of the time series exhibits a primary or secondary peak near the daily frequency; Domains with unstable, non-periodic patterns are removed or have their migration candidate priority reduced.
[0018] Furthermore, the initial screening in S2 is a greedy initial screening, specifically: according to the domain name billing value contribution from largest to smallest, domain names are tentatively moved out of the source vendor or into the destination vendor until the aggregate billing value of the source vendor reaches the preset target level. The candidate domain name set and the initial feasible solution are obtained. The target water level.
[0019] Furthermore, the optimization of the candidate domain name set by S3 specifically includes: S31: Determine whether the size of the candidate domain name set exceeds the preset precision solution threshold; S32: When the size of the candidate domain name set exceeds the exact solution threshold, a metaheuristic global search optimizer with a target water level approximation energy function is used to perform global search optimization on the initial feasible solution to obtain intermediate migration schemes. Then, the intermediate migration schemes are performed in descending order of total domain name traffic to obtain a preset number of approximately equal-flow heaps as indivisible assignment units. S33: When the size of the candidate domain name set does not exceed the exact solution threshold, the domain names in the candidate domain name set are directly used as indivisible assignment units; S34: Utilize the monotonically non-decreasing property of the non-negative superposition of the billing function family on the aggregation time sequence, and use the current cost of the partial assignment as the lower bound of the subsequent expansion to perform branch delimitation to obtain the optimal assignment scheme.
[0020] Furthermore, in S32, the metaheuristic global search optimization is a simulated annealing optimizer, whose energy function is:
[0021] in, For the candidate migration set, These are the billing functions for the source and destination vendors, respectively. The time series after removing the candidate migration set from the aggregated time series of the source vendor The time series of the host vendor aggregated and superimposed with the candidate migration set is the final time series. Weighting of penalties for host side; In simulated annealing optimization, the neighborhood operation adds or deletes only one domain at a time. The aggregation timing on both sides is as follows Incremental updates, new states are updated according to the Metropolis criterion with acceptance probability. Accept, and according to the cooling coefficient by Cooling down, among which, For the energy of the new state, The energy of the current state. The annealing temperature. The cooling coefficient; The balanced clustering dimensionality reduction is: based on the total traffic over a domain period. Sort the candidate domains in descending order, and then place each candidate domain into the heap with the smallest current cumulative traffic, forming... A heap with approximately equal flow is used to reduce the search space for an exact solution. Reduced to , in, For domain name Total periodic flow, For the number of heaps, This represents the number of candidate domain names.
[0022] Furthermore, in S34, the branch-bound solution includes: for the assigned... The partial solution of an indivisible assignable unit has its current cost as the lower bound for all its subsequent expansions, and its calculation formula is as follows:
[0023] in, The number of units already assigned. For manufacturers Price coefficient, For the manufacturers belonging to the fixed set The domain name aggregation time sequence is used as the initial base. For the first The aggregation timing of each assigned unit The serial number of the assigned unit. (Arbitrary full extension) is the billing cost of any full extension scheme; when the lower bound is... Not less than the current optimal cost If the branch is removed, the corresponding assignment after the search is complete will be the optimal assignment scheme.
[0024] Furthermore, when there are three or more vendors, the branch and bound solution in S3 is extended to perform multi-branch branch and bound on multiple vendors, or to perform simulated annealing optimization and branch and bound solution iteratively by pairing vendors one by one.
[0025] This application also provides a content delivery network domain name traffic scheduling system, including a data acquisition unit, a profiling and constraint unit, an optimization decision-making unit, and an evaluation output unit, wherein: The data acquisition unit is used to collect bandwidth time-series data of each domain name under each vendor within the billing period, and to parse the billing method and price coefficient of each vendor to obtain a billing function cluster consisting of the billing function corresponding to the billing method of each vendor, and to construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization target. The profiling and constraint unit is used to perform portability constraint screening and periodic profiling screening on domain names, determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution. The optimization decision unit is used to divide the candidate domain name set into indivisible assignment units, and utilizes the monotonically non-decreasing property of the billing function family on the point-by-point non-negative superposition of the vendor aggregation time sequence. The current cost of the already assigned partial solution is used as the lower bound of the cost of all its subsequent expansions. Branch pruning is performed on the indivisible assignment units to obtain the optimal assignment scheme of the billing caliber at the granularity of the indivisible assignment units. The evaluation output unit is used to perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and outputs a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
[0026] In practical applications, the system and the units described in this application can be deployed on a single target server or each unit can be deployed independently on different target servers. In particular, if necessary, in order to provide more powerful computing capabilities, the units can also be deployed on a cluster of target servers.
[0027] Therefore, the technical solution of this application constructs a multi-mode billing function cluster as the optimization objective. The optimization objective is consistent with the billing accounting caliber of the vendors, and the output results can directly support domain name migration business decisions. By pre-screening and shrinking the solution space, the migration risk of discrepancies between simulation and actual billing is avoided; a dual-engine hierarchical solution strategy is adopted, combined with provable lower bound branching and pruning, to balance solution efficiency and optimality; and the computational overhead is reduced by using aggregated time-series incremental updates. At the same time, it supports multi-vendor expansion and parallel evaluation of multiple schemes, and outputs reconcilable scheduling reports.
[0028] To provide a clearer and more comprehensive understanding of this application, the specific embodiments of this application will be described in detail below with reference to the accompanying drawings. Attached Figure Description
[0029] Figure 1 This is a flowchart illustrating the content delivery network domain name traffic scheduling method according to an embodiment of this application. Figure 2 This is a schematic diagram of a content delivery network domain name traffic scheduling system according to an embodiment of this application; Figure 3 This is a schematic diagram of the process of step S3, the dual-engine hierarchical solution, in the embodiments of this application. Detailed Implementation
[0030] The technical solutions in the embodiments of this application will now be explained in conjunction with the accompanying drawings. The embodiments described herein are clearly and completely presented. Obviously, the described embodiments are merely a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0031] Please see Figure 1 The technical solution of this application is a method for scheduling domain name traffic in a content delivery network, which takes the overall domain name ownership by the vendor within the billing cycle as an indivisible 0-1 decision variable. The method includes the following steps: S1: Collect bandwidth time-series data of each domain name under each vendor within the billing period, and parse the billing method and price coefficient of each vendor to obtain the billing function cluster composed of the billing function corresponding to the billing method of each vendor, and construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization target. S2: Perform portability constraint screening and periodic profile screening on the domain names to determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution; S3: Divide the candidate domain name set into indivisible assignment units, and use the monotonically non-decreasing property of the billing function family on the point-by-point non-negative superposition of the vendor aggregation time sequence. Use the current cost of the already assigned partial solution as the lower bound of the cost of all its subsequent expansions, and perform branch pruning to solve the indivisible assignment units to obtain the optimal assignment scheme of the billing caliber at the granularity of the indivisible assignment units. S4: Perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and output a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
[0032] Corresponding to the technical solution of the above-mentioned method, this application provides a content delivery network domain name traffic scheduling system, including a data acquisition unit (i.e., data acquisition layer), a profiling and constraint unit (i.e., profiling and constraint layer), an optimization decision unit (i.e., optimization decision layer), and an evaluation output unit (i.e., evaluation output layer), wherein: The data acquisition unit is used to collect bandwidth time-series data of each domain name under each vendor within the billing period, and to parse the billing method and price coefficient of each vendor to obtain a billing function cluster consisting of the billing function corresponding to the billing method of each vendor, and to construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization target. The profiling and constraint unit is used to perform portability constraint screening and periodic profiling screening on domain names, determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution. The optimization decision unit is used to optimize the candidate domain name set to obtain the optimal assignment scheme; The evaluation output unit is used to perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and outputs a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
[0033] Please refer to Figure 2. Figure 2 This is a schematic diagram of a content delivery network domain name traffic scheduling system according to an embodiment of this application. The technical solution of this application is described below in conjunction with various preferred embodiments. Taking the overall domain name ownership vendor within the billing period as an indivisible 0-1 decision variable, the following business scenario is used as an example: An Internet service simultaneously accesses multiple CDN vendors, including vendors billed by monthly 95th percentile, daily 95th percentile monthly average, and daily peak monthly average. The total number of domain names is 1200, the bandwidth sampling granularity is 5 minutes, that is, the number of sampling points M=288 per day, and the billing period is one calendar month.
[0034] S1: Collect bandwidth time-series data of each domain name under each vendor within the billing period, and parse the billing method and price coefficient of each vendor to obtain a billing function cluster consisting of the billing functions corresponding to the billing methods of each vendor. Construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization objective.
[0035] This step is performed by the system's data acquisition unit. First, it collects historical bandwidth time-series data for the "domain-vendor" dimension of the billing cycle, recording the bandwidth of the corresponding domain under the corresponding CDN vendor at each sampling time. The unit is Gbps; simultaneously, it reads the service configurations of each CDN provider, and parses the corresponding billing model and unit bandwidth price coefficient for each provider. .
[0036] The vendor's aggregation time sequence is the sum of the bandwidth of all domains under the vendor's name over time, and its formula is: , For domain name serial number, To assign domain names to vendor mappings, For domain name At sampling time Bandwidth: The core of constructing the optimization model is establishing a billing function family, which includes three types of billing functions: monthly 95th percentile billing function, daily 95th percentile monthly average billing function, and daily peak monthly average billing function. As a preferred implementation method, its calculation method is as follows: The monthly 95th percentile billing function is: , which is the empirical 95th percentile value of the entire monthly bandwidth sequence. It means that all MD bandwidth sampling points of the vendor v complete billing cycle are taken, sorted in ascending order, and the empirical 95th percentile value is taken as the billing bandwidth of the vendor.
[0037] The 95th percentile monthly average billing function is: This means that the monthly average of the 95th percentile of the daily experience is calculated separately for each day, and the 95th percentile of each of the D days in a month is taken as the arithmetic average to obtain the billed bandwidth.
[0038] The daily peak and monthly average billing function is: This is the monthly average of the daily peak bandwidth. It is calculated by taking the maximum bandwidth time sequence value for each day and arithmetically averaging the daily peak values over D days to obtain the billing bandwidth.
[0039] in, For manufacturers, For the empirical 95th percentile operator For vendor aggregation timing, This represents the number of sampling points per day. The number of complete days within the billing cycle. For the sequence number of days, For the first The set of sampling times for each day; the billing function family serves as both the optimization objective of the optimization model and the common caliber for billing calculation.
[0040] Complete assignment scheme The total cost is the weighted sum of the billing values of each vendor, which is the direct optimization objective:
[0041] in, Let v be the unit bandwidth price coefficient for vendors; the constraint of the optimization model is: each domain name can only be assigned to one vendor for a complete billing cycle, that is, the domain name cannot be split.
[0042] This step involves completing the raw data collection, transforming various commercial billing rules into a computable family of mathematical billing functions, and optimizing the objective function. The algorithm is completely consistent with the actual billing logic of CDN providers. The subsequent algorithm output optimization target is the total actual bill cost, so as to avoid the inconsistency between the simulation target and the actual billing.
[0043] S2: Perform portability constraint screening and periodic profiling on the domain names to determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution.
[0044] This step is performed by the system profiling and constraint unit, and includes transferable constraint filtering, periodic profiling filtering, and greedy initial filtering. As a preferred implementation method, the specific details are as follows: The portability constraint filtering includes: reading the vendor's business configuration, and based on the vendor's configuration, dividing all domain names into a fixed set F and a portable set M, where: Fixed set F: contains domains that are not allowed to migrate due to special business configurations and contractual constraints; the bandwidth of this set of domains participates in the aggregated time-series billing calculation of various vendors, but does not enter the optimization search space and will not be assigned to migration by the algorithm, that is, it only participates in the aggregated time-series billing calculation and does not enter the search space.
[0045] Migrationable set M: Domains that are allowed to be migrated entirely between vendors from a business perspective. An entry threshold is set for migrationable domains based on their billing value. The billing value will be lower than the aforementioned entry threshold. Long-tail domain name filtering This is the entry threshold for domain name billing value (the billing bandwidth value of the domain name is calculated separately according to the billing function of its current vendor).
[0046] For example, take =0.1Gbps, within the migrated set, the single domain billing value is lower than Long-tail domains with low traffic are directly eliminated and will not be included in the subsequent candidates. Long-tail domains contribute very little to the total cost; their participation in optimization will only expand the search scale, and their elimination will not affect the final optimization effect.
[0047] Periodic profile filtering: Additive time-series decomposition is performed on the time series of the migrateable domains selected in the previous step to obtain trend components, seasonal components, and residual components. The bandwidth time series of each domain is then analyzed. Decomposed into trend components and seasonal (cycle) components. , residual components.
[0048] Calculate the cycle energy ratio , in For domain name Seasonal portion For variance operators; Set the periodic energy ratio threshold For example, taking values =0.08, Determination method: When the periodic energy ratio Greater than the periodic energy ratio threshold A domain name is considered a periodic domain name if it meets at least one of the following conditions: (a) The range of the seasonal component is greater than the range of the residual component; (b) The spectrum of the time series exhibits a primary or secondary peak near the daily frequency; If the above conditions are not met, it means that the bandwidth timing pattern of the domain name fluctuates violently and lacks stable periodicity, and it belongs to the unstable domain name pattern. The unstable domain name pattern will be directly removed or the migration candidate priority will be reduced and it will not be given priority to participate in the domain name migration assignment.
[0049] Therefore, this step involves pre-filtering to avoid migration and landing risks: if the domain name bandwidth does not have a stable cycle, the optimal assignment obtained from historical time-series simulation may change drastically during the actual operation of the next billing cycle, resulting in a huge deviation between the actual bill and the simulation results.
[0050] The greedy initial screening process is applied to the set of migrateable domains obtained from the previous two screening layers. Specifically, it involves tentatively moving domains from the source vendor or into the destination vendor in descending order of their billing value contribution, until the aggregate billing value of the source vendor reaches the preset target level. The candidate domain name set and the initial feasible solution are obtained, and the target water level is determined. Set according to the source / destination vendor's contract bandwidth or business objectives.
[0051] Step S2 shrinks the solution search space of the optimization problem from the source, filtering out non-transferable, low-value, and unstable domain names; the greedy initial screening quickly produces a high-quality initial feasible solution, which can reduce the iteration convergence time of the subsequent optimization step S3.
[0052] S3: Divide the candidate domain name set into indivisible assignment units, and use the monotonically non-decreasing property of the billing function family for point-by-point non-negative superposition of the vendor aggregation time sequence. Use the current cost of the already assigned partial solution as the lower bound of the cost of all its subsequent expansions, and perform branch pruning to solve the indivisible assignment units to obtain the optimal assignment scheme of the billing caliber at the granularity of the indivisible assignment units.
[0053] Please see Figure 3 Specifically, it includes: S31: Determine whether the size of the candidate domain name set exceeds the preset precision solution threshold, set the precision solution threshold, for example, set the threshold to 20-25, and count the number of elements in the current candidate domain name set.
[0054] If the number of candidate domain names exceeds the threshold, proceed to step S32; If the number of candidate domain names is less than or equal to the threshold, proceed to step S33.
[0055] S32: When the size of the candidate domain name set exceeds the exact solution threshold, a metaheuristic global search optimizer based on the target water level approximation energy function is used to perform global search optimization on the initial feasible solution to obtain intermediate migration schemes. Subsequently, the intermediate migration schemes are subjected to balanced heap clustering dimensionality reduction in descending order of total domain name traffic to obtain a preset number of approximately equal-flow heaps as indivisible assignment units, wherein: Simulated annealing optimization: In step S32, the metaheuristic global search optimization is a simulated annealing optimizer, whose energy function is:
[0056] in, For the candidate migration set, These are the billing functions for the source and destination vendors, respectively. The time series after removing the candidate migration set from the aggregated time series of the source vendor The time series of the host vendor aggregated and superimposed with the candidate migration set is the final time series. The penalty weight for the host provider (e.g., a value of 0.1-0.5) means: the first term constrains the source provider's billing value to be as close as possible to the target level; the second term is the penalty term, which avoids migrating a large number of domains to the host provider, causing excessive increases in the host provider's billing: used to control the penalty intensity of the increase in the host provider's billing.
[0057] In simulated annealing optimization, each neighborhood operation either adds one domain name to the candidate migration set or removes one domain name from the set; incremental updates the aggregation time series.
[0058] The meaning of this formula is: it is not necessary to sum all domain names again; it is only necessary to add or subtract the domain names that were added or deleted from the original aggregated time sequence. bandwidth sequence This incremental update method has a computational complexity of [missing information - likely a time complexity] for a single neighborhood evaluation. By decoupling the total number of time-series sampling points, computational load, and total number of domain names, computational overhead is significantly reduced in large-scale domain name scenarios.
[0059] The new state is calculated using the acceptance probability formula according to the Metropolis criterion:
[0060] in, For the energy of the new state, The energy of the current state. The annealing temperature. For the cooling coefficient, if the new state energy is lower, it is unconditionally acceptable; if the new state energy is higher, it is acceptable. Probabilistically accepting inferior solutions, escaping local optima; performing a cooling operation at the end of each iteration. Example: Initial temperature =2000, cooling coefficient The temperature is iterated L=1000 times per temperature, and the termination temperature is 1.
[0061] Balanced clustering dimensionality reduction: Total traffic per domain period Sort the candidate domains in descending order, and then place each candidate domain into the heap with the smallest current cumulative traffic, forming... A heap with approximately equal flow, where all domain names within each heap are bound together as an indivisible assignable unit, thus expanding the search space for an exact solution. Reduced to , in, For domain name Total periodic flow, For the number of heaps, This represents the number of candidate domain names.
[0062] After dimensionality reduction, the search space is reduced to H (for example, taking the value 10) is much smaller than n, which greatly compresses the branch and bound search size.
[0063] Simulated annealing can also be replaced by other metaheuristic algorithms such as genetic algorithms, tabu search, and particle swarm optimization.
[0064] S33: When the size of the candidate domain name set does not exceed the exact solution threshold, the domain names in the candidate domain name set are directly used as indivisible assignment units. In small-scale scenarios, there is no need for clustering dimensionality reduction, and the domain name itself is directly used as the assignment unit for branch delimitation.
[0065] S34: Utilize the monotonically non-decreasing property of the non-negative superposition of the billing function family on the aggregation time sequence, and use the current cost of the partial assignment as the lower bound of the subsequent expansion to perform branch delimitation to obtain the optimal assignment scheme.
[0066] All domain name bandwidth in this application embodiment The billing functions are categorized into three types: monthly 95th percentile, daily 95th percentile monthly average, and daily peak monthly average. For aggregated time series, a non-negative superposition operation is performed, resulting in a monotonic, non-decreasing billing output value. (The last sentence appears to be incomplete and possibly refers to a separate, unrelated point about assigning billing functions.) For partial solutions of indivisible units, construct a lower bound formula:
[0067] in: The number of indivisible units that have been assigned. Fixed set F belongs to the manufacturer The aggregation sequence of domain names serves as the computational foundation for branch delimitation and participates in the lower bound calculation throughout the entire process; No. The aggregation timing of an indivisible assignable unit; This part assigns the corresponding lower bound of cost: This partial solution is further extended to the total billing cost of any complete assignment scheme.
[0068] The formula implies that for any complete assignment obtained by expanding upon this partial solution, the total billing cost is always greater than or equal to this lower bound. .
[0069] Branch pruning rules: Maintain the current optimal cost globally. During the branch search process, if the calculation yields... The , indicates that none of the subsequent complete solutions in this branch can be better than the current optimal solution, so this branch is directly pruned, and the recursive search continues; the search of all branches ends, and the result is recorded. The corresponding assignment is the optimal assignment scheme based on the billing caliber.
[0070] Therefore, it can be seen that simulated annealing is responsible for quickly finding a better intermediate solution for large-scale problems; clustering reduces the dimensionality and compresses the search space; and provable lower bound pruning based on the monotonicity of the billing function ensures that the output assignment is optimal at the dimensionality reduction unit granularity, thus overcoming the deficiency of traditional metaheuristic algorithms in lacking optimality guarantees.
[0071] As an alternative technical solution, the branch delimitation of the two vendors can be replaced by 0-1 mixed integer programming solution. This lower bound formula can be used as the pruning lower bound or hot start condition of the MIP solver.
[0072] In addition, when the number of service providers is greater than or equal to 3, there are two optional processing schemes: Scheme 1: Modify the branch delimitation to multi-branch branch delimitation, and each assignment unit can choose to be assigned to any one of the vendors; Scheme 2: Keep the branch delimitation logic of two vendors unchanged, select vendors in pairs in a loop, iterate and execute simulated annealing + branch delimitation solution, and output the multi-vendor global assignment after iterative convergence.
[0073] S4: Perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and output a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
[0074] The optimal assignment scheme will be obtained. Substitute this into the following formula,
[0075] Calculate the billing bandwidth and total billing cost for each vendor; at the same time, read the baseline plan (without domain migration, original domain ownership) and calculate the changes in billing values for each vendor, the difference in total cost, and the cost savings rate relative to the baseline.
[0076] This step involves evaluating multiple candidate assignment schemes in parallel; outputting a scheduling scheme report, which includes: billing details for each vendor, cost savings rate, and a complete list of domain name migrations; all calculation processes are recorded, and the output report can be directly reconciled with CDN vendor bills.
[0077] Therefore, this step uses a unified and optimized billing function cluster with completely consistent features to evaluate multiple options, outputting operational reports that can be implemented and reconciled, directly informing business parties which domains need to be migrated to which CDN provider in the next billing cycle.
[0078] In summary, the technical effects achieved by this application are as follows: 1. Adapting to hard business constraints: Using the domain name billing cycle as the overall vendor as an indivisible 0-1 decision variable, abandoning the assumption that traffic can be arbitrarily split in existing technology, and solving the problem of misalignment between the existing scheduling model and the actual business constraint model.
[0079] 2. Unified modeling for multiple mixed billing: Supports billing from multiple vendors based on monthly 95th percentile, daily 95th percentile average, and daily peak average. The billing function serves as the direct optimization target, and the simulation and actual bills are from the same source and can be reconciled.
[0080] 3. Risk prevention and control: Transferable screening + periodic profile filtering, screening out non-transferable, long-tail, and time-series oscillating domain names, to avoid the billing from deviating significantly from the simulation after the theoretically optimal solution output by the algorithm is implemented.
[0081] 4. Balancing efficiency and optimality: Greedy initial screening yields the initial solution; large-scale scenario simulated annealing global search balances the dimensionality reduction of clustering and compresses the exponentially ...
[0082] 5. High scalability: Supports multi-vendor scheduling and outputs complete and feasible domain migration lists and cost assessment reports, directly supporting business operation decisions.
[0083] This application embodiment also provides a storage medium storing a computer program, which is executed by a processor to perform the content delivery network domain name traffic scheduling method as described above.
[0084] This application also provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the content delivery network domain name traffic scheduling method as described above.
[0085] It should be noted that those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, which may include, but is not limited to, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0086] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for scheduling domain name traffic in a content delivery network, characterized in that, Using the overall domain name ownership by the vendor within the billing cycle as an indivisible 0-1 decision variable, the method includes the following steps: S1: Collect bandwidth time-series data of each domain name under each vendor within the billing period, and parse the billing method and price coefficient of each vendor to obtain the billing function cluster composed of the billing function corresponding to the billing method of each vendor, and construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization target. S2: Perform portability constraint screening and periodic profile screening on the domain names to determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution; S3: Divide the candidate domain name set into indivisible assignment units, and use the monotonically non-decreasing property of the billing function family on the point-by-point non-negative superposition of the vendor aggregation time sequence. Use the current cost of the already assigned partial solution as the lower bound of the cost of all its subsequent expansions, and perform branch pruning to solve the indivisible assignment units to obtain the optimal assignment scheme of the billing caliber at the granularity of the indivisible assignment units. S4: Perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and output a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
2. The content delivery network domain name traffic scheduling method according to claim 1, characterized in that, In S1, the parsed billing function family includes the monthly 95th percentile billing function, the daily 95th percentile monthly average billing function, and the daily peak monthly average billing function, wherein: The vendor's aggregation time sequence is the sum of the bandwidth of all domains under the vendor's name over time, and its formula is: , For domain name serial number, To assign domain names to vendor mappings, For domain name At sampling time Bandwidth: The monthly 95th percentile billing function is: That is, the empirical 95th percentile value of the whole month bandwidth sequence; The 95th percentile monthly average billing function is: This is the monthly average of the 95th percentile of daily experience. The daily peak monthly average billing function is: This is the monthly average of the daily peak bandwidth; Assignment scheme The corresponding total cost is calculated as follows: ; in, For manufacturers, For the empirical 95th percentile operator For vendor aggregation timing, This represents the number of sampling points per day. The number of complete days within the billing cycle. For the sequence number of days, For the first The set of sampling times for each day; the billing function family serves as both the optimization objective of the optimization model and the common caliber for billing calculation.
3. The content delivery network domain name traffic scheduling method according to claim 1, characterized in that, In S2, the portability constraint screening includes: Based on the vendor's configuration, domain names are divided into a fixed set and a movable set. The fixed set only participates in the billing calculation of the aggregation time series and does not enter the search space; the movable domain names are subject to an entry threshold based on their billing value. The billing value will be lower than the aforementioned entry threshold. Long-tail domain name filtering This sets the threshold for domain name billing.
4. The content delivery network domain name traffic scheduling method according to claim 1, characterized in that, In S2, the periodic image filtering includes: Additive time series decomposition is performed on the time series of the migrated domain name to obtain trend components, seasonal components and residual components; Calculate the cycle energy ratio , in For domain name Seasonal portion For variance operators; When the cycle energy ratio Greater than the periodic energy ratio threshold A domain name is considered a periodic domain name if it meets at least one of the following conditions: (a) The range of the seasonal component is greater than the range of the residual component; (b) The spectrum of the time series exhibits a primary or secondary peak near the daily frequency; Domains with unstable, non-periodic patterns are removed or have their migration candidate priority reduced.
5. The content delivery network domain name traffic scheduling method according to claim 1, characterized in that, The initial screening in S2 is a greedy initial screening, specifically: according to the domain name billing value contribution from largest to smallest, domain names are tentatively moved out of the source vendor or into the destination vendor until the aggregate billing value of the source vendor reaches the preset target level. The candidate domain name set and the initial feasible solution are obtained. The target water level.
6. The content delivery network domain name traffic scheduling method according to claim 1, characterized in that, S3 specifically includes: S31: Determine whether the size of the candidate domain name set exceeds the preset precision solution threshold; S32: When the size of the candidate domain name set exceeds the exact solution threshold, a metaheuristic global search optimizer with a target water level approximation energy function is used to perform global search optimization on the initial feasible solution to obtain intermediate migration schemes. Then, the intermediate migration schemes are performed in descending order of total domain name traffic to obtain a preset number of approximately equal-flow heaps as indivisible assignment units. S33: When the size of the candidate domain name set does not exceed the exact solution threshold, the domain names in the candidate domain name set are directly used as indivisible assignment units; S34: Utilize the monotonically non-decreasing property of the non-negative superposition of the billing function family on the aggregation time sequence, and use the current cost of the partial assignment as the lower bound of the subsequent expansion to perform branch delimitation to obtain the optimal assignment scheme.
7. The content delivery network domain name traffic scheduling method according to claim 6, characterized in that, In step S32, the metaheuristic global search optimization is a simulated annealing optimizer, whose energy function is: ; in, For the candidate migration set, These are the billing functions for the source and destination vendors, respectively. The time series after removing the candidate migration set from the aggregated time series of the source vendor The time series of the host vendor aggregated and superimposed with the candidate migration set is the final time series. Weighting of penalties for host side; In simulated annealing optimization, the neighborhood operation adds or deletes only one domain at a time. The aggregation timing on both sides is as follows Incremental updates, new states are updated according to the Metropolis criterion with acceptance probability. Accept, and according to the cooling coefficient by Cooling down, among which, For the energy of the new state, The energy of the current state. The annealing temperature. The cooling coefficient; The balanced clustering dimensionality reduction is: based on the total traffic over a domain period. Sort the candidate domains in descending order, and then place each candidate domain into the heap with the smallest current cumulative traffic, forming... A heap with approximately equal flow is used to reduce the search space for an exact solution. Reduced to , in, For domain name Total periodic flow, For the number of heaps, This represents the number of candidate domain names.
8. The content delivery network domain name traffic scheduling method according to claim 6, characterized in that, In S34, the branch-bound solution includes: for the assigned... The partial solution of an indivisible assignable unit has its current cost as the lower bound for all its subsequent expansions, and its calculation formula is as follows: , in, The number of units already assigned. For manufacturers Price coefficient, For the manufacturers belonging to the fixed set The domain name aggregation time sequence is used as the initial base. For the first The aggregation timing of each assigned unit The serial number of the assigned unit. (Arbitrary full extension) is the billing cost of any full extension scheme; when the lower bound is... Not less than the current optimal cost If the branch is removed, the corresponding assignment after the search is complete will be the optimal assignment scheme.
9. The content delivery network domain name traffic scheduling method according to claim 6, characterized in that, When there are three or more vendors, the branch and bound solution in S3 is extended to perform multi-branch branch and bound on multiple vendors, or to perform simulated annealing optimization and branch and bound solution iteratively by pairing vendors one by one.
10. A content delivery network domain name traffic scheduling system, applied to the content delivery network domain name traffic scheduling method according to any one of claims 1-9, characterized in that, It includes a data acquisition unit, a profiling and constraint unit, an optimization decision-making unit, and an evaluation output unit, among which: The data acquisition unit is used to collect bandwidth time-series data of each domain name under each vendor within the billing period, and to parse the billing method and price coefficient of each vendor to obtain a billing function cluster consisting of the billing function corresponding to the billing method of each vendor, and to construct an optimization model with the domain name as the decision unit and the vendor bill determined by the billing function cluster and the price coefficient as the optimization target. The profiling and constraint unit is used to perform portability constraint screening and periodic profiling screening on domain names, determine the set of portable domain names, and perform initial screening on the set of portable domain names to generate a set of candidate domain names and an initial feasible solution. The optimization decision unit is used to divide the candidate domain name set into indivisible assignment units, and utilizes the monotonically non-decreasing property of the billing function family on the point-by-point non-negative superposition of the vendor aggregation time sequence. The current cost of the already assigned partial solution is used as the lower bound of the cost of all its subsequent expansions. Branch pruning is performed on the indivisible assignment units to obtain the optimal assignment scheme of the billing caliber at the granularity of the indivisible assignment units. The evaluation output unit is used to perform billing calculations on the obtained optimal assignment scheme according to the billing function family, and outputs a scheduling scheme report that includes a migration list, billing details for each vendor, and cost savings rate.
