CDN bandwidth resource planning method, device, electronic device and storage medium
Through the automated CDN bandwidth resource planning method, all possible node combinations are traversed and the combination with the lowest bandwidth cost is selected, which solves the problems of high manual planning cost and inability to meet customer needs in the existing technology, and achieves globally optimized bandwidth resource planning. .
Patent Information
- Application Number
- CN202210191541.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing CDN bandwidth resource planning methods rely on manual operations, resulting in high costs and inability to specifically meet customer needs and achieve global optimization.
By obtaining the target bandwidth waveform of the target domain name area, traversing all possible node combinations, calculating the bandwidth cost of each combination, and selecting the combination with the lowest bandwidth cost as the planning solution, automatic global bandwidth planning is achieved.
It reduces bandwidth costs, improves planning accuracy and efficiency, and ensures that planning results are globally optimal.
Smart Images

Figure CN114726732B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a CDN bandwidth resource planning method, device, electronic device and storage medium. Background Art
[0002] Content Delivery Network (CDN) providers provide acceleration services to their customers, so that when users access the content provided by the customer, they can quickly obtain the content from the CDN nodes deployed by the CDN provider. In this process, the bandwidth resources of the CDN nodes will be consumed, which will incur certain bandwidth fees. In order to improve customer experience and reduce bandwidth costs, some bandwidth resource planning methods have been proposed, such as using manual bandwidth resource planning for different types of services based on the bandwidth peak throughout the day.
[0003] However, manual planning methods usually have problems such as high bandwidth costs and inability to meet customer needs in a targeted manner. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a CDN bandwidth resource planning method, device, electronic device and storage medium, so that the CDN bandwidth resource planning is more in line with customer needs, with lower bandwidth costs and higher efficiency.
[0005] To achieve the above object, an embodiment of the present invention provides a CDN bandwidth resource planning method, comprising the following steps: obtaining a target bandwidth waveform of a target customer in a target domain name area within a preset period; selecting i nodes as a target, traversing the plannable nodes of the target customer in the target domain name area, and obtaining (2 N -1) node combinations, i=1, 2, ..., N, N is the total number of the plannable nodes, and each of the node combinations is different from each other; respectively determining the bandwidth cost incurred by the node combination when the bandwidth represented by the target bandwidth waveform is evenly planned to i of the plannable nodes in the node combination; planning the plannable node in the node combination with the smallest bandwidth cost as the target planning node to the target customer; and evenly planning the bandwidth represented by the target bandwidth waveform to the target planning node.
[0006] To achieve the above-mentioned purpose, an embodiment of the present invention further provides a CDN bandwidth resource planning device, comprising: an acquisition module, used to obtain a target bandwidth waveform of a target customer in a target domain name area within a preset period; a grouping module, used to select i nodes as a target, traverse the plannable nodes of the target customer in the target domain name area, and obtain (2 N-1) node combinations, i=1, 2, ..., N, N is the total number of the plannable nodes, and each of the node combinations is different from each other; a cost determination module, used to sequentially determine the bandwidth cost incurred by the node combination when the bandwidth represented by the target bandwidth waveform is evenly planned to i plannable nodes in different node combinations; a first planning module, used to plan the plannable node in the node combination with the smallest bandwidth cost as a target planning node to the target customer; a second planning module, used to evenly plan the bandwidth represented by the target bandwidth waveform to the target planning node.
[0007] To achieve the above-mentioned purpose, an embodiment of the present invention further provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the CDN bandwidth resource planning method as described above.
[0008] To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the CDN bandwidth resource planning method as described above.
[0009] The CDN bandwidth resource planning method provided by the embodiment of the present invention plans the target bandwidth waveform of the customer rather than the bandwidth waveform of a type of service, so as to provide customer-level planning, which is more accurate and more targeted. By selecting i nodes as the target, traversing the plannable nodes of the target customer in the target domain name area, (2 N -1) node combination, in fact, under the premise of providing the target bandwidth waveform, all feasible node planning schemes that can be provided for the target customer are found, so as to determine the bandwidth cost generated by the node combination when the target bandwidth waveform is evenly planned to i plannable nodes in different node combinations, and then plan the plannable node in the node combination with the smallest bandwidth cost as the target planning node to the target customer, and evenly plan the target bandwidth waveform to the target planning node, so that the node and bandwidth waveform planned for the target customer select the scheme with the smallest bandwidth cost from all feasible node planning schemes, ensuring that the planned node is the node combination with the smallest global bandwidth cost, and the bandwidth planned for the planned node is based on the optimal node feasible bandwidth planning result, and the result of bandwidth planning is close to the plan with the smallest bandwidth cost. No longer relying on manual labor, automatic customer-oriented, global bandwidth planning is achieved, making the planning results more accurate, bandwidth costs lower, and efficiency higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0011] Figure 1 is a flow chart of a CDN bandwidth resource planning method provided in one embodiment of the present invention;
[0012] Figure 2 is an example diagram of a target bandwidth waveform involved in the CDN bandwidth resource planning method provided in an embodiment of the present invention;
[0013] Figure 3 It is a flow chart of a CDN bandwidth resource planning method provided in another embodiment of the present invention, including a step of re-planning bandwidth on the premise that the bandwidth cost of each target planning node does not increase;
[0014] Figure 4 It is a flow chart of a CDN bandwidth resource planning method including a step of re-planning bandwidth of a target node charged in a 95 peak bandwidth manner, provided in another embodiment of the present invention;
[0015] Figure 5 is a flow chart of a CDN bandwidth resource planning method including a step of obtaining an updated target bandwidth waveform provided in another embodiment of the present invention;
[0016] Figure 6 It is a flow chart of a CDN bandwidth resource planning method provided in another embodiment of the present invention, including the step of respectively obtaining a target bandwidth waveform of each to-be-planned customer in a target domain name area within a preset period;
[0017] Figure 7 It is a flow chart of a CDN bandwidth resource planning method provided in another embodiment of the present invention, including a step of merging a plurality of clients to be planned that require planning of the same node;
[0018] Figure 8 is a structural schematic diagram of a CDN bandwidth resource planning device provided in another embodiment of the present invention;
[0019] Fig. 9 It is a schematic structural diagram of an electronic device provided in another embodiment of the present invention. DETAILED DESCRIPTION
[0020] As can be seen from the background technology, currently, manually planning bandwidth resources for customers has the problems of high bandwidth cost and lack of pertinence.
[0021] After analysis, it was found that the main reasons for the above problems are: the number of CDN nodes that can be planned is usually large, and customer situations are also diverse, while manpower is limited and cannot be considered globally. Therefore, although planning can reduce bandwidth costs, the degree of reduction is usually small, and it is difficult to achieve the lowest bandwidth cost; and manual planning usually needs to refer to existing planning results, find an existing planning result that is similar to the situation of the customer currently in need of planning, and adjust it. The adjusted planning result only tends to the needs of the customer currently in need of planning, and cannot fully consider the differences between different customers in different domain name areas, and cannot meet customer needs. In particular, the granularity of the adjustment is generally the product line of the CDN supplier, that is, each adjustment is to adjust multiple CDN nodes on the same product line together, which may miss better cross-product line planning results, so that the adjusted planning result is not the lowest bandwidth cost.
[0022] To solve the above problems, an embodiment of the present invention provides a CDN bandwidth resource planning method, comprising: obtaining a target bandwidth waveform of a target customer in a target domain name area within a preset period; selecting i nodes as a target, traversing the plannable nodes of the target customer in the target domain name area, and obtaining (2 N -1) node combinations, i=1, 2, ..., N, N is the total number of the plannable nodes, and each of the node combinations is different from each other; respectively determining the bandwidth cost incurred by the node combination when the bandwidth represented by the target bandwidth waveform is evenly planned to i of the plannable nodes in the node combination; planning the plannable node in the node combination with the smallest bandwidth cost as the target planning node to the target customer; and evenly planning the bandwidth represented by the target bandwidth waveform to the target planning node.
[0023] The CDN bandwidth resource planning method provided by the embodiment of the present invention no longer relies on manual work, but provides an automated bandwidth resource planning method. For target customers in the target domain name area, all possible node planning situations with nodes as the planning granularity are found, rather than being limited to product lines as the planning granularity, thereby avoiding omissions in possible node planning situations. Then, in the case of evenly divided bandwidth, the bandwidth represented by the target bandwidth waveform is used as the bandwidth required by the target customer in the future, and the bandwidth cost of each possible node planning situation when providing the bandwidth required by the target customer in the future is determined. The node planning situation with the lowest cost is found as the planning result for the node, and then the bandwidth required by the target customer in the future is evenly planned to the planned node as the planning result for the bandwidth. From a global perspective, the bandwidth cost brought by each possible node planning situation is compared, and the node planning situation with the lowest bandwidth cost is found as the final bandwidth resource planning result, ensuring that the planned node and bandwidth waveform are the bandwidth with the lowest global bandwidth cost. No longer relying on manual work, global bandwidth planning for customers is automatically realized, making the planning result more accurate, the bandwidth cost lower, and the efficiency higher.
[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it can be understood by those skilled in the art that in the embodiments of the present invention, many technical details are provided to enable readers to better understand the present invention. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present invention can be implemented.
[0025] The following embodiments are divided for the convenience of description and shall not constitute any limitation on the specific implementation of the present invention. The embodiments may be combined with each other and referenced to each other without contradiction.
[0026] The present invention provides a CDN bandwidth resource planning method, which is applied to electronic devices such as servers and computers. Figure 1 As shown, the process includes at least the following steps:
[0027] Step 101: Obtain a target bandwidth waveform of a target customer in a target domain name area within a preset period.
[0028] In this embodiment, the customer is the service object of the CDN supplier, the target customer is the customer who needs to plan bandwidth resources, the target domain name area is the domain name area where the target customer needs to plan bandwidth resources, the target bandwidth waveform is the representation of the bandwidth that needs to be planned for the target customer in the target domain name area, and the bandwidth that needs to be planned at each moment in the preset period can be determined according to the target bandwidth waveform. In particular, the preset period can be one day, one week, one hour, etc. The target bandwidth waveform in the preset period can be provided by the target customer, or it can be obtained by the CDN supplier based on experience or historical data of providing services to the target customer.
[0029] For example, if a company A signs an agreement with a CDN provider, requiring the CDN provider to provide acceleration services in domain name area B, and the acceleration services required by company B are basically around 100G, then company A is the target customer, domain name area B is the target domain name area, the preset period can be 24 hours, and the target bandwidth waveform is as follows: Figure 2 The bandwidth is 100G at each moment in the 24 hours shown.
[0030] Of course, the above is only a specific example. In other examples, the target customer may also be an individual, etc., and the target customer may also include several customers and / or several individuals. This embodiment does not limit the type of target customers and the number of included objects. In addition, this embodiment does not limit the domain name area, preset period, etc., which can be specified by the target customer or by the CDN provider, etc. The domain name area can be a first-level domain name or a second-level domain name, etc., which will not be described one by one here.
[0031] In some examples, the target bandwidth waveform is obtained from the historical bandwidth data of the target customer, that is, obtaining the target bandwidth waveform of the target customer in the target domain name area within a preset period can be achieved in the following way: obtaining the bandwidth waveform of the target customer in the target domain name area within a preset historical duration as the target bandwidth waveform. Specifically, while providing acceleration services to the target customer, the bandwidth generated by the service is collected and recorded, and when planning bandwidth resources for the target customer within the preset duration in the target domain name area, the data within the preset duration is obtained from the collected and recorded data, and then the bandwidth waveform corresponding to the preset duration is obtained as the target bandwidth waveform. In particular, multiple groups of data within the preset duration can also be obtained from the collected and recorded data, and the bandwidth data at the same time of the preset duration is averaged, and then the target bandwidth waveform is obtained based on the averaged data, wherein the average can also be a weighted average after determining different weights based on the distance from the preset duration to the planning moment.
[0032] Furthermore, obtaining the target bandwidth waveform of the target customer in the target domain name area within a preset period can also be achieved in the following way: obtaining the bandwidth waveform of the target customer in the target domain name area within a preset historical period; according to the customer needs of the target customer, removing the unplannable bandwidth waveform in the obtained bandwidth waveform to obtain the target bandwidth waveform.
[0033] In particular, the target bandwidth waveform of the target customer may change based on the historical bandwidth data, such as the target customer expands its scale, so that the target bandwidth waveform of the target customer is expanded or reduced according to the change magnitude of a certain target customer based on the historical bandwidth data.
[0034] It is worth mentioning that the target customers may have some special customer requirements, which may result in some bandwidth waveforms that cannot be planned. For example, when a certain node is specified to provide services, the bandwidth occupied by the service specified to the node cannot be planned. In this way, by removing the unplannable part of the target bandwidth waveform before bandwidth planning, the problem of affecting customers and customer experience by planning unplannable bandwidth waveforms is avoided.
[0035] In other examples, the target bandwidth waveform is specified by the customer, for example, the customer knows the bandwidth amount required by the customer, or the customer requires a specified bandwidth amount to be provided. In this case, obtaining the target bandwidth waveform of the target customer in the target domain name area within a preset period can be achieved in the following manner: obtaining the target bandwidth waveform specified by the target customer in the target domain name area within a preset period. For example, the CDN provider or the target customer inputs the target bandwidth waveform on the interactive interface.
[0036] In some examples, the target bandwidth waveform may also be determined by the CDN provider, that is, obtaining the target bandwidth waveform of the target customer in the target domain name area within a preset period may be achieved in the following manner: estimating the target bandwidth waveform of the target customer based on the bandwidth waveforms of other customers in the target domain name area within the preset period. Specifically, the target bandwidth waveform of the target customer may be estimated based on the bandwidth waveforms of other customers with similar or identical business types as the target customer in the target domain name area, or the bandwidth waveforms of the business types with the same business type as the target customer in the target domain name area may be estimated based on the bandwidth waveforms of the business types of the target customer, and then superimposed, etc. Of course, the estimation may also be based on manual implementation, and then the manual estimation result may be input, etc.
[0037] Step 102, with i nodes selected as the target, traverse the plannable nodes of the target customer in the target domain name area, and obtain (2 N -1) node combinations, i=1, 2, ..., N, N is the total number of plannable nodes, and each node combination is different from each other.
[0038] Specifically, the goal is to select one node from N plannable nodes, and get There are node combinations, each of which contains only one plannable node, and the nodes they contain are different; with the goal of selecting 2 nodes from the N plannable nodes, we get There are N*(N-1) / 2 node combinations. Each of these N*(N-1) / 2 node combinations contains only 2 plannable nodes, and the nodes they contain are not completely the same. With the goal of selecting N nodes from N plannable nodes, we get node combination, which contains all the plannable nodes, so that we can finally get node combinations, where All of them are obtained by the combinatorial theorem. That is to say, the final 2 N -1 includes every possible node planning situation.
[0039] It should be noted that, when the target customer has multiple objects, different objects may have different plannable nodes. Therefore, it is necessary to determine all possible node combinations of the corresponding object for each plannable node of each object.
[0040] Step 103 : respectively determine the bandwidth cost generated by the node combination when the bandwidth represented by the target bandwidth waveform is evenly allocated to i plannable nodes in the node combination.
[0041] In this embodiment, for the 2 obtained in step 102 N For each node combination in -1 node combinations, determine the total bandwidth costs incurred by each plannable node in the node combination when i plannable nodes in the same node combination are averagely planned with the bandwidth represented by the target bandwidth waveform, or the total new bandwidth costs incurred by each plannable node in the node combination.
[0042] It should be noted that the average planning in this embodiment can be averaged according to the number of plannable nodes in the node combination, or according to the number of redundant bandwidths of the plannable nodes in the node combination; it can also be averaged according to the preset weights of the plannable nodes in the node combination, or the weights can be determined according to the node charging method of the plannable nodes in the node combination, and then averaged according to the determined weights, etc. The target bandwidth waveform is taken as follows Figure 2 Taking 100G at each moment in the 24 hours as an example, the average planning when determining the bandwidth cost for a node combination including 4 plannable nodes is explained.
[0043] When averaged according to the number of nodes, the bandwidth planned for each plannable node in the node combination is 100G / 4=25G at each moment in 24 hours.
[0044] When averaging the redundant bandwidths of the plannable nodes in the node combination, assuming that the redundant bandwidths of the four plannable nodes in the node combination are 100G, 200G, 40G, and 50G, respectively, the bandwidths planned for these four plannable nodes are [100G / (100G+200G+40G+50G)]*100G=25.64G, [200G / (100G+200G+40G+50G)]*100G=51.28G, [40G / (100G+200G+40G+50G)]*100G=10.26G, and [50G / (100G+200G+40G+50G)]*100G=12.82G at each moment in 24 hours.
[0045] When averaging according to the preset weights, assuming that the preset weights of the four plannable nodes in the node combination are 1, 3, 5, and 4 respectively, the bandwidths planned for these four plannable nodes at each moment in 24 hours are [1 / (1+3+5+4)]*100G=7.69G, [3 / (1+3+5+4)]*100G=23.08G, [5 / (1+3+5+4)]*100G=38.46G, and [4 / (1+3+5+4)]*100G=30.77G respectively.
[0046] When averaging according to the weights determined by the node charging methods of the plannable nodes in the node combination, assuming that the node charging methods of the 4 plannable nodes in the node combination are fixed fee, fixed fee, average flow billing, and average flow billing, respectively, and the weights determined for the 4 plannable nodes according to their charging methods are 2, 2, 1, and 1, then the bandwidths planned for these 4 plannable nodes are [2 / (2+2+1+1)]*100G=33.33G, [2 / (2+2+1+1)]*100G=33.33G, [1 / (2+2+1+1)]*100G=16.67G, and [1 / (2+2+1+1)]*100G=16.67G at each moment in 24 hours, respectively.
[0047] Of course, the above are only specific examples. In other examples, other methods may be used for averaging, which will not be described in detail here.
[0048] Step 104: Plan the plannable nodes in the node combination with the minimum bandwidth cost as target planning nodes for the target customer.
[0049] In this embodiment, first, according to the bandwidth fee determined in step 103,N -1 node combination, a node combination with the smallest bandwidth cost is determined, and then the node combination with the smallest bandwidth cost is used as the node planning result for the target customer and planned to the target customer.
[0050] In some cases, from 2 N -1 The node combination with the minimum bandwidth cost can be determined in the following way: after determining the cost of each node combination, traverse to find the node combination with the minimum bandwidth cost.
[0051] In other cases, from 2 N -1 node combination to determine the node combination with the smallest bandwidth cost can also be achieved in the following way: initialize the bandwidth cost to infinity and initialize its node combination to the default value, and compare the current determined bandwidth cost with the current cached bandwidth cost each time the bandwidth cost of a node combination is determined. If the currently determined bandwidth cost is smaller, update the currently cached bandwidth cost to the currently determined bandwidth cost, and update the node combination corresponding to the cached bandwidth cost accordingly. If the currently determined bandwidth cost is larger, continue to determine the bandwidth cost of the next node combination.
[0052] In some other examples, from 2 N -1 node combination with the smallest bandwidth cost can also be achieved in the following way: sequentially determine the node combination with the smallest bandwidth cost among the node combinations containing i plannable nodes to obtain N node combinations, and then compare the bandwidth costs of these N node combinations to find the node combination with the smallest bandwidth cost.
[0053] Of course, the above is only a specific example. In other examples, other methods can be used to achieve the N -1 node combination to determine the node combination with the lowest bandwidth cost, which will not be repeated here.
[0054] Step 105: averagely plan the bandwidth represented by the target bandwidth waveform to the target planning node.
[0055] In this embodiment, the bandwidth planning when determining the bandwidth cost of the node combination corresponding to the target planning node in step 103 is the same, and will not be described in detail here.
[0056] It is understandable that the bandwidth fee determined in the above step 103 is obtained according to a preset bandwidth planning method, and can be further adjusted to obtain a more optimal bandwidth planning method.
[0057] Based on this, Figure 3As shown, in some embodiments, after step 105, the CDN bandwidth resource planning method may further include:
[0058] Step 106, under the premise that the bandwidth fee of each target planning node does not increase, the bandwidth in at least one time period planned for at least one target planning node that adopts the average flow bandwidth billing method is re-planned for the same time period of the target planning node that adopts the non-average flow billing method.
[0059] In this embodiment, average traffic bandwidth billing means averaging the bandwidth generated within the charging period, and using the average bandwidth as the billing bandwidth for billing. Non-average traffic billing refers to billing methods other than average traffic bandwidth billing, such as 95 peak bandwidth method, fixed bandwidth fee billing method, free gift method, etc.
[0060] It is understandable that, under the average traffic bandwidth billing mode, every time a certain bandwidth is planned for a CDN node, the average bandwidth will increase, and the bandwidth fee will be increased. Under the non-average traffic billing mode, even if the CDN node is newly planned with bandwidth, that is, the bandwidth of the CDN node increases, there will not necessarily be additional bandwidth fees. For example, no matter how the newly planned bandwidth is added, the bandwidth fee of the free gift method and the fixed bandwidth fee billing method remains unchanged. As long as the peak value of 95% of the bandwidth remains unchanged, the bandwidth fee can also remain unchanged when the 95 peak bandwidth method is adopted. Therefore, the bandwidth of the target planning node billed by the average traffic bandwidth method is re-planned to the target planning node billed by the non-average traffic method, so that the bandwidth planned for the target planning node billed by the average traffic bandwidth method is reduced, and the bandwidth fee is reduced. The bandwidth planned for the target planning node billed by the non-average traffic method will increase, and the bandwidth fee will not increase under the premise that the bandwidth fee of the target planning node does not increase, and the total bandwidth fee of all target planning nodes is reduced, which further reduces the bandwidth fee and further optimizes the bandwidth cost.
[0061] It should be noted that the target bandwidth waveform represents the bandwidth expected to be planned at different times, so the re-planned bandwidth will still be planned in the same time period.
[0062] It should also be noted that this embodiment does not limit the duration represented by the time period, which can be any duration not greater than the preset period corresponding to the target waveform bandwidth, such as 5 minutes, 30 seconds, etc., which will not be elaborated here.
[0063] Similarly, if Figure 4 As shown, in some embodiments, after step 105, the CDN bandwidth resource planning method may further include:
[0064] Step 107, the bandwidth that exceeds the billing bandwidth among the bandwidths planned for the target planning node that adopts the 95 peak bandwidth billing method is re-planned to the target planning node that adopts the fixed bandwidth fee, and the billing bandwidth is the bandwidth value used for billing the target planning node that adopts the 95 peak bandwidth billing method.
[0065] In this embodiment, the 95 peak bandwidth billing method means that the bandwidths to be billed are sorted from large to small, the last 95% of the data is retained, and the maximum value of the retained bandwidth data is used as the billing bandwidth for billing. Therefore, the bandwidth of the target planning node that adopts the 95 peak bandwidth billing method, which exceeds the billing bandwidth, is re-planned to the target planning node that adopts the fixed bandwidth fee, so that the billing bandwidth is reduced, thereby reducing the bandwidth fee, while the bandwidth fee of the target planning node that adopts the fixed billing method, that is, the bandwidth fee of the fixed bandwidth fee remains unchanged, and then the total bandwidth fee of all target planning nodes is reduced, which further reduces the bandwidth fee and further optimizes the bandwidth cost.
[0066] Of course, this embodiment mainly takes the target planning node with fixed bandwidth fee as an example. In other embodiments, it can also be transferred to other types of target planning nodes, such as target planning nodes that are charged by free gift, etc. Based on similar reasons, the bandwidth fee can also be further reduced, so that the bandwidth cost can be further optimized.
[0067] It should be noted that the above description is based on the implementation of step 106 and step 107 in different embodiments. In other embodiments, step 106 may be implemented first and then step 107 in the same embodiment. In addition, in order to achieve a better bandwidth cost optimization effect, during the implementation of step 106 and step 107, bandwidth re-planning may be performed on each target planning node that is billed in the average flow bandwidth manner and the target planning node that is billed in the 95 peak bandwidth manner, under the premise that the bandwidth cost of each target planning node does not increase.
[0068] For example, the bandwidth planned for each target planning node that adopts the average flow bandwidth method is divided according to the preset time period, and the bandwidth in each time period is attempted to be re-planned to the same time period of the target planning node that adopts the non-average flow method. If the bandwidth fee of the re-planned target planning node that adopts the non-average flow method does not increase, the attempt is determined to be successful, and the result of the attempt is updated to the latest bandwidth planning result of the target planning node, until all target planning nodes that adopt the average flow bandwidth method are attempted to be re-planned, wherein, in the process of attempting to re-plan the bandwidth, the bandwidth is preferentially re-planned to the target planning node that adopts the fixed bandwidth fee billing method and the free gift method, and then to the target planning node that adopts the 95 peak bandwidth method. Then, for each target planning node that adopts the 95 peak bandwidth method, the bandwidth exceeding its own billing bandwidth is transferred to the target planning node that adopts the fixed bandwidth fee billing method and the free gift method. In particular, it can also be transferred to other target planning nodes that adopt the 95 peak bandwidth method without increasing other target planning nodes that adopt the 95 peak bandwidth method until all target planning nodes that adopt the 95 peak bandwidth method are attempted to be re-planned.
[0069] Of course, each CDN node is limited by the equipment and has an upper limit on the bandwidth that can be planned. Therefore, when planning, it is also necessary to meet the restriction that the bandwidth planned for the entire node does not exceed the upper limit, otherwise it is easy to be overloaded and affect the quality of the service provided and the performance of the node. For example, when the bandwidth planned for a target planning node exceeds its upper limit, you can consider transferring the bandwidth that exceeds the upper limit to other target nodes, etc., which will not be elaborated here.
[0070] It is also understandable that, when the target bandwidth waveform is obtained through the historical bandwidth data of the target customer, the historical bandwidth data may contain long-tail data, which may easily have an adverse impact on the subsequent planning process.
[0071] Based on this, Figure 5 As shown, in some embodiments, after step 101, the CDN bandwidth resource planning method further includes:
[0072] Step 108: remove bandwidth waveforms smaller than a preset bandwidth threshold from the target bandwidth waveform to obtain an updated target bandwidth waveform.
[0073] In this embodiment, by setting a preset bandwidth threshold, long-tail data with smaller bandwidth data is removed, thereby avoiding interference with subsequent planning processes and improving the accuracy of planning.
[0074] In one example, waveform data of target customers in the target domain name area in the past week with a collection granularity of 5 minutes is obtained, and the waveform data obtained after averaging the waveform data at the same time of each day is used as the target bandwidth waveform. Then, the target bandwidth waveform is enlarged or reduced according to the magnitude change of the target customers, and then, the enlarged or reduced target bandwidth waveform is subjected to data elimination with 10M as the preset bandwidth threshold, that is, the part of the target bandwidth waveform smaller than 10M is removed.
[0075] At this time, step 103 correspondingly includes: sequentially determining the bandwidth cost generated by the node combination when the bandwidth represented by the updated target bandwidth waveform is evenly allocated to i plannable nodes in different node combinations. Step 105 correspondingly includes: evenly allocating the bandwidth represented by the updated target bandwidth waveform to the target planning node.
[0076] It should be noted that Figure 5 The CDN bandwidth resource planning method shown is mainly implemented with step 108 after step 101 and before step 102. In other embodiments, step 108 and step 102 may be implemented simultaneously, or step 108 may be implemented after step 102 and before step 103, which will not be described in detail here.
[0077] It should also be noted that the above embodiments are described by taking step 101 being implemented first and step 102 being implemented later as an example. In other embodiments, step 101 and step 102 may be implemented simultaneously, or step 102 may be implemented first and then step 101. These will not be described one by one here.
[0078] It is also understandable that the additional bandwidth costs brought by the newly planned bandwidth on the CDN node may be affected by the timing of the newly planned bandwidth. For example, the bandwidth costs of a CDN node are charged in a tiered manner. In different billing intervals, even if the newly planned bandwidth quantity is the same, the additional bandwidth costs will be different due to different bandwidth billing unit prices. Therefore, when the target customers include multiple objects, it is also necessary to consider the impact of different planning orders on bandwidth costs.
[0079] Based on this, when the target customers include several customers with different priorities, such as Figure 6 As shown, in some embodiments, the CDN bandwidth resource planning method includes the following steps:
[0080] Step 601, respectively obtain the target bandwidth waveform of each customer to be planned in the target domain name area within a preset period.
[0081] Step 601 in this embodiment is substantially the same as step 101 in the aforementioned embodiment, and will not be described in detail here.
[0082] Step 602, with i nodes selected as the target, traverse the plannable nodes of each customer to be planned in the target domain name area, and obtain (2 Nj -1) node combinations, i = 1, 2, ..., N j , N j is the total number of nodes that can be planned for the jth customer to be planned, j=1, 2, ..., M, M is the total number of customers to be planned, and each node combination of the same customer to be planned is different from each other.
[0083] It should be noted that step 602 in this embodiment is substantially the same as step 102 in the aforementioned embodiment, the main difference being that different customers to be planned may have different plannable nodes, and therefore, it is necessary to determine all possible node combinations for the plannable nodes corresponding to different customers.
[0084] Step 603, after the planning of the customer to be planned with priority k is completed, it is determined that when the bandwidth represented by the target bandwidth waveform of the customer to be planned with priority k+1 is evenly planned to i plannable nodes in different node combinations, the bandwidth fee generated by the node combination includes the fee generated by the customers to be planned with priority 1, ..., k that have been planned to the plannable nodes in the node combination and the fee generated by the customers to be planned with priority k+1 that are planned to the plannable nodes in the node combination, k=1, 2, ..., M-1.
[0085] In this embodiment, the smaller the value of k corresponding to the priority in this embodiment, the higher the priority of the customer to be planned. In other words, step 603 emphasizes that planning is performed first for customers with high priority to be planned, and then planning is performed for customers with low priority to be planned based on the planning results for customers with high priority to be planned.
[0086] Specifically, planning is first performed for the customers to be planned with a priority of 1, and then the costs of the target planning nodes planned for the customers to be planned with a priority of 1 and the bandwidth planned for each target planning node are taken as the basic costs. Then, based on the basic costs, the costs incurred by each possible node combination when planning for the customers to be planned with a priority of 2 are added as the bandwidth costs of each node combination, and the target planning nodes and the bandwidth planned for each target planning node are determined for the customers to be planned with a priority of 2 according to the bandwidth costs of each node combination...until the planning of the customers to be planned with a priority of M is completed.
[0087] It can be seen from this that the bandwidth cost of the node combination corresponding to each customer to be planned includes the sum of the possible planning cost of the customer to be planned and the cost of the planned result with a higher priority than the customer to be planned.
[0088] It should be noted that planning for customers with a priority of k+1 will be carried out only after planning for customers with a priority of k is completed. In essence, planning for customers with a higher priority will be carried out only after planning for customers with a higher priority is completed. Furthermore, the completion of planning for customers with a priority of k means that planning for customers with priorities of 1, 2, ..., k-1 has all been completed.
[0089] It should also be noted that the order of planning mainly affects the size of the billing unit price of the bandwidth fee newly planned for the node. Therefore, when planning for multiple customers to be planned, the impact of the billing unit price of the newly planned bandwidth of the customers planned earlier on the billing unit price of the newly planned bandwidth of the customers planned later is mainly considered. In other words, step 503 actually determines the impact of the planning results of the customers to be planned with higher priority on the node billing, and then determines the bandwidth fee of the customers to be planned with lower priority based on this impact. Therefore, in other embodiments, step 503 can also be to re-determine the billing method of the newly added bandwidth on each node after being affected by the planning results of the customers to be planned with priority k, and then, based on the determined billing method of the newly added bandwidth on each node, determine the newly added bandwidth fee brought by the bandwidth planned on each node combination for the customers to be planned with priority k+1 as the bandwidth fee of the node combination.
[0090] Step 604: Plan the plannable nodes in the node combination with the minimum bandwidth cost of the same customer to be planned as target planning nodes and plan them to the corresponding customer to be planned.
[0091] Step 604 in this embodiment is substantially the same as step 104 in the aforementioned embodiment, and will not be described in detail here.
[0092] Step 605: The bandwidth represented by the target bandwidth waveform of the customer to be planned is averagely planned to the corresponding target planning node.
[0093] Step 605 in this embodiment is substantially the same as step 105 in the aforementioned embodiment, and will not be described in detail here.
[0094] It is worth mentioning that when planning with multiple customers in mind, the interference between customers should be taken into account, especially the impact on bandwidth costs, so that the total bandwidth cost planned for all customers is minimized and the bandwidth cost is optimized.
[0095] It should be noted that, in this embodiment, the priority of the customer to be planned may be the priority defined by the CDN provider for different customers, or may be the priority determined according to the customer's business characteristics, business needs, etc.
[0096] In one example, the priority of each customer to be planned is determined according to the following ranking factors: Ranking factor 1: resource usage requirements of the customer domain name area, such as decreasing the priority in the order of the same province, the same region, and across regions; Ranking factor 2: the attention of the CDN supplier to the customer, and the priority is determined in the order of attention; Ranking factor 3: protocol type, such as decreasing the priority in the order of IPv6 protocol and IPv4 protocol; Ranking factor 4: product line type, such as decreasing the priority in the order of live broadcast type, web page type, on-demand type, and download type; Ranking factor 5: bandwidth waveform magnitude of the customer domain name area, such as decreasing the priority in the order of bandwidth waveform magnitude from high to low. Among them, when it is impossible to determine the different priorities of each customer to be planned according to ranking factor 1, continue to use ranking factor 2; when it is impossible to determine the different priorities of each customer to be planned according to ranking factor 2, continue to use ranking factor 3, and so on, which will not be repeated here.
[0097] It is understandable that the target customers include multiple customers to be planned that may have a binding relationship, that is, they need to plan the same node. In this case, the impact of the binding relationship on the planning needs to be considered.
[0098] Based on this, Figure 7 As shown, in some embodiments, the CDN bandwidth resource planning method further includes:
[0099] Step 606, merge several customers to be planned who require planning of the same node into a virtual customer to be planned, the target bandwidth waveform of the merged customer to be planned is the superposition of the target bandwidth waveforms of the merged customers to be planned, and the priority of the merged planned customer is the priority of the customer to be planned with the highest priority among the merged customers to be planned.
[0100] It should be noted that the virtual plannable node of the customer to be planned formed by merging several customers to be planned who require planning the same node is a plannable node shared by all customers to be planned who require planning the same node.
[0101] It is worth mentioning that customers who need to plan the same nodes are virtualized as one customer to ensure that the same nodes are planned for these customers. At the same time, it can simplify the processing process and improve efficiency.
[0102] Of course, the above is only a specific example. In other embodiments, the priority of the merged planned customer can also be defined as the priority of the customer with the lowest priority among the merged customers to be planned, or the priority of the merged planned customer can be defined as the median of the priorities among the merged customers to be planned, etc., which will not be elaborated here.
[0103] It should be noted that the above is mainly a general description of the CDN bandwidth resource planning method. After determining the target planning node of the target customer and the bandwidth planned for each target planning node, it can also be presented to the customer, CDN supplier, etc. for review. Alternatively, in the event of changes in the situation of the node or the target customer, such as changes in the target bandwidth waveform of the target customer or a failure in the target planning node that requires the service to be stopped, the above CDN bandwidth resource planning method is re-executed, and no further details will be given here.
[0104] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0105] Another aspect of the present invention is to provide a CDN bandwidth resource planning device. Figure 8 As shown, including:
[0106] The acquisition module 801 is used to acquire the target bandwidth waveform of the target customer in the target domain name area within a preset period.
[0107] The grouping module 802 is used to select i nodes as the target, traverse the plannable nodes of the target customer in the target domain name area, and obtain (2 N -1) node combinations, i=1, 2, ..., N, N is the total number of plannable nodes, and each node combination is different from each other.
[0108] The fee determination module 803 is used to respectively determine the bandwidth fee generated by the node combination when the bandwidth represented by the target bandwidth waveform is evenly allocated to i plannable nodes in the node combination.
[0109] The first planning module 804 is used to plan the plannable nodes in the node combination with the minimum bandwidth cost as target planning nodes to the target customer.
[0110] The second planning module 805 is used to plan the bandwidth represented by the target bandwidth waveform to the target planning node on average.
[0111] It is not difficult to find that this embodiment is a system embodiment corresponding to the method embodiment, and this embodiment can be implemented in conjunction with the method embodiment. The relevant technical details mentioned in the method embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the method embodiment.
[0112] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.
[0113] Another aspect of the present invention is to provide an electronic device, such as Fig. 9 As shown, it includes: at least one processor 901; and a memory 902 that is communicatively connected to the at least one processor 901; wherein the memory 902 stores instructions that can be executed by the at least one processor 901, and the instructions are executed by the at least one processor 901 so that the at least one processor 901 can execute the CDN bandwidth resource planning method described in any of the above method embodiments.
[0114] Among them, the memory 902 and the processor 901 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 901 and the memory 902 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 901 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 901.
[0115] The processor 901 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 902 can be used to store data used by the processor 901 when performing operations.
[0116] Another aspect of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the CDN bandwidth resource planning method described in any of the above method embodiments.
[0117] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0118] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A CDN bandwidth resource planning method, characterized in that: include: Obtain a target bandwidth waveform of a target customer in a target domain name area within a preset period; With the goal of selecting i nodes, traverse the plannable nodes of the target customer in the target domain area and obtain (2 N -1) node combinations, i=1, 2, ..., N, N is the total number of the plannable nodes, and each of the node combinations is different from each other; respectively determining the bandwidth cost generated by the node combination when the bandwidth represented by the target bandwidth waveform is evenly allocated to the i plannable nodes in the node combination; Planning the plannable node in the node combination with the minimum bandwidth cost as a target planning node to the target customer; The bandwidth represented by the target bandwidth waveform is averagely planned to the target planning node.
2. The CDN bandwidth resource planning method according to claim 1, characterized in that: After the bandwidth represented by the target bandwidth waveform is averagely planned to the target planning node, the method further includes: On the premise that the bandwidth fee of each target planning node does not increase, the bandwidth within at least one time period planned for at least one target planning node that is billed using the average flow bandwidth method will be re-planned for the same time period of the target planning node that is billed using the non-average flow method.
3. The CDN bandwidth resource planning method according to claim 1 or 2, characterized in that: After the bandwidth represented by the target bandwidth waveform is averagely planned to the target planning node, the method further includes: The bandwidth that exceeds the billing bandwidth among the bandwidth planned for the target planning node that is billed using the 95 peak bandwidth method will be re-planned to the target planning node that uses a fixed bandwidth fee. The billing bandwidth is the bandwidth value used for billing the target planning node that is billed using the 95 peak bandwidth method.
4. The CDN bandwidth resource planning method according to claim 1 or 2, characterized in that: The step of obtaining a target bandwidth waveform of a target customer in a target domain name area within a preset period includes: Obtaining a bandwidth waveform of the target customer in the target domain name area within a preset historical period; According to the customer demand of the target customer, the bandwidth waveform that cannot be planned is removed from the acquired bandwidth waveform to obtain the target bandwidth waveform.
5. The CDN bandwidth resource planning method according to claim 4, characterized in that: After removing the unplannable bandwidth waveforms from the acquired bandwidth waveforms to obtain the target bandwidth waveform, the method further includes: Removing bandwidth waveforms smaller than a preset bandwidth threshold from the target bandwidth waveforms to obtain an updated target bandwidth waveform; The respectively determining the bandwidth cost generated by the node combination when the bandwidth represented by the target bandwidth waveform is evenly allocated to the i plannable nodes in the node combination comprises: The bandwidth costs generated by the node combinations when the bandwidth represented by the updated target bandwidth waveform is evenly allocated to the i plannable nodes in different node combinations are determined in sequence.
6. The CDN bandwidth resource planning method according to claim 1 or 2, characterized in that: The target customers include a number of customers with different priorities to be planned, and the step of obtaining the target bandwidth waveform of the target customers in the target domain name area within a preset period includes: Respectively obtain the target bandwidth waveform of each of the to-be-planned customers in the target domain name area within the preset period; The respectively determining the bandwidth costs generated by the node combination when the target bandwidth waveform is evenly allocated to the i plannable nodes in different node combinations includes: After the planning of the customer to be planned with a priority of k is completed, it is determined that when the bandwidth represented by the target bandwidth waveform of the customer to be planned with a priority of k+1 is evenly planned to i of the plannable nodes in different node combinations, the bandwidth fee generated by the node combination includes the fees incurred by the customers to be planned with a priority of 1, ..., k that have been planned to the plannable nodes in the node combination and the fees incurred by the customers to be planned with a priority of k+1 that are planned to the plannable nodes in the node combination, k=1, 2, ..., M-1, and M is the total number of customers to be planned.
7. The CDN bandwidth resource planning method according to claim 6, characterized in that: Before obtaining the target bandwidth waveform of the target customer in the target domain name area within a preset period, the method further includes: Several customers to be planned who require planning the same node are merged into a virtual customer to be planned, the target bandwidth waveform of the merged customer to be planned is the superposition of the target bandwidth waveforms of the merged customers to be planned, and the priority of the merged planned customer is the priority of the customer to be planned with the highest priority among the merged customers to be planned.
8. A CDN bandwidth resource planning device, characterized in that: include: An acquisition module, used to acquire a target bandwidth waveform of a target customer in a target domain name area within a preset period; The grouping module is used to select i nodes as the target, traverse the plannable nodes of the target customer in the target domain name area, and obtain (2 N -1) node combinations, i=1, 2, ..., N, N is the total number of the plannable nodes, and each of the node combinations is different from each other; A fee determination module, used to sequentially determine the bandwidth fee generated by the node combination when the bandwidth represented by the target bandwidth waveform is evenly allocated to i of the plannable nodes in different node combinations; A first planning module, configured to plan the plannable node in the node combination with the minimum bandwidth cost as a target planning node to the target customer; The second planning module is used to plan the bandwidth represented by the target bandwidth waveform on average to the target planning node.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the CDN bandwidth resource planning method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for planning CDN bandwidth resources according to any one of claims 1 to 7 is implemented.
