WO2016149945A1 - 一种生命周期事件的处理方法及vnfm - Google Patents

一种生命周期事件的处理方法及vnfm Download PDF

Info

Publication number
WO2016149945A1
WO2016149945A1 PCT/CN2015/075159 CN2015075159W WO2016149945A1 WO 2016149945 A1 WO2016149945 A1 WO 2016149945A1 CN 2015075159 W CN2015075159 W CN 2015075159W WO 2016149945 A1 WO2016149945 A1 WO 2016149945A1
Authority
WO
WIPO (PCT)
Prior art keywords
lifecycle
event
events
lifecycle events
priority
Prior art date
Application number
PCT/CN2015/075159
Other languages
English (en)
French (fr)
Inventor
杨旭
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/075159 priority Critical patent/WO2016149945A1/zh
Priority to CN201580059258.1A priority patent/CN107155403B/zh
Publication of WO2016149945A1 publication Critical patent/WO2016149945A1/zh

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
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for processing a lifecycle event and a VNFM.
  • VNF virtualized network function
  • OSS Operations Support Systems
  • VNFM VNF Manager
  • Embodiments of the present invention provide a method for processing a lifecycle event and a VNFM to provide at least one solution for simultaneous occurrence of multiple lifecycle events, which can avoid processing errors that may be caused by multiple lifecycle events.
  • a method for processing a lifecycle event comprising:
  • the virtual network function manager VNFM obtains N lifecycle events concurrently with the same virtual network function VNF, where N ⁇ 2, N is an integer;
  • the processing of the N lifecycle events is triggered in sequence according to a predefined virtual network function component VNFC priority and an event type priority, where the conflict event Group includes at least two students A life cycle event, the at least two lifecycle events point to the same VNFC.
  • the method further includes:
  • the processing of the remaining lifecycle events is triggered in turn according to a predefined VNFC priority and an event type priority.
  • the discarding the life in the at least one group of conflict event groups is such that the remaining lifecycle events in the N lifecycle events point to different virtual network function components VNFC, including:
  • the method further includes:
  • the discarding the life in the at least one group of conflict event groups is such that the remaining lifecycle events in the N lifecycle events point to different virtual network function components VNFC, including:
  • the discarding the life in the at least one group of conflict event groups is such that the remaining lifecycle events in the N lifecycle events point to different virtual network function components VNFC, including:
  • the discarding the life in the at least one group of conflict event groups is such that the remaining lifecycle events in the N lifecycle events point to different virtual network function components VNFC, including:
  • the N triggers the N in sequence according to a predefined VNFC priority and an event type priority Handling of lifecycle events, including:
  • the processing of the N lifecycle events is triggered in sequence.
  • the VNFM receives N lifecycle events concurrently with the same VNF, and adds the N lifecycle events to the event queue;
  • the VNFM acquires N lifecycle events concurrently with the same virtual network function VNF, including:
  • the VNFM acquires the N lifecycle events from the event queue
  • the method further includes:
  • the VNFM adds the new lifecycle event to the event queue.
  • the virtual network function manager VNFM acquires N lifecycle events concurrently with the same virtual network function VNF, including:
  • the virtual network function manager VNFM acquires the same virtual network function VNF. Concurrent N lifecycle events.
  • the N is sequentially triggered according to the predefined VNFC priority and the event type priority Before the processing of lifecycle events, it also includes:
  • lifecycle event that conflicts with the processing lifecycle event is an emergency, terminating the lifecycle event currently being processed
  • the sender of the lifecycle event of the periodic event conflict sends a message notifying the sender that the lifecycle event that conflicts with the lifecycle event being processed has been discarded.
  • the triggering the N according to the predefined VNFC priority and the event type priority The processing of lifecycle events, including:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • the triggering is sequentially performed according to the predefined VNFC priority and the event type priority Before the processing of N lifecycle events, it also includes:
  • the triggering the processing of the N lifecycle events in sequence according to the predefined VNFC priority and the event type priority including:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • a VNFM in a second aspect, includes: an acquiring unit, and a first triggering unit;
  • the acquiring unit is configured to acquire N lifecycle events concurrently with the same virtual network function VNF, where N ⁇ 2, where N is an integer;
  • the first triggering unit is configured to trigger the N lifecycle events according to a predefined virtual network function component VNFC priority and an event type priority, if there is no conflict event group in the N lifecycle events. Processing, wherein the conflict event group includes at least two life cycle events, the at least two life cycle events Point to the same VNFC.
  • the VNFM further includes: a first discarding unit and a second triggering unit;
  • the first discarding unit is configured to discard the at least one set of conflict event groups in the N lifecycle events after the acquiring unit acquires N lifecycle events concurrently with the same virtual network function VNF a lifecycle event in at least one group of conflicting events, such that the remaining lifecycle events in the N lifecycle events all point to different VNFCs;
  • the second triggering unit is configured to sequentially trigger the processing of the remaining lifecycle events according to a predefined VNFC priority and an event type priority.
  • the VNFM further includes: a first determining unit;
  • the first determining unit is configured to determine a valid lifecycle event in the N lifecycle events after the acquiring unit acquires N lifecycle events concurrently with the same virtual network function VNF, where the valid The lifecycle event is in accordance with the usage of hardware resources and virtual resources, and its parameters are consistent with the lifecycle events specified by the virtual network function descriptor VNFD;
  • the first discarding unit is configured to: if at least one set of conflict event groups exists in the valid lifecycle event, discard the lifecycle events in the at least one set of conflict event groups, so that the N lifecycle events The remaining lifecycle events in the middle point to different virtual network function components VNFC.
  • the VNFM further includes: a first sending unit;
  • the first discarding unit is specifically configured to:
  • the first sending unit is configured to send the first message to the network function virtualization orchestration NFVO, such that the NFVO notifies the administrator of the processing error of all lifecycle events in the at least one set of conflicting event groups, and,
  • the first discarding unit is specifically configured to:
  • the first discarding unit is specifically configured to:
  • the first discarding unit is specifically configured to:
  • the first triggering unit is specifically configured to:
  • the processing of the N lifecycle events is triggered in sequence.
  • the VNFM further includes: a receiving unit, an adding unit, in combination with the second aspect to the seventh possible implementation manner of the second aspect;
  • the receiving unit is configured to receive N lifecycle events concurrently with the same VNF before the acquiring unit acquires N lifecycle events concurrently with the same virtual network function VNF;
  • the adding unit is configured to add the N lifecycle events to an event queue
  • the obtaining unit is specifically configured to:
  • the adding unit is further configured to:
  • the receiving unit receives a new lifecycle event during the processing of the N lifecycle events, adding the new lifecycle event to the event queue.
  • the acquiring unit is specifically configured to:
  • the N lifecycles of the same virtual network function VNF are acquired. event.
  • the VNFM further includes: a second determining unit, a determining unit, a terminating unit, a second discarding unit, and a second sending unit;
  • the second determining unit is configured to: before the first trigger unit sequentially triggers the processing of the N lifecycle events according to a predefined VNFC priority and an event type priority, if there is currently a processing life cycle An event, determining whether there is a lifecycle event in the N lifecycle events that conflicts with the lifecycle event being processed;
  • the third determining unit is configured to: if the second determining unit determines that there is a lifecycle event in the N lifecycle events that conflicts with the lifecycle event being processed, determining the Whether the life cycle event of a life cycle event conflict is an emergency;
  • the terminating unit is configured to terminate the lifecycle event currently being processed if the third determining unit determines that the lifecycle event that conflicts with the lifecycle event being processed is an emergency event;
  • the second discarding unit is configured to: if the third determining unit determines that the lifecycle event that conflicts with the lifecycle event being processed is not an emergency event, discarding the life cycle that is being processed Life cycle events of event conflicts;
  • the second sending unit is configured to send a message to the sender of the lifecycle event that conflicts with the lifecycle event being processed, to notify the sender that the conflict with the ongoing lifecycle event is Lifecycle events have been discarded.
  • the first triggering unit is specifically configured to:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • the VNFM further includes: a determining unit;
  • the determining unit is configured to: before the first trigger unit sequentially triggers the processing of the N lifecycle events according to a predefined VNFC priority and an event type priority, if there is currently a lifecycle event being processed, Determining whether the N lifecycle events affect the lifecycle event being processed;
  • the first triggering unit is specifically configured to: if the N lifecycle events do not affect the currently processed lifecycle event, sequentially trigger the N according to a predefined VNFC priority and an event type priority. The processing of life cycle events.
  • a VNFM comprising: a processor;
  • the processor is configured to acquire N lifecycle events concurrently with the same virtual network function VNF, where N ⁇ 2, where N is an integer;
  • the processor is further configured to: if there is no conflict event group in the N lifecycle events, trigger the N lifecycle events according to a predefined virtual network function component VNFC priority and an event type priority. Processing, wherein the conflict event group includes at least two lifecycle events, and the at least two lifecycle events point to the same VNFC.
  • the processor is further configured to: after acquiring N lifecycle events concurrent with the same virtual network function VNF, if the N life cycles Having at least one set of conflicting events in the event, discarding the lifecycle events in the at least one set of conflicting event groups, so that the remaining lifecycle events in the N lifecycle events all point to different VNFCs;
  • the processor is further configured to sequentially trigger processing of the remaining lifecycle events according to a predefined VNFC priority and an event type priority.
  • the processor is further configured to acquire the same virtual network function VNF concurrently in the virtual network function manager VNFM After N lifecycle events, determine An effective lifecycle event of the N lifecycle events, wherein the valid lifecycle event is in accordance with usage of hardware resources and virtual resources, and the parameters thereof meet the lifecycle events specified by the virtual network function descriptor VNFD;
  • the processor is further configured to discard a lifecycle event in the at least one set of conflict event groups if at least one set of conflict event groups exists in the N lifecycle events, so that the N lifecycle events are The remaining lifecycle events point to different virtual network function components VNFC, including:
  • the VNFM further includes: a transmitter;
  • the processor is further configured to discard the lifecycle events in the at least one group of conflicting events, so that the remaining lifecycle events in the N lifecycle events all point to different virtual network function components VNFC, including :
  • the transmitter is configured to send a first message to the network function virtualization orchestrator NFVO, so that the NFVO notifies the administrator that the processing of all lifecycle events in the at least one group of conflict event groups is incorrect;
  • the processor is further configured to discard the at least one group Lifecycle events in a conflict event group, such that The remaining lifecycle events in the N lifecycle events point to different virtual network function components VNFC, including:
  • the processor is further configured to discard the at least one group The lifecycle event in the conflict event group, so that the remaining lifecycle events in the N lifecycle events all point to different virtual network function components VNFC, including:
  • the processor is further configured to discard the at least one group The lifecycle event in the conflict event group, so that the remaining lifecycle events in the N lifecycle events all point to different virtual network function components VNFC, including:
  • the processor is further configured to use a predefined VNFC Priority and event type priority, which in turn triggers the processing of the N lifecycle events, including:
  • the processing of the N lifecycle events is triggered in sequence.
  • the VNFM further includes: a receiver
  • the receiver is configured to receive N lifecycle events concurrently with the same VNF before the processor acquires N lifecycle events concurrently with the same virtual network function VNF;
  • the processor is further configured to add the N lifecycle events to an event queue;
  • the processor is configured to acquire N lifecycle events concurrently with the same virtual network function VNF, and specifically includes:
  • the processor is further configured to add the new lifecycle event to the event queue if the receiver receives a new lifecycle event during processing of the N lifecycle events.
  • the processor is configured to acquire N lifecycle events concurrently with the same virtual network function V NF, specifically including :
  • the N lifecycles of the same virtual network function VNF are acquired. event.
  • the processor is further configured to: before the processing of the N lifecycle events are sequentially triggered according to a predefined VNFC priority and an event type priority, if the current processing is performed a lifecycle event, determining whether there is a lifecycle event in the N lifecycle events that conflicts with the lifecycle event being processed;
  • the processor is also used to:
  • lifecycle event that conflicts with the processing lifecycle event is an emergency, terminating the lifecycle event currently being processed
  • the transmitter is further configured to send a message to the sender of the lifecycle event that conflicts with the lifecycle event being processed, to notify the sender of the life conflicting with the lifecycle event being processed The periodic event has been discarded.
  • the processor is further configured to perform priority according to a predefined VNFC priority and an event type. And triggering the processing of the N lifecycle events in sequence, specifically:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • the processor is further configured to:
  • the processor is further configured to trigger the processing of the N lifecycle events in sequence according to a predefined VNFC priority and an event type priority, which specifically includes:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • FIG. 1 is a schematic diagram of an NFV architecture according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for processing a lifecycle event according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing a connection relationship of VNFCs constituting VNF;
  • FIG. 11 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 12 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 13 is a schematic flowchart diagram of still another method for processing a lifecycle event according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a VNFM according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of another VNFM according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of another VNFM according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of another VNFM according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of still another VNFM according to an embodiment of the present invention.
  • FIG. 19 is a schematic structural diagram of another VNFM according to an embodiment of the present disclosure.
  • FIG. 20 is a schematic structural diagram of still another VNFM according to an embodiment of the present disclosure.
  • FIG. 21 is a schematic structural diagram of a VNFM according to an embodiment of the present disclosure.
  • FIG. 22 is a schematic structural diagram of another VNFM according to an embodiment of the present disclosure.
  • FIG. 23 is a schematic structural diagram of still another VNFM according to an embodiment of the present invention.
  • NFV architecture For ease of understanding, an NFV architecture is first given. As shown in Figure 1, the functional units in the architecture include:
  • VNF unit Corresponding to the physical network function (PNF) in the traditional non-virtualized network, the VNF unit can be a virtualized evolved Evolved Packet Core (EPC) node (such as mobile management). Mobile Management Entity (MME), Serving Gatewa (SGW), Packet Data Network-Gateway (PGW), etc. Typically, a VNF unit consists of multiple virtual network functional components (VNF Components, VNFC).
  • EPC Evolved Packet Core
  • MME Mobile Management Entity
  • SGW Serving Gatewa
  • PGW Packet Data Network-Gateway
  • VNF unit consists of multiple virtual network functional components (VNF Components, VNFC).
  • Element Management System Performs fault management, configuration management, billing management, performance management, and security management on the VNF (Fault Management, Configuration Management, Accounting Management, Performance Management, Security Management, FCAPS). )Features.
  • NFVI NFV Infrastructure
  • the virtual resource refers to a resource with hardware system function simulated by software; the virtual layer refers to a virtual host platform with advanced resource management functions.
  • a combination of virtual layers and hardware resources is an entity that provides the virtual resources needed for the VNF.
  • VIM Virtual Infrastructure Management Unit
  • NFV Orchestrator responsible for life cycle management of Network Service (NS), and orchestrate and manage resources of the entire NFV system (including NFVI and VNF resources).
  • VNF Management Unit (VNF Manager(s), VNFM): responsible for VNF lifecycle management.
  • Operations Support Systems/Business Support Systems refers to the integration of telecom operators and the support system for resource information sharing. It mainly consists of network management, system management, billing, and business. , account and customer service and other components.
  • NFVO Management and Network Orchestrator
  • VNFM VNFM
  • VIM Management and Network Orchestrator
  • An embodiment of the present invention provides a method for processing a lifecycle event, as shown in FIG. 2, which includes:
  • the VNFM acquires N lifecycle events concurrently with the same VNF.
  • the lifecycle event may specifically be VNF instantiate, VNF dynamic intensity (scale in/out/up/down), VNF self-healing (heal), VNF software upgrade (upgrade), VNF software update (update), Modify the VNF configuration (configure), query the VNF status (query), delete the VNF (terminate), and so on.
  • a lifecycle event is triggered when an OSS/BSS or NFVO issues an operation request, or when the EMS, VNF notifies the VNFM VNF of a change in state, or when the VIM notifies the VNFM VNF that a resource state changes.
  • the VNFM The processing of the N lifecycle events is triggered in sequence according to a predefined virtual network function component VNFC priority and an event type priority, wherein the conflict event group includes at least two lifecycle events, the at least two lives Cycle events point to the same VNFC.
  • N lifecycle events are specifically 8 lifecycle events as shown below:
  • VNFC1 expands 128M memory
  • VNFC3 expands 256M memory
  • VNFC4 reduces 2 CPUs
  • VNFC1 expands 512M memory
  • VNFC5 reduces 1 CPU
  • VNFC1 expands 512M memory
  • each VNFC in the same VNF has different importance due to its different functions. Therefore, when dealing with multiple lifecycle events in a concurrent manner, priority should be given to the life cycle events of important VNFCs in case of delays leading to errors.
  • the method for processing a lifecycle event according to the embodiment of the present invention defines a corresponding priority according to the importance of the VNFC. Therefore, when multiple lifecycle events are concurrently, the priority life event with higher priority is preferentially processed. It prevents important lifecycle events from being delayed and avoids processing errors.
  • the VNFC priority can be defined by extending the VDU item in the Virtualized Network Function Descriptor (VNFD), such as adding a VNFC item under the VDU, that is, implementing VNFC priority through VNFD:VDU:VNFC.
  • VNFD Virtualized Network Function Descriptor
  • VNFC priorities can also be defined by adding new items to VNFD, such as adding VNFC_priority items to VNFD.
  • the priority in addition to indicating the priority of the VNFC, the VNFC ID (IDentity, ID) and the priority application range need to be indicated.
  • the ID definition is consistent with the existing standard; the priority can be represented by numbers, characters, or other means; the priority scope is a parameter introduced to further refine the priority definition, and the possible values include Host, VNF, and the like.
  • Host it indicates that the priority only applies to the priority comparison between different VNFCs on the same physical server, but not to the comparison between VNFC priorities on different physical servers; when specified as VNF, This indicates that the priority applies to the comparison of all VNFC priorities under the same VNF.
  • lifecycle events of different VNFCs in the same VNF do not affect each other, so a strict execution order is not required.
  • certain types of lifecycle events are required to be executed first. For example, when a fast online service is required, instantiate, scale out/up lifecycle events have higher priority than terminate, scale in/down lifecycle events; and when resources are tight, or different VNFCs belong to the same physical server, occur In the case of resource redistribution, the priority of the terminate, scale in/down lifecycle event is higher than the instantiate, scale out/up lifecycle events. Therefore, the processing method of the lifecycle event provided by the embodiment of the present invention can meet the requirements of the special scenario by defining different priorities for different event types, and avoid processing errors caused by the execution order.
  • event type priority can be defined by defining an event type priority in VNFD:lifecycle_event, or by adding a new item such as VNFD:lifecycle_event_priority.
  • the content of the definition may include a deployment scenario, a lifecycle event name or ID, a priority, and a priority application scope, which are not specifically limited in this embodiment of the present invention.
  • VNFC priority and event type priority certain lifecycle events can also be assigned priorities. For example, to balance the processing load of physical devices, set priorities for different VNFCs on the same physical device; For example, in order to deal with special circumstances, the priority is forcibly set. If priority is set for some lifecycle events in advance, they should also be taken into account when triggering the processing of lifecycle events.
  • the method for processing a lifecycle event triggers concurrently multiple concurrent VNFC priorities and event type priorities in a plurality of concurrent lifecycle events. The processing of lifecycle events to avoid processing errors that may be caused by multiple lifecycle events.
  • the method for processing a lifecycle event may further include: after the VNFM acquires N lifecycle events concurrently with the same VNF (S201), the method may further include:
  • the VNFM discards lifecycle events in the at least one group of conflict events, so that the remaining lives in the N lifecycle events Cycle events point to different VNFCs.
  • the VNFM sequentially triggers processing of the remaining lifecycle events according to a predefined VNFC priority and an event type priority.
  • the method for processing the lifecycle event provided by the embodiment of the present invention is discarded by discarding each group of conflict event groups.
  • Lifecycle events are such that the remaining lifecycle events are directed to different VNFCs, thereby ensuring that the remaining lifecycle events do not conflict, and prioritizing the pre-defined VNFC priorities and event types, while ensuring that the remaining lifecycles do not conflict. Level, which in turn triggers the processing of the remaining lifecycle events to avoid processing errors.
  • the method for processing a lifecycle event may further include: after the VNFM acquires N lifecycle events (ie, S201) concurrently with the same virtual network function VNF.
  • the VNFM determines a valid lifecycle event in the N lifecycle events, where the valid lifecycle event is in accordance with a usage condition of a hardware resource and a virtual resource, and the parameter meets a lifecycle event specified by the VNFD. .
  • the lifecycle events in the at least one set of conflict event groups are discarded, so that the remaining lifecycles in the N lifecycle events
  • the events are all directed to different VNFCs (ie, S203), and may specifically include:
  • the VNFM discards the lifecycle events in the at least one group of conflicting events, so that the remaining lifecycles in the N lifecycle events Events point to different VNFCs.
  • the method for processing a lifecycle event provided by the embodiment of the present invention, after the VNFM acquires multiple concurrent lifecycle events, first determines a valid lifecycle event therein, thereby processing only a plurality of concurrent lifecycle events. Valid lifecycle events. In this way, the reliability of subsequent processing can be ensured, and the subsequent processing time can be saved, and the processing efficiency can be improved.
  • the VNFM can directly discard the invalid lifecycle events and send messages to NFVO after processing the valid lifecycle events. To notify the administrator of the error; or to send a message to the relevant event initiator to notify the event initiator to modify the relevant lifecycle event and retransmit the lifecycle event, which is not specifically limited in this embodiment of the present invention.
  • the VNFM discards a lifecycle event in the at least one group of conflict event groups, so that the remaining lifecycle events in the N lifecycle events point to different
  • the VNFC (ie, S203) may specifically include:
  • the VNFM discards all lifecycle events in the at least one group of conflicting events, so that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the method may further include:
  • the VNFM sends a first message to the network function virtualization orchestrator NFVO, so that the NFVO notifies the administrator that the processing of all lifecycle events in the at least one group of conflict event groups is faulty.
  • the VNFM sends a second message to a sender of all lifecycle events in the at least one group of conflicting events, so that the sender performs status confirmation on the VNF and sends a new lifecycle event.
  • step S206 or step S207 and step S204 there is no necessary execution order. As shown in FIG. 5, step S204 may be performed first, then step S206 or step S207 may be performed, or step S206 or step may be performed first. S207, step S204 is performed again.
  • the VNFM discards a lifecycle event in the at least one group of conflict event groups, so that the remaining lifecycle events in the N lifecycle events are different
  • the VNFC (ie, S203) may specifically include:
  • the VNFM determines, according to a priority of an initiator of the lifecycle event, a first lifecycle event with the highest priority among each group of the conflict event groups in the at least one group of conflict event groups.
  • the VNFM discards all lifecycle events except the first lifecycle event in each group of conflict event groups, so that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the VNFM discards a lifecycle event in the at least one group of conflict event groups, so that the remaining lifecycle events in the N lifecycle events are different
  • the VNFC (ie, S203) may specifically include:
  • the VNFM determines, according to a receiving time of the lifecycle event, a last received second lifecycle event in each group of the conflict event groups in the at least one group of conflicting events.
  • the VNFM discards the second life cycle of each group of conflict event groups All lifecycle events outside of the event, such that the remaining lifecycle events in the N lifecycle events point to different VNFCs.
  • the VNFM discards a lifecycle event in the at least one group of conflict event groups, so that the remaining lifecycle events in the N lifecycle events are different
  • the VNFC can specifically include:
  • the VNFM determines, according to the predefined VNFC priority, a third lifecycle event with the highest priority among each group of the conflict event groups in the at least one group of conflict event groups.
  • S203h The VNFM discards all lifecycle events except the third lifecycle event in each group of conflict event groups, so that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the VNFM may also select a lifecycle event to be discarded according to a specific lifecycle event in each group of conflict event groups, combined with the state of the VNF. For example, when a conflicting lifecycle event is a stop request and a terminate of the same VNFC, the termination request lifecycle event may be retained, and the pause request lifecycle event may be discarded; for example, when a conflicting life occurs
  • the periodic event is the dynamic scaling request and update of the same VNFC
  • the performance bottleneck can be judged. In this case, the dynamic scaling request lifecycle event needs to be retained, and the update request lifecycle event is discarded.
  • the method for processing a lifecycle event provides a plurality of alternative processing strategies. It should be noted here that in practical applications, after discarding the relevant lifecycle events in each group of conflict event groups according to the above strategy, there may still be two or more lifecycle events in each group of conflict event groups, so In the case of the above, the above processing strategies can be combined with each other.
  • One of ordinary skill in the art will appreciate that no matter what processing strategy is employed, there will ultimately be at most one lifecycle event for each VNFC. The actual situation is more complicated, and the embodiment of the present invention does not introduce this.
  • the VNFM triggers the processing of the N lifecycle events (ie, S202) according to the pre-defined VNFC priority and the event type priority, which may include:
  • the VNFM determines a priority of the N lifecycle events according to a predefined VNFC priority, and obtains the N lifecycle events.
  • a trigger sequence If there is no conflict event group in the N lifecycle events, the VNFM determines a priority of the N lifecycle events according to a predefined VNFC priority, and obtains the N lifecycle events. A trigger sequence.
  • the VNFM determines, according to a predefined event type priority, that at least two lifecycle events having the same priority are in the N lifecycle events, determining a priority of the at least two lifecycle events, and obtaining the The second triggering sequence of N lifecycle events.
  • S202c The VNFM sequentially triggers processing of the N lifecycle events according to the second triggering sequence.
  • the second trigger sequence obtained through the above steps may still have two or more lifecycle events with the same priority, and the lifecycle events with the same priority may be randomly selected for processing.
  • VNF is of the E-Tree type, and the VNF consists of five VNFCs, VNFC1, VNFC2, VNFC3, VNFC4, and VNFC5 (the connection relationship is shown in Figure 10).
  • VNFC1 the VNFC1
  • VNFC2 the VNFC3
  • VNFC4 the VNFC5
  • the VNF concurrently has five lifecycle events, as shown below ( Sort by receiving time):
  • S1 Determine the priority of five lifecycle events according to the VNFC priority, and obtain the first triggering sequence.
  • S2 Determine, according to a predefined event type priority, at least two lifecycle events having the same priority among the five lifecycle events, determine a priority of the at least two lifecycle events, and obtain a second triggering sequence.
  • the method for processing a lifecycle event may further include: before the VNFM acquires N lifecycle events (ie, S201) that are concurrently transmitted by the same VNF.
  • N lifecycle events ie, S201
  • the VNFM receives N lifecycle events concurrently with the same VNF, and adds the N lifecycle events to the event queue.
  • the VNFM obtains N lifecycle events (ie, S201) that are concurrently generated by the same VNF, and specifically includes:
  • the VNFM acquires the N lifecycle events from the event queue.
  • the method may further include:
  • VNFM receives a new lifecycle event during the processing of the N lifecycle events, the VNFM adds the new lifecycle event to the In the event queue.
  • the method for processing a lifecycle event may specifically manage concurrent multiple lifecycle events through an event queue.
  • the VNFM can still receive a new lifecycle event, and by adding a new lifecycle event to the event queue first, the condition can be New lifecycle events are processed.
  • the event queue when used to manage multiple lifecycle events concurrently, the length of the event queue and the number of lifecycle events that the VNFM can handle at one time need to be considered, and related configuration parameters need to be added.
  • the event queue when obtaining lifecycle events in the event queue, you should also consider the emergency and timeout events to increase their priority.
  • the VNFM acquires N lifecycle events (ie, S201) that are concurrently generated by the same VNF, and specifically includes:
  • the VNFM acquires N life cycles of the same VNF concurrently. event.
  • the processing method of the lifecycle event provided by the embodiment of the present invention may trigger the processing of multiple lifecycle events concurrently by the VNF through multiple triggering manners, for example, may be triggered according to the processing condition of the previous concurrent lifecycle event, or may be The timed triggering according to the preset time interval may also be triggered according to the number of the life cycle events to be processed in the event queue, which is not specifically limited in this embodiment of the present invention.
  • the VNFM sequentially triggers the processing of the N lifecycle events according to a predefined VNFC priority and an event type priority.
  • a predefined VNFC priority and an event type priority could also include:
  • the VNFM determines whether there are lifecycle events in the N lifecycle events that conflict with the lifecycle event being processed.
  • the VNFM determines the life cycle of the process being processed Whether the lifecycle event of an event conflict is an emergency.
  • the VNFM discards the lifecycle event that conflicts with the lifecycle event being processed, and sends the lifecycle event to the The sender of the lifecycle event in which the lifecycle event conflict is being processed sends a message informing the sender that the lifecycle event that conflicts with the lifecycle event being processed has been discarded.
  • the VNFM triggers the processing of the N lifecycle events in sequence according to a predefined VNFC priority and an event type priority, which may include:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • the VNFM when the VNFM triggers the processing of the N lifecycle events, the VNFM may be idle at present, and the processing of the N lifecycle events may be directly triggered; the VNFM may also be currently Process lifecycle event, at this time, if the lifecycle event in the pending lifecycle event does not conflict with the lifecycle event being processed, or if there is a conflict with the lifecycle event being processed in the pending lifecycle event The lifecycle event, but the lifecycle event that conflicts with the lifecycle event being processed is an emergency, and the lifecycle event currently being processed should be terminated, triggering the N lifecycle events.
  • the life to be treated If there is a lifecycle event in the periodic event that conflicts with the lifecycle event being processed, and the lifecycle event that conflicts with the lifecycle event being processed is not an emergency, the conflict with the lifecycle event being processed should be discarded.
  • a lifecycle event and sends a message to its sender informing the sender that the lifecycle event that conflicts with the lifecycle event being processed has been discarded.
  • a method for processing a lifecycle event in the case that there is no conflict event group in the N lifecycle events, the VNFM is based on a predefined VNFC priority.
  • the event type priority before triggering the processing of the N lifecycle events (ie, S202), may further include:
  • the VNFM determines whether the N lifecycle events affect the lifecycle event being processed.
  • the VNFM triggers the processing of the N lifecycle events (ie, S202) according to the predefined VNFC priority and the event type priority, which may specifically include :
  • the VNFM is based on a predefined VNFC priority and event type. Priority, which in turn triggers the processing of the N lifecycle events.
  • VNFM can be used as the lead, combined with the predefined priorities in VNFD to achieve the processing of lifecycle events; or the corresponding processing script can be added directly in the VNFD:lifecycle_event project, and The processing script is responsible for the judgment of the life cycle event priority and the entire processing flow of the life cycle event. It is no longer necessary to predefine the VNFC priority or the event type priority in the VNFD.
  • the comparison of the embodiments of the present invention is not specifically limited.
  • NFV systems existing standards do not take into account the fact that VNF encounters multiple lifecycle events simultaneously. In practical applications, there may be situations in which VNF encounters multiple lifecycle events (ie, multiple lifecycle events concurrently). In this case, if the processing order is not considered, ambiguity may occur, resulting in lifecycle events. Handling errors.
  • the method for processing a lifecycle event according to the embodiment of the present invention when there are no conflict event groups in concurrent multiple lifecycle events, multiple lives are sequentially concurrently transmitted through a predefined VNFC priority and event type priority.
  • the embodiment of the present invention provides a VNFM 140.
  • the VNFM 140 includes an acquiring unit 1401 and a first triggering unit 1402.
  • the obtaining unit 1401 is configured to acquire N lifecycle events concurrently with the same VNF, where N ⁇ 2, and N is an integer.
  • the first triggering unit 1402 is configured to trigger the processing of the N lifecycle events according to a predefined VNFC priority and an event type priority, if there is no conflict event group in the N lifecycle events.
  • the conflict event group includes at least two lifecycle events, and the at least two lifecycle events point to the same VNFC.
  • the VNFM 140 provided by the embodiment of the present invention may further include: a first discarding unit 1403 and a second triggering unit 1404.
  • the first discarding unit 1403 is configured to: after the acquiring unit 1401 acquires N lifecycle events concurrently with the same VNF, if at least one group of conflict events exists in the N lifecycle events, discarding the The lifecycle events in the at least one set of conflict event groups are such that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the second triggering unit 1404 is configured to sequentially trigger the processing of the remaining lifecycle events according to a predefined VNFC priority and an event type priority.
  • the VNFM 140 may further include: a first determining unit 1405.
  • the first determining unit 1405 is configured to determine a valid lifecycle event in the N lifecycle events after the acquiring unit 1401 acquires N lifecycle events concurrently with the same VNF, where the effective life
  • the periodic event is in accordance with the usage of hardware resources and virtual resources, and its parameters conform to the lifecycle events specified by the virtual network function descriptor VNFD.
  • the first discarding unit 1403 is configured to: if at least one set of conflict event groups exists in the valid lifecycle event, discard the lifecycle events in the at least one set of conflict event groups, so that the N life cycles The remaining lifecycle events in the event point to different VNFCs.
  • the VNFM 140 provided by the embodiment of the present invention may further include: a first sending unit 1406.
  • the first discarding unit 1403 can be specifically configured to:
  • All lifecycle events in the at least one set of conflict event groups are discarded such that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the first sending unit 1406 is configured to send a first message to the NFVO, so that the NFVO notifies the administrator that the processing of all lifecycle events in the at least one group of conflicting events is faulty, and
  • the first discarding unit 1403 may be specifically configured to:
  • the first discarding unit 1403 may be specifically configured to:
  • the first discarding unit 1403 may be specifically configured to:
  • the first triggering unit 1402 may be specifically configured to:
  • the VNFM 140 provided by the embodiment of the present invention may further include: a receiving unit 1407 and an adding unit 1408.
  • the receiving unit 1407 is configured to receive N lifecycle events concurrently with the same VNF before the acquiring unit 1401 acquires N lifecycle events concurrently with the same VNF.
  • the adding unit 1408 is configured to add the N lifecycle events to the event queue.
  • the obtaining unit 1401 may be specifically configured to:
  • the adding unit 1408 can also be used to:
  • the receiving unit 1407 receives a new lifecycle event during the processing of the N lifecycle events, the new lifecycle event is added to the event queue.
  • the acquiring unit 1401 may be specifically configured to:
  • N lifecycle events concurrent with the same VNF are acquired.
  • the VNFM 140 provided by the embodiment of the present invention may further include: a second determining unit 1409, a third determining unit 1410, a terminating unit 1411, a second discarding unit 1412, and a second sending unit 1413.
  • the second determining unit 1409 is configured to: before the first trigger unit 1402 sequentially triggers the processing of the N lifecycle events according to a predefined VNFC priority and an event type priority, if the current triggering unit is currently in progress
  • the processed lifecycle event determines whether there are lifecycle events in the N lifecycle events that conflict with the lifecycle event being processed.
  • the third determining unit 1410 is configured to: if the second determining unit 1409 determines that there is a lifecycle event in the N lifecycle events that conflicts with the lifecycle event being processed, determining that the Whether the lifecycle event of the processed lifecycle event conflict is an emergency.
  • the terminating unit 1411 is configured to terminate the lifecycle event currently being processed if the third determining unit 1410 determines that the lifecycle event that conflicts with the lifecycle event being processed is an emergency event.
  • the second discarding unit 1412 is configured to determine, if the third determining unit 1410 The lifecycle event that conflicts with the lifecycle event being processed is not an emergency event, and the lifecycle event that conflicts with the lifecycle event being processed is discarded.
  • the second sending unit 1413 is configured to send a message to the sender of the lifecycle event that conflicts with the lifecycle event being processed, to notify the sender that the conflict with the processing lifecycle event is The lifecycle event has been discarded.
  • the first triggering unit 1402 may be specifically configured to:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • the VNFM 140 provided by the embodiment of the present invention may further include: a determining unit 1414.
  • the determining unit 1414 is configured to: before the first triggering unit 1402 sequentially triggers the processing of the N lifecycle events according to the predefined VNFC priority and the event type priority, if there is currently a processing life cycle The event determines whether the N lifecycle events affect the lifecycle event being processed.
  • the first triggering unit 1402 is specifically configured to: if the N lifecycle events do not affect the currently processed lifecycle event, trigger the N according to a predefined VNFC priority and an event type priority. The processing of life cycle events.
  • the method for processing a plurality of concurrent lifecycle events by using the VNFM 140 provided by the embodiment of the present invention may refer to the description of the first embodiment, where the embodiment of the present invention is This will not be repeated here.
  • VNFM In NFV systems, existing standards do not take into account the fact that VNF encounters multiple lifecycle events simultaneously. In practical applications, there may be situations in which VNF encounters multiple lifecycle events (ie, multiple lifecycle events concurrently). In this case, if the processing order is not considered, ambiguity may occur, resulting in lifecycle events. Handling errors.
  • the VNFM provided by the embodiment of the present invention when there is no conflict event group in a plurality of concurrent lifecycle events, the processing of multiple lifecycle events concurrently performed by the predefined VNFC priority and the event type priority is performed. This avoids processing errors that may be caused by multiple lifecycle events. That is, the VNFM provided by the embodiment of the present invention can avoid processing errors that may be caused by multiple lifecycle events.
  • An embodiment of the present invention provides a VNFM 210, as shown in FIG. 21, including: a processor 2010.
  • the processor 2010 is configured to acquire N lifecycle events concurrently with the same VNF, where N ⁇ 2, and N is an integer.
  • the processor 2010 is further configured to: if there is no conflict event group in the N lifecycle events, trigger the processing of the N lifecycle events in sequence according to a predefined VNFC priority and an event type priority, where The conflict event group includes at least two lifecycle events, and the at least two lifecycle events point to the same VNFC.
  • the processor 2010 is further configured to discard the at least one set of conflicts if at least one set of conflict event groups exists in the N lifecycle events after acquiring N lifecycle events concurrently with the same VNF Lifecycle events in the event group such that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the processor 2010 is further configured to sequentially trigger the processing of the remaining lifecycle events according to a predefined VNFC priority and an event type priority.
  • the processor 2010 is further configured to: after the VNFM 210 acquires N lifecycle events concurrently with the same VNF, determine valid lifecycle events in the N lifecycle events, where the effective life Periodic events are hardware compliant Source and virtual resource usage, and its parameters conform to the lifecycle events specified by the virtual network function descriptor VNFD.
  • the processor 2010 is further configured to: if at least one group of conflict events exists in the N lifecycle events, discard lifecycle events in the at least one group of conflict events, so that the N The remaining lifecycle events in the lifecycle events all point to different VNFCs, which may include:
  • the VNFM 210 may further include: a transmitter 2102.
  • the processor 2010 is further configured to: discard the lifecycle events in the at least one group of the conflicting events, so that the remaining lifecycle events in the N lifecycle events all point to different VNFCs, and specifically, the method may include:
  • All lifecycle events in the at least one set of conflict event groups are discarded such that the remaining lifecycle events in the N lifecycle events all point to different VNFCs.
  • the transmitter 2102 is configured to send a first message to the NFVO, so that the NFVO notifies the administrator that the processing of all lifecycle events in the at least one group of conflicting events is faulty;
  • the processor 2010 is further configured to discard a lifecycle event in the at least one group of conflicting events, so that the remaining lifecycle events in the N lifecycle events are different
  • the VNFC specifically includes:
  • the processor 2010 is further configured to discard a lifecycle event in the at least one group of conflicting events, so that the remaining lifecycle events in the N lifecycle events are different
  • the VNFC specifically includes:
  • the processor 2010 is further configured to discard a lifecycle event in the at least one group of conflicting events, so that the remaining lifecycle events in the N lifecycle events are different
  • the VNFC specifically includes:
  • the processor 2010 is further configured to trigger the processing of the N lifecycle events in sequence according to the predefined VNFC priority and the event type priority, which may include:
  • the VNFM 210 may further include: a receiver 2103.
  • the receiver 2103 is configured to acquire the same VNF in the processor 2010. Receive N lifecycle events concurrent with the same VNF before the N lifecycle events.
  • the processor 2010 is further configured to add the N lifecycle events to an event queue.
  • the processor 2010 is configured to acquire N lifecycle events concurrently with the same VNF, and specifically, the method includes: acquiring the N lifecycle events from the event queue.
  • the processor 2010 is further configured to add the new lifecycle event to the event queue if the receiver 2103 receives a new lifecycle event during the processing of the N lifecycle events. .
  • the processor 2010 is configured to acquire N lifecycle events concurrently with the same VNF, and specifically includes:
  • N lifecycle events concurrent with the same VNF are acquired.
  • the processor 2010 is further configured to: before triggering the processing of the N lifecycle events according to a predefined VNFC priority and an event type priority, if there is currently a lifecycle event being processed, determine Whether there are lifecycle events in the N lifecycle events that conflict with the lifecycle event being processed.
  • the processor 2010 is also used to:
  • lifecycle event that conflicts with the processing lifecycle event is an emergency, terminating the lifecycle event currently being processed
  • lifecycle event that conflicts with the lifecycle event being processed is not an emergency, discarding the lifecycle event that conflicts with the lifecycle event being processed.
  • the transmitter 2102 is further configured to process the life cycle with the processing
  • the sender of the conflicting lifecycle event sends a message informing the sender that the lifecycle event that conflicts with the lifecycle event being processed has been discarded.
  • the processor 2010 is further configured to trigger the processing of the N lifecycle events in sequence according to the predefined VNFC priority and the event type priority, which specifically includes:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • the processor 2010 is further configured to:
  • the processor 2010 is further configured to trigger the processing of the N lifecycle events in sequence according to the predefined VNFC priority and the event type priority, which may include:
  • the processing of the N lifecycle events is triggered in sequence according to a predefined VNFC priority and an event type priority.
  • VNFM In NFV systems, existing standards do not take into account the fact that VNF encounters multiple lifecycle events simultaneously. In practical applications, it may happen that VNF encounters multiple lifecycle events (ie, multiple lifecycle events concurrently). The problem of ordering may be ambiguous, leading to errors in the handling of lifecycle events.
  • the VNFM provided by the embodiment of the present invention when there is no conflict event group in a plurality of concurrent lifecycle events, the processing of multiple lifecycle events concurrently performed by the predefined VNFC priority and the event type priority is performed. This avoids processing errors that may be caused by multiple lifecycle events. That is, the VNFM provided by the embodiment of the present invention can avoid processing errors that may be caused by multiple lifecycle events.
  • the above described device is only illustrated by the division of the above functional modules. In practical applications, the above functions may be assigned differently according to needs.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device and the unit described above refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种生命周期事件的处理方法及VNFM,能够避免多生命周期事件可能引起的处理错误。所述方法包括:虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件;若所述N个生命周期事件中不存在冲突事件组,根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。本发明适用于通信技术领域。

