WO2016183735A1 - 一种同步虚拟网络功能vnf状态的方法、装置和设备 - Google Patents

一种同步虚拟网络功能vnf状态的方法、装置和设备 Download PDF

Info

Publication number
WO2016183735A1
WO2016183735A1 PCT/CN2015/079075 CN2015079075W WO2016183735A1 WO 2016183735 A1 WO2016183735 A1 WO 2016183735A1 CN 2015079075 W CN2015079075 W CN 2015079075W WO 2016183735 A1 WO2016183735 A1 WO 2016183735A1
Authority
WO
WIPO (PCT)
Prior art keywords
vnf
state
vnfm
vnf state
recorded
Prior art date
Application number
PCT/CN2015/079075
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/079075 priority Critical patent/WO2016183735A1/zh
Priority to CN201580065544.9A priority patent/CN107005434B/zh
Publication of WO2016183735A1 publication Critical patent/WO2016183735A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • 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/34Signalling channels for network management communication
    • H04L41/342Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/20Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for synchronizing a virtual network function VNF state.
  • Network Function Virtualization (English: Network Function Virtualization; NFV for short) refers to the implementation of partial network functions in general-purpose high-performance servers, switches, and storage through virtualization technology.
  • the NFV end-to-end architecture defined in the current standard mainly includes three parts: virtual network function (English: Virtualized Network Function; VNF for short), NFV infrastructure (English: NFV Infrastructure; NFVI for short) and management and orchestration (English: Management and Orchestration; referred to as: MANO).
  • VNF is used for physical network functions, performance, interfaces, etc. in virtual traditional networks.
  • NFVI provides resources for the operation of the entire NFV system.
  • the NFV Orchestrator (English: NFV Orchestrator; NFVO) in MANO is responsible for lifecycle management of network services (English: Network Service; NS, service unit composed of multiple VNFs), and the entire NFV system. Resources are organized and managed.
  • the VNF Manager (English: VNF Manager; VNFM for short) is responsible for managing the VNF life cycle.
  • VNFM NFVO and Operation Support System (English: Operation Support System; OSS).
  • the recorded VNF status of the VNF and the VNFM may be asynchronous, which may lead to management failure of the NFV system.
  • the VNF is in a fault state, but the VNF state recorded by the VNFM is idle. Then, assuming that the VNFM performs a query operation on the VNF, the VNF is likely to refuse the operation or an operation exception.
  • the embodiment of the present application provides a method, a device, and a device for synchronizing a VNF state, so as to implement a synchronous VNF state between the VNF and the VNFM, and avoid management failure caused by the VNF state being out of synchronization.
  • the first aspect of the present application provides a method for synchronizing a virtual network function VNF state, including:
  • the virtual network function manager VNFM receives the first VNF state sent by the VNF, and the first VNF state is the current state of the VNF record itself;
  • the VNFM obtains a second VNF state, and the second VNF state is a current state of the VNF recorded by the VNFM;
  • the VNFM synchronizes the recorded VNF state according to the first VNF state and the second VNF state.
  • the VNFM according to the first VNF state and the second VNF state, the recorded VNF state, includes:
  • VNFM Determining, by the VNFM, whether the first VNF state is consistent with the second VNF state
  • the VNFM maintains the recorded second VNF state when the first VNF state is consistent with the second VNF state
  • the VNFM determines the true state from the first VNF state and the second VNF state, and according to the The VNF state of the real state synchronization record, the real state being the first VNF state or the second VNF state.
  • the VNF state that is recorded according to the real state synchronization includes:
  • the VNFM modifies the second VNF state to the first VNF state when the first VNF state is the real state
  • the VNFM When the second VNF state is the real state, the VNFM notifies the VNF to modify the first VNF state to the second VNF state.
  • the VNFM notifies the VNF to modify the first VNF state to the second VNF state Thereafter, the method further includes:
  • the VNFM resynchronizes the VNF state or restarts the VNF according to a preset policy when the execution feedback indicating that the VNF has completed modification is not received by the VNF.
  • the first VNF is Determining the true state in the state and the second VNF state, including:
  • the VNFM uses the VNF status corresponding to the timestamp closest to the current time point as the true state according to a timestamp in which the first VNF state is to be recorded and a timestamp in which the second VNF state is recorded.
  • the first VNF is Determining the true state in the state and the second VNF state, including:
  • VNFM Transmitting, by the VNFM, the first VNF state to a network function virtualization orchestrator NFVO and The second VNF state;
  • the VNFM takes the received VNF status as the true state.
  • the method further includes:
  • the VNFM sends a state out-of-synchronization notification indicating that the first VNF state is inconsistent with the second VNF state to the NFVO.
  • the method further includes:
  • the VNFM updates a timestamp that records the second VNF state.
  • the method Before the network function manager VNFM receives the first VNF state sent by the virtual network function VNF, the method further includes:
  • the virtual network function manager VNFM receives the first VNF status sent by the virtual network function VNF, including:
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • a second aspect of the present application provides a method for synchronizing a VNF state, including:
  • the VNF receives the status query request sent by the VNFM
  • the VNF sends a first VNF state to the VNFM, the first VNF state being a current state of the VNF record itself.
  • the method further includes:
  • the VNFM Receiving, by the VNFM, a notification that the VNF needs to modify the first VNF state to the second VNF state;
  • the second VNF state is a current state of the VNF recorded by the VNFM;
  • the VNF modifies the first VNF state to the second VNF state
  • the VNF After modifying the first VNF state to the second VNF state, the VNF sends execution feedback to the VNFM.
  • the VNF receives the status query request sent by the VNFM, including:
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • the third aspect of the present application provides an apparatus for synchronizing a VNF state, including:
  • a first receiving unit configured to receive a first VNF state sent by the VNF, where the first VNF state is a current state of the VNF record;
  • Obtaining a unit configured to obtain a second VNF state, where the second VNF state is a current state of the VNF recorded by the VNFM;
  • a synchronization unit configured to synchronously record the VNF state according to the first VNF state and the second VNF state.
  • the synchronization unit is configured to:
  • the real state is determined from the first VNF state and the second VNF state, and the recorded VNF state is synchronously recorded according to the real state, where the real state is The first VNF state or the second VNF state.
  • the synchronization unit is configured to:
  • the first VNF state is modified to the second VNF state.
  • the device further includes:
  • Resynchronizing or restarting the unit after the synchronization unit notifies the VNF to modify the first VNF state to the second VNF state, when the VNF is not received, the VNF is sent to be modified
  • the VNF state is resynchronized according to a preset policy or the VNF is restarted.
  • the synchronization unit is used to:
  • the timestamp closest to the current time point corresponds to the recorded VNF state as the true state.
  • the synchronization unit is used :
  • the device further includes a state out-of-synchronization notification unit And sending, to the NFVO, a state out-of-synchronization notification indicating that the first VNF state is inconsistent with the second VNF state.
  • the device further includes:
  • a second VNF status update unit configured to update a timestamp for recording the second VNF status after maintaining the second VNF status.
  • the device also includes:
  • a first sending unit configured to send a status query request to the VNF by using a preset interface before the first receiving unit receives the first VNF status sent by the VNF;
  • the first receiving unit is configured to receive, by using the preset interface, the first VNF state sent by the VNF;
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • a fourth aspect of the present application provides an apparatus for synchronizing a VNF state, including:
  • a second receiving unit configured to receive a status query request sent by the VNFM
  • a second sending unit configured to send, to the VNFM, a first VNF state, where the first VNF state is a current state of the VNF record.
  • the device further includes:
  • a receiving notification unit configured to: after the second sending unit sends the first VNF state to the VNFM, to receive the VNFM and send the characterization of the VNF to modify the first VNF state to the second VNF a notification of a state; the second VNF state is a current state of the VNF recorded by the VNFM; based on the notification, the VNF modifies the first VNF state to the second VNF state; After the first VNF state is modified to the second VNF state, the VNF sends execution feedback to the VNFM.
  • the second receiving unit is configured to:
  • the second sending unit is configured to:
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • the fifth aspect of the present application provides an apparatus for synchronizing a VNF state, including:
  • a receiver configured to receive a first VNF state sent by the VNF, where the first VNF state is a current state of the VNF record;
  • a processor configured to obtain a second VNF state, wherein the second VNF state is a current state of the VNF recorded by the VNFM; and the VNF state is recorded in synchronization according to the first VNF state and the second VNF state.
  • the processor is configured to:
  • the real state is determined from the first VNF state and the second VNF state, and the recorded VNF state is synchronously recorded according to the real state, where the real state is The first VNF state or the second VNF state.
  • the processor is configured to:
  • the transmitter notifies the VNF to modify the first VNF state to the second VNF state.
  • the processor is further configured to:
  • the transmitter After the transmitter is notified by the sender that the VNF is modified to the second VNF state, when the execution feedback indicating that the VNF has been modified by the VNF is not received, according to the pre- Let the policy resynchronize the VNF state or restart the VNF.
  • the processor is configured to:
  • the timestamp closest to the current time point corresponds to the recorded VNF state as the true state.
  • the transmitter is configured to:
  • the receiver is configured to receive, by the NFVO, a timestamp that records the first VNF state and a timestamp that records the second VNF state, and the timestamp that is closest to the current time point corresponds to the recorded VNF state;
  • the processor is configured to use the received VNF status as the real state.
  • the transmitter is further configured to:
  • a state out-of-synchronization notification indicating that the first VNF state and the second VNF state are inconsistent is sent to the NFVO.
  • the processor is further configured to:
  • a timestamp is recorded that records the second VNF state.
  • the transmitter is also used to:
  • the receiver is configured to receive, by using the preset interface, the first VNF state sent by the VNF;
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • the sixth aspect of the present application provides an apparatus for synchronizing a VNF state, including:
  • a receiver configured to receive, by the VNF, a status query request sent by the VNFM;
  • a transmitter configured to send a first VNF state to the VNFM, where the first VNF state is a current state of the VNF record.
  • the receiver is further configured to:
  • the transmitter After the transmitter sends the first VNF state to the VNFM, receiving, by the VNFM, a notification that the VNF needs to modify the first VNF state to the second VNF state;
  • the second VNF state is the current state of the VNF recorded by the VNFM;
  • the electronic device also includes a processor, configured to modify the first VNF state to the second VNF state based on the notification;
  • the transmitter is further configured to send execution feedback to the VNFM after modifying the first VNF state to the second VNF state.
  • the receiver is configured to:
  • the transmitter is used to:
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • the VNFM receives a first VNF state sent by the VNF, the first VNF state is a current state of the VNF record; the VNFM obtains a second VNF state, and the second VNF state a current state of the VNF recorded for the VNFM; the VNFM synchronizes the recorded VNF state according to the first VNF state and the second VNF state.
  • the VNFM only records the state of the second VNF according to the information provided by the manufacturer, the instruction executed by the VNFM, the participating event, and the like, and the second VNF state is not necessarily synchronized with the first VNF state actually recorded by the VNF.
  • the VNFM in the embodiment of the present invention synchronizes the VNF state recorded by the VNF and the VNFM according to the first VNF state and the second VNF state, thereby solving the technical problem that the VNF state is not synchronized in the prior art.
  • the NFV system can perform system control more accurately, thereby avoiding management failures caused by the VNF state being out of synchronization.
  • FIG. 1 is a schematic diagram of a possible NFV architecture in an embodiment of the present application.
  • FIG. 2 is a flowchart of a method for synchronizing a VNF state in an embodiment of the present application
  • FIG. 3 is a flowchart of another method for synchronizing a VNF state in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of interaction between VNF, VNFM, NFVO, and OSS/BSS in the embodiment of the present application;
  • FIG. 5 is a schematic structural diagram of an apparatus for synchronizing a VNF state according to an embodiment of the present application
  • FIG. 6 is a schematic structural diagram of another apparatus for synchronizing a VNF state according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a device for synchronizing a VNF state according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another device in a synchronous VNF state according to an embodiment of the present application.
  • the present application provides a method and apparatus for synchronizing a VNF state to implement a synchronous VNF state between the VNF and the VNFM to avoid management failures caused by the VNF state being out of synchronization.
  • the solution to the technical solution provided by the present application includes:
  • the VNFM synchronizes the recorded VNF state according to the first VNF state sent by the VNF and the second VNF state recorded by the VNFM.
  • the VNFM only records the state of the second VNF according to the information provided by the manufacturer, the instruction executed by the VNFM, the participating event, and the like, and the second VNF state is not necessarily synchronized with the first VNF state actually recorded by the VNF. Therefore, the VNFM in the embodiment of the present invention synchronizes the VNF state recorded by the VNF and the VNFM according to the first VNF state and the second VNF state, thereby solving the technical problem that the VNF state is not synchronized in the prior art. In turn, the NFV system can perform system control more accurately, thereby avoiding management failures caused by the VNF state being out of synchronization.
  • An embodiment of the present invention provides a method for synchronizing a VNF state.
  • a possible NFV architecture is applicable to a method for synchronizing a VNF state in an embodiment of the present invention.
  • the architecture includes: Operation Support System/Business Support System (English: Operation Support System/Business Support System; OSS/BSS), Element Management System (English: Element Management System; EMS), VNF, NFVI, NFVO, Network Service catalog NS Catalog, virtual network function catalog VNF Catalog, network function virtualization instance NFV Instances, network function virtualization infrastructure resources NFVI Resources, VNFM and virtualization infrastructure manager (English: Virtualized Infrastructure Manager; referred to as: VIM).
  • EMS is used to perform traditional fault, configuration, billing, performance, and security management functions for the VNF.
  • the NS Catalog stores all NS descriptor information that has been loaded.
  • the VNF Catalog stores all the packages that have been loaded.
  • NFV Instances store state information of all running NS, VNF and other instances, such as assigned network addresses, operation records, and so on.
  • NFVI Resources stores the status of all NFVI resources, including available, reserved, and allocated NFVI resources.
  • VIM is the management unit of NFVI. It includes management hardware resource management and virtual resource management. It can be divided into cloud computing management (such as OpenStack cloud management system) and network management (such as software defined network). Network; referred to as: SDN) controller) two parts.
  • SDN software defined network
  • a first aspect of the embodiment of the present invention is to introduce a method for synchronizing a VNF state in this embodiment from a VNFM side.
  • the method includes:
  • the virtual network function manager VNFM receives the first VNF status sent by the VNF.
  • the VNFM obtains a second VNF state.
  • VNFM The VNFM synchronizes the recorded VNF state according to the first VNF state and the second VNF state.
  • the VNF status in the embodiment of the present invention includes, but is not limited to, instantiated not configured instantiated not Configured, uninstantiated Null, terminated Terminated, inactive Inactive, active Active, and the like.
  • the first VNF state is the current state of the VNF recorded by the VNF itself
  • the second VNF state is the VNF that is recorded and maintained by the VNFM according to information provided by the manufacturer, instructions executed by the VNFM, participating events, and the like. Current status.
  • the VNFM sends a status query request to the VNF through the preset interface before S101.
  • the status query request characterizing the VNFM needs to query the current state of the VNF recorded by the VNF, that is, the first VNF state.
  • the VNFM can periodically send status query requests to the VNF, such as every 1 minute, 1.55 minutes, and the like. You can also send status queries based on status aging and timeout mechanisms. Alternatively, when the VNFM receives the NFVO command, it sends a status inquiry request to the VNF.
  • the person skilled in the art to which the present application belongs can be set according to actual conditions, and the present application does not specifically limit the present application.
  • S101 includes:
  • the VNFM receives the first VNF state sent by the VNF through the preset interface.
  • the VNFM sends a status query request and a preset interface that receives the first VNF state, and is a state management dedicated interface between the VNFM and the VNF.
  • the state management dedicated interface can implement VNFM and VNF interaction, and is specifically used to transmit a status query request and a first VNF state.
  • the universal interface for interaction between the VNF and the VNFM can also be extended as a preset interface.
  • the get VNF fault information operation may be obtained by expanding the VNF fault information under the fault management fault management interface, so that the fault management interface is used as the preset interface of the transmission status query request and the first VNF state.
  • the VNFM After receiving the first VNF state, the VNFM performs S102, that is, obtains the second VNF state of the VNFM record locally. After the VNFM obtains the first VNF state and the second VNF state, it proceeds to S103, that is, synchronizes the VNF states recorded by the VNF and the VNFM.
  • the VNF status of the synchronous recording includes:
  • VNFM Determining, by the VNFM, whether the first VNF state is consistent with the second VNF state
  • the VNFM maintains the recorded second VNF state when the first VNF state is consistent with the second VNF state
  • the VNFM determines the real state from the first VNF state and the second VNF state, and records synchronously according to the real state.
  • the VNF state, the real state is the first VNF state or the second VNF state.
  • the VNFM and the VNF each record a VNF state. Therefore, the VNFM will first compare the first VNF state with the second VNF state to determine whether the first VNF state and the second VNF state are consistent. For example, if the first VNF state is “NULL” and the second VNF state is “NULL”, it is determined that the first VNF state and the second VNF state are consistent. Assuming that the first VNF state is "Inactive” and the second VNF state is "NULL”, it is determined that the first VNF state and the second VNF state are inconsistent.
  • the VNFM when the first VNF state and the second VNF state are consistent, it indicates that the current state of the VNF recorded by the VNFM is consistent with the current state of the VNF recorded by the VNF itself. Therefore, the VNFM maintains the recorded second VNF state, and the synchronized VNF and VNFM records can be realized. Recorded the VNF status.
  • the VNFM may further include:
  • the VNFM updates a timestamp that records the second VNF state.
  • the VNFM needs to update the timestamp of the second VNF state in addition to maintaining the VNF state recorded by the VNFM as the second VNF state.
  • the update time of the most recent second VNF state is determined.
  • the timestamp of the second VNF state may be updated to the timestamp of the VNFM sending status query request time, or may be updated to receive the timestamp of the first VNF state time, and may also be updated to determine the first VNF state.
  • the time stamp of the time coincident with the second VNF state, and the like.
  • the real state in the embodiment of the present invention indicates the state of the VNF in the entire NFV system, not only the state of one device of the VNF.
  • the VNFM may determine the true state from the first VNF state and the second VNF state by itself.
  • the VNFM may determine the real state. Two types will be listed below. In the specific implementation process, including but not limited to the following two.
  • the VNFM uses the VNF state corresponding to the timestamp closest to the current time point as the true state according to the timestamp in which the first VNF state is to be recorded and the timestamp in which the second VNF state is recorded.
  • the timestamp of the VNF state represents the time at which the VNF state is recorded or updated.
  • the timestamp is closest to the current time point, indicating that the time at which the corresponding VNF state is recorded is closest to the current time. Then the VNF state is likely to be closer to the true state of the VNF. Therefore, the VNF state corresponding to the latest time stamp is determined to be the real state.
  • the first VNF state is “Null”
  • the timestamp of the first VNF state is “2015-1-111:59:30”
  • the second VNF state is “Inactive”
  • the timestamp of the second VNF state is "2015-1-111:59:45”.
  • the timestamp of the second VNF state is the latest, closest to the current time point. Therefore, the VNFM determines that the second VNF state "Inactive" is the real state.
  • the VNFM may further report the “abnormal” status to the NFVO to query the corresponding resources (such as link resources, storage resources, etc.) by using the NFVO to determine the VNF.
  • the exception is caused by the underlying resources, such as storage device damage, link interruption, power outage, etc., or internal causes of VNF, such as storage out of bounds or infinite loops.
  • the VNFM can start the fault handling. If it is caused by the VNF internal cause, the VNFM can report the abnormal VNF status to the OSS and cooperate with the OSS or EMS fault handling process to eliminate the VNF anomaly as soon as possible.
  • the VNFM may also request the NFVO to help determine the real state, including:
  • the VNFM takes the received VNF status as the true state.
  • the VNFM needs to provide the first VNF state and the second VNF state to the NFVO.
  • NFVO determines the real state.
  • the NFVO records the timestamp of the first VNF state and the timestamp of the second VNF state, and the timestamp closest to the current time point corresponds to the recorded VNF state as the true state returns VNFM.
  • the timestamp is closest to the current time point, indicating that the time at which the corresponding VNF state is recorded is closest to the current time, then the VNF state may be closer to the true state of the VNF. Therefore, the VNF state corresponding to the latest time stamp is determined to be the real state.
  • the first VNF state is “Null”
  • the timestamp of the first VNF state is “2015-1-111:59:30”
  • the second VNF state is “Inactive”
  • the timestamp of the second VNF state is "2015-1-111:59:45”.
  • the timestamp of the second VNF state is the latest, closest to the current time point. Therefore, NFVO determines that the second VNF state "Inactive" is the real state.
  • the NFVO determines the VNF state returning to the VNFM from the first VNF state and the second VNF state based on the failure information.
  • the fault information in the embodiment of the present invention includes, but is not limited to, device fault information, virtual resource usage information, traffic change, connection state change, operation log, and the like.
  • NFVO uses a fault analysis method to determine the VNF status returned to VNFM based on the fault information. The following is a few examples.
  • the VNFM receives the VIM notification and finds that the link is abnormal. Therefore, the VNF is abnormal, so the recorded second VNF status is “abnormal”.
  • the VNFM sends the first VNF state, the second VNF state, and link exception information to the NFVO.
  • NFVO can determine which VNF is causing the link anomaly by querying the operation of other VNFs connected to this VNF that records the first VNF state. If it is caused by other VNFs, it is very likely that this VNF is normal, so the first VNF state is determined to be true, thereby returning the first VNF state to the VNFM. If the other VNFs are not abnormal, then it is very likely that the VNF has an abnormality, so it is determined that the second VNF state is a real state, and the second VNF state is returned to the VNFM.
  • the NFVO determines that the first VNF state is a real state, and returns the first VNF state to the VNFM.
  • the NFVO may further query corresponding resources (such as link resources, storage resources, and the like), and determine that the abnormality of the VNF is caused by the underlying resource, such as a storage device. Damage, link interruption, power outage, etc., or internal causes of VNF, such as storage out of bounds or infinite loops.
  • resources such as link resources, storage resources, and the like
  • the VNFM can initiate fault handling. If it is caused by the VNF internal cause, the VNFM can report the abnormal VNF status to the OSS and cooperate with the OSS or EMS fault handling process to eliminate the VNF anomaly as soon as possible.
  • the VNFM receives the VNF status returned by the NFVO and returns the returned VNF status as the real state.
  • the VNFM when the VNFM determines the first VNF state and the second VNF After the status is inconsistent, the VNFM also needs to send a status out of synchronization notification to the NFVO.
  • the state out-of-synchronization notification is used to indicate that the first VNF state and the second VNF state are inconsistent, or the first VNF state and the second VNF state are out of synchronization.
  • the VNFM may first send a status out-of-synchronization notification to the NFVO, and then start to determine the true state by itself or request the NFVO to determine the true state.
  • the VNFM can also send a status out of synchronization notification to the NFVO at the same time as it begins to determine its true state.
  • the VNFM first begins to determine the true state and then sends a status out of synchronization notification.
  • the state out-of-synchronization notification sent by the VNFM to the NFVO may include the first VNF state and the second VNF state, or may not include the first VNF state and the second VNF state.
  • the first VNF state and the second VNF state sent by the VNFM to the NFVO may be included in the state out-of-synchronization notification.
  • the VNFM separately sends a state out-of-synchronization notification to the NFVO, and the state out-of-synchronization notification may be sent before the first VNF state and the second VNF state, or may be sent after the first VNF state and the second VNF state are sent.
  • the person skilled in the art to which the present application belongs can be set according to actual conditions, and the present application does not specifically limit the present application.
  • the NFVO After receiving the state out-of-synchronization notification, the NFVO avoids the next round of VNF state synchronization during the determination of the real state, and avoids the NFVO issuing a new lifecycle event processing command to change the VNF state and cause an abnormality. NFVO may also need to further inform the OSS/BSS that the state is out of synchronization between VNF and VNFM.
  • the VNFM can send real states, such as NFVO, OSS/BSS, etc., to other devices that need to query the real state. Furthermore, when controlling and managing the VNF, NFVO, OSS/BSS, etc., can determine a reasonable control method according to the real state, thereby reducing the occurrence of management failure.
  • synchronizing the VNF states recorded by the VNFM and the VNF according to the real state may include:
  • the VNFM modifies the second VNF state to the first VNF state when the first VNF state is the real state
  • the VNFM When the second VNF state is the real state, the VNFM notifies the VNF to modify the first VNF state to the second VNF state.
  • the VNFM needs to modify the second VNF state to the first VNF state.
  • the VNFM After modifying the second VNF state to the first VNF state, it is also necessary to update the VNFM to record the timestamp of the VNF state.
  • the VNFM After the modification is completed, the VNFM notifies the NFVO, and further informs the OSS/BSS to resume the synchronized VNF state through the NFVO, waiting for the next round of synchronization VNF status.
  • the VNFM modifies the VNF status recorded by the VNFM, it also needs to notify the EMS. And notify NFVO, and then notify the OSV VNFM through the NFVO that the VNF status has changed.
  • the VNFM When the second VNF state is the real state, the VNFM will notify the VNF to modify the first VNF state. Specifically, the VNFM sends a notification to the VNF and sends a second VNF status to the VNF. Alternatively, the VNFM includes the second VNF state in the notification, and after receiving the notification, the VNF knows that the VNF state of the record needs to be modified, and on the other hand, obtains the second VNF state from the notification.
  • the VNF modifies the VNF state recorded by itself from the first VNF state to the second VNF state.
  • the VNF also needs to update the timestamp for recording the VNF state.
  • the embodiment of the present invention further includes:
  • the VNFM resynchronizes the VNF state or restarts the VNF according to a preset policy when the execution feedback indicating that the VNF has completed modification is not received by the VNF.
  • the VNFM after receiving the VNFM notification and completing the modification, the VNF sends execution feedback to the VNFM. Therefore, if the VNFM receives the execution feedback of the VNF transmission, it knows that the VNF has modified the first VNF state to the second VNF state. Then the VNFM notifies the NFVO, and further informs the OSS/BSS to resume the synchronous VNF state through the NFVO, waiting for the next round of synchronization VNF status.
  • the VNFM When the execution feedback is not received, indicating that the VNF fails to modify the VNF state, the VNFM will resynchronize the VNF state or restart the VNF according to the preset policy.
  • the preset policy in the embodiment of the present invention is: the execution feedback of the VNF transmission is not received within the preset duration, and the VNF state is re-synchronized; and, when the number of re-synchronizing the VNF state exceeds a preset number, restarting VNF.
  • the preset duration can be 1 minute, 63 seconds, etc., and the preset number can also be 3 times, 4 times, and the like.
  • a person of ordinary skill in the art may set a preset time length and a preset number according to actual needs, and the present application does not specifically limit the present application.
  • the VNFM When the VNFM sends a notification within 30 seconds and no execution feedback is received, the VNFM will resynchronize, ie start the second synchronization. If the VNFM receives execution feedback after the second synchronization of the VNF state, the current round of synchronization ends. The VNFM notifies the NFVO, and further informs the OSS/BSS to resume the synchronized VNF state through the NFVO, waiting for the next round of synchronized VNF status. If the VNFM does not receive execution feedback after the second synchronization of the VNF state, the VNFM will start the third synchronization. When the VNFM receives the execution feedback after the third synchronization VNF state, the current round of synchronization ends; if the VNFM does not receive the execution feedback after the third synchronization of the VNF state, the VNFM restarts the VNF.
  • the preset policy may further: re-synchronize the VNF state after receiving the execution feedback of the VNF transmission within the first preset duration; and, during the resynchronization of the VNF state, if the notification is sent to the VNF, the second preset is The execution feedback was not received within the duration and the VNF was restarted.
  • a person of ordinary skill in the art may set a first preset duration and a second preset duration according to actual needs.
  • the VNFM When the VNFM sends a notification within 30 seconds and no execution feedback is received, the VNFM will resynchronize the VNF state. After the VNFM resynchronizes the VNF state, it will send a notification to the VNF again. If the execution feedback is received within 35 seconds after the notification is sent, the current round of synchronization ends; if the execution feedback is not received within 35 seconds after the notification is sent, the VNFM restarts the VNF.
  • a second aspect of the embodiment of the present invention is to introduce a method for synchronizing a VNF state in the embodiment from the VNF side.
  • the method includes:
  • the VNF receives the status query request sent by the VNFM.
  • VNF sends a first VNF state to the VNFM.
  • S201 includes:
  • S202 includes:
  • the VNF sends the first VNF state to the VNFM through the preset interface.
  • the VNF receiving status query request and the preset interface for sending the first VNF state are a state management dedicated interface or a general interface between the VNFM and the VNF.
  • the state management dedicated interface or the general interface is introduced, so the description will not be repeated here.
  • the VNFM After receiving the first VNF state reported by the VNF, the VNFM is based on the first VNF state, and The second VNF state recorded by itself, the VNF state recorded by the synchronized VNF and VNFM.
  • the VNFM when the first VNF state and the second VNF state are consistent, it indicates that the current state of the VNF record is synchronized with the current state of the VNF recorded VNF, and therefore neither the VNF nor the VNFM need to modify the recorded VNF state.
  • the VNFM will determine the real state from the first VNF state and the second VNF state, and then synchronize the recorded VNF state according to the real state.
  • the VNFM modifies the second VNF state to the first VNF state; or when the second VNF state is the real state, the VNFM notifies the VNF to modify the first VNF state to the second state. VNF status.
  • the method further includes:
  • the VNFM Receiving, by the VNFM, a notification that the VNF needs to modify the first VNF state to the second VNF state;
  • the second VNF state is a current state of the VNF recorded by the VNFM;
  • the VNF modifies the first VNF state to the second VNF state
  • the VNF After modifying the first VNF state to the second VNF state, the VNF sends execution feedback to the VNFM.
  • the VNF receives the notification sent by the VNFM.
  • the notification sent by the VNFM indicates that the VNF needs to modify the recorded VNF state to the second VNF state.
  • the VNF parses the second VNF state from the notification or from other information sent by the VNFM.
  • the VNF modifies the first VNF state recorded by itself to the second VNF state.
  • the VNF also updates the timestamp for recording the VNF status.
  • the VNF After the modification is completed, in order to inform the VNFM that the first VNF state has been modified to the second VNF state, the VNF also sends execution feedback to the VNFM.
  • a third aspect of the embodiments of the present invention provides a device for synchronizing a VNF state.
  • the device includes:
  • the first receiving unit 501 is configured to receive a first VNF state sent by the VNF, where the first VNF state is a current state of the VNF record;
  • the obtaining unit 502 is configured to obtain a second VNF state, where the second VNF state is a current state of the VNF recorded by the VNFM;
  • the synchronization unit 503 is configured to synchronously record the VNF state according to the first VNF state and the second VNF state.
  • the synchronization unit 503 is configured to:
  • the real state is determined from the first VNF state and the second VNF state, and the recorded VNF state is synchronously recorded according to the real state, where the real state is The first VNF state or the second VNF state.
  • the device further includes:
  • Resynchronizing or restarting the unit after the synchronization unit 503 notifies the VNF to modify the first VNF state to the second VNF state, when the VNF is not received, the representation of the VNF is completed When the modified execution feedback is performed, the VNF state is resynchronized according to a preset policy or the VNF is restarted.
  • the synchronization unit 503 is configured to:
  • the timestamp closest to the current time point corresponds to the recorded VNF state as the true state.
  • the synchronization unit 503 is configured to:
  • the device further includes a state out-of-synchronization notification unit, configured to send, after the synchronization unit 503 determines that the first VNF state and the second VNF state are inconsistent, to send the first VNF state to the NFVO The status of the second VNF state is inconsistent.
  • a state out-of-synchronization notification unit configured to send, after the synchronization unit 503 determines that the first VNF state and the second VNF state are inconsistent, to send the first VNF state to the NFVO The status of the second VNF state is inconsistent.
  • the device further includes:
  • the second VNF status update unit is configured to update a timestamp for recording the second VNF status after the synchronization unit 503 maintains the second VNF status.
  • the device further includes:
  • a first sending unit configured to send a status query request to the VNF by using a preset interface before the first receiving unit 501 receives the first VNF status sent by the VNF;
  • the first receiving unit 501 is configured to receive, by using the preset interface, the first VNF state sent by the VNF.
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • the fourth aspect of the present application provides another apparatus for synchronizing a VNF state, as shown in FIG. 6, including:
  • the second receiving unit 601 is configured to receive a status query request sent by the VNFM.
  • the second sending unit 602 is configured to send a first VNF state to the VNFM, where the first VNF state is a current state of the VNF record.
  • the device further includes:
  • a receiving notification unit configured to: after the second sending unit 602 sends the first VNF state to the VNFM, to receive the VNFM to send the representation of the VNF, the first VNF state needs to be modified to the second a notification of a VNF state; the second VNF state is a current state of the VNF recorded by the VNFM; based on the notification, the VNF modifies the first VNF state to the second VNF state; After the first VNF state is modified to the second VNF state, the VNF sends execution feedback to the VNFM.
  • the second receiving unit 601 is configured to:
  • the second sending unit 602 is configured to:
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • a fifth aspect of the embodiments of the present invention provides a device for synchronizing a VNF state.
  • a device for synchronizing a VNF state For the meaning of the term and the specific implementation of the device shown in FIG. 7, reference may be made to the foregoing descriptions of FIG. 1 to FIG. 6 and the related embodiments.
  • the device includes:
  • the receiver 701 is configured to receive a first VNF state sent by the VNF, where the first VNF state is a current state of the VNF record;
  • the processor 703 is configured to obtain a second VNF state, where the second VNF state is a VNFM Recording the current state of the VNF; synchronizing the recorded VNF state according to the first VNF state and the second VNF state.
  • the processor 703 is configured to:
  • the real state is determined from the first VNF state and the second VNF state, and the recorded VNF state is synchronously recorded according to the real state, where the real state is The first VNF state or the second VNF state.
  • the processor 703 is configured to:
  • the transmitter 702 notifies the VNF to modify the first VNF state to the second VNF state.
  • processor 703 is further configured to:
  • the transmitter 702 After the transmitter 702 notifies the VNF to modify the first VNF state to the second VNF state, when the VNF is not received by the receiver 701, the VNF is modified to complete the modification.
  • the VNF state is resynchronized according to a preset policy or the VNF is restarted.
  • the processor 703 is configured to:
  • the timestamp closest to the current time point corresponds to the recorded VNF state as the true state.
  • the transmitter 702 is configured to:
  • the receiver 701 is configured to receive, by the NFVO, a timestamp that records the first VNF state and a timestamp that records the second VNF state, and the timestamp closest to the current time point corresponds to the recorded VNF. status;
  • the processor 703 is configured to use the received VNF state as the real state.
  • processor 703 is further configured to:
  • a state out-of-synchronization notification indicating that the first VNF state and the second VNF state are inconsistent is sent to the NFVO.
  • processor 703 is further configured to:
  • a timestamp is recorded that records the second VNF state.
  • the transmitter 702 is further configured to:
  • the receiver 701 Before the receiver 701 receives the first VNF state sent by the virtual network function VNF, sending a status query request to the VNF through a preset interface;
  • the receiver 701 is configured to receive, by using the preset interface, the first VNF state sent by the VNF.
  • the preset interface is a state management dedicated interface or a universal interface between the VNFM and the VNF.
  • bus 700 can include any number of interconnected buses and bridges, and bus 700 will include one or more processors and memory 704 represented by processor 703. The various circuits of the memory are linked together.
  • the bus 700 can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
  • Bus interface 705 provides an interface between bus 700 and receiver 701 and transmitter 702. Receiver 701 and send The 702 may be the same component, a transceiver, providing means for communicating with various other devices on a transmission medium.
  • Processor 703 is responsible for managing bus 700 and normal processing, while memory 704 can be used to store data used by processor 703 in performing operations.
  • VNFM side synchronization VNF state described in the foregoing embodiments are also applicable to the device of the embodiment, and the foregoing detailed description of the method for synchronizing the VNF state of the VNFM side and the device execution process for synchronizing the VNF state, A method for implementing a device for synchronizing a VNF state in this embodiment can be clearly understood by those skilled in the art, and therefore, for the sake of brevity of the description, details are not described herein.
  • the sixth aspect of the embodiment of the present application further provides another device for synchronizing the VNF state.
  • the method includes:
  • the receiver 801 is configured to receive, by the VNF, a status query request sent by the VNFM.
  • the transmitter 802 is configured to send a first VNF state to the VNFM, where the first VNF state is a current state of the VNF record.
  • the receiver 801 is further configured to:
  • the transmitter 802 sends the first VNF state to the VNFM, receiving a notification that the VNFM sends a representation that the VNF needs to modify the first VNF state to the second VNF state;
  • the second VNF state is a current state of the VNF recorded by the VNFM;
  • the receiver 801 is configured to:
  • the transmitter 802 is configured to:
  • the preset interface is a state management dedicated interface between the VNFM and the VNF. Or a generic interface.
  • bus 800 can include any number of interconnected buses and bridges, and bus 800 will include one or more processors and memory 804 represented by processor 803.
  • the various circuits of the memory are linked together.
  • the bus 800 can also link various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art, and therefore, will not be further described herein.
  • Bus interface 805 provides an interface between bus 800 and receiver 801 and transmitter 802.
  • Receiver 801 and transmitter 802 may be the same component, i.e., a transceiver, providing means for communicating with various other devices on a transmission medium.
  • the processor 803 is responsible for managing the bus 800 and the usual processing, and the memory 804 can be used to store data used by the processor 803 when performing operations.
  • VNF side synchronization VNF state described in the foregoing embodiments are also applicable to the apparatus of the present embodiment, and the foregoing detailed description of the method for synchronizing the VNF state of the VNF side and the apparatus for synchronizing the VNF state is described in detail.
  • a method for implementing a device for synchronizing a VNF state in this embodiment can be clearly understood by those skilled in the art, and therefore, for the sake of brevity of the description, details are not described herein.
  • the VNFM receives a first VNF state sent by the VNF, the first VNF state is a current state of the VNF record; the VNFM obtains a second VNF state, and the second VNF state a current state of the VNF recorded for the VNFM; the VNFM synchronizes the recorded VNF state according to the first VNF state and the second VNF state.
  • the VNFM only refers to the information provided by the manufacturer, the instructions executed by the VNFM, and the participation. The condition of the second VNF is recorded, such that the second VNF state is not necessarily synchronized with the first VNF state actually recorded by the VNF.
  • the VNFM in the embodiment of the present invention synchronizes the VNF state recorded by the VNF and the VNFM according to the first VNF state and the second VNF state, thereby solving the technical problem that the VNF state is not synchronized in the prior art.
  • the NFV system can perform system control more accurately, thereby avoiding management failures caused by the VNF state being out of synchronization.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device. Having a series of operational steps performed on a computer or other programmable device to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing one or more processes and/or block diagrams in the flowchart. The steps of a function specified in a box or multiple boxes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请实施例提供了一种同步VNF状态的方法和装置,用以实现VNF和VNFM之间同步VNF状态,避免因VNF状态不同步而导致的管理故障。VNFM侧同步VNF状态的方法包括:VNFM接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;所述VNFM获得第二VNF状态,所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。VNF侧同步VNF状态的方法包括:VNF接收VNFM发送的状态查询请求;所述VNF向所述VNFM发送第一VNF状态。

