A network resource allocation method, device and computer equipment

By obtaining the average peak bandwidth and edge node cost line of the target area in the content distribution network, and selecting the appropriate host group for resource allocation, the complexity of host group combination selection is solved, and resource allocation with optimal bandwidth cost is achieved, ensuring Efficient use of resources and service quality.

CN114430374BActive Publication Date: 2024-09-27CHINA TELECOM CLOUD TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202111585006.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-09-27
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

In a content distribution network, it becomes difficult to choose the appropriate host group combination to cover different resolution groups and areas to achieve the optimal result of bandwidth cost, especially since the host group can serve multiple resolution groups and areas, and one resolution Group-Zones can be served using multiple host groups, making the selection process complex.

Method used

By obtaining the average peak bandwidth of the target area and the cost line and scheduling upper limit of edge nodes, select available host groups for network resource allocation, calculate clusters and perform aggregation processing to meet preset conditions to ensure the accuracy and cost-effectiveness of resource allocation. .

Benefits of technology

Effectively eliminate abnormal peak bandwidth, avoid bandwidth emergencies, and provide a more accurate resource allocation plan, which can not only save costs but also meet the maximum scheduling demand, reduce resource waste, and obtain the best network resource allocation plan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114430374B
    Figure CN114430374B
Patent Text Reader

Abstract

The present invention discloses a network resource allocation method, device and computer equipment, the method comprising: obtaining resource pool resources in a target area; obtaining the average peak bandwidth within a first preset time based on the target area; obtaining the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; selecting an available host group in the host group based on the corresponding relationship between the resource pool resources and the edge node cost line and the scheduling upper limit; and allocating network resources based on the average peak bandwidth of the available host group and the target area. By calculating the average peak bandwidth of the target area, abnormal peak bandwidth can be effectively eliminated to avoid interference from bandwidth bursts, and accurate peak bandwidth data can be provided to obtain a suitable network resource allocation plan. The available host group selected according to the edge node cost line and the scheduling upper limit meets the needs of cost saving and maximum scheduling, and the optimal network resource allocation plan can be obtained in one traversal, reducing unnecessary resource waste.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a network resource allocation method, device and computer equipment. Background Art

[0002] Content Delivery Network (CDN) is an intelligent virtual network built on the existing network. It relies on edge node servers deployed throughout the network and uses the load balancing, content distribution, scheduling and other functional modules of the central platform to enable users to obtain the required content nearby, thereby reducing network congestion and improving user access response speed and hit rate.

[0003] Furthermore, a group of host groups (the next level planning of edge node servers, on which an indefinite number of upstream traffic IPs will be mounted) is used to provide services for the resolution group (a collection of domain names that need to be accelerated)-region, also known as the coverage resources of the resolution group in this region. A resolution group needs to be provided with services by a group of host groups in each region, and a host group can also provide services for multiple resolution groups-regions. Since the billing coefficients and cost bandwidths of the edge nodes to which the host groups belong are different, when there are multiple choices for candidate coverage resources for a resolution group-region, edge node servers with lower billing coefficients (i.e., cheaper bandwidth costs) and bandwidths below the cost bandwidth line are usually selected to provide services, which can save the bandwidth costs of edge node servers while ensuring service quality.

[0004] In actual applications, since a host group can serve multiple resolution groups-regions, and a resolution group-region can also use multiple host groups to serve it, there is a many-to-many selection relationship between the two. Therefore, it is very difficult to select the appropriate host group combination to cover different resolution groups-regions to achieve the optimal result in terms of bandwidth cost. Summary of the invention

[0005] Therefore, the technical problem to be solved by the present invention is to overcome the defects in the prior art, thereby providing a network resource allocation method, device and computer equipment.

[0006] According to a first aspect, an embodiment of the present invention discloses a network resource allocation method, the method comprising: obtaining resource pool resources within a target area; obtaining an average peak bandwidth within a first preset time based on the target area; obtaining a cost line and a scheduling upper limit of an edge node to which a host group belongs in the resource pool resources; selecting an available host group in the host group based on a correspondence between the resource pool resources and the cost line and the scheduling upper limit of the edge node; and allocating network resources based on the available host groups and the average peak bandwidth of the corresponding target area.

