A resource allocation method, apparatus, equipment, medium, and product

By acquiring the resource configuration templates and deployment areas of the equipment in production, and combining them with the application scenarios, the system automatically allocates suitable resources from the target resource pool, solving the problems of low resource allocation efficiency and high cost in existing technologies, and achieving efficient and low-cost resource allocation and task processing.

CN119030862BActive Publication Date: 2025-11-14CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411078969.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2025-11-14
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

Existing technologies suffer from low efficiency and high cost in equipment resource allocation, and the mismatch between equipment and allocated resources leads to poor task processing results.

Method used

By acquiring the resource configuration templates and deployment areas of the equipment in production, and combining them with the application scenarios, the system automatically allocates target resources that meet the requirements from the target resource pool, ensuring that resources are compatible with equipment.

Benefits of technology

It improves resource allocation efficiency, reduces costs, and ensures that the allocated resources meet the task requirements of the equipment in the deployment area, thereby improving task processing performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030862B_ABST
    Figure CN119030862B_ABST
Patent Text Reader

Abstract

This invention discloses a resource allocation method, apparatus, device, medium, and product. This invention relates to the field of big data technology. The method includes: upon receiving a resource allocation request, obtaining a resource configuration template of a production device associated with the resource allocation request and the deployment area of ​​the production device; wherein the resource configuration template is adapted to the application scenario of the production device; determining a target resource pool corresponding to the production device based on the deployment area, and determining a target resource corresponding to the production device from the target resource pool based on the resource requirement information in the resource configuration template; and distributing the target resource to the production device so that the production device can perform corresponding tasks based on the target resource. The technical solution of this invention can improve resource allocation efficiency, reduce costs, and improve the device's task processing performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of big data technology, and in particular to a resource allocation method, apparatus, device, medium and product. Background Technology

[0002] In the current network equipment construction process, it is usually necessary to allocate corresponding resources to the equipment, such as IP addresses, so that the equipment can use the allocated resources to perform tasks.

[0003] Currently, the usual method for allocating resources to equipment is through a resource pool, where available resources are manually selected and allocated to the equipment. This manual, offline resource allocation method not only suffers from low allocation efficiency and high costs, but also from mismatches between equipment and allocated resources, resulting in poor task processing performance. Summary of the Invention

[0004] This invention provides a resource allocation method, apparatus, equipment, medium, and product to improve resource allocation efficiency, reduce costs, and enhance the performance of equipment in handling tasks.

[0005] In a first aspect, embodiments of the present invention provide a resource allocation method, the method comprising:

[0006] Upon receiving a resource allocation request, the system obtains the resource configuration template of the equipment to be put into production associated with the resource allocation request, as well as the deployment area of ​​the equipment to be put into production; wherein, the resource configuration template is adapted to the application scenario of the equipment to be put into production.

[0007] Based on the deployment area, a target resource pool corresponding to the equipment put into production is determined, and based on the resource requirement information in the resource configuration template, a target resource corresponding to the equipment put into production is determined from the target resource pool.

[0008] The target resources are distributed to the production equipment so that the production equipment can perform corresponding tasks based on the target resources.

[0009] Secondly, embodiments of the present invention also provide a resource allocation device, the device comprising:

[0010] The data acquisition module is used to acquire, upon receiving a resource allocation request, the resource configuration template of the equipment to be put into production associated with the resource allocation request and the deployment area of ​​the equipment to be put into production; wherein, the resource configuration template is adapted to the application scenario of the equipment to be put into production;

[0011] The target resource determination module is used to determine the target resource pool corresponding to the equipment put into production based on the deployment area, and to determine the target resources corresponding to the equipment put into production from the target resource pool based on the resource requirement information in the resource configuration template;

[0012] The resource distribution module is used to distribute the target resource to the production equipment so that the production equipment can perform corresponding tasks based on the target resource.

[0013] Thirdly, embodiments of the present invention also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the resource allocation method as described in any of the embodiments of the present invention.

[0014] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the resource allocation method as described in any of the embodiments of the present invention.

[0015] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the resource allocation method as described in any of the embodiments of the present invention.

[0016] In this embodiment of the invention, upon receiving a resource allocation request, the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment are obtained. The resource configuration template is adapted to the application scenario of the production equipment. A target resource pool corresponding to the production equipment is determined based on the deployment area, and a target resource corresponding to the production equipment is determined from the target resource pool based on the resource requirement information in the resource configuration template. The target resource is then distributed to the production equipment so that the production equipment can perform corresponding tasks based on the target resource. This solves the problems of low allocation efficiency, high cost, and poor task processing effect caused by manual allocation of resources to equipment in the prior art. It realizes the automatic allocation of target resources that meet the resource requirement information from the target resource pool corresponding to the deployment area by considering the deployment area and application scenario of the production equipment and combining the resource requirement information in the resource configuration template adapted to the application scenario. This improves resource allocation efficiency and reduces allocation cost. At the same time, it can ensure that the allocated target resource meets the task requirements of the production equipment in the application scenario within the deployment area, thus improving task processing effect. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention;