Description

一种同步虚拟网络功能VNF状态的方法、装置和设备 技术领域
本发明涉及通信领域,尤其涉及一种同步虚拟网络功能VNF状态的方法和装置。
背景技术
网络功能虚拟化(英文:Network Function Virtualization;简称:NFV),是指通过虚拟化技术,在通用的高性能服务器、交换机和存储中实现部分网络功能。
当前标准中定义的NFV端到端架构中,主要包括三个部分:虚拟网络功能(英文:Virtualized Network Function;简称:VNF)、NFV基础设施(英文:NFV Infrastructure;简称:NFVI)和管理和编排(英文:Management and Orchestration;简称:MANO)。VNF用于虚拟传统网络中的物理网络功能、性能和接口等。NFVI提供整个NFV系统运行的资源。MANO中的NFV编排器(英文:NFV Orchestrator;简称:NFVO)负责对网络服务(英文:Network Service;简称:NS,由多个VNF组成的服务单元)进行生命周期管理,并对整个NFV系统的资源进行编排和管理。VNF管理器(英文:VNF Manager;简称:VNFM)负责管理VNF生命周期。
在运行过程中,VNF会记录自身的状态。VNFM根据厂商提供的信息,VNFM执行的指令,参与的事件等记录并维护VNF的状态。VNFM会将记录和维护的VNF状态提供给NFVO和运营支撑系统(英文:Operation Support System;简称:OSS)。
然而,现有技术中,VNF与VNFM的所记录的VNF状态可能是不同步的,进而就可能导致NFV系统出现管理故障。例如VNF处于故障状态,但是VNFM记录的VNF状态为空闲状态。那么假设VNFM对VNF执行了查询操作时,VNF很有可能会拒绝操作或者出现操作异常。
发明内容
本申请实施例提供了一种同步VNF状态的方法、装置和设备,用以实现VNF和VNFM之间同步VNF状态,避免因VNF状态不同步而导致的管理故障。
本申请第一方面提供了一种同步虚拟网络功能VNF状态的方法,包括:
虚拟网络功能管理器VNFM接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
所述VNFM获得第二VNF状态,所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
结合第一方面,在第一方面的第一种可能的实现方式中,所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态,包括:
所述VNFM判断所述第一VNF状态与所述第二VNF状态是否一致;
当所述第一VNF状态与所述第二VNF状态一致时,所述VNFM维持记录的所述第二VNF状态;
当所述第一VNF状态与所述第二VNF状态不一致时,所述VNFM从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述 真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,根据所述真实状态同步记录的VNF状态,包括:
当所述第一VNF状态为所述真实状态时,所述VNFM将所述第二VNF状态修改为所述第一VNF状态;或
当所述第二VNF状态为所述真实状态时,所述VNFM通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,在所述VNFM通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,所述方法还包括:
当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,所述VNFM按照预设策略重新同步所述VNF状态或重启所述VNF。
结合第一方面的第一种可能的实现方式至第一方面的第三种可能的实现方式中的任意一种,在第一方面的第四种可能的实现方式中,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,包括:
所述VNFM根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
结合第一方面的第一种可能的实现方式至第一方面的第三种可能的实现方式中的任意一种,在第一方面的第五种可能的实现方式中,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,包括:
所述VNFM向网络功能虚拟化编排器NFVO发送所述第一VNF状态和 所述第二VNF状态;
接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;
所述VNFM将接收到的VNF状态作为所述真实状态。
结合第一方面的第四种可能的实现方式或第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,在判断所述第一VNF状态与所述第二VNF状态不一致之后,所述方法还包括:
所述VNFM向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
结合第一方面的第一种可能的实现方式,在第一方面的第七种可能的实现方式中,在维持所述第二VNF状态之后,所述方法还包括:
所述VNFM更新记录所述第二VNF状态的时间戳。
结合第一方面或第一方面的第一种可能的实现方式至第一方面的第七种可能的实现方式中的任意一种,在第一方面的第八种可能的实现方式中,在虚拟网络功能管理器VNFM接收虚拟网络功能VNF发送的第一VNF状态之前,所述方法还包括:
所述VNFM通过预设接口向所述VNF发送状态查询请求;
虚拟网络功能管理器VNFM接收虚拟网络功能VNF发送的第一VNF状态,包括:
所述VNFM通过所述预设接口接收所述VNF发送的所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本申请第二方面提供了一种同步VNF状态的方法,包括:
VNF接收VNFM发送的状态查询请求;
所述VNF向所述VNFM发送第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态。
结合第二方面,在第二方面的第一种可能的实现方式中,在所述VNF向所述VNFM发送第一VNF状态之后,所述方法还包括:
接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;
在将所述第一VNF状态修改为所述第二VNF状态后,所述VNF向所述VNFM发送执行反馈。
结合第二方面,或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,VNF接收VNFM发送的状态查询请求,包括:
通过预设接口接收所述状态查询请求;
所述VNF向所述VNFM发送所述VNF记录的第一VNF状态,包括:
所述VNF通过所述预设接口向所述VNFM发送所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本申请第三方面提供了一种同步VNF状态的装置,包括:
第一接收单元,用于接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
获得单元,用于获得第二VNF状态,所述第二VNF状态为VNFM记录的所述VNF的当前状态;
同步单元,用于根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
结合第三方面,在第三方面的第一种可能的实现方式中,所述同步单元用于:
判断所述第一VNF状态与所述第二VNF状态是否一致;当所述第一VNF状态与所述第二VNF状态一致时,维持记录的所述第二VNF状态;当所述第一VNF状态与所述第二VNF状态不一致时,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述同步单元用于:
当所述第一VNF状态为所述真实状态时,将所述第二VNF状态修改为所述第一VNF状态;或当所述第二VNF状态为所述真实状态时,通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述装置还包括:
重新同步或重启单元,用于在所述同步单元通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,按照预设策略重新同步所述VNF状态或重启所述VNF。
结合第三方面的第一种可能的实现方式至第三方面的第三种可能的实现 方式中的任意一种,在第三方面的第四种可能的实现方式中,所述同步单元用于:
根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
结合第三方面的第一种可能的实现方式至第三方面的第三种可能的实现方式中的任意一种,在第三方面的第五种可能的实现方式中,所述同步单元用于:
向NFVO发送所述第一VNF状态和所述第二VNF状态;接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;将接收到的VNF状态作为所述真实状态。
结合第三方面的第四种可能的实现方式或第三方面的第五种可能的实现方式,在第三方面的第六种可能的实现方式中,所述装置还包括状态失步发通知单元,用于向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
结合第三方面的第一种可能的实现方式,在第三方面的第七种可能的实现方式中,所述装置还包括:
第二VNF状态更新单元,用于在维持所述第二VNF状态之后,更新记录所述第二VNF状态的时间戳。
结合第三方面或第三方面的第一种可能的实现方式至第三方面的第七种可能的实现方式中的任意一种,在第三方面的第八种可能的实现方式中,所述装置还包括:
第一发送单元,用于在所述第一接收单元接收VNF发送的第一VNF状态之前,通过预设接口向所述VNF发送状态查询请求;
所述第一接收单元用于通过所述预设接口接收所述VNF发送的所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本申请第四方面提供了一种同步VNF状态的装置,包括:
第二接收单元,用于接收VNFM发送的状态查询请求;
第二发送单元,用于向所述VNFM发送第一VNF状态,所述第一VNF状态为VNF记录的自身的当前状态。
结合第四方面,在第四方面的第一种可能的实现方式中,所述装置还包括:
接收通知单元,用于在所述第二发送单元向所述VNFM发送第一VNF状态之后之后,接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;在将所述第一VNF状态修改为所述第二VNF状态后,所述VNF向所述VNFM发送执行反馈。
结合第四方面,或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述第二接收单元用于:
通过预设接口接收所述状态查询请求;
所述第二发送单元用于:
通过所述预设接口向所述VNFM发送所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本申请第五方面提供了一种同步VNF状态的设备,包括:
接收器,用于接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
处理器,用于获得第二VNF状态,所述第二VNF状态为VNFM记录的所述VNF的当前状态;根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
结合第五方面,在第五方面的第一种可能的实现方式中,所述处理器用于:
判断所述第一VNF状态与所述第二VNF状态是否一致;当所述第一VNF状态与所述第二VNF状态一致时,维持记录的所述第二VNF状态;当所述第一VNF状态与所述第二VNF状态不一致时,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
结合第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,所述处理器用于:
当所述第一VNF状态为所述真实状态时,将所述第二VNF状态修改为所述第一VNF状态;或当所述第二VNF状态为所述真实状态时,通过所述电子设备的发送器通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
结合第五方面的第二种可能的实现方式,在第五方面的第三种可能的实现方式中,所述处理器还用于:
在通过所述发送器通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,按照预设策略重新同步所述VNF状态或重启所述VNF。
结合第五方面的第一种可能的实现方式至第五方面的第三种可能的实现方式中的任意一种,在第五方面的第四种可能的实现方式中,所述处理器用于:
根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
结合第五方面的第一种可能的实现方式至第五方面的第三种可能的实现方式中的任意一种,在第五方面的第五种可能的实现方式中,所述发送器用于:
向NFVO发送所述第一VNF状态和所述第二VNF状态;
所述接收器用于接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;
所述处理器用于将接收到的VNF状态作为所述真实状态。
结合第五方面的第四种可能的实现方式或第五方面的第五种可能的实现方式,在第五方面的第六种可能的实现方式中,所述发送器还用于:
在判断所述第一VNF状态与所述第二VNF状态不一致之后,向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
结合第五方面的第一种可能的实现方式,在第五方面的第七种可能的实现方式中,所述处理器还用于:
在维持所述第二VNF状态之后,更新记录所述第二VNF状态的时间戳。
结合第五方面或第五方面的第一种可能的实现方式至第五方面的第七种可能的实现方式中的任意一种,在第五方面的第八种可能的实现方式中,所述发送器还用于:
在所述接收器接收虚拟网络功能VNF发送的第一VNF状态之前,通过预设接口向所述VNF发送状态查询请求;
所述接收器用于通过所述预设接口接收所述VNF发送的所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本申请第六方面提供了一种同步VNF状态的设备,包括:
接收器,用于VNF接收VNFM发送的状态查询请求;
发送器,用于向所述VNFM发送第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态。
结合第六方面,在第六方面的第一种可能的实现方式中,所述接收器还用于:
在所述发送器向所述VNFM发送所述第一VNF状态之后,接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
所述电子设备还包括处理器,用于基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;
所述发送器还用于在将所述第一VNF状态修改为所述第二VNF状态后,向所述VNFM发送执行反馈。
结合第六方面,或第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,所述接收器用于:
通过预设接口接收所述状态查询请求;
所述发送器用于:
通过所述预设接口向所述VNFM发送所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:
在本发明的技术方案中,VNFM接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;所述VNFM获得第二VNF状态,所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。而现有技术中VNFM仅根据厂商提供的信息,VNFM执行的指令,参与的事件等记录第二VNF的状态,导致第二VNF状态与VNF实际记录的第一VNF状态并不一定同步。所以,本发明实施例中的VNFM根据第一VNF状态和第二VNF状态同步VNF和VNFM记录的VNF状态,就解决了现有技术中VNF状态不同步的技术问题。进而使得NFV系统可以更加准确地进行系统管控,从而避免了因VNF状态不同步而导致的管理故障。
附图说明
图1为本申请实施例中一种可能的NFV架构示意图;
图2为本申请实施例中一同步VNF状态的方法流程图;
图3为本申请实施例中另一同步VNF状态的方法流程图;
图4为本申请实施例中VNF、VNFM、NFVO和OSS/BSS交互示意图;
图5为本申请实施例中一同步VNF状态的装置结构示意图;
图6为本申请实施例中另一同步VNF状态的装置结构示意图;
图7为本申请实施例中一同步VNF状态的设备结构示意图;
图8为本申请实施例中另一同步VNF状态的设备结构示意图。
具体实施方式
本申请提供了一种同步VNF状态的方法和装置,用以实现VNF和VNFM之间同步VNF状态,避免因VNF状态不同步而导致的管理故障。
为了解决上述技术问题,本申请提供的技术方案的解决思路包括:
在本发明的技术方案中,VNFM根据VNF所发送的第一VNF状态与VNFM记录的第二VNF状态,同步记录的VNF状态。而现有技术中VNFM仅根据厂商提供的信息,VNFM执行的指令,参与的事件等记录第二VNF的状态,导致第二VNF状态与VNF实际记录的第一VNF状态并不一定同步。所以,本发明实施例中的VNFM根据第一VNF状态和第二VNF状态同步VNF和VNFM记录的VNF状态,就解决了现有技术中VNF状态不同步的技术问题。进而使得NFV系统可以更加准确地进行系统管控,从而避免了因VNF状态不同步而导致的管理故障。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其它实施例,都属于本发明保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图对本发明的实施方式进行详细说明。
本发明实施例提供了一种同步VNF状态的方法,请参考图1,为适用于本发明实施例中同步VNF状态的方法的一种可能的NFV架构。该架构包括:运营/业务支撑系统(英文:Operation Support System/Business Support System;简称:OSS/BSS)、网元管理系统(英文:Element Management System;简称:EMS)、VNF、NFVI、NFVO、网络服务目录NS Catalog、虚拟网络功能目录VNF Catalog、网络功能虚拟化实例NFV Instances、网络功能虚拟化基础设施资源NFVI Resources、VNFM和虚拟化基础设施管理器(英文:Virtualized Infrastructure Manager;简称:VIM)。
其中,EMS用于针对VNF执行传统的故障、配置、计费、性能、安全管理功能。NS Catalog存储所有已经加载的NS描述符信息。VNF Catalog存储所有已经加载的软件包。NFV Instances存储所有正在运行的NS、VNF等实例的状态信息,如分配的网络地址、操作记录等。NFVI Resources存储所有NFVI资源的状态,包括可用的、已预留的和已分配的NFVI资源。VIM是NFVI的管理单元,在功能上包括管理硬件资源管理和虚拟资源管理,而在部署上可分为云计算管理(如OpenStack云管理系统)和网络管理(如软件定义网络(英文:Software Defined Network;简称:SDN)控制器)两部分。而VNF、NFVI、NFVO和VNFM的功能和用途请参考前文。
本发明实施例第一方面将从VNFM侧介绍本实施例中的同步VNF状态的方法,请参考图2,该方法包括:
S101:虚拟网络功能管理器VNFM接收VNF发送的第一VNF状态。
S102:所述VNFM获得第二VNF状态。
S103:所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
具体来讲,本发明实施例中的VNF状态包括但不限于已实例化未配置Instantiated not Configured、未实例化Null、终止Terminated、不活动Inactive和活动Active等等。在本发明实施例中,第一VNF状态是VNF自身记录的VNF的当前状态,而第二VNF状态是VNFM根据厂商提供的信息,VNFM执行的指令,参与的事件等所记录并维护的VNF的当前状态。
为获得VNF所记录的第一VNF状态,在S101之前,VNFM通过预设接口向VNF发送状态查询请求。在本发明实施例中,状态查询请求表征VNFM需要查询VNF所记录的VNF的当前状态,即第一VNF状态。
VNFM可以周期性地向VNF发送状态查询请求,如每隔1分钟、1.55分钟等。也可以基于状态老化、超时机制来发送状态查询请。或者,当VNFM接收到NFVO的命令时,向VNF发送状态查询请求等。本申请所属领域的普通技术人员可以根据实际进行设置,本申请不做具体限制。
可选的,S101包括:
所述VNFM通过所述预设接口接收所述VNF发送的所述第一VNF状态。
具体来讲,VNFM发送状态查询请求以及接收第一VNF状态的预设接口,为VNFM和VNF之间的状态管理专用接口。状态管理专用接口能够实现VNFM和VNF交互,且具体用于传输状态查询请求和第一VNF状态。在具 体实现过程中,还可以扩展VNF和VNFM之间交互的通用接口作为预设接口。例如可以通过扩展故障管理fault management接口下的VNF故障信息获取get VNF fault information操作,以将fault management接口作为传输状态查询请求和第一VNF状态的预设接口。
VNFM接收第一VNF状态后,执行S102,即从本地获得VNFM记录的第二VNF状态。VNFM获得了第一VNF状态和第二VNF状态后,接下来执行S103,即同步VNF和VNFM记录的VNF状态。具体来讲,在本发明实施例中,同步记录的VNF状态包括:
所述VNFM判断所述第一VNF状态与所述第二VNF状态是否一致;
当所述第一VNF状态与所述第二VNF状态一致时,所述VNFM维持记录的所述第二VNF状态;
当所述第一VNF状态与所述第二VNF状态不一致时,所述VNFM从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
VNFM和VNF各自记录有VNF状态,因此,VNFM将先比较第一VNF状态和第二VNF状态,判断第一VNF状态和第二VNF状态是否一致。举例来说,假设第一VNF状态为“NULL”,第二VNF状态也为“NULL”,则判断第一VNF状态和第二VNF状态一致。再假设第一VNF状态为“Inactive”,第二VNF状态为“NULL”,则判断第一VNF状态和第二VNF状态不一致。
在本发明实施例中,当第一VNF状态和第二VNF状态一致时,表明VNFM所记录的VNF的当前状态,与VNF自身记录的VNF的当前状态一致。因此,VNFM维持记录的第二VNF状态,就可实现同步VNF和VNFM记 录的VNF状态了。
可选的,VNFM维持记录第一VNF状态之后,还可以包括:
所述VNFM更新记录所述第二VNF状态的时间戳。
具体来讲,为了方便VNFM维护VNF状态,以及为了方便VNFM下一次同步VNF状态,在将VNFM所记录的VNF状态保持为第二VNF状态之外,VNFM还需更新第二VNF状态的时间戳,以便为其他设备或自身提供第二VNF状态时,确定最近的第二VNF状态的更新时间。
在本发明实施例中,第二VNF状态的时间戳可以更新为VNFM发送状态查询请求时刻的时间戳,或者更新为接收到第一VNF状态时刻的时间戳,还可以更新为判断第一VNF状态和第二VNF状态一致时刻的时间戳等。本申请所属领域的普通技术人员可以根据实际进行设置,本申请不做具体限制。
而当第一VNF状态和第二VNF状态不一致时,则表明VNFM所记录的VNF状态或VNF自身记录的VNF状态不一致,因此,VNFM就需要从第一VNF状态和第二VNF状态中确定出真实状态来,进而根据真实状态来同步记录的VNF状态。本发明实施例中的真实状态表示该VNF在整个NFV系统中的状态,不仅仅是该VNF一个设备的状态。
具体来讲,当第一VNF状态和第二VNF状态不一致时,VNFM可以自行从第一VNF状态和第二VNF状态中确定出真实状态。VNFM确定真实状态的方式有多种,下面将列举两种,在具体实现过程中,包括但不限于以下两种。
(1)所述VNFM根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
具体来讲,本发明实施例中,VNF状态的时间戳表征记录或更新VNF状态的时刻。时间戳距离当前时间点最近,表明记录到对应的VNF状态的时刻最靠近当前时间。那么该VNF状态就有可能更加接近VNF的真实状态。所以,将最近时间戳对应的VNF状态确定为真实状态。
举例来说,第一VNF状态为“Null”,第一VNF状态的时间戳为“2015-1-111:59:30”,第二VNF状态为“Inactive”,第二VNF状态的时间戳为“2015-1-111:59:45”。在两个时间戳“2015-1-111:59:30”和“2015-1-111:59:45”中,第二VNF状态的时间戳最晚,最靠近当前时间点。所以,VNFM确定第二VNF状态“Inactive”为真实状态。
(2)假设第一VNF状态为“异常”,第二VNF状态为“正常”。由于第一VNF状态“异常”是VNF根据自身当前状态所记录的,表明此时VNF存在异常,VNFM确定第一VNF状态为真实状态。
可选的,当确定此时的真实状态为“异常”后,VNFM还可以进一步将“异常”状态上报给NFVO,以通过NFVO查询相应的资源(如链路资源、存储资源等),确定VNF的异常是由底层资源导致的,如存储设备损坏、链路中断、停电等,还是VNF内部原因导致的,如存储越界或死循环等。
如果是底层资源导致的,VNFM可以启动故障处理;如果是VNF内部原因导致的,VNFM可以将VNF异常状态上报OSS,并配合OSS或EMS的故障处理过程,以尽快消除VNF的异常。
在本发明实施例中,为了从第一VNF状态和第二VNF状态中确定出真实状态,VNFM还可以请求NFVO来帮助确定真实状态,包括:
所述VNFM向网络功能虚拟化编排器NFVO发送所述第一VNF状态和所述第二VNF状态;
接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;
所述VNFM将接收到的VNF状态作为所述真实状态。
具体来讲,当由NFVO来确定真实状态时,VNFM需要将第一VNF状态和第二VNF状态提供给NFVO。NFVO确定真实状态的方式有多种,下面将列举几种,在具体实现过程中,包括但不限于以下几种。
(1)NFVO将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态返回VNFM。
具体来讲,时间戳距离当前时间点最近,表明记录到对应的VNF状态的时刻最靠近当前时间,那么该VNF状态就有可能更加接近VNF的真实状态。所以,将最近时间戳对应的VNF状态确定为真实状态。
举例来说,第一VNF状态为“Null”,第一VNF状态的时间戳为“2015-1-111:59:30”,第二VNF状态为“Inactive”,第二VNF状态的时间戳为“2015-1-111:59:45”。在两个时间戳“2015-1-111:59:30”和“2015-1-111:59:45”中,第二VNF状态的时间戳最晚,最靠近当前时间点。所以,NFVO确定第二VNF状态“Inactive”为真实状态。
(2)NFVO根据故障信息,从第一VNF状态和第二VNF状态中确定出返回VNFM的VNF状态。
具体来讲,本发明实施例中的故障信息包括但不限于设备故障信息、虚拟资源使用信息、流量变化、连接状态变化、操作日志等。NFVO采用故障分析方法,根据故障信息,确定出返回给VNFM的VNF状态的方式有多种, 下面以几个例子来进行说明。
①假设第一VNF状态为“正常”。VNFM接收到VIM通知,发现链路异常,进而认为VNF异常,故记录的第二VNF状态为“异常”。VNFM将第一VNF状态、第二VNF状态和链接异常信息发送给NFVO。NFVO可以通过查询与记录第一VNF状态的这个VNF相连的其他VNF的工作情况,来判断链接异常是哪个VNF导致。如果是由其他VNF导致的,那么很有可能这个VNF是正常的,因此确定第一VNF状态真实状态,从而将第一VNF状态返回给VNFM。如果其他VNF没有异常,那么很有可能这个VNF发生了异常,因此确定第二VNF状态为真实状态,将第二VNF状态返回给VNFM。
(3)假设第一VNF状态为“异常”,第二VNF状态为“正常”。由于第一VNF状态“异常”是VNF根据当前状态所记录的,表明此时VNF存在异常,因此NFVO确定第一VNF状态为真实状态,将第一VNF状态返回给VNFM。
可选的,当确定此时的真实状态为“异常”后,NFVO还可以进一步查询相应的资源(如链路资源、存储资源等),确定VNF的异常是由底层资源导致的,如存储设备损坏、链路中断、停电等,还是VNF内部原因导致的,如存储越界或死循环等。
如果是底层资源导致的,VNFM可以启动故障处理;如果是VNF内部原因导致的,VNFM可以将VNF异常状态上报OSS并配合OSS或EMS的故障处理过程,以尽快消除VNF的异常。
最后,VNFM接收NFVO返回的VNF状态,将返回的VNF状态作为真实状态。
另外,在本发明实施例中,当VNFM判断出第一VNF状态和第二VNF 状态不一致后,VNFM还需要向NFVO发送状态失步通知。状态失步通知用于表示第一VNF状态和第二VNF状态不一致,或第一VNF状态和第二VNF状态不同步。
在具体实现过程中,VNFM可以先向NFVO发送状态失步通知,然后再开始自行确定真实状态或请求NFVO确定真实状态。VNFM也可以在开始自行确定真实状态的同时,向NFVO发送状态失步通知。或者,VNFM先开始确定真实状态,然后再发送状态失步通知。
另外,当由VNFM自身确定真实状态时,VNFM向NFVO所发送的状态失步通知中可以包括第一VNF状态和第二VNF状态,也可以不包括第一VNF状态和第二VNF状态。而当VNFM请求NFVO确定真实状态时,VNFM向NFVO发送的第一VNF状态和第二VNF状态可以包含在状态失步通知中。或者VNFM向NFVO单独发送状态失步通知,且状态失步通知可以先于第一VNF状态和第二VNF状态发送,也可以在发送第一VNF状态和第二VNF状态之后发送。本申请所属领域的普通技术人员可以根据实际进行设置,本申请不做具体限制。
NFVO接收到状态失步通知后,一方面为了避免在确定真实状态期间,下一轮VNF状态同步发生,另一方面避免NFVO下发新的生命周期事件处理命令对VNF状态进行更改而导致异常,NFVO可能还需要进一步通知OSS/BSS VNF和VNFM之间状态失步。
当确定出真实状态后,除了用于同步VNF和VNFM记录的VNF状态之外,VNFM可以向其他需要查询真实状态的设备发送真实状态,如NFVO、OSS/BSS等。进而,NFVO、OSS/BSS等在对VNF进行控制和管理时,能够根据真实状态确定合理的控制方式,减少管理故障的发生。
具体来讲,在本发明实施例中,根据真实状态同步VNFM和VNF所记录的VNF状态,可以包括:
当所述第一VNF状态为所述真实状态时,所述VNFM将所述第二VNF状态修改为所述第一VNF状态;或
当所述第二VNF状态为所述真实状态时,所述VNFM通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
具体来讲,当真实状态为第一VNF状态时,表明VNF所记录的VNF的当前状态为真实状态,而VNFM所记录的VNF当前状态与真实状态不一致。所以,VNFM需要将第二VNF状态修改为第一VNF状态。当然,在将第二VNF状态修改为第一VNF状态后,还需要更新VNFM记录VNF状态的时间戳。修改完成后,VNFM通知NFVO,并可通过NFVO进一步通知OSS/BSS恢复同步VNF状态,等待下一轮同步VNF状态。
在具体实现过程中,如果VNFM修改了VNFM所记录的VNF状态,还需要通知EMS。以及通知NFVO,进而通过NFVO通知OSS VNFM中的VNF状态发生了变化。
而当第二VNF状态为真实状态时,VNFM将通知VNF修改第一VNF状态。具体来讲,VNFM会向VNF发送通知,并且将第二VNF状态发送给VNF。或者,VNFM将第二VNF状态包含在通知中,那么VNF接收到通知后,一方面知道需要修改记录的VNF状态,另一方面还可以从通知中获得第二VNF状态。
VNF获得VNFM提供的第二VNF状态后,将自身记录的VNF状态从第一VNF状态修改为第二VNF状态。当然,在将第一VNF状态修改为第二VNF状态后,VNF还需要更新记录VNF状态的时间戳。
可选的,若第二VNF状态为真实状态,且VNFM通知VNF将第一VNF状态修改为第二VNF状态后,为确定VNF修改成功,本发明实施例还包括:
当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,所述VNFM按照预设策略重新同步所述VNF状态或重启所述VNF。
具体来讲,VNF在接收到VNFM通知,并修改完成后,会向VNFM发送执行反馈。因此,若VNFM接收到VNF发送的执行反馈,就知道VNF已将第一VNF状态修改为第二VNF状态。那么VNFM通知NFVO,并可通过NFVO进一步通知OSS/BSS恢复同步VNF状态,等待下一轮同步VNF状态。
而当未接收到执行反馈时,表明VNF修改VNF状态失败,那么VNFM将按照预设策略重新同步VNF状态或重启VNF。具体来讲,本发明实施例中的预设策略为:在预设时长内未接收到VNF发送的执行反馈,重新同步VNF状态;并且,当重新同步VNF状态的次数超过预设次数后,重启VNF。
其中,预设时长可以为1分钟,63秒等,预设次数也可以为3次,4次等。本申请所属领域的普通技术人员可以根据实际需要设置预设时间长和预设次数,本申请不做具体限制。
举例来说,假设预设时长为30秒,预设次数为3次。当VNFM发送通知30秒内,未接收到执行反馈,则VNFM将重新同步,即开始第2次同步。若VNFM在第2次同步VNF状态后,接收到执行反馈,则本轮同步结束。VNFM通知NFVO,并可通过NFVO进一步通知OSS/BSS恢复同步VNF状态,等待下一轮同步VNF状态。若VNFM在第2次同步VNF状态后,未接收到执行反馈,VNFM将开始第3次同步。当VNFM在第3次同步VNF状态后,接收到执行反馈,则本轮同步结束;若VNFM在第3次同步VNF状态后,未接收到执行反馈,VNFM重启VNF。
或者,预设策略还可以为:在第一预设时长内未接收到VNF发送的执行反馈后,重新同步VNF状态;并且,在重新同步VNF状态期间,若向VNF发送通知后第二预设时长内未接收到执行反馈,重启VNF。本发明实施例中,本申请所属领域的普通技术人员可以根据实际需要设置第一预设时长和第二预设时长。
举例来说,假设第一预设时长为30秒,第二预设时长为35秒。当VNFM发送通知30秒内,未接收到执行反馈,则VNFM将重新同步VNF状态。在VNFM重新同步VNF状态后,会再次向VNF发送通知。若在发送通知后35秒内接收到执行反馈,则本轮同步结束;若在发送通知后35秒内未接收到执行反馈,VNFM重启VNF。
本发明实施例第二方面将从VNF侧介绍本实施例中的同步VNF状态的方法,请参考图3,该方法包括:
S201:VNF接收VNFM发送的状态查询请求。
S202:所述VNF向所述VNFM发送第一VNF状态。
其中,在本申请实施例中,S201包括:
通过预设接口接收所述状态查询请求;
S202包括:
所述VNF通过所述预设接口向所述VNFM发送所述第一VNF状态。
具体来讲,在本发明实施例中,VNF接收状态查询请求和发送第一VNF状态的预设接口为VNFM与VNF之间的状态管理专用接口或通用接口。在上文中以对状态管理专用接口或通用接口进行了介绍,因此这里就不再重复赘述了。
VNFM接收到VNF上报的第一VNF状态后,根据第一VNF状态,以及 自身记录的第二VNF状态,同步VNF和VNFM记录的VNF状态。
在本发明实施例中,当第一VNF状态和第二VNF状态一致时,表明VNF记录的当前状态和VNFM记录的VNF的当前状态同步,因此VNF和VNFM都不需要修改记录的VNF状态。而当第一VNF状态和第二VNF状态不一致时,VNFM将从第一VNF状态和第二VNF状态中确定出真实状态,进而根据真实状态同步记录的VNF状态。
具体来讲,当第一VNF状态为真实状态时,VNFM将第二VNF状态修改为第一VNF状态;或当第二VNF状态为真实状态时,VNFM通知VNF将第一VNF状态修改为第二VNF状态。
因此,当第二VNF状态为真实状态时,在S202之后,还包括:
接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;
在将所述第一VNF状态修改为所述第二VNF状态后,所述VNF向所述VNFM发送执行反馈。
具体来讲,当第二VNF状态为真实状态,VNF会接收到VNFM发送的通知。其中,VNFM发送的通知表明VNF需要将记录的VNF状态修改为第二VNF状态。进一步,VNF从通知中,或者从VNFM发送的其他信息中解析获得第二VNF状态。然后VNF将自身记录的第一VNF状态,修改为第二VNF状态。并且,为了方便再次向VNFM上报自身记录的VNF状态,VNF还会更新记录VNF状态的时间戳。
修改完成后,为了告知VNFM第一VNF状态已修改为第二VNF状态,VNF还会向VNFM发送执行反馈。
VNF侧同步VNF状态的方法与VNFM侧所对应的地方在上文中已有详细介绍,这里就不再重复赘述了。
本发明实施例第三方面提供了一种同步VNF状态的装置,请参考图5所示,该装置包括:
第一接收单元501,用于接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
获得单元502,用于获得第二VNF状态,所述第二VNF状态为VNFM记录的所述VNF的当前状态;
同步单元503,用于根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
可选的,所述同步单元503用于:
判断所述第一VNF状态与所述第二VNF状态是否一致;当所述第一VNF状态与所述第二VNF状态一致时,维持记录的所述第二VNF状态;当所述第一VNF状态与所述第二VNF状态不一致时,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
可选的,所述装置还包括:
重新同步或重启单元,用于在所述同步单元503通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,按照预设策略重新同步所述VNF状态或重启所述VNF。
在本发明实施例中,所述同步单元503用于:
根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
或者,为确定真实状态,同步单元503用于:
向NFVO发送所述第一VNF状态和所述第二VNF状态;接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;将接收到的VNF状态作为所述真实状态。
可选的,所述装置还包括状态失步发通知单元,用于在同步单元503确定所述第一VNF状态和第二VNF状态不一致之后,向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
可选的,所述装置还包括:
第二VNF状态更新单元,用于在同步单元503维持所述第二VNF状态之后,更新记录所述第二VNF状态的时间戳。
可选的,所述装置还包括:
第一发送单元,用于在所述第一接收单元501接收VNF发送的第一VNF状态之前,通过预设接口向所述VNF发送状态查询请求;
所述第一接收单元501用于通过所述预设接口接收所述VNF发送的所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本申请第四方面提供了另一种同步VNF状态的装置,如图6所示,包括:
第二接收单元601,用于接收VNFM发送的状态查询请求;
第二发送单元602,用于向所述VNFM发送第一VNF状态,所述第一VNF状态为VNF记录的自身的当前状态。
可选的,所述装置还包括:
接收通知单元,用于在所述第二发送单元602向所述VNFM发送第一VNF状态之后之后,接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;在将所述第一VNF状态修改为所述第二VNF状态后,所述VNF向所述VNFM发送执行反馈。
可选的,所述第二接收单元601用于:
通过预设接口接收所述状态查询请求;
所述第二发送单元602用于:
通过所述预设接口向所述VNFM发送所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
本发明实施例第五方面提供了一种同步VNF状态的设备,图7所示的设备涉及到的术语的含义以及具体实现,可以参考前述图1至图6以及实施例的相关描述。
请参考图7,该设备包括:
接收器701,用于接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
处理器703,用于获得第二VNF状态,所述第二VNF状态为VNFM记 录的所述VNF的当前状态;根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
可选的,所述处理器703用于:
判断所述第一VNF状态与所述第二VNF状态是否一致;当所述第一VNF状态与所述第二VNF状态一致时,维持记录的所述第二VNF状态;当所述第一VNF状态与所述第二VNF状态不一致时,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
可选的,所述处理器703用于:
当所述第一VNF状态为所述真实状态时,将所述第二VNF状态修改为所述第一VNF状态;或当所述第二VNF状态为所述真实状态时,通过所述电子设备的发送器702通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
可选的,所述处理器703还用于:
在通过所述发送器702通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,当通过所述接收器701未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,按照预设策略重新同步所述VNF状态或重启所述VNF。
可选的,在本发明实施例中,为确定出真实状态,所述处理器703用于:
根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
或者,请求NFVO确定真实状态,则所述发送器702用于:
向NFVO发送所述第一VNF状态和所述第二VNF状态;
所述接收器701用于接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;
所述处理器703用于将接收到的VNF状态作为所述真实状态。
可选的,所述处理器703还用于:
在判断所述第一VNF状态与所述第二VNF状态不一致之后,向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
可选的,所述处理器703还用于:
在维持所述第二VNF状态之后,更新记录所述第二VNF状态的时间戳。
可选的,所述发送器702还用于:
在所述接收器701接收虚拟网络功能VNF发送的第一VNF状态之前,通过预设接口向所述VNF发送状态查询请求;
所述接收器701用于通过所述预设接口接收所述VNF发送的所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
其中,在图7中,总线架构(用总线700来代表),总线700可以包括任意数量的互联的总线和桥,总线700将包括由处理器703代表的一个或多个处理器和存储器704代表的存储器的各种电路链接在一起。总线700还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口705在总线700和接收器701和发送器702之间提供接口。接收器701和发送 器702可以是同一个元件,即收发机,提供用于在传输介质上与各种其他装置通信的单元。
处理器703负责管理总线700和通常的处理,而存储器704可以被用于存储处理器703在执行操作时所使用的数据。
前述实施例中描述的VNFM侧同步VNF状态的各种变化方式和具体实例同样适用于本实施例的设备,通过前述对VNFM侧同步VNF状态的方法和同步VNF状态的装置执行过程的详细描述,本领域技术人员可以清楚的知道本实施例中同步VNF状态的设备的实施方法,所以为了说明书的简洁,在此不再详述。
另外,本申请实施例第六方面还提供了另一种同步VNF状态的设备,请参考图8,包括:
接收器801,用于VNF接收VNFM发送的状态查询请求;
发送器802,用于向所述VNFM发送第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态。
可选的,所述接收器801还用于:
在所述发送器802向所述VNFM发送所述第一VNF状态之后,接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
可选的,所述接收器801用于:
通过预设接口接收所述状态查询请求;
所述发送器802用于:
通过所述预设接口向所述VNFM发送所述第一VNF状态;
其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口 或通用接口。
其中,在图8中,总线架构(用总线800来代表),总线800可以包括任意数量的互联的总线和桥,总线800将包括由处理器803代表的一个或多个处理器和存储器804代表的存储器的各种电路链接在一起。总线800还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口805在总线800和接收器801和发送器802之间提供接口。接收器801和发送器802可以是同一个元件,即收发机,提供用于在传输介质上与各种其他装置通信的单元。
处理器803负责管理总线800和通常的处理,而存储器804可以被用于存储处理器803在执行操作时所使用的数据。
前述实施例中描述的VNF侧同步VNF状态的各种变化方式和具体实例同样适用于本实施例的设备,通过前述对VNF侧同步VNF状态的方法和同步VNF状态的装置执行过程的详细描述,本领域技术人员可以清楚的知道本实施例中同步VNF状态的设备的实施方法,所以为了说明书的简洁,在此不再详述。
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:
在本发明的技术方案中,VNFM接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;所述VNFM获得第二VNF状态,所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。而现有技术中VNFM仅根据厂商提供的信息,VNFM执行的指令,参与的事 件等记录第二VNF的状态,导致第二VNF状态与VNF实际记录的第一VNF状态并不一定同步。所以,本发明实施例中的VNFM根据第一VNF状态和第二VNF状态同步VNF和VNFM记录的VNF状态,就解决了现有技术中VNF状态不同步的技术问题。进而使得NFV系统可以更加准确地进行系统管控,从而避免了因VNF状态不同步而导致的管理故障。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (36)

  1. 一种同步虚拟网络功能VNF状态的方法,其特征在于,包括:
    虚拟网络功能管理器VNFM接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
    所述VNFM获得第二VNF状态,所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
    所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
  2. 如权利要求1所述的方法,其特征在于,所述VNFM根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态,包括:
    所述VNFM判断所述第一VNF状态与所述第二VNF状态是否一致;
    当所述第一VNF状态与所述第二VNF状态一致时,所述VNFM维持记录的所述第二VNF状态;
    当所述第一VNF状态与所述第二VNF状态不一致时,所述VNFM从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
  3. 如权利要求2所述的方法,其特征在于,根据所述真实状态同步记录的VNF状态,包括:
    当所述第一VNF状态为所述真实状态时,所述VNFM将所述第二VNF状态修改为所述第一VNF状态;或
    当所述第二VNF状态为所述真实状态时,所述VNFM通知所述VNF将所 述第一VNF状态修改为所述第二VNF状态。
  4. 如权利要求3所述的方法,其特征在于,在所述VNFM通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,所述方法还包括:
    当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,所述VNFM按照预设策略重新同步所述VNF状态或重启所述VNF。
  5. 如权利要求2-4任一项所述的方法,其特征在于,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,包括:
    所述VNFM根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
  6. 如权利要求2-4任一项所述的方法,其特征在于,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,包括:
    所述VNFM向网络功能虚拟化编排器NFVO发送所述第一VNF状态和所述第二VNF状态;
    接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;
    所述VNFM将接收到的VNF状态作为所述真实状态。
  7. 如权利要求5或6所述的方法,其特征在于,在判断所述第一VNF状态与所述第二VNF状态不一致之后,所述方法还包括:
    所述VNFM向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
  8. 如权利要求2所述的方法,其特征在于,在维持所述第二VNF状态之后,所述方法还包括:
    所述VNFM更新记录所述第二VNF状态的时间戳。
  9. 如权利要求1-8任一项所述的方法,其特征在于,在虚拟网络功能管理器VNFM接收虚拟网络功能VNF发送的第一VNF状态之前,所述方法还包括:
    所述VNFM通过预设接口向所述VNF发送状态查询请求;
    虚拟网络功能管理器VNFM接收虚拟网络功能VNF发送的第一VNF状态,包括:
    所述VNFM通过所述预设接口接收所述VNF发送的所述第一VNF状态;
    其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
  10. 一种同步VNF状态的方法,其特征在于,包括:
    VNF接收VNFM发送的状态查询请求;
    所述VNF向所述VNFM发送第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态。
  11. 如权利要求10所述的方法,其特征在于,在所述VNF向所述VNFM发送第一VNF状态之后,所述方法还包括:
    接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
    基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;
    在将所述第一VNF状态修改为所述第二VNF状态后,所述VNF向所述VNFM发送执行反馈。
  12. 如权利要求10或11所述的方法,其特征在于,VNF接收VNFM发送的状态查询请求,包括:
    通过预设接口接收所述状态查询请求;
    所述VNF向所述VNFM发送所述VNF记录的第一VNF状态,包括:
    所述VNF通过所述预设接口向所述VNFM发送所述第一VNF状态;
    其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
  13. 一种同步VNF状态的装置,其特征在于,包括:
    第一接收单元,用于接收VNF发送的第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态;
    获得单元,用于获得第二VNF状态,所述第二VNF状态为VNFM记录的所述VNF的当前状态;
    同步单元,用于根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
  14. 如权利要求13所述的装置,其特征在于,所述同步单元用于:
    判断所述第一VNF状态与所述第二VNF状态是否一致;当所述第一VNF状态与所述第二VNF状态一致时,维持记录的所述第二VNF状态;当所述第一VNF状态与所述第二VNF状态不一致时,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
  15. 如权利要求14所述的装置,其特征在于,所述同步单元用于:
    当所述第一VNF状态为所述真实状态时,将所述第二VNF状态修改为所述第一VNF状态;或当所述第二VNF状态为所述真实状态时,通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
  16. 如权利要求15所述的装置,其特征在于,所述装置还包括:
    重新同步或重启单元,用于在所述同步单元通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,当未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,按照预设策略重新同步所述VNF状态或重启所述VNF。
  17. 如权利要求14-16任一项所述的装置,其特征在于,所述同步单元用于:
    根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
  18. 如权利要求14-16任一项所述的装置,其特征在于,所述同步单元用于:
    向NFVO发送所述第一VNF状态和所述第二VNF状态;接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;将接收到的VNF状态作为所述真实状态。
  19. 如权利要求17或18所述的装置,其特征在于,所述装置还包括状态失步发通知单元,用于在同步单元确定所述第一VNF状态和第二VNF状态不一致之后,向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
  20. 如权利要求14所述的装置,其特征在于,所述装置还包括:
    第二VNF状态更新单元,用于在同步单元维持所述第二VNF状态之后,更新记录所述第二VNF状态的时间戳。
  21. 如权利要求13-20任一项所述的装置,其特征在于,所述装置还包括:
    第一发送单元,用于在所述第一接收单元接收VNF发送的第一VNF状态之前,通过预设接口向所述VNF发送状态查询请求;
    所述第一接收单元用于通过所述预设接口接收所述VNF发送的所述第一 VNF状态;
    其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
  22. 一种同步VNF状态的装置,其特征在于,包括:
    第二接收单元,用于接收VNFM发送的状态查询请求;
    第二发送单元,用于向所述VNFM发送第一VNF状态,所述第一VNF状态为VNF记录的自身的当前状态。
  23. 如权利要求22所述的装置,其特征在于,所述装置还包括:
    接收通知单元,用于在所述第二发送单元向所述VNFM发送第一VNF状态之后之后,接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;在将所述第一VNF状态修改为所述第二VNF状态后,所述VNF向所述VNFM发送执行反馈。
  24. 如权利要求22或23所述的装置,其特征在于,所述第二接收单元用于:
    通过预设接口接收所述状态查询请求;
    所述第二发送单元用于:
    通过所述预设接口向所述VNFM发送所述第一VNF状态;
    其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
  25. 一种同步VNF状态的设备,其特征在于,包括:
    接收器,用于接收VNF发送的第一VNF状态,所述第一VNF状态为所述 VNF记录的自身的当前状态;
    处理器,用于获得第二VNF状态,所述第二VNF状态为VNFM记录的所述VNF的当前状态;根据所述第一VNF状态与所述第二VNF状态,同步记录的VNF状态。
  26. 如权利要求25所述的设备,其特征在于,所述处理器用于:
    判断所述第一VNF状态与所述第二VNF状态是否一致;当所述第一VNF状态与所述第二VNF状态一致时,维持记录的所述第二VNF状态;当所述第一VNF状态与所述第二VNF状态不一致时,从所述第一VNF状态和所述第二VNF状态中确定出所述真实状态,并根据所述真实状态同步记录的VNF状态,所述真实状态为所述第一VNF状态或所述第二VNF状态。
  27. 如权利要求26所述的设备,其特征在于,所述处理器用于:
    当所述第一VNF状态为所述真实状态时,将所述第二VNF状态修改为所述第一VNF状态;或当所述第二VNF状态为所述真实状态时,通过所述电子设备的发送器通知所述VNF将所述第一VNF状态修改为所述第二VNF状态。
  28. 如权利要求27所述的设备,其特征在于,所述处理器还用于:
    在通过所述发送器通知所述VNF将所述第一VNF状态修改为所述第二VNF状态之后,当通过所述接收器未接收到所述VNF发送的表征所述VNF已完成修改的执行反馈时,按照预设策略重新同步所述VNF状态或重启所述VNF。
  29. 如权利要求26-28任一项所述的设备,其特征在于,所述处理器用于:
    根据将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态作为所述真实状态。
  30. 如权利要求26-28任一项所述的设备,其特征在于,所述发送器用于:
    向NFVO发送所述第一VNF状态和所述第二VNF状态;
    所述接收器用于接收所述NFVO返回的、将记录所述第一VNF状态的时间戳与记录所述第二VNF状态的时间戳中,距离当前时间点最近的时间戳对应记录的VNF状态;
    所述处理器用于将接收到的VNF状态作为所述真实状态。
  31. 如权利要求29或30所述的设备,其特征在于,所述发送器还用于:
    在判断所述第一VNF状态与所述第二VNF状态不一致之后,向NFVO发送表示所述第一VNF状态与所述第二VNF状态不一致的状态失步通知。
  32. 如权利要求26所述的设备,其特征在于,所述处理器还用于:
    在维持所述第二VNF状态之后,更新记录所述第二VNF状态的时间戳。
  33. 如权利要求25-32任一项所述的设备,其特征在于,所述发送器还用于:
    在所述接收器接收虚拟网络功能VNF发送的第一VNF状态之前,通过预设接口向所述VNF发送状态查询请求;
    所述接收器用于通过所述预设接口接收所述VNF发送的所述第一VNF状态;
    其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
  34. 一种同步VNF状态的设备,其特征在于,包括:
    接收器,用于VNF接收VNFM发送的状态查询请求;
    发送器,用于向所述VNFM发送第一VNF状态,所述第一VNF状态为所述VNF记录的自身的当前状态。
  35. 如权利要求34所述的设备,其特征在于,所述接收器还用于:
    在所述发送器向所述VNFM发送所述第一VNF状态之后,接收所述VNFM发送的表征所述VNF需要将所述第一VNF状态修改为所述第二VNF状态的通 知;所述第二VNF状态为所述VNFM记录的所述VNF的当前状态;
    所述电子设备还包括处理器,用于基于所述通知,所述VNF将所述第一VNF状态修改为所述第二VNF状态;
    所述发送器还用于在将所述第一VNF状态修改为所述第二VNF状态后,向所述VNFM发送执行反馈。
  36. 如权利要求34或35所述的设备,其特征在于,所述接收器用于:
    通过预设接口接收所述状态查询请求;
    所述发送器用于:
    通过所述预设接口向所述VNFM发送所述第一VNF状态;
    其中,所述预设接口为所述VNFM与所述VNF之间的状态管理专用接口或通用接口。
