CN111404715B - Network service instantiation method and device, electronic equipment and storage medium - Google Patents

Network service instantiation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111404715B
CN111404715B CN201910002336.4A CN201910002336A CN111404715B CN 111404715 B CN111404715 B CN 111404715B CN 201910002336 A CN201910002336 A CN 201910002336A CN 111404715 B CN111404715 B CN 111404715B
Authority
CN
China
Prior art keywords
virtual resource
network service
target
target virtual
resource
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
CN201910002336.4A
Other languages
Chinese (zh)
Other versions
CN111404715A (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910002336.4A priority Critical patent/CN111404715B/en
Publication of CN111404715A publication Critical patent/CN111404715A/en
Application granted granted Critical
Publication of CN111404715B publication Critical patent/CN111404715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • 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

Abstract

The invention discloses a network service instantiation method and device, electronic equipment and a storage medium, which are used for solving the problem of network resource waste caused by a network service instantiation failure processing method in the prior art. The method comprises the following steps: if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link; judging whether the target virtual resource is a necessary virtual resource; and if not, performing network service instantiation on the next virtual resource.

Description

Network service instantiation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of network management technologies, and in particular, to a method and an apparatus for instantiating a network service, an electronic device, and a storage medium.
Background
Network Function Virtualization (NFV) Network services describe the relationship between virtual Network elements (VNFs), between VNFs and possible physical Network elements (PNFs), and between VNFs, PNFs and virtual links. The network service instantiation is to create virtual resources of all VNFs, virtual links, and the like included in the network service, and establish a connection relationship between a virtual port of a VNF and a virtual link, thereby generating an instance of the network service.
Currently, when network service instantiation is performed, the determination of whether network service instantiation is successful is determined based on whether virtual resources, such as all VNFs and virtual links, included in the network service are successfully created. In the instantiation process, once the VNF or the virtual link is failed to be created due to some reason, for example, resource limitation, VNF packet error, data error, and the like, the instantiation of the entire network service may be failed.
Because the number of VNF instances and virtual link instances included in a network service may be relatively large, if a method for determining whether instantiation of a current network service is successful is adopted, the probability of instantiation failure is relatively high, and actually, some optional VNFs and virtual links may exist in the network service, and the basic use of the entire network service is not affected by the creation failure of the VNFs and virtual links. If the network service instantiation is also determined to fail in this case, and thus the rollback of the network service instantiation operation is caused, the use of virtual layer resources and the network maintenance efficiency will be greatly affected.
Disclosure of Invention
The embodiment of the invention provides a network service instantiation method and device, electronic equipment and a storage medium, which are used for solving the problem of network resource waste caused by a network service instantiation failure processing method in the prior art.
The embodiment of the invention provides a network service instantiation method, which comprises the following steps:
if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link;
judging whether the target virtual resource is a necessary virtual resource;
and if not, performing network service instantiation on the next virtual resource.
Further, if the target virtual resource is a VNF or a virtual link, and if the target virtual resource is not an optional virtual resource, before instantiating the network service to the next virtual resource, the method further includes:
judging whether the target virtual resource is a condition-bound virtual resource;
if not, the subsequent steps are carried out.
Further, if the target virtual resource is a conditionally mandatory virtual resource, the method further comprises:
and judging whether a successful creation event of the virtual resource associated with the target virtual resource exists or not, and if so, instantiating the network service for the next virtual resource of the target virtual resource.
Further, if the target virtual resource includes a VNF and a virtual link, and if the target virtual resource is not a mandatory virtual resource, before instantiating a network service for a next virtual resource of the target virtual resource, the method further includes:
judging whether the target virtual resources contain conditionally mandatory virtual resources or not;
if not, the subsequent steps are carried out.
Further, if the target virtual network resource includes a conditionally mandatory virtual resource, the method further includes:
aiming at the conditionally mandatory virtual resources in the target virtual network resources, judging whether a virtual resource creation success event associated with the conditionally mandatory virtual resources exists;
and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
Further, after instantiating the web service for the next virtual resource of the target virtual resource, the method further comprises:
and recording and reporting a target virtual resource corresponding to the creation failure event.
The embodiment of the invention provides a network service instantiation device, which comprises:
a determining module, configured to determine, if a creation failure event occurs in an instantiation process of a network service, a target virtual resource corresponding to the creation failure event, where the target virtual resource includes at least one of a virtual network element VNF and a virtual link;
the judging module is used for judging whether the target virtual resource is a necessary virtual resource;
and the instantiation module is used for instantiating the network service for the next virtual resource if the target virtual resource is not the optional virtual resource.
The embodiment of the invention provides electronic equipment, which comprises a memory and a processor;
the processor is used for reading the program in the memory and executing the following processes: if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link; judging whether the target virtual resource is a necessary virtual resource; and if not, performing network service instantiation on the next virtual resource.
Further, the processor is configured to, if the target virtual resource is a VNF or a virtual link, determine whether the target virtual resource is a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource if the target virtual resource is not the mandatory virtual resource; if not, the subsequent steps are carried out.
Further, the processor is configured to determine whether a successful creation event of a virtual resource associated with the target virtual resource exists if the target virtual resource is a conditionally mandatory virtual resource, and if so, instantiate a network service for a next virtual resource of the target virtual resource.
Further, the processor is configured to, if the target virtual resource includes a VNF and a virtual link, if the target virtual resource is not a mandatory virtual resource, determine whether the target virtual resource includes a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource of the target virtual resource; if not, the subsequent steps are carried out.
Further, the processor is configured to, if the target virtual network resource includes a conditionally mandatory virtual resource, determine, for the conditionally mandatory virtual resource in the target virtual network resource, whether a creation success event of a virtual resource associated with the conditionally mandatory virtual resource exists; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
Further, the processor is configured to record and report a target virtual resource corresponding to a creation failure event after instantiating a network service to a next virtual resource of the target virtual resource.
An embodiment of the present invention provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the steps of any of the methods described above.
An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, the program causes the electronic device to execute the steps of any one of the above methods.
The embodiment of the invention provides a network service instantiation method, a network service instantiation device, electronic equipment and a storage medium, wherein the method comprises the following steps: if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link; judging whether the target virtual resource is a necessary virtual resource; and if not, performing network service instantiation on the next virtual resource. In the embodiment of the invention, if the target virtual resource corresponding to the creation failure event occurring in the network service instantiation process is not the optional virtual resource, the network service instantiation is continuously executed, and the network service instantiation operation rollback caused by the failure of the whole network service instantiation due to the instantiation failure of one virtual resource can be avoided, so that the waste of network virtual layer resources is reduced, and the network maintenance efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings may be obtained based on these drawings without creative efforts.
Fig. 1 is a process diagram of a network service instantiation method according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram illustrating a specific process of a network service instantiation method according to an embodiment of the present invention;
fig. 3 is a process diagram of a network service instantiation method according to embodiment 3 of the present invention;
fig. 4 is a schematic structural diagram of a network service instantiation apparatus according to an embodiment of the present invention;
fig. 5 is an electronic device according to embodiment 5 of the present invention;
fig. 6 is an electronic device according to embodiment 6 of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic process diagram of a network service instantiation method according to an embodiment of the present invention, where the process includes the following steps:
s101: and if a creation failure event occurs in the network service instantiation process, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link.
In the embodiment of the present invention, a processing method when a creation failure event occurs in a network service instantiation is determined according to a selection type of a virtual resource, for example, the type of the virtual resource is set as a candidate virtual resource, a conditional virtual resource is necessary, and the like, by setting the selection type of the virtual resource in advance for a virtual resource such as a VNF and a virtual link.
When network service instantiation is performed, whether a creation failure event occurs in the network service instantiation process is monitored, if the creation failure event occurs, a target virtual resource corresponding to the creation failure event is determined, since there are various creation failure events occurring in network service instantiation, such as VNF instance creation failure, virtual link instance creation failure, or connection creation failure between VNF and virtual link, the target virtual resources corresponding to different creation failure events are different, and specific corresponding target virtual resources may include VNF, virtual link, or both VNF and virtual link.
Specifically, if the creation failure event is a VNF instance creation failure, the corresponding target virtual resource is a VNF; if the creation failure event is the creation failure of the virtual link instance, the corresponding target virtual resource is a virtual link; and if the creation failure event is the failure of the connection creation of the VNF and the virtual link, the corresponding target virtual resource is the VNF and the virtual link.
S102: and judging whether the target virtual resource is a necessary virtual resource.
Network service instantiation is based on a network service description file (NSD) that an operator generates when designing a network service. In order to determine the selection type of the target virtual resource, in the design process, the network service description file NSD identifies, for each VNF, virtual link, connection between the VNF and the virtual link, identification information of a mandatory virtual resource, an optional virtual resource, and a conditionally mandatory virtual resource, respectively. In the embodiment of the present invention, generally, a virtual resource that must be successfully created in the whole network service instantiation process is identified as a mandatory virtual resource, a virtual resource that can be ignored in the whole network service instantiation process is identified as a selectable virtual resource, and a virtual resource that does not affect the whole network service instantiation process when at least one virtual resource is successfully created is identified as a conditionally mandatory virtual resource, such as a Pool-type virtual network element.
After determining the target virtual resource corresponding to the creation failure event, determining whether the target virtual resource is an optional virtual resource according to the identification information of the selection type of each virtual resource in the network service description file.
S103: and if not, performing network service instantiation on the next virtual resource.
If the target virtual resource is not the optional virtual resource, which indicates that the creation failure of the target virtual resource does not affect the instantiation of the whole network service, the representative can skip the target virtual resource and perform the instantiation of the network service for the next virtual resource of the target virtual resource. And if the target virtual resource is a mandatory virtual resource or the target virtual resource contains the mandatory virtual resource, it indicates that the failure of creating the target virtual resource may cause the failure of the entire network servitization.
In the embodiment of the invention, if the target virtual resource corresponding to the creation failure event occurring in the network service instantiation process is not the optional virtual resource, the network service instantiation is continuously executed, so that the failure of the whole network service instantiation caused by the instantiation failure of the virtual resource at one time can not cause the rollback of the network service instantiation operation, the waste of network virtual layer resources is reduced, and the network maintenance efficiency is improved.
Example 2:
in order to ensure that network service instantiation is performed normally, on the basis of the above embodiment, in an embodiment of the present invention, if the target virtual resource is a VNF or a virtual link, and if the target virtual resource is not an optional virtual resource, before performing network service instantiation on a next virtual resource, the method further includes:
judging whether the target virtual resource is a conditionally mandatory virtual resource;
if not, carrying out the subsequent steps;
if so, judging whether a successful creation event of the virtual resource associated with the target virtual resource exists, and if so, instantiating the network service for the next virtual resource.
Because multiple creation failure events occur in the network service instantiation process, target virtual resources corresponding to each creation failure event are also different, and the main existing creation failure events include a VNF instance creation failure event, a virtual link instance creation failure event, and a VNF and virtual link connection creation failure event, the corresponding target virtual resources can be determined according to the types of the creation failure events. If a failure event is created for the VNF instance and a failure event is created for the virtual link instance, the target virtual resource corresponding to the creation failure event is the VNF or the virtual link, namely only one virtual resource is contained; if a failure event is created for the connection of the VNF and the virtual link, the target virtual resources corresponding to the creation failure event are the VNF and the virtual link, namely, the target virtual resources comprise two virtual resources.
In the embodiment of the present invention, if the target virtual resource corresponding to the creation failure event is one of a VNF or a virtual link, in order to ensure success of network service instantiation, after determining that the target virtual resource is not a mandatory virtual resource, according to the identification information of the selection type of each virtual resource in the network service description file, it is determined that the target virtual resource is not a conditionally mandatory virtual resource, and if the target virtual resource is not a conditionally mandatory virtual resource, the target virtual resource may be skipped on behalf, and network service instantiation is performed on a next virtual resource of the target virtual resource.
If the target virtual resource is a conditionally mandatory virtual resource, in order to determine whether a creation failure event corresponding to the target virtual resource will cause failure of instantiation of the entire network service, it is queried for the target virtual resource whether a creation success event of a virtual resource associated with the target virtual resource exists in a process of network resource instantiation already performed. Specifically, the associated virtual resource of each virtual resource is preset and stored in the network service description file, for example, the associated virtual resource of each virtual resource may be a virtual resource of the same type as the virtual resource, such as a Pool type virtual network element.
For example, if a creation failure event occurring in the network service instantiation process is a VNF instance creation failure event, the target virtual resource corresponding to the creation failure event is a VNF. And under the condition that the VNF does not select the virtual resource, judging whether the VNF is the conditional virtual resource which is necessary to select, if not, considering that the VNF instance is failed to be created and does not influence the process of the instantiation of the whole network service, and at the moment, performing network instantiation operation on the next virtual resource of the VNF. And if the VNF is a conditionally mandatory virtual resource, determining, according to a record in the network service description file, another virtual resource associated with the target virtual resource, and in order to ensure success of instantiation of the network service, in the entire completed process of instantiation of the network service, searching whether a successful creation event of the virtual resource associated with the VNF exists, if so, skipping the VNF, and performing instantiation of the network service for a next virtual resource of the VNF.
In the embodiment of the invention, whether to continue executing the network service instantiation is determined according to whether the target virtual resource is the conditionally mandatory virtual resource, so that the success of the network service instantiation is ensured.
Example 3:
in order to ensure normal operation of network service instantiation, on the basis of the foregoing embodiments, in an embodiment of the present invention, if the target virtual resource includes a VNF and a virtual link, and if the target virtual resource is not an optional virtual resource, before performing network service instantiation on a next virtual resource, the method further includes:
judging whether the target virtual resources contain conditionally mandatory virtual resources or not;
if not, carrying out the subsequent steps;
if yes, aiming at the condition optional virtual resource in the target virtual network resource, judging whether a virtual resource creation success event associated with the condition optional virtual resource exists; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
It can be known in the foregoing embodiment 2 that the target virtual resource may also be two virtual resources, namely a VNF and a virtual link, in this case, if the target virtual resource does not include the optional virtual resource, in order to ensure success of instantiation of the network service, it is necessary to determine whether the target virtual resource includes the optional virtual resource. Whether the target virtual resource contains the conditionally candidate virtual resource can be determined according to the identification information of the selection type of each virtual resource in the network service description file, and if the target virtual resource does not contain the conditionally candidate virtual resource, that is, neither the VNF nor the virtual link is the conditionally candidate virtual resource, it indicates that the creation failure event corresponding to the target virtual resource does not affect the whole network service instantiation process, and the representative can skip the connection between the VNF and the virtual link and perform network service instantiation for the next virtual resource.
If the target virtual resource includes the conditionally candidate virtual resource, that is, one or both of the VNF and the virtual link are conditionally candidate virtual resources, in order to determine whether the creation failure event corresponding to the target virtual resource will cause failure in instantiating the entire network resource, it is necessary to determine whether a creation success event of the virtual resource associated with the conditionally candidate virtual resource exists according to the completed network service instantiation operation for the target virtual resource. Because each virtual resource and the virtual resource associated with the virtual resource are recorded in the network service description file, the virtual resource associated with each conditionally mandatory virtual resource in the target virtual resource is determined at this time. In the process of the completed network service instantiation, the creation success event of the virtual resource associated with the conditional mandatory virtual resource is searched, and if the creation success event can be found, the network service instantiation can be carried out aiming at the next virtual resource of the target virtual resource.
For example, if the creation failure event occurring in the network service instantiation process is a VNF and virtual link connection creation failure event, the target virtual resource is a VNF and a virtual link. And when the VNF and the virtual link are not the optional virtual resources, judging whether the VNF and the virtual link contain the optional virtual resources, and if not, performing network service instantiation on the next virtual resource connected with the VNF and the virtual link. If one of the VNF and the virtual link is a conditionally mandatory virtual resource, for example, the virtual link is a conditionally mandatory virtual resource, determining other virtual resources associated with the virtual link according to the network service description file, and then determining whether a creation success event of the conditionally mandatory virtual resource, that is, the virtual link resource, exists in the process of completed network service instantiation, and if so, continuing network service instantiation operation, that is, performing network service instantiation on the next virtual resource connected to the VNF and the virtual link.
If the target virtual resource is a conditionally candidate virtual resource, that is, both the VNF and the virtual link are conditionally candidate virtual resources, it is determined whether there is a successful creation event of the virtual resource associated with the conditionally candidate virtual resource for each conditionally candidate virtual resource, that is, for the VNF and for the virtual link, respectively, and the network service instantiation operation is continuously executed when there is a successful creation event of the virtual resource associated with the conditionally candidate virtual resource for both the VNF and for the virtual link. If the result of the judgment of any one is negative, for example, when the creation success event of the virtual resource associated with the VNF does not exist, the execution of the network service instantiation operation is stopped.
In the embodiment of the invention, if the target virtual resources are VNFs and virtual links, the successful creation of the virtual resources based on the association of the target virtual resources is judged by judging whether the target virtual resources contain the virtual resources with the optional condition and judging whether the target virtual resources containing the virtual resources with the optional condition have the successful creation event of the virtual resources, so that the successful implementation of the network service instantiation is ensured.
The above embodiments are described with reference to fig. 2, and as shown in fig. 3, the method includes the following steps:
s301: in the design process of the network service description file, the selection type of each virtual resource is preset.
Specifically, in the process of designing the network service description file, the operator may mark identification information of a respective virtual resource selection type for each virtual resource, such as a mandatory virtual resource, a selectable virtual resource, and a conditional mandatory virtual resource.
S302: and carrying out network service instantiation operation, and detecting whether a creation failure event exists in the network service instantiation process.
The network Management system such as OSS/BSS sends the network service description file to a network function virtualization Management platform (MANO), and the MANO executes network service instantiation operation. Specifically, the creation failure event may include: a VNF instance creation failure event, a virtual link instance creation failure event, a VNF and virtual link connection creation failure event. And aiming at the creation failure event, determining a target virtual resource corresponding to the creation event.
S303: for each target virtual resource, a selection type of the target virtual resource is determined.
If the target virtual resource is a VNF or a virtual link, judging whether the target virtual resource is a necessary virtual resource; if not, judging whether the target virtual resource is a conditionally mandatory virtual resource; if so, judging whether a creation success event of the virtual resource associated with the target virtual resource exists, and if so, instantiating the network service for the next virtual resource of the target virtual resource.
If the target virtual resource is a VNF and a virtual link, judging whether the target virtual resource contains a necessary virtual resource; if not, judging whether the target virtual resource contains the conditionally mandatory virtual resource; if yes, judging whether a virtual resource creation success event related to the conditionally mandatory virtual resource exists or not aiming at the conditionally mandatory virtual resource in the target virtual network resource; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the VNF and the next virtual resource connected with the virtual link.
S304: and while continuing to execute the instantiation of the network service, recording the target virtual resource corresponding to the creation failure event, and reporting the target virtual resource to the network management system.
The specific processes of the above steps are described in the above embodiments, and will not be described again in the embodiments of the present invention.
Example 4:
based on the same technical concept, the embodiment of the invention provides a network service instantiation device. As shown in fig. 4, an apparatus provided in an embodiment of the present invention includes:
a determining module 401, configured to determine, if a creation failure event occurs in a network service instantiation process, a target virtual resource corresponding to the creation failure event, where the target virtual resource includes at least one of a virtual network element VNF and a virtual link;
a first determining module 402, configured to determine whether the target virtual resource is a mandatory virtual resource;
an instantiation module 403, configured to instantiate a web service for the next virtual resource if the target virtual resource is not the mandatory virtual resource.
Further, the apparatus further includes a second determining module 404, configured to determine whether the target virtual resource is a conditionally mandatory virtual resource; and if not, performing network service instantiation on the next virtual resource of the target virtual resource.
Further, the second determining module 404 is configured to determine whether a successful creation event of a virtual resource associated with the target virtual resource exists, and if so, instantiate a network service for a next virtual resource of the target virtual resource.
Further, the apparatus further includes a third determining module 405, configured to determine whether the target virtual resource includes a conditionally mandatory virtual resource; and if not, performing network service instantiation on the next virtual resource.
Further, the third determining module 405 is configured to determine, for a conditionally candidate virtual resource in the target virtual network resource, whether a creation success event of a virtual resource associated with the conditionally candidate virtual resource exists; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
Further, the apparatus further includes a reporting module 406, configured to record and report a target virtual resource corresponding to the creation failure event.
Example 5:
on the basis of the above embodiments, the embodiment of the present invention further provides an electronic device 500, as shown in fig. 5, including a memory 501 and a processor 502;
the processor 502 is configured to read the program in the memory 501, and execute the following processes:
if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link;
judging whether the target virtual resource is a necessary virtual resource;
and if not, performing network service instantiation on the next virtual resource.
In FIG. 5, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented in particular by processor 502, and various circuits of memory, represented by memory 501, linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein.
Alternatively, the processor 502 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a CPLD (Complex Programmable Logic Device).
The processor is configured to determine whether the target virtual resource is a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource if the target virtual resource is a VNF or a virtual link and if the target virtual resource is not the conditionally mandatory virtual resource; if not, the subsequent steps are carried out.
The processor is used for judging whether a successful creation event of the virtual resource related to the target virtual resource exists or not if the target virtual resource is a condition-mandatory virtual resource, and if so, instantiating a network service for the next virtual resource of the target virtual resource.
The processor is configured to, if the target virtual resource includes a VNF and a virtual link, determine whether the target virtual resource includes a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource of the target virtual resource if the target virtual resource is not the mandatory virtual resource; if not, the subsequent steps are carried out.
The processor is used for judging whether a virtual resource creation success event associated with the conditionally mandatory virtual resource exists or not aiming at the conditionally mandatory virtual resource in the target virtual network resource if the conditionally mandatory virtual resource is contained in the target virtual network resource; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
And the processor is used for recording and reporting the target virtual resource corresponding to the creation failure event after the network service instantiation is carried out on the next virtual resource of the target virtual resource.
Example 6:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device 600, as shown in fig. 6, including: the system comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete mutual communication through the communication bus 604;
the memory 603 has stored therein a computer program which, when executed by the processor 601, causes the processor 601 to perform the steps of:
if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link;
judging whether the target virtual resource is a necessary virtual resource;
and if not, performing network service instantiation on the next virtual resource.
Further, the processor is configured to, if the target virtual resource is a VNF or a virtual link, determine whether the target virtual resource is a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource if the target virtual resource is not the mandatory virtual resource; if not, the subsequent steps are carried out.
Further, the processor is configured to determine whether a successful creation event of a virtual resource associated with the target virtual resource exists if the target virtual resource is a conditionally mandatory virtual resource, and if so, instantiate a network service for a next virtual resource of the target virtual resource.
Further, the processor is configured to, if the target virtual resource includes a VNF and a virtual link, determine whether the target virtual resource includes a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource if the target virtual resource is not the mandatory virtual resource; if not, the subsequent steps are carried out.
Further, the processor is configured to, if the target virtual network resource includes a conditionally mandatory virtual resource, determine, for the conditionally mandatory virtual resource in the target virtual network resource, whether a creation success event of a virtual resource associated with the conditionally mandatory virtual resource exists; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
Further, the processor is configured to record and report a target virtual resource corresponding to a creation failure event after instantiating a network service to a next virtual resource of the target virtual resource.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 602 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc.
Example 7:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
the memory has stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link;
judging whether the target virtual resource is a necessary virtual resource;
and if not, performing network service instantiation on the next virtual resource.
Further, the processor is configured to, if the target virtual resource is a VNF or a virtual link, determine whether the target virtual resource is a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource if the target virtual resource is not the mandatory virtual resource; if not, the subsequent steps are carried out.
Further, the processor is configured to determine whether a creation success event of a virtual resource associated with the target virtual resource exists if the target virtual resource is a conditionally mandatory virtual resource, and perform network service instantiation on a next virtual resource of the target virtual resource if the target virtual resource is the conditionally mandatory virtual resource.
Further, the processor is configured to, if the target virtual resource includes a VNF and a virtual link, determine whether the target virtual resource includes a conditionally mandatory virtual resource before instantiating a network service for a next virtual resource if the target virtual resource is not the mandatory virtual resource; if not, the subsequent steps are carried out.
Further, the processor is configured to, if the target virtual network resource includes a conditionally mandatory virtual resource, determine, for the conditionally mandatory virtual resource in the target virtual network resource, whether a creation success event of a virtual resource associated with the conditionally mandatory virtual resource exists; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
Further, the processor is configured to record and report a target virtual resource corresponding to a creation failure event after instantiating a network service to a next virtual resource of the target virtual resource.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MO), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), solid State Disks (SSDs), etc.
For the system/apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is to be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or operation from another entity or operation without necessarily requiring or implying any actual such relationship or order between such entities or operations.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely application embodiment, or an embodiment combining application and hardware aspects. Furthermore, the present application 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.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1. A method for instantiating a web service, the method comprising:
when a creation failure event occurs in a network service instantiation process, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link;
judging whether the target virtual resource is a necessary virtual resource;
if not, the network service instantiation is carried out on the next virtual resource;
and identifying the virtual resource which must be successfully created in the whole network service instantiation process as the mandatory virtual resource.
2. The method of claim 1, wherein if the target virtual resource is a VNF or a virtual link, if the target virtual resource is not a mandatory virtual resource, before the instantiating the network service for the next virtual resource, the method further comprises:
judging whether the target virtual resource is a conditionally mandatory virtual resource;
if not, carrying out the subsequent steps;
and marking the virtual resource which does not influence the whole network service instantiation process if at least one virtual resource is successfully created as the conditionally mandatory virtual resource.
3. The method of claim 2, wherein if the target virtual resource is a conditionally mandatory virtual resource, the method further comprises:
and judging whether a successful creation event of the virtual resource related to the target virtual resource exists or not, and if so, instantiating the network service for the next virtual resource of the target virtual resource.
4. The method of claim 1, wherein if the target virtual resource comprises a VNF and a virtual link, and if the target virtual resource is not an optional virtual resource, prior to the network service instantiation of a next virtual resource of the target virtual resource, the method further comprises:
judging whether the target virtual resources contain conditionally mandatory virtual resources;
if not, carrying out the subsequent steps;
and marking the virtual resource which does not influence the whole network service instantiation process if at least one virtual resource is successfully created as the conditionally mandatory virtual resource.
5. The method of claim 4, wherein if the target virtual resource contains a conditionally mandatory virtual resource, the method further comprises:
aiming at the conditionally mandatory virtual resources in the target virtual resources, judging whether a virtual resource creation success event associated with the conditionally mandatory virtual resources exists;
and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
6. The method of any of claims 1-4, wherein after the network service instantiation of the next virtual resource of the target virtual resource, the method further comprises:
and recording and reporting a target virtual resource corresponding to the creation failure event.
7. An apparatus for instantiating a web service, the apparatus comprising:
a determining module, configured to determine, when a creation failure event occurs in a network service instantiation process, a target virtual resource corresponding to the creation failure event, where the target virtual resource includes at least one of a virtual network element VNF and a virtual link;
the judging module is used for judging whether the target virtual resource is a necessary virtual resource;
the instantiation module is used for instantiating the network service for the next virtual resource if the target virtual resource is not the optional virtual resource;
wherein, the virtual resource which must be successfully created in the whole network service instantiation process is identified as the mandatory virtual resource.
8. An electronic device, comprising a memory and a processor;
the processor is used for reading the program in the memory and executing the following processes: if a creation failure event occurs in the instantiation process of the network service, determining a target virtual resource corresponding to the creation failure event, wherein the target virtual resource comprises at least one of a virtual network element (VNF) and a virtual link; judging whether the target virtual resource is a necessary virtual resource; if not, the network service instantiation is carried out on the next virtual resource; wherein, the virtual resource which must be successfully created in the whole network service instantiation process is identified as the mandatory virtual resource.
9. The electronic device of claim 8, wherein the processor is configured to, if the target virtual resource is a VNF or a virtual link, determine whether the target virtual resource is a conditionally mandatory virtual resource before instantiating the network service for the next virtual resource if the target virtual resource is not the mandatory virtual resource; if not, carrying out the subsequent steps; and marking the virtual resource which does not influence the whole network service instantiation process if at least one virtual resource is successfully created as the conditionally mandatory virtual resource.
10. The electronic device of claim 9, wherein the processor is configured to determine whether a creation success event for a virtual resource associated with the target virtual resource exists if the target virtual resource is a conditionally mandatory virtual resource, and if so, instantiate a web service for a next virtual resource of the target virtual resource.
11. The electronic device of claim 8, wherein the processor is configured to determine whether a conditionally mandatory virtual resource is included in the target virtual resource before instantiating a network service for a next virtual resource of the target virtual resource if the target virtual resource includes a VNF and a virtual link and if the target virtual resource is not the mandatory virtual resource; if not, carrying out the subsequent steps; and marking the virtual resource which does not influence the whole network service instantiation process if at least one virtual resource is successfully created as the conditionally mandatory virtual resource.
12. The electronic device of claim 11, wherein the processor is configured to, if the target virtual resource includes a conditionally mandatory virtual resource, determine, for the conditionally mandatory virtual resource in the target virtual resource, whether there is a creation success event of a virtual resource associated with the conditionally mandatory virtual resource; and if the judgment result of the optional virtual resource aiming at any condition is yes, performing network service instantiation on the next virtual resource.
13. The electronic device according to any one of claims 8 to 12, wherein the processor is configured to record and report a target virtual resource corresponding to a creation failure event after a network service instantiation is performed on a next virtual resource of the target virtual resources.
14. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1-6.
15. A computer-readable storage medium, characterized in that it stores a computer program executable by an electronic device, which program, when run on the electronic device, causes the electronic device to carry out the steps of the method of any one of claims 1 to 6.
CN201910002336.4A 2019-01-02 2019-01-02 Network service instantiation method and device, electronic equipment and storage medium Active CN111404715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910002336.4A CN111404715B (en) 2019-01-02 2019-01-02 Network service instantiation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910002336.4A CN111404715B (en) 2019-01-02 2019-01-02 Network service instantiation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111404715A CN111404715A (en) 2020-07-10
CN111404715B true CN111404715B (en) 2023-03-31