[0007] Optionally, obtaining the average peak bandwidth within the first preset time based on the target area includes: obtaining the peak bandwidth of each day within the first preset time based on the target area to form initial clusters; calculating the distance between each of the clusters; obtaining two clusters with the smallest distance based on the distance between the two clusters; aggregating the two clusters with the smallest distance to obtain aggregated clusters; obtaining the number of aggregated clusters based on the aggregated clusters and remaining clusters; judging whether the number of aggregated clusters meets a preset condition; if the preset condition is met, calculating the average peak bandwidth of the aggregated clusters.

[0008] Optionally, the method further includes: if the preset condition is not met, executing the step of calculating the distance between each pair of clusters to the step of judging whether the number of clusters after the aggregation processing meets the preset condition, until the preset condition is met, and calculating the average peak bandwidth of the clusters after aggregation.

[0009] Optionally, the resource pool resources include a main resource pool and an extended resource pool, and the selecting of an available host group in the host group based on the correspondence between the resource pool resources and the edge node cost line and the scheduling upper limit includes: sorting the host groups in the resource pool resources based on the edge node cost line and the scheduling upper limit to obtain the cost line sequence and the scheduling upper limit sequence of the host group; selecting a first host group based on the main resource pool and the cost line sequence of the host group; selecting a second host group based on the main resource pool, the extended resource pool and the cost line sequence; selecting a third host group based on the main resource pool and the scheduling upper limit sequence of the host group; selecting a fourth host group based on the main resource pool, the extended resource pool and the scheduling upper limit sequence; and obtaining the available host groups based on the first host group, the second host group, the third host group and the fourth host group.

[0010] Optionally, the network resource allocation based on the average peak bandwidth of the available host group and the corresponding target area includes: obtaining the maximum number of IPs and the planned bandwidth within the target area; obtaining the comprehensive redundant bandwidth of the host group based on the peak redundant bandwidth of the available host group and the peak redundant bandwidth of the edge node to which the available host group belongs; obtaining the IP comprehensive redundant bandwidth of the available host group based on the comprehensive redundant bandwidth of the host group and the number of IPs of the host group; traversing each of the available host groups and obtaining the IP comprehensive redundant bandwidth of each of the available host groups; obtaining a corresponding IP structure based on the planned bandwidth, the available host groups and the IP comprehensive redundancy corresponding to the available host groups; judging whether the number of IPs in the IP structure is greater than the number of IPs corresponding to the structure; if it is greater than the number of IPs corresponding to the structure, using the IP structure as a network resource allocation scheme.

[0011] Optionally, the method also includes: if it is less than the number of IPs corresponding to the structure, executing the step of obtaining the corresponding IP structure based on the planned bandwidth, available host groups and the IP comprehensive redundancy corresponding to the available host groups to the step of determining whether the number of IPs in the IP structure is greater than the number of IPs corresponding to the structure, until the IP redundancy in the structure is greater than the corresponding number of IPs.

[0012] Optionally, the corresponding IP structure is obtained based on the planned bandwidth, the host group and the IP comprehensive redundancy corresponding to the host group, including: obtaining the planned bearer bandwidth of the host group based on the planned bandwidth and the number of IPs of the host group; obtaining the corresponding IP structure based on the planned bearer bandwidth of the host group and the IP comprehensive redundant bandwidth corresponding to the host group.

[0013] According to the second aspect, an embodiment of the present invention further discloses a network resource allocation device, comprising: a first acquisition module, used to acquire resource pool resources within a target area; a peak bandwidth module, used to obtain the average peak bandwidth within a first preset time based on the target area; a second acquisition module, used to acquire the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; a first selection module, used to select an available host group in the host group based on the correspondence between the resource pool resources and the edge node cost line and scheduling upper limit; a second selection module, used to allocate network resources based on the available host group and the average peak bandwidth of the corresponding target area.