[0019] Figure 2 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention;

[0020] Figure 3 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention;

[0021] Figure 4 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention;

[0022] Figure 5 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention;

[0023] Figure 6 This is a schematic diagram of an interface for characterizing a configuration resource pool, provided according to an embodiment of the present invention;

[0024] Figure 7 This is a schematic diagram of an interface for characterizing a configuration resource pool, provided according to an embodiment of the present invention;

[0025] Figure 8 This is a schematic diagram of the structure of a resource allocation device according to an embodiment of the present invention;

[0026] Figure 9 This is a schematic diagram of the structure of an electronic device that implements the resource allocation method of the present invention. Detailed Implementation

[0027] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0028] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance. The acquisition, storage, use, and processing of data in the technical solutions of this application all comply with the relevant provisions of national laws and regulations.

[0029] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0030] Before introducing this technical solution, the application scenarios can be explained first. The technical solution provided by the embodiments of this invention can be applied to any scenario that requires resource allocation. For example, during network construction, there may be a need to deploy networking equipment, requiring different devices to be deployed in the network. At this time, it is necessary to allocate corresponding resources to the deployed devices to meet the network construction service requirements. When allocating resources to devices, the technical solution provided in this embodiment can be used for implementation.

[0031] Figure 1 This is a flowchart of a resource allocation method according to an embodiment of the present invention. This embodiment is applicable to the allocation of resources to devices. The method can be executed by a resource allocation device, which can be implemented in hardware and / or software. Figure 1 As shown, the method includes:

[0032] S110. Upon receiving a resource allocation request, obtain the resource configuration template of the equipment to be put into production and the deployment area of ​​the equipment to be put into production, which are associated with the resource allocation request.

[0033] In this context, a resource allocation request can refer to a program or code used to request resource allocation. "Deployment equipment" refers to equipment that requires resource allocation. Deployment equipment can be a single device or a group of devices; for example, it can include switches and routers. The resource configuration template describes the resource allocation rules for each / group of deployment equipment in different application scenarios. For example, the resource configuration template stores resource requirement information, such as the number of each type of IP (Internet Protocol) address or IP address range required by the device, and the number of AS (Autonomous System) numbers required. The resource configuration template is adapted to the application scenario of the deployment equipment. An application scenario refers to the business scenario in which the deployment equipment is actually used. For example, application scenarios can be home networks, office networks, industrial control, public places, or functional scenarios such as production, testing, and management. It should be noted that the business processed by the same deployment equipment may differ in different application scenarios, and correspondingly, the required resources will also differ. Therefore, the resource configuration template corresponding to the same deployment equipment will be different in different application scenarios. Deployment areas can be used to characterize the working location of deployed equipment. It should also be noted that network conditions may differ in different deployment areas, and consequently, the resources required for the same deployed equipment to process services may also differ in different deployment areas.

[0034] In this embodiment, before network construction, the devices to be deployed in the network can be pre-defined, and resource configuration templates for these devices in different application scenarios can be configured, along with the planned deployment areas. When a resource allocation request is initiated, the resource configuration templates for the deployed devices in the specified application scenario can be retrieved via an interface or program, and the deployment area of ​​the deployed devices can be determined. This allows for the automatic allocation of appropriate resources to the devices based on the resource configuration templates and deployment areas. It should be noted that a resource allocation request can also be initiated when there is a need for new deployed devices. These new devices are those associated with the resource allocation request. In this case, the resource configuration templates for the deployed devices can be retrieved, and their deployment areas determined. This allows for automatic network formation after automatically allocating resources to the new deployed devices, improving the scalability of network construction.

[0035] For example, see Figure 2 It can read the resource configuration template corresponding to the equipment in production from the scenario solution library to obtain the resource requirement information in the resource configuration template.

[0036] S120. Determine the target resource pool corresponding to the equipment to be put into production based on the deployment area, and determine the target resources corresponding to the equipment to be put into production from the target resource pool based on the resource requirement information in the resource configuration template.

[0037] The target resource pool is adapted to the deployment area of ​​the equipment being put into production. Target resources can be resources such as IP addresses, AS numbers, interfaces, bandwidth, and routing, or hardware resources such as servers, storage devices, and network devices.

[0038] It should be noted that the network conditions, business processing, and management of different deployment areas may vary. In order to meet the business processing performance of the devices in the deployment area and to achieve fine-grained management of resource information in the deployment area, the resource pool information of each deployment area is also different.

[0039] In this embodiment, the target resource pool corresponding to the deployed equipment can be determined from the resource pool information corresponding to the deployment area of ​​the deployed equipment. Furthermore, based on the resource requirement information in the resource configuration template, target resources that meet the resource requirements of the deployed equipment and are suitable for its deployment area can be determined, thereby ensuring the performance of the equipment's business processing within the deployment area and meeting the business processing requirements in this application scenario.

