WO2018010068A1 - 网络功能虚拟化环境中的报警方法及装置 - Google Patents

网络功能虚拟化环境中的报警方法及装置 Download PDF

Info

Publication number
WO2018010068A1
WO2018010068A1 PCT/CN2016/089645 CN2016089645W WO2018010068A1 WO 2018010068 A1 WO2018010068 A1 WO 2018010068A1 CN 2016089645 W CN2016089645 W CN 2016089645W WO 2018010068 A1 WO2018010068 A1 WO 2018010068A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
alarm
alarm information
target virtual
primary
Prior art date
Application number
PCT/CN2016/089645
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/CN2016/089645 priority Critical patent/WO2018010068A1/zh
Publication of WO2018010068A1 publication Critical patent/WO2018010068A1/zh

Links

Images

Definitions

  • the present invention relates to the field of the Internet, and in particular, to an alarm method and apparatus in a network function virtualization environment.
  • Network Function Virtualization is initiated by 13 major telecom operators around the world. It is an organization of many equipment vendors and information technology (IT) vendors to define the virtualization of carrier network functions. The needs and related technical reports, hope to learn from the IT virtualization technology, the use of general-purpose high-performance large-capacity servers, switches and storage to achieve the software of some network functions.
  • various types of network devices such as servers, routers, storage devices, content delivery networks (CDNs), switches, etc.
  • CDNs content delivery networks
  • switches etc.
  • NFV technology can be separated by software and hardware through NFV technology. They can be deployed in data centers and network nodes. Or the user's home is medium.
  • the NFV system may malfunction during operation, thereby affecting the stability and reliability of the NFV system. Therefore, in order to promptly report the fault when the NFV occurs, it is urgent to process and repair the fault.
  • An alarm method in a network function virtualization environment is an alarm method in a network function virtualization environment.
  • the NFV system can be established based on XEN, where XEN is an open source virtualization technology.
  • the NFV system includes NFV Infrastructure (NFVI) 1, Virtualization Network Functions (VNF), Element Management (EM), and NFV Management and NFV Management and Orchestration, NFV MANO) 2.
  • the NFVI1 includes a hardware layer 11, a virtual layer 12, and a software layer.
  • the hardware layer 11 includes hardware resources.
  • the virtual layer 12 includes a virtual resource 121, a primary virtual machine 122, and a user virtual machine 123.
  • the user virtual machine 123 is The paravirtualized virtual machine, i.e., the operating system in the user virtual machine 123, needs to be modified so that the user virtual machine 123 can run in the NFV system.
  • the user virtual machine 123 may include a VNF to implement a network function.
  • the VNF included in the user virtual machine 123 may correspond to an EM.
  • the software layer includes software resources such as an operating system of the primary virtual machine 122 and the user virtual machine 123.
  • NFV MANO2 includes virtualization infrastructure Virtualised Infrastructure Manager (VIM) and VNF Management (VNFM).
  • VIP virtualised Infrastructure Manager
  • VNFM VNF Management
  • the NFVI1 is provided with an alarm monitor to detect whether an hardware event, a software resource, and a virtual resource generate an alarm event, when the alarm monitor in the NFVI1
  • an alarm event is generated, the hardware resource, the software resource, or the virtual resource is generated, and an alarm information is generated, and the alarm information is sent to the VIM in the NFV MANO2.
  • the VIM receives the alarm information
  • the alarm information is sent to the VNFM.
  • the VNFM receives the alarm information
  • the alarm information is sent to the EM corresponding to the user virtual machine 123 occupying the hardware resource or the virtual resource, and when the EM corresponding to the user virtual machine 123 receives the alarm information, based on The alarm message is processed for the alarm event.
  • the EM corresponding to the VNF included in the user virtual machine 123 can also detect and manage the VNF. When the EM detects that the VNF has an alarm event, the EM can process the fault in the VNF.
  • the related art has at least the following problem: when the alarm monitor in the NFVI1 detects an alarm event and generates the alarm information, the alarm information needs to be forwarded multiple times through VIM and VNFM. In order to send to EM, the process is complicated, and the efficiency of sending the alarm information is inefficient.
  • the present invention provides an alarm method and apparatus in a network function virtualization environment.
  • the technical solution is as follows:
  • an alarm method in a network function virtualization environment comprising:
  • the primary virtual machine receives alarm information sent by an alarm monitor in the network function virtualization infrastructure NFVI included in the NFV system, and the alarm information is generated when the alarm monitor detects an alarm event, and the alarm information is carried in the alarm information. Generating a resource identifier of the alarm event;
  • the primary virtual machine respectively indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier.
  • the alarm information does not need to be forwarded multiple times through the VIM and the VNFM, the efficiency of transmitting the alarm information to the EM is improved, and the EM can be surely received the alarm information in time.
  • the alarm event is processed in time, and the fault in the NFV system is processed and repaired in time, thereby improving the reliability of the NFV system.
  • the primary virtual machine includes a first backend split alarm driver (BSAD), where the target virtual machine includes Frontend Split Alarm Driver (FSAD);
  • BSAD backend split alarm driver
  • FSAD Frontend Split Alarm Driver
  • the primary virtual machine indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier, including:
  • the primary virtual machine sends the alarm information to the FSAD in the at least one target virtual machine by using the first BSAD, based on the at least one target virtual machine identifier, to indicate the at least one target virtual machine.
  • the FSAD in the SFAD sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine by using the VNF in the at least one target virtual machine.
  • the primary virtual machine may send the alarm information to the at least one target virtual machine by using the first BSAD and the FSAD, and the device is separated by the device in the primary virtual machine (Split Device) Driver, SDD) and the SDD in the target virtual machine send other messages to the target virtual machine to ensure that the alarm information is not confused with other messages, improving the efficiency and accuracy of sending the alarm information.
  • the primary virtual machine sends the alarm information and other messages to the at least one target virtual machine by using the first BSAD and the FSAD in the at least one target virtual machine, thereby reducing the primary virtual Machine complexity.
  • the primary virtual machine includes multiple second BSADs, and the multiple second BSADs and the FSADs of multiple user virtual machines are one by one. correspond;
  • the primary virtual machine indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier, including:
  • the alarm information can be avoided because the primary virtual machine sends the alarm information to the at least one target virtual machine through the second BSAD corresponding to the at least one target virtual machine and the FSAD in the at least one target virtual machine. Sent to other user virtual machines in the plurality of user virtual machines, because This improves the efficiency and accuracy of sending this alarm message.
  • the primary virtual machine may also send the alarm information and other messages to the at least one target virtual machine by using the second BSAD corresponding to the at least one target virtual machine and the FSAD in the at least one target virtual machine. To reduce the complexity of the primary virtual machine.
  • the primary virtual machine respectively indicates the alarm information to the at least one target virtual machine based on the at least one target virtual machine identifier
  • the EM corresponding to the VNF includes:
  • the primary virtual machine stores the alarm information in an alarm information pool, where the alarm information pool is a shared storage space accessible by the primary virtual machine and multiple user virtual machines;
  • the primary virtual machine since the primary virtual machine stores the alarm information in the alarm information pool without sending the alarm information to the at least one target virtual machine, when the alarm information in the NFV system is large, the A plurality of alarm information is stored in the alarm information pool, that is, the efficiency of the primary virtual machine to indicate the alarm information to the at least one target virtual machine can be improved, thereby improving the efficiency of the alarm method.
  • the NFVI includes a hardware layer, a software layer, and The virtual layer
  • the alarm information includes first alarm information and second alarm information
  • the first alarm information is alarm information in the hardware layer
  • the second alarm information is the virtual layer or the software layer Alarm information in the middle.
  • the primary virtual machine receives an alarm message sent by an alarm monitor in the NFVI included in the NFV system, include:
  • the primary virtual machine receives the first alarm information sent by the alarm monitor in the hardware layer by using the local driving of the resource for generating the alarm event, and the resource for generating the alarm event is the A hardware resource in the hardware layer that corresponds to the alarm event.
  • the plurality of local drivers respectively correspond to a plurality of hardware resources in the hardware layer, and the primary virtual machine can be performed by using any local driver and hardware resources corresponding to the local driver. Communication, therefore, can be localized through the installed resources that generate the alarm event Driving the first alarm information sent by the alarm monitor in the hardware layer reduces the difficulty of developing the primary virtual machine, and since the local driver is a local driver corresponding to the resource generating the alarm event, the master The virtual machine can quickly and accurately receive the first alarm information of the resource generating the alarm event through the local driver, that is, the efficiency of receiving the first alarm information is improved, thereby improving the alarm efficiency in the network function virtualization environment.
  • the determining, by the primary virtual machine, the at least one target virtual machine identifier, based on the alarm information includes:
  • the primary virtual machine determines, by the first BSAD, the at least one target virtual machine identifier based on the resource identifier that generates the alarm event carried in the first alarm information.
  • the primary virtual machine determines the at least one target virtual machine identifier by the local driver of the resource that generates the alarm event, since the first alarm information is received and the at least one target virtual machine identifier is determined to be the same driver, The total time taken by the primary virtual machine to receive the alarm information and determine the at least one target virtual machine identifier can be reduced, thereby improving the efficiency of the primary virtual machine to alert the alarm event.
  • the local driver of the resource that generates the alarm event does not need to be upgraded, thereby avoiding the local driver that may upgrade the resource that generates the alarm event may bring The problem of incompatibility, that is, the reliability of the main virtual machine is improved, thereby improving the reliability of the NFV system.
  • the primary virtual machine receives alarm monitoring in a network function virtualization infrastructure NFVI included in the NFV system Alarm information sent by the device, including:
  • the primary virtual machine determines the at least one target virtual machine identifier based on the alarm information, including:
  • the primary virtual machine determines, by the first BSAD, the at least one target virtual machine identifier based on the resource identifier that generates the alarm event carried in the first alarm information.
  • the primary virtual machine when the primary virtual machine receives the alarm information through the first BSAD, determines the at least one destination When the virtual machine identifier is sent and the alarm information is sent to the at least one target virtual machine, the complexity of the primary virtual machine can be reduced, and the primary virtual machine is also upgraded because the first BSAD does not need to interact with other devices.
  • the efficiency of the alarm method is improved by receiving the alarm information to the efficiency of transmitting the alarm information to the at least one target virtual machine.
  • the primary virtual machine may determine, by using the first BSAD, the at least one resource identifier that is generated in the alarm information to generate the alarm event.
  • Target virtual machine ID the at least one resource identifier that is generated in the alarm information to generate the alarm event.
  • an alarm device in a network function virtualization environment the alarm device being used in an NFV system, wherein the device comprises:
  • a receiving module configured to receive, by the primary virtual machine, alarm information sent by an alarm monitor in the NFVI included in the NFV system, where the alarm information is generated when the alarm monitor detects an alarm event, and the alarm information is carried in the alarm information. a resource identifier of the alarm event;
  • a determining module configured, by the primary virtual machine to determine at least one target virtual machine identifier based on the alarm information, where the target virtual machine is a user virtual machine occupying a resource that generates the alarm event;
  • an indicating module configured to indicate, by the primary virtual machine, the alarm information to the EM corresponding to the VNF in the at least one target virtual machine, respectively, based on the at least one target virtual machine identifier.
  • the primary virtual machine includes a first BSAD, and the target virtual machine includes an FSAD;
  • the indication module comprises:
  • a first sending unit configured to send the alarm information to the FSAD in the at least one target virtual machine by using the first BSAD, based on the at least one target virtual machine identifier, to indicate The FSAD in the at least one target virtual machine sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine by using the VNF in the at least one target virtual machine.
  • the primary virtual machine includes multiple second BSADs, and the multiple second BSADs and the FSADs of multiple user virtual machines are one by one. correspond;
  • the indication module comprises:
  • a second sending unit configured to: respectively, by the primary virtual machine, the alarm message by using at least one second BSAD corresponding to the at least one target virtual machine based on the at least one target virtual machine identifier And sending the FSAD in the at least one target virtual machine to indicate that the FSAD in the at least one target virtual machine sends the alarm information to the at least one through a VNF in the at least one target virtual machine
  • the EM corresponding to the VNF in the target virtual machine.
  • the indication module includes:
  • a storage unit configured to store, by the primary virtual machine, the alarm information into an alarm information pool, where the alarm information pool is a shared storage space accessible by the primary virtual machine and multiple user virtual machines;
  • a third sending unit configured to send, by the primary virtual machine, an alarm notification to the at least one target virtual machine based on the at least one target virtual machine identifier, where the alarm notification is used to indicate that the at least one target virtual machine is The alarm information is obtained in the alarm information pool.
  • the NFVI includes a hardware layer, a software layer, and The virtual layer
  • the alarm information includes first alarm information and second alarm information
  • the first alarm information is alarm information in the hardware layer
  • the second alarm information is the virtual layer or the software layer Alarm information in the middle.
  • the receiving module includes:
  • a first receiving unit configured to receive, by the local virtual machine, the first alarm information sent by the alarm monitor in the hardware layer by using the local driving of the resource that generates the alarm event, where the generating The resource of the alarm event is a hardware resource in the hardware layer corresponding to the alarm event.
  • the determining module includes:
  • a first determining unit configured to: determine, by the local virtual machine, by using the local driving of the resource that generates the alarm event, based on the resource identifier that is generated in the first alarm information to generate the alarm event, At least one target virtual machine identity; or,
  • a second determining unit configured to determine, by the primary virtual machine, the at least one target virtual machine identifier by using the first BSAD, based on the resource identifier that is generated in the first alarm information to generate the alarm event.
  • the receiving module includes:
  • a second receiving unit configured to receive, by the primary virtual machine, the NFV by using the first BSAD The alarm information sent by the alarm monitor in the NFVI included in the system;
  • the determining module comprises:
  • a third determining unit configured to determine, by the primary virtual machine, the at least one target virtual machine identifier by using the first BSAD, based on the resource identifier that is generated in the first alarm information to generate the alarm event.
  • the primary virtual machine can receive the alarm information sent by the alarm monitor in the NFVI included in the NFV system, and generate the alarm based on the alarm information.
  • a resource identifier of the event determining, by the plurality of user virtual machines installed in the NFV system, at least one target virtual machine occupying the resource that generates the alarm event, and indicating the alarm information to the VNF corresponding to the at least one target virtual machine EM, since the alarm information does not need to be forwarded multiple times through the VIM and the VNFM, the efficiency of transmitting the alarm information to the EM is improved, and the EM corresponding to the VNF in the at least one target virtual machine can receive the alarm information in time.
  • the alarm event is processed in time to timely process and repair the fault in the NFV system, thereby improving the reliability of the NFV system.
  • FIG. 1A is a structural diagram of an NFV system provided by the prior art
  • FIG. 1B is a structural diagram of an alarm system in a network function virtualization environment according to an embodiment of the present invention
  • 1C is a flowchart of an alarm method in a network function virtualization environment according to an embodiment of the present invention
  • 2A is a flowchart of another alarm method in a network function virtualization environment according to an embodiment of the present invention.
  • FIG. 2B is a schematic structural diagram of an NFVI according to an embodiment of the present invention.
  • 2C is a schematic structural diagram of a virtual layer according to an embodiment of the present invention.
  • 2D is a schematic structural diagram of a primary virtual machine and multiple user virtual machines according to an embodiment of the present invention
  • 2E is a schematic structural diagram of another primary virtual machine and multiple user virtual machines according to an embodiment of the present invention.
  • 2F is a schematic structural diagram of still another main virtual machine and multiple user virtual machines according to an embodiment of the present invention.
  • FIG. 3 is a block diagram of an alarm device in a network function virtualization environment according to an embodiment of the present invention.
  • FIG. 1B is a schematic diagram of an alarm system in a network function virtualization environment according to an embodiment of the present invention.
  • an alarm system in the network function virtualization environment is used in an NFV system established based on XEN, the NFV alarm.
  • the system includes NFVI1, VNF and EM.
  • the NFVI1 includes a hardware layer 11, a virtual layer 12, and a software layer.
  • the hardware layer 11 includes hardware resources.
  • the virtual layer 12 includes a virtual resource 121, a primary virtual machine 122, and a user virtual machine 123.
  • the user virtual machine 123 is The semi-virtualized virtual machine is configured to establish a user virtual machine 123 in the NFV system and manage the user virtual machine 123.
  • the user virtual machine 123 is also referred to as a guest virtual machine and a user virtual machine. 123 can install and run user-supplied applications.
  • the user virtual machine 123 may include a VNF to implement a network function.
  • the VNF included in the user virtual machine 123 may correspond to an EM.
  • the software layer includes software resources such as an operating system of the primary virtual machine 122 and the user virtual machine 123.
  • the NFVI1 includes an alarm monitor to detect whether an alarm event is generated in the hardware layer 11, the virtual layer 12, and the software layer 13. When the alarm monitor in the NFVI1 detects an alarm event, the alarm information is generated.
  • the alarm information carries a resource identifier that generates the alarm event, and the alarm monitor sends the alarm information to the primary virtual machine 122.
  • the primary virtual machine 122 When the primary virtual machine 122 receives the alarm information, the alarm is generated based on the alarm information.
  • the resource identifier of the event, the at least one target virtual machine identifier is determined, and the target virtual machine is a user virtual machine that occupies a resource that generates the alarm event, and then the primary virtual machine may use the at least one target virtual machine identifier to send the alarm information
  • the EM corresponding to the VNF in the at least one target virtual machine is respectively indicated.
  • FIG. 1C is a flow of an alarm method in a network function virtualization environment according to an embodiment of the present invention.
  • Process diagram see Figure 1C, the alarm method is used in the NFV system, and the alarm method includes:
  • Step 101 The primary virtual machine receives the alarm information sent by the alarm monitor in the NFVI included in the NFV system, and the alarm information is generated when the alarm monitor detects the alarm event, and the alarm information carries the resource identifier that generates the alarm event. .
  • Step 102 The primary virtual machine determines at least one target virtual machine identifier based on the alarm information, where the target virtual machine is a user virtual machine occupying a resource that generates the alarm event.
  • Step 103 The primary virtual machine respectively indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier.
  • the primary virtual machine may receive the alarm information sent by the alarm monitor in the NFVI included in the NFV system, and install from the NFV system based on the resource identifier generated in the alarm information that generates the alarm event. Determining, by the plurality of user virtual machines, at least one target virtual machine occupying the resource that generates the alarm event, indicating the alarm information to the EM corresponding to the VNF in the at least one target virtual machine, because the alarm information does not need to pass the VIM and The VNFM performs multiple forwardings to improve the efficiency of sending the alarm information to the EM, and can ensure that the EM corresponding to the VNF in the at least one target virtual machine can receive the alarm information in time to timely process the alarm event, and then The faults in the NFV system are processed and repaired in time to improve the reliability of the NFV system.
  • the primary virtual machine includes a first BSAD, and the target virtual machine includes an FSAD;
  • the primary virtual machine indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier, including:
  • the primary virtual machine sends the alarm information to the FSAD in the at least one target virtual machine by using the at least one target virtual machine identifier, by using the first BSAD, to indicate that the FSAD in the at least one target virtual machine passes the
  • the VNF in the at least one target virtual machine sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine.
  • the primary virtual machine includes multiple second BSADs, and the multiple second BSADs are in one-to-one correspondence with the FSADs of the multiple user virtual machines.
  • the primary virtual machine indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier, including:
  • the primary virtual machine sends the alarm information to the FSAD in the at least one target virtual machine by using the at least one target virtual machine identifier, by using the at least one second BSAD corresponding to the at least one target virtual machine, to indicate the at least The FSAD in a target virtual machine sends the alarm information to the VNF in the at least one target virtual machine through the VNF in the at least one target virtual machine Corresponding EM.
  • the primary virtual machine indicates, according to the at least one target virtual machine identifier, the alarm information to the EM corresponding to the VNF in the at least one target virtual machine, including:
  • the primary virtual machine stores the alarm information in an alarm information pool, where the alarm information pool is a shared storage space accessible by the primary virtual machine and multiple user virtual machines;
  • the primary virtual machine sends an alarm notification to the at least one target virtual machine based on the at least one target virtual machine identifier, the alarm notification is used to instruct the at least one target virtual machine to obtain the alarm information from the alarm information pool.
  • the NFVI includes a hardware layer, a software layer, and a virtual layer
  • the alarm information includes first alarm information and second alarm information, where the first alarm information is alarm information in the hardware layer, and the second alarm information is Alarm information in the virtual layer or the software layer.
  • the primary virtual machine receives the alarm information sent by the alarm monitor in the NFVI included in the NFV system, including:
  • the first virtual machine receives the first alarm information sent by the alarm monitor in the hardware layer, where the resource generating the alarm event is the alarm event in the hardware layer Corresponding hardware resources.
  • the primary virtual machine determines the at least one target virtual machine identifier based on the alarm information, including:
  • the primary virtual machine determines, by the first BSAD, the at least one target virtual machine identifier based on the resource identifier that is generated in the first alarm information and that generates the alarm event.
  • the primary virtual machine receives the alarm information sent by the alarm monitor in the NFVI included in the NFV system, including:
  • the primary virtual machine receives, by the first BSAD, an alarm message sent by an alarm monitor in the NFVI included in the NFV system;
  • the primary virtual machine determines at least one target virtual machine identifier based on the alarm information, including:
  • the primary virtual machine determines, by the first BSAD, the at least one target virtual machine identifier based on the resource identifier that is generated in the first alarm information and that generates the alarm event.
  • FIG. 2A is a flowchart of an alarm method in a network function virtualization environment according to an embodiment of the present invention.
  • the alarm method is used in an NFV system, and the alarm method includes:
  • Step 201 When an alarm event is detected by the alarm monitor in the NFVI included in the NFV system, an alarm information is generated, and the alarm information is sent to the main virtual machine, where the alarm information carries a resource identifier that generates the alarm event.
  • an alarm monitor may be set in the NFVI to detect whether an alarm event is generated in the NFVI.
  • an alarm information may be generated, where the alarm information carries a resource identifier that generates the alarm event, and in order to process the alarm event, the alarm monitor in the NFVI may The alarm information is sent to the primary virtual machine.
  • the NFVI includes a hardware layer, a virtual layer, and a software layer.
  • the hardware layer includes physical resources such as physical computing resources, physical storage resources, and physical network resources, and the physical computing resources may be physical CPUs (Central Processing Units), and the physical storage resources may be physical.
  • the physical network resource may be a physical network device.
  • the hardware layer may further include other hardware resources, and the physical computing resource, the physical storage resource, and the physical network resource may further include other physical The device is not specifically limited in this embodiment of the present invention.
  • the virtual layer includes virtual resources, a primary virtual machine and a user virtual machine.
  • the virtual resource may include a virtual computing resource, a virtual storage resource, a virtual network resource, and the like.
  • the virtual computing resource may be a virtual CPU, and the virtual storage resource may be a virtual network device, and the virtual network resource may be a virtual network device.
  • the virtual layer may further include other virtual resources, and the virtual computing resource, the virtual storage resource, and the virtual network resource may further include other virtual devices, which are not specifically limited in this embodiment of the present invention.
  • the primary virtual machine may be obtained on the general hardware platform, and the NFV system is established based on the XEN.
  • the primary virtual machine may be used to establish a user virtual machine and manage the user virtual machine; the user virtual machine is also called For the guest virtual machine, the user virtual machine can be installed through the primary virtual machine and can install and run the user-provided application.
  • the virtual layer may include one user virtual machine, and may also include multiple user virtual machines, which are not specifically limited in this embodiment of the present invention.
  • the software layer may include an operating system of the primary virtual machine and an operating system of the user virtual machine.
  • the hardware layer 11 in the NFVI1 included in the NFV system includes a plurality of alarm monitors, and each alarm monitor can respectively correspond to a hardware resource to generate an alarm event for the hardware resource. Detection.
  • the virtual layer 12 in the NFVI1 includes an alarm monitor in which an alarm monitor can detect whether a virtual resource in the virtual layer and a plurality of user virtual machines included in the virtual layer have alarm event generation.
  • the alarm monitor in the hardware layer can be set by the manufacturer of each hardware resource in the hardware layer when the hardware resource is produced.
  • the alarm monitor in the hardware layer is also It can be set in other manners at other occasions, which is not specifically limited in the embodiment of the present invention.
  • the alarm monitor in the virtual layer may be obtained when the NFV system is established based on XEN in the hardware platform.
  • the alarm monitor in the virtual layer may also be at other timings. The embodiment of the present invention does not specifically limit this.
  • the virtual layer 12 includes a plurality of alarm monitors, and the plurality of alarm monitors may be respectively associated with the virtual layer in the virtual layer Resources correspond one-to-one.
  • the alarm monitor of the virtual layer can also detect whether the primary virtual machine and the plurality of user virtual machines have alarm event generation.
  • the alarm monitor in the virtual layer may also detect whether an operating event of the user virtual machine included in the software layer generates an alarm event; or, in another possible implementation, the software layer may also include The alarm monitor further detects whether an operating event of the user virtual machine included in the software layer generates an alarm event.
  • the software layer can also include an alarm monitor
  • the alarm monitor in the software layer can be obtained when the user virtual machine is installed in the NFV system through the primary virtual machine, of course, in practical applications.
  • the alarm monitor in the software layer can also be set by other means, which is not specifically limited in this embodiment of the present invention.
  • the alarm event may be any alarm event generated in the hardware layer, the virtual layer, or the software layer.
  • the alarm event may be that the physical CPU usage is too high. Insufficient physical storage space, network connection failure, etc.; for the virtual layer, the alarm event may be that the virtual CPU usage is too high, the virtual storage space is insufficient, the network connection fails, the primary virtual machine is down, or a user virtual machine is down. Etc.; for the software layer, the alarm event may be that the operating system of a user virtual machine is faulty, and the like.
  • the alarm event may also include other alarm events, which are not specifically limited in this embodiment of the present invention.
  • the resource identifier carried in the alarm information is a resource identifier that generates the alarm event, and the resource identifier can be determined by the NFV system before the alarm monitor in the NFVI generates the alarm information.
  • the alarm information may carry other information, such as an alarm information identifier, an alarm event description, and an alarm time, which are not specifically limited in this embodiment of the present invention.
  • the alarm information identifier may be the number of the alarm event in the NFV, etc., of course, in an actual application, the alarm information identifier may be other information that can identify the alarm event, which is not specifically limited in the present invention.
  • the alarm monitor in the NFVI detects the alarm event 1, and the resource that generates the alarm event is a physical CPU, the resource identifier of the physical CPU is hardware01, and the alarm event indicates that the physical CPU usage is too high, therefore, the NFVI is The alarm monitor generates an alarm message 1, the resource identifier hardware01 and the alarm event that generate the alarm event 1 in the alarm information 1 indicate that the physical CPU occupancy rate is too high, and the alarm information 1 is sent to the primary virtual machine.
  • the alarm information includes first alarm information and alarm information, where the first alarm information is alarm information in the hardware layer, and the second alarm information is alarm information in the virtual layer or the software layer.
  • the first alarm information may be that the alarm monitor in the NFVI detects that any hardware resource of the hardware layer has an alarm event generated when an alarm event is generated
  • the second alarm information may be an alarm in the NFVI.
  • the monitor detects any virtual resource of the virtual layer, the primary virtual machine, any one of the plurality of user virtual machines, or the software layer generates alarm information generated when an alarm event occurs.
  • Step 202 The primary virtual machine receives the alarm information sent by the alarm monitor in the NFVI.
  • the alarm monitor in the NFVI can generate an alarm message when an alarm event is detected in the NFVI, and in order to process the alarm information, the alarm monitor in the NFVI can send the alarm information to The primary virtual machine, therefore, the primary virtual machine can receive alarm information sent by the alarm monitor in the NFVI.
  • the primary virtual machine includes a first BSAD, and the primary virtual machine receives the alarm information sent by the alarm monitor in the NFVI through the first BSAD.
  • the first BSAD may be established by the primary virtual machine before receiving the alarm information, which is not specifically limited in this embodiment of the present invention.
  • the primary virtual machine receives the first alarm information sent by the alarm monitor in the hardware layer by using a local driver that generates the resource for the alarm event, and generates a resource of the alarm event as the hardware layer.
  • the plurality of local drivers respectively correspond to a plurality of hardware resources in the hardware layer, and the primary virtual machine can be performed by using any local driver and hardware resources corresponding to the local driver. Communication, therefore, the first alarm information sent by the alarm monitor in the hardware layer can be received by the installed local driver of the resource generating the alarm event, thereby reducing the difficulty of developing the primary virtual machine, and since the local driver is Generating a local driver corresponding to the resource of the alarm event, so that the primary virtual machine can quickly and accurately receive the first alarm information of the resource generating the alarm event through the local driver, that is, the efficiency of receiving the first alarm information is improved. , thereby improving the alarm efficiency in the network function virtualization environment.
  • the primary virtual machine may receive the second alarm information by using the first BSAD, and at this time, the The primary virtual machine does not receive the first alarm information through the first BSAD.
  • Step 203 The primary virtual machine determines at least one target virtual machine identifier based on the alarm information, where the target virtual machine is a user virtual machine occupying a resource that generates the alarm event.
  • the primary virtual machine can determine the user virtual machine occupying the resource that generated the alarm event based on the alarm information, and the alarm event will be occupied.
  • the user virtual machine of the resource is determined to be at least one target virtual machine.
  • the primary virtual machine may perform a correspondence between the stored resource identifier and the user virtual machine identifier based on the resource identifier generated in the alarm information that generates the alarm event. And obtaining at least one user virtual machine identifier, and determining the obtained at least one user virtual machine identifier as the at least one target virtual machine identifier.
  • the user virtual machine identifier is used to uniquely identify one in the NFV system.
  • Corpse virtual machine is used to uniquely identify one in the NFV system.
  • the primary virtual machine may further determine at least one target virtual machine identifier based on the resource identifier that generates the alarm event, for example, in a possible implementation manner,
  • the primary virtual device sends a target virtual machine identifier acquisition request to the VIM, where the target virtual machine identifier acquisition request carries the resource identifier that generates the alarm event, and when the VIM receives the target virtual machine identifier acquisition request, the alarm event is generated based on the alarm event.
  • the at least one user virtual machine identifier that identifies the resource identifier that generates the alarm event, and sends the at least one user virtual machine identifier to the primary virtual machine, when the primary virtual network receives the at least one user virtual machine identifier.
  • the at least one user virtual machine is determined as the at least one target virtual machine identifier, which is not specifically limited in this embodiment of the present invention.
  • the VIM can allocate resources such as hardware resources, virtual resources, and software resources to the user virtual machine. Therefore, the VIM usually stores the resource identifier of each resource and the user virtual machine identifier of the user virtual machine occupying each resource.
  • the primary virtual machine receives the alarm information 1 and the resource identifier of the alarm event 1 carried in the alarm information 1 is hardware01. Therefore, the primary virtual machine is based on the resource identifier and the user virtual machine identifier shown in Table 1 below. In the corresponding relationship, the user virtual machine ID corresponding to the resource identifier hardware01 is determined as Guest 1. Therefore, the user virtual machine Guest 1 is determined as the at least one target virtual machine identifier.
  • the primary virtual machine may acquire each of the NFVIs before determining at least one target virtual machine identifier from the corresponding relationship between the resource identifier and the user virtual machine identifier based on the resource identifier that generates the alarm event.
  • the user virtual machine identifier of the virtual machine is stored in the correspondence between the resource identifier and the user virtual machine identifier.
  • the primary virtual machine may send a resource allocation acquisition request to the VIM.
  • the VIM receives the resource allocation acquisition request, the resource identifier of each resource and the user virtual machine identifier of the user virtual machine occupying each resource may be Sent to the user virtual machine.
  • the primary virtual machine determines, by the first BSAD, the at least one target virtual machine identifier based on the resource identifier generated in the first alarm information that generates the alarm event.
  • the primary virtual machine receives the alarm information through the first BSAD and determines, by the first BSAD, the at least one target virtual machine identifier based on the resource identifier generated in the first alarm information that generates the alarm event, Receiving the alarm information and determining, according to the resource identifier generated in the first alarm information that the alarm event is generated, that the at least one target virtual machine identifier is the same driver, and therefore, the primary virtual machine can be reduced from receiving the alarm information.
  • the total time spent by the at least one target virtual machine identifier is determined, thereby improving the efficiency of the alarm event of the primary virtual machine to perform an alarm.
  • the primary virtual machine does not receive the alarm information by using the first BSAD, determining, by using the first BSAD, determining, according to the resource identifier generated in the first alarm information, the at least one target virtual Machine identification operation.
  • the primary virtual machine when the primary virtual machine receives the first alarm information through a local driver that generates the resource of the alarm event, the primary virtual machine generates a local drive based on the resource that generates the alarm event, based on the generation carried in the first alarm information.
  • the resource identifier of the alarm event determines at least one target virtual machine identifier, or the primary virtual machine determines at least one target virtual machine based on the resource identifier generated by the first alarm information and generating the alarm event by using the first BSAD. logo.
  • the primary virtual machine receives the first alarm information through the local driver of the resource that generates the alarm event, and determines at least one target virtual machine identifier by using the local driver of the resource that generates the alarm event, An alarm information and a resource identifier generated based on the first alarm information to generate the alarm event determine that at least one target virtual machine identifier is the same driver, and therefore, the primary virtual machine can be reduced from receiving the alarm information and determining at least The total time spent by a target virtual machine identifier increases the efficiency of the alarm event of the primary virtual machine.
  • the primary virtual machine When the primary virtual machine receives the first alert information through the local driver of the resource that generated the alert event, and by determining at least one target virtual machine identity by the first BSAD, the local driver of the resource generating the alert event is not required to be performed. Upgrade, thereby avoiding the incompatibility problems caused by the local driver that upgrades the resource that generated the alarm event, that is, improving the reliability of the primary virtual machine, thereby improving the NFV. System reliability.
  • Step 204 The primary virtual machine respectively indicates the alarm information to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier.
  • the target virtual machine is a user virtual machine that occupies the resource that generates the alarm event in the multiple user virtual machines
  • the alarm information may be indicated to at least
  • the EM corresponding to the VNF in a target virtual machine can ensure that the EM corresponding to the VNF in at least one target virtual machine can receive the alarm information in time to timely process the alarm event, thereby performing the fault in the NFV system. Timely processing and repair improves the reliability of the NFV system.
  • the EM corresponding to the VNF in the at least one target virtual machine may be included in the following two possible implementation manners:
  • the primary virtual machine separately sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine.
  • the primary virtual machine may separately send the alarm information to the EM corresponding to the VNF in the at least one target virtual machine by using a shared memory mechanism.
  • the shared memory mechanism is a communication mechanism in the NFV system, and the primary virtual machine can set a shared memory for communication between the primary virtual machine and the user virtual machine when the user virtual machine is established. Then, when the primary virtual machine needs to send a message to the user virtual machine, the message is stored in the shared memory, and a message notification is sent to the user virtual machine, when the user virtual machine receives the message notification, The shared memory obtains a message sent by the primary virtual machine to the user virtual machine.
  • the primary virtual machine may also send the alarm information to the target virtual machine through other possible mechanisms.
  • the primary virtual machine may send the alarm information to the message through a message delivery mechanism.
  • the target virtual machine that is, the primary virtual machine directly sends the alarm information to the target virtual machine, which is not specifically limited in this embodiment of the present invention.
  • the primary virtual machine separately sending the alarm information to the EM corresponding to the VNF in the at least one target virtual machine may include the following two possible situations:
  • the primary virtual machine 122 includes a first BSAD, where the target virtual machine includes an FSAD, and correspondingly, the primary virtual machine is respectively based on the at least one target virtual machine identifier.
  • the alarm information indicates that the operation of the EM corresponding to the VNF in the at least one target virtual machine may be: the primary virtual machine sends the alarm information to the at least one by using the at least one target virtual machine identifier by using the first BSAD FSAD in the target virtual machine to indicate the at least one
  • the FSADs in the target virtual machines respectively send the alarm information to the EM corresponding to the VNF in the at least one target virtual machine through the VNF in the at least one target virtual machine.
  • the primary virtual machine includes an SDD
  • the plurality of user virtual machines also include an SDD
  • the SDD in the primary virtual machine sends a message to the SDD in the user virtual machine. Therefore, when the SDD is included in the primary virtual machine, the SDD in the primary virtual machine can be upgraded to obtain the first BSAD, and accordingly, the SDD in the target virtual machine is upgraded to obtain the FSAD, so that the primary is not needed.
  • the addition of the driver that sends the alarm information to the virtual machine and the target virtual machine reduces the complexity of the primary virtual machine and the target virtual machine.
  • the primary virtual machine 122 includes the first BSAD and the SDD
  • the target virtual machine includes the FSAD and the SDD, that is, the primary virtual machine passes the first BSAD and the FSAD to the
  • the target virtual machine sends the alarm information, and sends other messages to the target virtual machine through the SDD in the primary virtual machine and the SDD in the target virtual machine to ensure that the alarm information is not confused with other messages, and the sending of the alarm information is improved.
  • Efficiency and accuracy is possible to be improved.
  • the VNF sends the alarm information to the EM corresponding to the VNF
  • the VNF if an alarm event is also generated in the VNF, the VNF generates an alarm message of the VNF for the alarm event in the VNF, and the The alarm information of the VNF is also sent to the EM, and the step of detecting and managing the VNF by the EM is omitted, thereby improving the working efficiency of the target virtual machine and the working efficiency of the VNF system.
  • the primary virtual machine 122 includes a plurality of second BSADs, and the plurality of second BSADs are in one-to-one correspondence with the FSADs of the plurality of user virtual machines, and correspondingly, the primary The operation of the virtual machine to the EM corresponding to the VNF in the at least one target virtual machine based on the at least one target virtual machine identifier may be: the primary virtual machine passes the at least one target virtual machine identifier, and the At least one second BSAD corresponding to the at least one target virtual machine, respectively sending the alarm information to the FSAD in the at least one target virtual machine, to indicate that the FSAD in the at least one target virtual machine respectively passes through the at least one target virtual machine
  • the VNF sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine.
  • the primary virtual machine sends the alarm information to the FSAD in the target virtual machine through the second BSAD corresponding to the target virtual machine, the alarm information can be avoided from being sent to other users in the multiple user virtual machines. Machine, thus further improving the efficiency and accuracy of sending the alarm information.
  • the primary virtual machine may be included in the primary virtual machine.
  • Each SDD is upgraded to obtain a plurality of second BSADs, and correspondingly, the SDD in the target virtual machine is upgraded to obtain FSAD, so that it is not necessary to newly add a driver that sends the alarm information in the primary virtual machine and the target virtual machine.
  • the complexity of the primary virtual machine and the target virtual machine is reduced, and the difficulty of implementing the alarm method is also reduced.
  • the primary virtual machine includes multiple second BSADs and multiple SDDs.
  • the target virtual machine includes FSAD and SDD, that is, the primary virtual machine sends the target virtual machine to the target virtual machine through the second BSAD and the FSAD.
  • the alarm information is sent to the target virtual machine through the SDD corresponding to the target virtual machine in the primary virtual machine and the SDD in the target virtual machine to ensure that the alarm information is not confused with other messages, and the alarm is sent. The efficiency and accuracy of information.
  • the primary virtual machine stores the alarm information in an alarm information pool, where the alarm information pool is a shared storage space accessible by the primary virtual machine and the multiple user virtual machines, the primary virtual And sending, by the at least one target virtual machine identifier, an alarm notification to the at least one target virtual machine, the alarm notification is used to instruct the at least one target virtual machine to obtain the alarm information from the alarm information pool.
  • the primary virtual machine since the primary virtual machine stores the alarm information in the alarm information pool without sending the alarm information to the at least one target virtual machine, when the alarm information in the NFV system is large, the A plurality of alarm information is stored in the alarm information pool, that is, the efficiency of the primary virtual machine to indicate the alarm information to the at least one target virtual machine can be improved, thereby improving the efficiency of the alarm method.
  • the alarm information pool may be set by the primary virtual machine when the alarm information needs to be stored for the first time, which is not specifically limited in this embodiment of the present invention.
  • the primary virtual machine when the primary virtual machine stores the alarm information in the alarm information pool, the primary virtual machine may not send the alarm notification to the at least one target virtual machine, but instead respectively The at least one target virtual machine obtains, from the alarm information, alarm information that the primary virtual machine needs to send to the at least one target virtual machine at a specific time.
  • the primary virtual machine only needs to store the alarm information in the alarm information pool, thereby further reducing the number of interactions between the primary virtual machine and the at least one target virtual machine, and improving the alarm of the primary virtual machine.
  • the information indicates the efficiency of the at least one target virtual machine, that is, the alarm efficiency of the alarm method is further improved.
  • the specific duration may be determined by the plurality of user virtual machines before acquiring the alarm information from the alarm information, and the specific duration may be 1 millisecond or 3 milliseconds, of course, in practice. In the application, the specific duration may be determined by other methods, and the specific duration may also be other values, which is not specifically limited in the embodiment of the present invention.
  • the primary virtual machine may store the alarm information in the alarm information pool by using the first BSAD, and send the alarm information to the at least one target virtual machine based on the at least one target virtual machine identifier.
  • the alarm notification, or the primary virtual machine may also be sent to the alarm information pool through the second BSAD corresponding to the target virtual machine, and sent to the at least one target virtual machine based on the at least one target virtual machine identifier.
  • the alarm notification is not specifically limited in this embodiment of the present invention.
  • the EM may determine to generate the alarm based on the resource identifier generated in the alarm information that generates the alarm event.
  • the event resource is processed based on the alarm event description carried in the alarm information, for example, the migration process is started immediately.
  • the processing strategy is different when the alarm event is different, and the embodiment of the present invention does not specifically limit this.
  • the primary virtual machine may receive the alarm information sent by the alarm monitor in the NFVI included in the NFV system, and based on the resource identifier generated in the alarm information to generate the alarm event, from the NFV system. Determining at least one target virtual machine occupying the resource that generates the alarm event, and indicating the alarm information to the EM corresponding to the VNF in the at least one target virtual machine, the alarm information does not need to pass.
  • the VIM and the VNFM perform multiple forwardings to improve the efficiency of sending the alarm information to the EM, and ensure that the EM corresponding to the VNF in the at least one target virtual machine can receive the alarm information in time to timely process the alarm event.
  • the faults in the NFV system are processed and repaired in time, which improves the reliability of the NFV system.
  • the primary virtual machine includes a local drive of a plurality of hardware resources included in the hardware layer in the NFVI
  • the first alarm corresponding to the resource generating the alarm event can be received by the local driver of the resource generating the alarm event.
  • the primary virtual machine may send the alarm information to the EM corresponding to the VNF in the target virtual machine to improve the accuracy of indicating the alarm information, or store the alarm information in the alarm information pool, by the at least one
  • the target virtual machine obtains the alarm information from the alarm information pool, thereby improving the efficiency of the primary virtual machine indicating the alarm information to the at least one target virtual machine, and further improving The alarm efficiency of the alarm method is increased.
  • FIG. 3 is a schematic diagram of an alarm device in a network function virtualization environment according to an embodiment of the present invention.
  • the alarm device is used in an NFV system, and the device includes: a receiving module 301, a determining module 302, and an indicating module 303. .
  • the receiving module 301 is configured to receive, by the primary virtual machine, alarm information sent by an alarm monitor in the NFVI included in the NFV system, where the alarm information is generated when the alarm monitor detects an alarm event, and the alarm information carries the alarm event.
  • Resource identification ;
  • the determining module 302 is configured to determine, by the primary virtual machine, at least one target virtual machine identifier based on the alarm information, where the target virtual machine is a user virtual machine occupying a resource that generates the alarm event;
  • the indication module 303 is configured to indicate, by the primary virtual machine, the alarm information to the EM corresponding to the VNF in the at least one target virtual machine, respectively, based on the at least one target virtual machine identifier.
  • the primary virtual machine includes a first BSAD, and the target virtual machine includes an FSAD;
  • the indication module 303 comprises:
  • a first sending unit configured to send, by the primary virtual machine, the alarm information to the FSAD in the at least one target virtual machine by using the at least one target virtual machine identifier, to indicate the at least one target virtual
  • the FSAD in the machine sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine by using the VNF in the at least one target virtual machine.
  • the primary virtual machine includes multiple second BSADs, and the multiple second BSADs are in one-to-one correspondence with the FSADs of the multiple user virtual machines.
  • the indication module 303 comprises:
  • a second sending unit configured to send, by the primary virtual machine, the alarm information to the at least one target virtual machine by using at least one second BSAD corresponding to the at least one target virtual machine based on the at least one target virtual machine identifier
  • the FSAD is configured to indicate that the FSAD in the at least one target virtual machine sends the alarm information to the EM corresponding to the VNF in the at least one target virtual machine by using the VNF in the at least one target virtual machine.
  • the indication module 303 includes:
  • a storage unit configured to store, by the primary virtual machine, the alarm information into an alarm information pool, where the alarm information pool is a shared storage space accessible by the primary virtual machine and multiple user virtual machines;
  • a third sending unit configured to send, by the primary virtual machine, an alarm notification to the at least one target virtual machine based on the at least one target virtual machine identifier, where the alarm notification is used to indicate the at least one target virtual machine
  • the alarm information is obtained from the alarm information pool.
  • the NFVI includes a hardware layer, a software layer, and a virtual layer
  • the alarm information includes first alarm information and second alarm information, where the first alarm information is alarm information in the hardware layer, and the second alarm information is Alarm information in the virtual layer or the software layer.
  • the receiving module 301 includes:
  • a first receiving unit configured to receive the first alarm information sent by the alarm monitor in the hardware layer by the local driving of the resource that generates the alarm event, where the resource for generating the alarm event is The hardware resource in the hardware layer that corresponds to the alarm event.
  • the determining module 302 includes:
  • a first determining unit configured to: determine, by the local virtual machine, a local driving of the resource that generates the alarm event, based on the resource identifier that is generated in the first alarm information to generate the alarm event, to determine the at least one target virtual machine identifier; or,
  • the second determining unit is configured to determine, by the primary virtual machine, the at least one target virtual machine identifier by using the first BSAD, based on the resource identifier that is generated in the first alarm information and generating the alarm event.
  • the receiving module 301 includes:
  • a second receiving unit configured to receive, by using the first BSAD, the alarm information sent by the alarm monitor in the NFVI included in the NFV system;
  • the determining module comprises:
  • the third determining unit is configured to determine, by the primary virtual machine, the at least one target virtual machine identifier by using the first BSAD, based on the resource identifier that is generated in the first alarm information to generate the alarm event.
  • the primary virtual machine may receive the alarm information sent by the alarm monitor in the NFVI included in the NFV system, and install from the NFV system based on the resource identifier generated in the alarm information that generates the alarm event. Determining, by the plurality of user virtual machines, at least one target virtual machine occupying the resource that generates the alarm event, indicating the alarm information to the EM corresponding to the VNF in the at least one target virtual machine, because the alarm information does not need to pass the VIM and The VNFM performs multiple forwardings to improve the efficiency of sending the alarm information to the EM, and can ensure that the EM corresponding to the VNF in the at least one target virtual machine can receive the alarm information in time to timely process the alarm event, and then The faults in the NFV system are processed and repaired in time to improve the reliability of the NFV system.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

