Resource planning method, device, computer equipment, readable storage medium and program product
Through automated group replacement, group addition and group reduction operations, the problem of inefficient bandwidth planning caused by cross-provincial speed limit in the content distribution network is solved, timely processing and efficient resource scheduling are achieved, and the service quality of nodes is ensured.
Patent Information
- Application Number
- CN202510728337.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-06-03
AI Technical Summary
In the content distribution network, the bandwidth planning efficiency caused by cross-provincial speed limit is inefficient, cannot be processed in time, rely on manual adjustments, and cannot automatically distinguish between the same province and other provinces, resulting in slow planning efficiency.
By determining the total bandwidth upper limit value, current bandwidth value and available resources of the target speed limit node, the group replacement, group addition and group reduction operations are adopted to automatically adjust the bandwidth to achieve resource planning until the target speed limit node is successfully undertaken.
It realizes timely processing under cross-provincial speed limits, improves resource planning efficiency, ensures node service quality, reduces manual intervention, and improves planning automation and accuracy.
Smart Images

Figure CN120238448B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a resource planning method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Content Delivery Network (CDN) is a technology developed to address issues such as large user traffic, geographically dispersed locations, and bandwidth limitations. By adding a layer of architecture to the network, content is distributed to edge nodes close to users, allowing users to access content nearby and improving access speed.
[0003] In related technologies, when providers implement cross-provincial speed limits on nodes and restrict the proportion of inter-provincial bandwidth, coverage planning cannot automatically distinguish between areas within the same province and those outside the province. The current main solution for this problem is manual adjustment, switching the node's inter-provincial coverage to other nodes and increasing the bandwidth within the same province. This process relies heavily on manual planning, resulting in a large workload and delays in timely processing, leading to slow planning efficiency. Summary of the Invention
[0004] Based on this, it is necessary to provide a resource planning method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve resource planning efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a resource planning method, comprising:
[0006] Determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and planning type; available resources are the host groups of the remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes;
[0007] In a case where the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation;
[0008] In the case where the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0009] In one embodiment, the process of determining the bandwidth value required to be transferred from the remaining nodes to the target speed-limited node for the bandwidth provided by the remaining nodes in the local area, and the bandwidth value required to be transferred from the target speed-limited node to the bandwidth provided by the target speed-limited node in the external area to the remaining nodes includes:
[0010] Determine the transfer type of the bandwidth provided by the remaining nodes for the local area to the target speed-limited node; the transfer type includes the upper limit value of the bandwidth provided by the target speed-limited node for the local area and the upper limit value of the total bandwidth transferred to the target speed-limited node;
[0011] If the transfer type is to transfer to the upper bandwidth limit value provided by the target speed-limited node for the local area, the difference between the upper bandwidth limit value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for the local area at the current moment is used as the bandwidth value required to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node;
[0012] If the transfer type is to the total bandwidth upper limit of the target speed-limited node, the difference between the total bandwidth upper limit of the target speed-limited node and the bandwidth value currently provided by the target speed-limited node for the local area is used as the bandwidth value required to be transferred from the remaining nodes to the target speed-limited node.
[0013] Based on the bandwidth value of the bandwidth provided by the remaining nodes for the local area and required to be transferred to the target speed-limited node, a preset operation is performed on the available resources and the target speed-limited node to obtain the bandwidth value of the target speed-limited node after the operation; the bandwidth value of the target speed-limited node is the sum of the bandwidth value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for external areas after the operation;
[0014] Based on the bandwidth value of the target speed-limited node, the total bandwidth upper limit of the target speed-limited node and the bandwidth value provided by the target speed-limited node for the external area at the current moment, the bandwidth value of the bandwidth provided by the remaining nodes for the external area transferred to the target speed-limited node is determined.
[0015] In one embodiment, the process of determining the bandwidth value required to be transferred to the remaining nodes from the bandwidth provided by the target rate-limiting node to the external area includes:
[0016] Determine the transfer type of the bandwidth provided by the target speed-limited node to the external area to be transferred to the remaining nodes; the transfer type includes the excess bandwidth planning ratio and the excess total bandwidth upper limit value of the target speed-limited node;
[0017] If the transfer type is exceeding the bandwidth planning ratio, the difference between the bandwidth value provided by the target speed-limited node for the local area at the current moment and the bandwidth value provided by the target speed-limited node for the external area at the current moment is used as the bandwidth value required to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes;
[0018] When the transfer type is exceeding the total bandwidth upper limit of the target speed-limited node, the sum of the bandwidth value provided by the target speed-limited node for the local area at the current moment and the bandwidth value provided by the target speed-limited node for the external area at the current moment is subtracted from the total bandwidth upper limit of the target speed-limited node to obtain the bandwidth value required to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes.
[0019] In one embodiment, performing a group-swapping operation on the available resources and the target rate-limiting node includes:
[0020] Obtain the available IP sets of the host group of the target rate-limited node and the valid IP sets of the host groups of the remaining nodes in the area except the target rate-limited node;
[0021] Based on the bandwidth value that needs to be transferred from the remaining nodes to the target speed-limited node for the bandwidth provided by the remaining nodes for the local area and the bandwidth value that needs to be transferred from the target speed-limited node to the remaining nodes for the bandwidth provided by the target speed-limited node for the external area, the effective IP set is traversed in a preset order and the effective IP set is replaced with the available IP set.
[0022] In one embodiment, performing group addition and group removal operations on the available resources and the target rate-limiting node includes:
[0023] After all valid IPs are traversed in the group change operation and the target rate-limiting node does not meet the preset conditions, the valid IP sets in the host groups of the remaining nodes in the area except the target rate-limiting node are increased or decreased.
[0024] In one embodiment, the process of determining whether the target rate-limiting node has successfully taken over includes:
[0025] After performing a preset operation on the available resources and the target rate-limiting node, a difference between a bandwidth value provided by the target rate-limiting node for the local area after the preset operation and a bandwidth upper limit value provided by the target rate-limiting node for the local area is used as the bandwidth redundancy of the local area;
[0026] The difference between the bandwidth value provided by the target speed limit node for the external area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external area is used as the external area bandwidth redundancy;
[0027] When the bandwidth redundancy of the local area and the bandwidth redundancy of the external area are within a preset range, the target rate-limiting node takes over successfully.
[0028] In a second aspect, the present application further provides a resource planning device, comprising:
[0029] a determination module, configured to determine a total bandwidth upper limit of a target speed-limited node, a bandwidth value provided by the target speed-limited node for the local area at the current moment, a bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and a planning type; available resources are host groups of remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes;
[0030] an operation module, configured to, when the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limited node based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation;
[0031] The operation module is further configured to, when the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limited node based on the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, until the target speed-limited node successfully takes over.
[0032] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0033] Determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and planning type; available resources are the host groups of the remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes;
[0034] In a case where the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation;
[0035] In the case where the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0037] Determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and planning type; available resources are the host groups of the remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes;
[0038] In a case where the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation;
[0039] In the case where the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0040] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
[0041] Determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and planning type; available resources are the host groups of the remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes;
[0042] In a case where the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation;
[0043] In the case where the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0044] The resource planning method, apparatus, computer device, computer-readable storage medium, and computer program product described above first determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for the external area at the current moment, available resources, and a planning type. If the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node based on the bandwidth values required to be transferred from the remaining nodes to the local area and the bandwidth values required to be transferred from the target speed-limited node to the remaining nodes until the target speed-limited node successfully takes over. If the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node based on the bandwidth values required to be transferred from the target speed-limited node to the remaining nodes until the target speed-limited node successfully takes over. In this way, by automatically generating the corresponding resource planning plan based on the preset plan, it is ensured that cross-provincial speed limits can be handled in a timely manner. For the processed nodes, scheduling of the local area and external areas is increased. On the premise of meeting the preset plan, the service quality of the node is also guaranteed, and the efficiency of resource planning is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 A diagram of an application environment of a resource planning method in one embodiment;
[0047] Figure 2 1 is a flow chart of a resource planning method according to an embodiment;
[0048] Figure 3 is a structural block diagram of a resource planning device in one embodiment;
[0049] Figure 4 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0051] The resource planning method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The terminal 102 communicates with the server 104 via the network. The data storage system can store the bandwidth data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0052] In an exemplary embodiment, Figure 2 As shown, a resource planning method is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate the process, including the following steps 202 to 206. Among them:
[0053] Step 202: Determine the total bandwidth upper limit of the target speed-limiting node, the bandwidth value provided by the target speed-limiting node for the local area at the current moment, the bandwidth value provided by the target speed-limiting node for the external area at the current moment, available resources, and planning type.
[0054] The available resources are the host groups of the remaining nodes in the local area except the target rate-limited node. A remaining node can include multiple host groups. Planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target rate-limited node, transferring the bandwidth provided by the target rate-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target rate-limited node for external areas to the remaining nodes.
[0055] Exemplarily, the terminal determines the total bandwidth upper limit of the target speed limit node, the bandwidth value provided by the target speed limit node for the local area at the current moment, the bandwidth value provided by the target speed limit node for the external area at the current moment, available resources and planning type.
[0056] Among them, the bandwidth value provided by the target speed limit node for the local area at the current moment and the bandwidth value provided by the target speed limit node for the external area at the current moment can also be the bandwidth value provided by the target speed limit node for the local area at the peak and the bandwidth value provided by the target speed limit node for the external area at the peak. They can be set according to actual conditions, and the embodiments of the present application are not limited to this.
[0057] For example, the local area can be the current province, and the external area can be another province. The terminal determines the upper limit of the total bandwidth that the target speed-limited node can undertake during the planning process, the bandwidth value provided by the target speed-limited node for the province at the current moment, the bandwidth value provided by the target speed-limited node for another province at the current moment, the bandwidth planning ratio of the other province area, and the host group and planning type of the remaining nodes in the province except the target speed-limited node.
[0058] In step 204, when the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the remaining nodes for the local area that needs to be transferred to the target speed-limited node, and the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0059] Among them, the preset operations include group change operation, group addition operation and group reduction operation;
[0060] Optionally, the terminal determines the planning type of the target speed-limited node. When the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, the terminal performs group change operations, group addition operations, and group reduction operations on the available resources and the target speed-limited node according to the bandwidth value of the bandwidth provided by the remaining nodes for the local area that needs to be transferred to the target speed-limited node, and the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, until the target speed-limited node successfully takes over.
[0061] For example, the terminal determines the planning type of the target speed-limited node. When the planning type is to switch back to the same province and transfer out of other provinces, the terminal performs group switching, group adding, and group reducing operations between the available resources and the target speed-limited node according to the bandwidth values of the remaining nodes that need to switch back to the same province and the bandwidth values of the remaining nodes that need to transfer out of other provinces until the target speed-limited node is successfully taken over.
[0062] In step 206, when the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0063] For example, when the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, the available resources and the target speed-limited node are subjected to group change operations, group addition operations, and group reduction operations according to the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes until the target speed-limited node successfully takes over.
[0064] For example, when the planning type is to only transfer out of other provinces, the bandwidth value of the remaining nodes that need to be transferred out of other provinces is determined, and group switching operations, group addition operations, and group reduction operations are performed between the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0065] In one embodiment, after the resource planning is completed, a resource adjustment report is generated based on the generated resource planning and the preset resource planning effective time.
[0066] In the above resource planning method, the total bandwidth upper limit value of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for the external area at the current moment, the available resources and the planning type are determined; in the case where the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the remaining nodes for the local area that needs to be transferred to the target speed-limited node and the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over; in the case where the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over. In this way, by automatically generating the corresponding resource planning plan based on the preset plan, it is ensured that cross-provincial speed limits can be handled in a timely manner. For the processed nodes, scheduling of the local area and external areas is increased. On the premise of meeting the preset plan, the service quality of the node is also guaranteed, and the efficiency of resource planning is improved.
[0067] In an exemplary embodiment, a process for determining a bandwidth value required for transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, and a bandwidth value required for transferring the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, includes: determining a transfer type required for transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node; the transfer type includes a bandwidth upper limit value provided by the target speed-limited node for the local area, and a total bandwidth upper limit value transferred to the target speed-limited node;
[0068] If the transfer type is to transfer to the upper bandwidth limit value provided by the target speed-limited node for the local area, the difference between the upper bandwidth limit value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for the local area at the current moment is used as the bandwidth value required to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node;
[0069] When the transfer type is the total bandwidth upper limit value to the target speed-limited node, the difference between the total bandwidth upper limit value of the target speed-limited node and the bandwidth value provided by the target speed-limited node for the local area at the current moment is used as the bandwidth value of the broadband provided by the remaining nodes for the local area that needs to be transferred to the target speed-limited node; based on the bandwidth value of the broadband provided by the remaining nodes for the local area that needs to be transferred to the target speed-limited node, a preset operation is performed on the available resources and the target speed-limited node to obtain the bandwidth value of the target speed-limited node after the operation; the bandwidth value of the target speed-limited node is the sum of the bandwidth value provided by the target speed-limited node for the local area and the bandwidth value provided for external areas after the operation; based on the bandwidth value of the target speed-limited node, the total bandwidth upper limit value of the target speed-limited node, and the bandwidth value provided by the target speed-limited node for external areas at the current moment, the bandwidth value of the broadband provided by the remaining nodes for external areas that needs to be transferred to the target speed-limited node is determined.
[0070] In actual implementation, the transfer type of the broadband provided by the remaining nodes for the region that needs to be transferred to the target speed-limited node is determined. When the transfer type is the transfer to the bandwidth upper limit value provided by the target speed-limited node for the region, the difference between the bandwidth upper limit value provided by the target speed-limited node for the region and the bandwidth value provided by the target speed-limited node for the region at the current moment is used as the broadband value required for the broadband provided by the remaining nodes for the region to be transferred to the target speed-limited node. The specific calculation formula is shown in (1). When the transfer type is the total bandwidth upper limit value to the target speed-limited node, the difference between the total bandwidth upper limit value of the target speed-limited node and the bandwidth value provided by the target speed-limited node for the region at the current moment is used as the broadband value required for the broadband provided by the remaining nodes for the region to be transferred to the target speed-limited node. The specific calculation formula is shown in (2).
[0071]
[0072]
[0073] in, The upper limit of bandwidth provided by the target speed-limited node for the local area is calculated by subtracting the upper limit of bandwidth provided by the target speed-limited node for external areas from the total upper limit of bandwidth of the target speed-limited node. The upper limit of bandwidth provided by the target speed-limited node for external areas is calculated by multiplying the total upper limit of bandwidth of the target speed-limited node by the bandwidth ratio of the external area. is the bandwidth value provided by the target speed-limiting node for this area at the current moment, and L is the total bandwidth upper limit of the target speed-limiting node.
[0074] According to the bandwidth value that needs to be transferred from the remaining nodes to the target speed-limited node, a preset operation is performed on the available resources and the target speed-limited node to obtain the bandwidth value of the target speed-limited node after the operation; according to the bandwidth value of the target speed-limited node, the total bandwidth upper limit of the target speed-limited node and the bandwidth value provided by the target speed-limited node for the external area at the current moment, the bandwidth value of the broadband provided by the remaining nodes for the external area to be transferred to the target speed-limited node is determined. The specific calculation formula is shown in (3).
[0075]
[0076] in, is the bandwidth value of the target speed-limiting node after the operation, The bandwidth value provided by the target rate-limiting node to the external area at the current moment.
[0077] In the above embodiment, resource planning is made more reasonable by adjusting the bandwidth of the local area of the remaining nodes back and adjusting the bandwidth of the external area of the target rate-limited node out.
[0078] In an exemplary embodiment, a process for determining a bandwidth value required to transfer bandwidth provided by a target speed-limited node to an external area to remaining nodes includes: determining a transfer type for the bandwidth provided by the target speed-limited node to the external area to remaining nodes; the transfer types include exceeding a planned bandwidth ratio and exceeding a total bandwidth upper limit of the target speed-limited node; when the transfer type is exceeding a planned bandwidth ratio, using a difference between a bandwidth value provided by the target speed-limited node for the local area at a current moment and a bandwidth value provided by the target speed-limited node for the external area at a current moment as the bandwidth value required to transfer bandwidth provided by the target speed-limited node for the external area to remaining nodes; when the transfer type is exceeding a total bandwidth upper limit of the target speed-limited node, subtracting the total bandwidth upper limit of the target speed-limited node from a sum of a bandwidth value provided by the target speed-limited node for the local area at a current moment and a bandwidth value provided by the target speed-limited node for the external area at a current moment to obtain a bandwidth value required to transfer bandwidth provided by the target speed-limited node for the external area to remaining nodes.
[0079] In actual implementation, the transfer type of the broadband provided by the target speed-limited node to the external area that needs to be transferred to the remaining nodes is determined. In the case where the transfer type is the excess bandwidth planning ratio, the difference between the bandwidth value provided by the target speed-limited node to the local area at the current moment and the bandwidth value provided by the target speed-limited node to the external area at the current moment is used as the bandwidth value provided by the target speed-limited node to the external area that needs to be transferred to the remaining nodes. The specific calculation formula is shown in (4).
[0080]
[0081] in, The bandwidth value provided by the target speed-limiting node to the external area at the current moment, The bandwidth upper limit provided by the target rate-limited node to the external area is obtained by multiplying the total bandwidth upper limit of the target rate-limited node by the bandwidth ratio of the external area.
[0082] In the case where the transfer type is exceeding the total bandwidth upper limit of the target speed-limited node, the sum of the bandwidth value provided by the target speed-limited node for the local area at the current moment and the bandwidth value provided by the target speed-limited node for the external area at the current moment is subtracted from the total bandwidth upper limit of the target speed-limited node to obtain the bandwidth value required to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes. The specific calculation formula is shown in (5).
[0083]
[0084] in, The bandwidth value provided by the target speed-limiting node for this area at the current moment. is the bandwidth value provided by the target speed-limiting node to the external area at the current moment, and L is the total bandwidth upper limit of the target speed-limiting node.
[0085] In the above embodiment, a corresponding bandwidth adjustment type is set for the target rate-limited node according to specific circumstances, thereby increasing the applicability of the resource planning method.
[0086] In an exemplary embodiment, a group change operation is performed on available resources and a target speed-limited node, including: obtaining an available IP set of a host group of the target speed-limited node and an effective IP set of host groups of remaining nodes in the local area except the target speed-limited node; based on a bandwidth value required to be transferred to the target speed-limited node for the bandwidth provided by the remaining nodes for the local area and a bandwidth value required to be transferred to the remaining nodes for the bandwidth provided by the target speed-limited node for the external area, traversing the effective IP set in a preset order and replacing the effective IP set with the available IP set.
[0087] In actual implementation, the available IP set of the host group of the target rate-limited node and the valid IP set of the host groups of the remaining nodes in the region excluding the target rate-limited node are obtained. A host group includes multiple IPs.
[0088] When the planning type of the target speed-limited node is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, the effective IP set is traversed in a preset order according to the bandwidth value of the bandwidth provided by the remaining nodes for the local area that needs to be transferred to the target speed-limited node and the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, and the effective IP set is replaced with the available IP set.
[0089] When the planning type of the target speed limit node is to transfer the bandwidth provided by the target speed limit node for the external area to the remaining nodes, according to the bandwidth value of the bandwidth provided by the target speed limit node for the external area that needs to be transferred to the remaining nodes, the effective IP set is traversed in a preset order, and the effective IP set is replaced with the available IP set.
[0090] In one embodiment, a valid IP set is obtained, and the valid IP set is sorted according to the priority order of external area, local non-speed limit and local speed limit to obtain a preset order.
[0091] In the above embodiment, the resource utilization is improved by performing a group swap operation on the available resources and the target rate-limiting node.
[0092] In an exemplary embodiment, group addition and group reduction operations are performed on available resources and target rate-limiting nodes, including: after all valid IP traversals are completed in the group change operation and the target rate-limiting node does not meet the preset conditions, the valid IP sets in the host groups of the remaining nodes in the area except the target rate-limiting node are increased and reduced.
[0093] The preset condition is that the bandwidth of the target speed-limiting node meets the preset plan for the target speed-limiting node, or the target speed-limiting node is successfully taken over.
[0094] In actual implementation, after all valid IPs are traversed in the group change operation and the target speed limit node does not meet the preset conditions, the valid IP set in the host group of the remaining nodes in the area except the target speed limit node is increased or decreased.
[0095] For example, after the group change operation, if the target speed limit node still does not meet the preset conditions, the effective IP that has been successfully grouped is removed, and a new effective IP is added, reducing the average bandwidth of each remaining effective IP. If, after the group change operation, there are 2 available IPs left in the target speed limit node, the bandwidth that needs to be adjusted is 10, and each available IP corresponds to a bandwidth of 5, while the remaining nodes still have 30 bandwidths to be adjusted, and there are 5 effective IPs left, and each effective IP corresponds to a bandwidth of 6. At this time, it is necessary to add a group to the remaining nodes, add an effective IP, so that each effective IP corresponds to 5, and then proceed to the next group change, so that all available IPs in the target speed limit node are replaced.
[0096] In the above embodiment, by performing group addition and group reduction operations during the group exchange operation between available resources and target rate-limited nodes, the flexibility of the resource planning method is improved.
[0097] In an exemplary embodiment, the process of determining whether the target speed limit node has successfully taken over includes: after performing preset operations on available resources and the target speed limit node, using the difference between the bandwidth value provided by the target speed limit node for the local area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the local area as the bandwidth redundancy of the local area; using the difference between the bandwidth value provided by the target speed limit node for the external area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external area as the bandwidth redundancy of the external area; if the bandwidth redundancy of the local area and the bandwidth redundancy of the external area are within the preset range, the target speed limit node has successfully taken over.
[0098] In actual implementation, after the preset operation is performed on the available resources and the target speed limit node, the difference between the bandwidth value provided by the target speed limit node for this area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for this area is used as the bandwidth redundancy of this area. The specific calculation formula is shown in (6).
[0099]
[0100] in, To ensure bandwidth redundancy in this area, It is the bandwidth value provided by the target speed limit node for this area after the preset operation. It can also be understood as the bandwidth value provided by the target speed limit node for this area at the current moment. The upper limit of the bandwidth provided by the target rate-limiting node for this area.
[0101] The difference between the bandwidth value provided by the target speed limit node for the external area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external area is used as the specific calculation formula for the external area bandwidth redundancy as shown in (7).
[0102]
[0103] in, To ensure bandwidth redundancy in this area, It is the bandwidth value provided by the target speed limit node to the external area after the preset operation. It can also be understood as the bandwidth value provided by the target speed limit node to the external area at the current moment. The upper limit of the bandwidth provided by the target rate-limiting node for this area.
[0104] If both the local and external bandwidth redundancies are within the preset range, the target speed-limited node is successfully accepted. The preset range is set by the user based on actual conditions and is not limited in this embodiment of the application.
[0105] In the above embodiment, by determining whether the target rate-limited node is successfully taken over during the resource planning process, the accuracy of adjusting the resource planning method according to specific circumstances is ensured.
[0106] To illustrate the resource planning method in this application in detail, an embodiment is used below for illustration. For example, this application illustrates the resource planning method in a specific scenario.
[0107] First, the terminal determines the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the province at the current moment, the bandwidth value provided by the target speed-limited node for other provinces at the current moment, available resources and planning type.
[0108] The terminal determines the planning type of the target speed-limited node. When the planning type is to switch the remaining nodes back to the same province and transfer them out of other provinces, the terminal performs group switching, group addition, and group reduction operations on the available resources and the target speed-limited node according to the bandwidth values that the remaining nodes need to switch back to the same province and the bandwidth values that the remaining nodes need to transfer out of other provinces until the target speed-limited node is successfully taken over.
[0109] When the planning type is to transfer out of other provinces only, determine the bandwidth value of the remaining nodes that need to transfer out of other provinces, and perform group switching, group adding, and group removal operations between the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
[0110] This application performs group change, group addition, and group reduction operations on the resources involved in the cross-provincial speed-limited nodes, increasing the bandwidth level within the same province while reducing the cross-provincial bandwidth level, ensuring the rationality of coverage planning, reducing the impact of cross-provincial speed limits on node service quality, and helping to control bandwidth costs.
[0111] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0112] Based on the same inventive concept, embodiments of the present application further provide a resource planning device for implementing the resource planning method described above. The implementation solution provided by this device is similar to the implementation solution described in the method described above. Therefore, the specific limitations in one or more resource planning device embodiments provided below can be found in the above-mentioned limitations on the resource planning method and will not be further elaborated here.
[0113] In an exemplary embodiment, Figure 3 As shown, a resource planning device 300 is provided, comprising: a determination module 301 and an operation module 302, wherein:
[0114] Determination module 301 is used to determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for the external area at the current moment, available resources and planning type; the available resources are the host group of the remaining nodes in the local area except the target speed-limited node; the planning type includes transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and transferring the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for the external area to the remaining nodes.
[0115] The operation module 302 is used to perform preset operations on the available resources and the target speed-limited node based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, until the target speed-limited node successfully takes over. The preset operations include group change operation, group addition operation and group subtraction operation.
[0116] The operation module 302 is further used to perform preset operations on the available resources and the target speed-limited node based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, until the target speed-limited node successfully takes over, when the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes.
[0117] In some embodiments, the determination module 301 is further configured to determine a transfer type for the broadband provided by the remaining nodes in the region to be transferred to a target speed-limited node;
[0118] If the transfer type is to transfer to the upper bandwidth limit value provided by the target speed-limited node for the local area, the difference between the upper bandwidth limit value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for the local area at the current moment is used as the bandwidth value required to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node;
[0119] If the transfer type is to the total bandwidth upper limit of the target speed-limited node, the difference between the total bandwidth upper limit of the target speed-limited node and the bandwidth value currently provided by the target speed-limited node for the local area is used as the bandwidth value required to be transferred from the remaining nodes to the target speed-limited node.
[0120] Based on the bandwidth value of the bandwidth provided by the remaining nodes for the local area and required to be transferred to the target speed-limited node, a preset operation is performed on the available resources and the target speed-limited node to obtain the bandwidth value of the target speed-limited node after the operation; the bandwidth value of the target speed-limited node is the sum of the bandwidth value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for external areas after the operation;
[0121] Based on the bandwidth value of the target speed-limited node, the total bandwidth upper limit of the target speed-limited node, and the bandwidth value provided by the target speed-limited node for the external area at the current moment, the bandwidth value of the bandwidth provided by the remaining nodes for the external area transferred to the target speed-limited node is determined.
[0122] In some embodiments, the determination module 301 is further configured to determine a transfer type for the broadband provided by the target speed-limited node to the external area to be transferred to the remaining nodes;
[0123] If the transfer type is exceeding the planned bandwidth ratio, the difference between the bandwidth currently provided by the target speed-limited node for the local area and the bandwidth currently provided by the target speed-limited node for external areas is used as the bandwidth provided by the target speed-limited node for external areas to be transferred to the remaining nodes.
[0124] When the transfer type is exceeding the total bandwidth upper limit of the target speed-limited node, the sum of the bandwidth value provided by the target speed-limited node for the local area at the current moment and the bandwidth value provided by the target speed-limited node for the external area at the current moment is subtracted from the total bandwidth upper limit of the target speed-limited node to obtain the bandwidth value required to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes.
[0125] In some embodiments, the operation module 302 is further configured to obtain an available IP set of the host group of the target rate-limiting node and an effective IP set of the host groups of the remaining nodes in the region except the target rate-limiting node.
[0126] Based on the bandwidth value that needs to be transferred from the remaining nodes to the target speed-limited node for the bandwidth provided by the remaining nodes for the local area and the bandwidth value that needs to be transferred from the target speed-limited node to the remaining nodes for the bandwidth provided by the target speed-limited node for the external area, the effective IP set is traversed in a preset order and the effective IP set is replaced with the available IP set.
[0127] In some embodiments, the above-mentioned operation module 302 is also used to increase and decrease the effective IP set in the host group of the remaining nodes in the area except the target speed limit node after all effective IP traversals are completed in the group change operation and the target speed limit node does not meet the preset conditions.
[0128] In some embodiments, the device further includes a determining device for, after performing a preset operation on the available resources and the target rate-limiting node, using a difference between a bandwidth value provided by the target rate-limiting node for the local area after the preset operation and a bandwidth upper limit value provided by the target rate-limiting node for the local area as the bandwidth redundancy of the local area;
[0129] The difference between the bandwidth value provided by the target speed limit node for the external area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external area is used as the external area bandwidth redundancy;
[0130] When the bandwidth redundancy of the local area and the bandwidth redundancy of the external area are within a preset range, the target rate-limiting node takes over successfully.
[0131] Each module in the resource planning device described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in hardware form, or may be stored in a memory in a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0132] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface, a display unit and an input device. The processor, memory and input / output interface are connected via a system bus, and the communication interface, display unit and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store resource data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a resource planning method is implemented.
[0133] The display unit of the computer device is used to produce a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, a keypad, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse.
[0134] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0135] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0139] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.
[0140] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0141] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A resource planning method, characterized in that: The method comprises: Determine the total bandwidth upper limit of the target speed-limited node, the bandwidth value provided by the target speed-limited node for the local area at the current moment, the bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and planning type; available resources are the host groups of the remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes; In a case where the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation; In the case where the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, based on the bandwidth value of the bandwidth provided by the target speed-limited node for the external area that needs to be transferred to the remaining nodes, preset operations are performed on the available resources and the target speed-limited node until the target speed-limited node successfully takes over.
2. The method according to claim 1, characterized in that The process of determining the bandwidth value required to be transferred from the remaining nodes to the target speed-limited node for the bandwidth provided by the remaining nodes in the local area, and the bandwidth value required to be transferred from the target speed-limited node to the bandwidth provided by the target speed-limited node in the external area, includes: Determine the transfer type of the bandwidth provided by the remaining nodes for the local area to the target speed-limited node; the transfer type includes the upper limit value of the bandwidth provided by the target speed-limited node for the local area and the upper limit value of the total bandwidth transferred to the target speed-limited node; If the transfer type is to transfer to the upper bandwidth limit value provided by the target speed-limited node for the local area, the difference between the upper bandwidth limit value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for the local area at the current moment is used as the bandwidth value required to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node; If the transfer type is to transfer the total bandwidth upper limit of the target speed-limited node, the difference between the total bandwidth upper limit of the target speed-limited node and the bandwidth value currently provided by the target speed-limited node for the local area is used as the bandwidth value required to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node. Based on the bandwidth value of the bandwidth provided by the remaining nodes for the local area and required to be transferred to the target speed-limited node, a preset operation is performed on the available resources and the target speed-limited node to obtain the bandwidth value of the target speed-limited node after the operation; the bandwidth value of the target speed-limited node is the sum of the bandwidth value provided by the target speed-limited node for the local area and the bandwidth value provided by the target speed-limited node for external areas after the operation; Based on the bandwidth value of the target speed-limited node, the total bandwidth upper limit of the target speed-limited node and the bandwidth value provided by the target speed-limited node for the external area at the current moment, the bandwidth value of the bandwidth provided by the remaining nodes for the external area transferred to the target speed-limited node is determined.
3. The method according to claim 1, characterized in that The process of determining the bandwidth value required to be transferred to the remaining nodes from the bandwidth provided by the target rate-limiting node to the external area includes: Determine the transfer type of the bandwidth provided by the target speed-limited node to the external area to be transferred to the remaining nodes; the transfer type includes the excess bandwidth planning ratio and the excess total bandwidth upper limit value of the target speed-limited node; If the transfer type is exceeding the bandwidth planning ratio, the difference between the bandwidth value provided by the target speed-limited node for the local area at the current moment and the bandwidth value provided by the target speed-limited node for the external area at the current moment is used as the bandwidth value required to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes; When the transfer type is exceeding the total bandwidth upper limit of the target speed-limited node, the sum of the bandwidth value provided by the target speed-limited node for the local area at the current moment and the bandwidth value provided by the target speed-limited node for the external area at the current moment is subtracted from the total bandwidth upper limit of the target speed-limited node to obtain the bandwidth value required to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes.
4. The method according to claim 1, wherein Performing a group switching operation on the available resources and the target rate-limiting node includes: Obtain the available IP sets of the host group of the target rate-limited node and the valid IP sets of the host groups of the remaining nodes in the area except the target rate-limited node; Based on the bandwidth value that needs to be transferred from the remaining nodes to the target speed-limited node for the bandwidth provided by the remaining nodes for the local area and the bandwidth value that needs to be transferred from the target speed-limited node to the remaining nodes for the bandwidth provided by the target speed-limited node for the external area, the effective IP set is traversed in a preset order and the effective IP set is replaced with the available IP set.
5. The method according to claim 1, wherein Performing group addition and group removal operations on the available resources and the target rate-limited node includes: After all valid IPs are traversed in the group change operation and the target rate-limiting node does not meet the preset conditions, the valid IP sets in the host groups of the remaining nodes in the area except the target rate-limiting node are increased or decreased.
6. The method according to claim 1, characterized in that The process of determining whether the target rate limit node has been successfully accepted includes: After performing a preset operation on the available resources and the target rate-limiting node, a difference between a bandwidth value provided by the target rate-limiting node for the local area after the preset operation and a bandwidth upper limit value provided by the target rate-limiting node for the local area is used as the bandwidth redundancy of the local area; The difference between the bandwidth value provided by the target speed limit node for the external area after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external area is used as the external area bandwidth redundancy; When the bandwidth redundancy of the local area and the bandwidth redundancy of the external area are within a preset range, the target rate-limiting node takes over successfully.
7. A resource planning device, characterized in that: The device comprises: a determination module, configured to determine a total bandwidth upper limit of a target speed-limited node, a bandwidth value provided by the target speed-limited node for the local area at the current moment, a bandwidth value provided by the target speed-limited node for external areas at the current moment, available resources, and a planning type; available resources are host groups of remaining nodes in the local area excluding the target speed-limited node; planning types include transferring the bandwidth provided by the remaining nodes for the local area to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for external areas to the remaining nodes; an operation module, configured to, when the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limited node based on the bandwidth value required to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limited node and the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, until the target speed-limited node successfully takes over; the preset operations include a group change operation, a group addition operation, and a group removal operation; The operation module is further configured to, when the planning type is to transfer the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limited node based on the bandwidth value required to be transferred from the bandwidth provided by the target speed-limited node for the external area to the remaining nodes, until the target speed-limited node successfully takes over.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Scheduling method and system for node server bandwidth resources in CDN network
CN110493046A
Dynamic strategy generation method and device, equipment and storage medium
CN112995683A