[0014] According to the third aspect, an embodiment of the present invention also discloses a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor performs the steps of the network resource allocation method as described in the first aspect or any optional implementation manner of the first aspect.

[0015] According to a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the network resource allocation method as described in the first aspect or any optional embodiment of the first aspect.

[0016] The technical solution of the present invention has the following advantages:

[0017] The network resource allocation method, device and computer equipment provided by the present invention include: obtaining resource pool resources in a target area; obtaining the average peak bandwidth within a first preset time based on the target area; obtaining the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; selecting an available host group in the host group based on the corresponding relationship between the resource pool resources and the cost line and scheduling upper limit of the edge node; and allocating network resources based on the average peak bandwidth of the available host group and the corresponding target area. By calculating the average peak bandwidth of the target area, abnormal peak bandwidth can be effectively eliminated to avoid interference from bandwidth bursts, and more accurate peak bandwidth data can be provided to obtain an accurate network resource allocation plan. The available host group selected according to the cost line and scheduling upper limit of the edge node can meet both cost saving and maximum scheduling requirements, and the optimal network resource allocation plan can be obtained with one traversal, reducing unnecessary resource waste. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A flowchart of a specific example of a method for allocating network resources in an embodiment of the present invention;

[0020] Figure 2 is a principle block diagram of a specific example of a network resource allocation device in an embodiment of the present invention;

[0021] Figure 3 A specific example diagram of a computer device in an embodiment of the present invention;

[0022] Figure 4A-4C A schematic diagram of a specific example of a method for allocating network resources in an embodiment of the present invention;

[0023] Figure 5A-5D It is a schematic diagram of a specific example of the network resource allocation method in an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0026] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0027] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0028] The embodiment of the present invention discloses a network resource allocation method, such as Figure 1 As shown, the method comprises the following steps:

[0029] Step 101: Obtain resource pool resources in the target area. Exemplarily, the target area is a collection of address domain names that need network acceleration, and the resource pool resources are a series of host group collections. The host group is the next level planning of the edge node server, that is, multiple host groups can be planned under one edge node server, and an indefinite number of upstream traffic IPs will be mounted on the host group to provide services for users. One edge node server is placed in the target area that needs to be accelerated for acceleration.

[0030] Step 102: obtaining an average peak bandwidth within a first preset time based on the target area.

[0031] For example, the average peak bandwidth may be the average peak bandwidth of the corresponding target area within the first preset time, where the first preset time may be within the N days before the statistical time. The average peak bandwidth is calculated from the peak bandwidth within the N days before. The embodiment of the present invention does not limit the length of the first preset time, and those skilled in the art may determine it according to actual needs.

[0032] Step 103: Obtain the cost line and scheduling upper limit of the edge node to which the host group in the resource pool belongs.

[0033] Exemplarily, the cost line is the cost bandwidth of the edge node server. Taking the 95-point billing node as an example, the cost bandwidth is the maximum value of the remaining bandwidth after deducting 5% of the maximum bandwidth each month. This value is the cost bandwidth for calculating the node fee with the operator for the current month. Therefore, when allocating network resources, the bandwidth of the edge node server should be kept as close to the cost line as possible to save bandwidth costs as much as possible; the scheduling upper limit is the stress test bandwidth of the node. If the node bandwidth is greater than the scheduling upper limit, it is considered that the node is overloaded and may cause problems such as poor network service quality, affecting the customer's service quality. Therefore, when allocating network resources, the running volume of the edge node server must not exceed the scheduling upper limit to avoid causing service quality problems.

[0034] Step 104: Select an available host group from the host group based on the correspondence between the resource pool resources and the edge node cost line and the scheduling upper limit. Exemplarily, the available host group is a host group that can perform network acceleration in the target area by selecting the corresponding cost line, scheduling upper limit, etc. in the target area. When selecting the available host group, it is necessary to consider selecting the host group with the lowest bandwidth cost while satisfying the maximum bandwidth running amount.