本发明实施例提供了一种网络功能虚拟化环境中的报警方法及装置,涉及互联网领域,所述报警方法用于网络功能虚拟化NFV系统中,所述方法包括,主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,所述报警信息为所述报警监控器检测到报警事件时生成,所述报警信息中携带产生所述报警事件的资源标识,所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生所述报警事件的资源的用户虚拟机,所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中虚拟网络功能VNF所对应的网元管理器EM。本发明能够提高将该报警信息发送给该EM的效率。

Description

网络功能虚拟化环境中的报警方法及装置 技术领域
本发明涉及互联网领域,特别涉及一种网络功能虚拟化环境中的报警方法及装置。
背景技术
网络功能虚拟化(Network Function Virtualization,简称NFV)由全球13个主要电信运营商发起,是众多设备商、信息技术(Information Technology,IT)厂商等参与的组织,旨在定义运营商网络功能虚拟化的需求和相关的技术报告,希望借鉴IT的虚拟化技术,利用通用的高性能大容量服务器、交换机和存储来实现部分网络功能的软件化。例如,各种类型的网络设备,如服务器、路由器、存储设备、内容分发网络(Content Delivery Network,CDN)、交换机等,都可以通过NFV技术实现软硬件分离,它们可以部署在数据中心、网络节点或者用户家中等。该NFV系统在运行的过程中可能会出现故障,从而影响该NFV系统的稳定性和可靠性,因此,为了在该NFV出现该故障时及时报警,以对该故障及时进行处理和修复,亟需一种网络功能虚拟化环境中的报警方法。
相关技术中,可以基于XEN建立该NFV系统,其中XEN是一种开源虚拟化技术。参见图1A,该NFV系统中包括NFV基础结构(NFV Infrastructure,NFVI)1、虚拟网络功能(Virtualization Network Functions,VNF)、网元管理器(Element Management,EM)和NFV编排管理器(NFV Management and Orchestration,NFV MANO)2。该NFVI1中包括硬件层11、虚拟层12和软件层,该硬件层11中包括硬件资源;该虚拟层12中包括虚拟资源121、主虚拟机122和用户虚拟机123,该用户虚拟机123为半虚拟化的虚拟机,即用户虚拟机123中的操作系统需要修改,以便于该用户虚拟机123能够在该NFV系统中运行。该用户虚拟机123可以包括一个VNF以实现网络功能,该用户虚拟机123中包括的VNF可以对应一个EM;该软件层中包括该主虚拟机122和用户虚拟机123的操作系统等软件资源。NFV MANO2中包括虚拟化基础设 施管理器(VirtualisedInfrastructure Manager,VIM)和VNF管理器(VNF Management,VNFM)。该NFV系统可以为用户虚拟机123分配硬件资源和虚拟资源,该NFVI1中设置有报警监控器,以对硬件资源、软件资源和虚拟资源是否产生报警事件进行检测,当该NFVI1中的报警监控器检测到硬件资源、软件资源或虚拟资源有报警事件产生时,生成报警信息,将该报警信息发送给该NFV MANO2中的VIM,当VIM接收到该报警信息时,将该报警信息发送给该VNFM,当VNFM接收到该报警信息时,将该报警信息发送给占用该硬件资源或该虚拟资源的用户虚拟机123对应的EM,当该用户虚拟机123对应的EM接收到该报警信息时,基于该报警信息,对该报警事件进行处理。另外,用户虚拟机123中包括的VNF对应的EM还可以对该VNF进行检测与管理,当该EM检测到该VNF有报警事件产生时,该EM可以对该VNF中的故障进行处理。
在实现本发明的过程中,发明人发现相关技术至少存在以下问题:当该NFVI1中的报警监控器检测到报警事件并生成该报警信息时,该报警信息需要通过VIM和VNFM进行多次转发,才能发送至EM,过程繁杂,发送该报警信息的效率低下。
发明内容
为了在该NFV出现该故障时及时报警,以对该故障及时进行处理,本发明提供了一种网络功能虚拟化环境中的报警方法及装置。所述技术方案如下:
第一方面,提供了一种网络功能虚拟化环境中的报警方法,所述报警方法用于NFV系统中,所述方法包括:
主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,所述报警信息为所述报警监控器检测到报警事件时生成,所述报警信息中携带产生所述报警事件的资源标识;
所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生所述报警事件的资源的用户虚拟机;
所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中VNF所对应的EM。
由于该报警信息不需要通过VIM和VNFM进行多次转发,提高了将该报警信息发送给该EM的效率,能够确保该EM能够及时接收到该报警信息,以 对该报警事件进行及时处理,进而对该NFV系统中的故障进行及时处理和修复,提高了该NFV系统的可靠性。
结合第一方面,在上述第一方面的第一种可能的实现方式中,所述主虚拟机中包括第一后端分离报警驱动(Backend Split Alarm Driver,BSAD),所述目标虚拟机中包括前端分离报警驱动(Frontend Split Alarm Driver,FSAD);
相应地,所述所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中VNF所对应的EM,包括:
所述主虚拟机基于所述至少一个目标虚拟机标识,通过所述第一BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
需要说明的是,在一种可能的实现方式中,该主虚拟机可以通过第一BSAD和FSAD向该至少一个目标虚拟机发送该报警信息,通过该主虚拟机中的设备分离驱动(Split Device Driver,SDD)和该目标虚拟机中的SDD向目标虚拟机发送其它消息,确保该报警信息不会和其它消息相混淆,提高了发送该报警信息的效率和准确率。在另一种可能的实现方式中,该主虚拟机通过第一BSAD和该至少一个目标虚拟机中的FSAD,向该至少一个目标虚拟机发送该报警信息和其它消息,减小了该主虚拟机复杂度。
结合第一方面,在上述第一方面的第二种可能的实现方式中,所述主虚拟机中包括多个第二BSAD,所述多个第二BSAD与多个用户虚拟机的FSAD一一对应;
相应地,所述所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中VNF所对应的EM,包括:
所述主虚拟机基于所述至少一个目标虚拟机标识,通过与所述至少一个目标虚拟机对应的至少一个第二BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
其中,由于该主虚拟机通过与该至少一个目标虚拟机对应的第二BSAD和该至少一个目标虚拟机中的FSAD,将该报警信息发送给该至少一个目标虚拟机,能够避免将该报警信息发送给该多个用户虚拟机中的其它用户虚拟机,因 此提高了发送该报警信息的效率和准确率。
还需要说明的是,该主虚拟机也可以通过与该至少一个目标虚拟机对应的第二BSAD和该至少一个目标虚拟机中的FSAD,向该至少一个目标虚拟机发送该报警信息和其它消息,以减小该主虚拟机的复杂度。
结合第一方面,在上述第一方面的第三种可能的实现方式中,所述所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中VNF所对应的EM,包括:
所述主虚拟机将所述报警信息存储至报警信息池中,所述报警信息池为所述主虚拟机和多个用户虚拟机均可以访问的共享存储空间;
所述主虚拟机基于所述至少一个目标虚拟机标识,向所述至少一个目标虚拟机发送报警通知,所述报警通知用于指示所述至少一个目标虚拟机从所述报警信息池中获取所述报警信息。
其中,由于该主虚拟机是将该报警信息存储至报警信息池中,而不必将该报警信息发送至该至少一个目标虚拟机,因此,当该NFV系统中的报警信息较多时,能够快速将多个报警信息存储至该报警信息池中,即能够提高该主虚拟机将该报警信息指示给该至少一个目标虚拟机的效率,进而提高了该报警方法的效率。
结合第一方面至第一方面的第三种可能实现方式中的任一种可能的实现方式,在上述第一方面的第四种可能的实现方式中,所述NFVI包括硬件层、软件层和虚拟层,所述报警信息包括第一报警信息和第二报警信息,所述第一报警信息为所述硬件层中的报警信息,所述第二报警信息为所述虚拟层或所述软件层中的报警信息。
结合第一方面的第四种可能实现方式,在上述第一方面的第五种可能的实现方式中,所述主虚拟机接收所述NFV系统包括的NFVI中的报警监控器发送的报警信息,包括:
所述主虚拟机通过安装的所述产生所述报警事件的资源的本地驱动,接收所述硬件层中的报警监控器发送的第一报警信息,所述产生所述报警事件的资源为所述硬件层中与所述报警事件对应的硬件资源。
由于该主虚拟机中包括多个本地驱动,该多个本地驱动分别与硬件层中的多个硬件资源一一对应,该主虚拟机可以通过任一个本地驱动和该本地驱动对应的硬件资源进行通信,因此,可以通过安装的产生该报警事件的资源的本地 驱动接收该硬件层中的报警监控器发送的第一报警信息,降低了对开发该主虚拟机的难度,且由于该本地驱动是与产生该报警事件的资源对应的本地驱动,因此,该主虚拟机机可以通过该本地驱动,快速准确地接收到产生该报警事件的资源的第一报警信息,即提高了接收第一报警信息的效率,从而提高了网络功能虚拟化环境中的报警效率。
结合第一方面的第五种可能实现方式,在上述第一方面的第六种可能的实现方式中,所述所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,包括:
所述主虚拟机通过所述产生所述报警事件的资源的本地驱动,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识;或者,
所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
其中,当该主虚拟机通过产生该报警事件的资源的本地驱动确定该至少一个目标虚拟机标识时,由于接收第一报警信息和确定该至少一个目标虚拟机标识的是同一个驱动,因此,能够减少该主虚拟机从接收到该报警信息并确定该至少一个目标虚拟机标识所耗费的总时间,进而提高了该主虚拟机对该报警事件进行报警的效率。当该主虚拟机通过第一BSAD确定该至少一个目标虚拟机标识时,不需要对产生该报警事件的资源的本地驱动进行升级,从而避免了升级产生该报警事件的资源的本地驱动可能带来的不兼容等问题,也即是提高了该主虚拟机的可靠性,进而提高了该NFV系统的可靠性。
结合第一方面的第一种可能实现方式,在上述第一方面的第七种可能的实现方式中,所述主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,包括:
所述主虚拟机通过所述第一BSAD,接收所述NFV系统包括的所述NFVI中的报警监控器发送的报警信息;
相应地,所述所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,包括:
所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
其中,当该主虚拟机通过第一BSAD接收该报警信息、确定该至少一个目 标虚拟机标识并将该报警信息发送给该至少一个目标虚拟机时,能够减小该主虚拟机的复杂度,同时由于第一BSAD不需要和其它设备进行交互,因此也提升了该主虚拟机从接收该报警信息到将该报警信息发送给该至少一个目标虚拟机的效率,进而提高了该报警方法的效率。
需要说明的是,当该主虚拟机不是通过第一BSAD接收该报警信息时,该主虚拟机也可以通过第一BSAD基于该报警信息中携带的产生该报警事件的资源标识,确定该至少一个目标虚拟机标识。
第二方面,提供了一种网络功能虚拟化环境中的报警装置,所述报警装置用于NFV系统中,其特征在于,所述装置包括:
接收模块,用于主虚拟机接收所述NFV系统包括的NFVI中的报警监控器发送的报警信息,所述报警信息为所述报警监控器检测到报警事件时生成,所述报警信息中携带产生所述报警事件的资源标识;
确定模块,用于所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生所述报警事件的资源的用户虚拟机;
指示模块,用于所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中VNF所对应的EM。
结合第二方面,在上述第二方面的第一种可能的实现方式中,所述主虚拟机中包括第一BSAD,所述目标虚拟机中包括FSAD;
相应地,所述指示模块包括:
第一发送单元,用于所述主虚拟机基于所述至少一个目标虚拟机标识,通过所述第一BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
结合第二方面,在上述第二方面的第二种可能的实现方式中,所述主虚拟机中包括多个第二BSAD,所述多个第二BSAD与多个用户虚拟机的FSAD一一对应;
相应地,所述指示模块包括:
第二发送单元,用于所述主虚拟机基于所述至少一个目标虚拟机标识,通过与所述至少一个目标虚拟机对应的至少一个第二BSAD,分别将所述报警信 息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
结合第二方面,在上述第二方面的第三种可能的实现方式中,所述指示模块包括:
存储单元,用于所述主虚拟机将所述报警信息存储至报警信息池中,所述报警信息池为所述主虚拟机和多个用户虚拟机均可以访问的共享存储空间;
第三发送单元,用于所述主虚拟机基于所述至少一个目标虚拟机标识,向所述至少一个目标虚拟机发送报警通知,所述报警通知用于指示所述至少一个目标虚拟机从所述报警信息池中获取所述报警信息。
结合第二方面至第二方面的第三种可能实现方式中的任一种可能的实现方式,在上述第二方面的第四种可能的实现方式中,所述NFVI包括硬件层、软件层和虚拟层,所述报警信息包括第一报警信息和第二报警信息,所述第一报警信息为所述硬件层中的报警信息,所述第二报警信息为所述虚拟层或所述软件层中的报警信息。
结合第二方面的第四种可能实现方式,在上述第二方面的第五种可能的实现方式中,所述接收模块包括:
第一接收单元,用于所述主虚拟机通过安装的所述产生所述报警事件的资源的本地驱动,接收所述硬件层中的报警监控器发送的第一报警信息,所述产生所述报警事件的资源为所述硬件层中与所述报警事件对应的硬件资源。
结合第二方面的第五种可能实现方式,在上述第二方面的第六种可能的实现方式中,所述确定模块包括:
第一确定单元,用于所述主虚拟机通过所述产生所述报警事件的资源的本地驱动,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识;或者,
第二确定单元,用于所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
结合第二方面的第一种可能的实现方式,在上述第二方面的第七种可能的实现方式中,所述接收模块包括:
第二接收单元,用于所述主虚拟机通过所述第一BSAD,接收所述NFV 系统包括的所述NFVI中的报警监控器发送的报警信息;
相应地,所述确定模块包括:
第三确定单元,用于所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
本发明提供的技术方案的有益效果是:在本发明实施例中,该主虚拟机可以接收NFV系统包括的NFVI中的报警监控器发送的报警信息,并基于该报警信息中携带的产生该报警事件的资源标识,从该NFV系统中安装的多个用户虚拟机中确定占用产生该报警事件的资源的至少一个目标虚拟机,将该报警信息指示给该至少一个目标虚拟机中VNF所对应的EM,由于该报警信息不需要通过VIM和VNFM进行多次转发,提高将该报警信息发送给EM的效率,能够确保该至少一个目标虚拟机中VNF所对应的EM能够及时接收到该报警信息,以对该报警事件进行及时处理,进而对该NFV系统中的故障进行及时处理和修复,提高了该NFV系统的可靠性。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是现有技术提供的一种NFV系统架构图;
图1B是本发明实施例提供的一种网络功能虚拟化环境中的报警系统架构图;
图1C是本发明实施例提供的一种网络功能虚拟化环境中的报警方法的流程图;
图2A是本发明实施例提供的另一种网络功能虚拟化环境中的报警方法的流程图;
图2B是本发明实施例提供的一种NFVI的结构示意图;
图2C是本发明实施例提供的一种虚拟层的结构示意图;
图2D是本发明实施例提供的一种主虚拟机和多个用户虚拟机的结构示意图;
图2E是本发明实施例提供的另一种主虚拟机和多个用户虚拟机的结构示意图;
图2F是本发明实施例提供的又一种主虚拟机和多个用户虚拟机的结构示意图;
图3是本发明实施例提供的一种网络功能虚拟化环境中的报警装置的框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
图1B是本发明实施例提供的一种网络功能虚拟化环境中的报警系统架构图,参照图1B,该网络功能虚拟化环境中的报警系统用于基于XEN建立的NFV系统中,该NFV报警系统中包括NFVI1、VNF和EM。该NFVI1中包括硬件层11、虚拟层12和软件层,该硬件层11中包括硬件资源;该虚拟层12中包括虚拟资源121、主虚拟机122和用户虚拟机123,该用户虚拟机123为半虚拟化的虚拟机,其中,主虚拟机122用于在该NFV系统中建立用户虚拟机123,并对用户虚拟机123进行管理,用户虚拟机123又被称为客户虚拟机,用户虚拟机123可以安装并运行用户提供的应用程序。该用户虚拟机123可以包括一个VNF以实现网络功能,该用户虚拟机123中包括的VNF可以对应一个EM;该软件层中包括该主虚拟机122和用户虚拟机123的操作系统等软件资源。该NFVI1中包括报警监控器,以对该硬件层11、虚拟层12和该软件层13中是否产生报警事件进行检测,当该NFVI1中的报警监控器检测到报警事件时,生成该报警信息,该报警信息中携带产生该报警事件的资源标识,该报警监控器将该报警信息发送给主虚拟机122,当该主虚拟机122接收到该报警信息时,基于该报警信息携带的产生该报警事件的资源标识,确定至少一个目标虚拟机标识,目标虚拟机为为占用产生该报警事件的资源的用户虚拟机,之后,该主虚拟机可以基于该至少一个目标虚拟机标识,将该报警信息分别指示给该至少一个目标虚拟机中VNF所对应的EM。
图1C是本发明实施例提供的一种网络功能虚拟化环境中的报警方法的流 程图,参见图1C,该报警方法用于NFV系统中,该报警方法包括:
步骤101:主虚拟机接收该NFV系统包括的NFVI中的报警监控器发送的报警信息,该报警信息为该报警监控器检测到报警事件时生成,该报警信息中携带产生该报警事件的资源标识。
步骤102:该主虚拟机基于该报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生该报警事件的资源的用户虚拟机。
步骤103:该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM。
在本发明实施例中,该主虚拟机可以接收NFV系统包括的NFVI中的报警监控器发送的报警信息,并基于该报警信息中携带的产生该报警事件的资源标识,从该NFV系统中安装的多个用户虚拟机中确定占用产生该报警事件的资源的至少一个目标虚拟机,将该报警信息指示给该至少一个目标虚拟机中VNF所对应的EM,由于该报警信息不需要通过VIM和VNFM进行多次转发,提高将该报警信息发送给EM的效率,能够确保该至少一个目标虚拟机中VNF所对应的EM能够及时接收到该报警信息,以对该报警事件进行及时处理,进而对该NFV系统中的故障进行及时处理和修复,提高了该NFV系统的可靠性。
可选地,该主虚拟机中包括第一BSAD,该目标虚拟机中包括FSAD;
相应地,主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM,包括:
该主虚拟机基于该至少一个目标虚拟机标识,通过该第一BSAD,分别将该报警信息发送给该至少一个目标虚拟机中的FSAD,以指示该至少一个目标虚拟机中的FSAD分别通过该至少一个目标虚拟机中的VNF,将该报警信息发送给该至少一个目标虚拟机中VNF所对应的EM。
可选地,该主虚拟机中包括多个第二BSAD,该多个第二BSAD与多个用户虚拟机的FSAD一一对应;
相应地,该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM,包括:
该主虚拟机基于该至少一个目标虚拟机标识,通过与该至少一个目标虚拟机对应的至少一个第二BSAD,分别将该报警信息发送给该至少一个目标虚拟机中的FSAD,以指示该至少一个目标虚拟机中的FSAD分别通过该至少一个目标虚拟机中的VNF,将该报警信息发送给该至少一个目标虚拟机中VNF所 对应的EM。
可选地,该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM,包括:
该主虚拟机将该报警信息存储至报警信息池中,该报警信息池为该主虚拟机和多个用户虚拟机均可以访问的共享存储空间;
该主虚拟机基于该至少一个目标虚拟机标识,向该至少一个目标虚拟机发送报警通知,该报警通知用于指示该至少一个目标虚拟机从该报警信息池中获取该报警信息。
可选地,该NFVI包括硬件层、软件层和虚拟层,该报警信息包括第一报警信息和第二报警信息,该第一报警信息为该硬件层中的报警信息,该第二报警信息为该虚拟层或该软件层中的报警信息。
可选地,该主虚拟机接收该NFV系统包括的NFVI中的报警监控器发送的报警信息,包括:
该主虚拟机通过安装的该产生该报警事件的资源的本地驱动,接收该硬件层中的报警监控器发送的第一报警信息,该产生该报警事件的资源为该硬件层中与该报警事件对应的硬件资源。
可选地,该主虚拟机基于该报警信息,确定至少一个目标虚拟机标识,包括:
该主虚拟机通过该产生该报警事件的资源的本地驱动,基于该第一报警信息中携带的该产生该报警事件的资源标识,确定该至少一个目标虚拟机标识;或者,
该主虚拟机通过该第一BSAD,基于该第一报警信息中携带的该产生该报警事件的资源标识,确定该至少一个目标虚拟机标识。
可选地,该主虚拟机接收该NFV系统包括的NFVI中的报警监控器发送的报警信息,包括:
该主虚拟机通过该第一BSAD,接收该NFV系统包括的该NFVI中的报警监控器发送的报警信息;
相应地,该主虚拟机基于该报警信息,确定至少一个目标虚拟机标识,包括:
该主虚拟机通过该第一BSAD,基于该第一报警信息中携带的该产生该报警事件的资源标识,确定该至少一个目标虚拟机标识。
上述所有可选技术方案,均可按照任意结合形成本发明的可选实施例,本公开实施例对此不再一一赘述。
图2A是本发明实施例提供的一种网络功能虚拟化环境中的报警方法的流程图,参见图2A,该报警方法用于NFV系统中,该报警方法包括:
步骤201:当该NFV系统包括的NFVI中的报警监控器检测到报警事件时,生成报警信息,并将该报警信息发送给主虚拟机,该报警信息中携带产生该报警事件的资源标识。
由于该NFV系统在运行时,该NFV系统中的NFVI可能会出现故障,从而影响该NFV系统的稳定性,因此,该NFVI中可以设置报警监控器,以对该NFVI中是否产生报警事件进行检测,当检测到该NFVI中有报警事件产生时,可以生成报警信息,该报警信息中携带产生该报警事件的资源标识,且为了对该报警事件进行处理,该NFVI中的报警监控器可以将该报警信息发送给该主虚拟机。
其中,该NFVI包括硬件层、虚拟层和软件层。
需要说明的是,该硬件层中包括物理计算资源、物理存储资源、物理网络资源等硬件资源,该物理计算资源可以是物理CPU(Central Processing Unit,中央处理器)、该物理存储资源可以是物理存储器,该物理网络资源可以是物理网络设备,当然,在实际应用中,该硬件层还可以包括其它硬件资源,且该物理计算资源、该物理存储资源和该物理网络资源分别还可以包括其它物理设备,本发明实施例对此不做具体限定。
还需要说明的是,该虚拟层包括虚拟资源,主虚拟机和用户虚拟机。该虚拟资源可以包括虚拟计算资源、虚拟存储资源和虚拟网络资源等,该虚拟计算资源可以是虚拟CPU,该虚拟存储资源可以是虚拟存储器,该虚拟网络资源可以是虚拟网络设备,当然,在实际应用中,该虚拟层还可以包括其它虚拟资源,且该虚拟计算资源、该虚拟存储资源和该虚拟网络资源分别还可以包括其它虚拟设备,本发明实施例对此不做具体限定。
其中,该主虚拟机可以是在通用的硬件平台上,基于XEN建立该NFV系统时得到,该主虚拟机可以用于建立用户虚拟机,并对用户虚拟机进行管理;用户虚拟机又被称为客户虚拟机,用户虚拟机可以是通过该主虚拟机进行安装得到,且能够安装并运行用户提供的应用程序。
需要说明的是,该虚拟层中可以包括一个用户虚拟机,也可以包括多个用户虚拟机,本发明实施例对此不做具体限定。
还需要说明的是,该软件层可以包括该主虚拟机的操作系统和用户虚拟机的操作系统。
其中,如图2B所示,该NFV系统包括的NFVI1中的硬件层11包括多个报警监控器,且每个报警监控器可以分别对应一个硬件资源,以对该硬件资源是否有报警事件产生进行检测。该NFVI1中的虚拟层12包括一个报警监控器,该虚拟层中的报警监控器可以对该虚拟层中的虚拟资源和该虚拟层中包括的多个用户虚拟机是否有报警事件产生进行检测。
需要说明的是,该硬件层中的报警监控器可以由硬件层中每个硬件资源的生产商在生产该硬件资源时设置得到,当然,在实际应用中,该硬件层中的报警监控器还可以在其它时机通过其它方式设置得到,本发明实施例对此不做具体限定。
还需要说明的是,该虚拟层中的报警监控器可以是在该硬件平台中基于XEN建立该NFV系统时得到,当然,在实际应用中,该虚拟层中的报警监控器还可以在其它时机通过其它方式设置得到,本发明实施例对此不做具体限定。
进一步地,对于该虚拟层12,在另一种可能的情况中,如图2C所示,该虚拟层12包括多个报警监控器,该多个报警监控器可以分别与该虚拟层中的虚拟资源一一对应。
还需要说明的是,该虚拟层的报警监控器还可以对主虚拟机和多个用户虚拟机是否有报警事件产生进行检测。
另外,该虚拟层中的报警监控器也可以对该软件层中包括的用户虚拟机的操作系统是否产生报警事件进行检测;或者,在另一种可能的实现方式中,该软件层也可以包括报警监控器,进而对该软件层中包括的用户虚拟机的操作系统是否产生报警事件进行检测。
需要说明的是,当该软件层也可以包括报警监控器时,该软件层中的报警监控器可以在通过该主虚拟机在该NFV系统中安装用户虚拟机时得到,当然,在实际应用中,该软件层中的报警监控器还可以通过其它方式设置得到,本发明实施例对此不做具体限定。
其中,该报警事件可以是该硬件层、该虚拟层或该软件层中产生的任一个报警事件,比如,对于该硬件层,该报警事件可以是物理CPU占用率过高、 物理存储空间不足、网络连接失败等;对于该虚拟层,该报警事件可以是虚拟CPU占用率过高、虚拟存储空间不足、网络连接失败、该主虚拟机宕机或某个用户虚拟机宕机等;对于该软件层,该报警事件可以是某个用户虚拟机的操作系统出现故障等。当然,在实际应用中,该报警事件还可以包括其它报警事件,本发明实施例对此不做具体限定。
其中,该报警信息中携带的资源标识为产生该报警事件的资源标识,该资源标识可以由该NFV系统在该NFVI中的报警监控器将生成报警信息之前确定。
进一步地,该报警信息中还可以携带其它信息,比如,报警信息标识、和报警事件说明和报警时间等信息,本发明实施例对此不做具体限定。
其中,该报警信息标识可以是该NFV中该报警事件的编号等,当然,在实际应用中,该报警信息标识还可以是其它能够标识该报警事件的信息,本发明对此不做具体限定。
例如,该NFVI中的报警监控器检测到报警事件1,且产生该报警事件的资源为物理CPU,物理CPU的资源标识为hardware01,报警事件说明为物理CPU占用率过高,因此,该NFVI的报警监控器生成报警信息1,该报警信息1中产生报警事件1的资源标识hardware01和报警事件说明物理CPU占用率过高,并将该报警信息1发送给该主虚拟机。
进一步地,该报警信息包括第一报警信息和第二报警信息,该第一报警信息为该硬件层中的报警信息,该第二报警信息为该虚拟层或该软件层中的报警信息。
需要说明的是,第一报警信息可以是该NFVI中的报警监控器检测到该硬件层的任一硬件资源有报警事件产生时生成的的报警信息,第二报警信息可以是该NFVI中的报警监控器检测到该虚拟层的任一虚拟资源、主虚拟机、多个多个用户虚拟机中的任一个用户虚拟机或者软件层有报警事件产生时生成的报警信息。
步骤202:该主虚拟机接收该NFVI中的报警监控器发送的报警信息。
由前述可知,该NFVI中的报警监控器可以在检测到该NFVI中有报警事件产生时生成报警信息,且为了对该报警信息进行处理,该NFVI中的报警监控器可以将该报警信息发送给该主虚拟机,因此,该主虚拟机可以接收该NFVI中的报警监控器发送的报警信息。
进一步地,该主虚拟机中包括一个第一BSAD,该主虚拟机通过第一BSAD,接收该NFVI中的报警监控器发送的报警信息。
其中,第一BSAD可以由该主虚拟机在接收该报警信息之前建立,本发明实施例对此不做具体限定。
进一步地,该主虚拟机通过安装的产生该报警事件的资源的本地驱动(native driver),接收该硬件层中的报警监控器发送的第一报警信息,产生该报警事件的资源为该硬件层中与该报警事件对应的硬件资源。
由于该主虚拟机中包括多个本地驱动,该多个本地驱动分别与硬件层中的多个硬件资源一一对应,该主虚拟机可以通过任一个本地驱动和该本地驱动对应的硬件资源进行通信,因此,可以通过安装的产生该报警事件的资源的本地驱动接收该硬件层中的报警监控器发送的第一报警信息,降低了开发该主虚拟机的难度,且由于该本地驱动是与产生该报警事件的资源对应的本地驱动,因此,该主虚拟机可以通过该本地驱动,快速准确地接收到产生该报警事件的资源的第一报警信息,即提高了接收第一报警信息的效率,从而提高了网络功能虚拟化环境中的报警效率。
需要说明的是,在该主虚拟机通过安装产生该报警事件的资源的本地驱动接收第一报警信息的情况下,该主虚拟机可以通过第一BSAD接收第二报警信息,且此时,该主虚拟机不通过第一BSAD接收第一报警信息。
步骤203:该主虚拟机基于该报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生该报警事件的资源的用户虚拟机。
由于该NFV系统中的用户虚拟机在运行时需要占用该NFVI中的硬件资源、虚拟资源和软件资源,因此,当其中某个资源产生报警事件时,可能会导致占用产生该报警事件的资源的用户虚拟机无法正常运行,进而影响该NFV系统的稳定性和可靠性,因此,该主虚拟机可以基于该报警信息,确定占用产生该报警事件的资源的用户虚拟机,将占用产生该报警事件的资源的用户虚拟机确定为至少一个目标虚拟机。
其中,为了提高确定该至少一个目标虚拟机标识的效率,该主虚拟机可以基于该报警信息中携带的产生该报警事件的资源标识,从存储的资源标识与用户虚拟机标识之间的对应关系中,获取至少一个用户虚拟机标识,将获取的至少一个用户虚拟机标识确定为该至少一个目标虚拟机标识。
需要说明的是,该用户虚拟机标识用于在该NFV系统中唯一标识一个用 尸虚拟机。
还需要说明的是,在实际应用中,该主虚拟机还可以通过其它方式来基于产生该报警事件的资源标识,来确定至少一个目标虚拟机标识,比如,在一种可能的实现方式中,该主虚拟向该VIM发送目标虚拟机标识获取请求,该目标虚拟机标识获取请求中携带产生该报警事件的资源标识,当该VIM接收到该目标虚拟机标识获取请求时,基于产生该报警事件的资源标识,确定占用产生该报警事件的资源标识的至少一个用户虚拟机标识,将该至少一个用户虚拟机标识发送给主虚拟机,当该主虚拟即接收到该至少一个用户虚拟机标识时,将该至少一个用户虚拟机确定为该至少一个目标虚拟机标识,本发明实施例对此不做具体限定。
其中,该VIM可以为用户虚拟机分配硬件资源、虚拟资源和软件资源等资源,因此,该VIM通常会存储每个资源的资源标识和占用每个资源的用户虚拟机的用户虚拟机标识。
例如,该主虚拟机接收报警信息1且报警信息1中携带的产生报警事件1的资源标识为hardware01,因此,该主虚拟机基于如下表1所示的资源标识与用户虚拟机标识之间的对应关系中,确定资源标识hardware01对应的用户虚拟机标识为Guest 1,因此,将该用户虚拟机Guest 1确定为该至少一个目标虚拟机标识。
表1
资源标识 用户虚拟机标识
hardware01 Guest 1
hardware02 Guest 3,Guest 2
virtua1ware01 Guest 1
…… ……
需要说明的是,本公开实施例仅以上述表1所示的资源标识与用户虚拟机标识之间的对应关系为例进行说明,上述表1并不对本公开实施例构成限定。
进一步地,该主虚拟机可以在基于产生该报警事件的资源标识,从资源标识与用户虚拟机标识之间的的对应关系中确定至少一个目标虚拟机标识之前,获取该NFVI中包括的每个资源的资源标识,以及占用每个资源的用户虚拟机的用户虚拟机标识,然后分别将每个资源的资源标识和占用每个资源的用户虚 拟机的用户虚拟机标识,存储至资源标识与用户虚拟机标识之间的的对应关系中。
其中,该主虚拟机可以向该VIM发送资源分配获取请求,当该VIM接收到该资源分配获取请求时,可以将每个资源的资源标识和占用每个资源的用户虚拟机的用户虚拟机标识发送给该用户虚拟机。
进一步地,该主虚拟机通过该第一BSAD,基于该第一报警信息中携带的产生该报警事件的资源标识,确定该至少一个目标虚拟机标识。
需要说明的是,当该主虚拟机通过第一BSAD接收该报警信息且通过第一BSAD基于该第一报警信息中携带的产生该报警事件的资源标识确定该至少一个目标虚拟机标识时,由于接收该报警信息和基于该第一报警信息中携带的产生该报警事件的资源标识确定该至少一个目标虚拟机标识的是同一个驱动,因此,能够减少该主虚拟机从接收到该报警信息并确定该至少一个目标虚拟机标识所耗费的总时间,进而提高了该主虚拟机该报警事件进行报警的效率。
还需要说明的是,当该主虚拟机不是通过第一BSAD接收该报警信息时,也可以通过第一BSAD执行基于该第一报警信息中携带的产生该报警事件的资源标识确定至少一个目标虚拟机标识的操作。
进一步地,当该主虚拟机通过产生该报警事件的资源的本地驱动接收第一报警信息时,该主虚拟机通过产生该报警事件的资源的本地驱动,基于该第一报警信息中携带的产生该报警事件的资源标识,确定至少一个目标虚拟机标识,或者,该主虚拟机通过该第一BSAD,基于该第一报警信息中携带的产生该报警事件的资源标识,确定至少一个目标虚拟机标识。
需要说明的是,当该主虚拟机通过产生该报警事件的资源的本地驱动接收第一报警信息,且通过通过产生该报警事件的资源的本地驱动确定至少一个目标虚拟机标识时,由于接收第一报警信息和基于该第一报警信息中携带的产生该报警事件的资源标识确定至少一个目标虚拟机标识的是同一个驱动,因此,能够减少该主虚拟机从接收到该报警信息并确定至少一个目标虚拟机标识所耗费的总时间,进而提高了该主虚拟机该报警事件进行报警的效率。当该主虚拟机通过产生该报警事件的资源的本地驱动接收第一报警信息,且通过通过该第一BSAD确定至少一个目标虚拟机标识时,不需要对产生该报警事件的资源的本地驱动进行升级,从而避免了升级产生该报警事件的资源的本地驱动可能带来的不兼容等问题,也即是提高了该主虚拟机的可靠性,进而提高了该NFV 系统的可靠性。
步骤204:该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM。
由于该目标虚拟机为该多个用户虚拟机中占用产生该报警事件的资源的用户虚拟机,因此,当该主虚拟机确定该至少一个目标虚拟机标识时,可以将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM,能够确保至少一个目标虚拟机中VNF所对应的EM能够及时接收到该报警信息,以对该报警事件进行及时处理,进而对该NFV系统中的故障进行及时处理和修复,提高了该NFV系统的可靠性。
其中,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM可以包括下述两种可能的实现方式:
第一种可能的实现方式,该主虚拟机分别将该报警信息发送给至少一个目标虚拟机中VNF所对应的EM。
其中,该主虚拟机可以通过共享内存机制,分别将该报警信息发送给至少一个目标虚拟机中VNF所对应的EM。
需要说明的是,共享内存机制是该NFV系统中的一种通信机制,该主虚拟机可以在建立用户虚拟机时,为该主虚拟机和该用户虚拟机设置一个用于通信的共享内存,之后,当该主虚拟机需要向该用户虚拟机发送消息时,将该消息存储至该共享内存中,并向该用户虚拟机发送消息通知,当该用户虚拟机接收到该消息通知时,从该共享内存中获取该主虚拟机发送给用户虚拟机的消息。
还需要说明的是,在实际应用中,该主虚拟机还可以通过其它可能的机制将该报警信息发送给该目标虚拟机,比如,该主虚拟机可以通过消息传递机制将该报警信息发送给该目标虚拟机,即该主虚拟机直接将该报警信息发送给该目标虚拟机,本发明实施例对此不做具体限定。
进一步地,该主虚拟机分别将该报警信息发送给至少一个目标虚拟机中VNF所对应的EM可以包括下述两种可能情况:
第一种可能的情况,如图2D所示,该主虚拟机122中包括第一BSAD,该目标虚拟机中包括FSAD,相应地,该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM的操作可以为:该主虚拟机基于该至少一个目标虚拟机标识,通过该第一BSAD,分别将该报警信息发送给该至少一个目标虚拟机中的FSAD,以指示该至少一 个目标虚拟机中的FSAD分别通过该至少一个目标虚拟机中的VNF,将该报警信息发送给该至少一个目标虚拟机中VNF所对应的EM。
需要说明的是,由于在该NFV系统中,该主虚拟机中包括SDD,且该多个用户虚拟机中也包括SDD,当该主虚拟机向该多个用户虚拟机发送消息时,可以通过该主虚拟机中的SDD,向该用户虚拟机中的SDD发送消息。因此,当该主虚拟机中包括一个SDD时,可以对该主虚拟机中的SDD进行升级得到第一BSAD,相应地,对目标虚拟机中的SDD进行升级得到FSAD,从而不需要在该主虚拟机和目标虚拟机中新添加发送该报警信息的驱动,减少了该主虚拟机和目标虚拟机的复杂程度。
还需要说明的是,如图2E所示,该主虚拟机122中包括第一BSAD和SDD,相应地,目标虚拟机中包括FSAD和SDD,即该主虚拟机通过第一BSAD和FSAD向该目标虚拟机发送该报警信息,通过该主虚拟机中的SDD和目标虚拟机中的SDD向目标虚拟机发送其它消息,确保该报警信息不会和其它消息相混淆,提高了发送该报警信息的效率和准确率。
还需要说明的是,当该VNF将该报警信息发送给该VNF对应的EM时,如果该VNF中也有报警事件产生,该VNF为该VNF中的报警事件生成该VNF的报警信息,并将该VNF的报警信息也发送给该EM,省去了该EM对该VNF进行检测管理的步骤,进而提高了目标虚拟机的工作效率和该VNF系统的工作效率。
第二种可能的情况,如图2F所示,该主虚拟机122中包括多个第二BSAD,该多个第二BSAD与该多个用户虚拟机的FSAD一一对应,相应地,该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM的操作可以为:该主虚拟机基于该至少一个目标虚拟机标识,通过与该至少一个目标虚拟机对应的至少一个第二BSAD,分别将该报警信息发送给至少一个目标虚拟机中的FSAD,以指示该至少一个目标虚拟机中的FSAD分别通过该至少一个目标虚拟机中的VNF,将该报警信息发送给该至少一个目标虚拟机中VNF所对应的EM。
其中,由于该主虚拟机通过与目标虚拟机对应的第二BSAD,将该报警信息发送给目标虚拟机中的FSAD,能够避免将该报警信息发送给该多个用户虚拟机中的其它用户虚拟机,因此进一步提高了发送该报警信息的效率和准确率。
需要说明的是,当该主虚拟机中包括多个SDD时,可以对该主虚拟机中 的每个SDD进行升级得到多个第二BSAD,相应地,对目标虚拟机中的SDD进行升级得到FSAD,从而不需要在该主虚拟机和目标虚拟机中新添加发送该报警信息的驱动,减少了该主虚拟机和目标虚拟机的复杂程度,也减小了该报警方法的实现难度。
还需要说明的是,该主虚拟机中包括多个第二BSAD和多个SDD,相应地,目标虚拟机中包括FSAD和SDD,即该主虚拟机通过第二BSAD和FSAD向目标虚拟机发送该报警信息,通过该主虚拟机中的与目标虚拟机对应的SDD和目标虚拟机中的SDD向目标虚拟机发送其它消息,确保该报警信息不会和其它消息相混淆,提高了发送该报警信息的效率和准确率。
第二种可能的实现方式,该主虚拟机将该报警信息存储至报警信息池中,该报警信息池为该主虚拟机和该多个用户虚拟机均可以访问的共享存储空间,该主虚拟机基于该至少一个目标虚拟机标识,向该至少一个目标虚拟机发送报警通知,该报警通知用于指示该至少一个目标虚拟机从该报警信息池中获取该报警信息。
其中,由于该主虚拟机是将该报警信息存储至报警信息池中,而不必将该报警信息发送至该至少一个目标虚拟机,因此,当该NFV系统中的报警信息较多时,能够快速将多个报警信息存储至该报警信息池中,即能够提高该主虚拟机将该报警信息指示给该至少一个目标虚拟机的效率,进而提高了该报警方法的效率。
需要说明的是,该报警信息池可以由该主虚拟机在首次需要存储报警信息时设置,本发明实施例对此不做作具体限定。
另外,在另一种可能的实现方式中,该主虚拟机在将该报警信息存储至该报警信息池中时,也可以不向该至少一个目标虚拟机发发送该报警通知,而是分别由该至少一个目标虚拟机每隔特定时长,从该报警信息中获取该主虚拟机需要发送给该至少一个目标虚拟机的报警信息。
其中,由于该主虚拟机只需要将该报警信息存储至该报警信息池中,进一步减少了该主虚拟机与该至少一个目标虚拟机之间的交互次数,提高了该主虚拟机将该报警信息指示给该至少一个目标虚拟机的效率,也即是进一步提高了该报警方法的报警效率。
还需要说明的是,该特定时长可以由该多个用户虚拟机在从该报警信息中获取报警信息之前确定,该特定时长可以是1毫秒或者3毫秒,当然,在实际 应用中,该特定时长还可以通过其它方式确定,该特定时长还可以是其它值,本发明实施例对此不做具体限定。
进一步地,在第二种可能的实现方式中,该主虚拟机可以通过第一BSAD将该报警信息存储至报警信息池中并基于该至少一个目标虚拟机标识,向该至少一个目标虚拟机发送报警通知,或者,该主虚拟机也可以通过与该目标虚拟机对应的第二BSAD,该报警信息存储至报警信息池中并基于该至少一个目标虚拟机标识,向该至少一个目标虚拟机发送报警通知,本发明实施例对此不做具体限定。
进一步地,当该至少一个目标虚拟机中VNF所对应的EM基于该报警信息对该报警事件进行处理时,该EM可以基于该报警信息中携带的产生该报警事件的资源标识,确定产生该报警事件的资源,基于该报警信息中携带的该报警事件说明,对该报警事件进行处理,比如,立即启动迁移流程等。
其中,当该报警事件的不同时,所需要采取处理策略也不同,本发明实施例对此不做具体限定。
在本发明实施例中,首先,该主虚拟机可以接收NFV系统包括的NFVI中的报警监控器发送的报警信息,并基于该报警信息中携带的产生该报警事件的资源标识,从该NFV系统中安装的多个用户虚拟机中确定占用产生该报警事件的资源的至少一个目标虚拟机,将该报警信息指示给该至少一个目标虚拟机中VNF所对应的EM,由于该报警信息不需要通过VIM和VNFM进行多次转发,提高将该报警信息发送给EM的效率,能够确保该至少一个目标虚拟机中VNF所对应的EM能够及时接收到该报警信息,以对该报警事件进行及时处理,进而对该NFV系统中的故障进行及时处理和修复,提高了该NFV系统的可靠性。其次,由于该主虚拟机中包括该NFVI中硬件层包括的多个硬件资源的本地驱动,因此,可以通过产生该报警事件的资源的本地驱动接收与产生该报警事件的资源对应的第一报警信息,并基于第一报警信息中携带的产生该报警事件的资源标识确定占用产生该报警事件的资源的至少一个目标虚拟机,从而不必在该主虚拟机中新设置驱动,减小了该主虚拟机的复杂度和该NFV系统的复杂度。最后,该主虚拟机可以将该报警信息发送给该目标虚拟机中VNF所对应的EM,以提高指示该报警信息的准确率,或者将该报警信息存储至报警信息池中,由该至少一个目标虚拟机从该报警信息池中获取该报警信息,提高了该主虚拟机将该报警信息指示给该至少一个目标虚拟机的效率,进而提 高了该报警方法的报警效率。
图3是本发明实施例提供的一种网络功能虚拟化环境中的报警装置示意图,参见图3,该报警装置用于NFV系统中,该装置包括:接收模块301、确定模块302和指示模块303。
接收模块301,用于主虚拟机接收该NFV系统包括的NFVI中的报警监控器发送的报警信息,该报警信息为该报警监控器检测到报警事件时生成,该报警信息中携带产生该报警事件的资源标识;
确定模块302,用于该主虚拟机基于该报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生该报警事件的资源的用户虚拟机;
指示模块303,用于该主虚拟机基于该至少一个目标虚拟机标识,分别将该报警信息指示给至少一个目标虚拟机中VNF所对应的EM。
可选地,该主虚拟机中包括第一BSAD,该目标虚拟机中包括FSAD;
相应地,该指示模块303包括:
第一发送单元,用于该主虚拟机基于该至少一个目标虚拟机标识,通过该第一BSAD,分别将该报警信息发送给该至少一个目标虚拟机中的FSAD,以指示该至少一个目标虚拟机中的FSAD分别通过该至少一个目标虚拟机中的VNF,将该报警信息发送给该至少一个目标虚拟机中VNF所对应的EM。
可选地,该主虚拟机中包括多个第二BSAD,该多个第二BSAD与多个用户虚拟机的FSAD一一对应;
相应地,该指示模块303包括:
第二发送单元,用于该主虚拟机基于该至少一个目标虚拟机标识,通过与该至少一个目标虚拟机对应的至少一个第二BSAD,分别将该报警信息发送给该至少一个目标虚拟机中的FSAD,以指示该至少一个目标虚拟机中的FSAD分别通过该至少一个目标虚拟机中的VNF,将该报警信息发送给该至少一个目标虚拟机中VNF所对应的EM。
可选地,该指示模块303包括:
存储单元,用于该主虚拟机将该报警信息存储至报警信息池中,该报警信息池为该主虚拟机和多个用户虚拟机均可以访问的共享存储空间;
第三发送单元,用于该主虚拟机基于该至少一个目标虚拟机标识,向该至少一个目标虚拟机发送报警通知,该报警通知用于指示该至少一个目标虚拟机 从该报警信息池中获取该报警信息。
可选地,该NFVI包括硬件层、软件层和虚拟层,该报警信息包括第一报警信息和第二报警信息,该第一报警信息为该硬件层中的报警信息,该第二报警信息为该虚拟层或该软件层中的报警信息。
可选地,该接收模块301包括:
第一接收单元,用于该主虚拟机通过安装的该产生该报警事件的资源的本地驱动,接收该硬件层中的报警监控器发送的第一报警信息,该产生该报警事件的资源为该硬件层中与该报警事件对应的硬件资源。
可选地,该确定模块302包括:
第一确定单元,用于该主虚拟机通过该产生该报警事件的资源的本地驱动,基于该第一报警信息中携带的该产生该报警事件的资源标识,确定该至少一个目标虚拟机标识;或者,
第二确定单元,用于该主虚拟机通过该第一BSAD,基于该第一报警信息中携带的该产生该报警事件的资源标识,确定该至少一个目标虚拟机标识。
可选地,该接收模块301包括:
第二接收单元,用于该主虚拟机通过该第一BSAD,接收该NFV系统包括的该NFVI中的报警监控器发送的报警信息;
相应地,该确定模块包括:
第三确定单元,用于该主虚拟机通过该第一BSAD,基于该第一报警信息中携带的该产生该报警事件的资源标识,确定该至少一个目标虚拟机标识。
在本发明实施例中,该主虚拟机可以接收NFV系统包括的NFVI中的报警监控器发送的报警信息,并基于该报警信息中携带的产生该报警事件的资源标识,从该NFV系统中安装的多个用户虚拟机中确定占用产生该报警事件的资源的至少一个目标虚拟机,将该报警信息指示给该至少一个目标虚拟机中VNF所对应的EM,由于该报警信息不需要通过VIM和VNFM进行多次转发,提高将该报警信息发送给EM的效率,能够确保该至少一个目标虚拟机中VNF所对应的EM能够及时接收到该报警信息,以对该报警事件进行及时处理,进而对该NFV系统中的故障进行及时处理和修复,提高了该NFV系统的可靠性。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储 于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (16)

  1. 一种网络功能虚拟化环境中的报警方法,所述报警方法用于网络功能虚拟化NFV系统中,其特征在于,所述方法包括:
    主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,所述报警信息为所述报警监控器检测到报警事件时生成,所述报警信息中携带产生所述报警事件的资源标识;
    所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生所述报警事件的资源的用户虚拟机;
    所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中虚拟网络功能VNF所对应的网元管理器EM。
  2. 如权利要求1所述的方法,其特征在于,所述主虚拟机中包括第一后端分离报警驱动BSAD,所述目标虚拟机中包括前端分离报警驱动FSAD;
    相应地,所述所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中虚拟网络功能VNF所对应的网元管理器EM,包括:
    所述主虚拟机基于所述至少一个目标虚拟机标识,通过所述第一BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
  3. 如权利要求1所述的方法,其特征在于,所述主虚拟机中包括多个第二BSAD,所述多个第二BSAD与多个用户虚拟机的FSAD一一对应;
    相应地,所述所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中虚拟网络功能VNF所对应的网元管理器EM,包括:
    所述主虚拟机基于所述至少一个目标虚拟机标识,通过与所述至少一个目标虚拟机对应的至少一个第二BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚 拟机中VNF所对应的EM。
  4. 如权利要求1所述的方法,其特征在于,所述所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中虚拟网络功能VNF所对应的网元管理器EM,包括:
    所述主虚拟机将所述报警信息存储至报警信息池中,所述报警信息池为所述主虚拟机和多个用户虚拟机均可以访问的共享存储空间;
    所述主虚拟机基于所述至少一个目标虚拟机标识,向所述至少一个目标虚拟机发送报警通知,所述报警通知用于指示所述至少一个目标虚拟机从所述报警信息池中获取所述报警信息。
  5. 如权利要求1-4任一所述的方法,其特征在于,所述NFVI包括硬件层、软件层和虚拟层,所述报警信息包括第一报警信息和第二报警信息,所述第一报警信息为所述硬件层中的报警信息,所述第二报警信息为所述虚拟层或所述软件层中的报警信息。
  6. 如权利要求5所述的方法,其特征在于,所述主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,包括:
    所述主虚拟机通过安装的所述产生所述报警事件的资源的本地驱动,接收所述硬件层中的报警监控器发送的第一报警信息,所述产生所述报警事件的资源为所述硬件层中与所述报警事件对应的硬件资源。
  7. 如权利要求6所述的方法,其特征在于,所述所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,包括:
    所述主虚拟机通过所述产生所述报警事件的资源的本地驱动,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识;或者,
    所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
  8. 如权利要求2所述的方法,其特征在于,所述主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,包括:
    所述主虚拟机通过所述第一BSAD,接收所述NFV系统包括的所述NFVI中的报警监控器发送的报警信息;
    相应地,所述所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,包括:
    所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
  9. 一种网络功能虚拟化环境中的报警装置,所述报警装置用于网络功能虚拟化NFV系统中,其特征在于,所述装置包括:
    接收模块,用于主虚拟机接收所述NFV系统包括的网络功能虚拟化基础结构NFVI中的报警监控器发送的报警信息,所述报警信息为所述报警监控器检测到报警事件时生成,所述报警信息中携带产生所述报警事件的资源标识;
    确定模块,用于所述主虚拟机基于所述报警信息,确定至少一个目标虚拟机标识,目标虚拟机为占用产生所述报警事件的资源的用户虚拟机;
    指示模块,用于所述主虚拟机基于所述至少一个目标虚拟机标识,分别将所述报警信息指示给至少一个目标虚拟机中虚拟网络功能VNF所对应的网元管理器EM。
  10. 如权利要求9所述的装置,其特征在于,所述主虚拟机中包括第一后端分离报警驱动BSAD,所述目标虚拟机中包括前端分离报警驱动FSAD;
    相应地,所述指示模块包括:
    第一发送单元,用于所述主虚拟机基于所述至少一个目标虚拟机标识,通过所述第一BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
  11. 如权利要求9所述的装置,其特征在于,所述主虚拟机中包括多个第 二BSAD,所述多个第二BSAD与多个用户虚拟机的FSAD一一对应;
    相应地,所述指示模块包括:
    第二发送单元,用于所述主虚拟机基于所述至少一个目标虚拟机标识,通过与所述至少一个目标虚拟机对应的至少一个第二BSAD,分别将所述报警信息发送给所述至少一个目标虚拟机中的FSAD,以指示所述至少一个目标虚拟机中的FSAD分别通过所述至少一个目标虚拟机中的VNF,将所述报警信息发送给所述至少一个目标虚拟机中VNF所对应的EM。
  12. 如权利要求9所述的装置,其特征在于,所述指示模块包括:
    存储单元,用于所述主虚拟机将所述报警信息存储至报警信息池中,所述报警信息池为所述主虚拟机和多个用户虚拟机均可以访问的共享存储空间;
    第三发送单元,用于所述主虚拟机基于所述至少一个目标虚拟机标识,向所述至少一个目标虚拟机发送报警通知,所述报警通知用于指示所述至少一个目标虚拟机从所述报警信息池中获取所述报警信息。
  13. 如权利要求9-12任一所述的装置,其特征在于,所述NFVI包括硬件层、软件层和虚拟层,所述报警信息包括第一报警信息和第二报警信息,所述第一报警信息为所述硬件层中的报警信息,所述第二报警信息为所述虚拟层或所述软件层中的报警信息。
  14. 如权利要求13所述的装置,其特征在于,所述接收模块包括:
    第一接收单元,用于所述主虚拟机通过安装的所述产生所述报警事件的资源的本地驱动,接收所述硬件层中的报警监控器发送的第一报警信息,所述产生所述报警事件的资源为所述硬件层中与所述报警事件对应的硬件资源。
  15. 如权利要求14所述的装置,其特征在于,所述确定模块包括:
    第一确定单元,用于所述主虚拟机通过所述产生所述报警事件的资源的本地驱动,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识;或者,
    第二确定单元,用于所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟 机标识。
  16. 如权利要求10所述的装置,其特征在于,所述接收模块包括:
    第二接收单元,用于所述主虚拟机通过所述第一BSAD,接收所述NFV系统包括的所述NFVI中的报警监控器发送的报警信息;
    相应地,所述确定模块包括:
    第三确定单元,用于所述主虚拟机通过所述第一BSAD,基于所述第一报警信息中携带的所述产生所述报警事件的资源标识,确定所述至少一个目标虚拟机标识。
