[go: up one dir, main page]

CN107547445B - Resource allocation method and device - Google Patents

Resource allocation method and device Download PDF

Info

Publication number
CN107547445B
CN107547445B CN201710641852.2A CN201710641852A CN107547445B CN 107547445 B CN107547445 B CN 107547445B CN 201710641852 A CN201710641852 A CN 201710641852A CN 107547445 B CN107547445 B CN 107547445B
Authority
CN
China
Prior art keywords
state
resource
vbras
resources
configuration
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.)
Active
Application number
CN201710641852.2A
Other languages
Chinese (zh)
Other versions
CN107547445A (en
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710641852.2A priority Critical patent/CN107547445B/en
Publication of CN107547445A publication Critical patent/CN107547445A/en
Application granted granted Critical
Publication of CN107547445B publication Critical patent/CN107547445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to a resource allocation method and device. The method is applied to a virtualized broadband remote access server management and arrangement system vBRASSO, and comprises the following steps: issuing template configuration resources to the vBRAS in the configuration state, and migrating the vBRAS state allocated to the template configuration resources from the configuration state to an unavailable state; when detecting that the vBRAS is in an unavailable state, issuing tunnel resources to the vBRAS in the unavailable state; when the time for detecting that the vBRAS is in the unavailable state is greater than or equal to a time threshold, determining that the vBRAS is not successfully issued tunnel resources, and controlling the vBRAS to release the template configuration resources. According to the embodiment of the disclosure, the time that the created vBRAS is in an unavailable state can be monitored, and the template configuration resources are released when the time is greater than or equal to the time threshold, so that the resources can be allocated again, and the utilization rate of system resources is improved.

Description

Resource allocation method and device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a resource allocation method and apparatus.
Background
Network Function Virtualization (NFV) is a technology that uses general hardware and virtualization technology to implement multifunctional software processing, and can decouple software and hardware and abstract functions so that network device functions are not dependent on dedicated hardware. The general hardware may be a network element device (VNF network element) based on the NFV technology, and generally needs to perform resource pooling unified management on the VNF network element through a VNF management system or module.
A virtualized Broadband remote access Server management and Orchestration system (vbarso) is a management and Orchestration system for vbars. The vBRASSO is based on a VNF Management module, combines with the self-mature service characteristics of the SDN, can provide MANO (Management and organization) functions such as creation, Management, operation and maintenance, service arrangement and the like of the vbars resource pool, and is mainly used for providing the capability of acquiring and rapidly delivering the vbars resource pool as required for an operator. The main functions of vbarsso include: vBRAS lifecycle management, vBRAS resource pooling management, vBRAS status management, vBRAS configuration management, vBRAS traffic orchestration, vBRAS operation and maintenance management, vBRAS traffic troubleshooting, physical device management, network resource management (IP address, VxLAN tunnel, etc.).
In the process of creating the vbars, vbarso needs to allocate various system resources for vbars so that the vbars can carry traffic. However, in the related art, when the number of created vbars is greater than the number of system resources, there may be a case where a plurality of vbars respectively obtain part of the system resources and cannot carry a service, which causes waste of the system resources.
Disclosure of Invention
In view of this, the present disclosure provides a resource allocation method and apparatus.
According to an aspect of the present disclosure, there is provided a resource allocation method, which is applied in a virtualized broadband remote access server management and orchestration system vbarsso, the method including:
issuing template configuration resources to the vBRAS in the configuration state, and migrating the state of the vBRAS allocated to the template configuration resources from the configuration state to an unavailable state;
when detecting that the vBRAS is in an unavailable state, issuing tunnel resources to the vBRAS in the unavailable state;
when the time that the vBRAS is detected to be in the unavailable state is larger than or equal to a time threshold value, the vBRAS is determined not to successfully issue the tunnel resource, and the vBRAS is controlled to release the template configuration resource.
According to another aspect of the present disclosure, there is provided a resource allocation apparatus, which is applied in a virtualized broadband remote access server management and orchestration system vbarsso, the apparatus including:
the first resource issuing module is used for issuing a template configuration resource to the vBRAS in a configuration state and transferring the state of the vBRAS allocated to the template configuration resource from the configuration state to an unavailable state;
the second resource issuing module is used for issuing tunnel resources to the vBRAS in the unavailable state when the vBRAS is detected to be in the unavailable state;
and the resource release module is used for determining that the vbars is not successfully issued the tunnel resource when the time for detecting that the vbars is in the unavailable state is greater than or equal to a time threshold value, and controlling the vbars to release the template configuration resource.
According to another aspect of the present disclosure, there is provided a virtualized broadband remote access server management and orchestration system, vbarso, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the resource allocation method as described above
According to the resource allocation method and device disclosed by the embodiment of the disclosure, the time that the created vBRAS is in an unavailable state can be monitored, and the template configuration resources are released when the time is greater than or equal to the time threshold, so that the resources can be allocated again, and the utilization rate of system resources is improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a vbarsso networking architecture according to one exemplary application scenario of the related art.
Fig. 2 is a schematic diagram of state transition of a switch according to the related art.
Fig. 3 is a schematic diagram of state transition of a vbars according to the related art.
Fig. 4 is a schematic diagram of a service flow of vbarsso according to the related art.
Fig. 5 is a flow chart illustrating a method of resource allocation in accordance with an example embodiment.
Fig. 6 is a flow chart illustrating a method of resource allocation in accordance with an example embodiment.
Fig. 7 is a flow chart illustrating a method of resource allocation in accordance with an example embodiment.
Fig. 8 is a schematic diagram illustrating a vbars state migration of a resource allocation method according to an example embodiment.
Fig. 9 is a schematic diagram illustrating a business process of resource allocation according to an example embodiment.
Fig. 10 is a block diagram illustrating a resource allocation apparatus according to an example embodiment.
Fig. 11 is a block diagram illustrating a resource allocation apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating a resource allocation apparatus according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the related art, vbarsso can manage a variety of application scenarios, and a VxLAN (virtual ethernet) scenario is taken as an example for description below.
Fig. 1 is a schematic diagram of a vbarsso networking architecture according to one exemplary application scenario of the related art. As shown in fig. 1, in the related art, the vbarsso networking architecture of the VxLAN scenario may include: vbarso 11, a plurality of vbars 12, VxLAN switch 13, and user client 14. The vbars 12 may include, for example, vbars 121, 122, and 123 in fig. 1. VxLAN switch 13 (i.e., POP switch) may be connected to user client 14 while VxLAN tunnel 15 is established with the downstream port of the vbars. VxLAN switch 13 may send user traffic for different vxlans into designated VxLAN tunnel 15. And the vBRAS is responsible for performing corresponding processing after the VxLAN message sent by the VxLAN switch 13 is de-encapsulated. In this application scenario, vBRASSO 11 needs to manage three types of resources, which are related to multiple vbars 12 and may also be referred to as a virtual machine resource pool, a related resource of VxLAN switch 13, and a related resource of VxLAN tunnel 15.
In this application scenario, when a POP switch (VxLAN switch 13) is added, the vbarsso 11 may only perform Netconf protocol (XML-based network configuration protocol) connection and not issue configuration. The POP switch is added, namely, the vBRASSO can manage the switch by inputting the IP address of the POP switch, the user name and the password of the Netconf protocol on the vBRASSO. After the POP switch is added (the management of vBRASSO is included), a state machine aiming at the POP switch can be established, and the state of the POP switch is migrated.
Fig. 2 is a schematic diagram of state transition of a switch according to the related art. As shown in fig. 2, in this state machine, after a POP switch (which is managed by the vbarsso) is added to the vbarso, the state machine is in a configuration (configuration) state; when the Netconf connection is successful, the state of the POP switch is transited to an Unavailable (Unavailable) state; when the tunnel resource is successfully issued, the state of the POP switch is migrated to an Available state; when the switch is abnormal or the tunnel resource needs to be issued again, the state of the POP switch is transited to an Unavailable (Unavailable) state. The system would create a separate thread for the POP switch to maintain this state machine.
Fig. 3 is a schematic diagram of state transition of a vbars according to the related art. In this application scenario, the virtual machine resource pool may include an IP address resource pool. The template associated with the IP address resource pool (where the template may include, for example, some necessary configurations in the vbars, including interface name and number, association between the interface and the IP address resource pool, routing configuration, access manner, and the like) may form a template configuration resource, and the template configuration resource may be issued to the vbars, so as to provide necessary resources for the user to access. Each time a vbrs is created, the system creates a separate thread to maintain the state machine of the vbrs. The state transitions may be performed as a state machine as shown in fig. 3. After the vBRAS is created, the vBRAS is in a configuration (Configure) state; when the Netconf connection is available and the template configuration resource is successfully issued, the state of the vbars is transited to an Unavailable (Unavailable) state; when the tunnel resource is successfully issued, the state of the vBRAS is transferred to an initialization (Initial) state; when a VxLAN tunnel interface between a switch and the vBRAS is enabled (up), the state of the vBRAS is transited to an Available state, and service is provided for a user; upon a vbars anomaly, the state of the vbars transitions to an Unavailable (Unavailable) state. And, when the status of the vbrs is in an Available (Available) state, if an Overload condition occurs, the status of the vbrs may transition to an Overload (Overload) state; after overload recovery, the state of the vbrs may transition to an Available (Available) state.
In this application scenario, VxLAN tunnel 15 may include resources required to establish the tunnel, such as IP addresses and interface numbers at both ends of the tunnel, one end of the tunnel being located on the vbars and the other end being located on VxLAN switch 13. To make VxLAN services run, a service instance needs to be created, and the three types of resources (resources of vBRAS12, resources of VxLAN switch 13 and resources of VxLAN tunnel 15) are bound under the service instance, that is, VxLAN tunnel resources (VxLAN tunnel 15) are distributed to VxLAN switch 13 and vBRAS, so that VxLAN tunnels capable of normal communication are established between VxLAN switch 13 and vBRAS. Therefore, the vBRAS can carry the service under the condition of simultaneously obtaining the template configuration resource and the tunnel resource. Where vbars, VxLAN switch 13, and VxLAN tunnel 15 are associated, a complete service instance may be formed.
In this application scenario, vbarsso may be a multithreading-based architecture, where a main thread is responsible for processing a main service flow, and a sub-thread may be created to process the services of vbars and switches. As described above, each time a new vbrs is created or a switch is added, the main thread creates a separate thread for each vbrs and each switch to maintain their state machine.
Fig. 4 is a schematic diagram of a service flow of vbarsso according to the related art. The relationship of the main thread and the sub-thread and the business process can be as shown in fig. 4, wherein the main thread is responsible for allocating resources and creating service instances, and respectively drives new threads for the VxLAN switch and the vbars. Bound under the service instance is a virtual machine resource pool (which may be described as a domain (domain), for example), the virtual machine resource pool includes resource information of one or more vbars, and the one or more vbars under the virtual machine resource pool can be arbitrarily added and deleted. Therefore, there is no precedence relationship between creation of vbars and binding of service instances and virtual machine resource pools. In fig. 5, the vbars 1 was created before the service instance binding and the vbars 2 was created after the service instance binding. Both vbars 1 and vbars 2 need to go through both creation and configuration issues. The procedures created by vbars 1 and vbars 2 are accomplished by calling the vnf interface in the primary thread, and the procedure of configuration issue is accompanied by state migration of vbars (e.g., the state migration of vbars, as described above, can implement the state migration of configuration (configuration) state- > Unavailable (Unavailable) state- > initialization (Initial) state- > Available (Available) state), which is accomplished in its own child threads of vbars 1 and vbars 2.
According to the configuration flow in fig. 4, there are two places to be configured and issued. One is the configuration of template configuration resources and the other is the configuration of tunnel resources. And only after the two configurations are correctly issued to the vBRAS, the VxLAN tunnel can be normally established and subsequent services can be carried out. As can be seen from the state machine of the vbars, the delivery of the template configuration resource is in the configuration (configuration) stage, and if the delivery fails, the vbars stays in the configuration (configuration) state and cannot migrate to the Unavailable (Unavailable) state; when the template configuration resources are successfully issued, the tunnel resources are started to be issued after the template configuration resources are migrated to an Unavailable (Unavailable) state; if the down-sending of the tunnel resource fails, the vBRAS stays in an Unavailable (Unavailable) state and cannot be migrated to an initialization (Initial) state.
As shown in fig. 4, for the configuration of tunnel resources, although issued during the Unavailable (Unavailable) phase, it can be seen from fig. 4 that the tunnel resources have been allocated to the vbars 2 by the primary thread before the creation of the child thread of the vbars 2. That is to say, after the vbars and the service instance are both created, the tunnel resource is already allocated to the determined vbars, and in the vbars child thread, after the state machine runs to the Unavailable state, the child thread is only responsible for taking out the allocated tunnel resource in the main thread and issuing the tunnel resource to the corresponding vbars. However, when the tunnel resource and the template configuration resource are not enough, if a plurality of vbars are created at the same time, there may be a case that some vbars are allocated to the tunnel resource, and some vbars are allocated to the template configuration resource, and the configuration of these vbars is not complete and is not available for VxLAN services.
Fig. 5 is a flow chart illustrating a method of resource allocation in accordance with an example embodiment. The method can be applied to a virtualized broadband remote access server management and orchestration system vBRASSO. As shown in fig. 5, a resource allocation method according to an embodiment of the present disclosure includes:
step S11, issuing template configuration resources to the vBRAS in the configuration state, and transferring the state of the vBRAS allocated to the template configuration resources from the configuration state to the unavailable state;
step S12, when detecting that the vBRAS is in the unavailable state, sending tunnel resources to the vBRAS in the unavailable state;
step S13, when it is detected that the time of the vbrs in the unavailable state is greater than or equal to a time threshold, it is determined that the vbrs has not successfully issued the tunnel resource, and then the vbrs is controlled to release the template configuration resource.
According to the embodiment of the disclosure, the time that the created vBRAS is in an unavailable state can be monitored, and the template configuration resources are released when the time is greater than or equal to the time threshold, so that the resources can be allocated again, and the utilization rate of system resources is improved.
For example, when creating a vbars, a vbars child thread may be created and enter the state machine of the vbars. When the status of the vBRAS enters a configuration (Configure) status, the vBRASSO can issue a template configuration resource to the vBRAS in the configuration status; when the Netconf connection is available and the template configuration resource is successfully delivered, the state of the vbars is transited to the Unavailable (Unavailable) state. When the vBRASSO detects that the vbars is in an unavailable state, the vbars in the unavailable state can be issued tunnel resources.
In one possible implementation, if the vbrs cannot obtain the tunnel resource, the state of the vbrs may stay in an Unavailable (Unavailable) state. At this point, it may be the case that the template configuration resources and tunnel resources of the system are insufficient, the template configuration resources being obtained by the current vbrs, and the tunnel resources being obtained by other vbrs.
In one possible implementation, the vBRASSO may detect when a vbars is in an Unavailable state when the state of a created vbars (e.g., vbars 3) transitions to an Unavailable state. If the time that the vbars is in the unavailable state is greater than or equal to the time threshold, it can be considered that the tunnel resources in the system are insufficient, and the tunnel resources cannot be obtained.
In one possible implementation, the time threshold may be, for example, a plurality of detection cycles, where the detection cycle is a time period for detecting, by a child thread of the vbars, an available resource in the resource pool, that is, every other detection cycle, the child thread of the vbars detects whether there is an available resource (a template configuration resource or a tunnel resource) in the resource pool. The detection period may be, for example, 20 seconds. It should be understood that the time threshold is only required to be larger than the detection period, and the specific value of the time threshold is not limited in the present disclosure.
In a possible implementation manner, the vbrs may periodically detect whether there are new released tunnel resources or template configuration resources in the corresponding resource pool, and since at least two vbars that cannot acquire the tunnel resources or the template configuration resources are required, at least two detection cycles are required to determine whether the vbrs is successfully issued the tunnel resources, so a preferred implementation manner is that the time threshold is two detection cycles.
However, it should be understood that the time threshold is only required to be larger than the detection period, and the specific value of the time threshold is not limited in the present disclosure.
In a possible implementation manner, if the time that the vbrs is in the unavailable state is greater than or equal to a time threshold, it may be determined that the vbrs has not successfully issued the tunnel resource, and the vbrs may be controlled to release the obtained template configuration resource. In this case, since the current vbars cannot obtain the tunnel resource, releasing the obtained template configuration resource may cause the template configuration resource to be returned to the system resource pool. When the next detection period is reached, the current vBRAS and other vBRAS which do not obtain the template configuration resource can obtain the template configuration resource again. If other vbars which does not obtain the template configuration resource has obtained the tunnel resource, when the other vbars obtains the template configuration resource, state migration from a configuration (configuration) state- > Unavailable (Unavailable) state- > initialization (Initial) state- > Available (Available) state can be realized, so that the other vbars enters an Available (Available) state to carry traffic. In this way, the resources can be allocated again, and the utilization rate of the system resources is improved.
Fig. 6 is a flow chart illustrating a method of resource allocation in accordance with an example embodiment. As shown in fig. 6, in one possible implementation, the method further includes:
step S14, when detecting that there is the released template configuration resource, issuing the released template configuration resource to the vbrs in configuration state.
For example, if the current vbars releases the acquired template configuration resources, the template configuration resources may be returned to the system resource pool. When the vBRASSO detects that the released template configuration resource exists at the time of the next detection period, the released template configuration resource can be issued to the vBRAS in the configuration state. In this case, the current vbrs (in the configured state) and other vbrs (in the configured state) that do not obtain the template configuration resource may obtain the template configuration resource again. If other vbars which does not obtain the template configuration resource has obtained the tunnel resource, when the other vbars obtains the template configuration resource, state migration from a configuration (configuration) state- > Unavailable (Unavailable) state- > initialization (Initial) state- > Available (Available) state can be realized, so that the other vbars enters an Available (Available) state to carry traffic.
Fig. 7 is a flow chart illustrating a method of resource allocation in accordance with an example embodiment. As shown in fig. 7, in one possible implementation, the method further includes:
and step S15, when the vbrs releases the template configuration resource, controlling the state of the vbrs to transition from the unavailable state to a configuration state.
For example, if the vbrs releases the obtained template configuration resources, the vbrs may be returned from the Unavailable state (Unavailable) to the configuration state (configuration), waiting for new resources (template configuration resources and tunnel resources). When the next detection period is reached, the vbrs can acquire new template configuration resources and tunnel resources again. In this way, state transition is performed when the template configuration resources are released, so that the vbars can acquire system resources again.
Fig. 8 is a schematic diagram illustrating a vbars state migration of a resource allocation method according to an example embodiment. As shown in fig. 8, when creating the vbars, the vbars is always in the configuration state before being allocated to the template configuration resource. As shown in fig. 7, if the Netconf connection is available and the template configuration resource is successfully issued, the state of the vbrs can be transitioned from the configuration state to the unavailable state, so as to implement the state transition process of the vbrs.
In one possible implementation, if the state stay time of the vbars in the Unavailable state (Unavailable) exceeds, for example, 2 detection periods, the template configuration resources that have been previously allocated may be released and the vbars may be returned from the Unavailable state (Unavailable) to the configuration state (configuration), thereby implementing the state migration process of the present disclosure.
Application example
An application example according to an embodiment of the present disclosure is given below to facilitate understanding of the flow of resource allocation. It is to be understood by those skilled in the art that the following application examples are for the purpose of facilitating understanding of the embodiments of the present disclosure only and are not to be construed as limiting the embodiments of the present disclosure.
Fig. 9 is a schematic diagram illustrating a business process of resource allocation according to an example embodiment. As shown in fig. 9, in this application example, the master thread may call the vnf interface to create two vbars, e.g., vbars 3 and vbars 4, respectively, and create child threads of vbars 3 and vbars 4, respectively, into the state machines of vbars 3 and vbars 4, respectively. And when the vbrs was created before the main thread, the remaining tunnel resources have been allocated to the vbrs 4.
In this application example, both vbars 3 and vbars 4 enter a configuration (Configure) state, and the primary thread of vbarso may issue template configuration resources to vbars 3 and vbars 4 in the configuration state. If the vbars 3 acquires the template configuration resource, the state of the vbars 3 transitions from the configuration (configurable) state to the Unavailable (Unavailable) state. When detecting that vbars 3 is in an unavailable state, the primary thread of vbarso may issue tunnel resources to vbars 3, which is in an unavailable state. But if there are no tunnel resources already in the system, vbrs 3 may stay in an Unavailable (Unavailable) state due to the inability to acquire tunnel resources. Meanwhile, if there are no template configuration resources already in the system, the vbrs 4 may stay in the configuration (configuration) state because no template configuration resources are acquired. However, for the vbars to work normally, the template configuration resource and the tunnel resource need to be obtained at the same time, and neither the vbars 3 that only obtains the template configuration resource nor the vbars 4 that only obtains the tunnel resource can carry traffic, which results in resource waste.
In this application example, the dwell time for the vbars 3 in the Unavailable state (Unavailable) may be detected at the vbars 3 thread. If the time threshold has not been exceeded (e.g., 2 detection cycles), continue waiting; if the time threshold is exceeded (e.g., 2 detection cycles), the template configuration resources may be released, causing the template configuration resources to be restored back into the system resource pool (database). In this way, upon reaching the next detection period, both vbars 3 and vbars 4 may again acquire the template configuration resource.
In this application example, if the vbars 4 acquires the template configuration resource released by vbars 3, it may transition from a configuration (configurable) state to an Unavailable (Unavailable) state; further, the allocated tunnel resource is obtained from the system resource pool, and state migration of Unavailable (Unavailable) state- > initialized (Initial) state- > Available (Available) state is realized. Thus, the entire creation process of the vbars 4 is completed, and the vbars 4 can carry traffic.
In this application example, after the vbars 3 releases the template configuration resource, it may transition from an Unavailable (Unavailable) state to a configured (Configure) state, so that the vbars 3 can acquire the system resource (template configuration resource) again.
In this way, the release and re-acquisition of resources are realized between two or more vbars sub-threads, so that the allocation of tunnel resources and template configuration resources can be kept synchronous. Under the condition of limited resources, the service is borne by the available vBRAS as much as possible, and the resource utilization rate is improved.
Fig. 10 is a block diagram illustrating a resource allocation apparatus according to an example embodiment. As shown in fig. 10, the apparatus is applied in a virtualized broadband remote access server management and orchestration system vbarsso, and the resource allocation apparatus includes:
a first resource issuing module 91, configured to issue a template configuration resource to a vbars in a configuration state, and migrate a state of the vbars allocated to the template configuration resource from the configuration state to an unavailable state;
a second resource issuing module 92, configured to issue a tunnel resource to a vbrs in an unavailable state when detecting that the vbrs is in the unavailable state;
a resource releasing module 93, configured to determine that the vbrs is not successfully issued the tunnel resource when it is detected that the time that the vbrs is in the unavailable state is greater than or equal to a time threshold, and control the vbrs to release the template configuration resource.
Fig. 11 is a block diagram illustrating a resource allocation apparatus according to an example embodiment. As shown in fig. 11, in a possible implementation manner, the apparatus further includes:
a third resource issuing module 94, configured to issue the released template configuration resource to the VBRAS in the configuration state when it is detected that the released template configuration resource exists.
As shown in fig. 11, in a possible implementation manner, the apparatus further includes:
a state transition module 95, configured to control, when the vbrs releases the template configuration resource, that the state of the vbrs is transitioned from the unavailable state to a configuration state.
In a possible implementation manner, the time threshold is a plurality of detection periods, where the detection period is a period in which the vbars detects available resources in a resource pool.
In one possible implementation, the time threshold is two detection periods.
According to the embodiment of the disclosure, the time that the created vBRAS is in an unavailable state can be monitored, and the template configuration resources are released when the time is greater than or equal to the time threshold, so that the resources can be allocated again, and the utilization rate of system resources is improved.
Fig. 12 is a block diagram illustrating a resource allocation apparatus 900 according to an example embodiment. Referring to fig. 12, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, the processor 901 performs the resource allocation method described above by reading machine executable instructions in the machine readable storage medium 902 corresponding to the resource allocation logic.
The resource allocation method according to the embodiment of the disclosure comprises the following steps:
step S11, issuing template configuration resources to the vBRAS in the configuration state, and transferring the state of the vBRAS allocated to the template configuration resources from the configuration state to the unavailable state;
step S12, when detecting that the vBRAS is in the unavailable state, sending tunnel resources to the vBRAS in the unavailable state;
step S13, when it is detected that the time of the vbrs in the unavailable state is greater than or equal to a time threshold, it is determined that the vbrs has not successfully issued the tunnel resource, and then the vbrs is controlled to release the template configuration resource.
In one possible implementation, the method further includes:
step S14, when detecting that there is the released template configuration resource, issuing the released template configuration resource to the vbrs in configuration state.
In one possible implementation, the method further includes:
and step S15, when the vbrs releases the template configuration resource, controlling the state of the vbrs to transition from the unavailable state to a configuration state.
In a possible implementation manner, the time threshold is a plurality of detection periods, where the detection period is a time period for the vbars to detect an available resource in a resource pool.
In one possible implementation, the time threshold is two detection periods.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (11)

1. A resource allocation method is applied to a virtualized broadband remote access server management and orchestration system vBRASSO, and comprises the following steps:
issuing template configuration resources to the vBRAS in the configuration state, and migrating the state of the vBRAS allocated to the template configuration resources from the configuration state to an unavailable state;
when detecting that the vBRAS is in an unavailable state, issuing tunnel resources to the vBRAS in the unavailable state;
when the time that the vBRAS is detected to be in the unavailable state is larger than or equal to a time threshold value, determining that the vBRAS is not successfully issued the tunnel resource, and controlling the vBRAS to release the template configuration resource;
the template configuration resource is a resource formed after an IP address resource pool in a virtual machine resource pool is associated with a template, and the virtual machine resource pool comprises resource information of one or more vBRAS; the tunnel resources comprise resources required for establishing a virtual Ethernet VxLAN tunnel.
2. The method of claim 1, further comprising:
and when the existence of the released template configuration resources is detected, issuing the released template configuration resources to the vBRAS in the configuration state.
3. The method of claim 1, further comprising:
and when the vBRAS releases the template configuration resource, controlling the state of the vBRAS to be transferred from the unavailable state to the configuration state.
4. The method of claim 1, wherein the time threshold is a plurality of detection periods, and wherein the detection period is a time period during which the vbars detects available resources in a resource pool.
5. The method of claim 4, wherein the time threshold is two detection periods.
6. A resource allocation apparatus, wherein the apparatus is applied in a virtualized broadband remote access server management and orchestration system, vbarsso, the apparatus comprising:
the first resource issuing module is used for issuing a template configuration resource to the vBRAS in a configuration state and transferring the state of the vBRAS allocated to the template configuration resource from the configuration state to an unavailable state;
the second resource issuing module is used for issuing tunnel resources to the vBRAS in the unavailable state when the vBRAS is detected to be in the unavailable state;
a resource release module, configured to determine that the vbrs is not successfully issued the tunnel resource when it is detected that the time that the vbrs is in the unavailable state is greater than or equal to a time threshold, and control the vbrs to release the template configuration resource;
the template configuration resource is a resource formed after an IP address resource pool in a virtual machine resource pool is associated with a template, and the virtual machine resource pool comprises resource information of one or more vBRAS; the tunnel resources comprise resources required for establishing a virtual Ethernet VxLAN tunnel.
7. The apparatus of claim 6, further comprising:
and the third resource issuing module is used for issuing the released template configuration resource to the VBRAS in the configuration state when the released template configuration resource is detected to exist.
8. The apparatus of claim 6, further comprising:
and the state transition module is used for controlling the state of the vBRAS to transition from the unavailable state to the configuration state when the vBRAS releases the template configuration resource.
9. The apparatus of claim 6, wherein the time threshold is a plurality of detection periods, and wherein the detection period is a time period for the vBRAS to detect available resources in a resource pool.
10. The apparatus of claim 9, wherein the time threshold is two detection periods.
11. A virtualized broadband remote access server management and orchestration system, vbarsso, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1-5.
CN201710641852.2A 2017-07-31 2017-07-31 Resource allocation method and device Active CN107547445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710641852.2A CN107547445B (en) 2017-07-31 2017-07-31 Resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710641852.2A CN107547445B (en) 2017-07-31 2017-07-31 Resource allocation method and device

Publications (2)

Publication Number Publication Date
CN107547445A CN107547445A (en) 2018-01-05
CN107547445B true CN107547445B (en) 2020-04-03

Family

ID=60971149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710641852.2A Active CN107547445B (en) 2017-07-31 2017-07-31 Resource allocation method and device

Country Status (1)

Country Link
CN (1) CN107547445B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880971B (en) * 2018-05-30 2021-04-27 新华三技术有限公司 Capacity expansion method and device for virtual broadband remote access server vBRAS resource pool

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0986216A3 (en) * 1998-08-04 2002-08-28 Matsushita Electric Industrial Co., Ltd. Tranmission system, bandwidth management apparatus, and bandwidth management method
CN1744531A (en) * 2004-09-02 2006-03-08 中兴通讯股份有限公司 Off-flow monitoring method for accessing server
CN101167307A (en) * 2005-10-10 2008-04-23 中兴通讯股份有限公司 Dynamically self-adaptive distributed resource management system and method
CN101729324A (en) * 2008-10-10 2010-06-09 中兴通讯股份有限公司 Resource allocation method and femtocell configuration server
CN103428734A (en) * 2013-08-02 2013-12-04 杭州华三通信技术有限公司 Method and device for optimizing network resources
CN104461731A (en) * 2014-10-23 2015-03-25 杭州华三通信技术有限公司 Virtual machine resource recycling method and device in dynamic resource expanding
CN106161068A (en) * 2015-04-15 2016-11-23 华为技术有限公司 A kind of recovery prompting to Internet resources and distribution method, and controller
CN106559451A (en) * 2015-09-29 2017-04-05 杭州华三通信技术有限公司 Customer shift method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10469564B2 (en) * 2014-01-21 2019-11-05 International Business Machines Corporation Management of unreturned system pool resources

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0986216A3 (en) * 1998-08-04 2002-08-28 Matsushita Electric Industrial Co., Ltd. Tranmission system, bandwidth management apparatus, and bandwidth management method
CN1744531A (en) * 2004-09-02 2006-03-08 中兴通讯股份有限公司 Off-flow monitoring method for accessing server
CN101167307A (en) * 2005-10-10 2008-04-23 中兴通讯股份有限公司 Dynamically self-adaptive distributed resource management system and method
CN101729324A (en) * 2008-10-10 2010-06-09 中兴通讯股份有限公司 Resource allocation method and femtocell configuration server
CN103428734A (en) * 2013-08-02 2013-12-04 杭州华三通信技术有限公司 Method and device for optimizing network resources
CN104461731A (en) * 2014-10-23 2015-03-25 杭州华三通信技术有限公司 Virtual machine resource recycling method and device in dynamic resource expanding
CN106161068A (en) * 2015-04-15 2016-11-23 华为技术有限公司 A kind of recovery prompting to Internet resources and distribution method, and controller
CN106559451A (en) * 2015-09-29 2017-04-05 杭州华三通信技术有限公司 Customer shift method and device

Also Published As

Publication number Publication date
CN107547445A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US11940965B2 (en) Data migration method and apparatus
JP6466003B2 (en) Method and apparatus for VNF failover
CN104734931B (en) Link establishing method and device between a kind of virtual network function
CN107526659B (en) Method and apparatus for failover
CN107135134B (en) Private network access method and system based on virtual switch and SDN technology
US8693343B2 (en) Relay apparatus, virtual machine system, and relay method
CN114070723A (en) Virtual network configuration method, system and intelligent network card of bare metal server
US10361970B2 (en) Automated instantiation of wireless virtual private networks
CN107809367B (en) Device online method of SDN (software defined network), SDN controller and network device
CN103595801B (en) Cloud computing system and real-time monitoring method for virtual machine in cloud computing system
US10917291B2 (en) RAID configuration
CN107222320A (en) The method and apparatus that Cloud Server cluster sets up High Availabitity connection
CN112019366B (en) Leasing method and device of physical host, cloud platform and readable storage medium
CN111641515A (en) VNF life cycle management method and device
CN110716787A (en) Container address setting method, apparatus, and computer-readable storage medium
WO2020034194A1 (en) Method, device, and system for processing distributed data, and machine readable medium
CN115373799A (en) Cluster management method and device and electronic equipment
CN105471994A (en) Control method and device
CN111092828B (en) Network operating methods, devices, equipment and storage media
CN116095145B (en) Data control method and system of VPC cluster
CN107547445B (en) Resource allocation method and device
CN110753093B (en) Method and device for managing equipment in cloud computing system
US10033803B1 (en) Data volume auto-repair based on volume degradation level
CN118075126A (en) Device management method, device, equipment and storage medium
CN112241293A (en) Application management method, device, equipment and medium of industrial Internet cloud platform

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
GR01 Patent grant
GR01 Patent grant