Description

一种生命周期事件的处理方法及VNFM 技术领域
本发明涉及通信技术领域,尤其涉及一种生命周期事件的处理方法及VNFM。
背景技术
随着通信技术的发展,网络功能虚拟化(Network Function Virtulization,NFV)技术日趋成熟。
在NFV系统下,现有的标准只考虑了虚拟网络功能(Virtualized Network Function,VNF)遇到一个生命周期事件的情况,而并未考虑VNF同时遇到多个生命周期事件的情况。而在实际应用中,可能会出现VNF同时遇到多个生命周期事件的情形,例如,隶属于某个VNF的多个VNFC同时发生弹性伸缩请求,再如,运营支撑系统(Operations Support Systems,OSS)与VNF同时向VNF管理器(VNF Manager,VNFM)发出了生命周期事件的请求。在这种情形下,需要考虑不同的生命周期事件如何处理的问题,否则可能出现歧义,导致处理错误。
发明内容
本发明实施例提供一种生命周期事件的处理方法及VNFM,以至少提供一种多生命周期事件同时出现的解决方案,能够避免多生命周期事件可能引起的处理错误。
为达到上述目的,本发明的实施例采用如下技术方案:
第一方面,提供一种生命周期事件的处理方法,包括:
虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件,其中,N≥2,N为整数;
若所述N个生命周期事件中不存在冲突事件组,根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生 命周期事件,所述至少两个生命周期事件指向同一个VNFC。
在第一方面第一种可能的实现方式中,结合第一方面,在所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,还包括:
若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC;
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
在第一方面第二种可能的实现方式中,结合第一方面第一种可能的实现方式,在所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,还包括:
确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件;
所述若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC。
在第一方面第三种可能的实现方式中,结合第一方面第一种可能的实现方式或第一方面第二种可能的实现方式,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得 所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC;
所述方法还包括:
发送第一消息给网络功能虚拟化编排器NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错;或者,
发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
在第一方面第四种可能的实现方式中,结合第一方面第一种可能的实现方式或第一方面第二种可能的实现方式,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;
丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第一方面第五种可能的实现方式中,结合第一方面第一种可能的实现方式或第一方面第二种可能的实现方式,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件;
丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第一方面第六种可能的实现方式中,结合第一方面第一种可能的实现方式或第一方面第二种可能的实现方式,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;
丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第一方面第七种可能的实现方式中,结合第一方面至第一方面第六种可能的实现方式,所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,包括:
根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;
根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;
按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
在第一方面第八种可能的实现方式中,结合第一方面至第一方面第七种可能的实现方式,在所述VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之前,还包括:
所述VNFM接收同一个VNF并发的N个生命周期事件,并将所述N个生命周期事件添加至事件队列中;
所述VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件,包括:
所述VNFM从所述事件队列中获取所述N个生命周期事件;
所述方法还包括:
若所述VNFM在所述N个生命周期事件的处理过程中接收到新的生命周期事件,所述VNFM将所述新的生命周期事件添加至所述事件队列中。
在第一方面第九种可能的实现方式中,结合第一方面第八种可能的实现方式,所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件,包括:
若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件。
在第一方面第十种可能的实现方式中,结合第一方面至第一方面第九种可能的实现方式,在所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,还包括:
若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件;
若存在,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件,
若所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件;
若所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件,并向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
在第一方面第十一种可能的实现方式中,结合第一方面至第一方面第十种可能的实现方式,所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,包括:
若当前没有正在处理的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
在第一方面第十二种可能的实现方式中,结合第一方面至第一方面第十一种可能的实现方式,在所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,还包括:
若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件;
所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,包括:
若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
第二方面,提供一种VNFM,所述VNFM包括:获取单元、第一触发单元;
所述获取单元,用于获取同一个虚拟网络功能VNF并发的N个生命周期事件,其中,N≥2,N为整数;
所述第一触发单元,用于若所述N个生命周期事件中不存在冲突事件组,根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件 指向同一个VNFC。
在第二方面第一种可能的实现方式中,结合第二方面,所述VNFM还包括:第一丢弃单元、第二触发单元;
所述第一丢弃单元,用于在所述获取单元获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC;
所述第二触发单元,用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
在第二方面第二种可能的实现方式中,结合第二方面第一种可能的实现方式,所述VNFM还包括:第一确定单元;
所述第一确定单元,用于在所述获取单元获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件;
所述第一丢弃单元,具体用于若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC。
在第二方面第三种可能的实现方式中,结合第二方面第一种可能的实现方式或第二方面第二种可能的实现方式,所述VNFM还包括:第一发送单元;
所述第一丢弃单元具体用于:
丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC;
所述第一发送单元,用于发送第一消息给网络功能虚拟化编排 器NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错,以及,
发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
在第二方面第四种可能的实现方式中,结合第二方面第一种可能的实现方式或第二方面第二种可能的实现方式,所述第一丢弃单元具体用于:
根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;
丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第二方面第五种可能的实现方式中,结合第二方面第一种可能的实现方式或第二方面第二种可能的实现方式,所述第一丢弃单元具体用于:
根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件;
丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第二方面第六种可能的实现方式中,结合第二方面第一种可能的实现方式或第二方面第二种可能的实现方式,所述第一丢弃单元具体用于:
根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;
丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第二方面第七种可能的实现方式中,结合第二方面至第二方面第六种可能的实现方式,所述第一触发单元具体用于:
根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;
根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;
按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
在第二方面第八种可能的实现方式中,结合第二方面至第二方面第七种可能的实现方式,所述VNFM还包括:接收单元、添加单元;
所述接收单元,用于在所述获取单元获取同一个虚拟网络功能VNF并发的N个生命周期事件之前,接收同一个VNF并发的N个生命周期事件;
所述添加单元,用于将所述N个生命周期事件添加至事件队列中;
所述获取单元,具体用于:
从所述事件队列中获取所述N个生命周期事件;
所述添加单元,还用于:
若所述接收单元在所述N个生命周期事件的处理过程中接收到新的生命周期事件,将所述新的生命周期事件添加至所述事件队列中。
在第二方面第九种可能的实现方式中,结合第二方面第八种可能的实现方式,所述获取单元具体用于:
若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,获取同一个虚拟网络功能VNF并发的N个生命周期事件。
在第二方面第十种可能的实现方式中,结合第二方面第至第二方面第九种可能的实现方式,所述VNFM还包括:第二确定单元、第 三确定单元、终止单元、第二丢弃单元、第二发送单元;
所述第二确定单元,用于在所述第一触发单元根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件;
所述第三确定单元,用于若所述第二确定单元确定所述N个生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件;
所述终止单元,用于若所述第三确定单元确定所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件;
所述的、第二丢弃单元,用于若所述第三确定单元确定所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件;
所述第二发送单元,用于向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
在第二方面第十一种可能的实现方式中,结合第二方面第至第二方面第十种可能的实现方式,所述第一触发单元具体用于:
若当前没有正在处理的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
在第二方面第十二种可能的实现方式中,结合第二方面第至第二方面第十一种可能的实现方式,所述VNFM还包括:判断单元;
所述判断单元,用于在所述第一触发单元根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件;
所述第一触发单元,具体用于若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
第三方面,提供一种VNFM,所述VNFM包括:处理器;
所述处理器,用于获取同一个虚拟网络功能VNF并发的N个生命周期事件,其中,N≥2,N为整数;
所述处理器,还用于若所述N个生命周期事件中不存在冲突事件组,根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。
在第三方面第一种可能的实现方式中,结合第三方面,所述处理器,还用于在获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC;
所述处理器,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
在第三方面第二种可能的实现方式中,结合第三方面第一种可能的实现方式,所述处理器,还用于在所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,确定 所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件;
所述处理器,还用于若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,具体包括:
若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC。
在第三方面第三种可能的实现方式中,结合第三方面第一种可能的实现方式或第三方面第二种可能的实现方式,所述VNFM还包括:发送器;
所述处理器,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,具体包括:
丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC;
所述发送器,用于发送第一消息给网络功能虚拟化编排器NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错;以及,
发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
在第三方面第四种可能的实现方式中,结合第三方面第一种可能的实现方式或第三方面第二种可能的实现方式,所述处理器,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述 N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,具体包括:
根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;
丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第三方面第五种可能的实现方式中,结合第三方面第一种可能的实现方式或第三方面第二种可能的实现方式,所述处理器,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,具体包括:
根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件;
丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第三方面第六种可能的实现方式中,结合第三方面第一种可能的实现方式或第三方面第二种可能的实现方式,所述处理器,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,具体包括:
根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;
丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
在第三方面第七种可能的实现方式中,结合第三方面至第三方面第六种可能的实现方式,所述处理器,还用于根据预先定义的VNFC 优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体包括:
根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;
根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;
按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
在第三方面第八种可能的实现方式中,结合第三方面至第三方面第七种可能的实现方式,所述VNFM还包括:接收器;
所述接收器,用于在所述处理器获取同一个虚拟网络功能VNF并发的N个生命周期事件之前,接收同一个VNF并发的N个生命周期事件;
所述处理器,还用于将所述N个生命周期事件添加至事件队列中;
所述处理器,用于获取同一个虚拟网络功能VNF并发的N个生命周期事件,具体包括:
从所述事件队列中获取所述N个生命周期事件;
所述处理器,还用于若所述接收器在所述N个生命周期事件的处理过程中接收到新的生命周期事件,将所述新的生命周期事件添加至所述事件队列中。
在第三方面第九种可能的实现方式中,结合第三方面第八种可能的实现方式,所述处理器,用于获取同一个虚拟网络功能V NF并发的N个生命周期事件,具体包括:
若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,获取同一个虚拟网络功能VNF并发的N个生命周期事件。
在第三方面第十种可能的实现方式中,结合第三方面至第三方 面第九种可能的实现方式,所述处理器,还用于在根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件;
所处处理器,还用于:
若所述N个生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件,
若所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件;
若所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件;
所述发送器,还用于向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
在第三方面第十一种可能的实现方式中,结合第三方面至第三方面第十种可能的实现方式,所述处理器,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体包括:
若当前没有正在处理的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
在第三方面第十二种可能的实现方式中,结合第三方面至第三方面第十一种可能的实现方式,所述处理器还用于:
在根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件;
所述处理器,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体包括:
若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
在NFV系统中,现有的标准并未考虑VNF同时遇到多个生命周期事件的情况。而在实际应用中,可能会出现VNF同时遇到多个生命周期事件(即多个生命周期事件并发)的情形,此时若不考虑处理次序的问题,可能会出现歧义,导致生命周期事件的处理出现错误。而基于本发明实施例提供的生命周期事件的处理方法及VNFM,在并发的多个生命周期事件中不存在冲突事件组时,通过预先定义的VNFC优先级及事件类型优先级来依次并发的多个生命周期事件的处理,从而避免多生命周期事件可能引起的处理错误。即,本发明实施例提供的生命周期事件的处理方法及VNFM,提供了一种多生命周期事件同时出现的解决方案,能够避免多生命周期事件可能引起的处理错误。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以 根据这些附图获得其他的附图。
图1为本发明实施例提供的一种NFV架构示意图;
图2为本发明实施例提供的一种生命周期事件的处理方法的流程示意图;
图3为本发明实施例提供的另一种生命周期事件的处理方法的流程示意图;
图4为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图5为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图6为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图7为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图8为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图9为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图10为组成VNF的VNFC的连接关系示意图;
图11为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图12为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图13为本发明实施例提供的又一种生命周期事件的处理方法的流程示意图;
图14为本发明实施例提供的一种VNFM结构示意图;
图15为本发明实施例提供的另一种VNFM结构示意图;
图16为本发明实施例提供的又一种VNFM结构示意图;
图17为本发明实施例提供的又一种VNFM结构示意图;
图18为本发明实施例提供的又一种VNFM结构示意图;
图19为本发明实施例提供的又一种VNFM结构示意图;
图20为本发明实施例提供的又一种VNFM结构示意图;
图21为本发明实施例提供的一种VNFM结构示意图;
图22为本发明实施例提供的另一种VNFM结构示意图;
图23为本发明实施例提供的又一种VNFM结构示意图。
具体实施方式
为了方便理解,首先给出一种NFV架构,如图1所示,该架构中的功能单元包括:
(1)VNF单元:对应于传统非虚拟化网络中的物理网络功能(Physical Network Function,PNF),VNF单元可以为虚拟化的演进的分组核心网(Evolved Packet Core,EPC)节点(如移动管理实体(Mobile Management Entity,MME)、服务网关(Serving Gatewa,SGW)、分组数据网关(Packet Data Network-Gateway,PGW)等)。通常,VNF单元由多个虚拟网络功能组件(VNF Component,VNFC)组成。
(2)网元管理系统单元(Element Management System,EMS):对VNF执行故障管理,配置管理,计费管理,性能管理,安全管理(FaultManagement,Configuration Management,Accounting Management,Performance Management,Security Management,FCAPS)功能。
(3)NFV基础设施单元(NFV Infrastructure,NFVI):NFVI由硬件资源、虚拟资源以及虚拟层组成。
其中,所述虚拟资源指代通过软件模拟的具有硬件系统功能的资源;所述虚拟层指代具有高级资源管理功能的虚拟主机平台。
通常,虚拟层和硬件资源的组合是一个能够为VNF提供所需虚拟资源的实体。
(4)虚拟基础设施管理单元(Virtualised Infrastructure Manager(s),VIM):包括用来控制、管理计算和存储虚拟网络资源 以及该虚拟网络资源的虚拟化实体。
(5)NFV编排器(NFV Orchestrator,NFVO):负责对网络服务器(Network Service,NS)进行生命周期管理,并对整个NFV系统的资源(包括NFVI和VNF资源)进行编排和管理。
(6)VNF管理单元(VNF Manager(s),VNFM):负责VNF进行生命周期管理。
(7)运营/业务支持系统(Operations Support Systems/Business Support Systems,OSS/BSS):指电信运营商的一体化、资源信息共享的支持系统,它主要由网络管理、系统管理、计费、营业、账户和客户服务等部分组成。
其中,NFVO、VNFM与VIM共同组成管理和网络编排(Management and network Orchestrator,MANO)架构。
需要说明的是,为了便于清楚描述本发明实施例的技术方案,在本发明的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。
实施例一、
本发明实施例提供一种生命周期事件的处理方法,具体如图2所示,包括:
S201、VNFM获取同一个VNF并发的N个生命周期事件。
其中,N≥2,N为整数。所述生命周期事件具体可以是VNF实例化(instantiate)、VNF动态伸缩(scale in/out/up/down)、VNF自愈(heal)、VNF软件升级(upgrade)、VNF软件更新(update)、修改VNF配置(configure)、查询VNF状态(query)、删除VNF(terminate)等。
通常,当OSS/BSS或NFVO下发操作请求,或当EMS、VNF通知VNFM VNF的状态出现变化,或当VIM通知VNFM VNF相关的资源状态出现变化时,均会触发生命周期事件。
S202、若所述N个生命周期事件中不存在冲突事件组,所述VNFM 根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。
示例性的,假设所述N个生命周期事件具体为如下所示的8个生命周期事件:
(1)VNFC1扩充128M内存
(2)VNFC3扩充256M内存
(3)VNFC5扩增1个CPU
(4)VNFC2扩增1个CPU
(5)VNFC4缩减2个CPU
(6)VNFC1扩充512M内存
(7)VNFC5缩减1个CPU
(8)VNFC1扩充512M内存
则,这8个生命周期事件中存在两组冲突事件组,其中,生命周期事件1、6、8为一组冲突事件组(均指向VNFC1),生命周期事件3和生命周期事件7为一组冲突事件组(均指向VNFC5)。
其中,需要说明的是,同一个VNF中的各VNFC由于功能不同,重要性也有所不同。因而,在处理并发的多个生命周期事件时,应优先处理重要的VNFC的生命周期事件,以防其延迟而导致出错。本发明实施例提供的生命周期事件的处理方法,根据VNFC的重要性的不同为其定义相应的优先级,如此,当多个生命周期事件并发时,优先处理优先级较高的生命周期事件,即可防止重要的生命周期事件被延迟,避免处理错误。
具体的,可通过扩展虚拟网络功能描述符(Virtualized Network Function Descriptor,VNFD)中VDU项目对VNFC优先级进行定义,如在VDU下增加VNFC项目,即通过VNFD:VDU:VNFC实现对VNFC优先级的定义;还可在VNFD中增加新的项目对VNFC优先级进行定义,如在VNFD中增加VNFC_priority项目。另外,在对VNFC 优先级进行定义时,除了标明VNFC的优先级之外,还需要标明VNFC的标识(IDentity,ID)及优先级适用范围。其中,ID定义与现有标准一致;优先级可通过数字、字符或其他方式表示;优先级适用范围是为了进一步细化优先级定义而引入的参数,可能的值包括Host、VNF等。当指定为Host时,表明该优先级只适用于同一个物理服务器上的不同VNFC间的优先级比较,而并不适用于不同物理服务器上的VNFC间优先级的比较;当指定为VNF时,则表示该优先级适用于同一个VNF下所有VNFC优先级比较的情况。通过指定适用范围,管理员或VNF提供商可在更细的粒度上指定处理优先级,从而应对更为特殊的情况。
通常,同一个VNF中不同VNFC的不同类型的生命周期事件不会相互影响,因此并不需要严格的执行顺序。但在某些特殊场景下,需要某些类型的生命周期事件优先执行。例如,当需要快速上线服务时,instantiate、scale out/up生命周期事件的优先级要高于terminate、scale in/down生命周期事件;而当资源紧张,或是不同VNFC属于同一台物理服务器,发生资源重分配的情况时,terminate、scale in/down生命周期事件的优先级就要高于instantiate、scale out/up生命周期事件。为此,本发明实施例提供的生命周期事件的处理方法,通过对不同的事件类型定义不同的优先级,即可满足特殊场景的需求,避免由执行顺序引发处理错误。
类似地,可通过在VNFD:lifecycle_event中定义事件类型优先级,也可以通过添加诸如VNFD:lifecycle_event_priority之类的新项目定义事件类型优先级。定义的内容可以包括部署场景、生命周期事件名称或ID、优先级及优先级适用范围等,本发明实施例对此不作具体限定。
需要说明的是,在实际部署时,除了VNFC优先级和事件类型优先级,也可为某些生命周期事件指定优先级。比如,为了平衡物理设备的处理负荷,为同一台物理设备上的不同VNFC设定优先级;再 如,为应对特殊情况,强制设定优先级。若预先为某些生命周期事件设定了优先级,则在触发生命周期事件的处理时,也应将其考虑在内。
在实际应用中,当某个VNF同时遇到多个生命周期事件时(即多个生命周期事件并发时),由于某些生命周期事件存在必然的执行顺序,因此需要考虑并发的多个生命周期事件如何处理的问题,否则可能出现歧义,导致处理错误。为此,本发明实施例提供的生命周期事件的处理方法,在并发的多个生命周期事件中不存在冲突事件组时,通过预先定义的VNFC优先级及事件类型优先级来依次触发并发的多个生命周期事件的处理,从而避免多生命周期事件可能引起的处理错误。
进一步的,如图3所示,本发明实施例提供的生命周期事件的处理方法,在所述VNFM获取同一个VNF并发的N个生命周期事件(S201)之后,还可以包括:
S203、若所述N个生命周期事件中存在至少一组冲突事件组,所述VNFM丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
S204、所述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
即,当并发的多个生命周期事件中存在冲突的两个或以上生命周期事件(冲突事件组)时,本发明实施例提供的生命周期事件的处理方法,通过丢弃每组冲突事件组中的生命周期事件以使剩余的生命周期事件均指向不同的VNFC,从而保证剩余的生命周期事件不冲突,并在保证剩余的生命周期不冲突的前提下,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理,避免出现处理错误。
进一步的,如图4所示,本发明实施例提供的生命周期事件的处理方法,在所述VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件(即S201)之后,还可以包括:
S205、所述VNFM确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合VNFD的规定的生命周期事件。
则,所述若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC(即S203),具体可以包括:
S203a、若所述有效生命周期事件中存在至少一组冲突事件组,所述VNFM丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
即,本发明实施例提供的生命周期事件的处理方法,在所述VNFM获取到并发的多个生命周期事件后,先确定其中的有效生命周期事件,从而仅处理并发的多个生命周期事件中的有效生命周期事件。如此,可保证后续处理的可靠性,同时可节约后续的处理时间,提高处理效率。
需要补充说明的是,VNFM在确定并发的多个生命周期事件中的有效生命周期事件后,在对有效生命周期事件进行处理的同时,可直接丢弃其中的无效生命周期事件,并发送消息给NFVO以通知管理员该错误;或者,发送消息给相关的事件发起方,以通知事件发起方对相关生命周期事件进行修改,并重传生命周期事件,本发明实施例对此不作具体限定。
一种可能的实现方式中,如图5所示,所述VNFM丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC(即S203),具体可以包括:
S203b、所述VNFM丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
则,所述方法还可以包括:
S206、所述VNFM发送第一消息给网络功能虚拟化编排器NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错。
或者,
S207、所述VNFM发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
其中,需要说明的是,步骤S206或步骤S207与步骤S204并没有必然的执行顺序,可以如图5所示,先执行步骤S204,再执行步骤S206或步骤S207,也可以先执行步骤S206或步骤S207,再执行步骤S204。
一种可能的实现方式中,如图6所示,所述VNFM丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC(即S203),具体可以包括:
S203c、所述VNFM根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件。
S203d、所述VNFM丢弃所述每组冲突事件组中除第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
一种可能的实现方式中,如图7所示,所述VNFM丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC(即S203),具体可以包括:
S203e、所述VNFM根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件。
S203f、所述VNFM丢弃所述每组冲突事件组中除第二生命周期 事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
一种可能的实现方式中,如图8所示,所述VNFM丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC,具体可以包括:
S203g、所述VNFM根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件。
S203h、所述VNFM丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
另外,所述VNFM也可根据每组冲突事件组中具体的生命周期事件,并结合VNF的状态,选择需要丢弃的生命周期事件。例如,当发生冲突的生命周期事件为同一个VNFC的暂停请求(stop)和终止请求(terminate)时,可保留终止请求生命周期事件,丢弃暂停请求生命周期事件;再如,当发生冲突的生命周期事件为同一个VNFC的动态伸缩请求(scale)和更新请求(update)时,可判断系统出现性能瓶颈,此时需要保留动态伸缩请求生命周期事件,丢弃更新请求生命周期事件。
如上所述,当出现并发的多个生命周期事件指向同一个VNFC的情形时,本发明实施例提供的生命周期事件的处理方法提供了多种可供选择的处理策略。此处需要说明的是,在实际应用中,根据上述策略丢弃每组冲突事件组中相关的生命周期事件后,每组冲突事件组中仍可能有两个或以上的生命周期事件,因此在适当的情形下上述处理策略可以相互结合。本领域普通技术人员可以理解,无论采取何种处理策略,对于每个VNFC最终只有至多一个生命周期事件。由于实际情况较为复杂,本发明实施例对此暂不作介绍。
优选的,如图9所示,本发明实施例提供的生命周期事件的处理方法中,所述若所述N个生命周期事件中不存在冲突事件组,所 述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理(即S202),具体可以包括:
S202a、若所述N个生命周期事件中不存在冲突事件组,所述VNFM根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序。
S202b、所述VNFM根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序。
S202c、所述VNFM按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
需要说明的是,经过上述步骤获得的第二触发顺序有可能仍存在优先级相同的两个或以上生命周期事件,对于优先级相同的生命周期事件可随机选择进行处理。
示例性的,以下结合具体示例对上述获取第一触发顺序、第二触发顺序的过程进行详细描述:
假设VNF为E-Tree类型,VNF由VNFC1、VNFC2、VNFC3、VNFC4及VNFC5五个VNFC组成(连接关系如图10所示),某一时刻VNF并发了5个生命周期事件,具体如下所示(按照接收时间先后排序):
①VNFC1扩充128M内存
②VNFC3扩充256M内存
③VNFC5扩增1个CPU
④VNFC2扩增1个CPU
⑤VNFC4缩减2个CPU
S1:根据VNFC优先级,确定5个生命周期事件的优先级,获得第一触发顺序。
假设此处考虑拓扑影响,认为处于根节点的VNFC1优先级较高,而其余处于叶子节点的VNFC2-VNFC5优先级较低。则,根据VNFC的优先级,确定的第一触发顺序为:①>②=③=④=⑤。
S2:根据预先定义的事件类型优先级,确定5个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得第二触发顺序。
由S1可知,第二个生命周期事件至第五个生命周期事件的优先级相同,此时应根据事件类型优先级进一步区分生命周期事件的优先级。假设此处考虑资源紧张的情况,认为terminate、scale in/down生命周期事件的优先级就要高于instantiate、scale out/up生命周期事件,则第五个生命周期事件的优先级要高于其余三个生命周期事件。此时,确定的第二触发顺序即为:①>⑤>②=③=④。
进一步的,出于平衡物理设备负载的考虑,对于同一台物理设备上的VNFC的时间又可进一步区分优先级。具体而言,参见图10,由于VNFC2、VNFC3在同一台物理设备上,VNFC4、VNFC5在同一台物理设备上,因此第二个生命周期事件和第四个生命周期事件可以区分优先级,第三个生命周期事件和第五个生命周期事件可以区分优先级。假设此处第二个生命周期事件的优先级高于第四个生命周期事件,则最终获得的触发顺序为:①>⑤>②=③>④。
优选的,如图11所示,本发明实施例提供的生命周期事件的处理方法,在所述VNFM获取同一个VNF并发的N个生命周期事件(即S201)之前,还可以包括:
S208、所述VNFM接收同一个VNF并发的N个生命周期事件,并将所述N个生命周期事件添加至事件队列中。
则,所述VNFM获取同一个VNF并发的N个生命周期事件(即S201),具体可以包括:
S201a、所述VNFM从所述事件队列中获取所述N个生命周期事件。
所述方法还可以包括:
S209、若所述VNFM在所述N个生命周期事件的处理过程中接收到新的生命周期事件,所述VNFM将所述新的生命周期事件添加至所 述事件队列中。
即,本发明实施例提供的生命周期事件的处理方法,具体可通过事件队列来管理并发的多个生命周期事件。如此一来,在此次生命周期事件处理的过程中,所述VNFM仍可接收新的生命周期事件,通过将新的生命周期事件先添加至事件队列中,待条件允许的情况下即可对新的生命周期事件进行处理。
需要说明的是,通过事件队列来管理并发的多个生命周期事件时,还需考虑事件队列的长度、VNFM一次能够处理的生命周期事件的数量等参数,需要增加相关的配置参数。另外,在获取事件队列中的生命周期事件时,还应考虑到紧急事件以及超时事件,适当提高其优先级。
优选的,本发明实施例提供的生命周期事件的处理方法中,所述VNFM获取同一个VNF并发的N个生命周期事件(即S201),具体可以包括:
若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,所述VNFM获取同一个VNF并发的N个生命周期事件。
即,本发明实施例提供的生命周期事件的处理方法,可通过多种触发方式触发VNF并发的多个生命周期事件的处理,如可根据前一次并发的生命周期事件的处理情况触发,也可根据预先设置的时间间隔定时触发,还可根据事件队列中待处理的生命周期事件的数量触发,本发明实施例对此不作具体限定。
优选的,如图12所示,本发明实施例提供的生命周期事件的处理方法,在所述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,还可以包括:
S210、若当前有正在处理的生命周期事件,所述VNFM确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件。
S211、若存在,所述VNFM确定所述与所述正在处理的生命周期 事件冲突的生命周期事件是否为紧急事件。
S212、若所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,所述VNFM终止当前正在处理的生命周期事件。
S213、若所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,所述VNFM丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件,并向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
进一步的,本发明实施例提供的生命周期事件的处理方法中,所述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体可以包括:
若当前没有正在处理的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
即,在所述VNFM触发所述N个生命周期事件的处理时,所述VNFM当前可能处于空闲,此时即可直接触发所述N个生命周期事件的处理;所述VNFM当前也可能有正在处理的生命周期事件,此时,如果待处理的生命周期事件中的生命周期事件与正在处理的生命周期事件不冲突,或者,虽然待处理的生命周期事件中存在与正在处理的生命周期事件冲突的生命周期事件,但所述与正在处理的生命周期事件冲突的生命周期事件是紧急事件,应当终止当前正在处理的生命周期事件,触发所述N个生命周期事件。如果待处理的生命 周期事件中存在与正在处理的生命周期事件冲突的生命周期事件,且所述与正在处理的生命周期事件冲突的生命周期事件并非紧急事件,则应丢弃所述与正在处理的生命周期事件冲突的生命周期事件,并向其发送方发送消息,通知发送方所述与正在处理的生命周期事件冲突的生命周期事件已丢弃。
需要说明的是,由于某些生命周期事件的处理时间较长,因此在其处理过程中可能又触发了多次生命周期事件的处理,从而导致其他VNFC状态发生变化或某些配置参数发生变化,这可能会影响正在处理的生命周期事件。为此,如图13所示,本发明实施例提供的生命周期事件的处理方法,在所述若所述N个生命周期事件中不存在冲突事件组,所述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理(即S202)之前,还可以包括:
S214、若当前有正在处理的生命周期事件,所述VNFM判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件。
若所述N个生命周期事件中不存在冲突事件组,所述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理(即S202),具体可以包括:
S202d、若所述N个生命周期事件中不存在冲突事件组,且所述剩余生命周期事件不会影响所述当前正在处理的生命周期事件,所述VNFM根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
需要说明的是,在某些特殊情况下,可能需要强制相应参数,而这些参数又会影响正在处理的生命周期事件,此时应中断当前正在处理的生命周期事件、回退到原始状态。
另外,值得说明的是,如前文所述,可以VNFM作为主导,结合VNFD中预定义的优先级,实现对生命周期事件的处理;也可直接在VNFD:lifecycle_event项目中添加相应的处理脚本,并由处理脚本负责生命周期事件优先级的判断以及生命周期事件的整个处理流 程,而不再需要在VNFD中预先定义VNFC优先级或生事件类型优先级。本发明实施例对比不作具体限定。
在NFV系统中,现有的标准并未考虑VNF同时遇到多个生命周期事件的情况。而在实际应用中,可能会出现VNF同时遇到多个生命周期事件(即多个生命周期事件并发)的情形,此时若不考虑处理次序的问题,可能会出现歧义,导致生命周期事件的处理出现错误。而基于本发明实施例提供的生命周期事件的处理方法,在并发的多个生命周期事件中不存在冲突事件组时,通过预先定义的VNFC优先级及事件类型优先级来依次并发的多个生命周期事件的处理,从而避免多生命周期事件可能引起的处理错误。即,本发明实施例提供的生命周期事件的处理方法提供了一种多生命周期事件同时出现的解决方案,能够避免多生命周期事件可能引起的处理错误。
实施例二、
本发明实施例提供一种VNFM140,具体如图14所示,包括:获取单元1401、第一触发单元1402。
其中,所述获取单元1401,用于获取同一个VNF并发的N个生命周期事件,其中,N≥2,N为整数。
所述第一触发单元1402,用于若所述N个生命周期事件中不存在冲突事件组,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。
进一步的,如图15所示,本发明实施例提供的VNFM140,还可以包括:第一丢弃单元1403、第二触发单元1404。
其中,所述第一丢弃单元1403,用于在所述获取单元1401获取同一个VNF并发的N个生命周期事件之后,若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
所述第二触发单元1404,用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
进一步的,如图16所示,所述VNFM140还可以包括:第一确定单元1405。
所述第一确定单元1405,用于在所述获取单元1401获取同一个VNF并发的N个生命周期事件之后,确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件。
所述第一丢弃单元1403,具体用于若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
优选的,如图17所示,本发明实施例提供的VNFM140还可以包括:第一发送单元1406。
所述第一丢弃单元1403具体可以用于:
丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
所述第一发送单元1406,用于发送第一消息给NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错,以及,
发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
一种可能的实现方式中,本发明实施例提供的VNFM140中,所述第一丢弃单元1403具体可以用于:
根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周 期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
一种可能的实现方式中,本发明实施例提供的VNFM140中,所述第一丢弃单元1403具体可以用于:
根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件;丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
一种可能的实现方式中,本发明实施例提供的VNFM140中,所述第一丢弃单元1403具体可以用于:
根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
优选的,本发明实施例提供的VNFM140中,所述第一触发单元1402具体可以用于:
根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
优选的,如图18所示,本发明实施例提供的VNFM140还可以包括:接收单元1407、添加单元1408。
其中,所述接收单元1407,用于在所述获取单元1401获取同一个VNF并发的N个生命周期事件之前,接收同一个VNF并发的N个生命周期事件。
所述添加单元1408,用于将所述N个生命周期事件添加至事件队列中。
所述获取单元1401,具体可以用于:
从所述事件队列中获取所述N个生命周期事件。
所述添加单元1408,还可以用于:
若所述接收单元1407在所述N个生命周期事件的处理过程中接收到新的生命周期事件,将所述新的生命周期事件添加至所述事件队列中。
优选的,本发明实施例提供的VNFM140中,所述获取单元1401具体可以用于:
若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,获取同一个VNF并发的N个生命周期事件。
优选的,如图19所示,本发明实施例提供的VNFM140还可以包括:第二确定单元1409、第三确定单元1410、终止单元1411、第二丢弃单元1412、第二发送单元1413。
其中,所述第二确定单元1409,用于在所述第一触发单元1402根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件。
所述第三确定单元1410,用于若所述第二确定单元1409确定所述N个生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件。
所述终止单元1411,用于若所述第三确定单元1410确定所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件。
所述第二丢弃单元1412,用于若所述第三确定单元1410确定 所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件。
所述第二发送单元1413,用于向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
优选的,本发明实施例提供的VNFM140中,所述第一触发单元1402具体可以用于:
若当前没有正在处理的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
优选的,如图20所示,本发明实施例提供的VNFM140还可以包括:判断单元1414。
所述判断单元1414,用于在所述第一触发单元1402根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件。
所述第一触发单元1402,具体用于若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
具体的,使用本发明实施例提供的VNFM140对并发的多个生命周期事件进行处理的方法可参考实施例一的描述,本发明实施例在 此不再赘述。
在NFV系统中,现有的标准并未考虑VNF同时遇到多个生命周期事件的情况。而在实际应用中,可能会出现VNF同时遇到多个生命周期事件(即多个生命周期事件并发)的情形,此时若不考虑处理次序的问题,可能会出现歧义,导致生命周期事件的处理出现错误。而基于本发明实施例提供的VNFM,在并发的多个生命周期事件中不存在冲突事件组时,通过预先定义的VNFC优先级及事件类型优先级来依次并发的多个生命周期事件的处理,从而避免多生命周期事件可能引起的处理错误。即,本发明实施例提供的VNFM能够避免多生命周期事件可能引起的处理错误。
实施例三、
本发明实施例提供一种VNFM210,具体如图21所示,包括:处理器2010。
所述处理器2010,用于获取同一个VNF并发的N个生命周期事件,其中,N≥2,N为整数。
所述处理器2010,还用于若所述N个生命周期事件中不存在冲突事件组,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。
进一步的,所述处理器2010,还用于在获取同一个VNF并发的N个生命周期事件之后,若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
所述处理器2010,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
优选的,所述处理器2010,还用于在所述VNFM210获取同一个VNF并发的N个生命周期事件之后,确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资 源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件。
优选的,所述处理器2010,还用于若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC,具体可以包括:
若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
进一步的,如图22所示,所述VNFM210还可以包括:发送器2102。
所述处理器2010,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC,具体可以包括:
丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
所述发送器2102,用于发送第一消息给NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错;以及,
发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
一种可能的实现方式中,所述处理器2010,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC,具体包括:
根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指 向不同的VNFC。
一种可能的实现方式中,所述处理器2010,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC,具体包括:
根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件;丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
一种可能的实现方式中,所述处理器2010,还用于丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC,具体包括:
根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
优选的,所述处理器2010,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体可以包括:
根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
进一步的,如图23所示,所述VNFM210还可以包括:接收器2103。
所述接收器2103,用于在所述处理器2010获取同一个VNF并 发的N个生命周期事件之前,接收同一个VNF并发的N个生命周期事件。
所述处理器2010,还用于将所述N个生命周期事件添加至事件队列中。
所述处理器2010,用于获取同一个VNF并发的N个生命周期事件,具体可以包括:从所述事件队列中获取所述N个生命周期事件。
所述处理器2010,还用于若所述接收器2103在所述N个生命周期事件的处理过程中接收到新的生命周期事件,将所述新的生命周期事件添加至所述事件队列中。
优选的,所述处理器2010,用于获取同一个VNF并发的N个生命周期事件,具体可以包括:
若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,获取同一个VNF并发的N个生命周期事件。
进一步的,所述处理器2010,还用于在根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件。
所处处理器2010,还用于:
若所述N个生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件,
若所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件;
若所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件。
所述发送器2102,还用于向所述与所述正在处理的生命周期事 件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
优选的,所述处理器2010,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体包括:
若当前没有正在处理的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
优选的,所述处理器2010还用于:
在根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件。
所述处理器2010,还用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,具体可以包括:
若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
在NFV系统中,现有的标准并未考虑VNF同时遇到多个生命周期事件的情况。而在实际应用中,可能会出现VNF同时遇到多个生命周期事件(即多个生命周期事件并发)的情形,此时若不考虑处 理次序的问题,可能会出现歧义,导致生命周期事件的处理出现错误。而基于本发明实施例提供的VNFM,在并发的多个生命周期事件中不存在冲突事件组时,通过预先定义的VNFC优先级及事件类型优先级来依次并发的多个生命周期事件的处理,从而避免多生命周期事件可能引起的处理错误。即,本发明实施例提供的VNFM能够避免多生命周期事件可能引起的处理错误。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (26)

  1. 一种生命周期事件的处理方法,其特征在于,所述方法包括:
    虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件,其中,N≥2,N为整数;
    若所述N个生命周期事件中不存在冲突事件组,根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。
  2. 根据权利要求1所述的方法,其特征在于,在所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,还包括:
    若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC;
    根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
  3. 根据权利要求2所述的方法,其特征在于,在所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,还包括:
    确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件;
    所述若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
    若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事 件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC。
  4. 根据权利要求2或3所述的方法,其特征在于,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
    丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC;
    所述方法还包括:
    发送第一消息给网络功能虚拟化编排器NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错;或者,
    发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
  5. 根据权利要求2或3所述的方法,其特征在于,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
    根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;
    丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
  6. 根据权利要求2或3所述的方法,其特征在于,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
    根据生命周期事件的接收时间,确定所述至少一组冲突事件组中 每组冲突事件组中最后被接收的第二生命周期事件;
    丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
  7. 根据权利要求2或3所述的方法,其特征在于,所述丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC,包括:
    根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;
    丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,包括:
    根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;
    根据预先定义的事件类型优先级,确定所述N个生命周期事件中存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;
    按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,在所述VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件之前,还包括:
    所述VNFM接收同一个VNF并发的N个生命周期事件,并将所述N个生命周期事件添加至事件队列中;
    所述VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事 件,包括:
    所述VNFM从所述事件队列中获取所述N个生命周期事件;
    所述方法还包括:
    若所述VNFM在所述N个生命周期事件的处理过程中接收到新的生命周期事件,所述VNFM将所述新的生命周期事件添加至所述事件队列中。
  10. 根据权利要求9所述的方法,其特征在于,所述虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件,包括:
    若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,虚拟网络功能管理器VNFM获取同一个虚拟网络功能VNF并发的N个生命周期事件。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,在所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,还包括:
    若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期事件;
    若存在,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件,
    若所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件;
    若所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件,并向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个 生命周期事件的处理,包括:
    若当前没有正在处理的生命周期事件,或,
    若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
    若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
    根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,在所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,还包括:
    若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件;
    所述根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,包括:
    若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
  14. 一种虚拟网络功能管理器VNFM,其特征在于,所述VNFM包括:获取单元、第一触发单元;
    所述获取单元,用于获取同一个虚拟网络功能VNF并发的N个生命周期事件,其中,N≥2,N为整数;
    所述第一触发单元,用于若所述N个生命周期事件中不存在冲突事件组,根据预先定义的虚拟网络功能组件VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理,其中,所述冲突事件组包括至少两个生命周期事件,所述至少两个生命周期事件指向同一个VNFC。
  15. 根据权利要求14所述的VNFM,其特征在于,所述VNFM还包括:第一丢弃单元、第二触发单元;
    所述第一丢弃单元,用于在所述获取单元获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,若所述N个生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC;
    所述第二触发单元,用于根据预先定义的VNFC优先级及事件类型优先级,依次触发所述剩余的生命周期事件的处理。
  16. 根据权利要求15所述的VNFM,其特征在于,所述VNFM还包括:第一确定单元;
    所述第一确定单元,用于在所述获取单元获取同一个虚拟网络功能VNF并发的N个生命周期事件之后,确定所述N个生命周期事件中的有效生命周期事件,其中,所述有效生命周期事件为符合硬件资源和虚拟资源的使用情况,且其参数符合虚拟网络功能描述符VNFD的规定的生命周期事件;
    所述第一丢弃单元,具体用于若所述有效生命周期事件中存在至少一组冲突事件组,丢弃所述至少一组冲突事件组中的生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC。
  17. 根据权利要求15或16所述的VNFM,其特征在于,所述VNFM还包括:第一发送单元;
    所述第一丢弃单元具体用于:
    丢弃所述至少一组冲突事件组中的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的虚拟网络功能组件VNFC;
    所述第一发送单元,用于发送第一消息给网络功能虚拟化编排器NFVO,以使得所述NFVO通知管理员所述至少一组冲突事件组中的所有生命周期事件的处理出错,以及,
    发送第二消息给所述至少一组冲突事件组中的所有生命周期事件的发送方,以使得所述发送方对所述VNF进行状态确认,并发送新的生命周期事件。
  18. 根据权利要求15或16所述的VNFM,其特征在于,所述第一丢弃单元具体用于:
    根据生命周期事件的发起方的优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第一生命周期事件;
    丢弃所述每组冲突事件组中除所述第一生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
  19. 根据权利要求15或16所述的VNFM,其特征在于,所述第一丢弃单元具体用于:
    根据生命周期事件的接收时间,确定所述至少一组冲突事件组中每组冲突事件组中最后被接收的第二生命周期事件;
    丢弃所述每组冲突事件组中除第二生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
  20. 根据权利要求15或16所述的VNFM,其特征在于,所述第一丢弃单元具体用于:
    根据预先定义的VNFC优先级,确定所述至少一组冲突事件组中每组冲突事件组中优先级最高的第三生命周期事件;
    丢弃所述每组冲突事件组中除第三生命周期事件之外的所有生命周期事件,以使得所述N个生命周期事件中剩余的生命周期事件均指向不同的VNFC。
  21. 根据权利要求14-20任一项所述的VNFM,其特征在于,所述第一触发单元具体用于:
    根据预先定义的VNFC优先级,确定所述N个生命周期事件的优先级,获得所述N个生命周期事件的第一触发顺序;
    根据预先定义的事件类型优先级,确定所述N个生命周期事件中 存在优先级相同的至少两个生命周期事件,确定所述至少两个生命周期事件的优先级,获得所述N个生命周期事件的第二触发顺序;
    按照所述第二触发顺序,依次触发所述N个生命周期事件的处理。
  22. 根据权利要求14-21任一项所述的VNFM,其特征在于,所述VNFM还包括:接收单元、添加单元;
    所述接收单元,用于在所述获取单元获取同一个虚拟网络功能VNF并发的N个生命周期事件之前,接收同一个VNF并发的N个生命周期事件;
    所述添加单元,用于将所述N个生命周期事件添加至事件队列中;
    所述获取单元,具体用于:
    从所述事件队列中获取所述N个生命周期事件;
    所述添加单元,还用于:
    若所述接收单元在所述N个生命周期事件的处理过程中接收到新的生命周期事件,将所述新的生命周期事件添加至所述事件队列中。
  23. 根据权利要求22所述的VNFM,其特征在于,所述获取单元具体用于:
    若前一次并发的生命周期事件处理完毕,或,到达预设触发时间,或,所述事件队列中的生命周期事件的数量达到预设值,获取同一个虚拟网络功能VNF并发的N个生命周期事件。
  24. 根据权利要求14-23任一项所述的VNFM,其特征在于,所述VNFM还包括:第二确定单元、第三确定单元、终止单元、第二丢弃单元、第二发送单元;
    所述第二确定单元,用于在所述第一触发单元根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之前,若当前有正在处理的生命周期事件,确定所述N个生命周期事件中是否存在与所述正在处理的生命周期事件冲突的生命周期 事件;
    所述第三确定单元,用于若所述第二确定单元确定所述N个生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,确定所述与所述正在处理的生命周期事件冲突的生命周期事件是否为紧急事件;
    所述终止单元,用于若所述第三确定单元确定所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,终止当前正在处理的生命周期事件;
    所述第二丢弃单元,用于若所述第三确定单元确定所述与所述正在处理的生命周期事件冲突的生命周期事件不是紧急事件,丢弃所述与所述正在处理的生命周期事件冲突的生命周期事件;
    所述第二发送单元,用于向所述与所述正在处理的生命周期事件冲突的生命周期事件的发送方发送消息,通知所述发送方所述与所述正在处理的生命周期事件冲突的生命周期事件已丢弃。
  25. 根据权利要求14-24任一项所述的VNFM,其特征在于,所述第一触发单元具体用于:
    若当前没有正在处理的生命周期事件,或,
    若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中不存在与所述正在处理的生命周期事件冲突的生命周期事件,或,
    若当前有正在处理的生命周期事件,且当前正在处理的生命周期事件中存在与所述正在处理的生命周期事件冲突的生命周期事件,所述与所述正在处理的生命周期事件冲突的生命周期事件是紧急事件,
    根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
  26. 根据权利要求14-25任一项所述的VNFM,其特征在于,所述VNFM还包括:判断单元;
    所述判断单元,用于在所述第一触发单元根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理之 前,若当前有正在处理的生命周期事件,判断所述N个生命周期事件是否会影响所述正在处理的生命周期事件;
    所述第一触发单元,具体用于若所述N个生命周期事件不会影响所述当前正在处理的生命周期事件,根据预先定义的VNFC优先级及事件类型优先级,依次触发所述N个生命周期事件的处理。
