Method and device for rebuilding virtual network function
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for reconstructing a virtual network function.
Background
In the existing network architecture, the network function and the network device are in a super-strong coupling relationship, and the network function is realized through specially designed and vendor-specific devices. This brings about a number of inconveniences, such as: the increase in performance of these devices is limited by the development of hardware that meets specific/customized requirements while maintaining carrier-grade reliability; for another example, when an operator wants to deploy a new service, newly designed equipment with related dedicated functions must be deployed in advance, which may increase the service deployment cost of the operator. On the other hand, as the performance of the CPU and the memory is rapidly improved, a basic condition is provided for operating a Network Function in a software form on the general-purpose server, and a Network Function Virtualization (NFV) technology is also developed, which aims to operate the Network Function on general-purpose hardware equipment, so that CAPEX can be reduced by deploying in a large range. The virtualization technology enables network functions to be deployed and updated as required, greatly facilitates remote management and maintenance, and can reduce OPEX.
The management architecture of the existing network has changed greatly after the introduction of NFV technology, see in particular fig. 1. FIG. 1 is a diagram of a prior art NFV Management scheduling (NFV-MANO) architecture. The Network Function Virtualization Orchestrator (NFVO) is responsible for lifecycle management of Network services, Functions such as cross-virtual Infrastructure (NFVI) resource scheduling of a virtual framework management entity (VIM), and the Network function Virtualization management entity (VNF Manager, VNFM) is responsible for lifecycle management of VNF instances, each VNF instance assumes an associated VNFM, and the VIM is responsible for controlling and managing computation, storage, and Network resources of the NFVI. The traditional telecommunication Network Management usually adopts a three-layer Management structure including a Network Management System (NMS), an Element Management System (EMS), and Network elements, wherein an interface between the NMS and the EMS is a northbound interface, and an interface between the EMS and the Network elements is a southbound interface. After the network function is virtualized, the traditional network manager is responsible for managing the virtual network function application layer.
The VNF includes a plurality of Virtual Network Function Components (VNFCs), and the VNFCs are all established on virtual containers, and a typical relationship between the VNFCs and the virtual containers is 1: 1. Virtual resources are allocated on the virtual container for use by the VNFC, wherein the virtual resources include virtual computing, storage, and network resources. The lifecycle of the VNF includes processes of instantiating the VNF, terminating an instance of the VNF, scaling the VNF (specifically, scaling in, scaling out, increasing the capacity scale up, and decreasing the capacity scale down), and repairing the VNF. The repair generally refers to a process of restoring the network element and the equipment to normal operation when the network element or the equipment has a fault or seriously degraded performance, and also includes a diagnosis process of a problem in a broad sense, and meanwhile, the automatic repair mode can effectively reduce the cost of operation and maintenance. Fig. 2 is an interaction diagram of VNF repair in the prior art. As shown in fig. 2, after it is determined that VNFC reconfiguration is required, first, service migration is performed to a standby machine, then, VNFCs to be reconfigured are released through a lifecycle contraction VNF (scale in VNF) operation, and then, a new VNFC is established through a lifecycle expansion VNF (scale out VNF) operation, so as to achieve the purpose of repairing a VNF instance. However, in this process, if the entire repair operation is to be completed, the VNF needs to be scaled twice on the interface between the EM and the VNFM, and the corresponding VNFM needs to make two authorization requests to the NFVO, which prolongs the repair time.
Disclosure of Invention
The invention provides a method and a device for rebuilding virtual network functions, aiming at solving the technical problem of shortening the modification time of a VNF.
In order to solve the technical problems, the invention provides the following technical scheme:
a method of rebuilding virtual network functionality, comprising:
the network function virtualization management entity VNFM receives indication information for rebuilding a virtual network function component VNFC instance;
the VNFM requests a virtual architecture management entity VIM to release the virtual resources of the VNFC instances to be rebuilt and allocates the virtual resources to the VNFC instances to be built;
and after the release of the virtual resources of the VNFC instances needing to be rebuilt is finished, the VNFM establishes new VNFC instances by using the virtual resources distributed by the VIM, wherein the new VNFC instances have the same deployment parameters as the VNFC instances needing to be rebuilt, and the new VNFC instances and the standby machines of the VNFC instances needing to be rebuilt form main and standby machines.
Before the VNFM requests the VIM to release the virtual resource of the VNFC instance to be rebuilt and allocate the virtual resource to the newly-built VNFC instance, the method further includes:
the VNFM instructs the network function virtualization VNF instance to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance to be rebuilt.
The VNFM requests the VIM to allocate a virtual resource to the VNFC instance to be established, including:
if a network function virtualization orchestrator NFVO reserves a virtual resource, the VNFM requests the VIM to allocate a required virtual resource in the reserved virtual resource.
Wherein the indication information for rebuilding the VNFC instance is received from the NFVO or the network management EM entity.
Wherein the indication information for rebuilding the VNFC instance is obtained by:
receiving a request message for rebuilding a VNFC instance, wherein the identification information of the VNF instance and the identification information of the VNFC instance to be rebuilt are carried in the VNFC instance rebuilding message; or,
and receiving a request message for repairing the VNF, and obtaining information of the reconstructed VNFC instance according to the request message for repairing the VNF.
Wherein the obtaining of the information of the reconstructed VNFC instance according to the request message of repairing the VNF includes:
the first method is as follows: obtaining information for rebuilding a VNFC instance from the request message for repairing the VNF, where the request message for repairing the VNF includes identification information of the VNF instance and identification information of the VNFC instance to be rebuilt, or the request message for repairing the VNF includes identification information of the VNF instance, representation information of the VNFC instance to be rebuilt, and repair operation information, where the repair operation type is to rebuild the VNFC instance;
the second method comprises the following steps: acquiring alarm information of the VNF instance and/or performance data of the VNF according to identification information of the VNF instance to be repaired in the request message for repairing the VNF, determining a sending fault of a virtual resource or a physical resource of the VNF instance according to the alarm information of the VNF instance and/or the performance data of the VNF, and determining that the VNFC instance needs to be rebuilt;
the third method comprises the following steps: and querying a record of the VNF instance according to the identification information of the VNF instance and the identification information of the VNFC instance in the management information of the repair VNF instance, and determining that the type of the repair operation is to rebuild the VNFC instance.
Wherein, after the VNFM request receives indication information for rebuilding a VNFC instance, the method further comprises:
and the VNFM sends an authorization request message for allowing the VNF instance to be repaired or the VNFC instance to be reconstructed to the NFVO, and after receiving an authorization response message sent by the NFVO for allowing the VNF instance to be repaired or the VNFC instance to be reconstructed, the service of the VNFC instance to be reconstructed is migrated to a standby machine of the VNFC instance to be reconstructed.
Wherein after the VNFM establishes a new VNFC instance using the virtual resources allocated by the VIM, the method further includes:
and the VNFM sends a notification of completion of rebuilding the VNFC instance or confirmation information of completion of rebuilding the VNFC instance to the EM, and triggers the EM to send application layer configuration information to the new VNFC instance, wherein the application layer configuration information is used for enabling the new VNFC instance and the VNFC instance to be rebuilt to be synchronized in a main-standby mode.
An apparatus for reconstructing virtual network functionality, comprising:
the receiving module is used for receiving indication information for rebuilding a Virtual Network Function Component (VNFC) instance;
the request module is used for requesting a virtual architecture management entity VIM to release the virtual resources of the VNFC instances to be rebuilt and allocating the virtual resources to the VNFC instances to be built;
and the establishing module is used for establishing a new VNFC instance by using the virtual resources distributed by the VIM after the release of the virtual resources of the VNFC instance to be rebuilt is finished, wherein the new VNFC instance has the same deployment parameters as the VNFC instance to be rebuilt, and the new VNFC instance and the standby machine of the VNFC instance to be rebuilt form a main standby machine.
Wherein the apparatus further comprises:
the indicating module is configured to instruct the network function virtualization VNF instance to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance to be rebuilt before requesting the VIM to release the virtual resource of the VNFC instance to be rebuilt and allocating the virtual resource to the newly-built VNFC instance.
The VNFM requests the VIM to allocate a virtual resource to the VNFC instance to be established, including:
if a network function virtualization orchestrator NFVO reserves a virtual resource, the VNFM requests the VIM to allocate a required virtual resource in the reserved virtual resource.
Wherein the indication information for rebuilding the VNFC instance is received from the NFVO or the network management EM entity.
Wherein the indication information for rebuilding the VNFC instance is obtained by:
receiving a request message for rebuilding a VNFC instance, wherein the identification information of the VNF instance and the identification information of the VNFC instance to be rebuilt are carried in the VNFC instance rebuilding message; or,
and receiving a request message for repairing the VNF, and obtaining information of the reconstructed VNFC instance according to the request message for repairing the VNF.
Wherein the obtaining of the information of the reconstructed VNFC instance according to the request message of repairing the VNF includes:
the first method is as follows: obtaining information for rebuilding a VNFC instance from the request message for repairing the VNF, where the request message for repairing the VNF includes identification information of the VNF instance and identification information of the VNFC instance to be rebuilt, or the request message for repairing the VNF includes identification information of the VNF instance, representation information of the VNFC instance to be rebuilt, and repair operation information, where the repair operation type is to rebuild the VNFC instance;
the second method comprises the following steps: acquiring alarm information of the VNF instance and/or performance data of the VNF according to identification information of the VNF instance to be repaired in the request message for repairing the VNF, determining a sending fault of a virtual resource or a physical resource of the VNF instance according to the alarm information of the VNF instance and/or the performance data of the VNF, and determining that the VNFC instance needs to be rebuilt;
the third method comprises the following steps: and querying a record of the VNF instance according to the identification information of the VNF instance and the identification information of the VNFC instance in the management information of the repair VNF instance, and determining that the type of the repair operation is to rebuild the VNFC instance.
Wherein the apparatus further comprises:
a first sending module, configured to send, to the NFVO, an authorization request message that allows the VNF instance to be repaired or the VNFC instance to be reconstructed after requesting to receive indication information for reconstructing the VNFC instance;
and the migration module is used for migrating the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance to be rebuilt after receiving an authorization response message which is sent by the NFVO and allows the VNF instance to be repaired or the VNFC instance to be rebuilt.
Wherein the apparatus further comprises:
a second sending module, configured to send, after a new VNFC instance is established using the virtual resources allocated by the VIM, a notification that a VNFC instance is reestablished or confirmation information that the VNFC instance is reestablished, and trigger the EM to send application layer configuration information to the new VNFC instance, where the application layer configuration information is used to perform active-standby synchronization between the new VNFC instance and the VNFC instance to be reestablished.
In the embodiment provided by the invention, the VNFM requests the VIM to release the virtual resources of the VNFC instance to be rebuilt and allocates the virtual resources to the VNFC instance to be built, so that the VNF does not need to be stretched and contracted twice on the interface between the EM and the VNFM, and the VNFM needs to perform authorization request twice on the NFVO, and under the premise that the virtual network function which has a fault or is about to have a fault is recovered to a normal operation state, the repairing time is effectively shortened, and the influence on the service is reduced.
Drawings
FIG. 1 is a diagram of a prior art NFV management scheduling architecture;
FIG. 2 is an interaction diagram of VNF repair in the prior art;
FIG. 3 is a flowchart of an embodiment of a method for reconstructing virtual network functions provided in the present invention;
fig. 4 is an interaction diagram of a method for reconstructing a virtual network function according to an embodiment of the present invention;
fig. 5 is an interaction diagram of a method for reconstructing a virtual network function according to a second embodiment of the present invention;
fig. 6 is an interaction diagram of a method for reconstructing a virtual network function according to a third embodiment of the present invention;
fig. 7 is an interaction diagram of a method for reconstructing a virtual network function according to a fourth embodiment of the present invention; .
Fig. 8 is a structural diagram of an embodiment of an apparatus for reconstructing virtual network functions according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 3 is a flowchart of an embodiment of a method for reconstructing a virtual network function according to the present invention. The method of fig. 3, comprising:
step 301, the VNFM receives indication information for rebuilding an instance of a virtual network function component VNFC;
step 302, the VNFM requests a virtual fabric management entity VIM to release the virtual resources of the VNFC instance to be rebuilt and allocate the virtual resources to the VNFC instance to be built;
step 303, after the release of the virtual resource of the VNFC instance to be reestablished is completed, the VNFM establishes a new VNFC instance by using the virtual resource allocated by the VIM, where the new VNFC instance and the VNFC instance to be reestablished have the same deployment parameter, and the standby machines of the new VNFC instance and the VNFC instance to be reestablished form a main standby machine.
In the embodiment provided by the invention, the VNFM requests the VIM to release the virtual resources of the VNFC instance to be rebuilt and allocates the virtual resources to the VNFC instance to be built, so that the VNF does not need to be stretched and contracted twice on the interface between the EM and the VNFM, and the VNFM needs to perform authorization request twice on the NFVO, and under the premise that the virtual network function which has a fault or is about to have a fault is recovered to a normal operation state, the repairing time is effectively shortened, and the influence on the service is reduced.
Before the VNFM requests the VIM to release the virtual resource of the VNFC instance to be rebuilt and allocate the virtual resource to the newly-built VNFC instance, the method further includes:
the VNFM instructs the network function virtualization VNF instance to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance to be rebuilt.
By migrating the service, the service data is ensured not to be lost, and the normal processing of the service is not influenced.
The VNFM requests the VIM to allocate a virtual resource to the VNFC instance to be established, including: if the NFVO reserves a virtual resource, the VNFM requests the VIM to allocate a required virtual resource in the reserved virtual resource.
When the NFVO reserves the virtual resource, the resource is requested to be allocated on the reserved resource, so that the purpose of fully utilizing the resource is achieved.
Wherein the indication information for rebuilding the VNFC instance is received from the NFVO or the network management EM entity.
Wherein the indication information for rebuilding the VNFC instance is obtained by:
receiving a request message for rebuilding a VNFC instance, wherein the identification information of the VNF instance and the identification information of the VNFC instance to be rebuilt are carried in the VNFC instance rebuilding message; or,
and receiving a request message for repairing the VNF, and obtaining information of the reconstructed VNFC instance according to the request message for repairing the VNF.
Wherein the obtaining of the information of the reconstructed VNFC instance according to the request message of repairing the VNF includes:
the first method is as follows: obtaining information for rebuilding a VNFC instance from the request message for repairing the VNF, where the request message for repairing the VNF includes identification information of the VNF instance and identification information of the VNFC instance to be rebuilt, or the request message for repairing the VNF includes identification information of the VNF instance, representation information of the VNFC instance to be rebuilt, and repair operation information, where the repair operation type is to rebuild the VNFC instance;
the second method comprises the following steps: acquiring alarm information of the VNF instance and/or performance data of the VNF according to identification information of the VNF instance to be repaired in the request message for repairing the VNF, determining a sending fault of a virtual resource or a physical resource of the VNF instance according to the alarm information of the VNF instance and/or the performance data of the VNF, and determining that the VNFC instance needs to be rebuilt;
the third method comprises the following steps: and querying a record of the VNF instance according to the identification information of the VNF instance and the identification information of the VNFC instance in the management information of the repair VNF instance, and determining that the type of the repair operation is to rebuild the VNFC instance.
As can be seen from the above, the information for reconstructing the VNFC instance can be obtained directly or can be inferred from the existing information.
Wherein, after the VNFM request receives indication information for rebuilding a VNFC instance, the method further comprises:
and the VNFM sends an authorization request message for allowing the VNF instance to be repaired or the VNFC instance to be reconstructed to the NFVO, and after receiving an authorization response message sent by the NFVO for allowing the VNF instance to be repaired or the VNFC instance to be reconstructed, the service of the VNFC instance to be reconstructed is migrated to a standby machine of the VNFC instance to be reconstructed.
Of course, after the VNFM establishes a new VNFC instance using the virtual resources allocated by the VIM, the method further includes:
and the VNFM sends a notification of completion of rebuilding the VNFC instance or confirmation information of completion of rebuilding the VNFC instance to the EM, and triggers the EM to send application layer configuration information to the new VNFC instance, wherein the application layer configuration information is used for enabling the new VNFC instance and the VNFC instance to be rebuilt to be synchronized in a main-standby mode.
Through the operation, the realization of the main-standby synchronization can be effectively ensured, and the normal processing of subsequent services is ensured.
The method provided by the present invention is further illustrated below:
example one
Fig. 4 is an interaction diagram of a method for reconstructing a virtual network function according to an embodiment of the present invention. In the embodiment shown in fig. 4, the EM triggers the VNFM to reconstruct the VNFC example, which is specifically described as follows:
1) the EM sends a request message for rebuilding the VNFC instance to the VNFM, wherein the request message for rebuilding the VNFC instance carries identification information of the VNF instance and identification information Id of the VNFC instance needing to be rebuilt;
2) sending, by the VNFM, an authorization request message that allows the VNFC instance to be reconstructed to the NFVO, where the authorization request message carries information of virtual resources that should be added, that is, information of virtual resources that need to be used to establish a new VNFC instance, and information of virtual resources that should be deleted, that is, information of virtual resources that correspond to the VNFC instance that needs to be reconstructed that should be released;
3) the VNFM receives an authorization response message which is sent by the NFVO and allows the VNFC instance to be rebuilt;
4) the VNFM instructs the VNF to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance, and sends a request for releasing the virtual resource corresponding to the VNFC instance to be rebuilt to the VIM;
5) after receiving the successful resource release response of the VIM, the VNFM sends a request for allocating virtual resources for establishing a new VNFC instance to the VIM;
6) and the VNFM establishes a new VNFC instance on the allocated virtual resources according to the VNFD of the VNF instance, wherein the deployment parameters of the new VNFC instance are the same as those of the VNFC instance to be rebuilt, so as to ensure that the standby machine of the original VNFC instance to be rebuilt and the new VNFC instance form a main standby machine again.
7) The VNFM sends a response message for rebuilding the VNFC instance to the EM;
8) and the EM performs application layer parameter configuration on the reconstructed VNFC, so that the main and standby of the reconstructed VNFC instances are synchronized.
Example two
Fig. 5 is an interaction diagram of a method for reconstructing a virtual network function according to a second embodiment of the present invention. In the embodiment shown in fig. 5, the repairing of the VNF is triggered by EM and the rebuilding of the VNFC instance by VNFM; the concrete description is as follows:
1) the EM sends a request message for repairing the VNF instance to the VNFM, wherein the request message for repairing the VNF instance carries the VNF instance Id and the Id of the VNFC needing to be repaired;
2) after receiving a request message for repairing a VNF instance, the VNFM judges that the reason for generating an alarm or causing serious performance reduction is virtual resource or physical resource failure according to VNF alarm information and/or performance data, and determines that the VNFC instance needs to be rebuilt;
3) sending, by the VNFM, an authorization request message that allows repairing of the VNF instance to the NFVO, where information of virtual resources that should be added in the authorization request message, that is, information of virtual resources that need to be used to establish a new VNFC instance, and information of virtual resources that should be deleted, that is, information of virtual resources that correspond to a VNFC instance that needs to be rebuilt that should be released;
4) the VNFM receives an authorization response message which is sent by the NFVO and allows the VNF instance to be repaired;
5) the VNFM informs the VNF of migrating the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance, and sends a request for releasing the virtual resource corresponding to the VNFC instance to be rebuilt to the VIM;
6) after receiving the successful resource release response of the VIM, the VNFM sends a request for allocating virtual resources for establishing a new VNFC instance to the VIM;
7) the VNFM establishes a new VNFC instance on the allocated virtual resources according to the VNFD of the VNF instance, and the deployment parameters of the new VNFC instance are the same as those of the VNFC instance to be rebuilt, so that the standby machine of the original VNFC instance to be rebuilt and the new VNFC instance are guaranteed to form a main standby machine again;
8) the VNFM sends a response message for repairing the VNFC to the EM;
9) and the EM performs application layer parameter configuration on the reconstructed VNFC, so that the main and standby of the reconstructed VNFC instances are synchronized.
EXAMPLE III
Fig. 6 is an interaction diagram of a method for reconstructing a virtual network function according to a third embodiment of the present invention. In the embodiment shown in fig. 6, the NFVO triggers the rebuilding of the VNFC instance, as shown in fig. 6:
1) the NFVO sends a request message for repairing the VNF instance to the VNFM, wherein the request message for repairing the VNF instance carries the VNF instance Id, and the repairing operation types are the rebuilding VNFC and the Id of the VNFC needing to be rebuilt;
2) after receiving a request message for repairing a VNF instance, the VNFM sends an authorization request message that allows the VNF instance to be repaired to the NFVO, where the authorization request message carries information indicating that a lifecycle operation for rebuilding the VNFC instance is a repairing VNF operation, and may also carry information of virtual resources that should be added, that is, information of virtual resources that need to be used for establishing a new VNFC instance, and information of virtual resources that should be deleted, that is, information of virtual resources corresponding to the VNFC instance that needs to be rebuilt that should be released; (ii) a
3) The VNFM receives an authorization response message which is sent by the NFVO and allows the VNF instance to be repaired, and the response message carries the Id of the reserved resource;
4) the VNFM instructs the VNF to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance, and sends a request for releasing the virtual resource corresponding to the VNFC instance to be rebuilt to the VIM;
5) after receiving the response message of successful resource release of the VIM, the VNFM sends a request message for allocating the virtual resources for establishing the new VNFC instance to the VIM, wherein the request message of the virtual resources carries the Id of the reserved resources, so that the VIM allocates the required virtual resources in the reserved resources.
6) The VNFM establishes a new VNFC instance on the allocated virtual resources according to the VNFD of the VNF instance, wherein the deployment parameters of the new VNFC instance are the same as those of the VNFC instance to be rebuilt, so as to ensure that a standby machine of the original VNFC instance to be rebuilt and the new VNFC instance form a main standby machine again;
7) the VNFM sends a notification message of completion of reconstruction of the VNFC instance to the EM;
8) and the EM performs application layer parameter configuration on the reconstructed VNFC, so that the main and standby of the reconstructed VNFC instances are synchronized.
Example four
Fig. 7 is an interaction diagram of a method for reconstructing a virtual network function according to a fourth embodiment of the present invention. In the embodiment shown in fig. 7, the re-establishment of the VNFC instance is triggered by the VNFM, as shown in fig. 5,
1) the VNFD of the VNF instance comprises an operation type for repairing the VNFC and required resource information, and the operation type comprises a rebuilt VNFC instance;
2) the VNFM judges that the reason of generating alarm or seriously reducing the performance is virtual resource or physical resource fault according to the VNF alarm information and/or performance data, and determines the type of repair operation as rebuilding the VNFC instance by inquiring the VNFR of the VNF instance;
3) the VNFM sends an authorization request message for allowing the VNF instance to be repaired to the NFVO, wherein the request message carries information of virtual resources to be added, namely information of virtual resources required to be used for establishing a new VNFC instance, and information of virtual resources to be deleted, namely information of virtual resources corresponding to the VNFC instance to be rebuilt and to be released; (ii) a
4) The method comprises the steps that a VNFM receives an authorization response message which is sent by a NFVO and allows repair of a VNF instance, wherein the authorization response message carries an Id of reserved resources;
5) the VNFM instructs the VNF to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance, and sends a request for releasing the virtual resource corresponding to the VNFC instance to be rebuilt to the VIM;
6) after receiving the successful resource release response of the VIM, the VNFM sends a request message for allocating the virtual resources for establishing the new VNFC instance to the VIM, wherein the request message of the virtual resources carries the Id of the reserved resources, so that the VIM allocates the required virtual resources in the reserved resources.
7) The VNFM establishes a new VNFC instance on the allocated virtual resources according to the VNFD of the VNF instance, and the deployment parameters of the new VNFC instance are the same as those of the VNFC instance to be rebuilt, so that the standby machine of the original VNFC instance to be rebuilt and the new VNFC instance are guaranteed to form a main standby machine again;
8) the VNFM sends a notification message of completion of reconstruction of the VNFC instance to the EM;
9) and the EM performs application layer parameter configuration on the reconstructed VNFC, so that the main and standby of the reconstructed VNFC instances are synchronized.
Fig. 8 is a block diagram of an apparatus for reconstructing a virtual network function according to the present invention. The apparatus shown in fig. 8 comprises:
a receiving module 801, configured to receive indication information for rebuilding an instance of a virtual network function component VNFC;
a request module 802, configured to request a virtual infrastructure management entity VIM to release the virtual resource of the VNFC instance to be rebuilt and allocate the virtual resource to the VNFC instance to be built;
the establishing module 803 is configured to, after the release of the virtual resource of the VNFC instance to be reestablished is completed, establish a new VNFC instance using the virtual resource allocated by the VIM, where deployment parameters of the new VNFC instance and the VNFC instance to be reestablished are the same, and the standby machines of the new VNFC instance and the VNFC instance to be reestablished form a master and a standby machine.
Wherein the apparatus further comprises:
the indicating module is configured to instruct the network function virtualization VNF instance to migrate the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance to be rebuilt before requesting the VIM to release the virtual resource of the VNFC instance to be rebuilt and allocating the virtual resource to the newly-built VNFC instance.
The VNFM requests the VIM to allocate a virtual resource to the VNFC instance to be established, including: if a network function virtualization orchestrator NFVO reserves a virtual resource, the VNFM requests the VIM to allocate a required virtual resource in the reserved virtual resource.
Wherein the indication information for rebuilding the VNFC instance is received from the NFVO or the network management EM entity.
Wherein the indication information for rebuilding the VNFC instance is obtained by:
receiving a request message for rebuilding a VNFC instance, wherein the identification information of the VNF instance and the identification information of the VNFC instance to be rebuilt are carried in the VNFC instance rebuilding message; or,
and receiving a request message for repairing the VNF, and obtaining information of the reconstructed VNFC instance according to the request message for repairing the VNF.
Wherein the obtaining of the information of the reconstructed VNFC instance according to the request message of repairing the VNF includes:
the first method is as follows: obtaining information for rebuilding a VNFC instance from the request message for repairing the VNF, where the request message for repairing the VNF includes identification information of the VNF instance and identification information of the VNFC instance to be rebuilt, or the request message for repairing the VNF includes identification information of the VNF instance, representation information of the VNFC instance to be rebuilt, and repair operation information, where the repair operation type is to rebuild the VNFC instance;
the second method comprises the following steps: acquiring alarm information of the VNF instance and/or performance data of the VNF according to identification information of the VNF instance to be repaired in the request message for repairing the VNF, determining a sending fault of a virtual resource or a physical resource of the VNF instance according to the alarm information of the VNF instance and/or the performance data of the VNF, and determining that the VNFC instance needs to be rebuilt;
the third method comprises the following steps: and querying a record of the VNF instance according to the identification information of the VNF instance and the identification information of the VNFC instance in the management information of the repair VNF instance, and determining that the type of the repair operation is to rebuild the VNFC instance.
Wherein the apparatus further comprises:
a first sending module, configured to send, to the NFVO, an authorization request message that allows the VNF instance to be repaired or the VNFC instance to be reconstructed after requesting to receive indication information for reconstructing the VNFC instance;
and the migration module is used for migrating the service of the VNFC instance to be rebuilt to a standby machine of the VNFC instance to be rebuilt after receiving an authorization response message which is sent by the NFVO and allows the VNF instance to be repaired or the VNFC instance to be rebuilt.
Wherein the apparatus further comprises:
a second sending module, configured to send, after a new VNFC instance is established using the virtual resources allocated by the VIM, a notification that a VNFC instance is reestablished or confirmation information that the VNFC instance is reestablished, and trigger the EM to send application layer configuration information to the new VNFC instance, where the application layer configuration information is used to perform active-standby synchronization between the new VNFC instance and the VNFC instance to be reestablished.
In the device embodiment provided by the invention, the VNFM requests the VIM to release the virtual resources of the VNFC instance to be rebuilt and allocates the virtual resources to the VNFC instance to be built, so that the VNF expansion operation is not required to be performed twice on the interface between the EM and the VNFM, and the VNFM requires the authorization request operation to be performed twice on the NFVO, and on the premise that the virtual network function which has failed or is about to fail is recovered to the normal operation state, the repair time is effectively shortened, and the influence on the service is reduced.
It will be understood by those of ordinary skill in the art that all or part of the steps of the above embodiments may be implemented using a computer program flow, which may be stored in a computer readable storage medium and executed on a corresponding hardware platform (e.g., system, apparatus, device, etc.), and when executed, includes one or a combination of the steps of the method embodiments.
Alternatively, all or part of the steps of the above embodiments may be implemented by using an integrated circuit, and the steps may be respectively manufactured as an integrated circuit module, or a plurality of the blocks or steps may be manufactured as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The devices/functional modules/functional units in the above embodiments may be implemented by general-purpose computing devices, and they may be centralized on a single computing device or distributed on a network formed by a plurality of computing devices.
Each device/function module/function unit in the above embodiments may be implemented in the form of a software function module and may be stored in a computer-readable storage medium when being sold or used as a separate product. The computer readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.