PCT/CN2015/079075 2015-05-15 2015-05-15 一种同步虚拟网络功能vnf状态的方法、装置和设备 WO2016183735A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/079075 WO2016183735A1 (zh) 2015-05-15 2015-05-15 一种同步虚拟网络功能vnf状态的方法、装置和设备
CN201580065544.9A CN107005434B (zh) 2015-05-15 2015-05-15 一种同步虚拟网络功能vnf状态的方法、装置和设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/079075 WO2016183735A1 (zh) 2015-05-15 2015-05-15 一种同步虚拟网络功能vnf状态的方法、装置和设备

Publications (1)

Publication Number Publication Date
WO2016183735A1 true WO2016183735A1 (zh) 2016-11-24

Family

ID=57319111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079075 WO2016183735A1 (zh) 2015-05-15 2015-05-15 一种同步虚拟网络功能vnf状态的方法、装置和设备

Country Status (2)

Country Link
CN (1) CN107005434B (zh)
WO (1) WO2016183735A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714239A (zh) * 2018-12-27 2019-05-03 新华三技术有限公司 一种管理消息的下发方法、vnfm设备和服务器
CN111130953A (zh) * 2019-12-31 2020-05-08 奇安信科技集团股份有限公司 Vnf可用性监测方法、设备及介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221619B (zh) * 2018-11-27 2023-09-08 中国移动通信集团江西有限公司 一种业务开通和编排的方法、装置及设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104170323A (zh) * 2014-04-09 2014-11-26 华为技术有限公司 基于网络功能虚拟化的故障处理方法及装置、系统
CN104253866A (zh) * 2014-09-20 2014-12-31 华为技术有限公司 虚拟网络功能网元的软件部署方法、系统及相关设备

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104170323A (zh) * 2014-04-09 2014-11-26 华为技术有限公司 基于网络功能虚拟化的故障处理方法及装置、系统
CN104253866A (zh) * 2014-09-20 2014-12-31 华为技术有限公司 虚拟网络功能网元的软件部署方法、系统及相关设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ETSI: "Network Functions Virtualisation; Architectural Framework", ETSI GS NFV 002 V1.1.1, 31 October 2013 (2013-10-31), XP055292127 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109714239A (zh) * 2018-12-27 2019-05-03 新华三技术有限公司 一种管理消息的下发方法、vnfm设备和服务器
CN109714239B (zh) * 2018-12-27 2021-04-27 新华三技术有限公司 一种管理消息的下发方法、vnfm设备和服务器
CN111130953A (zh) * 2019-12-31 2020-05-08 奇安信科技集团股份有限公司 Vnf可用性监测方法、设备及介质
CN111130953B (zh) * 2019-12-31 2022-04-15 奇安信科技集团股份有限公司 Vnf可用性监测方法、设备及介质

