CN110781004A - Resource allocation management method and system - Google Patents

Resource allocation management method and system Download PDF

Info

Publication number
CN110781004A
CN110781004A CN201911019644.4A CN201911019644A CN110781004A CN 110781004 A CN110781004 A CN 110781004A CN 201911019644 A CN201911019644 A CN 201911019644A CN 110781004 A CN110781004 A CN 110781004A
Authority
CN
China
Prior art keywords
virtual resource
resource pool
pool
pools
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911019644.4A
Other languages
Chinese (zh)
Inventor
杨八双
韦健
顾祥洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENGKE NETWORK (SUZHOU) CO Ltd
Centec Networks Suzhou Co Ltd
Original Assignee
SHENGKE NETWORK (SUZHOU) CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENGKE NETWORK (SUZHOU) CO Ltd filed Critical SHENGKE NETWORK (SUZHOU) CO Ltd
Priority to CN201911019644.4A priority Critical patent/CN110781004A/en
Publication of CN110781004A publication Critical patent/CN110781004A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/74591Address table lookup; Address filtering using content-addressable memories [CAM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a resource allocation management method and a system, wherein the allocation management method comprises the following steps: creating a plurality of virtual resource pools and a plurality of physical resource pools; establishing a corresponding relation among the service, the virtual resource pool and the physical resource pool; and distributing the resources in the physical resource pool to each service through the virtual resource pool. The invention decouples the service and resource pool management by simplifying the management of the resource pool in the system software, reduces the complexity of service function resource management, improves maintainability and provides more flexible resource allocation and management.

Description

Resource allocation management method and system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a resource allocation management method and system.
Background
On a network switching device, allocation and management of many hardware table entry resources are involved, for example, TCAM resources need to be allocated to many service functions implemented using ACLs, different service functions may need to allocate hardware table entry resources of different sizes for service use, there may be a plurality of services sharing one hardware table entry resource of a fixed size, for example, A, B two ACL services need to share one TCAM table entry resource of 1K size, and both services using a and B according to user service configuration may use the 1K TCAM table entry resource until all services are used up. In a conventional resource management manner, when using TCAM entry resources, a service a needs to care about the size of the total entry resources, and also needs to know the use condition of the service B on the resources, because it needs to be ensured that the total resources used by a and B do not exceed 1K.
Therefore, the problems of complex resource allocation management, certain coupling in service logic, complex service adjustment or resource reallocation and the like are brought.
Therefore, in order to solve the above technical problems, it is necessary to provide a resource allocation management method.
Disclosure of Invention
The invention aims to provide a resource allocation management method to solve the problems of complex resource management and high coupling degree between services when a plurality of services share resources in the prior art.
In order to achieve the above object, an embodiment of the present invention provides the following technical solutions:
a resource allocation management method, the allocation management method comprising:
creating a plurality of virtual resource pools and a plurality of physical resource pools;
establishing a corresponding relation among the service, the virtual resource pool and the physical resource pool;
and distributing the resources in the physical resource pool to each service through the virtual resource pool.
As a further improvement of the present invention, "creating a virtual resource pool and a physical resource pool" includes:
creating a plurality of virtual resource pools for the service;
several physical resource pools are created for physical hardware resources.
As a further improvement of the present invention, "establishing a corresponding relationship between a service, a virtual resource pool, and a physical resource pool" includes:
establishing a corresponding relation between the services and the virtual resource pools, wherein each service is at least directly or indirectly bound with a plurality of virtual resource pools;
and establishing a corresponding relation between the virtual resource pools and the physical resource pools, wherein each virtual resource pool is directly or indirectly bound with one physical resource pool.
As a further improvement of the present invention, the virtual resource pools include a plurality of first virtual resource pools and a plurality of second virtual resource pools, at least two first virtual resource pools are bound to one second virtual resource pool, and the second virtual resource pool is bound to one physical resource pool.
As a further improvement of the present invention, the virtual resource pools include a plurality of third virtual resource pools, and at least one third virtual resource pool is bound to one physical resource pool.
As a further improvement of the present invention, the resource allocation management method further includes:
and when the resource requirement of each service changes, adjusting the binding relationship between each virtual resource pool and each physical resource pool.
As a further improvement of the present invention, the resource is an entry resource.
The technical scheme provided by one embodiment of the invention is as follows: a resource allocation management system, the allocation management system comprising:
the resource pool creating module is used for creating a plurality of virtual resource pools and a plurality of physical resource pools;
the corresponding relation establishing module is used for establishing the corresponding relation among the service, the virtual resource pool and the physical resource pool;
and the allocation management module is used for allocating the resources in the physical resource pool to each service through the virtual resource pool.
As a further improvement of the present invention, the virtual resource pools include a plurality of first virtual resource pools and a plurality of second virtual resource pools, at least two first virtual resource pools are bound to one second virtual resource pool module, and the second virtual resource pools are bound to one physical resource pool.
As a further improvement of the present invention, the virtual resource pools include a plurality of third virtual resource pools, and at least one third virtual resource pool is bound to one physical resource pool.
The invention has the following beneficial effects:
the invention decouples the service and resource pool management by simplifying the management of the resource pool in the system software, reduces the complexity of service function resource management, improves maintainability and provides more flexible resource allocation and management.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a resource allocation management method according to the present invention;
FIG. 2 is a schematic diagram of the connection of virtual resource pools in a sharing mode;
FIG. 3 is a first connection diagram illustrating resource allocation management according to an embodiment of the present invention;
FIG. 4 is a second exemplary connection diagram illustrating resource allocation management according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a resource allocation management system in the present invention.
Detailed Description
The present invention will be described in detail below with reference to embodiments shown in the drawings. The embodiments are not intended to limit the present invention, and structural, methodological, or functional changes made by those skilled in the art according to the embodiments are included in the scope of the present invention.
Referring to fig. 1, the present invention discloses a resource allocation management method, which includes the following steps:
creating a plurality of virtual resource pools and a plurality of physical resource pools;
establishing a corresponding relation among the service, the virtual resource pool and the physical resource pool;
and distributing the resources in the physical resource pool to each service through the virtual resource pool, wherein the resources in the physical resource pool are table item resources.
The invention comprises the following steps:
creating a plurality of virtual resource pools for the service;
several physical resource pools are created for physical hardware resources.
In addition, the "establishing a corresponding relationship between a service, a virtual resource pool and a physical resource pool" in the present invention includes:
establishing a corresponding relation between the services and the virtual resource pools, wherein each service is at least directly or indirectly bound with a plurality of virtual resource pools;
and establishing a corresponding relation between the virtual resource pools and the physical resource pools, wherein each virtual resource pool is directly or indirectly bound with one physical resource pool.
Further, referring to fig. 2, the virtual resource pools include a plurality of first virtual resource pools and a plurality of second virtual resource pools, at least two first virtual resource pools are bound with one second virtual resource pool, so as to form a binding manner in which the two first virtual resource pools and the second virtual resource pools share, the second virtual resource pool is bound with one physical resource pool, when there are multiple layers of sharing, the second virtual resource pool of each layer is bound with the second virtual resource pool of the next layer, and the second virtual resource pool of the bottom layer is bound with the physical resource pool.
Furthermore, the virtual resource pools include a plurality of third virtual resource pools, and at least one third virtual resource pool is bound with one physical resource pool, so that a non-shared binding mode of the third virtual resource pool and the physical resource pool is formed.
In the present invention, the resource allocation management method further includes: and when the resource requirement of each service changes, adjusting the binding relationship between each virtual resource pool and each physical resource pool.
The present invention will be described in detail with reference to specific examples.
The first embodiment is as follows:
referring to fig. 3, in this embodiment, 300 table entry resources are preset, three services are selected A, B, C, 100 services are allocated to C, and 200 services are shared by a and B.
A physical resource POOL-ALL of 300 size is created for the table entry resources, a second virtual resource POOL-AB of 200 size is created for a and B, a first virtual resource POOL-a of 200 size is created for a, a first virtual resource POOL-B of 200 size is created for B, and a third virtual resource POOL-C of 100 size is created for C.
And binding the second virtual resource POOL POOL-AB to the physical virtual resource POOL POOL-ALL in a fixed allocation mode, binding the third virtual resource POOL POOL-C to the physical virtual resource POOL POOL-ALL in a fixed allocation mode, and fixedly allocating 200 resources to the second virtual resource POOL POOL-AB by the physical resource POOL POOL-ALL.
The first virtual resource POOL-a is bound in a shared manner to the second virtual resource POOL-AB, the first virtual resource POOL-a allocating 200 resources on the second virtual resource POOL-AB in a shared manner.
And binding the service A to the first virtual resource POOL POOL-A, wherein the service A only uses the resources on the first virtual resource POOL POOL-A, and the first virtual resource POOL POOL-A can perform processing such as resource addition, deletion, check and the like according to the binding relationship of each resource POOL and the allocation mode of the resources.
The second virtual resource POOL-B is bound to the second virtual resource POOL-AB in a shared manner, the second virtual resource POOL-B allocating 200 resources on the second virtual resource POOL-AB in a shared manner.
And binding the service B to the first virtual resource POOL POOL-B, wherein the service B only uses the resources on the first virtual resource POOL POOL-B, and the first virtual resource POOL POOL-B can add, delete and check the resources according to the binding relationship of each resource POOL and the allocation mode of the resources.
The third virtual resource POOL-C is bound to the physical resource POOL-ALL in a fixed allocation, and the third virtual resource POOL-C has a fixed allocation of 100 resource usages from the physical resource POOL-ALL, which 100 resources cannot be shared with the service A, B.
The service C is bound to a third virtual resource POOL-C, the service C only using 100 resources on the third virtual resource POOL-C.
Example two:
referring to fig. 4, in this embodiment, entry resources are preset to 300, three services are selected to be A, B, C, and 100 are allocated to a, 100 are allocated to B, and 100 are allocated to C.
A physical virtual resource POOL-ALL of 300 size is created for the table entry resources, a first virtual resource POOL-a of 100 size is created for a, a first virtual resource POOL-B of 100 size is created for B, and a third virtual resource POOL-C of 100 size is created for C.
The first virtual resource POOL is bound on the physical resource POOL in a fixed allocation mode, and the first virtual resource POOL is fixedly allocated 100 resource usage from the physical resource POOL.
And binding the service A to the first virtual resource POOL POOL-A, wherein the service A only uses the resources on the first virtual resource POOL POOL-A, and the first virtual resource POOL POOL-A can perform processing such as resource addition, deletion, check and the like according to the binding relationship of each resource POOL and the allocation mode of the resources.
The first virtual resource POOL-B is bound to the physical resource POOL-ALL in a fixed allocation manner, and the first virtual resource POOL-B is fixedly allocated 100 resource usage from the physical resource POOL-ALL.
And binding the service B to the first virtual resource POOL POOL-B, wherein the service B only uses the resources on the first virtual resource POOL POOL-B, and the first virtual resource POOL POOL-B can add, delete and check the resources according to the binding relationship of each resource POOL and the allocation mode of the resources.
The third virtual resource POOL-C is bound to the physical resource POOL-ALL in a fixed allocation, and the third virtual resource POOL-C has a fixed allocation of 100 resource usages from the physical resource POOL-ALL, which 100 resources cannot be shared with the service A, B.
The service C is bound to a third virtual resource POOL-C, the service C only using 100 resources on the third virtual resource POOL-C.
Example three:
in this embodiment, when a change in the requirement of the service A, B needs to be performed and resource reallocation is required, the second virtual resource POOL-AB in the first embodiment changes resources and the binding relationship, so as to form the binding form in the second embodiment.
Referring to fig. 5, the present invention also discloses a resource allocation management system, which includes:
a create resource pool module 10 for creating a plurality of virtual resource pools and a plurality of physical resource pools;
a corresponding relationship establishing module 20, configured to establish a corresponding relationship between the service, the virtual resource pool, and the physical resource pool;
and the allocation management module 30 is configured to allocate resources in the physical resource pool to each service through the virtual resource pool.
The virtual resource pools comprise a plurality of first virtual resource pools and a plurality of second virtual resource pools, at least two first virtual resource pools are bound with one second virtual resource pool, and the second virtual resource pools are bound with one physical resource pool.
The virtual resource pools comprise a plurality of third virtual resource pools, and at least one third virtual resource pool is bound with one physical resource pool.
According to the technical scheme, the invention has the following advantages:
the invention decouples the service and resource pool management by simplifying the management of the resource pool in the system software, reduces the complexity of service function resource management, improves maintainability and provides more flexible resource allocation and management.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, one or more embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (10)

1. A resource allocation management method, characterized in that the allocation management method comprises:
creating a plurality of virtual resource pools and a plurality of physical resource pools;
establishing a corresponding relation among the service, the virtual resource pool and the physical resource pool;
and distributing the passed virtual resource pool in the physical resource pool to each service.
2. The method according to claim 1, wherein the step of creating a virtual resource pool and a physical resource pool comprises:
creating a plurality of virtual resource pools for the service;
several physical resource pools are created for physical hardware resources.
3. The method according to claim 1, wherein the establishing of the correspondence between the service and the virtual resource pool and the physical resource pool comprises:
establishing a corresponding relation between the services and the virtual resource pools, wherein each service is at least directly or indirectly bound with a plurality of virtual resource pools;
and establishing a corresponding relation between the virtual resource pools and the physical resource pools, wherein each virtual resource pool is directly or indirectly bound with one physical resource pool.
4. The method according to claim 1, wherein the virtual resource pools include a plurality of first virtual resource pools and a plurality of second virtual resource pools, at least two first virtual resource pools are bound to one second virtual resource pool, and the second virtual resource pool is bound to one physical resource pool.
5. The method according to claim 1, wherein the virtual resource pools include a plurality of third virtual resource pools, and at least one third virtual resource pool is bound to one physical resource pool.
6. The resource allocation management method according to claim 1, wherein the resource allocation management method further comprises:
and when the resource requirement of each service changes, adjusting the binding relationship between each virtual resource pool and each physical resource pool.
7. The method according to claim 1, wherein the resource is an entry resource.
8. A resource allocation management system, characterized in that the allocation management system comprises:
the resource pool creating module is used for creating a plurality of virtual resource pools and a plurality of physical resource pools;
the corresponding relation establishing module is used for establishing the corresponding relation among the service, the virtual resource pool and the physical resource pool;
and the allocation management module is used for allocating the resources in the physical resource pool to each service through the virtual resource pool.
9. The system according to claim 8, wherein the virtual resource pools include a plurality of first virtual resource pools and a plurality of second virtual resource pools, at least two of the first virtual resource pools are bound to one of the second virtual resource pools, and the second virtual resource pools are bound to one of the physical resource pools.
10. The system according to claim 9, wherein the virtual resource pools include a plurality of third virtual resource pools, at least one third virtual resource pool being bound to one physical resource pool.
CN201911019644.4A 2019-10-24 2019-10-24 Resource allocation management method and system Pending CN110781004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911019644.4A CN110781004A (en) 2019-10-24 2019-10-24 Resource allocation management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911019644.4A CN110781004A (en) 2019-10-24 2019-10-24 Resource allocation management method and system

Publications (1)

Publication Number Publication Date
CN110781004A true CN110781004A (en) 2020-02-11

Family

ID=69386386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911019644.4A Pending CN110781004A (en) 2019-10-24 2019-10-24 Resource allocation management method and system

Country Status (1)

Country Link
CN (1) CN110781004A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328948A (en) * 2021-06-02 2021-08-31 杭州迪普信息技术有限公司 Resource management method, device, network equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335235A (en) * 2015-11-24 2016-02-17 浪潮电子信息产业股份有限公司 IaaS mode based resource management system and method
CN107566184A (en) * 2017-09-22 2018-01-09 天翼电子商务有限公司 A kind of resource unified management method and its system
CN109710393A (en) * 2018-12-27 2019-05-03 北京联创信安科技股份有限公司 Service environment intelligence resource pool management method, apparatus, server and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335235A (en) * 2015-11-24 2016-02-17 浪潮电子信息产业股份有限公司 IaaS mode based resource management system and method
CN107566184A (en) * 2017-09-22 2018-01-09 天翼电子商务有限公司 A kind of resource unified management method and its system
CN109710393A (en) * 2018-12-27 2019-05-03 北京联创信安科技股份有限公司 Service environment intelligence resource pool management method, apparatus, server and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328948A (en) * 2021-06-02 2021-08-31 杭州迪普信息技术有限公司 Resource management method, device, network equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10609129B2 (en) Method and system for multi-tenant resource distribution
US8122452B2 (en) Swap cap resource control for use in virtualization
US8443373B2 (en) Efficient utilization of idle resources in a resource manager
EP3594798B1 (en) Data storage method and device
US10013264B2 (en) Affinity of virtual processor dispatching
CN105159775A (en) Load balancer based management system and management method for cloud computing data center
CN112905342B (en) Resource scheduling method, device, equipment and computer readable storage medium
DE112013000395T5 (en) Policy enforcement in computing environment
US10749944B2 (en) Systems and methods to improve the performance of a network by more efficient virtual network resource allocation
CN107920117B (en) Resource management method, control equipment and resource management system
CN107005427A (en) A kind of method for managing resource and device
CN103685540A (en) Task decomposition and composition method based on cloud computing
CN104156663B (en) A kind of hardware virtual port and processor system
KR20220025746A (en) Dynamic allocation of computing resources
CN115185697A (en) Cluster resource scheduling method, system, equipment and storage medium based on kubernets
CN105573672A (en) Virtual storage method and system based on NFS
CN103491193A (en) Method and device for sharing file
US10990519B2 (en) Multi-tenant cloud elastic garbage collector
CN110781004A (en) Resource allocation management method and system
DE112021003803T5 (en) POOL MANAGEMENT FOR APPLICATION LAUNCH IN AN ONBOARD UNIT
CN112087402A (en) Queue distribution method and system based on HASH algorithm
CN103905529A (en) Cloud computing resource allocation method
CN113420269B (en) Method, system, device and medium for managing multiple tenants based on big data platform
CN106569957A (en) Memory allocation method and device
CN116841720A (en) Resource allocation method, apparatus, computer device, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Applicant after: Suzhou Shengke Communication Co.,Ltd.

Address before: Unit 13 / 16, floor 4, building B, No. 5, Xinghan street, Suzhou Industrial Park, Suzhou, Jiangsu Province, 215000

Applicant before: CENTEC NETWORKS (SUZHOU) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211