[0035] Step 105: Allocate network resources based on the available host groups and the average peak bandwidth of the corresponding target area. Exemplarily, when allocating resources, it is necessary to allocate resources based on the available host groups and the average peak bandwidth of the target area.

[0036] The network resource allocation method provided by the present invention includes: obtaining resource pool resources in a target area; obtaining the average peak bandwidth within a first preset time based on the target area; obtaining the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; selecting an available host group in the host group based on the corresponding relationship between the resource pool resources and the cost line and scheduling upper limit of the edge node; and allocating network resources based on the available host group and the average peak bandwidth of the corresponding target area. By calculating the average peak bandwidth of the target area, abnormal peak bandwidth can be effectively eliminated to avoid interference from bandwidth bursts, and more accurate peak bandwidth data can be provided to obtain an accurate network resource allocation plan. The available host group selected according to the edge node cost line and the scheduling upper limit can meet both cost saving and maximum scheduling requirements.

[0037] As an optional embodiment of the present invention, step 102 includes: obtaining the peak bandwidth of each day within the first preset time based on the target area to form an initial cluster; calculating the distance between each of the clusters; obtaining two clusters with the smallest distance based on the distance between the two clusters; aggregating the two clusters with the smallest distance to obtain a cluster after aggregation; obtaining the number of clusters after aggregation based on the cluster after aggregation and the remaining clusters; judging whether the number of clusters after aggregation meets the preset conditions; if the preset conditions are met, calculating the average peak bandwidth of the cluster after aggregation. If the preset conditions are not met, executing the step of calculating the distance between each of the clusters to judging whether the number of clusters after aggregation meets the preset conditions, until the preset conditions are met, calculating the average peak bandwidth of the cluster after aggregation.

[0038] Exemplarily, the peak bandwidth within the first preset time is used as the initial clustering cluster, and the preset condition is that the number of clusters is half of the initial clustering cluster. For example, when the peak bandwidth of the previous 5 days is used as the initial clustering cluster, the initial clustering cluster is 5. The distance between the two clusters is calculated by using the Euclidean distance algorithm to calculate the peak bandwidth between the two clusters as the distance between the two clusters. The specific calculation formula is: , where A and B are the peak bandwidths of clusters A and B. The smallest value is selected from all the calculated distances for aggregation, and then the aggregated clusters are used to calculate the Euclidean distance with other clusters. For example, after A and B are aggregated, the Euclidean distance formula with C is: , and so on, until the final number of clusters exceeds 5 / 2=2.5, clustering is terminated.

[0039] Specifically, Figure 4A-4CAs shown in Figure 2, the peak bandwidths A, B, C, D, and E in the previous five days are 1M, 2M, 4M, 10M, and 15M respectively. The peak bandwidths between each pair are calculated using the Euclidean distance. Figure 4B As shown, the distance between A and B is the shortest (the smallest value), so A and B are aggregated first, and then the Euclidean distance between AB, C, D, and E is calculated as follows Figure 4C As shown, the distance between AB and C is the shortest (the smallest value), so AB and C are aggregated. After aggregation, the threshold value 5 / 2=2.5 is exceeded, and the iteration ends. The average peak bandwidth = (1M+2M+4M) / 3=2.33M.

[0040] As an optional embodiment of the present invention, the resource pool resources include a main resource pool and an extended resource pool, and step 104 includes: sorting the host groups in the resource pool resources based on the edge node cost line and the scheduling upper limit to obtain the cost line sequence and the scheduling upper limit sequence of the host group; selecting the first host group based on the cost line sequence of the main resource pool and the host group; selecting the second host group based on the main resource pool, the extended resource pool and the cost line sequence; selecting the third host group based on the main resource pool and the scheduling upper limit sequence of the host group; selecting the fourth host group based on the main resource pool, the extended resource pool and the scheduling upper limit sequence; and obtaining the available host group based on the first host group, the second host group, the third host group and the fourth host group.

