Resource planning method and device, computer equipment, readable storage medium and program product
Through automated bandwidth transfer operations, the problem of inefficient resource planning caused by cross-provincial speed limit in the content distribution network is solved, and efficient resource scheduling and service quality assurance are achieved.
Patent Information
- Application Number
- CN202510728337.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-03
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2045-06-03
AI Technical Summary
In the content distribution network, the existing technology relies on manual adjustments during cross-provincial speed limits, resulting in low resource planning efficiency and inability to process in time, and the inability to automatically distinguish between the same province and other provinces.
By determining the total bandwidth upper limit value, current bandwidth value and available resources of the target speed limit node, preset operations such as changing groups, adding groups, and decreasing groups, automatically adjusting bandwidth transfer until the target speed limit node is successfully undertaken, and a resource planning scheme is generated.
It improves the efficiency of resource planning, can handle cross-provincial speed limits in a timely manner, ensures node service quality and reduces bandwidth costs.
Smart Images

Figure CN120238448A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technologies, and in particular, to a resource planning method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] A Content Delivery Network (CDN) is a technology developed to address issues such as large user access volume, dispersed geographical locations, and bandwidth limitations. By adding an additional layer of architecture to the network, content is distributed to edge nodes closer to users, enabling users to obtain accessed content locally and enhancing access speed.
[0003] In related technologies, when a supplier limits the speed of nodes across provinces and restricts the bandwidth ratio of other provinces, the coverage planning cannot automatically distinguish between regions within the same province and other provinces for planning. When nodes are speed-limited across provinces, the current main solution is manual adjustment. The external province coverage of nodes is switched to other nodes, and the bandwidth level within the same province is increased. This process highly relies on manual adjustment and planning, resulting in a large workload and being unable to be processed in a timely manner, leading to slow planning efficiency. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a resource planning method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve resource planning efficiency.
[0005] In a first aspect, this application provides a resource planning method, including:
[0006] Determine the total bandwidth upper limit value of the target speed-limited node, the bandwidth value provided by the target speed-limited node for this region at the current moment, the bandwidth value provided by the target speed-limited node for an external region at the current moment, available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target speed-limited node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target speed-limited node, transferring the bandwidth provided by the target speed-limited node for an external region to the remaining nodes, and transferring the bandwidth provided by the target speed-limited node for an external region to the remaining nodes;
[0007] In the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target rate-limiting node and transfer the bandwidth provided by the target rate-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target rate-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target rate-limiting node until the target rate-limiting node successfully undertakes; the preset operations include group-changing operations, group-adding operations, and group-removing operations;
[0008] In the case where the planning type is to transfer the bandwidth provided by the target rate-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target rate-limiting node until the target rate-limiting node successfully undertakes.
[0009] In one embodiment, the determination process of the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target rate-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external region to the remaining nodes includes:
[0010] Determine the transfer type of the bandwidth that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target rate-limiting node; the transfer type includes the bandwidth upper limit value provided by the target rate-limiting node for this region and the total bandwidth upper limit value of the target rate-limiting node;
[0011] In the case where the transfer type is to transfer to the bandwidth upper limit value provided by the target rate-limiting node for this region, take the difference between the bandwidth upper limit value provided by the target rate-limiting node for this region and the bandwidth value provided by the target rate-limiting node for this region at the current moment as the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target rate-limiting node;
[0012] In the case where the transfer type is to the total bandwidth upper limit value of the target rate-limiting node, take the difference between the total bandwidth upper limit value of the target rate-limiting node and the bandwidth value provided by the target rate-limiting node for this region at the current moment as the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target rate-limiting node;
[0013] Based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target rate-limiting node, perform preset operations on the available resources and the target rate-limiting node to obtain the bandwidth value of the target rate-limiting node after the operation; the bandwidth value of the target rate-limiting node is the sum value between the bandwidth value provided by the target rate-limiting node for this region and the bandwidth value provided by the target rate-limiting node for the external region after the operation;
[0014] Determine the bandwidth value transferred from the remaining nodes to the target rate-limiting node for the external area based on the bandwidth value of the target rate-limiting node, the total bandwidth upper limit value of the target rate-limiting node, and the bandwidth value provided by the target rate-limiting node for the external area at the current moment.
[0015] In one embodiment, the process of determining the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external area to the remaining nodes includes:
[0016] Determine the transfer type of the bandwidth that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external area to the remaining nodes; the transfer type includes the ultra-bandwidth planning ratio and the total bandwidth upper limit value exceeding the target rate-limiting node.
[0017] In the case where the transfer type is the ultra-bandwidth planning ratio, use the difference between the bandwidth value provided by the target rate-limiting node for the local area at the current moment and the bandwidth value provided by the target rate-limiting node for the external area at the current moment as the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external area to the remaining nodes.
[0018] In the case where the transfer type is the total bandwidth upper limit value exceeding the target rate-limiting node, subtract the total bandwidth upper limit value of the target rate-limiting node from the sum of the bandwidth value provided by the target rate-limiting node for the local area at the current moment and the bandwidth value provided by the target rate-limiting node for the external area at the current moment to obtain the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external area to the remaining nodes.
[0019] In one embodiment, the operation of swapping groups for the available resources and the target rate-limiting node includes:
[0020] Obtain the available IP set of the host group of the target rate-limiting node and the effective IP set of the host groups of the remaining nodes in the local area except the target rate-limiting node.
[0021] Based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for the local area to the target rate-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target rate-limiting node for the external area to the remaining nodes, traverse the effective IP set in a preset order and replace the effective IP set with the available IP set.
[0022] In one embodiment, the operations of adding groups and subtracting groups for the available resources and the target rate-limiting node include:
[0023] After all the effective IPs in the group swapping operation are traversed and the target rate-limiting node does not meet the preset conditions, perform addition and subtraction operations on the effective IP set in the host group of the remaining nodes in the local area except the target rate-limiting node.
[0024] In one embodiment, the process of determining whether the target bandwidth-limiting node has successfully taken over includes:
[0025] After performing a preset operation on the available resources and the target bandwidth-limiting node, the difference between the bandwidth value provided by the target bandwidth-limiting node for this region after the preset operation and the upper limit of the bandwidth provided by the target bandwidth-limiting node for this region is used as the bandwidth redundancy of this region;
[0026] The difference between the bandwidth value provided by the target bandwidth-limiting node for the external region after the preset operation and the upper limit of the bandwidth provided by the target bandwidth-limiting node for the external region is used as the bandwidth redundancy of the external region;
[0027] When the bandwidth redundancy of this region and the bandwidth redundancy of the external region are within a preset range, the target bandwidth-limiting node has successfully taken over.
[0028] In a second aspect, the present application also provides a resource planning device, including:
[0029] A determination module, configured to determine the total bandwidth upper limit value of the target bandwidth-limiting node, the bandwidth value provided by the target bandwidth-limiting node for this region at the current moment, the bandwidth value provided by the target bandwidth-limiting node for the external region at the current moment, the available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target bandwidth-limiting node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target bandwidth-limiting node, transferring the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, and transferring the bandwidth provided by the target bandwidth-limiting node for the external region 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 this region to the target bandwidth-limiting node and transfer the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target bandwidth-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, perform a preset operation on the available resources and the target bandwidth-limiting node until the target bandwidth-limiting node has successfully taken over; the preset operation includes group switching operation, group adding operation, and group subtracting operation;
[0031] The operation module is further configured to, when the planning type is to transfer the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, perform a preset operation on the available resources and the target bandwidth-limiting node until the target bandwidth-limiting node has successfully taken over.
[0032] In a third aspect, the present application also provides a computer device, including a memory and a processor. 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 value of the target speed limit node, the bandwidth value provided by the target speed limit node for this region at the current moment, the bandwidth value provided by the target speed limit node for external regions at the current moment, the available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target speed limit node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target speed limit node, transferring the bandwidth provided by the target speed limit node for external regions to the remaining nodes, and transferring the bandwidth provided by the target speed limit node for external regions to the remaining nodes;
[0034] In the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed limit node and transfer the bandwidth provided by the target speed limit node for external regions to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node, and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes; the preset operations include group change operations, group addition operations, and group subtraction operations;
[0035] In the case where the planning type is to transfer the bandwidth provided by the target speed limit node for external regions to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes.
[0036] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0037] Determine the total bandwidth upper limit value of the target speed limit node, the bandwidth value provided by the target speed limit node for this region at the current moment, the bandwidth value provided by the target speed limit node for external regions at the current moment, the available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target speed limit node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target speed limit node, transferring the bandwidth provided by the target speed limit node for external regions to the remaining nodes, and transferring the bandwidth provided by the target speed limit node for external regions to the remaining nodes;
[0038] In the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed-limiting node and transfer the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed-limiting node, and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully takes over; the preset operations include group-changing operations, group-adding operations, and group-removing operations;
[0039] In the case where the planning type is to transfer the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully takes over.
[0040] In a fifth aspect, the present application further provides a computer program product, including a computer program, which when executed by a processor implements the following steps:
[0041] Determine the total bandwidth upper limit value of the target speed-limiting node, the bandwidth value provided by the target speed-limiting node for this region at the current moment, the bandwidth value provided by the target speed-limiting node for the external region at the current moment, the available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target speed-limiting node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target speed-limiting node and transferring the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, and transferring the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes;
[0042] In the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed-limiting node and transfer the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed-limiting node, and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully takes over; the preset operations include group-changing operations, group-adding operations, and group-removing operations;
[0043] In the case where the planning type is to transfer the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully takes over.
[0044] The above resource planning method, device, computer device, computer-readable storage medium, and computer program product first determine the total bandwidth upper limit value of the target speed limit node, the bandwidth value provided by the target speed limit node for this region at the current moment, the bandwidth value provided by the target speed limit node for external regions at the current moment, available resources, and the planning type. In the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed limit node and to transfer the bandwidth provided by the target speed limit node for external regions to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes. In the case where the planning type is to transfer the bandwidth provided by the target speed limit node for external regions to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes. In this way, by automatically generating a corresponding resource planning scheme according to the preset plan, it is ensured that cross-provincial speed limit can be processed in a timely manner. For the processed nodes, the scheduling between this region and external regions is increased. On the premise of meeting the preset plan, the service quality of the nodes is also ensured, 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 will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0046] Figure 1 It is an application environment diagram of the resource planning method in an embodiment;
[0047] Figure 2 It is a flowchart of the resource planning method in an embodiment;
[0048] Figure 3 It is a structural block diagram of the resource planning device in an embodiment;
[0049] Figure 4 It is an internal structure diagram of a computer device in an embodiment. Detailed Embodiments
[0050] In order to make the objectives, technical solutions, and advantages of this application clearer, the following further elaborates on this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely used to explain this application and are not used to limit this application.
[0051] The resource planning method provided by the embodiments of this application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through a 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 can be placed in the cloud or on other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0052] In an exemplary embodiment, as Figure 2 shown, a resource planning method is provided. Taking the method applied to the Figure 1 terminal 102 as an example, the following steps 202 to 206 are included. Among them:
[0053] Step 202: Determine the total bandwidth upper limit value of the target speed-limiting node, the bandwidth value provided by the target speed-limiting node for this region at the current moment, the bandwidth value provided by the target speed-limiting node for the external region at the current moment, the available resources, and the planning type.
[0054] Among them, the available resources are the host groups of the remaining nodes in this region except the target speed-limiting node. One remaining node can include multiple host groups; the planning types include transferring the bandwidth provided by the remaining nodes for this region to the target speed-limiting node, transferring the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes, and transferring the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes.
[0055] Exemplarily, the terminal determines the total bandwidth upper limit value of the target speed-limiting node, the bandwidth value provided by the target speed-limiting node for this region at the current moment, the bandwidth value provided by the target speed-limiting node for the external region at the current moment, the available resources, and the planning type.
[0056] Among them, the bandwidth value provided by the target speed limit node for this region at the current moment and the bandwidth value provided by the target speed limit node for external regions at the current moment can also be the bandwidth value provided by the target speed limit node for this region at the peak time and the bandwidth value provided by the target speed limit node for external regions at the peak time, which can be set according to the actual situation, and the embodiments of the present application do not limit this.
[0057] For example, this region can be this province, and the external region can be other provinces. The terminal determines the total bandwidth upper limit value that the target speed limit node can undertake during the planning process, the bandwidth value provided by the target speed limit node for the province at the current moment, the bandwidth value provided by the target speed limit node for other provinces at the current moment, the bandwidth planning ratio of the external province region, and the host group and planning type of the remaining nodes in this province except the target speed limit node.
[0058] Step 204, in the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed limit node and transfer the bandwidth provided by the target speed limit node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for the external region to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes.
[0059] Among them, the preset operations include group switching operations, group adding operations, and group subtracting operations;
[0060] Optionally, the terminal determines the planning type of the target speed limit node. In the case where the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed limit node and transfer the bandwidth provided by the target speed limit node for the external region to the remaining nodes, according to the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for the external region to the remaining nodes, perform group switching operations, group adding operations, and group subtracting operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes.
[0061] For example, the terminal determines the planning type of the target speed limit node. In the case where the planning type is to switch back to the same province and transfer out of other provinces, according to the bandwidth value that the remaining nodes need to switch back to the same province and the bandwidth value that the remaining nodes need to transfer out of other provinces, perform group switching operations, group adding operations, and group subtracting operations between the available resources and the target speed limit node until the target speed limit node successfully undertakes.
[0062] Step 206: When the planning type is to transfer the bandwidth provided by the target speed-limiting node to the external area to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node to the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes it.
[0063] Exemplarily, when the planning type is to transfer the bandwidth provided by the target speed-limiting node to the external area to the remaining nodes, according to the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node to the external area to the remaining nodes, perform group swapping operations, group adding operations, and group subtracting operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes it.
[0064] For example, when the planning type is to only transfer out of other provinces, determine the bandwidth value that the remaining nodes need to transfer out of other provinces, and perform group swapping operations, group adding operations, and group subtracting operations between the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes it.
[0065] In one embodiment, after the resource planning is completed, generate a resource adjustment report according to the generated resource planning and the preset resource planning effective time.
[0066] In the above resource planning method, determine the total bandwidth upper limit value 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, the available resources, and the planning type; when the planning type is to transfer the bandwidth provided by the remaining nodes for the local area to the target speed-limiting node and to transfer the bandwidth provided by the target speed-limiting node for the external area to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for the local area to the target speed-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes it; when the planning type is to transfer the bandwidth provided by the target speed-limiting node for the external area to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external area to the remaining nodes, perform preset operations on the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes it. In this way, by automatically generating the corresponding resource planning scheme according to the preset plan, it is ensured that cross-province speed limiting can be processed in a timely manner. For the processed nodes, the scheduling between the local area and the external area is increased. On the premise of meeting the preset plan, the service quality of the nodes is also ensured, and the efficiency of resource planning is improved.
[0067] In an exemplary embodiment, the determination process of the broadband value that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region, and the bandwidth value that the target rate-limiting node needs to transfer to the remaining nodes for the bandwidth provided to the external region includes: determining the transfer type of the broadband that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region; the transfer type includes the upper limit value of the bandwidth provided by the target rate-limiting node for this region and the upper limit value of the total bandwidth transferred to the target rate-limiting node;
[0068] In the case where the transfer type is the upper limit value of the bandwidth provided by the target rate-limiting node for this region, the difference between the upper limit value of the bandwidth provided by the target rate-limiting node for this region and the bandwidth value provided by the target rate-limiting node for this region at the current moment is used as the broadband value that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region;
[0069] In the case where the transfer type is the upper limit value of the total bandwidth to the target rate-limiting node, the difference between the upper limit value of the total bandwidth of the target rate-limiting node and the bandwidth value provided by the target rate-limiting node for this region at the current moment is used as the broadband value that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region; based on the broadband value that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region, perform a preset operation on the available resources and the target rate-limiting node to obtain the bandwidth value of the target rate-limiting node after the operation; the bandwidth value of the target rate-limiting node is the sum value between the bandwidth value provided by the target rate-limiting node for this region after the operation and the bandwidth value provided for the external region; based on the bandwidth value of the target rate-limiting node, the upper limit value of the total bandwidth of the target rate-limiting node, and the bandwidth value provided by the target rate-limiting node for the external region at the current moment, determine the broadband value that the remaining nodes transfer to the target rate-limiting node for the bandwidth provided to the external region.
[0070] In actual implementation, determine the transfer type of the broadband that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region. When the transfer type is the upper limit value of the bandwidth provided by the target rate-limiting node for this region, the difference between the upper limit value of the bandwidth provided by the target rate-limiting node for this region and the bandwidth value provided by the target rate-limiting node for this region at the current moment is used as the broadband value that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region, and the specific calculation formula is as shown in (1); in the case where the transfer type is the upper limit value of the total bandwidth to the target rate-limiting node, the difference between the upper limit value of the total bandwidth of the target rate-limiting node and the bandwidth value provided by the target rate-limiting node for this region at the current moment is used as the broadband value that the remaining nodes need to transfer to the target rate-limiting node for the broadband provided by this region, and the specific calculation formula is as shown in (2).
[0071]
[0072]
[0073] Among them, is the upper bandwidth limit provided by the target speed-limiting node for this region, which is obtained by subtracting the upper bandwidth limit provided by the target speed-limiting node for the external region from the total bandwidth limit of the target speed-limiting node. The upper bandwidth limit provided by the target speed-limiting node for the external region is obtained by multiplying the total bandwidth limit of the target speed-limiting node by the bandwidth ratio of the external region; is the bandwidth value provided by the target speed-limiting node for this region at the current moment, and L is the total bandwidth limit of the target speed-limiting node.
[0074] According to the broadband value that needs to be transferred to the target speed-limiting node according to the broadband provided by the remaining nodes for this region, perform preset operations on the available resources and the target speed-limiting node to obtain the bandwidth value of the target speed-limiting node after the operation; according to the bandwidth value of the target speed-limiting node, the total bandwidth limit of the target speed-limiting node, and the bandwidth value provided by the target speed-limiting node for the external region at the current moment, determine the broadband value that the remaining nodes provide for the external region and transfer to the target speed-limiting node. The specific calculation formula is as shown in (3).
[0075]
[0076] Among them, is the bandwidth value of the target speed-limiting node after the operation, is the bandwidth value provided by the target speed-limiting node for the external region at the current moment.
[0077] In the above embodiments, by adjusting back the bandwidth of this region of the remaining nodes and transferring out the bandwidth of the external region of the target speed-limiting node, the resource planning becomes more reasonable.
[0078] In an exemplary embodiment, the process of determining the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node for the external region to the remaining nodes includes: determining the transfer type of the bandwidth that needs to be transferred from the broadband provided by the target speed-limiting node for the external region to the remaining nodes; the transfer type includes the over-bandwidth planning ratio and exceeding the total bandwidth limit of the target speed-limiting node; in the case where the transfer type is the over-bandwidth planning ratio, take the difference between the bandwidth value provided by the target speed-limiting node for this region at the current moment and the bandwidth value provided by the target speed-limiting node for the external region at the current moment as the bandwidth value that the bandwidth provided by the target speed-limiting node for the external region needs to be transferred to the remaining nodes; in the case where the transfer type is exceeding the total bandwidth limit of the target speed-limiting node, subtract the total bandwidth limit of the target speed-limiting node from the sum of the bandwidth value provided by the target speed-limiting node for this region at the current moment and the bandwidth value provided by the target speed-limiting node for the external region at the current moment to obtain the bandwidth value that the bandwidth provided by the target speed-limiting node for the external region needs to be transferred to the remaining nodes.
[0079] In actual implementation, determine the transfer type of the broadband provided by the target speed limit node for the external area that needs to be transferred to the remaining nodes. When the transfer type is the ultra-bandwidth planning ratio, take the difference between the bandwidth value provided by the target speed limit node for this area at the current moment and the bandwidth value provided by the target speed limit node for the external area at the current moment as the bandwidth value that the bandwidth provided by the target speed limit node for the external area needs to be transferred to the remaining nodes. The specific calculation formula is as shown in (4).
[0080]
[0081] Among them, is the bandwidth value provided by the target speed limit node for the external area at the current moment, is the upper limit value of the bandwidth provided by the target speed limit node for the external area, which is obtained by multiplying the total bandwidth upper limit value of the target speed limit node by the bandwidth ratio of the external area.
[0082] When the transfer type is higher than the total bandwidth upper limit value of the target speed limit node, subtract the total bandwidth upper limit value of the target speed limit node from the sum of the bandwidth value provided by the target speed limit node for this area at the current moment and the bandwidth value provided by the target speed limit node for the external area at the current moment to obtain the bandwidth value that the bandwidth provided by the target speed limit node for the external area needs to be transferred to the remaining nodes. The specific calculation formula is as shown in (5).
[0083]
[0084] Among them, is the bandwidth value provided by the target speed limit node for this area at the current moment, is the bandwidth value provided by the target speed limit node for the external area at the current moment, and L is the total bandwidth upper limit value of the target speed limit node.
[0085] In the above embodiments, according to specific situations, set the corresponding bandwidth adjustment type for the target speed limit node, which increases the applicability of the resource planning method.
[0086] In an exemplary embodiment, perform a group swapping operation on the available resources and the target speed limit node, including: obtaining the available IP set of the host group of the target speed limit node and the effective IP set of the host groups of the remaining nodes in this area except the target speed limit node; based on the bandwidth value that the broadband provided by the remaining nodes for this area needs to be transferred to the target speed limit node and the bandwidth value that the bandwidth provided by the target speed limit node for the external area needs to be transferred to the remaining nodes, traverse the effective IP set in a preset order, and replace the effective IP set with the available IP set.
[0087] In actual implementation, obtain the set of available IPs of the host group of the target speed-limiting node and the set of effective IPs of the host groups of the remaining nodes in this region except the target speed-limiting node. Among them, a host group includes multiple IPs.
[0088] When the planning type of the target speed-limiting node is to transfer the bandwidth provided by the remaining nodes to this region to the target speed-limiting node and to transfer the bandwidth provided by the target speed-limiting node to the external region to the remaining nodes, according to the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes to this region to the target speed-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node to the external region to the remaining nodes, traverse the set of effective IPs in the preset order, and replace the set of effective IPs with the set of available IPs.
[0089] When the planning type of the target speed-limiting node is to transfer the bandwidth provided by the target speed-limiting node to the external region to the remaining nodes, according to the bandwidth value that needs to be transferred from the bandwidth provided by the target speed-limiting node to the external region to the remaining nodes, traverse the set of effective IPs in the preset order, and replace the set of effective IPs with the set of available IPs.
[0090] In one embodiment, obtain the set of effective IPs, and sort the set of effective IPs in the priority order of external region, non-speed-limiting in this region, and speed-limiting in this region to obtain the preset order.
[0091] In the above embodiment, by performing a group swapping operation between the available resources and the target speed-limiting node, the utilization rate of resources is improved.
[0092] In an exemplary embodiment, perform a group addition operation and a group subtraction operation on the available resources and the target speed-limiting node, including: after all the effective IPs in the group swapping operation are traversed and the target speed-limiting node does not meet the preset conditions, perform an increase and decrease action on the set of effective IPs in the host group of the remaining nodes in this region except the target speed-limiting node.
[0093] Among them, the preset condition is that the bandwidth of the target speed-limiting node meets the preset planning for the target speed-limiting node, or the target speed-limiting node has successfully taken over.
[0094] In actual implementation, after all the effective IPs in the group swapping operation are traversed and the target speed-limiting node does not meet the preset conditions, perform an increase and decrease action on the set of effective IPs in the host group of the remaining nodes in this region except the target speed-limiting node.
[0095] For example, after the group change operation, if the target speed limit node still does not meet the preset conditions, remove the effective IPs that have successfully changed groups, add new effective IPs, and reduce the average bandwidth on each remaining effective IP. Suppose that after the group change operation, there are still 2 available IPs on the target speed limit node, the bandwidth to be adjusted is 10, and the bandwidth corresponding to each available IP is 5. For the remaining nodes, there is still 30 bandwidth to be adjusted, and there are 5 effective IPs left, with each effective IP corresponding to a bandwidth of 6. At this time, a group addition operation needs to be performed on the remaining nodes to add an effective IP, so that each effective IP corresponds to 5, and then the next group change is carried out to complete the replacement of all available IPs in the target speed limit node.
[0096] In the above embodiments, by performing the group addition and group subtraction operations during the process of swapping available resources with the target speed limit node, 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 received includes: after performing a preset operation on the available resources and the target speed limit node, taking the difference between the bandwidth value provided by the target speed limit node for this region after the preset operation and the bandwidth upper limit value provided by the target speed limit node for this region as the bandwidth redundancy for this region; taking the difference between the bandwidth value provided by the target speed limit node for the external region after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external region as the bandwidth redundancy for the external region; when the bandwidth redundancy for this region and the bandwidth redundancy for the external region are within the preset range, the target speed limit node has successfully received.
[0098] In actual implementation, after performing a preset operation on the available resources and the target speed limit node, taking the difference between the bandwidth value provided by the target speed limit node for this region after the preset operation and the bandwidth upper limit value provided by the target speed limit node for this region as the bandwidth redundancy for this region, and the specific calculation formula is as shown in (6).
[0099]
[0100] Among them, is the bandwidth redundancy for this region, is the bandwidth value provided by the target speed limit node for this region after the preset operation, which can also be understood as the bandwidth value provided by the target speed limit node for this region at the current moment, is the bandwidth upper limit value provided by the target speed limit node for this region.
[0101] Taking the difference between the bandwidth value provided by the target speed limit node for the external region after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external region as the bandwidth redundancy for the external region, and the specific calculation formula is as shown in (7).
[0102]
[0103] Among them, is the bandwidth redundancy of this region, is the bandwidth value provided by the target speed-limiting node for the external region after the preset operation, which can also be understood as the bandwidth value provided by the target speed-limiting node for the external region at the current moment, is the upper limit of the bandwidth provided by the target speed-limiting node for this region.
[0104] When both the bandwidth redundancy of this region and the bandwidth redundancy of the external region are within the preset range, the target speed-limiting node successfully undertakes. Among them, the preset range is set by the user according to the actual situation, and the embodiments of this application do not limit this.
[0105] In the above embodiments, by judging whether the target speed-limiting node successfully undertakes during the resource planning process, the accuracy of the resource planning method for adjusting according to specific situations is ensured.
[0106] To illustrate the resource planning method in this application in detail, an embodiment is described below. Exemplarily, this application describes the resource planning method in a specific scenario.
[0107] First, the terminal determines the total bandwidth upper limit value of the target speed-limiting node, the bandwidth value provided by the target speed-limiting node for this province at the current moment, the bandwidth value provided by the target speed-limiting node for other provinces at the current moment, the available resources, and the planning type.
[0108] The terminal determines the planning type of the target speed-limiting node. When the planning type is to switch the remaining nodes back to the same province and transfer them out of other provinces, according to the bandwidth value required for the remaining nodes to switch back to the same province and the bandwidth value required for the remaining nodes to be transferred out of other provinces, group swapping operations, group adding operations, and group subtracting operations are performed on the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes.
[0109] When the planning type is only to transfer out of other provinces, determine the bandwidth value required for the remaining nodes to be transferred out of other provinces, and perform group swapping operations, group adding operations, and group subtracting operations between the available resources and the target speed-limiting node until the target speed-limiting node successfully undertakes.
[0110] This application performs group swapping, group adding, and group subtracting operations on the resources involved in the cross-province speed-limiting nodes, increases the bandwidth level of the same province while reducing the cross-province bandwidth level, ensures the rationality of the coverage plan, reduces the impact of cross-province speed-limiting on the service quality of nodes, and is conducive to controlling the bandwidth cost.
[0111] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.
[0112] Based on the same inventive concept, an embodiment of the present application also provides a resource planning device for implementing the above-mentioned resource planning method. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the resource planning device provided below can refer to the limitations on the resource planning method in the above text, and will not be repeated here.
[0113] In an exemplary embodiment, as Figure 3 shown, a resource planning device 300 is provided, including: a determination module 301 and an operation module 302, where:
[0114] The determination module 301 is configured to determine the total bandwidth upper limit value of the target speed limit node, the bandwidth value provided by the target speed limit node for this region at the current moment, the bandwidth value provided by the target speed limit node for the external region at the current moment, the available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target speed limit node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target speed limit node, transferring the bandwidth provided by the target speed limit node for the external region to the remaining nodes, and transferring the bandwidth provided by the target speed limit node for the external region to the remaining nodes.
[0115] The operation module 302 is configured to, when the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed limit node and transfer the bandwidth provided by the target speed limit node for the external region to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node, and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for the external region to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully takes over; the preset operations include group change operations, group addition operations, and group subtraction operations.
[0116] The operation module 302 is further configured to, when the planning type is to transfer the bandwidth provided by the target speed limit node to the external area to the remaining nodes, perform a preset operation on the available resources and the target speed limit node based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node to the external area to the remaining nodes until the target speed limit node successfully undertakes it.
[0117] In some embodiments, the determining module 301 is further configured to determine the transfer type of the broadband that the remaining nodes need to transfer to the target speed limit node for the local area;
[0118] When the transfer type is to transfer to the upper limit value of the bandwidth provided by the target speed limit node for the local area, the difference between the upper limit value of the bandwidth provided by the target speed limit node for the local area and the bandwidth value provided by the target speed limit node for the local area at the current moment is used as the broadband value that the remaining nodes need to transfer to the target speed limit node for the local area;
[0119] When the transfer type is to the total bandwidth upper limit value of the target speed limit node, the difference between the total bandwidth upper limit value of the target speed limit node and the bandwidth value provided by the target speed limit node for the local area at the current moment is used as the broadband value that the remaining nodes need to transfer to the target speed limit node for the local area;
[0120] Based on the broadband value that the remaining nodes need to transfer to the target speed limit node for the local area, perform a preset operation on the available resources and the target speed limit node to obtain the bandwidth value of the target speed limit node after the operation; the bandwidth value of the target speed limit node is the sum value between the bandwidth value provided by the target speed limit node for the local area after the operation and the bandwidth value provided for the external area;
[0121] Based on the bandwidth value of the target speed limit node, the total bandwidth upper limit value of the target speed limit node, and the bandwidth value provided by the target speed limit node for the external area at the current moment, determine the broadband value that the remaining nodes transfer the broadband provided for the external area to the target speed limit node.
[0122] In some embodiments, the determining module 301 is further configured to determine the transfer type of the broadband that the target speed limit node needs to transfer to the remaining nodes for the external area;
[0123] When the transfer type is the over-bandwidth planning ratio, the difference between 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 is used as the bandwidth value that the target speed limit node needs to transfer the broadband provided for the external area to the remaining nodes;
[0124] In the case where the transfer type is the total bandwidth upper limit value of the hyper-target speed limit node, subtract the total bandwidth upper limit value of the target speed limit node from the sum of the bandwidth value provided by the target speed limit node for this region at the current moment and the bandwidth value provided by the target speed limit node for the external region at the current moment, to obtain the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for the external region to the remaining nodes.
[0125] In some embodiments, the above operation module 302 is further configured to obtain the available IP set of the host group of the target speed limit node and the effective IP set of the host group of the remaining nodes in this region except the target speed limit node;
[0126] Based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for the external region to the remaining nodes, traverse the effective IP set in a preset order, and replace the effective IP set with the available IP set.
[0127] In some embodiments, the above operation module 302 is further configured to perform addition and subtraction operations on the effective IP set in the host group of the remaining nodes in this region except the target speed limit node when all the effective IPs in the group change operation are traversed and the target speed limit node does not meet the preset conditions.
[0128] In some embodiments, the device further includes a judgment device, configured to, after performing a preset operation on the available resources and the target speed limit node, use the difference between the bandwidth value provided by the target speed limit node for this region after the preset operation and the bandwidth upper limit value provided by the target speed limit node for this region as the bandwidth redundancy of this region;
[0129] Use the difference between the bandwidth value provided by the target speed limit node for the external region after the preset operation and the bandwidth upper limit value provided by the target speed limit node for the external region as the bandwidth redundancy of the external region;
[0130] In the case where the bandwidth redundancy of this region and the bandwidth redundancy of the external region are within a preset range, the target speed limit node successfully undertakes.
[0131] Each module in the above resource planning device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or be independent of it, or can be stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0132] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 4As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, 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 the 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 external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a resource planning method.
[0133] The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball, or a touchpad set on the computer device housing, or an external keyboard, touchpad, or mouse, etc.
[0134] Those skilled in the art can understand that Figure 4 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0135] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the steps in the above method embodiments are implemented.
[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 the processor, the steps in the above method embodiments are implemented.
[0137] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[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 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 need to comply with relevant regulations.
[0139] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing 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 methods. Among them, any reference to a memory, database, or other medium 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), magnetoresistive 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 be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0140] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered as the scope recorded in this application.
[0141] The above-described embodiments merely represent several implementation manners of this application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application shall be subject to the appended claims.
Claims
1. A resource planning method, characterized in that, The method includes: Determining the total bandwidth upper limit value of the target speed limit node, the bandwidth value provided by the target speed limit node for this region at the current moment, the bandwidth value provided by the target speed limit node for external regions at the current moment, the available resources, and the planning type; the available resources are the host groups of the remaining nodes in this region except the target speed limit node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target speed limit node, transferring the bandwidth provided by the target speed limit node for external regions to the remaining nodes, and transferring the bandwidth provided by the target speed limit node for external regions to the remaining nodes; When the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target speed limit node and transfer the bandwidth provided by the target speed limit node for external regions to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes; the preset operations include group switching operations, group adding operations, and group subtracting operations; When the planning type is to transfer the bandwidth provided by the target speed limit node for external regions to the remaining nodes, based on the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes, perform preset operations on the available resources and the target speed limit node until the target speed limit node successfully undertakes.
2. The method according to claim 1, characterized in that, The determination process of the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node and the bandwidth value that needs to be transferred from the bandwidth provided by the target speed limit node for external regions to the remaining nodes includes: Determining the transfer type of the bandwidth that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node; the transfer type includes transferring to the bandwidth upper limit value provided by the target speed limit node for this region and transferring to the total bandwidth upper limit value of the target speed limit node; When the transfer type is to transfer to the bandwidth upper limit value provided by the target speed limit node for this region, use the difference between the bandwidth upper limit value provided by the target speed limit node for this region and the bandwidth value provided by the target speed limit node for this region at the current moment as the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node; When the transfer type is to the total bandwidth upper limit value of the target speed limit node, use the difference between the total bandwidth upper limit value of the target speed limit node and the bandwidth value provided by the target speed limit node for this region at the current moment as the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node; Based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target speed limit node, perform preset operations on the available resources and the target speed limit node to obtain the bandwidth value of the target speed limit node after the operation; the bandwidth value of the target speed limit node is the sum value between the bandwidth value provided by the target speed limit node for this region and the bandwidth value provided by the target speed limit node for external regions after the operation; Determine the bandwidth value transferred from the remaining nodes to the target throttling node for the external area based on the bandwidth value of the target throttling node, the total bandwidth upper limit value of the target throttling node, and the bandwidth value provided by the target throttling node for the external area at the current moment.
3. The method according to claim 1, characterized in that The process of determining the bandwidth value transferred from the bandwidth provided by the target throttling node for the external area to the remaining nodes includes: Determine the transfer type of the bandwidth that needs to be transferred from the bandwidth provided by the target throttling node for the external area to the remaining nodes; the transfer type includes the over-bandwidth planning ratio and the total bandwidth upper limit value exceeding the target throttling node. In the case where the transfer type is the over-bandwidth planning ratio, use the difference between the bandwidth value provided by the target throttling node for the local area at the current moment and the bandwidth value provided by the target throttling node for the external area at the current moment as the bandwidth value transferred from the bandwidth provided by the target throttling node for the external area to the remaining nodes. In the case where the transfer type is the total bandwidth upper limit value exceeding the target throttling node, subtract the total bandwidth upper limit value of the target throttling node from the sum of the bandwidth value provided by the target throttling node for the local area at the current moment and the bandwidth value provided by the target throttling node for the external area at the current moment to obtain the bandwidth value transferred from the bandwidth provided by the target throttling node for the external area to the remaining nodes.
4. The method according to claim 1, wherein The operation of re-grouping the available resources and the target throttling node includes: Obtain the available IP set of the host group of the target throttling node and the effective IP set of the host groups of the remaining nodes in the local area except the target throttling node. Based on the bandwidth value transferred from the bandwidth provided by the remaining nodes for the local area to the target throttling node and the bandwidth value transferred from the bandwidth provided by the target throttling node for the external area to the remaining nodes, traverse the effective IP set in a preset order and replace the effective IP set with the available IP set.
5. The method according to claim 1, wherein The operations of adding and subtracting groups to the available resources and the target throttling node include: After all the effective IPs in the re-grouping operation are traversed and the target throttling node does not meet the preset conditions, perform addition and subtraction operations on the effective IP set in the host group of the remaining nodes in the local area except the target throttling node.
6. The method according to claim 1, characterized in that, The process of determining whether the target throttling node has successfully taken over includes: After performing a preset operation on the available resources and the target throttling node, use the difference between the bandwidth value provided by the target throttling node for the local area after the preset operation and the bandwidth upper limit value provided by the target throttling node for the local area as the local area bandwidth redundancy. Use the difference between the bandwidth value provided by the target throttling node for the external area after the preset operation and the bandwidth upper limit value provided by the target throttling node for the external area as the external area bandwidth redundancy. In the case where the local area bandwidth redundancy and the external area bandwidth redundancy are within the preset range, the target throttling node has successfully taken over.
7. A resource planning device, characterized in that, The device includes: A determination module, configured to determine the total bandwidth upper limit value of a target bandwidth-limiting node, the bandwidth value provided by the target bandwidth-limiting node for this region at the current moment, the bandwidth value provided by the target bandwidth-limiting node for an external region at the current moment, available resources, and a planning type; the available resources are the host groups of the remaining nodes in this region except the target bandwidth-limiting node; the planning type includes transferring the bandwidth provided by the remaining nodes for this region to the target bandwidth-limiting node, transferring the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, and transferring the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes; An operation module, configured to, when the planning type is to transfer the bandwidth provided by the remaining nodes for this region to the target bandwidth-limiting node and transfer the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target bandwidth-limiting node based on the bandwidth value that needs to be transferred from the bandwidth provided by the remaining nodes for this region to the target bandwidth-limiting node and the bandwidth value that needs to be transferred from the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes until the target bandwidth-limiting node successfully undertakes; the preset operations include group switching operations, group adding operations, and group subtracting operations; The operation module is further configured to, when the planning type is to transfer the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes, perform preset operations on the available resources and the target bandwidth-limiting node based on the bandwidth value that needs to be transferred from the bandwidth provided by the target bandwidth-limiting node for the external region to the remaining nodes until the target bandwidth-limiting node successfully undertakes.
8. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
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
CDN node distribution method and device, electronic equipment and storage medium
CN115134369A
Bandwidth planning method and device and computer equipment
CN119544509A
Bandwidth scheduling method and device, computer equipment, storage medium and program product
CN119603156A