PCT/CN2016/089645 2016-07-11 2016-07-11 网络功能虚拟化环境中的报警方法及装置 WO2018010068A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/089645 WO2018010068A1 (zh) 2016-07-11 2016-07-11 网络功能虚拟化环境中的报警方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/089645 WO2018010068A1 (zh) 2016-07-11 2016-07-11 网络功能虚拟化环境中的报警方法及装置

Publications (1)

Publication Number Publication Date
WO2018010068A1 true WO2018010068A1 (zh) 2018-01-18

Family

ID=60951626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089645 WO2018010068A1 (zh) 2016-07-11 2016-07-11 网络功能虚拟化环境中的报警方法及装置

Country Status (1)

Country Link
WO (1) WO2018010068A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306545A (zh) * 2019-08-01 2021-02-02 中国电信股份有限公司 驱动管理方法、设备、系统和计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337758A (zh) * 2014-08-15 2016-02-17 中兴通讯股份有限公司 告警处理方法、装置、nms、oss及ems
CN105471643A (zh) * 2015-11-30 2016-04-06 中国联合网络通信集团有限公司 一种应用于nfv网络的告警关联方法及系统
WO2016093861A1 (en) * 2014-12-12 2016-06-16 Nokia Solutions And Networks Oy Alarm correlation in network function virtualization environment
WO2016095408A1 (zh) * 2014-12-18 2016-06-23 中兴通讯股份有限公司 一种控制器及告警关联性处理的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337758A (zh) * 2014-08-15 2016-02-17 中兴通讯股份有限公司 告警处理方法、装置、nms、oss及ems
WO2016093861A1 (en) * 2014-12-12 2016-06-16 Nokia Solutions And Networks Oy Alarm correlation in network function virtualization environment
WO2016095408A1 (zh) * 2014-12-18 2016-06-23 中兴通讯股份有限公司 一种控制器及告警关联性处理的方法
CN105471643A (zh) * 2015-11-30 2016-04-06 中国联合网络通信集团有限公司 一种应用于nfv网络的告警关联方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306545A (zh) * 2019-08-01 2021-02-02 中国电信股份有限公司 驱动管理方法、设备、系统和计算机可读存储介质