[0040] For example, see [link to example]. Figure 2 The system reads resource requirement information from the resource configuration template, including IP resource requirements and AS resource requirements. Based on the deployment region, it obtains resource pool information, retrieves the IP resources corresponding to the IP resource requirements, and the AS resources corresponding to the AS resource requirements from the resource pool information, thus obtaining the target resources. This allows for the assignment of different AS numbers and IP addresses / address ranges to devices based on their deployment region and scenario when allocating IP and AS numbers. The rules for determining target resources can be specified through the resource configuration template to ensure that the target resources meet the business processing needs of the deployed devices in that scenario.

[0041] In this embodiment, the target resource pool corresponding to the equipment to be put into production is determined according to the deployment area, and the target resources corresponding to the equipment to be put into production are determined from the target resource pool according to the resource requirement information in the resource configuration template. This includes: determining the target network area corresponding to the deployment area, and obtaining at least two usable resource pools corresponding to the target network area; determining at least one target resource pool from the at least two usable resource pools according to the resource requirement information; and determining the target resources that are compatible with the equipment to be put into production according to the resource status of the usable resources in the target resource pool, the target query conditions of the target resource pool, and the resource requirement information.

[0042] The target network area can refer to a logically isolated network area or a geographically defined network area. For example, the target network area can be a local area network (LAN), a metropolitan area network (MAN), or a wide area network (WAN). Different network areas have different coverage areas; for example, the coverage area could be a building, a school, a company, or a city. The available resource pool stores usable resources, such as IP addresses, AS numbers, interfaces, bandwidth, routes, etc., but these are not limited to and will not be elaborated upon here. Resource status can be used to characterize the usage status of resources; for example, resource status could be allocated but not yet distributed, allocated and distributed, or unallocated. Target query conditions refer to the conditions used to query resource information in the resource pool, which characterize the usage attributes of the resource information. For example, target query conditions can be resource pool type (such as computing resource pool, storage resource pool, network resource pool, IP resource pool, AS resource pool, etc.), geographical location (such as data center, availability zone, school, enterprise, etc.), status information (such as online, offline, maintenance, etc.), resource specifications (such as CPU model, memory size, disk capacity, address range, etc.), and business scenario type (such as production, management, etc.).

[0043] In this embodiment, the network region to which the deployment area belongs can be determined, and this network region can be designated as the target network region. Then, at least two usable resource pools configured for this target network region can be obtained. Using the required resource information in the resource demand information, the resource pools corresponding to the required resource information are selected from the usable resource pools as the target resource pools. For example, if the required resource information includes IP addresses, the usable resource pool storing IP addresses can be used as the target resource pool. Furthermore, usable resources that match the resource demand information and are in an unallocated state can be found from the target query conditions of the target resource pool. The queried usable resources are then used as the target resources adapted to the deployed equipment. The advantage of this setup is that by allocating different resource pools to different network regions, fine-grained management and allocation of resources can be achieved, while also ensuring the performance of the deployed equipment using the allocated target resources for business processing within the deployment area, thus improving the effectiveness of business processing.

[0044] For example, see [link to example]. Figure 2In the equipment resource allocation phase, resource pool information (i.e., usable resource pools) can be obtained from the regional resource plan based on the network area (i.e., target network area) to which the equipment belongs, and the query conditions for various available resource pools can be read. Then, specific allocation is performed for each device according to the resource configuration template obtained from the scenario plan library. For example, based on IP resource requirements, the available IP addresses and address ranges (as usable resources) in the IP resource pool (i.e., target resource pool) are queried to obtain subnets that meet the conditions, thus obtaining the target resource. At the same time, based on the read AS resource requirements, AS numbers (usable resources) within a specified range are obtained from the available resource pool for that network area (i.e., target resource pool) and allocated to obtain usable AS numbers (as target resources).

[0045] In this embodiment, to ensure the effectiveness of resource allocation, the resource status of the target resource can be verified before determining the target resource compatible with the production equipment. If the verification passes, the target resource can be distributed to the production equipment. For example, see [link to example]. Figure 2 After assigning various IP addresses to the equipment in production, IP status verification can be performed. If the verification passes, the target resources are sent to the equipment in production; otherwise, the target resources need to be reassigned to the equipment in production.

[0046] To ensure the accuracy of resource allocation, after identifying the target resources compatible with the equipment in production, the resource status of the target resources can be updated to an allocated status. This ensures the correctness of subsequent resource allocation based on the resource status and prevents allocation errors. For an example, see [link to example]. Figure 2 If the status verification passes, the resource status of the allocated IP addresses will be synchronized to the IP resource pool. After assigning AS numbers to the equipment in production, the assigned AS numbers will be registered in the database, and their resource status will be updated.

[0047] It should be noted that the resource configuration template of the equipment put into production and the resource pool information in the network area can be dynamically adjusted according to changes in actual needs and network areas. The target resources of the equipment put into production can be dynamically updated according to the adjusted information to ensure that the equipment put into production can always operate in the optimal state.

[0048] S130. Distribute the target resources to the equipment in production so that the equipment in production can perform the corresponding tasks based on the target resources.