[0041] Exemplarily, the main resource pool is the resource at the same level as the coverage area, and the extended resource pool is the resource at the upper level of the coverage area. Generally speaking, the closer the area is, the better the service quality will be, so the default service quality of the main resource pool resources will be better than that of the extended resource pool resources. The difference in the selection of different host groups lies in the different resource ranges and the different bandwidth restrictions of the edge node servers. The starting point is to use the main resource pool resources as much as possible under the premise of meeting the bandwidth requirements, and to fill the redundancy below the cost line of the edge node server as much as possible to avoid bandwidth waste. Through four attempts, each time breaking through a little more restrictions than the previous time, a more reasonable network resource allocation plan is obtained, where the first host group, the second host group, the third host group and the fourth host group are all the selected host groups.

[0042] As an optional implementation of the present invention, step 105 includes: obtaining the maximum number of IPs and the planned bandwidth in the target area; obtaining the comprehensive redundant bandwidth of the host group based on the peak redundant bandwidth of the available host group and the peak redundant bandwidth of the edge node to which the available host group belongs; obtaining the comprehensive redundant bandwidth of the IP of the available host group based on the comprehensive redundant bandwidth of the host group and the number of IPs of the host group; traversing each of the available host groups and obtaining the comprehensive redundant bandwidth of the IP of each of the available host groups; obtaining the corresponding IP structure based on the planned bandwidth, the available host group and the comprehensive redundancy of the IP corresponding to the available host group; judging whether the number of IPs in the IP structure is greater than the number of IPs corresponding to the structure; if it is greater than the number of IPs corresponding to the structure, using the IP structure as a network resource allocation scheme. If it is less than the number of IPs corresponding to the structure, executing the steps of obtaining the corresponding IP structure based on the planned bandwidth, the available host group and the comprehensive redundancy of the IP corresponding to the available host group to judging whether the number of IPs in the IP structure is greater than the number of IPs corresponding to the structure, until the IP redundancy in the structure is greater than the corresponding number of IPs.

[0043] For example, the maximum number of IPs is the maximum number of IPs that need to be planned in the target area, and the planned bandwidth is the bandwidth that is accelerated and achieved in the target area. According to the available host groups selected in the above step 104, the available host groups are reasonably selected to achieve the standard of the planned bandwidth at the lowest cost. The specific selection method is introduced in the following specific example.

[0044] like Figure 5A-5D As shown in the figure, assuming that the planned bandwidth is 100M, the maximum number of IPs M is 6, and there are host groups A, B, C, and D available in the resource pool. The comprehensive redundant bandwidth of host group A is 40M, and there are two IPs A1 and A2. The comprehensive redundant bandwidth of AI and A2 is 20M; the comprehensive redundant bandwidth of host group B is 30M, and there is one IP B1; the comprehensive redundant bandwidth of host group C is 50M, and there are two IPs C1 and C2; the comprehensive redundant bandwidth of host group D is 40M, and there is one IP D1. Figure 5A As shown, the structure of initialization 1 to 6 is empty at this time; the resource pool host groups are traversed in sequence. For host group A, the comprehensive redundant bandwidth meets the IP selection structure of 5 and 6, so A1 and A2 are filled into the IP selection structure of 5 and 6, as shown in Figure 5B As shown, at this time, no IP selection structure meets the selection requirements, so continue traversing. For host group B, the comprehensive redundant bandwidth meets the requirements of IP selection structures 4, 5, and 6, so fill B1 into IP selection structures 4, 5, and 6, as shown in Figure 5CAs shown, at this time, no IP selection structure meets the selection requirements, so continue traversing. For host group C, the comprehensive redundant bandwidth meets the requirements of IP selection structures 4, 5, and 6, so C1 and C2 are filled into IP selection structures 4, 5, and 6, as shown in Figure 5D As shown, at this time, 5 IPs in the IP selection structure of 5 have met the planned bandwidth coverage requirements, and the traversal ends. The final coverage plan is host groups A, B, and C.

[0045] The embodiment of the present invention also discloses a network resource allocation device, such as Figure 2 As shown, the device comprises:

[0046] The first acquisition module 201 is used to acquire the resource pool resources in the target area. For example, the details are shown in step 101 in the above method embodiment, which will not be repeated here.

[0047] The peak bandwidth module 202 is used to obtain the average peak bandwidth within the first preset time based on the target area. For example, the details are shown in step 102 in the above method embodiment, which will not be repeated here.

[0048] The second acquisition module 203 is used to acquire the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources. For example, the details are shown in step 103 in the above method embodiment, which will not be repeated here.

[0049] The first selection module 204 is used to select an available host group from the host group based on the correspondence between the resource pool resources and the edge node cost line and the scheduling upper limit. For example, the details are shown in step 104 in the above method embodiment, which will not be repeated here.

[0050] The second selection module 205 is used to allocate network resources based on the available host group and the average peak bandwidth of the corresponding target area. For example, the details are shown in step 105 in the above method embodiment, which will not be repeated here.

[0051] The network resource allocation device provided by the present invention comprises a first acquisition module for acquiring resource pool resources within a target area; a peak bandwidth module for obtaining an average peak bandwidth within a first preset time based on the target area; a second acquisition module for obtaining the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; a first selection module for selecting an available host group in the host group based on the corresponding relationship between the resource pool resources and the edge node cost line and scheduling upper limit; and a second selection module for allocating network resources based on the available host group and the average peak bandwidth of the corresponding target area. By calculating the average peak bandwidth of the target area, abnormal peak bandwidth can be effectively eliminated to avoid interference from bandwidth bursts, and more accurate peak bandwidth data can be provided to obtain a more reasonable network resource allocation plan. The available host group selected according to the edge node cost line and the scheduling upper limit can meet both cost saving and maximum scheduling requirements, and the optimal network resource allocation plan can be obtained with one traversal, reducing unnecessary waste of resources.

[0052] As an optional embodiment of the present invention, the second acquisition module 203 includes: a cluster module, which is used to obtain the peak bandwidth of each day within the first preset time based on the target area to form an initial cluster; a distance module, which is used to calculate the distance between each of the clusters, and obtain two clusters with the smallest distance based on the distance between the two clusters; a cluster merging module, which is used to aggregate the two clusters with the smallest distance to obtain the aggregated cluster; a statistical module, which is used to obtain the number of clusters after aggregation based on the aggregated clusters and the remaining clusters; a judgment module, which is used to judge whether the number of clusters after aggregation meets the preset conditions; if the preset conditions are met, the average peak bandwidth of the aggregated clusters is calculated. If the preset conditions are not met, the steps of calculating the distance between each of the clusters to judging whether the number of clusters after aggregation meets the preset conditions are executed until the preset conditions are met, and the average peak bandwidth of the aggregated clusters is calculated. Exemplarily, the details are shown in the content of step 102 in the above method embodiment, which will not be repeated here.

[0053] As an optional embodiment of the present invention, the first selection module 204 includes a sorting module for sorting the host groups in the resource pool resources based on the edge node cost line and the scheduling upper limit to obtain the cost line sequence and the scheduling upper limit sequence of the host group; a first selection submodule for selecting the first host group based on the cost line sequence of the main resource pool and the host group; a second selection submodule for selecting the second host group based on the main resource pool, the extended resource pool and the cost line sequence; a third selection submodule for selecting the third host group based on the scheduling upper limit sequence of the main resource pool and the host group; a fourth selection submodule for selecting the fourth host group based on the main resource pool, the extended resource pool and the scheduling upper limit sequence; and a merging module for obtaining the available host group based on the first host group, the second host group, the third host group and the fourth host group. For example, the details are shown in the content of step 104 in the above method embodiment, which will not be repeated here.