Also Published As

Publication number Publication date
CN107005434B (zh) 2020-07-24
CN107005434A (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
WO2019154394A1 (zh) 分布式数据库集群系统、数据同步方法及存储介质
WO2018036148A1 (zh) 一种服务器集群系统
KR101109980B1 (ko) 조정된 타이밍 네트워크 내의 서버 동기화 촉진
US9489230B1 (en) Handling of virtual machine migration while performing clustering operations
WO2017067484A1 (zh) 一种虚拟化数据中心调度系统和方法
KR101091460B1 (ko) 네트워크에서의 복원을 촉진하는 방법, 시스템 및 컴퓨터 판독 가능한 기록 매체
WO2015096500A1 (zh) 一种业务迁移方法、装置和一种容灾系统
US11057471B2 (en) Edge application management method and system
CN105471622B (zh) 一种基于Galera的控制节点主备切换的高可用方法及系统
WO2016029726A1 (zh) 节能控制方法、管理服务器和网络设备
US8416811B2 (en) Coordinated timing network having servers of different capabilities
CN102098342A (zh) 一种基于事务级的数据同步方法、装置及系统
WO2013044828A1 (zh) 虚拟化集群系统及其处理方法和设备
CN103838593A (zh) 恢复虚拟机的方法、系统及控制器、服务器、寄宿主机
CN107656705B (zh) 一种计算机存储介质和一种数据迁移方法、装置及系统
WO2016045439A1 (zh) 一种vnfm容灾保护的方法、装置和nfvo、存储介质
WO2016183735A1 (zh) 一种同步虚拟网络功能vnf状态的方法、装置和设备
WO2022037268A1 (zh) 一种容器管理方法、设备以及介质
WO2014135011A1 (zh) 数据库系统以及数据同步方法
WO2011063725A1 (zh) 一种主备同步方法及系统
CN111552701B (zh) 确定分布式集群中数据一致性的方法及分布式数据系统
CN114297296A (zh) 一种广播用的服务器主备切换系统
CN112783694B (zh) 一种高可用Redis的异地灾备方法
JP2004038785A (ja) 統合シミュレーションシステム及びプログラム
WO2019080386A1 (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: 15892116

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: 15892116

Country of ref document: EP

Kind code of ref document: A1