[0049] In this embodiment, after the target resource is determined, it can be allocated to the production equipment through a preset transmission method. This allows the production equipment to use the target resource for business processing when performing tasks within the target network area. It should be noted that, to ensure the accuracy of resource allocation, the operating status, configuration information, and network connectivity of the production equipment can be verified before allocation. Only if the verification is successful can the target resource be allocated to the production equipment, ensuring that it can receive the resource normally.

[0050] In this embodiment, the equipment being put into production may also be a group of equipment. In this case, the target resources corresponding to each equipment in the group can be issued separately. Specifically, if the number of equipment to be put into production in the resource configuration template includes multiple equipment, the target resources corresponding to each equipment to be put into production can be determined and issued separately.

[0051] In practical applications, if the resource configuration template contains multiple production devices, the target resources corresponding to each production device can be distributed to the corresponding production device to achieve batch allocation of resources, improve resource allocation efficiency, and ensure the accuracy of resource distribution.

[0052] The technical solution of this embodiment, upon receiving a resource allocation request, obtains the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment; the resource configuration template is adapted to the application scenario of the production equipment; a target resource pool corresponding to the production equipment is determined according to the deployment area, and a target resource corresponding to the production equipment is determined from the target resource pool according to the resource requirement information in the resource configuration template; the target resource is then distributed to the production equipment so that the production equipment can perform corresponding tasks based on the target resource. This solves the problems of low allocation efficiency, high cost, and poor task processing effect caused by manual allocation of resources to equipment in the prior art. It realizes the automatic allocation of target resources that meet the resource requirement information of the production equipment from the target resource pool corresponding to the deployment area by considering the deployment area and application scenario of the production equipment and combining the resource requirement information in the resource configuration template adapted to the application scenario. This improves resource allocation efficiency and reduces allocation cost. At the same time, it can ensure that the allocated target resources meet the task requirements of the production equipment in the application scenario within the deployment area, thus improving task processing effect.

[0053] Based on the above embodiments, before obtaining the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment, the resource configuration template corresponding to the production equipment can be pre-configured. Accordingly, the present invention proposes the following embodiments: Figure 3 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention. Figure 3As shown, the resource allocation method includes the following steps:

[0054] S210. Determine at least one selectable scenario and a configuration template to be filled for the selectable scenario, so as to determine the resource configuration template corresponding to the production equipment based on the configuration template to be filled.

[0055] The "selectable scenario" can refer to an application scenario that can be selected. The resource configuration template is the template obtained by filling in at least one field in the configuration template to be filled. For example, the fields to be filled include, but are not limited to, a mask field, a resource requirement field, a device quantity field, and an address field. The resource configuration template includes, but is not limited to, the number of devices in production, the address requirement and mask for each device in production, and the application scenario of the devices in production.

[0056] Specifically, different selectable scenarios can be configured with corresponding configuration templates to be filled. These templates contain fields to be filled, and by filling these fields with content, the resource configuration templates corresponding to the production equipment in different scenarios can be obtained.

[0057] S220: In response to the user's trigger operation on the selected scenario in the resource configuration interface, determine the application scenario of the equipment to be put into production.

[0058] In this embodiment, a resource configuration interface can be pre-developed, containing different selectable scenarios. After determining the equipment to be put into production, the selectable scenarios in the resource configuration interface can be triggered through operations such as clicking, swiping, and touching, and the triggered selectable scenarios will be used as the application scenarios for the equipment to be put into production.

[0059] S230, Display the configuration template to be filled according to the application scenario.

[0060] Specifically, the configuration template to be filled is retrieved and displayed according to the application scenario.

[0061] S240, in response to an editing operation on at least one field to be filled in the configuration template to be filled, determine the resource configuration template of the equipment to be put into production.

[0062] At least one of the fields to be filled must have content corresponding to the resource requirement information. The resource requirement information may be rule information used to allocate resources to the equipment, such as, but not limited to, the number of equipment put into production, the address requirement for each piece of equipment, the mask, and the address range.

[0063] In this embodiment, the user can determine the content to be filled in each field of the configuration template based on the business processing information such as the business functions and business types of the equipment in the application scenario, and / or the software version, operating system, hardware, performance parameters, network access method, and bandwidth requirements required by the equipment. The user then fills the fields with the content, and after completion, obtains the resource configuration template corresponding to the equipment in that application scenario. Correspondingly, resource configuration templates for the equipment in different application scenarios can be obtained.

[0064] For example, see Figure 4 This allows for the specification of specific resource requirements for equipment in different scenarios. For example, for scenario A to which the equipment belongs, the resource configuration template specifies the number of each type of IP address or IP address range required by the equipment in scenario A, the number of AS numbers required by the equipment in scenario A, and other information. The resource configuration template is stored in the scenario scheme library so that the resource configuration template of the equipment in scenario A can be obtained from the scenario scheme library, and rules for resource allocation for the equipment can be obtained.

[0065] Below are examples of resource configuration templates for two scenarios:

[0066] Scenario 1: AS:1 / group; mgt:1 / group; interconnect:4-30 / device; loopback:1 / group.

[0067] Scenario 2: AS:1 / group; mgt:1 / group; loopback:2 / group.

[0068] In this configuration, AS:1 / group indicates one AS number per device group, describing the AS number requirement; mgt:1 / group indicates one management IP address per device group; loopback:1 / group indicates one loopback IP address per device group; and interconnect:4-30 / device indicates that each device's interconnect address is an address with four 30-bit masks. Similarly, when describing addresses in the resource configuration template, the address line can include the address requirement and mask. That is, the number of addresses and masks can be described together, with the format: Address Type: Address Requirement and Mask. It should be noted that when describing multiple address requirements and masks, they can be separated by commas, for example: interconnect: Hybrid-Link Interconnection Class-Network Device Interconnection Address:4-30 / device,1-28 / device. Address types include, but are not limited to, mgt addresses, production interconnect addresses, management interconnect addresses, production loopback addresses, management loopback addresses, ILO addresses, physical machine production addresses, and physical machine management addresses, etc.

[0069] The technical solution provided in this embodiment enables the system to support the needs of newly added application scenarios by configuring resource requirement templates for devices in different scenarios. It supports configuring device resource requirement templates for any newly added application scenario, thus achieving system scalability. Furthermore, after configuring the resource configuration template, it can be directly invoked to determine what resources need to be allocated to the deployed equipment and how to allocate them. This achieves automated resource allocation while ensuring that the allocated resources meet the equipment's business processing requirements.

[0070] Based on the above embodiments, before obtaining the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment, resource planning can be performed in advance according to different network areas to determine the target resources from the resource pool corresponding to the target network area to which the production equipment belongs. Accordingly, the present invention proposes the following embodiments: Figure 5 This is a flowchart of a resource allocation method provided according to an embodiment of the present invention. Figure 5 As shown, the resource allocation method includes the following steps:

[0071] S310. Divide the target area into at least one network area and configure at least two resource pools for at least one network area.

[0072] The resource pool stores usable resources adapted to the network area. At least two resource pools store different types of resources, including but not limited to IP addresses and AS numbers. For example, see [link to relevant documentation]. Figure 4 The AS resource pool stores AS numbers, and the IP resource pool stores IP addresses and address ranges.

[0073] In this embodiment, the target area for network construction can be divided into at least one network region according to network construction requirements, with each network region having a different network coverage area. Based on the geographical characteristics of each network region's coverage area, data transmission rate, deployment cost, network security requirements, number of users, and other information, at least two corresponding resource pools can be configured for each network region. For example, the resource pools may include at least an IP resource pool (for storing IP addresses), an AS resource pool (for storing AS numbers), and a port resource pool (for storing port numbers).

[0074] In this embodiment, after determining the resource pool corresponding to the network area, query conditions can be configured for each resource pool so that after determining the resource pool corresponding to the resource allocation request, the target resource can be determined from the available resources based on the query conditions of the resource pool.

[0075] The query criteria can include resource type, the scenario type corresponding to the resource, etc.

[0076] In this embodiment, query conditions can be configured for each resource pool based on various information such as address type, name, geographical location, resource status, and business requirements. The query conditions can be used to find the target resources corresponding to the deployed equipment under the resource configuration template of the corresponding application scenario.

[0077] For example, such as Figure 4 As shown, query conditions for IP resource pools can be configured in the regional resource scheme. Query conditions can be address types, such as MGT addresses (Multi-Gigabit Transceiver, used for management interfaces), production interconnect addresses, management interconnect addresses, production loopback addresses, management loopback addresses, server production addresses, and iLO addresses (Intelligent Platform Management Interface addresses, used for accessing and managing servers). Different address types may also contain multiple query conditions; for example, query conditions for production interconnect addresses may include address ranges and subnet masks. See [link to relevant documentation]. Figure 6 In the regional resource plan, you can also configure the query conditions for the AS resource pool. These conditions can be tailored to different business scenarios; see [link to relevant documentation]. Figure 7 After assigning a fixed AS number to each scenario, the AS number for the corresponding scenario can be retrieved using query conditions. The advantage of this setup is that by providing query conditions for each resource pool, it is convenient to use the query conditions of the resource pool to retrieve the target resources that are compatible with the equipment in production. This enables refined management and allocation of resources while ensuring the compatibility between the identified target resources and the equipment in production.

[0078] S320. For each resource pool in the network area, based on the network area, the resource type of the resource pool, and the resources to be used, determine the usable resources that are compatible with the resource pool, so as to determine the target resource from the usable resources in the resource pool.

[0079] It should be noted that the method for determining the available resources of the resource pool in each network area is the same. For example, we can take the determination of the available resources of any resource pool in any network area as an example.

[0080] In this embodiment, the resources to be used can be allocated to different network regions, so that the available resources in each network region are different. Then, based on the resource type of the resource pool, resources that match the resource type can be determined from the allocated resources as usable resources that match the resource pool, so as to determine the target resource from the usable resources in the resource pool.