[0054] As an optional implementation mode of the present invention, the second selection module 205 includes obtaining the maximum number of IPs and the planned bandwidth in the target area; traversing each of the available host groups and obtaining the IP comprehensive redundancy of each of the available host groups; obtaining the corresponding IP structure based on the planned bandwidth, the available host groups and the IP comprehensive redundancy corresponding to the available host groups; judging whether the number of IPs in the IP structure is greater than the number of IPs corresponding to the structure; if it is greater than the number of IPs corresponding to the structure, the IP structure is used as a network resource allocation scheme. If it is less than the number of IPs corresponding to the structure, the steps of obtaining the corresponding IP structure based on the planned bandwidth, the available host groups and the IP comprehensive redundancy corresponding to the available host groups to judging whether the number of IPs in the IP structure is greater than the number of IPs corresponding to the structure are executed until the IP redundancy in the structure is greater than the corresponding number of IPs. Exemplarily, the details are shown in the content of step 105 in the above method embodiment, which will not be repeated here.

[0055] The embodiment of the present invention also provides a computer device, such as Figure 3 As shown, the computer device may include a processor 301 and a memory 302, wherein the processor 301 and the memory 302 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0056] The processor 301 may be a central processing unit (CPU). The processor 301 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0057] The memory 302 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the network resource allocation method in the embodiment of the present invention. The processor 301 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 302, that is, the network resource allocation method in the above method embodiment is implemented.

[0058] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 301, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the processor 301 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0059] The one or more modules are stored in the memory 302, and when executed by the processor 301, the following is performed: Figure 1 The network resource allocation method in the illustrated embodiment.

[0060] For details of the above computer equipment, please refer to Figure 1 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.

[0061] Those skilled in the art can understand that the implementation of all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0062] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A network resource allocation method, characterized in that: include: Get the resource pool resources in the target area. The resource pool resources are a series of host group collections. The host group is the next level planning of the edge node server. That is, multiple host groups are planned under one edge node server. The host group will mount an indefinite number of upstream traffic IPs to provide services for users. Based on the target area, an average peak bandwidth within a first preset time is obtained; wherein the average peak bandwidth is used to eliminate abnormal peak bandwidths; Obtaining the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; Selecting an available host group from the host group based on the correspondence between the resource pool resources and the edge node cost line and the scheduling upper limit; The resource pool resources include a main resource pool and an extended resource pool, and the selecting of an available host group in the host group based on the correspondence between the resource pool resources and the edge node cost line and the scheduling upper limit includes: Sort the host groups in the resource pool resources based on the edge node cost line and the scheduling upper limit to obtain the cost line sequence and the scheduling upper limit sequence of the host groups; selecting a first host group based on the primary resource pool and the cost line sequence of the host groups; selecting a second host group based on the main resource pool, the extended resource pool, and the cost line sequence; Selecting a third host group based on the main resource pool and the scheduling upper limit sequence of the host group; Selecting a fourth host group based on the main resource pool, the extended resource pool, and the scheduling upper limit sequence; Obtain the available host group based on the first host group, the second host group, the third host group and the fourth host group; Allocating network resources based on the available host groups and average peak bandwidths of corresponding target areas; The allocating network resources based on the available host groups and the average peak bandwidth of the corresponding target area includes: Obtain the maximum number of IPs and the average peak bandwidth in the target area; wherein the average peak bandwidth is the bandwidth accelerated and achieved in the target area; Obtaining the comprehensive redundant bandwidth of the host group based on the peak redundant bandwidth of the host group and the peak redundant bandwidth of the edge node to which the host group belongs; Obtaining the IP comprehensive redundant bandwidth of the available host group based on the available host group and the comprehensive redundant bandwidth of the host group; Traversing each of the available host groups, and obtaining the IP comprehensive redundant bandwidth of each of the available host groups; Obtaining a corresponding IP structure based on the average peak bandwidth, the available host groups, and the IP comprehensive redundant bandwidth corresponding to the available host groups; Determine whether the maximum number of IPs in the IP structure is not less than the number of IPs corresponding to the structure; If it is not less than the maximum number of IPs corresponding to the structure, the IP structure is used as a network resource allocation solution.