PCT/CN2015/075159 2015-03-26 2015-03-26 一种生命周期事件的处理方法及vnfm WO2016149945A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/075159 WO2016149945A1 (zh) 2015-03-26 2015-03-26 一种生命周期事件的处理方法及vnfm
CN201580059258.1A CN107155403B (zh) 2015-03-26 2015-03-26 一种生命周期事件的处理方法及vnfm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/075159 WO2016149945A1 (zh) 2015-03-26 2015-03-26 一种生命周期事件的处理方法及vnfm

Publications (1)

Publication Number Publication Date
WO2016149945A1 true WO2016149945A1 (zh) 2016-09-29

Family

ID=56977759

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075159 WO2016149945A1 (zh) 2015-03-26 2015-03-26 一种生命周期事件的处理方法及vnfm

Country Status (2)

Country Link
CN (1) CN107155403B (zh)
WO (1) WO2016149945A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10608907B2 (en) 2018-05-11 2020-03-31 At&T Intellectual Property I, L.P. Open-loop control assistant to guide human-machine interaction
CN113010012A (zh) * 2021-03-09 2021-06-22 湖北亿咖通科技有限公司 车载娱乐系统中虚拟角色的配置方法和计算机存储介质
CN113778711A (zh) * 2021-09-09 2021-12-10 恒安嘉新(北京)科技股份公司 一种事件处理方法、装置、电子设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450715B (zh) * 2018-12-26 2022-01-25 新华三技术有限公司 消息处理方法和装置
CN109714239B (zh) * 2018-12-27 2021-04-27 新华三技术有限公司 一种管理消息的下发方法、vnfm设备和服务器

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710488A (zh) * 2012-06-07 2012-10-03 北京邮电大学 一种实现虚拟网络映射的方法
US20150040183A1 (en) * 2010-03-23 2015-02-05 Citrix Systems, Inc. Network policy implementation for a multi-virtual machine appliance within a virtualization environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150040183A1 (en) * 2010-03-23 2015-02-05 Citrix Systems, Inc. Network policy implementation for a multi-virtual machine appliance within a virtualization environment
CN102710488A (zh) * 2012-06-07 2012-10-03 北京邮电大学 一种实现虚拟网络映射的方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"ETSI GS NFV-MAN 001 v1.1.1", NETWORK FUNCTIONS VIRTUALISATION (NFV); MANAGEMENT AND ORCHESTRATION, 31 December 2014 (2014-12-31), pages 102 - 130 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10608907B2 (en) 2018-05-11 2020-03-31 At&T Intellectual Property I, L.P. Open-loop control assistant to guide human-machine interaction
CN113010012A (zh) * 2021-03-09 2021-06-22 湖北亿咖通科技有限公司 车载娱乐系统中虚拟角色的配置方法和计算机存储介质
CN113778711A (zh) * 2021-09-09 2021-12-10 恒安嘉新(北京)科技股份公司 一种事件处理方法、装置、电子设备及存储介质
CN113778711B (zh) * 2021-09-09 2024-04-16 恒安嘉新(北京)科技股份公司 一种事件处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN107155403B (zh) 2019-11-29
CN107155403A (zh) 2017-09-12