Family

ID=71430189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910002336.4A Active CN111404715B (en) 2019-01-02 2019-01-02 Network service instantiation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111404715B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995691A (en) * 2014-05-21 2014-08-20 中国人民解放军国防科学技术大学 Service state consistency maintenance method based on transactions
CN105429806A (en) * 2015-12-24 2016-03-23 武汉邮电科学研究院 Network function virtualization device and method based on data driving
CN106797323A (en) * 2014-09-25 2017-05-31 英特尔Ip公司 Network function is virtualized
CN107786360A (en) * 2016-08-30 2018-03-09 中兴通讯股份有限公司 Network function virtualized management method and device
CN108471373A (en) * 2017-02-23 2018-08-31 华为技术有限公司 A kind of resource bid, VNF examples creation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995691A (en) * 2014-05-21 2014-08-20 中国人民解放军国防科学技术大学 Service state consistency maintenance method based on transactions
CN106797323A (en) * 2014-09-25 2017-05-31 英特尔Ip公司 Network function is virtualized
CN105429806A (en) * 2015-12-24 2016-03-23 武汉邮电科学研究院 Network function virtualization device and method based on data driving
CN107786360A (en) * 2016-08-30 2018-03-09 中兴通讯股份有限公司 Network function virtualized management method and device
CN108471373A (en) * 2017-02-23 2018-08-31 华为技术有限公司 A kind of resource bid, VNF examples creation method and device