2. The method according to claim 1, characterized in that The step of obtaining an average peak bandwidth within a first preset time based on the target area includes: Obtaining the peak bandwidth of each day within the first preset time based on the target area to form an initial cluster; Calculate the distance between each of the clusters; Based on the distances between the two clusters, two clusters with the smallest distances are obtained; Aggregating the two clusters with the smallest distance to obtain an aggregated cluster; Obtaining the number of clustering clusters after the aggregation process based on the aggregated clusters and the remaining clustering clusters; Determining whether the number of clusters after the aggregation process meets a preset condition; If the preset conditions are met, the average peak bandwidth of the aggregated clusters is calculated.

3. The method according to claim 2, characterized in that The method further comprises: If the preset condition is not met, the step of calculating the distance between each pair of clusters to the step of determining whether the number of clusters after the aggregation process meets the preset condition are executed until the preset condition is met, and the average peak bandwidth of the clusters after aggregation is calculated.

4. The method according to claim 1, characterized in that: The method further comprises: If it is less than the number of IPs corresponding to the structure, the step of obtaining the corresponding IP structure based on the average peak bandwidth, the available host group and the IP comprehensive redundant bandwidth corresponding to the available host group is executed to the step of determining whether the number of IPs in the IP structure is not less than the number of IPs corresponding to the structure, until the maximum number of IPs in the IP structure is not less than the corresponding number of IPs.

5. The method according to claim 4, characterized in that The obtaining of a corresponding IP structure based on the average peak bandwidth, the host group and the IP comprehensive redundant bandwidth corresponding to the host group includes: Obtaining a planned bearer bandwidth of the host group based on the average peak bandwidth and the number of IP addresses of the host group; The corresponding IP structure is obtained based on the planned bearing bandwidth of the host group and the IP comprehensive redundant bandwidth corresponding to the host group.

6. A network resource allocation device, characterized in that: include: A first acquisition module, used to acquire resource pool resources in a target area; A peak bandwidth module, used to obtain an average peak bandwidth within a first preset time based on the target area; A second acquisition module is used to obtain the cost line and scheduling upper limit of the edge node to which the host group belongs in the resource pool resources; A first selection module, configured to select an available host group from the host group based on a correspondence between the resource pool resources and the edge node cost line and a scheduling upper limit; A second selection module, configured to allocate network resources based on the available host groups and average peak bandwidths of corresponding target areas; The first selection module includes a sorting module, which is used to sort the host groups in the resource pool resources based on the edge node cost line and the scheduling upper limit to obtain the cost line sequence and the scheduling upper limit sequence of the host group; A first selection submodule, configured to select a first host group based on a main resource pool and a cost line sequence of the host group; A second selection submodule, configured to select a second host group based on the main resource pool, the extended resource pool and the cost line sequence; A third selection submodule, configured to select a third host group based on the main resource pool and the scheduling upper limit sequence of the host group; a fourth selection submodule, configured to select a fourth host group based on the main resource pool, the extended resource pool and the scheduling upper limit sequence; a merging module, configured to obtain the available host group based on the first host group, the second host group, the third host group and the fourth host group; The second selection module includes obtaining the maximum number of IPs and the average peak bandwidth in the target area; traversing each of the available host groups and obtaining the IP comprehensive redundant bandwidth of each of the available host groups; obtaining a corresponding IP structure based on the average peak bandwidth, the available host groups and the IP comprehensive redundant bandwidth corresponding to the available host groups; judging whether the maximum number of IPs in the IP structure is greater than the number of IPs corresponding to the structure; if it is greater than the number of IPs corresponding to the structure, using the IP structure as a network resource allocation scheme.

7. A computer device, characterized in that: include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor performs the steps of the network resource allocation method as described in any one of claims 1-5.

8. 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 network resource allocation method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Peak staggered scheduling method and system for CDN (Content Delivery Network) network bandwidth resources, and server

    CN107124375A

  • Resource scheduling method and system

    CN110198344A

  • Method and system for allocating bandwidth of node server in CDN network

    CN110493047A

  • Power resource scheduling method and device and electronic equipment

    CN111915211A

  • Resource scheduling method and device, edge cloud network, program product and storage medium

    CN113301102A