[0081] In this embodiment, determining usable resources that are compatible with the resource pool based on the network region, the resource type of the resource pool, and the resources to be used includes: determining the resources to be allocated corresponding to the network region from the resources to be used; determining the first resource that is compatible with the resource type from the resources to be allocated based on the resource type of the resource pool; wherein the resource type includes at least one resource function type; and for each resource function type, determining the usable resources in the resource pool that are compatible with the resource function type from the first resources.

[0082] Among them, the resource function type can be used to characterize the function implemented by the resource. For example, if the resource is an IP address, the resource function type of this type of resource can be the address of the management interface, the network address of the access server, the management address of the router, etc.; if the resource is an AS number, the resource function type of this type of resource can be a scenario.

[0083] In this embodiment, resources suitable for a given network region can be determined from the resources to be used, based on the network attributes and region attributes of that network region. Different network regions correspond to different resources to be allocated. Further, resource information matching the resource type of the resource pool can be found from the resources to be allocated as the first resource. For example, if the resource type is an IP address, then the IP addresses in the resources to be allocated are used as the first resource. From the first resource, resources suitable for each resource function type are allocated as usable resources under that resource function type. Correspondingly, the usable resources in the resource pool that are suitable for each resource function type can be determined, resulting in a resource pool. The target resources for the equipment to be put into production can then be determined from the usable resources in the resource pool.

[0084] In other words, a resource pool of the same resource type can include sub-resource pools under different resource function types. For example, see [link to example]. Figure 6 The IP resource pool includes sub-resource pools under different resource function types. These sub-resource pools can be MGT address pool, production interconnect address pool, management interconnect address pool, production loopback address pool, management loopback address pool, server production address pool, and iLO address pool. Different sub-resource pools store the available resources corresponding to different resource function types.

[0085] It should be noted that the technical solution provided in this embodiment can be implemented based on a resource allocation device for a resource pool. This device enables automated allocation of network device resources during network construction. By managing network resource pools (such as AS resource pools, IP resource pools, etc.), different query conditions for different types of resource pools can be specified for individual network areas, determining the range of resource pools available to each network area, thereby ensuring that each network area allocates resources according to the pre-planned resource range. The management methods include resource entry, display, modification, deletion, and retrieval.

[0086] It should be noted that after determining the resource configuration template of the equipment to be put into production and the available resources that are compatible with the resource pool, configuration files can be generated based on this information. When deploying network equipment, resources can be automatically allocated to the equipment to be put into production based on the configuration files.

[0087] This embodiment presets resource ranges for different network regions, enabling deployed equipment in each network region to use resources within a specified range. This achieves fine-grained resource allocation while ensuring the performance of deployed equipment within the network region. Furthermore, it configures resource pool query conditions for different network regions and assigns resource pools under different resource function types to each network region. These resource function types correspond to business scenarios, achieving resource planning by network region while ensuring the effectiveness of deployed equipment in processing tasks under different business scenarios.

[0088] Figure 8 This is a schematic diagram of a resource allocation device according to an embodiment of the present invention. Figure 8 As shown, the device includes: a data acquisition module 410, a target resource determination module 420, and a resource distribution module 430.

[0089] The data acquisition module 410 is used to acquire, upon receiving a resource allocation request, the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment; wherein the resource configuration template is adapted to the application scenario of the production equipment; the target resource determination module 420 is used to determine the target resource pool corresponding to the production equipment based on the deployment area, and determine the target resource corresponding to the production equipment from the target resource pool based on the resource requirement information in the resource configuration template; the resource distribution module 430 is used to distribute the target resource to the production equipment so that the production equipment can perform corresponding tasks based on the target resource.

[0090] The technical solution of this embodiment, upon receiving a resource allocation request, obtains the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment; the resource configuration template is adapted to the application scenario of the production equipment; a target resource pool corresponding to the production equipment is determined according to the deployment area, and a target resource corresponding to the production equipment is determined from the target resource pool according to the resource requirement information in the resource configuration template; the target resource is then distributed to the production equipment so that the production equipment can perform corresponding tasks based on the target resource. This solves the problems of low allocation efficiency, high cost, and poor task processing effect caused by manual allocation of resources to equipment in the prior art. It realizes the automatic allocation of target resources that meet the resource requirement information of the production equipment from the target resource pool corresponding to the deployment area by considering the deployment area and application scenario of the production equipment and combining the resource requirement information in the resource configuration template adapted to the application scenario. This improves resource allocation efficiency and reduces allocation cost. At the same time, it can ensure that the allocated target resources meet the task requirements of the production equipment in the application scenario within the deployment area, thus improving task processing effect.

[0091] Optionally, based on the above-described apparatus, the apparatus further includes: a resource pool configuration module, configured to divide the target area into at least one network area and configure at least two resource pools for the at least one network area; wherein the resource pools are used to store usable resources adapted to the network area, and the at least two resource pools store different types of resources; the resource configuration module is configured to, for each resource pool in the network area, determine usable resources adapted to the resource pool based on the network area, the resource type of the resource pool, and the resources to be used, so as to determine the target resource from the usable resources in the resource pool.