Also Published As

Publication number Publication date
CN111404715A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN106716972B (en) Semi-automatic failover
WO2018149504A1 (en) Changing smart contracts recorded in block chains
US20120096434A1 (en) System and method for detecting preventative maintenance operations in computer source code
WO2019056720A1 (en) Automated test case management method and apparatus, device, and storage medium
JP2017201470A (en) Setting support program, setting support method, and setting support device
US9870314B1 (en) Update testing by build introspection
US20240045793A1 (en) Method and system for scalable performance testing in cloud computing environments
CN110990289B (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN113672273B (en) Data processing method, system and equipment
CN111124591B (en) Mirror image transmission method and device, electronic equipment and storage medium
CN109992408B (en) Resource allocation method, device, electronic equipment and storage medium
CN111404715B (en) Network service instantiation method and device, electronic equipment and storage medium
CN112506802A (en) Test data management method and system
JP2011145824A (en) Information processing apparatus, fault analysis method, and fault analysis program
CN115438020A (en) Database resource scheduling method, device, equipment and medium
CN113342698A (en) Test environment scheduling method, computing device and storage medium
CN114168389A (en) Method and device for recovering CAD file, storage medium and processor
JP2021005379A (en) Method for detecting deep learning chip, device, electronic apparatus, and computer storage medium
CN116594862B (en) DBMS test method and device, electronic equipment and readable storage medium
CN113220495B (en) Method and device for processing process abnormal event, electronic equipment and storage medium
US11263114B2 (en) Method and technique to find timing window problems
CN117172925B (en) Transaction processing method, device, equipment and medium
CN111090502B (en) Stream data task scheduling method and device
CN112463621B (en) Regression test management method, storage medium management method, device, equipment and medium
JP2003281076A (en) Unauthorized access detection circuit of dma controller, unauthorized access detecting method and program thereof

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