Similar Documents

Publication Publication Date Title
US11003553B2 (en) Method and apparatus for failover processing
EP3119034B1 (en) Fault handling method, device and system based on network function virtualization
US20160364226A1 (en) Update management system and update management method
WO2017114325A1 (zh) 故障处理方法、装置及系统
US9423956B2 (en) Emulating a stretched storage device using a shared storage device
US20170054601A1 (en) Resolving configuration errors through recommendations
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
RU2016117218A (ru) Способ, устройство и система управления обработкой отказов
WO2016070837A1 (zh) 故障上报方法、系统及相关装置
WO2018137520A1 (zh) 一种业务恢复方法及装置
US10735253B2 (en) Alarm information reporting method and apparatus
US10324762B2 (en) Reliability resource allocation method and apparatus
US20210194769A1 (en) Methods and apparatus to configure virtual and physical networks for hosts in a physical rack
KR20180006971A (ko) 하드웨어 가속 방법 및 관련 장치
US11977449B2 (en) Distributed package management using meta-scheduling
WO2018010068A1 (zh) 网络功能虚拟化环境中的报警方法及装置
US10528397B2 (en) Method, device, and non-transitory computer readable storage medium for creating virtual machine
US10454773B2 (en) Virtual machine mobility
CN110618884A (zh) 故障监控方法、虚拟化的网络功能模块管理器和存储介质
CN107786352B (zh) 一种管理网络功能虚拟化管理编排实体的方法和装置
CN110287066B (zh) 一种服务器分区迁移方法及相关装置
TW201303733A (zh) 虛擬機管理方法及系統
CN109240799B (zh) 大数据平台集群容灾方法、系统及计算机可读存储介质
CN107832145B (zh) 一种基于虚拟机的系统资源释放方法
CN104333459A (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: 16908400

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

Country of ref document: EP

Kind code of ref document: A1