[0092] Based on the above-described apparatus, optionally, the resource configuration module includes: a resource to be allocated determination unit, configured to determine, from the resources to be used, a resource to be allocated corresponding to the network area; a first resource determination unit, configured to determine, from the resources to be allocated, a first resource that matches the resource type according to the resource type of the resource pool; wherein, the resource type includes at least one resource function type; and a usable resource determination unit, configured to, for each resource function type, determine, from the first resource, a usable resource in the resource pool that matches the resource function type.

[0093] Optionally, based on the above-described apparatus, the apparatus further includes: a query condition configuration unit, configured to configure query conditions for each resource pool, so as to determine the target resource from available resources based on the query conditions of the resource pool after determining the resource pool corresponding to the resource allocation request.

[0094] Optionally, based on the above-mentioned device, the device further includes: a configuration template determination unit, used to determine at least one selectable scenario and a configuration template to be filled for the selectable scenario, so as to determine the resource configuration template corresponding to the production equipment based on the configuration template to be filled; wherein, the resource configuration template is a template obtained after filling content into at least one field to be filled in the configuration template to be filled.

[0095] Optionally, based on the above-described apparatus, the apparatus further includes: an application scenario determination unit, configured to determine the application scenario of the production equipment in response to a user's trigger operation on the selected scenario in the resource configuration interface; a configuration template to be filled determination unit, configured to display a configuration template to be filled corresponding to the application scenario; and a resource configuration template configuration unit, configured to determine the resource configuration template of the production equipment in response to an editing operation on the at least one field to be filled in the configuration template; wherein the content to be filled in the at least one field to be filled corresponds to the resource requirement information.

[0096] Based on the above-mentioned device, optionally, the target resource determination module 420 includes: a usable resource pool determination unit, used to determine a target network area corresponding to the deployment area and obtain at least two usable resource pools corresponding to the target network area; a target resource pool determination unit, used to determine at least one target resource pool from the at least two usable resource pools based on the resource demand information; and a target resource determination unit, used to determine target resources compatible with the production equipment based on the resource status of usable resources in the target resource pool, the target query conditions of the target resource pool, and the resource demand information.

[0097] Based on the above-mentioned device, optionally, the resource configuration template includes the number of the equipment put into production, the address requirements and mask corresponding to each equipment put into production, and the application scenario of the equipment put into production.

[0098] Based on the above-mentioned device, optionally, a resource distribution module 430 is used to determine and distribute the target resources corresponding to each production equipment when the number of production equipment in the resource configuration template includes multiple equipment.

[0099] Optionally, based on the above-described apparatus, the apparatus may further include: a status update unit, used to update the resource status of the target resource to an allocated status.

[0100] The resource allocation device provided in the embodiments of the present invention can execute the resource allocation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0101] Figure 9This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 9 A block diagram is shown of an exemplary electronic device 50 suitable for implementing embodiments of the present invention. Figure 9 The electronic device 50 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0102] like Figure 9 As shown, the electronic device 50 is represented in the form of a general-purpose computing device. The components of the electronic device 50 may include, but are not limited to: one or more processors or processing units 501, system memory 502, and bus 503 connecting different system components (including system memory 502 and processing unit 501).

[0103] Bus 503 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0104] Electronic device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 50, including volatile and non-volatile media, removable and non-removable media.

[0105] System memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. Electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media (… Figure 9 Not shown; usually referred to as a "hard drive"). Although Figure 9 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 503 via one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0106] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in memory 502. Such program modules 507 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 507 typically perform the functions and / or methods described in the embodiments of the present invention.

[0107] Electronic device 50 can also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), and with one or more devices that enable a user to interact with the electronic device 50, and / or with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 511. Furthermore, electronic device 50 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 512. As shown, network adapter 512 communicates with other modules of electronic device 50 via bus 503. It should be understood that, although... Figure 9 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0108] The processing unit 501 executes various functional applications and data processing by running programs stored in the system memory 502, such as implementing the resource allocation method provided in the embodiments of the present invention.

[0109] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a resource allocation method, the method comprising:

[0110] Upon receiving a resource allocation request, the system obtains the resource configuration template of the equipment to be put into production associated with the resource allocation request, as well as the deployment area of ​​the equipment to be put into production; wherein, the resource configuration template is adapted to the application scenario of the equipment to be put into production.

[0111] Based on the deployment area, a target resource pool corresponding to the equipment put into production is determined, and based on the resource requirement information in the resource configuration template, a target resource corresponding to the equipment put into production is determined from the target resource pool.

[0112] The target resources are distributed to the production equipment so that the production equipment can perform corresponding tasks based on the target resources.

[0113] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0114] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0115] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0116] Computer program code for performing the operations of embodiments of the present invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0117] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the resource allocation method provided in any embodiment of this application.