Similar Documents

Publication Publication Date Title
JP7197612B2 (ja) オンデマンドネットワークコード実行システム上での補助機能の実行
CN107241281B (zh) 一种数据处理方法及其装置
US20220004410A1 (en) Method For Deploying Virtual Machine And Container, And Related Apparatus
US10764132B2 (en) Scale-out association method and apparatus, and system
WO2016149945A1 (zh) 一种生命周期事件的处理方法及vnfm
WO2020052605A1 (zh) 一种网络切片的选择方法及装置
WO2015196931A1 (zh) 基于磁盘io的虚拟资源分配方法及装置
US8959237B2 (en) Web services requests throttling
KR102365796B1 (ko) 가상 물품을 할당하기 위한 방법과 시스템
CN110958281B (zh) 基于物联网的数据传输方法及通信装置
JP6336988B2 (ja) 使用要求の小バッチ処理のためのシステムおよび方法
KR101619078B1 (ko) 원격통신 네트워크들 내에서 셀 복구를 위한 방법 및 시스템
WO2021109767A1 (zh) 网络设备及其降低传输时延的方法
WO2014194869A1 (zh) 一种请求处理方法、装置及系统
CN102801737B (zh) 一种异步网络通信方法及装置
CN108600034B (zh) 业务压力管理方法、装置、设备、系统及存储介质
WO2023030417A1 (zh) 报文处理方法、设备、存储介质及计算机程序产品
CN111586140A (zh) 一种数据交互的方法及服务器
WO2016206513A1 (zh) 加速处理数据的方法、分配装置和交换机
CN116414534A (zh) 任务调度方法、装置、集成电路、网络设备及存储介质
WO2012174838A1 (zh) 一种网元消息并发处理方法及系统
US10846156B2 (en) Methods, devices and computer program products for managing software function
CN108632070B (zh) 虚拟网络设备的配置方法及服务器
US20240160469A1 (en) Batch scheduling-based application scheduling method, apparatus, and system
CN113704755B (zh) 一种文件检测方法、装置、电子设备、程序及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15885884

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15885884

Country of ref document: EP

Kind code of ref document: A1