[0118] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0119] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A resource allocation method, characterized in that, include: Upon receiving a resource allocation request, the system obtains the resource configuration template of the equipment to be put into production associated with the resource allocation request, as well as the deployment area of ​​the equipment to be put into production; wherein, the resource configuration template is adapted to the application scenario of the equipment to be put into production. Based on the deployment area, a target resource pool corresponding to the equipment put into production is determined, and based on the resource requirement information in the resource configuration template, a target resource corresponding to the equipment put into production is determined from the target resource pool. The target resources are distributed to the production equipment so that the production equipment can perform corresponding tasks based on the target resources.

2. The method according to claim 1, characterized in that, Before obtaining the resource configuration template of the production equipment associated with the resource allocation request and the deployment area of ​​the production equipment, the method further includes: The target area is divided into at least one network area, and at least two resource pools are configured for the at least one network area; wherein, the resource pools are used to store usable resources adapted to the network area, and the at least two resource pools store different types of resources; For each resource pool in the network region, based on the network region, the resource type of the resource pool, and the resources to be used, usable resources that are compatible with the resource pool are determined, so as to determine the target resource from the usable resources in the resource pool.

3. The method according to claim 2, characterized in that, The step of determining available resources compatible with the resource pool based on the network region, the resource type of the resource pool, and the resources to be used includes: Determine the resources to be allocated corresponding to the network region from the resources to be used; Based on the resource type of the resource pool, a first resource that matches the resource type is determined from the resources to be allocated; wherein the resource type includes at least one resource function type; For each of the resource function types, determine the available resources in the resource pool that are compatible with the resource function type from the first resources.

4. The method according to claim 2, characterized in that, After determining the resource pool corresponding to the network region, the method further includes: Query conditions are configured for each resource pool so that, after determining the resource pool corresponding to the resource allocation request, the target resource is determined from the available resources based on the query conditions of the resource pool.

5. The method according to claim 1, characterized in that, The method further includes: Determine at least one selectable scenario and a configuration template to be filled for the selectable scenario, so as to determine the resource configuration template corresponding to the production equipment based on the configuration template to be filled; The resource configuration template is a template obtained by filling in at least one field to be filled in the configuration template to be filled.

6. The method according to claim 5, characterized in that, The method further includes: In response to the user's trigger operation on the selected scenario in the resource configuration interface, the application scenario of the equipment put into production is determined; Display the configuration template to be filled corresponding to the application scenario; In response to an editing operation on the at least one field to be filled in the configuration template to be filled, a resource configuration template for the commissioned equipment is determined; The content to be filled in at least one field corresponds to the resource requirement information.

7. The method according to claim 1, characterized in that, The step of determining the target resource pool corresponding to the equipment in production based on the deployment area, and determining the target resources corresponding to the equipment in production from the target resource pool based on the resource requirement information in the resource configuration template, includes: Determine the target network region corresponding to the deployment region, and obtain at least two usable resource pools corresponding to the target network region; Based on the resource demand information, at least one target resource pool is determined from the at least two available resource pools; Based on the resource status of available resources in the target resource pool, the target query conditions of the target resource pool, and the resource demand information, target resources that are compatible with the equipment to be put into production are determined.

8. The method according to claim 1, characterized in that, The resource configuration template includes the number of equipment put into production, the address requirements and mask for each piece of equipment, and the application scenario of the equipment.

9. The method according to claim 8, characterized in that, If the number of equipment to be put into production in the resource configuration template includes multiple items, the target resources corresponding to each piece of equipment to be put into production shall be determined and issued.

10. The method according to claim 1, characterized in that, After determining the target resources compatible with the commissioning equipment, the method further includes: Update the resource status of the target resource to the allocated status.

11. A resource allocation device, characterized in that, include: The data acquisition module is used to acquire, upon receiving a resource allocation request, the resource configuration template of the equipment to be put into production associated with the resource allocation request and the deployment area of ​​the equipment to be put into production; wherein, the resource configuration template is adapted to the application scenario of the equipment to be put into production; The target resource determination module is used to determine the target resource pool corresponding to the equipment put into production based on the deployment area, and to determine the target resources corresponding to the equipment put into production from the target resource pool based on the resource requirement information in the resource configuration template; The resource distribution module is used to distribute the target resource to the production equipment so that the production equipment can perform corresponding tasks based on the target resource.

12. The apparatus according to claim 11, characterized in that, The device further includes: A resource pool configuration module is used to divide a target area into at least one network area and configure at least two resource pools for the at least one network area; wherein, the resource pools are used to store usable resources adapted to the network area, and the at least two resource pools store different types of resources; The resource configuration module is used to determine, for each resource pool in the network area, a usable resource that is compatible with the resource pool, based on the network area, the resource type of the resource pool, and the resource to be used, so as to determine the target resource from the usable resources in the resource pool.

13. An electronic device, characterized in that, The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the resource allocation method as described in any one of claims 1-10.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the resource allocation method as described in any one of claims 1-10.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the resource allocation method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Heterogeneous resource arrangement method and device, equipment and storage medium

    CN112306680A

  • Communication service arrangement method and device, computer equipment and storage medium

    CN113361913A