WO2016206456A1 - Physical machine upgrading method, service migration method and apparatus - Google Patents

Physical machine upgrading method, service migration method and apparatus Download PDF

Info

Publication number
WO2016206456A1
WO2016206456A1 PCT/CN2016/079733 CN2016079733W WO2016206456A1 WO 2016206456 A1 WO2016206456 A1 WO 2016206456A1 CN 2016079733 W CN2016079733 W CN 2016079733W WO 2016206456 A1 WO2016206456 A1 WO 2016206456A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machines
migration
upgrade
message
physical machine
Prior art date
Application number
PCT/CN2016/079733
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2016206456A1 publication Critical patent/WO2016206456A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • H04L41/342Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications, and in particular to a physical machine upgrade method, a service migration method, and an apparatus.
  • NFV Network Functions Virtualization
  • the research goal of the NFV working group is to realize the flexible loading of software in the data center by adopting standardized virtualization technology and adopting industry-standard large-capacity servers, storage and switches to carry various network software functions.
  • Flexible configuration of network nodes and clients speeding up network deployment and adjustment, reducing the complexity of service deployment, improving the uniformity, generalization, and adaptability of network devices, and ultimately reducing the network's Capex and Opex.
  • the network is divided into three layers: the infrastructure layer, the virtual network layer, and the operational support layer.
  • NFV Infrastructure Infrastructure layer network function Virtualization infrastructure
  • NFVI mapping to physical infrastructure is a number of geographically dispersed data centers that are connected by high-speed communication networks.
  • NFVI needs to convert physical computing/storage/switching resources into virtual compute/storage/swap resource pools through virtualization.
  • Virtual network layer corresponds to each telecommunication service network.
  • Each physical network element is mapped to a virtual network element virtualized network function (VNF).
  • VNF virtualized network function
  • the required resources of the VNF need to be decomposed.
  • the virtual computing/storage/switching resources are carried by the NFVI.
  • the interface between the VNFs still uses the signaling interface defined by the traditional network.
  • the service network management of the VNF still uses the network element (Net Element, referred to as NE)-switching side operation.
  • NE Network Element
  • Switchching Maintenance Maintenance Centre
  • NMS Network Management System
  • the operation support layer is the current Operation Support System (OSS)/Business Support System (BSS).
  • OSS Operation Support System
  • BSS Business Support System
  • NFV-MANO NFV Management and Orchestration
  • MANO Management and Orchestration domain
  • VIM Virtualized Network Function Manager
  • NFVO Network Functions Virtualization Orchestrator
  • the present invention provides a physical machine upgrade method, a service migration method, and a device, to solve at least the problem that the service interruption occurs when the VIM is upgraded in the related art.
  • a physical machine upgrade method comprising: receiving an upgrade request sent by a virtualization infrastructure management VIM, wherein the upgrade request is used to request to upgrade a first physical machine, the first physical Retaining one or more first virtual machines on the machine; performing, according to the upgrade request, a process of migrating services running on the one or more first virtual machines to one or more second virtual machines; After completion, sending, to the VIM, a migration message for migrating the one or more first virtual machines to one or more third virtual machines; receiving a migration result returned by the VIM; according to the migration result And notifying the VIM to perform an upgrade process of the first physical machine.
  • performing, according to the upgrade request, performing a process of migrating services running on the one or more first virtual machines to one or more second virtual machines includes: transmitting to a network function virtualization VNF controller Requesting a request message for querying a service running state of the one or more first virtual machines; receiving a service running state of the one or more first virtual machines returned by the VNF controller; according to the one or more The service running state of the first virtual machine sends a migration message to the VNF controller for migrating services running on the one or more first virtual machines to the one or more second virtual machines Processing.
  • the processing of the migration message on the plurality of second virtual machines includes: transmitting, when the service running state of the one or more first virtual machines is a primary state and/or a load sharing state, to the VNF controller And migrating the message; when the service running state of the one or more first virtual machines is a standby state, the migration message is not sent to the VNF controller.
  • the step of notifying the VIM to perform the upgrade process of the first physical machine according to the migration result includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; And/or, when the migration result is a migration failure, notifying the VIM that the first physical machine is not upgraded.
  • the method further includes: notifying the network function to virtualize the VNF controller to perform a data synchronization operation; and/or notifying the network function to virtualize the VNF controller to store the one or more The mapping relationship of the third virtual machine.
  • the method further includes: setting an affinity relationship with the one or more third virtual machines.
  • a physical machine upgrade method including: sending an upgrade request to a network function virtualization orchestration NFVO, wherein the upgrade request is for requesting to upgrade a first physical machine, the first physical Hosting one or more first virtual machines onboard; receiving the NFVO to perform migration of services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request a migration message sent after processing, wherein the migration message is used to migrate the one or more first virtual machines to one or more third virtual machines; performing the one according to the migration message Or an operation of migrating the plurality of first virtual machines to the one or more third virtual machines; transmitting the migration result to the NFVO; and the first according to the received notification message returned by the NFVO according to the migration result
  • the physical machine is upgraded.
  • the migration result includes a migration failure result and a migration success result, where, when the migration result is a migration failure result, according to the received notification message returned by the NFVO according to the migration result
  • the upgrading process of the physical machine includes: receiving an upgrade check failure message returned by the NFVO according to the migration failure result; after receiving the upgrade check failure message, not upgrading the first physical machine; and/or,
  • performing the upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result includes: receiving the NFVO to return according to the migration success result.
  • the upgrade check success message; after receiving the upgrade check success message, the first physical machine is upgraded.
  • the method further includes: setting the one or more third The affinity of the virtual machine.
  • a service migration method including: receiving a request message sent by a network function virtualization orchestration NFVO; and querying a service running state of one or more first virtual machines according to the request message, where And the one or more first virtual machines are camped on the first physical machine to be upgraded; the service running status of the queried one or more first virtual machines is sent to the NFVO; and the NFVO is received.
  • a migration message sent according to a service running state of the one or more first virtual machines; migrating services running on the one or more first virtual machines to one or more second virtual machines according to the migration message on.
  • the method further includes: receiving the NFVO in the virtualization infrastructure. Managing a notification message sent by the VIM after migrating the one or more first virtual machines to one or more third virtual machines; performing a data synchronization operation according to the notification message, and/or storing according to the notification message A mapping relationship with the one or more third virtual machines.
  • a physical machine upgrading apparatus including: a first receiving module, configured to receive an upgrade request sent by a virtualization infrastructure management VIM, wherein the upgrade request is used to request an upgrade first a physical machine, where the first physical machine resides with one or more first virtual machines; the first execution module is configured to perform a service migration on the one or more first virtual machines according to the upgrade request Processing to one or more second virtual machines; the first sending module configured to, after the processing is completed, send to the VIM to migrate the one or more first virtual machines to one or more a migration message on the third virtual machine; the second receiving module is configured to receive the migration result returned by the VIM; the first notification module is configured to notify the VIM to perform the upgrade of the first physical machine according to the migration result At Reason.
  • the first execution module includes: a first sending unit, configured to send, to the network function virtualization VNF controller, a request message for requesting querying a service running state of the one or more first virtual machines; a receiving unit, configured to receive a service running state of the one or more first virtual machines returned by the VNF controller; and an executing unit configured to perform a direction according to a service running state of the one or more first virtual machines
  • the VNF controller sends a process for migrating traffic running on the one or more first virtual machines to a migration message on the one or more second virtual machines.
  • the executing unit includes: when the service running state of the one or more first virtual machines is in a primary state and/or a load sharing state, sending the migration message to the VNF controller; When the service running state of the one or more first virtual machines is the standby state, the migration message is not sent to the VNF controller.
  • the first notification module includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; and/or, when the migration result is a migration failure, Notifying the VIM that the first physical machine is not upgraded.
  • the device further includes: a second notification module, configured to notify the network function to virtualize the VNF controller to perform a data synchronization operation; and/or to notify the network function to virtualize the VNF controller to store the one or more The mapping relationship of the third virtual machine.
  • a second notification module configured to notify the network function to virtualize the VNF controller to perform a data synchronization operation; and/or to notify the network function to virtualize the VNF controller to store the one or more The mapping relationship of the third virtual machine.
  • the apparatus further includes: a first setting module configured to set an affinity relationship with the one or more third virtual machines.
  • a network function virtualization orchestration NFVO comprising the apparatus of any of the above.
  • a physical machine upgrading apparatus comprising: a second sending module, configured to send an upgrade request to a network function virtualization orchestration NFVO, wherein the upgrade request is used to request to upgrade the first physical
  • the first physical machine resides with one or more first virtual machines
  • the third receiving module is configured to receive the NFVO, and execute the one or more first virtual machines according to the upgrade request
  • the running service migrates to a migration message sent after processing on one or more second virtual machines, wherein the migration message is used to migrate the one or more first virtual machines to one or more third a second execution module, configured to perform an operation of migrating the one or more first virtual machines to one or more third virtual machines according to the migration message
  • the third sending module is configured to The NFVO sends a migration result
  • the first processing module is configured to perform an upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
  • the migration result includes a migration failure result and a migration success result
  • the first processing module includes: receiving the NFVO returned according to the migration failure result Upgrading the check failure message; after receiving the upgrade check failure message, the first physical machine is not upgraded; and/or, when the migration result is a successful migration result, the first processing module includes: receiving The NFVO returns an upgrade check success message according to the migration success result; after receiving the upgrade check success message, the first physical machine is upgraded.
  • the apparatus further includes: a second setting module configured to set an affinity relationship with the one or more third virtual machines.
  • a virtualized infrastructure management VIM comprising the apparatus of any of the above.
  • a service migrating apparatus including: a fourth receiving module, configured to receive a request message sent by a network function virtualization orchestration NFVO; and a query module configured to query one or a service running state of the plurality of first virtual machines, wherein the one or more first virtual machines reside on the first physical machine to be upgraded; and the fourth sending module is configured to query the one or more The service running status of the first virtual machine is sent to the NFVO; the fifth receiving module is configured to receive the migration message sent by the NFVO according to the service running status of the one or more first virtual machines; Migrating services running on the one or more first virtual machines to one or more second virtual machines in accordance with the migration message.
  • the apparatus further includes: a sixth receiving module, configured to receive the NFVO, and migrate the one or more first virtual machines to one or more third virtual machines in a virtualized infrastructure management VIM a notification message sent later; the second processing module is configured to perform a data synchronization operation according to the notification message, and/or to store a mapping relationship with the one or more third virtual machines according to the notification message.
  • a sixth receiving module configured to receive the NFVO, and migrate the one or more first virtual machines to one or more third virtual machines in a virtualized infrastructure management VIM a notification message sent later
  • the second processing module is configured to perform a data synchronization operation according to the notification message, and/or to store a mapping relationship with the one or more third virtual machines according to the notification message.
  • a network function virtualization VNF controller comprising the apparatus of any of the above.
  • Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
  • the upgrade request sent by the receiving virtualization infrastructure management VIM is used, wherein the upgrade request is used to request to upgrade the first physical machine, and the first physical machine resides with one or more first virtual machines; Performing a process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request; after the processing is completed, sending the Migrating a migration message to the one or more first virtual machines to one or more third virtual machines; receiving a migration result returned by the VIM; notifying the VIM to execute the first physical machine according to the migration result
  • the upgrade process solves the problem that when the VIM is upgraded, the service will be interrupted when the VIM is upgraded, and the effect of implementing the VIM upgrade without guaranteeing the service is achieved.
  • FIG. 1 is a flowchart of a first physical machine upgrade method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a second physical machine upgrade method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a service migration method according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a first physical machine upgrading apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a first execution module 44 in a first physical machine upgrade apparatus according to an embodiment of the present invention
  • FIG. 6 is a block diagram 1 of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention
  • FIG. 7 is a block diagram 2 of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram of an NFVO 82 according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a second physical machine upgrading apparatus according to an embodiment of the present invention.
  • FIG. 10 is a block diagram showing a preferred structure of a second physical machine upgrading apparatus according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram of a VIM according to an embodiment of the present invention.
  • FIG. 12 is a structural block diagram of a service migration apparatus according to an embodiment of the present invention.
  • FIG. 13 is a block diagram showing a preferred structure of a service migration apparatus according to an embodiment of the present invention.
  • VNF controller 14 is a structural block diagram of a VNF controller according to an embodiment of the present invention.
  • Figure 15 is a block diagram showing the structure of a system in accordance with an embodiment of the present invention.
  • 16 is a schematic diagram of a VIM upgrade process when a virtual machine is in a shutdown state or a virtual machine is in an active state and its carried service is standby, according to an embodiment of the present invention
  • FIG. 17 is a schematic diagram of a VIM upgrade process when a virtual machine is in an active state and a hosted service is used as a primary device according to an embodiment of the present invention
  • FIG. 18 is a schematic diagram of VNF service switching and virtual machine migration when a VNF service is used for backup and backup according to an embodiment of the present invention.
  • FIG. 19 is a schematic diagram of VNF service switching, migration, and virtual machine migration when the VNF service is in the active backup mode and the load sharing mode according to the embodiment of the present invention.
  • FIG. 20 is a schematic diagram of VNF service switching and virtual machine migration when a VIM has a virtual machine with a service failure state according to an embodiment of the present invention.
  • FIG. 1 is a first physical machine liter according to an embodiment of the present invention.
  • a flowchart of the level method, as shown in FIG. 1, the process includes the following steps:
  • Step S102 receiving an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
  • Step S104 performing a process of migrating services running on one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request;
  • Step S106 after the processing is completed, sending, to the VIM, a migration message for migrating one or more first virtual machines to one or more third virtual machines;
  • Step S108 receiving a migration result returned by the VIM.
  • Step S110 according to the migration result, notify the VIM to perform the upgrade process of the first physical machine.
  • the VIM migrates the services running on the virtual machine that resides on the physical machine and the virtual machine to other virtual machines. This ensures that the service is continuously interrupted during the VIM upgrade.
  • the VIM is upgraded in the related technology, the service is interrupted, and the VIM upgrade is achieved without guaranteeing the service interruption.
  • performing the process of migrating services running on the one or more first virtual machines to the one or more second virtual machines according to the foregoing upgrade request comprises: virtualizing the VNF controller to the network function Sending a request message for requesting querying a service running state of the one or more first virtual machines; receiving a service running state of one or more first virtual machines returned by the VNF controller; according to the one or more first virtual
  • the business operational status of the machine performs a process of transmitting, to the VNF controller, a migration message for migrating traffic running on one or more first virtual machines to one or more second virtual machines. It can be seen from this that in this embodiment, the VNF controller is utilized to perform the migration of services on the virtual machine.
  • the foregoing process of transmitting, to the VNF controller, a migration message for migrating services running on one or more first virtual machines to one or more second virtual machines may include sending a migration message to the VNF and not Sending a migration message to the VNF.
  • the sending to the VNF controller for moving the services running on the one or more first virtual machines to one or more is performed according to the service running state of the one or more first virtual machines.
  • the processing of the migration message on the second virtual machine includes: sending a migration message to the VNF controller when the service running status of the one or more first virtual machines is in a primary state and/or a load sharing state; when one or more When the service running state of the first virtual machine is the standby state, the migration message is not sent to the VNF controller.
  • notifying the VIM to perform the upgrade process of the first physical machine includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; and/or, when If the migration fails, the VIM is notified that the first physical machine is not upgraded.
  • the method further includes: notifying the network function virtual The VNF controller performs a data synchronization operation; and/or notifies the network function to virtualize the VNF controller to store a mapping relationship with the one or more third virtual machines.
  • the method further includes: setting the one or more The affinity of the third virtual machine.
  • FIG. 2 is a flowchart of a second physical machine upgrade method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 sending an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
  • Step S204 receiving a migration message sent by the NFVO after performing the process of migrating the services running on the one or more first virtual machines to the one or more second virtual machines according to the foregoing upgrade request, where the migration message is used.
  • Step S206 performing an operation of migrating one or more first virtual machines to one or more third virtual machines according to the migration message
  • Step S208 sending a migration result to the NFVO
  • Step S210 Perform upgrade processing on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
  • the main body that performs the above process may be VIM. Therefore, before the VIM performs the physical machine upgrade, the NFVO migrates the services running on the virtual machine hosted on the physical machine and the virtual machine to other virtual machines, thereby being able to be in the VIM.
  • the upgrade is performed, the service is continuously uninterrupted, and the problem that the service is interrupted when the VIM is upgraded in the related technology is solved, and the effect of implementing the VIM upgrade without guaranteeing the service is achieved.
  • the foregoing migration result includes a migration failure result and a migration success result, where, when the migration result is a migration failure result, the first physics is received according to the received notification message returned by the NFVO according to the foregoing migration result.
  • the upgrade process includes: receiving an upgrade check failure message returned by the NFVO according to the foregoing migration failure result; after receiving the upgrade check failure message, the first physical machine is not upgraded; and/or, when the migration result is a successful migration result
  • the upgrade processing of the first physical machine according to the received notification message returned by the NFVO according to the foregoing migration result includes: receiving an upgrade check success message returned by the NFVO according to the foregoing migration success result; after receiving the upgrade check success message, The first physical machine is upgraded.
  • the method further includes: setting the one or more The affinity of the three virtual machines.
  • FIG. 3 is a flowchart of a service migration method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
  • Step S302 receiving a request message sent by the network function virtualization orchestration NFVO;
  • Step S304 querying, according to the request message, a service running state of one or more first virtual machines, where the one One or more first virtual machines reside on the first physical machine to be upgraded;
  • Step S306 the service running status of the queried one or more first virtual machines is sent to the NFVO;
  • Step S308 receiving a migration message that is sent by the NFVO according to a service running state of one or more first virtual machines
  • Step S310 migrating services running on one or more first virtual machines to one or more second virtual machines according to the migration message.
  • the services running on the virtual machines residing on the physical machines are migrated, so that the physical services can be continuously upgraded without interruption, and the physical machines existing in the related technologies are solved.
  • the upgrade is performed, the service is interrupted, and the physical machine upgrade is achieved without guaranteeing the service interruption.
  • the method further includes: receiving the NFVO on a virtualization basis. a notification message sent by the facility management VIM after migrating one or more first virtual machines to one or more third virtual machines; performing a data synchronization operation according to the notification message, and/or storing one or Mapping relationship of multiple third virtual machines.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a physical machine upgrading device and a service migrating device are provided, which are used to implement the foregoing embodiments and preferred embodiments, and are not described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a structural block diagram of a first physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a first receiving module 42, a first executing module 44, a first sending module 46, and a second receiving. Module 48 and first notification module 410, the device will be described below.
  • the first receiving module 42 is configured to receive an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
  • the first execution module 44 is connected to the first receiving module 42, and is configured to perform a process of migrating services running on one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request;
  • a sending module 46 coupled to the first executing module 44, configured to send a migration message to the VIM for migrating the one or more first virtual machines to one or more third virtual machines after the processing is completed.
  • the second receiving module 48 is connected to the first sending module 46, and is configured to receive the migration result returned by the VIM.
  • the first notification module 410 is connected to the second receiving module 48, and is configured to notify the VIM to perform according to the migration result.
  • the upgrade process of the first physical machine is configured to receive an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request
  • FIG. 5 is a structural block diagram of a first execution module 44 in a first physical machine upgrade apparatus according to an embodiment of the present invention.
  • the first execution module 44 includes a first sending unit 52, a receiving unit 54, and an execution. Unit 56, the first execution module 44 is described below.
  • the first sending unit 52 is configured to send a request message for requesting querying the service running state of the one or more first virtual machines to the network function virtualization VNF controller;
  • the receiving unit 54 is connected to the first sending unit 52. And configured to receive a service running state of the one or more first virtual machines returned by the VNF controller;
  • the executing unit 56 is connected to the receiving unit 54 and configured to execute according to the service running state of the one or more first virtual machines.
  • a process for migrating traffic running on one or more first virtual machines to migration messages on one or more second virtual machines is sent to the VNF controller.
  • the executing unit 56 includes: when the service running state of the one or more first virtual machines is in a primary state and/or a load sharing state, sending the migration message to the VNF controller; when the one or more When the service running state of the first virtual machine is the standby state, the migration message is not sent to the VNF controller.
  • the first notification module 410 includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; and/or, when the migration result is a migration failure, notifying the VIM that the first physical is not The machine is upgraded.
  • FIG. 6 is a block diagram of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a second notification module 62, in addition to all the modules shown in FIG. The device will be described below.
  • a second notification module 62 coupled to the second receiving module 48, configured to notify the network function to virtualize the VNF controller to perform a data synchronization operation; and/or to notify the network function to virtualize the VNF controller to store the one or more The mapping relationship between the three virtual machines.
  • FIG. 7 is a block diagram of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes a first setting module 72, in addition to all the modules shown in FIG. The device will be described.
  • the first setting module 72 is connected to the first sending module 46, and is configured to set an affinity relationship with one or more third virtual machines.
  • FIG. 8 is a block diagram showing the structure of an NFVO 82 according to an embodiment of the present invention. As shown in FIG. 8, the NFVO 82 includes the first physical machine upgrading apparatus 84 of any of the above.
  • FIG. 9 is a structural block diagram of a second physical machine upgrading apparatus according to an embodiment of the present invention.
  • the apparatus includes a second sending module 92, a third receiving module 94, a second executing module 96, and a third sending.
  • Module 98 and first processing module 910, the device will be described below.
  • the second sending module 92 is configured to send an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
  • the three receiving module 94 is connected to the second sending module 92, and is configured to receive the NFVO to perform the migration of the services running on the one or more first virtual machines to the one or more second virtual machines according to the foregoing upgrade request.
  • a migration message sent after the migration message is used to migrate one or more first virtual machines to one or more third virtual machines; a second execution module 96, Connected to the third receiving module 94, configured to perform an operation of migrating one or more first virtual machines to one or more third virtual machines according to the migration message; and a third sending module 98 connected to the second execution
  • the module 96 is configured to send a migration result to the NFVO.
  • the first processing module 910 is connected to the third sending module 98, and is configured to perform an upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
  • the foregoing migration result includes a migration failure result and a migration success result
  • the foregoing first processing module 910 includes: receiving an upgrade check failure message returned by the NFVO according to the migration failure result; After the upgrade check failure message is sent, the first physical machine is not upgraded; and/or, when the migration result is a successful migration result, the first processing module 910 includes: receiving an upgrade check success message returned by the NFVO according to the migration success result. After the upgrade check success message is received, the first physical machine is upgraded.
  • FIG. 10 is a block diagram showing a preferred structure of a second physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes a second setting module 102, in addition to all the modules shown in FIG. The device will be described.
  • the second setting module 102 is connected to the second execution module 96, and is configured to set an affinity relationship with one or more third virtual machines.
  • VIM 11 is a block diagram showing the structure of a VIM according to an embodiment of the present invention. As shown in FIG. 11, the VIM 112 includes the second physical machine upgrading apparatus 114 of any of the above.
  • FIG. 12 is a structural block diagram of a service migration apparatus according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes a fourth receiving module 122, a querying module 124, a fourth sending module 126, a fifth receiving module 128, and a migration module 1210. The device will be described below.
  • the fourth receiving module 122 is configured to receive a request message sent by the network function virtualization orchestration NFVO, and the query module 124 is connected to the fourth receiving module 122, and is configured to query the service of the one or more first virtual machines according to the request message.
  • An operating state wherein the one or more first virtual machines reside on the first physical machine to be upgraded;
  • the fourth sending module 126 is connected to the query module 124, and is configured to query the one or more first The service running status of the virtual machine is sent to the NFVO;
  • the fifth receiving module 128 is connected to the fourth sending module 126, and configured to receive the migration message sent by the NFVO according to the service running state of the one or more first virtual machines;
  • FIG. 13 is a block diagram of a preferred structure of a service migration apparatus according to an embodiment of the present invention. As shown in FIG. 13, the apparatus includes a sixth receiving module 132 and a second processing module 134, in addition to all the modules shown in FIG. The device will be described below.
  • the sixth receiving module 132 is connected to the migration module 1210, and configured to receive a notification message sent by the NFVO after the virtualization infrastructure management VIM migrates the one or more first virtual machines to the one or more third virtual machines;
  • the second processing module 134 is connected to the sixth receiving module 132, configured to perform a data synchronization operation according to the notification message, and/or to store a mapping relationship with one or more third virtual machines according to the notification message.
  • FIG. 14 is a structural block diagram of a VNF controller according to an embodiment of the present invention. As shown in FIG. 14, the VNF controller 142 is shown in FIG. The business migration device 144 of any of the above is included.
  • the VNF service is The inability to perceive the underlying changes, the inability to make appropriate adjustments, and the decentralized deployment of business modules and the differences in the various VNF services make it difficult to guarantee the continued operation of the business.
  • the solutions in the foregoing embodiments can implement the migration and handover of the VNF service in a timely and rapid manner when the NFVI and the VIM are upgraded, thereby ensuring the data integrity and operation sustainability of the VNF service.
  • an automated deployment specification is defined in the NFV-MANO domain to implement a set of virtualized application deployment processes and architectures.
  • the Orchestrator which is responsible for the management and scheduling of VNFs and resources within the entire virtualization management platform, is NFVO, the VNFM responsible for lifecycle management of virtual network functions and associated functional entities (VNF, EMS, VIM).
  • the VNF service uninterrupted system in the VIM upgrade under the telecommunications equipment virtualization technology in the embodiment of the present invention includes the following modules: an NFVO module responsible for VNF and resource management and scheduling in the entire virtualization management platform, and NFVI responsible for virtual network functions.
  • the VNF service does not interrupt the system during VIM upgrade: it consists of three sub-modules, such as the upgrade agent module of NFVO, the VNF controller module of VNF, and the upgrade processing module of VIM, as shown in FIG. 15, FIG. 15 is a system according to an embodiment of the present invention. Block diagram, the following describes each component:
  • This module is implemented by NFVO.
  • the upgrade request is sent from the VIM to the upgrade agent module of the NFVO.
  • the upgrade information mainly includes the hardware list to be upgraded and the host list corresponding to the virtual resource.
  • the NFVO sends the upgrade information sent by the VIM, and the information includes the list of hosts corresponding to the hardware and virtual resources to be upgraded, and sends the upgrade list to the upgrade agent module.
  • the upgrade agent module stores the matching relationship between the VNF instance information corresponding to the current virtual machine and the host resource, and checks the running status of the affected virtual machine according to the request information received by the NFVO, and combines the internally managed VNF instance information to The business module begins processing.
  • FIG. 16 is a schematic diagram of a VIM upgrade process when a virtual machine is in a shutdown state or a virtual machine is in an active state and its carried service is standby
  • FIG. 17 is a virtual machine in an activated state and carried according to an embodiment of the present invention. Schematic diagram of the VIM upgrade process when the service is used. The specific processing flow of the upgrade agent module will be described below with reference to FIGS. 16 and 17.
  • the upgrade agent module does not process the VM.
  • the upgrade agent module sends a service running status query message to the VNF where the virtual machine is located, and the VNF forwards the message to the VNF controller.
  • the VNF controller determines whether it is running the service, and returns the query result to the NFVO, and performs the following processing according to the query result:
  • the upgrade agent module sends a service primary state switch to the standby state request to the VNF controller, and the VNF controller switches the active state of the current virtual machine service to the standby state.
  • the upgrade agent module sends a service migration request to the VNF controller, and the VNF controller migrates the current virtual machine service to other standby modules.
  • the upgrade agent module sends a request for migrating a virtual machine to the NFVO, migrates the virtual machine to a new host physical machine, and performs affinity setting according to the VNF requirement, and the setting is optional.
  • the VIM performs the virtual machine migration and sets the affinity relationship for the newly migrated virtual machine.
  • the VIM notifies the NFVO of the execution result. If the NFVO returns the information to the upgrade agent module, the upgrade agent module stores the relevant information. If the failure occurs, the NFVO notifies the VIM, and the upgrade fails. All processes are changed because they are virtual machines that are not currently activated by the service, so there is no impact on the business.
  • the business virtual machine migration method :
  • the VIM processes the newly switched virtual machine according to the VNF image that the NFVO brings to it, and recreates the VM on the new physical host.
  • VIM After VIM newly creates the VM, it is set according to the affinity mutual exclusion relationship issued by NFVO, and then returns relevant new VM information to NFVO.
  • NFVO transfers to the upgrade agent module, and the upgrade agent module updates the relevant virtual resource information corresponding to the VNF stored by itself, loads the version software corresponding to the VNF for the new virtual machine, and then sends the information to the VNF control.
  • the VNF controller completes the operation of distributing new virtual machine data from the primary virtual machine to the standby virtual machine.
  • the upgrade agent module notifies the VIM that the service switching and migration are complete and can be upgraded.
  • This module can realize the service data integrity through the virtual machine migration of the service module to prevent data loss caused by the hardware or software upgrade.
  • the service is switched between the active and standby services to ensure the uninterrupted operation of the service and ensure the sustainability of the service. .
  • the entire process is controlled by NFVO in NFV-MANO to interact with VIM, and VNF does not need to perceive changes in the underlying layer. Therefore, the present invention can implement the VNF service without interruption when the VIM upgrade is implemented in the network function virtualization of the NFV-MANO specification.
  • VNF controller module
  • This module is implemented by VNF.
  • the functions responsible for implementation are mainly:
  • the NFVO returns the migrated virtual machine information and notifies the VNF to perform the data distribution operation.
  • VIM upgrade processing module :
  • This module is implemented by VIM and is responsible for issuing upgrade information to be upgraded, migrating virtual machines, and setting affinity relationships.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • FIG. 18 is a schematic diagram of VNF service switching and virtual machine migration when a VNF service is used for backup and backup according to an embodiment of the present invention.
  • one VIM system manages four physical hosts, namely HOST1 and HOST2. , HOST3, HOST4.
  • the VIM virtual machine management system resides in HOST1, where 4101 entity is NFVO, 4102 entity is VNF controller, 4201, 4202, 4301, 4302 are respectively VNF service virtual machines, and 4201 and 4301 service relationships are mutual
  • the active and standby, 4202 and 4302 service relationships are active and standby, and the 4401, 4402 virtual machines have not been created and are created during the virtual machine migration process.
  • VIM notifies 4101 that the upgrade will be performed.
  • the upgraded information is: HOST2 is upgraded, and the VMs hosted on HOST2 are 4201 and 4202.
  • the 4101 module determines whether the running status of the virtual machines 4201, 4202 is enabled. This instance virtual machine is enabled. The 4101 module compares and matches the virtual machines 4201, 4202 and the virtual machines and VNF information managed by themselves.
  • the 4101 module sends the virtual machines 4201 and 4202 to the 4102 respectively according to the matching result, and notifies the 4102 to query the running status of the 4201 and 4202 bearer services respectively.
  • the 4102 module After receiving the request, the 4102 module queries the running status of the service carried by the 4201 and 4202. In this example, the 4201 and 4302 virtual machine bearer services are used as the main service, and the 4202 and 4301 virtual machine bearer services are reserved. The 4102 module sends the query result to the 4101 module.
  • the 4101 module notifies the 4102 module to perform service switching on the 4201 in the active state.
  • the 4102 module After receiving the message, the 4102 module performs an active/standby switchover on the 4201 and returns the result to the 4101 module.
  • the 4101 module receives the service switching result. If the switch fails, the 4101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If it is successful, at this time, the service status carried by the virtual machines 4201 and 4202 on HOST2 is standby, and the virtual machines 301 and 302 on HOST3 are in the active state. The 4101 module notifies the VIM to migrate the virtual machines 4201 and 4202 on the HOST2 and migrates to the physical machine HOST4.
  • the virtual machines are respectively 4401 and 4402.
  • the 4101 module After the VIM operation is completed, notify 4101, the operation result. If the operation fails, the 4101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If successful, the 4101 module notifies the 4102 module to perform a data synchronization operation and stores the information virtual machine mapping relationship.
  • the 4101 module notifies the VIM that the upgrade is successful. You can upgrade the HOST2 physical machine.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • FIG. 19 is a schematic diagram of VNF service switching, migration, and virtual machine migration when the VNF service is in the active backup mode and the load sharing mode according to the embodiment of the present invention.
  • one VIM system manages four physical hosts. , are HOST1, HOST2, HOST3, HOST4.
  • the virtual machine management system of the VIM resides in the HOST1.
  • the 5101 entity is the NFVO
  • the 5102 entity is the VNF controller
  • the 5201, 5202, 5301, and 5302 are the service virtual machines of the VNF.
  • the 5201 and 5301 service relationships are load sharing.
  • the 5202 and 5302 service relationships are in the primary and backup mode.
  • the 5202 is the primary and the 5302 is the standby.
  • the 5401 and 5402 virtual machines have not been created and are created during the virtual machine migration process.
  • VIM notifies 5101 that the upgrade will be performed.
  • the upgraded information is as follows: the upgraded physical machine is HOST2, and the virtual machine residing on HOST2 is 5201, 5202.
  • the 5101 module determines whether the running status of the virtual machines 5201, 5202 is enabled. This instance virtual machine is enabled. The 5101 module compares and matches the virtual machines 5201, 5202 and the virtual machines and VNF information managed by themselves.
  • the 5101 module sends the virtual machines 5201 and 5202 respectively to the 5102 according to the matching result, and notifies the 5102 to query the operating status of the 5201 and 5202 bearer services respectively.
  • the 5102 module After receiving the request, the 5102 module queries 5201, 5202 to carry the running status of the service.
  • the services running on 5201 and 5301 are load sharing modes, and 5202 and 5302 are in the standby mode, 5202 is the primary, and 5302 is the standby.
  • the 5102 module sends the query result to the 5101 module.
  • the 5101 module notifies the 5102 module to perform service migration on the 5201 service, migrates to 5301, and performs active/standby switchover on the 5202 service.
  • the 5102 module After receiving the message, the 5102 module performs service migration on the 5201, and performs service master/slave switching on the 5202, and returns the result to the 5101 module.
  • the 5101 module receives the execution result. If the execution fails, the 5101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If it is successful, at this time, the service status carried by the virtual machines 5201 and 5202 on HOST2 is standby, and the virtual machines 5301 and 5302 on HOST3 are in the active state. The 5101 module notifies the VIM to migrate the virtual machines 5201 and 5202 on the HOST2 and migrate to the physical machine HOST4.
  • the virtual machines are respectively 5401 and 5402.
  • the 5101 module After the VIM operation is completed, notify 5101, the operation result. If the operation fails, the 5101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If successful, the 5101 module notifies the 5102 module to perform a data synchronization operation and stores the information virtual machine mapping relationship.
  • the 5101 module notifies the VIM that the upgrade is successful. You can upgrade the HOST2 physical machine.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • FIG. 20 is a schematic diagram of VNF service switching and virtual machine migration when a VIM has a virtual machine with a service failure state according to an embodiment of the present invention.
  • one VIM system manages four physical hosts, respectively, HOST1. , HOST2, HOST3, HOST4.
  • the VM management system of the VIM resides in the HOST1.
  • the 6101 entity is the NFVO
  • the 6102 entity is the VNF controller
  • the 6201, 6202, 6301, and 6302 are the service virtual machines of the VNF.
  • the 6201 and 6301 service relationships are mutually Active/standby
  • the 6202 and 6302 service relationships are active and standby.
  • the 6302 VM fails and cannot run services.
  • the 6401 and 6402 VMs have not been created and are created during the VM migration process.
  • VIM notifies 6101 that the upgrade will be performed.
  • the upgraded information is as follows: the upgraded physical machine is HOST2, and the virtual machine residing on HOST2 is 6201 and 6202.
  • the module 6101 determines whether the running status of the virtual machines 6201, 6202 is enabled. This instance virtual machine is enabled. The 6101 module compares and matches the virtual machines 6201, 6202 and the virtual machines and VNF information managed by itself.
  • the 6101 module sends the virtual machines 6201 and 6202 to the 6102 respectively according to the matching result, and notifies the 6102 to query the running status of the service carried by the 6201 and 6202, respectively.
  • the 6102 module After receiving the request, the 6102 module queries the running status of the service carried by the 6201 and 6202.
  • the 6201 virtual machine bearer service is standby, and the 6301 and 6202 virtual machine bearer services are used as the main service, and the 6302 virtual machine bearer service is in the fault state.
  • the 6102 module sends the query result to the 6101 module.
  • the 6101 module finds a virtual machine with a faulty state and directly notifies VIM that the upgrade cannot be performed and the upgrade process is terminated.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the VIM is notified to perform the upgrade process of the first physical machine according to the migration result.
  • the storage medium is further arranged to store program code for performing the following steps:
  • S22 Receive a migration message sent by the NFVO after performing the process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request, where the migration message is used for Migrating one or more first virtual machines to one or more third virtual machines;
  • S23 Perform an operation of migrating one or more first virtual machines to one or more third virtual machines according to the migration message.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the storage medium is further arranged to store program code for performing the following steps:
  • the receiving network function virtualizes the request message sent by the NFVO.
  • S34 Receive a migration message that is sent by the NFVO according to a service running state of one or more first virtual machines.
  • the processor performs the above steps S11-S15 according to the stored program code in the storage medium.
  • the processor performs the above steps S21-S25 according to the stored program code in the storage medium.
  • the processor performs the above steps S31-S35 according to the stored program code in the storage medium.
  • the existing telecommunication network under the NFV technology is separated into three layers.
  • the VNF cannot detect the VIM change, and the VNF layer service operation is interrupted during the VIM upgrade. Data loss and other conditions.
  • the embodiment of the present invention can implement the migration and switching of the VNF service in a timely and rapid manner when the NFVI and the VIM are upgraded, and implement the service data integrity through the virtual machine migration of the service module to prevent data loss caused by hardware or software upgrade. Through the active/standby switchover of the service, the uninterrupted operation of the service is realized, and the business is guaranteed to be sustainable. Sex. Therefore, the present invention supplements the NFV-MANO specification to ensure the integrity of the NFV layer service during VIM upgrade.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the physical machine upgrade method, the service migration method, and the device provided by the embodiments of the present invention have the following beneficial effects: the problem that the service interruption is caused when the VIM is upgraded in the related art is solved, and the problem is achieved.
  • the effect of VIM upgrade is achieved without guaranteeing business interruption.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Hardware Redundancy (AREA)

Abstract

The present invention provides a physical machine upgrading method, a service migration method and apparatus. The physical machine upgrading method comprises: receiving an upgrading request sent by a virtualized infrastructure management (VIM), the upgrading request being used for requesting for upgrading a first physical machine, and one or more first virtual machines being resident on the first physical machine; performing the processing of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the upgrading request; sending a migration message to the VIM for migrating the one or more first virtual machines to one or more third virtual machines after the processing is completed; receiving a migration result returned by the VIM; and notifying the VIM to execute the upgrading processing of the first physical machine according to the migration result. The present invention resolves the problem of interruption of running services during upgrading of a VIM in the related art, thereby reaching the effect of implementing the VIM upgrading, while ensuring that services are not uninterrupted.

Description

物理机升级方法、业务迁移方法及装置Physical machine upgrade method, business migration method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种物理机升级方法、业务迁移方法及装置。The present invention relates to the field of communications, and in particular to a physical machine upgrade method, a service migration method, and an apparatus.
背景技术Background technique
传统网络设备,其软件和硬件上通过一个设备提供的,而网络功能虚拟化(Network Functions Virtualization,简称为NFV)正是要改变这一点,即:软件和硬件需要分离,从而让软件和硬件独立发展。NFV工作组的研究目标主要是希望通过广泛采用标准化的虚拟化技术,采用业界标准的大容量服务器、存储和交换机承载各种各样的网络软件功能,实现软件的灵活加载,实现在数据中心、网络节点和用户端等各个位置灵活的部署配置,从而加快网络部署和调整的速度,降低业务部署的复杂度,提高网络设备的统一化、通用化、适配性等,最终降低网络的Capex和Opex。按照NFV设计,从纵向看网络分为三层:基础设施层、虚拟网络层和运营支撑层。Traditional network equipment, which is provided by software and hardware, is changed by Network Functions Virtualization (NFV), that is, software and hardware need to be separated, so that software and hardware are independent. development of. The research goal of the NFV working group is to realize the flexible loading of software in the data center by adopting standardized virtualization technology and adopting industry-standard large-capacity servers, storage and switches to carry various network software functions. Flexible configuration of network nodes and clients, speeding up network deployment and adjustment, reducing the complexity of service deployment, improving the uniformity, generalization, and adaptability of network devices, and ultimately reducing the network's Capex and Opex. According to the NFV design, the network is divided into three layers: the infrastructure layer, the virtual network layer, and the operational support layer.
(1)基础设施层网络功能虚拟化基础设施(NFV Infrastructure,简称为NFVI):从云计算的角度看,就是一个资源池。NFVI映射到物理基础设施就是多个地理上分散的数据中心,通过高速通信网连接起来。NFVI需要将物理计算/存储/交换资源通过虚拟化转换为虚拟的计算/存储/交换资源池。(1) Infrastructure layer network function Virtualization infrastructure (NFV Infrastructure, referred to as NFVI): From the perspective of cloud computing, it is a resource pool. NFVI mapping to physical infrastructure is a number of geographically dispersed data centers that are connected by high-speed communication networks. NFVI needs to convert physical computing/storage/switching resources into virtual compute/storage/swap resource pools through virtualization.
(2)虚拟网络层:虚拟网络层对应的就是目前各个电信业务网络,每个物理网元映射为一个虚拟网元虚拟化网络功能(Virtualized Network Function,简称为VNF),VNF所需资源需要分解为虚拟的计算/存储/交换资源,由NFVI来承载,VNF之间的接口依然采用传统网络定义的信令接口,VNF的业务网管依然采用网元(Net Element,简称为NE)-交换侧操作维护中心(Operation Maintenance Centre–Switching,简称为EMS)-网络管理系统(Network Management System,简称为NMS)体制。(2) Virtual network layer: The virtual network layer corresponds to each telecommunication service network. Each physical network element is mapped to a virtual network element virtualized network function (VNF). The required resources of the VNF need to be decomposed. The virtual computing/storage/switching resources are carried by the NFVI. The interface between the VNFs still uses the signaling interface defined by the traditional network. The service network management of the VNF still uses the network element (Net Element, referred to as NE)-switching side operation. Maintenance Maintenance Centre (Switching, EMS for short) - Network Management System (NMS) system.
(3)运营支撑层:运营支撑层就是目前的运营支撑系统(Operations Support System,简称为OSS)/业务支持系统(Business Support System,简称为BSS)。(3) Operation support layer: The operation support layer is the current Operation Support System (OSS)/Business Support System (BSS).
具体的,根据欧洲电信标准化协会(European Telecommunications Standards Institute,简称为ETSI)规范要求,在网路功能虚拟化管理与协调流程(NFV Management and Orchestration,简称为NFV-MANO)域定义一套NFV规范,实现电信业务软件的组织架构。NFV同传统网络最大区别就是增加了一个管理编排域,简称MANO,MANO负责对整个NFVI资源的管理和编排,负责业务网络和NFVI资源的映射和关联,负责OSS业务资源流程的实施等。MANO内部包括VIM、虚拟化网络功能管理(Virtualized Network Function Manager,简称为VNFM)和网络功能虚拟化编排(Network Functions Virtualization Orchestrator,简称为NFVO)三个实体,分别完成对NFVI,VNF和业务网络提供的网络服务(Network Service,简称为NS)三 个层次的管理。Specifically, according to the requirements of the European Telecommunications Standards Institute (ETSI), a set of NFV specifications is defined in the NFV Management and Orchestration (NFV-MANO) domain. Realize the organizational structure of telecom business software. The biggest difference between NFV and traditional network is the addition of a management orchestration domain, referred to as MANO. MANO is responsible for the management and orchestration of the entire NFVI resources, responsible for the mapping and association of business networks and NFVI resources, and responsible for the implementation of OSS business resource processes. MANO internally includes three entities: VIM, Virtualized Network Function Manager (VNFM) and Network Functions Virtualization Orchestrator (NFVO), which provide NFVI, VNF and service network respectively. Network Service (NS Service) Level of management.
在这样的架构下,各个层次间分离,互相之间无法感知,当底层的VIM层进行升级时,将会影响到上层的业务运行,导致上层业务中断,甚至业务数据的丢失,造成严重的后果。由此可知在相关技术中存在着当VIM升级时,会造成业务中断运行的问题。In this architecture, the layers are separated and cannot be perceived by each other. When the underlying VIM layer is upgraded, it will affect the upper-layer service operation, resulting in the interruption of upper-layer services and even the loss of service data, causing serious consequences. . Therefore, in the related art, there is a problem that when the VIM is upgraded, the service is interrupted.
针对相关技术中存在的当VIM升级时,会造成业务中断运行的问题,目前尚未提出有效的解决方案。For the problem that when the VIM is upgraded in the related technology, the service is interrupted, and an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明提供了一种物理机升级方法、业务迁移方法及装置,以至少解决相关技术中存在的当VIM升级时,会造成业务中断运行的问题。The present invention provides a physical machine upgrade method, a service migration method, and a device, to solve at least the problem that the service interruption occurs when the VIM is upgraded in the related art.
根据本发明的一个方面,提供了一种物理机升级方法,包括:接收虚拟化基础设施管理VIM发送的升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;在处理完成后,向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;接收所述VIM返回的迁移结果;根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处理。According to an aspect of the present invention, a physical machine upgrade method is provided, comprising: receiving an upgrade request sent by a virtualization infrastructure management VIM, wherein the upgrade request is used to request to upgrade a first physical machine, the first physical Retaining one or more first virtual machines on the machine; performing, according to the upgrade request, a process of migrating services running on the one or more first virtual machines to one or more second virtual machines; After completion, sending, to the VIM, a migration message for migrating the one or more first virtual machines to one or more third virtual machines; receiving a migration result returned by the VIM; according to the migration result And notifying the VIM to perform an upgrade process of the first physical machine.
可选地,根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理包括:向网络功能虚拟化VNF控制器发送用于请求查询所述一个或多个第一虚拟机的业务运行状态的请求消息;接收所述VNF控制器返回的所述一个或多个第一虚拟机的业务运行状态;根据所述一个或多个第一虚拟机的业务运行状态执行向所述VNF控制器发送用于将所述一个或多个第一虚拟机上运行的业务迁移到所述一个或多个第二虚拟机上的迁移消息的处理。Optionally, performing, according to the upgrade request, performing a process of migrating services running on the one or more first virtual machines to one or more second virtual machines includes: transmitting to a network function virtualization VNF controller Requesting a request message for querying a service running state of the one or more first virtual machines; receiving a service running state of the one or more first virtual machines returned by the VNF controller; according to the one or more The service running state of the first virtual machine sends a migration message to the VNF controller for migrating services running on the one or more first virtual machines to the one or more second virtual machines Processing.
可选地,根据所述一个或多个第一虚拟机的业务运行状态执行向所述VNF控制器发送用于将所述一个或多个第一虚拟机上运行的业务迁移到所述一个或多个第二虚拟机上的迁移消息的处理包括:当所述一个或多个第一虚拟机的业务运行状态为主用状态和/或负荷分担状态时,向所述VNF控制器发送所述迁移消息;当所述一个或多个第一虚拟机的业务运行状态为备用状态时,不向所述VNF控制器发送所述迁移消息。Optionally, performing, according to the service running status of the one or more first virtual machines, transmitting, to the VNF controller, the migrating services running on the one or more first virtual machines to the one or The processing of the migration message on the plurality of second virtual machines includes: transmitting, when the service running state of the one or more first virtual machines is a primary state and/or a load sharing state, to the VNF controller And migrating the message; when the service running state of the one or more first virtual machines is a standby state, the migration message is not sent to the VNF controller.
可选地,根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处理包括:当所述迁移结果为迁移成功时,通知所述VIM对所述第一物理机进行升级;和/或,当所述迁移结果为迁移失败时,通知所述VIM不对所述第一物理机进行升级。Optionally, the step of notifying the VIM to perform the upgrade process of the first physical machine according to the migration result includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; And/or, when the migration result is a migration failure, notifying the VIM that the first physical machine is not upgraded.
可选地,在接收所述VIM返回的迁移结果之后,还包括:通知网络功能虚拟化VNF控制器进行数据同步操作;和/或,通知网络功能虚拟化VNF控制器存储与所述一个或多个第三虚拟机的映射关系。Optionally, after receiving the migration result returned by the VIM, the method further includes: notifying the network function to virtualize the VNF controller to perform a data synchronization operation; and/or notifying the network function to virtualize the VNF controller to store the one or more The mapping relationship of the third virtual machine.
可选地,在向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚 拟机上的迁移消息之后,还包括:设置与所述一个或多个第三虚拟机的亲和关系。Optionally, transmitting to the VIM for migrating the one or more first virtual machines to one or more third virtual After the migration message on the machine, the method further includes: setting an affinity relationship with the one or more third virtual machines.
根据本发明的另一方面,提供了一种物理机升级方法,包括:向网络功能虚拟化编排NFVO发送升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;接收所述NFVO在根据所述升级请求执行了将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,所述迁移消息用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;根据所述迁移消息执行将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;向所述NFVO发送迁移结果;根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理。According to another aspect of the present invention, a physical machine upgrade method is provided, including: sending an upgrade request to a network function virtualization orchestration NFVO, wherein the upgrade request is for requesting to upgrade a first physical machine, the first physical Hosting one or more first virtual machines onboard; receiving the NFVO to perform migration of services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request a migration message sent after processing, wherein the migration message is used to migrate the one or more first virtual machines to one or more third virtual machines; performing the one according to the migration message Or an operation of migrating the plurality of first virtual machines to the one or more third virtual machines; transmitting the migration result to the NFVO; and the first according to the received notification message returned by the NFVO according to the migration result The physical machine is upgraded.
可选地,所述迁移结果包括迁移失败结果和迁移成功结果,其中,当所述迁移结果为迁移失败结果时,根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理包括:接收所述NFVO根据所述迁移失败结果返回的升级检查失败消息;在接收到所述升级检查失败消息后,不对所述第一物理机进行升级;和/或,当所述迁移结果为迁移成功结果时,根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理包括:接收所述NFVO根据所述迁移成功结果返回的升级检查成功消息;在接收到所述升级检查成功消息后,对所述第一物理机进行升级。Optionally, the migration result includes a migration failure result and a migration success result, where, when the migration result is a migration failure result, according to the received notification message returned by the NFVO according to the migration result The upgrading process of the physical machine includes: receiving an upgrade check failure message returned by the NFVO according to the migration failure result; after receiving the upgrade check failure message, not upgrading the first physical machine; and/or, When the migration result is a successful migration result, performing the upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result includes: receiving the NFVO to return according to the migration success result. The upgrade check success message; after receiving the upgrade check success message, the first physical machine is upgraded.
可选地,在根据所述迁移消息执行将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作之后,还包括:设置与所述一个或多个第三虚拟机的亲和关系。Optionally, after performing the operation of migrating the one or more first virtual machines to the one or more third virtual machines according to the migration message, the method further includes: setting the one or more third The affinity of the virtual machine.
根据本发明的另一方面,提供了一种业务迁移方法,包括:接收网络功能虚拟化编排NFVO发送的请求消息;根据所述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,所述一个或多个第一虚拟机驻留于待升级的第一物理机上;将查询到的所述一个或多个第一虚拟机的业务运行状态发送给所述NFVO;接收所述NFVO根据所述一个或多个第一虚拟机的业务运行状态发送的迁移消息;根据所述迁移消息将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。According to another aspect of the present invention, a service migration method is provided, including: receiving a request message sent by a network function virtualization orchestration NFVO; and querying a service running state of one or more first virtual machines according to the request message, where And the one or more first virtual machines are camped on the first physical machine to be upgraded; the service running status of the queried one or more first virtual machines is sent to the NFVO; and the NFVO is received. a migration message sent according to a service running state of the one or more first virtual machines; migrating services running on the one or more first virtual machines to one or more second virtual machines according to the migration message on.
可选地,在根据所述迁移消息将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上之后,还包括:接收所述NFVO在虚拟化基础设施管理VIM将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上之后发送的通知消息;根据所述通知消息进行数据同步操作,和/或,根据所述通知消息存储与所述一个或多个第三虚拟机的映射关系。Optionally, after the traffic running on the one or more first virtual machines is migrated to the one or more second virtual machines according to the migration message, the method further includes: receiving the NFVO in the virtualization infrastructure. Managing a notification message sent by the VIM after migrating the one or more first virtual machines to one or more third virtual machines; performing a data synchronization operation according to the notification message, and/or storing according to the notification message A mapping relationship with the one or more third virtual machines.
根据本发明的另一方面,提供了一种物理机升级装置,包括:第一接收模块,设置为接收虚拟化基础设施管理VIM发送的升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;第一执行模块,设置为根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;第一发送模块,设置为在处理完成后,向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;第二接收模块,设置为接收所述VIM返回的迁移结果;第一通知模块,设置为根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处 理。According to another aspect of the present invention, a physical machine upgrading apparatus is provided, including: a first receiving module, configured to receive an upgrade request sent by a virtualization infrastructure management VIM, wherein the upgrade request is used to request an upgrade first a physical machine, where the first physical machine resides with one or more first virtual machines; the first execution module is configured to perform a service migration on the one or more first virtual machines according to the upgrade request Processing to one or more second virtual machines; the first sending module configured to, after the processing is completed, send to the VIM to migrate the one or more first virtual machines to one or more a migration message on the third virtual machine; the second receiving module is configured to receive the migration result returned by the VIM; the first notification module is configured to notify the VIM to perform the upgrade of the first physical machine according to the migration result At Reason.
可选地,所述第一执行模块包括:第一发送单元,设置为向网络功能虚拟化VNF控制器发送用于请求查询所述一个或多个第一虚拟机的业务运行状态的请求消息;接收单元,设置为接收所述VNF控制器返回的所述一个或多个第一虚拟机的业务运行状态;执行单元,设置为根据所述一个或多个第一虚拟机的业务运行状态执行向所述VNF控制器发送用于将所述一个或多个第一虚拟机上运行的业务迁移到所述一个或多个第二虚拟机上的迁移消息的处理。Optionally, the first execution module includes: a first sending unit, configured to send, to the network function virtualization VNF controller, a request message for requesting querying a service running state of the one or more first virtual machines; a receiving unit, configured to receive a service running state of the one or more first virtual machines returned by the VNF controller; and an executing unit configured to perform a direction according to a service running state of the one or more first virtual machines The VNF controller sends a process for migrating traffic running on the one or more first virtual machines to a migration message on the one or more second virtual machines.
可选地,所述执行单元包括:当所述一个或多个第一虚拟机的业务运行状态为主用状态和/或负荷分担状态时,向所述VNF控制器发送所述迁移消息;当所述一个或多个第一虚拟机的业务运行状态为备用状态时,不向所述VNF控制器发送所述迁移消息。Optionally, the executing unit includes: when the service running state of the one or more first virtual machines is in a primary state and/or a load sharing state, sending the migration message to the VNF controller; When the service running state of the one or more first virtual machines is the standby state, the migration message is not sent to the VNF controller.
可选地,所述第一通知模块包括:当所述迁移结果为迁移成功时,通知所述VIM对所述第一物理机进行升级;和/或,当所述迁移结果为迁移失败时,通知所述VIM不对所述第一物理机进行升级。Optionally, the first notification module includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; and/or, when the migration result is a migration failure, Notifying the VIM that the first physical machine is not upgraded.
可选地,所述装置还包括:第二通知模块,设置为通知网络功能虚拟化VNF控制器进行数据同步操作;和/或,通知网络功能虚拟化VNF控制器存储与所述一个或多个第三虚拟机的映射关系。Optionally, the device further includes: a second notification module, configured to notify the network function to virtualize the VNF controller to perform a data synchronization operation; and/or to notify the network function to virtualize the VNF controller to store the one or more The mapping relationship of the third virtual machine.
可选地,所述装置还包括:第一设置模块,设置为设置与所述一个或多个第三虚拟机的亲和关系。Optionally, the apparatus further includes: a first setting module configured to set an affinity relationship with the one or more third virtual machines.
根据本发明的另一方面,提供了一种网络功能虚拟化编排NFVO,包括上述任一项所述的装置。According to another aspect of the present invention, there is provided a network function virtualization orchestration NFVO, comprising the apparatus of any of the above.
根据本发明的另一方面,提供了一种物理机升级装置,包括:第二发送模块,设置为向网络功能虚拟化编排NFVO发送升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;第三接收模块,设置为接收所述NFVO在根据所述升级请求执行了将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,所述迁移消息用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;第二执行模块,设置为根据所述迁移消息执行将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;第三发送模块,设置为向所述NFVO发送迁移结果;第一处理模块,设置为根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理。According to another aspect of the present invention, a physical machine upgrading apparatus is provided, comprising: a second sending module, configured to send an upgrade request to a network function virtualization orchestration NFVO, wherein the upgrade request is used to request to upgrade the first physical The first physical machine resides with one or more first virtual machines; the third receiving module is configured to receive the NFVO, and execute the one or more first virtual machines according to the upgrade request The running service migrates to a migration message sent after processing on one or more second virtual machines, wherein the migration message is used to migrate the one or more first virtual machines to one or more third a second execution module, configured to perform an operation of migrating the one or more first virtual machines to one or more third virtual machines according to the migration message; and the third sending module is configured to The NFVO sends a migration result; the first processing module is configured to perform an upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
可选地,所述迁移结果包括迁移失败结果和迁移成功结果,其中,当所述迁移结果为迁移失败结果时,所述第一处理模块包括:接收所述NFVO根据所述迁移失败结果返回的升级检查失败消息;在接收到所述升级检查失败消息后,不对所述第一物理机进行升级;和/或,当所述迁移结果为迁移成功结果时,所述第一处理模块包括:接收所述NFVO根据所述迁移成功结果返回的升级检查成功消息;在接收到所述升级检查成功消息后,对所述第一物理机进行升级。 Optionally, the migration result includes a migration failure result and a migration success result, where, when the migration result is a migration failure result, the first processing module includes: receiving the NFVO returned according to the migration failure result Upgrading the check failure message; after receiving the upgrade check failure message, the first physical machine is not upgraded; and/or, when the migration result is a successful migration result, the first processing module includes: receiving The NFVO returns an upgrade check success message according to the migration success result; after receiving the upgrade check success message, the first physical machine is upgraded.
可选地,所述装置还包括:第二设置模块,设置为设置与所述一个或多个第三虚拟机的亲和关系。Optionally, the apparatus further includes: a second setting module configured to set an affinity relationship with the one or more third virtual machines.
根据本发明的另一方面,提供了一种虚拟化基础设施管理VIM,包括上述任一项所述的装置。According to another aspect of the present invention, there is provided a virtualized infrastructure management VIM, comprising the apparatus of any of the above.
根据本发明的另一方面,提供了一种业务迁移装置,包括:第四接收模块,设置为接收网络功能虚拟化编排NFVO发送的请求消息;查询模块,设置为根据所述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,所述一个或多个第一虚拟机驻留于待升级的第一物理机上;第四发送模块,设置为将查询到的所述一个或多个第一虚拟机的业务运行状态发送给所述NFVO;第五接收模块,设置为接收所述NFVO根据所述一个或多个第一虚拟机的业务运行状态发送的迁移消息;迁移模块,设置为根据所述迁移消息将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。According to another aspect of the present invention, a service migrating apparatus is provided, including: a fourth receiving module, configured to receive a request message sent by a network function virtualization orchestration NFVO; and a query module configured to query one or a service running state of the plurality of first virtual machines, wherein the one or more first virtual machines reside on the first physical machine to be upgraded; and the fourth sending module is configured to query the one or more The service running status of the first virtual machine is sent to the NFVO; the fifth receiving module is configured to receive the migration message sent by the NFVO according to the service running status of the one or more first virtual machines; Migrating services running on the one or more first virtual machines to one or more second virtual machines in accordance with the migration message.
可选地,所述装置还包括:第六接收模块,设置为接收所述NFVO在虚拟化基础设施管理VIM将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上之后发送的通知消息;第二处理模块,设置为根据所述通知消息进行数据同步操作,和/或,根据所述通知消息存储与所述一个或多个第三虚拟机的映射关系。Optionally, the apparatus further includes: a sixth receiving module, configured to receive the NFVO, and migrate the one or more first virtual machines to one or more third virtual machines in a virtualized infrastructure management VIM a notification message sent later; the second processing module is configured to perform a data synchronization operation according to the notification message, and/or to store a mapping relationship with the one or more third virtual machines according to the notification message.
根据本发明的另一方面,提供了一种网络功能虚拟化VNF控制器,包括上述任一项所述的装置。According to another aspect of the present invention, a network function virtualization VNF controller is provided, comprising the apparatus of any of the above.
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
通过本发明,采用接收虚拟化基础设施管理VIM发送的升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;在处理完成后,向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;接收所述VIM返回的迁移结果;根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处理,解决了相关技术中存在的当VIM升级时,会造成业务中断运行的问题,进而达到了在保证业务不中断的情况下实现VIM升级的效果。With the present invention, the upgrade request sent by the receiving virtualization infrastructure management VIM is used, wherein the upgrade request is used to request to upgrade the first physical machine, and the first physical machine resides with one or more first virtual machines; Performing a process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request; after the processing is completed, sending the Migrating a migration message to the one or more first virtual machines to one or more third virtual machines; receiving a migration result returned by the VIM; notifying the VIM to execute the first physical machine according to the migration result The upgrade process solves the problem that when the VIM is upgraded, the service will be interrupted when the VIM is upgraded, and the effect of implementing the VIM upgrade without guaranteeing the service is achieved.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的第一种物理机升级方法的流程图;1 is a flowchart of a first physical machine upgrade method according to an embodiment of the present invention;
图2是根据本发明实施例的第二种物理机升级方法的流程图;2 is a flowchart of a second physical machine upgrade method according to an embodiment of the present invention;
图3是根据本发明实施例的业务迁移方法的流程图; 3 is a flowchart of a service migration method according to an embodiment of the present invention;
图4是根据本发明实施例的第一种物理机升级装置的结构框图;4 is a structural block diagram of a first physical machine upgrading apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的第一种物理机升级装置中第一执行模块44的结构框图;FIG. 5 is a structural block diagram of a first execution module 44 in a first physical machine upgrade apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的第一种物理机升级装置的优选结构框图一;6 is a block diagram 1 of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的第一种物理机升级装置的优选结构框图二;7 is a block diagram 2 of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention;
图8是根据本发明实施例的NFVO 82的结构框图;FIG. 8 is a structural block diagram of an NFVO 82 according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的第二种物理机升级装置的结构框图;9 is a structural block diagram of a second physical machine upgrading apparatus according to an embodiment of the present invention;
图10是根据本发明实施例的第二种物理机升级装置的优选结构框图;10 is a block diagram showing a preferred structure of a second physical machine upgrading apparatus according to an embodiment of the present invention;
图11是根据本发明实施例的VIM的结构框图;11 is a structural block diagram of a VIM according to an embodiment of the present invention;
图12是根据本发明实施例的业务迁移装置的结构框图;FIG. 12 is a structural block diagram of a service migration apparatus according to an embodiment of the present invention; FIG.
图13是根据本发明实施例的业务迁移装置的优选结构框图;FIG. 13 is a block diagram showing a preferred structure of a service migration apparatus according to an embodiment of the present invention; FIG.
图14是根据本发明实施例的VNF控制器的结构框图;14 is a structural block diagram of a VNF controller according to an embodiment of the present invention;
图15是根据本发明实施例的系统结构框图;Figure 15 is a block diagram showing the structure of a system in accordance with an embodiment of the present invention;
图16是根据本发明实施例的虚拟机处于停机状态或者虚拟机处于激活且其承载的业务为备用时,VIM升级过程示意图;16 is a schematic diagram of a VIM upgrade process when a virtual machine is in a shutdown state or a virtual machine is in an active state and its carried service is standby, according to an embodiment of the present invention;
图17是根据本发明实施例的虚拟机处于激活状态且承载的业务为主用时,VIM升级过程示意图;17 is a schematic diagram of a VIM upgrade process when a virtual machine is in an active state and a hosted service is used as a primary device according to an embodiment of the present invention;
图18是根据本发明实施例的VIM升级,VNF业务为主备备份时,VNF业务切换和虚拟机迁移示意图;FIG. 18 is a schematic diagram of VNF service switching and virtual machine migration when a VNF service is used for backup and backup according to an embodiment of the present invention; FIG.
图19是根据本发明实施例的VIM升级,VNF业务为主备备份和负荷分担方式时,VNF业务切换、迁移和虚拟机迁移示意图;FIG. 19 is a schematic diagram of VNF service switching, migration, and virtual machine migration when the VNF service is in the active backup mode and the load sharing mode according to the embodiment of the present invention;
图20是根据本发明实施例的VIM升级,VNF有业务故障态的虚拟机时,VNF业务切换和虚拟机迁移示意图。FIG. 20 is a schematic diagram of VNF service switching and virtual machine migration when a VIM has a virtual machine with a service failure state according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种物理机升级方法,图1是根据本发明实施例的第一种物理机升 级方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a physical machine upgrade method is provided, and FIG. 1 is a first physical machine liter according to an embodiment of the present invention. A flowchart of the level method, as shown in FIG. 1, the process includes the following steps:
步骤S102,接收虚拟化基础设施管理VIM发送的升级请求,其中,该升级请求用于请求升级第一物理机,该第一物理机上驻留有一个或多个第一虚拟机;Step S102, receiving an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
步骤S104,根据上述升级请求执行将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;Step S104, performing a process of migrating services running on one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request;
步骤S106,在处理完成后,向VIM发送用于将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;Step S106, after the processing is completed, sending, to the VIM, a migration message for migrating one or more first virtual machines to one or more third virtual machines;
步骤S108,接收上述VIM返回的迁移结果;Step S108, receiving a migration result returned by the VIM.
步骤S110,根据上述迁移结果,通知VIM执行第一物理机的升级处理。Step S110, according to the migration result, notify the VIM to perform the upgrade process of the first physical machine.
通过上述步骤,VIM在进行物理机的升级之前,将物理机上驻留的虚拟机上运行的业务以及虚拟机迁移到其他虚拟机上,从而能够在VIM升级时,保证业务的持续不中断,解决了相关技术中存在的当VIM升级时,会造成业务中断运行的问题,进而达到了在保证业务不中断的情况下实现VIM升级的效果。After the upgrade of the physical machine, the VIM migrates the services running on the virtual machine that resides on the physical machine and the virtual machine to other virtual machines. This ensures that the service is continuously interrupted during the VIM upgrade. When the VIM is upgraded in the related technology, the service is interrupted, and the VIM upgrade is achieved without guaranteeing the service interruption.
在一个可选的实施例中,根据上述升级请求执行将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理包括:向网络功能虚拟化VNF控制器发送用于请求查询该一个或多个第一虚拟机的业务运行状态的请求消息;接收VNF控制器返回的一个或多个第一虚拟机的业务运行状态;根据该一个或多个第一虚拟机的业务运行状态执行向VNF控制器发送用于将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的迁移消息的处理。由此可知,在该实施例中,是利用了VNF控制器进行虚拟机上业务的迁移。其中,上述的执行向VNF控制器发送用于将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的迁移消息的处理可以包括向VNF发送迁移消息和不向VNF发送迁移消息两种情况,在实际应用中,根据具体情况来确定是否需要向VNF发送迁移消息,例如,当一个或多个第一虚拟机上都没有运行业务时,可以不用进行业务的迁移,则不用向VNF发送迁移消息。In an optional embodiment, performing the process of migrating services running on the one or more first virtual machines to the one or more second virtual machines according to the foregoing upgrade request comprises: virtualizing the VNF controller to the network function Sending a request message for requesting querying a service running state of the one or more first virtual machines; receiving a service running state of one or more first virtual machines returned by the VNF controller; according to the one or more first virtual The business operational status of the machine performs a process of transmitting, to the VNF controller, a migration message for migrating traffic running on one or more first virtual machines to one or more second virtual machines. It can be seen from this that in this embodiment, the VNF controller is utilized to perform the migration of services on the virtual machine. The foregoing process of transmitting, to the VNF controller, a migration message for migrating services running on one or more first virtual machines to one or more second virtual machines may include sending a migration message to the VNF and not Sending a migration message to the VNF. In actual applications, it is determined whether a migration message needs to be sent to the VNF according to a specific situation. For example, when no service is running on one or more first virtual machines, the service may not be performed. Migration does not require sending a migration message to the VNF.
在一个可选的实施例中,根据一个或多个第一虚拟机的业务运行状态执行向VNF控制器发送用于将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的迁移消息的处理包括:当一个或多个第一虚拟机的业务运行状态为主用状态和/或负荷分担状态时,向该VNF控制器发送迁移消息;当一个或多个第一虚拟机的业务运行状态为备用状态时,不向VNF控制器发送迁移消息。In an optional embodiment, the sending to the VNF controller for moving the services running on the one or more first virtual machines to one or more is performed according to the service running state of the one or more first virtual machines. The processing of the migration message on the second virtual machine includes: sending a migration message to the VNF controller when the service running status of the one or more first virtual machines is in a primary state and/or a load sharing state; when one or more When the service running state of the first virtual machine is the standby state, the migration message is not sent to the VNF controller.
在一个可选的实施例中,根据上述迁移结果,通知VIM执行第一物理机的升级处理包括:当迁移结果为迁移成功时,通知该VIM对第一物理机进行升级;和/或,当迁移结果为迁移失败时,通知VIM不对第一物理机进行升级。In an optional embodiment, according to the foregoing migration result, notifying the VIM to perform the upgrade process of the first physical machine includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; and/or, when If the migration fails, the VIM is notified that the first physical machine is not upgraded.
在一个可选的实施例中,在接收VIM返回的迁移结果之后,还包括:通知网络功能虚拟 化VNF控制器进行数据同步操作;和/或,通知网络功能虚拟化VNF控制器存储与上述一个或多个第三虚拟机的映射关系。In an optional embodiment, after receiving the migration result returned by the VIM, the method further includes: notifying the network function virtual The VNF controller performs a data synchronization operation; and/or notifies the network function to virtualize the VNF controller to store a mapping relationship with the one or more third virtual machines.
在一个可选的实施例中,在向VIM发送用于将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息之后,还包括:设置与该一个或多个第三虚拟机的亲和关系。In an optional embodiment, after transmitting, to the VIM, the migration message for migrating the one or more first virtual machines to the one or more third virtual machines, the method further includes: setting the one or more The affinity of the third virtual machine.
图2是根据本发明实施例的第二种物理机升级方法的流程图,如图2所示,该流程包括如下步骤:FIG. 2 is a flowchart of a second physical machine upgrade method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,向网络功能虚拟化编排NFVO发送升级请求,其中,该升级请求用于请求升级第一物理机,该第一物理机上驻留有一个或多个第一虚拟机;Step S202, sending an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
步骤S204,接收NFVO在根据上述升级请求执行了将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,该迁移消息用于将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;Step S204, receiving a migration message sent by the NFVO after performing the process of migrating the services running on the one or more first virtual machines to the one or more second virtual machines according to the foregoing upgrade request, where the migration message is used. Migrating one or more first virtual machines to one or more third virtual machines;
步骤S206,根据该迁移消息执行将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;Step S206, performing an operation of migrating one or more first virtual machines to one or more third virtual machines according to the migration message;
步骤S208,向该NFVO发送迁移结果;Step S208, sending a migration result to the NFVO;
步骤S210,根据接收的由NFVO根据上述迁移结果返回的通知消息对第一物理机进行升级处理。Step S210: Perform upgrade processing on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
执行上述流程的主体可以是VIM,从而通过上述步骤,在VIM进行物理机的升级之前,NFVO将物理机上驻留的虚拟机上运行的业务以及虚拟机迁移到其他虚拟机上,从而能够在VIM升级时,保证业务的持续不中断,解决了相关技术中存在的当VIM升级时,会造成业务中断运行的问题,进而达到了在保证业务不中断的情况下实现VIM升级的效果。The main body that performs the above process may be VIM. Therefore, before the VIM performs the physical machine upgrade, the NFVO migrates the services running on the virtual machine hosted on the physical machine and the virtual machine to other virtual machines, thereby being able to be in the VIM. When the upgrade is performed, the service is continuously uninterrupted, and the problem that the service is interrupted when the VIM is upgraded in the related technology is solved, and the effect of implementing the VIM upgrade without guaranteeing the service is achieved.
在一个可选的实施例中,上述迁移结果包括迁移失败结果和迁移成功结果,其中,当该迁移结果为迁移失败结果时,根据接收的由NFVO根据上述迁移结果返回的通知消息对第一物理机进行升级处理包括:接收NFVO根据上述迁移失败结果返回的升级检查失败消息;在接收到上述升级检查失败消息后,不对第一物理机进行升级;和/或,当上述迁移结果为迁移成功结果时,根据接收的由NFVO根据上述迁移结果返回的通知消息对第一物理机进行升级处理包括:接收NFVO根据上述迁移成功结果返回的升级检查成功消息;在接收到该升级检查成功消息后,对第一物理机进行升级。In an optional embodiment, the foregoing migration result includes a migration failure result and a migration success result, where, when the migration result is a migration failure result, the first physics is received according to the received notification message returned by the NFVO according to the foregoing migration result. The upgrade process includes: receiving an upgrade check failure message returned by the NFVO according to the foregoing migration failure result; after receiving the upgrade check failure message, the first physical machine is not upgraded; and/or, when the migration result is a successful migration result The upgrade processing of the first physical machine according to the received notification message returned by the NFVO according to the foregoing migration result includes: receiving an upgrade check success message returned by the NFVO according to the foregoing migration success result; after receiving the upgrade check success message, The first physical machine is upgraded.
在一个可选的实施例中,在根据上述迁移消息执行将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作之后,还包括:设置与该一个或多个第三虚拟机的亲和关系。In an optional embodiment, after performing the operation of migrating the one or more first virtual machines to the one or more third virtual machines according to the foregoing migration message, the method further includes: setting the one or more The affinity of the three virtual machines.
图3是根据本发明实施例的业务迁移方法的流程图,如图3所示,该流程包括如下步骤:FIG. 3 is a flowchart of a service migration method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
步骤S302,接收网络功能虚拟化编排NFVO发送的请求消息;Step S302, receiving a request message sent by the network function virtualization orchestration NFVO;
步骤S304,根据上述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,该一 个或多个第一虚拟机驻留于待升级的第一物理机上;Step S304, querying, according to the request message, a service running state of one or more first virtual machines, where the one One or more first virtual machines reside on the first physical machine to be upgraded;
步骤S306,将查询到的一个或多个第一虚拟机的业务运行状态发送给NFVO;Step S306, the service running status of the queried one or more first virtual machines is sent to the NFVO;
步骤S308,接收上述NFVO根据一个或多个第一虚拟机的业务运行状态发送的迁移消息;Step S308, receiving a migration message that is sent by the NFVO according to a service running state of one or more first virtual machines;
步骤S310,根据该迁移消息将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。Step S310, migrating services running on one or more first virtual machines to one or more second virtual machines according to the migration message.
通过上述步骤,在物理机升级之前,对物理机上驻留的虚拟机上运行的业务进行迁移,从而能够在物理机升级时,保证业务的持续不中断,解决了相关技术中存在的当物理机升级时,会造成业务中断运行的问题,进而达到了在保证业务不中断的情况下实现物理机升级的效果。Through the above steps, before the physical machine is upgraded, the services running on the virtual machines residing on the physical machines are migrated, so that the physical services can be continuously upgraded without interruption, and the physical machines existing in the related technologies are solved. When the upgrade is performed, the service is interrupted, and the physical machine upgrade is achieved without guaranteeing the service interruption.
在一个可选的实施例中,在根据上述迁移消息将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上之后,还包括:接收该NFVO在虚拟化基础设施管理VIM将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上之后发送的通知消息;根据该通知消息进行数据同步操作,和/或,根据该通知消息存储与一个或多个第三虚拟机的映射关系。In an optional embodiment, after the traffic running on the one or more first virtual machines is migrated to the one or more second virtual machines according to the foregoing migration message, the method further includes: receiving the NFVO on a virtualization basis. a notification message sent by the facility management VIM after migrating one or more first virtual machines to one or more third virtual machines; performing a data synchronization operation according to the notification message, and/or storing one or Mapping relationship of multiple third virtual machines.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
在本实施例中还提供了一种物理机升级装置、业务迁移装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a physical machine upgrading device and a service migrating device are provided, which are used to implement the foregoing embodiments and preferred embodiments, and are not described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图4是根据本发明实施例的第一种物理机升级装置的结构框图,如图4所示,该装置包括第一接收模块42、第一执行模块44、第一发送模块46、第二接收模块48和第一通知模块410,下面对该装置进行说明。4 is a structural block diagram of a first physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a first receiving module 42, a first executing module 44, a first sending module 46, and a second receiving. Module 48 and first notification module 410, the device will be described below.
第一接收模块42,设置为接收虚拟化基础设施管理VIM发送的升级请求,其中,该升级请求用于请求升级第一物理机,第一物理机上驻留有一个或多个第一虚拟机;第一执行模块44,连接至上述第一接收模块42,设置为根据上述升级请求执行将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;第一发送模块46,连接至上述第一执行模块44,设置为在处理完成后,向VIM发送用于将该一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;第二接收模块48,连接至上述第一发送模块46,设置为接收VIM返回的迁移结果;第一通知模块410,连接至上述第二接收模块48,设置为根据上述迁移结果,通知VIM执行第一物理机的升级处理。 The first receiving module 42 is configured to receive an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines; The first execution module 44 is connected to the first receiving module 42, and is configured to perform a process of migrating services running on one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request; a sending module 46, coupled to the first executing module 44, configured to send a migration message to the VIM for migrating the one or more first virtual machines to one or more third virtual machines after the processing is completed. The second receiving module 48 is connected to the first sending module 46, and is configured to receive the migration result returned by the VIM. The first notification module 410 is connected to the second receiving module 48, and is configured to notify the VIM to perform according to the migration result. The upgrade process of the first physical machine.
图5是根据本发明实施例的第一种物理机升级装置中第一执行模块44的结构框图,如图5所示,该第一执行模块44包括第一发送单元52、接收单元54和执行单元56,下面对该第一执行模块44进行说明。FIG. 5 is a structural block diagram of a first execution module 44 in a first physical machine upgrade apparatus according to an embodiment of the present invention. As shown in FIG. 5, the first execution module 44 includes a first sending unit 52, a receiving unit 54, and an execution. Unit 56, the first execution module 44 is described below.
第一发送单元52,设置为向网络功能虚拟化VNF控制器发送用于请求查询该一个或多个第一虚拟机的业务运行状态的请求消息;接收单元54,连接至上述第一发送单元52,设置为接收VNF控制器返回的一个或多个第一虚拟机的业务运行状态;执行单元56,连接至上述接收单元54,设置为根据上述一个或多个第一虚拟机的业务运行状态执行向VNF控制器发送用于将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的迁移消息的处理。The first sending unit 52 is configured to send a request message for requesting querying the service running state of the one or more first virtual machines to the network function virtualization VNF controller; the receiving unit 54 is connected to the first sending unit 52. And configured to receive a service running state of the one or more first virtual machines returned by the VNF controller; the executing unit 56 is connected to the receiving unit 54 and configured to execute according to the service running state of the one or more first virtual machines. A process for migrating traffic running on one or more first virtual machines to migration messages on one or more second virtual machines is sent to the VNF controller.
可选地,上述执行单元56包括:当一个或多个第一虚拟机的业务运行状态为主用状态和/或负荷分担状态时,向该VNF控制器发送上述迁移消息;当该一个或多个第一虚拟机的业务运行状态为备用状态时,不向VNF控制器发送上述迁移消息。Optionally, the executing unit 56 includes: when the service running state of the one or more first virtual machines is in a primary state and/or a load sharing state, sending the migration message to the VNF controller; when the one or more When the service running state of the first virtual machine is the standby state, the migration message is not sent to the VNF controller.
可选地,上述第一通知模块410包括:当上述迁移结果为迁移成功时,通知VIM对第一物理机进行升级;和/或,当上述迁移结果为迁移失败时,通知VIM不对第一物理机进行升级。Optionally, the first notification module 410 includes: when the migration result is that the migration is successful, notifying the VIM to upgrade the first physical machine; and/or, when the migration result is a migration failure, notifying the VIM that the first physical is not The machine is upgraded.
图6是根据本发明实施例的第一种物理机升级装置的优选结构框图一,如图6所示,该装置除包括图4所示的所有模块外,还包括:第二通知模块62,下面对该装置进行说明。6 is a block diagram of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes: a second notification module 62, in addition to all the modules shown in FIG. The device will be described below.
第二通知模块62,连接至上述第二接收模块48,设置为通知网络功能虚拟化VNF控制器进行数据同步操作;和/或,通知网络功能虚拟化VNF控制器存储与该一个或多个第三虚拟机的映射关系。a second notification module 62, coupled to the second receiving module 48, configured to notify the network function to virtualize the VNF controller to perform a data synchronization operation; and/or to notify the network function to virtualize the VNF controller to store the one or more The mapping relationship between the three virtual machines.
图7是根据本发明实施例的第一种物理机升级装置的优选结构框图二,如图7所示,该装置除包括图4所示的所有模块外,还包括第一设置模块72,下面对该装置进行说明。7 is a block diagram of a preferred structure of a first physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes a first setting module 72, in addition to all the modules shown in FIG. The device will be described.
第一设置模块72,连接至上述第一发送模块46,设置为设置与一个或多个第三虚拟机的亲和关系。The first setting module 72 is connected to the first sending module 46, and is configured to set an affinity relationship with one or more third virtual machines.
图8是根据本发明实施例的NFVO 82的结构框图,如图8所示,该NFVO 82包括上述任一项的第一种物理机升级装置84。FIG. 8 is a block diagram showing the structure of an NFVO 82 according to an embodiment of the present invention. As shown in FIG. 8, the NFVO 82 includes the first physical machine upgrading apparatus 84 of any of the above.
图9是根据本发明实施例的第二种物理机升级装置的结构框图,如图9所示,该装置包括第二发送模块92、第三接收模块94、第二执行模块96、第三发送模块98和第一处理模块910,下面对该装置进行说明。FIG. 9 is a structural block diagram of a second physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 9, the apparatus includes a second sending module 92, a third receiving module 94, a second executing module 96, and a third sending. Module 98 and first processing module 910, the device will be described below.
第二发送模块92,设置为向网络功能虚拟化编排NFVO发送升级请求,其中,该升级请求用于请求升级第一物理机,第一物理机上驻留有一个或多个第一虚拟机;第三接收模块94,连接至上述第二发送模块92,设置为接收NFVO在根据上述升级请求执行了将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,该迁移消息用于将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;第二执行模块96, 连接至上述第三接收模块94,设置为根据迁移消息执行将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;第三发送模块98,连接至上述第二执行模块96,设置为向NFVO发送迁移结果;第一处理模块910,连接至上述第三发送模块98,设置为根据接收的由NFVO根据迁移结果返回的通知消息对第一物理机进行升级处理。The second sending module 92 is configured to send an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines; The three receiving module 94 is connected to the second sending module 92, and is configured to receive the NFVO to perform the migration of the services running on the one or more first virtual machines to the one or more second virtual machines according to the foregoing upgrade request. Processing a migration message sent after the migration message is used to migrate one or more first virtual machines to one or more third virtual machines; a second execution module 96, Connected to the third receiving module 94, configured to perform an operation of migrating one or more first virtual machines to one or more third virtual machines according to the migration message; and a third sending module 98 connected to the second execution The module 96 is configured to send a migration result to the NFVO. The first processing module 910 is connected to the third sending module 98, and is configured to perform an upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
可选地,上述迁移结果包括迁移失败结果和迁移成功结果,其中,当迁移结果为迁移失败结果时,上述第一处理模块910包括:接收NFVO根据迁移失败结果返回的升级检查失败消息;在接收到该升级检查失败消息后,不对第一物理机进行升级;和/或,当迁移结果为迁移成功结果时,上述第一处理模块910包括:接收述NFVO根据迁移成功结果返回的升级检查成功消息;在接收到该升级检查成功消息后,对第一物理机进行升级。Optionally, the foregoing migration result includes a migration failure result and a migration success result, where, when the migration result is a migration failure result, the foregoing first processing module 910 includes: receiving an upgrade check failure message returned by the NFVO according to the migration failure result; After the upgrade check failure message is sent, the first physical machine is not upgraded; and/or, when the migration result is a successful migration result, the first processing module 910 includes: receiving an upgrade check success message returned by the NFVO according to the migration success result. After the upgrade check success message is received, the first physical machine is upgraded.
图10是根据本发明实施例的第二种物理机升级装置的优选结构框图,如图10所示,该装置除包括图9所示的所有模块外,还包括第二设置模块102,下面对该装置进行说明。FIG. 10 is a block diagram showing a preferred structure of a second physical machine upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 10, the apparatus includes a second setting module 102, in addition to all the modules shown in FIG. The device will be described.
第二设置模块102,连接至上述第二执行模块96,设置为设置与一个或多个第三虚拟机的亲和关系。The second setting module 102 is connected to the second execution module 96, and is configured to set an affinity relationship with one or more third virtual machines.
图11是根据本发明实施例的VIM的结构框图,如图11所示,该VIM 112包括上述任一项的第二种物理机升级装置114。11 is a block diagram showing the structure of a VIM according to an embodiment of the present invention. As shown in FIG. 11, the VIM 112 includes the second physical machine upgrading apparatus 114 of any of the above.
图12是根据本发明实施例的业务迁移装置的结构框图,如图12所示,该装置包括第四接收模块122、查询模块124、第四发送模块126、第五接收模块128和迁移模块1210,下面对该装置进行说明。FIG. 12 is a structural block diagram of a service migration apparatus according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes a fourth receiving module 122, a querying module 124, a fourth sending module 126, a fifth receiving module 128, and a migration module 1210. The device will be described below.
第四接收模块122,设置为接收网络功能虚拟化编排NFVO发送的请求消息;查询模块124,连接至上述第四接收模块122,设置为根据上述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,该一个或多个第一虚拟机驻留于待升级的第一物理机上;第四发送模块126,连接至上述查询模块124,设置为将查询到的一个或多个第一虚拟机的业务运行状态发送给NFVO;第五接收模块128,连接至上述第四发送模块126,设置为接收NFVO根据一个或多个第一虚拟机的业务运行状态发送的迁移消息;迁移模块1210,连接至上述第五接收模块128,设置为根据上述迁移消息将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。The fourth receiving module 122 is configured to receive a request message sent by the network function virtualization orchestration NFVO, and the query module 124 is connected to the fourth receiving module 122, and is configured to query the service of the one or more first virtual machines according to the request message. An operating state, wherein the one or more first virtual machines reside on the first physical machine to be upgraded; the fourth sending module 126 is connected to the query module 124, and is configured to query the one or more first The service running status of the virtual machine is sent to the NFVO; the fifth receiving module 128 is connected to the fourth sending module 126, and configured to receive the migration message sent by the NFVO according to the service running state of the one or more first virtual machines; the migration module 1210 And connecting to the fifth receiving module 128, configured to migrate the services running on the one or more first virtual machines to the one or more second virtual machines according to the migration message.
图13是根据本发明实施例的业务迁移装置的优选结构框图,如图13所示,该装置除包括图12所示的所有模块外,还包括第六接收模块132和第二处理模块134,下面对该装置进行说明。FIG. 13 is a block diagram of a preferred structure of a service migration apparatus according to an embodiment of the present invention. As shown in FIG. 13, the apparatus includes a sixth receiving module 132 and a second processing module 134, in addition to all the modules shown in FIG. The device will be described below.
第六接收模块132,连接至上述迁移模块1210,设置为接收NFVO在虚拟化基础设施管理VIM将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上之后发送的通知消息;第二处理模块134,连接至上述第六接收模块132,设置为根据通知消息进行数据同步操作,和/或,根据通知消息存储与一个或多个第三虚拟机的映射关系。The sixth receiving module 132 is connected to the migration module 1210, and configured to receive a notification message sent by the NFVO after the virtualization infrastructure management VIM migrates the one or more first virtual machines to the one or more third virtual machines; The second processing module 134 is connected to the sixth receiving module 132, configured to perform a data synchronization operation according to the notification message, and/or to store a mapping relationship with one or more third virtual machines according to the notification message.
图14是根据本发明实施例的VNF控制器的结构框图,如图14所示,该VNF控制器142 包括上述任一项的业务迁移装置144。FIG. 14 is a structural block diagram of a VNF controller according to an embodiment of the present invention. As shown in FIG. 14, the VNF controller 142 is shown in FIG. The business migration device 144 of any of the above is included.
上述的实施例中,分别是从NFVO、VIM和VNF控制器侧单独进行说明的,下面对整体流程进行说明:在电信设备网络功能虚拟化的NFV-MANO域规范中,提出了一套VIM升级时实现VNF业务不中断方法,保证业务数据的完整性和业务的持续性。本系统设计了一个负责实现VIM升级时,业务模块的迁移和切换方法,在NFV-MANO域的实际应用中,因为隔离了各个层次之间的直接关联,当I层进行升级时,VNF业务由于无法感知底层的变化,无法做出适当的调整,并且业务模块部署的分散性以及各个VNF业务的差异性,导致难以保证业务的持续性运行。为了适应新的技术发展,上述的各实施例中的方案能够在NFVI和VIM升级时,及时、快速的实现VNF业务的迁移和切换,从而保证VNF业务的数据完整性和运行的可持续性。In the above embodiments, they are separately described from the NFVO, VIM, and VNF controllers. The following is a description of the overall process: In the NFV-MANO domain specification for virtualizing the network function of telecommunication equipment, a set of VIM is proposed. The VNF service is implemented without interruption during the upgrade to ensure the integrity of the business data and the continuity of the business. This system is designed to be responsible for the migration and switching of service modules when implementing VIM upgrade. In the actual application of the NFV-MANO domain, because the direct association between the layers is isolated, when the I layer is upgraded, the VNF service is The inability to perceive the underlying changes, the inability to make appropriate adjustments, and the decentralized deployment of business modules and the differences in the various VNF services make it difficult to guarantee the continued operation of the business. In order to adapt to the new technology development, the solutions in the foregoing embodiments can implement the migration and handover of the VNF service in a timely and rapid manner when the NFVI and the VIM are upgraded, thereby ensuring the data integrity and operation sustainability of the VNF service.
根据ETSI规范要求,在NFV-MANO域定义一套自动化部署规范,实现一套虚拟化应用部署流程和架构。在这个架构中,负责整个虚拟化管理平台内的VNF和资源的管理和调度的Orchestrator,即NFVO,负责虚拟网络功能的生命周期管理的VNFM以及相关联的功能实体(VNF,EMS,VIM)。According to the requirements of the ETSI specification, an automated deployment specification is defined in the NFV-MANO domain to implement a set of virtualized application deployment processes and architectures. In this architecture, the Orchestrator, which is responsible for the management and scheduling of VNFs and resources within the entire virtualization management platform, is NFVO, the VNFM responsible for lifecycle management of virtual network functions and associated functional entities (VNF, EMS, VIM).
本发明实施例中的电信设备虚拟化技术下的VIM升级时VNF业务不中断系统包括以下模块:负责整个虚拟化管理平台内的VNF和资源的管理和调度的NFVO模块,负责虚拟网络功能的NFVI层进行管理的VIM模块以及业务层的VNF模块等。The VNF service uninterrupted system in the VIM upgrade under the telecommunications equipment virtualization technology in the embodiment of the present invention includes the following modules: an NFVO module responsible for VNF and resource management and scheduling in the entire virtualization management platform, and NFVI responsible for virtual network functions. The VIM module managed by the layer and the VNF module of the service layer.
还包括:Also includes:
VIM升级时VNF业务不中断系统:由NFVO的升级代理模块、VNF的VNF控制器模块和VIM的升级处理模块等三个子模块组成,如图15所示,图15是根据本发明实施例的系统结构框图,下面分别介绍各组件:The VNF service does not interrupt the system during VIM upgrade: it consists of three sub-modules, such as the upgrade agent module of NFVO, the VNF controller module of VNF, and the upgrade processing module of VIM, as shown in FIG. 15, FIG. 15 is a system according to an embodiment of the present invention. Block diagram, the following describes each component:
升级代理模块:Upgrade the agent module:
本模块由NFVO实现。当VIM需要升级时,从VIM上下发升级请求到NFVO的升级代理模块,该升级信息主要包括要升级的硬件和虚拟资源对应的主机列表等。NFVO收到升级请求后把VIM所发出的升级信息,该信息包含要升级的硬件和虚拟资源对应的主机列表,发给升级代理模块。升级代理模块对当前虚拟机和主机资源所对应的VNF实例信息存储匹配关系,根据收到NFVO的请求信息,对波及影响的虚机运行状态进行检查,同时结合内部所管理的VNF实例信息,对业务模块开始进行处理。This module is implemented by NFVO. When the VIM needs to be upgraded, the upgrade request is sent from the VIM to the upgrade agent module of the NFVO. The upgrade information mainly includes the hardware list to be upgraded and the host list corresponding to the virtual resource. After the NFVO receives the upgrade request, it sends the upgrade information sent by the VIM, and the information includes the list of hosts corresponding to the hardware and virtual resources to be upgraded, and sends the upgrade list to the upgrade agent module. The upgrade agent module stores the matching relationship between the VNF instance information corresponding to the current virtual machine and the host resource, and checks the running status of the affected virtual machine according to the request information received by the NFVO, and combines the internally managed VNF instance information to The business module begins processing.
图16是根据本发明实施例的虚拟机处于停机状态或者虚拟机处于激活且其承载的业务为备用时,VIM升级过程示意图,图17是根据本发明实施例的虚拟机处于激活状态且承载的业务为主用时,VIM升级过程示意图。下面结合图16、17对升级代理模块的具体处理流程进行说明:16 is a schematic diagram of a VIM upgrade process when a virtual machine is in a shutdown state or a virtual machine is in an active state and its carried service is standby, and FIG. 17 is a virtual machine in an activated state and carried according to an embodiment of the present invention. Schematic diagram of the VIM upgrade process when the service is used. The specific processing flow of the upgrade agent module will be described below with reference to FIGS. 16 and 17.
1.1如果VIM升级所影响的虚拟机处于未启动激活状态(如图16所示),则升级代理模块对这部分虚拟机不做处理。 1.1 If the VM affected by the VIM upgrade is not activated (as shown in Figure 16), the upgrade agent module does not process the VM.
1.2如果VIM升级所影响的虚拟机处于激活状态(如图17所示),则升级代理模块对这部分虚拟机所在的VNF发送业务运行状态查询消息,VNF将该消息转发给VNF控制器,由VNF控制器判断其是否在运行业务,并返回查询结果到NFVO,根据查询结果作如下处理:1.2 If the virtual machine affected by the VIM upgrade is in the active state (as shown in Figure 17), the upgrade agent module sends a service running status query message to the VNF where the virtual machine is located, and the VNF forwards the message to the VNF controller. The VNF controller determines whether it is running the service, and returns the query result to the NFVO, and performs the following processing according to the query result:
(1)如果该虚拟机当前业务为主用状态,则升级代理模块发出业务主用状态切换为备用状态请求给VNF控制器,VNF控制器切换当前虚拟机业务的主用状态为备用状态。(1) If the current service of the virtual machine is in the active state, the upgrade agent module sends a service primary state switch to the standby state request to the VNF controller, and the VNF controller switches the active state of the current virtual machine service to the standby state.
(2)如果该虚拟机当前业务为备用状态,则无需进行业务主备切换。(2) If the current service of the VM is in the standby state, no active/standby switchover is required.
(3)如果该虚拟机当前业务为负荷分担,则升级代理模块发出业务迁移请求给VNF控制器,VNF控制器迁移当前虚拟机业务的到其他备用模块。(3) If the current service of the virtual machine is load sharing, the upgrade agent module sends a service migration request to the VNF controller, and the VNF controller migrates the current virtual machine service to other standby modules.
以上流程完成后,升级代理模块向NFVO发出迁移虚拟机请求,将该虚拟机迁移到新的宿主物理机,并根据VNF要求进行亲和关系设置,该设置为可选。由NFVO把请求发给VIM后,VIM进行虚拟机进行迁移,并对新迁移后的虚拟机设置亲和关系,可选配置。VIM通知NFVO执行结果,若是成功,则NFVO把信息返回给升级代理模块后,升级代理模块存储相关信息,若是失败,则NFVO通知VIM,无法进行升级,并上报升级失败原因。全部流程由于变动的是业务当前未激活的虚拟机,因此对业务无影响。After the above process is completed, the upgrade agent module sends a request for migrating a virtual machine to the NFVO, migrates the virtual machine to a new host physical machine, and performs affinity setting according to the VNF requirement, and the setting is optional. After the request is sent to the VIM by the NFVO, the VIM performs the virtual machine migration and sets the affinity relationship for the newly migrated virtual machine. The VIM notifies the NFVO of the execution result. If the NFVO returns the information to the upgrade agent module, the upgrade agent module stores the relevant information. If the failure occurs, the NFVO notifies the VIM, and the upgrade fails. All processes are changed because they are virtual machines that are not currently activated by the service, so there is no impact on the business.
其中业务虚拟机迁移方法:The business virtual machine migration method:
(1)VIM对新切换的虚拟机根据NFVO所带给其的VNF镜像,在新的物理主机上重新创建VM的方式处理。(1) The VIM processes the newly switched virtual machine according to the VNF image that the NFVO brings to it, and recreates the VM on the new physical host.
(2)VIM新创建完VM后,并根据NFVO发出的亲和互斥关系进行设置,然后,返回相关新的VM信息给NFVO。(2) After VIM newly creates the VM, it is set according to the affinity mutual exclusion relationship issued by NFVO, and then returns relevant new VM information to NFVO.
(3)NFVO收到信息后转给升级代理模块,升级代理模块更新自己存储的VNF所对应的相关虚拟资源信息,并对新虚拟机加载VNF所对应的版本软件,然后把信息发给VNF控制器,VNF控制器完成新虚拟机数据从主用的虚拟机向备用虚拟机分发的操作。(3) After receiving the information, NFVO transfers to the upgrade agent module, and the upgrade agent module updates the relevant virtual resource information corresponding to the VNF stored by itself, loads the version software corresponding to the VNF for the new virtual machine, and then sends the information to the VNF control. The VNF controller completes the operation of distributing new virtual machine data from the primary virtual machine to the standby virtual machine.
以上流程处理完成后,升级代理模块通知VIM,业务切换和迁移完成,可以进行升级处理。After the above process is completed, the upgrade agent module notifies the VIM that the service switching and migration are complete and can be upgraded.
本模块能够通过业务模块的虚拟机迁移,实现业务数据完整性,以防硬件或者软件升级时导致的数据丢失;通过业务的主备切换,实现业务的不中断运行,保证了业务的可持续性。整个流程由NFV-MANO中的NFVO负责控制与VIM交互,VNF无需感知到下层的变化。因此,本发明能够在NFV-MANO规范的网络功能虚拟化中实现VIM升级时VNF业务不中断运行。This module can realize the service data integrity through the virtual machine migration of the service module to prevent data loss caused by the hardware or software upgrade. The service is switched between the active and standby services to ensure the uninterrupted operation of the service and ensure the sustainability of the service. . The entire process is controlled by NFVO in NFV-MANO to interact with VIM, and VNF does not need to perceive changes in the underlying layer. Therefore, the present invention can implement the VNF service without interruption when the VIM upgrade is implemented in the network function virtualization of the NFV-MANO specification.
VNF控制器模块:VNF controller module:
本模块由VNF实现。负责实现的功能主要有:This module is implemented by VNF. The functions responsible for implementation are mainly:
判断虚拟机所承载的业务模块的运行状态,并返回查询结果。 Determine the running status of the service module carried by the virtual machine and return the query result.
负责对虚拟机所承载的业务模块进行主备倒换,并返回结果。Responsible for performing active/standby switchover on the service modules carried by the VM and returning the result.
NFVO返回迁移后的虚拟机信息,通知VNF进行数据分发操作。The NFVO returns the migrated virtual machine information and notifies the VNF to perform the data distribution operation.
VIM的升级处理模块:VIM upgrade processing module:
本模块由VIM实现,负责下发要升级的升级信息,迁移虚拟机并设置亲和关系等。This module is implemented by VIM and is responsible for issuing upgrade information to be upgraded, migrating virtual machines, and setting affinity relationships.
实施例一:Embodiment 1:
图18是根据本发明实施例的VIM升级,VNF业务为主备备份时,VNF业务切换和虚拟机迁移示意图,如图18所示,一个VIM系统管理着4个物理主机,分别是HOST1,HOST2,HOST3,HOST4。VIM的虚拟机管理系统驻留在HOST1中,其中4101实体为NFVO,4102实体为VNF控制器,4201,4202,4301,4302分别为该VNF的业务虚拟机,其中4201和4301业务关系为互为主备,4202和4302业务关系上互为主备,4401,4402虚拟机尚未创建,在虚拟机迁移过程中被创建。FIG. 18 is a schematic diagram of VNF service switching and virtual machine migration when a VNF service is used for backup and backup according to an embodiment of the present invention. As shown in FIG. 18, one VIM system manages four physical hosts, namely HOST1 and HOST2. , HOST3, HOST4. The VIM virtual machine management system resides in HOST1, where 4101 entity is NFVO, 4102 entity is VNF controller, 4201, 4202, 4301, 4302 are respectively VNF service virtual machines, and 4201 and 4301 service relationships are mutual The active and standby, 4202 and 4302 service relationships are active and standby, and the 4401, 4402 virtual machines have not been created and are created during the virtual machine migration process.
VIM通知4101,将要进行升级,下发的升级信息为:升级的物理机为HOST2,HOST2上驻留的虚拟机为4201,4202。VIM notifies 4101 that the upgrade will be performed. The upgraded information is: HOST2 is upgraded, and the VMs hosted on HOST2 are 4201 and 4202.
4101模块收到升级信息后,判断虚拟机4201,4202的运行状态,是否启用。本实例虚拟机都是启用状态。4101模块将虚拟机4201,4202和自己管理的虚拟机和VNF信息进行对比匹配。After receiving the upgrade information, the 4101 module determines whether the running status of the virtual machines 4201, 4202 is enabled. This instance virtual machine is enabled. The 4101 module compares and matches the virtual machines 4201, 4202 and the virtual machines and VNF information managed by themselves.
4101模块根据匹配的结果,将虚拟机4201,4202分别下发到4102,通知4102分别查询4201,4202承载业务的运行状态。The 4101 module sends the virtual machines 4201 and 4202 to the 4102 respectively according to the matching result, and notifies the 4102 to query the running status of the 4201 and 4202 bearer services respectively.
4102模块收到请求后,查询4201,4202承载业务的运行状态。本实例中4201、4302虚拟机承载业务为主用,4202、4301虚拟机承载业务为备用。4102模块将查询结果发送给4101模块。After receiving the request, the 4102 module queries the running status of the service carried by the 4201 and 4202. In this example, the 4201 and 4302 virtual machine bearer services are used as the main service, and the 4202 and 4301 virtual machine bearer services are reserved. The 4102 module sends the query result to the 4101 module.
4101模块通知4102模块,对主用状态的4201进行业务倒换。The 4101 module notifies the 4102 module to perform service switching on the 4201 in the active state.
4102模块收到消息后,对4201进行主备切换,并将结果返回给4101模块。After receiving the message, the 4102 module performs an active/standby switchover on the 4201 and returns the result to the 4101 module.
4101模块收到业务切换结果,若是切换失败,则4101模块通知VIM升级检查失败,不能进行升级操作。若是成功,此时,HOST2上虚拟机4201,4202承载的业务状态都为备用,HOST3上虚拟机301,302则为主用状态。4101模块通知VIM对HOST2上虚拟机4201,4202进行迁移,迁移到物理机HOST4上,虚拟机分别为4401,4402。The 4101 module receives the service switching result. If the switch fails, the 4101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If it is successful, at this time, the service status carried by the virtual machines 4201 and 4202 on HOST2 is standby, and the virtual machines 301 and 302 on HOST3 are in the active state. The 4101 module notifies the VIM to migrate the virtual machines 4201 and 4202 on the HOST2 and migrates to the physical machine HOST4. The virtual machines are respectively 4401 and 4402.
VIM操作完成后,通知4101,操作结果。若是操作失败,则4101模块通知VIM升级检查失败,不能进行升级操作。若是成功,4101模块通知4102模块,进行数据同步操作,并且存储信息虚拟机映射关系。 After the VIM operation is completed, notify 4101, the operation result. If the operation fails, the 4101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If successful, the 4101 module notifies the 4102 module to perform a data synchronization operation and stores the information virtual machine mapping relationship.
4101模块通知VIM升级检查成功,可以对HOST2物理机进行升级操作。The 4101 module notifies the VIM that the upgrade is successful. You can upgrade the HOST2 physical machine.
实施例二:Embodiment 2:
图19是根据本发明实施例的VIM升级,VNF业务为主备备份和负荷分担方式时,VNF业务切换、迁移和虚拟机迁移示意图,如图19所示,一个VIM系统管理着4个物理主机,分别是HOST1,HOST2,HOST3,HOST4。VIM的虚拟机管理系统驻留在HOST1中,其中5101实体为NFVO,5102实体为VNF控制器,5201,5202,5301,5302分别为该VNF的业务虚拟机,其中5201和5301业务关系为负荷分担,5202和5302业务关系为主备模式,5202为主,5302为备,5401,5402虚拟机尚未创建,在虚拟机迁移过程中被创建。FIG. 19 is a schematic diagram of VNF service switching, migration, and virtual machine migration when the VNF service is in the active backup mode and the load sharing mode according to the embodiment of the present invention. As shown in FIG. 19, one VIM system manages four physical hosts. , are HOST1, HOST2, HOST3, HOST4. The virtual machine management system of the VIM resides in the HOST1. The 5101 entity is the NFVO, the 5102 entity is the VNF controller, and the 5201, 5202, 5301, and 5302 are the service virtual machines of the VNF. The 5201 and 5301 service relationships are load sharing. The 5202 and 5302 service relationships are in the primary and backup mode. The 5202 is the primary and the 5302 is the standby. The 5401 and 5402 virtual machines have not been created and are created during the virtual machine migration process.
VIM通知5101,将要进行升级,下发的升级信息为:升级的物理机为HOST2,HOST2上驻留的虚拟机为5201,5202。VIM notifies 5101 that the upgrade will be performed. The upgraded information is as follows: the upgraded physical machine is HOST2, and the virtual machine residing on HOST2 is 5201, 5202.
5101模块收到升级信息后,判断虚拟机5201,5202的运行状态,是否启用。本实例虚拟机都是启用状态。5101模块将虚拟机5201,5202和自己管理的虚拟机和VNF信息进行对比匹配。After receiving the upgrade information, the 5101 module determines whether the running status of the virtual machines 5201, 5202 is enabled. This instance virtual machine is enabled. The 5101 module compares and matches the virtual machines 5201, 5202 and the virtual machines and VNF information managed by themselves.
5101模块根据匹配的结果,将虚拟机5201,5202分别下发到5102,通知5102分别查询5201,5202承载业务的运行状态。The 5101 module sends the virtual machines 5201 and 5202 respectively to the 5102 according to the matching result, and notifies the 5102 to query the operating status of the 5201 and 5202 bearer services respectively.
5102模块收到请求后,查询5201,5202承载业务的运行状态。本实例中5201、5301运行的业务为负荷分担方式,5202、5302为主备模式,5202为主,5302为备。5102模块将查询结果发送给5101模块。After receiving the request, the 5102 module queries 5201, 5202 to carry the running status of the service. In this example, the services running on 5201 and 5301 are load sharing modes, and 5202 and 5302 are in the standby mode, 5202 is the primary, and 5302 is the standby. The 5102 module sends the query result to the 5101 module.
5101模块通知5102模块,对5201的业务进行业务迁移,迁移到5301,并且对5202的业务进行主备切换。The 5101 module notifies the 5102 module to perform service migration on the 5201 service, migrates to 5301, and performs active/standby switchover on the 5202 service.
5102模块收到消息后,对5201进行业务迁移、5202进行业务主备切换,并将结果返回给5101模块。After receiving the message, the 5102 module performs service migration on the 5201, and performs service master/slave switching on the 5202, and returns the result to the 5101 module.
5101模块收到执行结果,若是执行失败,则5101模块通知VIM升级检查失败,不能进行升级操作。若是成功,此时,HOST2上虚拟机5201,5202承载的业务状态都为备用,HOST3上虚拟机5301,5302则为主用状态。5101模块通知VIM对HOST2上虚拟机5201,5202进行迁移,迁移到物理机HOST4上,虚拟机分别为5401,5402。The 5101 module receives the execution result. If the execution fails, the 5101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If it is successful, at this time, the service status carried by the virtual machines 5201 and 5202 on HOST2 is standby, and the virtual machines 5301 and 5302 on HOST3 are in the active state. The 5101 module notifies the VIM to migrate the virtual machines 5201 and 5202 on the HOST2 and migrate to the physical machine HOST4. The virtual machines are respectively 5401 and 5402.
VIM操作完成后,通知5101,操作结果。若是操作失败,则5101模块通知VIM升级检查失败,不能进行升级操作。若是成功,5101模块通知5102模块,进行数据同步操作,并且存储信息虚拟机映射关系。After the VIM operation is completed, notify 5101, the operation result. If the operation fails, the 5101 module notifies the VIM that the upgrade check fails and cannot perform the upgrade operation. If successful, the 5101 module notifies the 5102 module to perform a data synchronization operation and stores the information virtual machine mapping relationship.
5101模块通知VIM升级检查成功,可以对HOST2物理机进行升级操作。 The 5101 module notifies the VIM that the upgrade is successful. You can upgrade the HOST2 physical machine.
实施例三:Embodiment 3:
图20是根据本发明实施例的VIM升级,VNF有业务故障态的虚拟机时,VNF业务切换和虚拟机迁移示意图,如图20所示,一个VIM系统管理着4个物理主机,分别是HOST1,HOST2,HOST3,HOST4。VIM的虚拟机管理系统驻留在HOST1中,其中6101实体为NFVO,6102实体为VNF控制器,6201,6202,6301,6302分别为该VNF的业务虚拟机,其中6201和6301业务关系为互为主备,6202和6302业务关系上互为主备,6302虚拟机出现故障,无法运行业务,6401,6402虚拟机尚未创建,在虚拟机迁移过程中被创建。FIG. 20 is a schematic diagram of VNF service switching and virtual machine migration when a VIM has a virtual machine with a service failure state according to an embodiment of the present invention. As shown in FIG. 20, one VIM system manages four physical hosts, respectively, HOST1. , HOST2, HOST3, HOST4. The VM management system of the VIM resides in the HOST1. The 6101 entity is the NFVO, the 6102 entity is the VNF controller, and the 6201, 6202, 6301, and 6302 are the service virtual machines of the VNF. The 6201 and 6301 service relationships are mutually Active/standby, the 6202 and 6302 service relationships are active and standby. The 6302 VM fails and cannot run services. The 6401 and 6402 VMs have not been created and are created during the VM migration process.
VIM通知6101,将要进行升级,下发的升级信息为:升级的物理机为HOST2,HOST2上驻留的虚拟机为6201,6202。VIM notifies 6101 that the upgrade will be performed. The upgraded information is as follows: the upgraded physical machine is HOST2, and the virtual machine residing on HOST2 is 6201 and 6202.
6101模块收到升级信息后,判断虚拟机6201,6202的运行状态,是否启用。本实例虚拟机都是启用状态。6101模块将虚拟机6201,6202和自己管理的虚拟机和VNF信息进行对比匹配。After receiving the upgrade information, the module 6101 determines whether the running status of the virtual machines 6201, 6202 is enabled. This instance virtual machine is enabled. The 6101 module compares and matches the virtual machines 6201, 6202 and the virtual machines and VNF information managed by itself.
6101模块根据匹配的结果,将虚拟机6201,6202分别下发到6102,通知6102分别查询6201,6202承载业务的运行状态。The 6101 module sends the virtual machines 6201 and 6202 to the 6102 respectively according to the matching result, and notifies the 6102 to query the running status of the service carried by the 6201 and 6202, respectively.
6102模块收到请求后,查询6201,6202承载业务的运行状态。本实例中6201虚拟机承载业务为备用,6301、6202虚拟机承载业务为主用,6302虚拟机承载业务为故障状态。6102模块将查询结果发送给6101模块。After receiving the request, the 6102 module queries the running status of the service carried by the 6201 and 6202. In this example, the 6201 virtual machine bearer service is standby, and the 6301 and 6202 virtual machine bearer services are used as the main service, and the 6302 virtual machine bearer service is in the fault state. The 6102 module sends the query result to the 6101 module.
6101模块发现有故障状态的虚拟机,直接通知VIM,无法进行升级,升级流程终止。The 6101 module finds a virtual machine with a faulty state and directly notifies VIM that the upgrade cannot be performed and the upgrade process is terminated.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S11,接收虚拟化基础设施管理VIM发送的升级请求,其中,该升级请求用于请求升级第一物理机,该第一物理机上驻留有一个或多个第一虚拟机;S11, receiving an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
S12,根据上述升级请求执行将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;S12. Perform a process of migrating services running on one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request.
S13,在处理完成后,向VIM发送用于将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;S13. After the processing is completed, send, to the VIM, a migration message for migrating one or more first virtual machines to one or more third virtual machines;
S14,接收上述VIM返回的迁移结果;S14. Receive a migration result returned by the VIM.
S15,根据上述迁移结果,通知VIM执行第一物理机的升级处理。S15. The VIM is notified to perform the upgrade process of the first physical machine according to the migration result.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码: Optionally, the storage medium is further arranged to store program code for performing the following steps:
S21,向网络功能虚拟化编排NFVO发送升级请求,其中,该升级请求用于请求升级第一物理机,该第一物理机上驻留有一个或多个第一虚拟机;S21, sending an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
S22,接收NFVO在根据上述升级请求执行了将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,该迁移消息用于将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;S22. Receive a migration message sent by the NFVO after performing the process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the foregoing upgrade request, where the migration message is used for Migrating one or more first virtual machines to one or more third virtual machines;
S23,根据该迁移消息执行将一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;S23. Perform an operation of migrating one or more first virtual machines to one or more third virtual machines according to the migration message.
S24,向该NFVO发送迁移结果;S24. Send a migration result to the NFVO.
S25,根据接收的由NFVO根据上述迁移结果返回的通知消息对第一物理机进行升级处理。S25. Perform an upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the foregoing migration result.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S31,接收网络功能虚拟化编排NFVO发送的请求消息;S31. The receiving network function virtualizes the request message sent by the NFVO.
S32,根据上述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,该一个或多个第一虚拟机驻留于待升级的第一物理机上;S32, querying, according to the foregoing request message, a service running state of one or more first virtual machines, where the one or more first virtual machines reside on a first physical machine to be upgraded;
S33,将查询到的一个或多个第一虚拟机的业务运行状态发送给NFVO;S33, sending the queried service status of the one or more first virtual machines to the NFVO;
S34,接收上述NFVO根据一个或多个第一虚拟机的业务运行状态发送的迁移消息;S34. Receive a migration message that is sent by the NFVO according to a service running state of one or more first virtual machines.
S35,根据该迁移消息将一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。S35. Migrate the services running on the one or more first virtual machines to the one or more second virtual machines according to the migration message.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述步骤S11-S15。Optionally, in the embodiment, the processor performs the above steps S11-S15 according to the stored program code in the storage medium.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述步骤S21-S25。Optionally, in the embodiment, the processor performs the above steps S21-S25 according to the stored program code in the storage medium.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述步骤S31-S35。Optionally, in the embodiment, the processor performs the above steps S31-S35 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
针对相关技术中存在的NFV-MANO中对把NFV技术下的现有电信网络分离为三个层面,当VIM升级时,VNF不能感知VIM的变化,进而会导致VIM升级时VNF层业务运行中断或者数据丢失等状况。本发明实施例能够在NFVI和VIM升级时,及时、快速的实现VNF业务的迁移和切换,通过业务模块的虚拟机迁移,实现业务数据完整性,以防硬件或者软件升级时导致的数据丢失;通过业务的主备切换,实现业务的不中断运行,保证了业务的可持续 性。因此,本发明补充了NFV-MANO规范,保证了NFV层业务在VIM升级时的完整性。For the existing NFV-MANO in the related art, the existing telecommunication network under the NFV technology is separated into three layers. When the VIM is upgraded, the VNF cannot detect the VIM change, and the VNF layer service operation is interrupted during the VIM upgrade. Data loss and other conditions. The embodiment of the present invention can implement the migration and switching of the VNF service in a timely and rapid manner when the NFVI and the VIM are upgraded, and implement the service data integrity through the virtual machine migration of the service module to prevent data loss caused by hardware or software upgrade. Through the active/standby switchover of the service, the uninterrupted operation of the service is realized, and the business is guaranteed to be sustainable. Sex. Therefore, the present invention supplements the NFV-MANO specification to ensure the integrity of the NFV layer service during VIM upgrade.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种物理机升级方法、业务迁移方法及装置具有以下有益效果:解决了相关技术中存在的当VIM升级时,会造成业务中断运行的问题,进而达到了在保证业务不中断的情况下实现VIM升级的效果。 As described above, the physical machine upgrade method, the service migration method, and the device provided by the embodiments of the present invention have the following beneficial effects: the problem that the service interruption is caused when the VIM is upgraded in the related art is solved, and the problem is achieved. The effect of VIM upgrade is achieved without guaranteeing business interruption.

Claims (25)

  1. 一种物理机升级方法,包括:A physical machine upgrade method includes:
    接收虚拟化基础设施管理VIM发送的升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;Receiving an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
    根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;Performing a process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request;
    在处理完成后,向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;After the processing is completed, sending, to the VIM, a migration message for migrating the one or more first virtual machines to one or more third virtual machines;
    接收所述VIM返回的迁移结果;Receiving a migration result returned by the VIM;
    根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处理。And according to the migration result, notifying the VIM to perform an upgrade process of the first physical machine.
  2. 根据权利要求1所述的方法,其中,根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理包括:The method of claim 1, wherein the performing the process of migrating the services running on the one or more first virtual machines to the one or more second virtual machines according to the upgrade request comprises:
    向网络功能虚拟化VNF控制器发送用于请求查询所述一个或多个第一虚拟机的业务运行状态的请求消息;Sending, to the network function virtualization VNF controller, a request message for requesting querying a service running state of the one or more first virtual machines;
    接收所述VNF控制器返回的所述一个或多个第一虚拟机的业务运行状态;Receiving a service running status of the one or more first virtual machines returned by the VNF controller;
    根据所述一个或多个第一虚拟机的业务运行状态执行向所述VNF控制器发送用于将所述一个或多个第一虚拟机上运行的业务迁移到所述一个或多个第二虚拟机上的迁移消息的处理。Transmitting, to the VNF controller, for transferring the services running on the one or more first virtual machines to the one or more second, according to a service running state of the one or more first virtual machines Processing of migration messages on the virtual machine.
  3. 根据权利要求2所述的方法,其中,根据所述一个或多个第一虚拟机的业务运行状态执行向所述VNF控制器发送用于将所述一个或多个第一虚拟机上运行的业务迁移到所述一个或多个第二虚拟机上的迁移消息的处理包括:The method of claim 2, wherein transmitting to the VNF controller for running on the one or more first virtual machines is performed according to a service operational state of the one or more first virtual machines The process of migrating the migration message to the one or more second virtual machines includes:
    当所述一个或多个第一虚拟机的业务运行状态为主用状态和/或负荷分担状态时,向所述VNF控制器发送所述迁移消息;Sending the migration message to the VNF controller when the service running state of the one or more first virtual machines is a primary state and/or a load sharing state;
    当所述一个或多个第一虚拟机的业务运行状态为备用状态时,不向所述VNF控制器发送所述迁移消息。When the service running state of the one or more first virtual machines is the standby state, the migration message is not sent to the VNF controller.
  4. 根据权利要求1所述的方法,其中,根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处理包括:The method of claim 1, wherein the informing the VIM to perform the upgrade process of the first physical machine according to the migration result comprises:
    当所述迁移结果为迁移成功时,通知所述VIM对所述第一物理机进行升级;和/或,Notifying the VIM to upgrade the first physical machine when the migration result is that the migration is successful; and/or,
    当所述迁移结果为迁移失败时,通知所述VIM不对所述第一物理机进行升级。When the migration result is a migration failure, the VIM is notified not to upgrade the first physical machine.
  5. 根据权利要求1所述的方法,其中,在接收所述VIM返回的迁移结果之后,还包括:The method of claim 1, wherein after receiving the migration result returned by the VIM, the method further comprises:
    通知网络功能虚拟化VNF控制器进行数据同步操作;和/或, Notifying the network function to virtualize the VNF controller for data synchronization operations; and/or,
    通知网络功能虚拟化VNF控制器存储与所述一个或多个第三虚拟机的映射关系。Notifying the network function to virtualize the VNF controller to store a mapping relationship with the one or more third virtual machines.
  6. 根据权利要求1所述的方法,其中,在向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息之后,还包括:The method of claim 1, wherein after transmitting the migration message for migrating the one or more first virtual machines to the one or more third virtual machines to the VIM, the method further comprises:
    设置与所述一个或多个第三虚拟机的亲和关系。An affinity relationship with the one or more third virtual machines is set.
  7. 一种物理机升级方法,包括:A physical machine upgrade method includes:
    向网络功能虚拟化编排NFVO发送升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;Sending an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines;
    接收所述NFVO在根据所述升级请求执行了将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,所述迁移消息用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;Receiving a migration message sent by the NFVO after performing a process of migrating traffic running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request, wherein Migrating messages for migrating the one or more first virtual machines to one or more third virtual machines;
    根据所述迁移消息执行将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;Performing an operation of migrating the one or more first virtual machines to one or more third virtual machines according to the migration message;
    向所述NFVO发送迁移结果;Sending a migration result to the NFVO;
    根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理。And upgrading the first physical machine according to the received notification message returned by the NFVO according to the migration result.
  8. 根据权利要求7所述的方法,其中,所述迁移结果包括迁移失败结果和迁移成功结果,其中,The method of claim 7, wherein the migration result comprises a migration failure result and a migration success result, wherein
    当所述迁移结果为迁移失败结果时,根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理包括:接收所述NFVO根据所述迁移失败结果返回的升级检查失败消息;在接收到所述升级检查失败消息后,不对所述第一物理机进行升级;和/或,When the migration result is a migration failure result, performing the upgrade processing on the first physical machine according to the received notification message returned by the NFVO according to the migration result includes: receiving the NFVO, returning according to the migration failure result Upgrade check failure message; after receiving the upgrade check failure message, the first physical machine is not upgraded; and/or,
    当所述迁移结果为迁移成功结果时,根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理包括:接收所述NFVO根据所述迁移成功结果返回的升级检查成功消息;在接收到所述升级检查成功消息后,对所述第一物理机进行升级。When the migration result is a successful migration result, performing the upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result includes: receiving the NFVO to return according to the migration success result. The upgrade check success message; after receiving the upgrade check success message, the first physical machine is upgraded.
  9. 根据权利要求7所述的方法,其中,在根据所述迁移消息执行将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作之后,还包括:The method of claim 7, wherein after performing the operation of migrating the one or more first virtual machines to the one or more third virtual machines according to the migration message, the method further comprises:
    设置与所述一个或多个第三虚拟机的亲和关系。An affinity relationship with the one or more third virtual machines is set.
  10. 一种业务迁移方法,包括:A method of business migration, including:
    接收网络功能虚拟化编排NFVO发送的请求消息;Receiving a network function to virtualize a request message sent by NFVO;
    根据所述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,所述一个或 多个第一虚拟机驻留于待升级的第一物理机上;Querying, according to the request message, a service running state of one or more first virtual machines, where the one or The plurality of first virtual machines reside on the first physical machine to be upgraded;
    将查询到的所述一个或多个第一虚拟机的业务运行状态发送给所述NFVO;Transmitting the queried service status of the one or more first virtual machines to the NFVO;
    接收所述NFVO根据所述一个或多个第一虚拟机的业务运行状态发送的迁移消息;Receiving, by the NFVO, a migration message sent according to a service running state of the one or more first virtual machines;
    根据所述迁移消息将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。Migrating services running on the one or more first virtual machines to one or more second virtual machines according to the migration message.
  11. 根据权利要求10所述的方法,其中,在根据所述迁移消息将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上之后,还包括:The method of claim 10, further comprising: after migrating the services running on the one or more first virtual machines to the one or more second virtual machines according to the migration message, further comprising:
    接收所述NFVO在虚拟化基础设施管理VIM将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上之后发送的通知消息;Receiving a notification message sent by the NFVO after the virtualization infrastructure management VIM migrates the one or more first virtual machines to one or more third virtual machines;
    根据所述通知消息进行数据同步操作,和/或,根据所述通知消息存储与所述一个或多个第三虚拟机的映射关系。Performing a data synchronization operation according to the notification message, and/or storing a mapping relationship with the one or more third virtual machines according to the notification message.
  12. 一种物理机升级装置,包括:A physical machine upgrade device includes:
    第一接收模块,设置为接收虚拟化基础设施管理VIM发送的升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;a first receiving module, configured to receive an upgrade request sent by the virtualization infrastructure management VIM, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machine;
    第一执行模块,设置为根据所述升级请求执行将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理;a first execution module, configured to perform a process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request;
    第一发送模块,设置为在处理完成后,向所述VIM发送用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的迁移消息;a first sending module, configured to send, after the processing is completed, a migration message for migrating the one or more first virtual machines to one or more third virtual machines to the VIM;
    第二接收模块,设置为接收所述VIM返回的迁移结果;a second receiving module, configured to receive a migration result returned by the VIM;
    第一通知模块,设置为根据所述迁移结果,通知所述VIM执行所述第一物理机的升级处理。The first notification module is configured to notify the VIM to perform an upgrade process of the first physical machine according to the migration result.
  13. 根据权利要求12所述的装置,其中,所述第一执行模块包括:The apparatus of claim 12, wherein the first execution module comprises:
    第一发送单元,设置为向网络功能虚拟化VNF控制器发送用于请求查询所述一个或多个第一虚拟机的业务运行状态的请求消息;a first sending unit, configured to send, to the network function virtualization VNF controller, a request message for requesting querying a service running state of the one or more first virtual machines;
    接收单元,设置为接收所述VNF控制器返回的所述一个或多个第一虚拟机的业务运行状态;a receiving unit, configured to receive a service running state of the one or more first virtual machines returned by the VNF controller;
    执行单元,设置为根据所述一个或多个第一虚拟机的业务运行状态执行向所述VNF控制器发送用于将所述一个或多个第一虚拟机上运行的业务迁移到所述一个或多个第二虚拟机上的迁移消息的处理。An execution unit, configured to send, according to a service running state of the one or more first virtual machines, to the VNF controller, to migrate services running on the one or more first virtual machines to the one Or processing of migration messages on multiple second virtual machines.
  14. 根据权利要求13所述的装置,其中,所述执行单元包括: The apparatus of claim 13 wherein said execution unit comprises:
    当所述一个或多个第一虚拟机的业务运行状态为主用状态和/或负荷分担状态时,向所述VNF控制器发送所述迁移消息;Sending the migration message to the VNF controller when the service running state of the one or more first virtual machines is a primary state and/or a load sharing state;
    当所述一个或多个第一虚拟机的业务运行状态为备用状态时,不向所述VNF控制器发送所述迁移消息。When the service running state of the one or more first virtual machines is the standby state, the migration message is not sent to the VNF controller.
  15. 根据权利要求12所述的装置,其中,所述第一通知模块包括:The apparatus of claim 12, wherein the first notification module comprises:
    当所述迁移结果为迁移成功时,通知所述VIM对所述第一物理机进行升级;和/或,Notifying the VIM to upgrade the first physical machine when the migration result is that the migration is successful; and/or,
    当所述迁移结果为迁移失败时,通知所述VIM不对所述第一物理机进行升级。When the migration result is a migration failure, the VIM is notified not to upgrade the first physical machine.
  16. 根据权利要求12所述的装置,其中,还包括:The apparatus of claim 12, further comprising:
    第二通知模块,设置为通知网络功能虚拟化VNF控制器进行数据同步操作;和/或,通知网络功能虚拟化VNF控制器存储与所述一个或多个第三虚拟机的映射关系。a second notification module, configured to notify the network function to virtualize the VNF controller to perform a data synchronization operation; and/or to notify the network function to virtualize the VNF controller to store a mapping relationship with the one or more third virtual machines.
  17. 根据权利要求12所述的装置,其中,还包括:The apparatus of claim 12, further comprising:
    第一设置模块,设置为设置与所述一个或多个第三虚拟机的亲和关系。The first setting module is configured to set an affinity relationship with the one or more third virtual machines.
  18. 一种网络功能虚拟化编排NFVO,包括权利要求12至17中任一项所述的装置。A network function virtualization orchestration NFVO comprising the apparatus of any one of claims 12 to 17.
  19. 一种物理机升级装置,包括:A physical machine upgrade device includes:
    第二发送模块,设置为向网络功能虚拟化编排NFVO发送升级请求,其中,所述升级请求用于请求升级第一物理机,所述第一物理机上驻留有一个或多个第一虚拟机;a second sending module, configured to send an upgrade request to the network function virtualization orchestration NFVO, where the upgrade request is used to request to upgrade the first physical machine, where the first physical machine resides with one or more first virtual machines ;
    第三接收模块,设置为接收所述NFVO在根据所述升级请求执行了将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上的处理之后发送的迁移消息,其中,所述迁移消息用于将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上;a third receiving module, configured to receive, after the NFVO performs a process of migrating services running on the one or more first virtual machines to one or more second virtual machines according to the upgrade request, Migrating a message, wherein the migration message is used to migrate the one or more first virtual machines to one or more third virtual machines;
    第二执行模块,设置为根据所述迁移消息执行将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上的操作;a second execution module, configured to perform an operation of migrating the one or more first virtual machines to one or more third virtual machines according to the migration message;
    第三发送模块,设置为向所述NFVO发送迁移结果;a third sending module, configured to send a migration result to the NFVO;
    第一处理模块,设置为根据接收的由所述NFVO根据所述迁移结果返回的通知消息对所述第一物理机进行升级处理。The first processing module is configured to perform an upgrade process on the first physical machine according to the received notification message returned by the NFVO according to the migration result.
  20. 根据权利要求19所述的装置,其中,所述迁移结果包括迁移失败结果和迁移成功结果,其中,The apparatus according to claim 19, wherein the migration result includes a migration failure result and a migration success result, wherein
    当所述迁移结果为迁移失败结果时,所述第一处理模块包括:接收所述NFVO根据所述迁移失败结果返回的升级检查失败消息;在接收到所述升级检查失败消息后,不对所述第一物理机进行升级;和/或, When the migration result is a migration failure result, the first processing module includes: receiving an upgrade check failure message returned by the NFVO according to the migration failure result; after receiving the upgrade check failure message, the The first physical machine is upgraded; and/or,
    当所述迁移结果为迁移成功结果时,所述第一处理模块包括:接收所述NFVO根据所述迁移成功结果返回的升级检查成功消息;在接收到所述升级检查成功消息后,对所述第一物理机进行升级。When the migration result is a successful migration result, the first processing module includes: receiving an upgrade check success message returned by the NFVO according to the migration success result; after receiving the upgrade check success message, the The first physical machine is upgraded.
  21. 根据权利要求19所述的装置,其中,还包括:The apparatus of claim 19, further comprising:
    第二设置模块,设置为设置与所述一个或多个第三虚拟机的亲和关系。And a second setting module configured to set an affinity relationship with the one or more third virtual machines.
  22. 一种虚拟化基础设施管理VIM,包括权利要求19至21中任一项所述的装置。A virtualized infrastructure management VIM comprising the apparatus of any one of claims 19-21.
  23. 一种业务迁移装置,包括:A service migration device, comprising:
    第四接收模块,设置为接收网络功能虚拟化编排NFVO发送的请求消息;a fourth receiving module, configured to receive a request message sent by the network function virtualization orchestration NFVO;
    查询模块,设置为根据所述请求消息查询一个或多个第一虚拟机的业务运行状态,其中,所述一个或多个第一虚拟机驻留于待升级的第一物理机上;a querying module, configured to query, according to the request message, a service running state of one or more first virtual machines, where the one or more first virtual machines reside on a first physical machine to be upgraded;
    第四发送模块,设置为将查询到的所述一个或多个第一虚拟机的业务运行状态发送给所述NFVO;a fourth sending module, configured to send the queried service status of the one or more first virtual machines to the NFVO;
    第五接收模块,设置为接收所述NFVO根据所述一个或多个第一虚拟机的业务运行状态发送的迁移消息;a fifth receiving module, configured to receive a migration message that is sent by the NFVO according to a service running state of the one or more first virtual machines;
    迁移模块,设置为根据所述迁移消息将所述一个或多个第一虚拟机上运行的业务迁移到一个或多个第二虚拟机上。And a migration module configured to migrate the services running on the one or more first virtual machines to the one or more second virtual machines according to the migration message.
  24. 根据权利要求23所述的装置,其中,还包括:The apparatus of claim 23, further comprising:
    第六接收模块,设置为接收所述NFVO在虚拟化基础设施管理VIM将所述一个或多个第一虚拟机迁移到一个或多个第三虚拟机上之后发送的通知消息;a sixth receiving module, configured to receive a notification message sent by the NFVO after the virtualized infrastructure management VIM migrates the one or more first virtual machines to one or more third virtual machines;
    第二处理模块,设置为根据所述通知消息进行数据同步操作,和/或,根据所述通知消息存储与所述一个或多个第三虚拟机的映射关系。The second processing module is configured to perform a data synchronization operation according to the notification message, and/or to store a mapping relationship with the one or more third virtual machines according to the notification message.
  25. 一种网络功能虚拟化VNF控制器,包括权利要求23至24中任一项所述的装置。 A network function virtualization VNF controller comprising the apparatus of any one of claims 23-24.
PCT/CN2016/079733 2015-06-26 2016-04-20 Physical machine upgrading method, service migration method and apparatus WO2016206456A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510364326.7A CN106301876B (en) 2015-06-26 2015-06-26 Physical machine upgrade method, business migration method and device
CN201510364326.7 2015-06-26

Publications (1)

Publication Number Publication Date
WO2016206456A1 true WO2016206456A1 (en) 2016-12-29

Family

ID=57584653

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079733 WO2016206456A1 (en) 2015-06-26 2016-04-20 Physical machine upgrading method, service migration method and apparatus

Country Status (2)

Country Link
CN (1) CN106301876B (en)
WO (1) WO2016206456A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775993A (en) * 2017-02-15 2017-05-31 郑州云海信息技术有限公司 A kind of physical machine is migrated to the method and system of cloud computing platform

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933517A (en) * 2017-03-17 2017-07-07 深信服科技股份有限公司 A kind of data migration method and device
CN107168769B (en) * 2017-03-30 2020-12-18 联想(北京)有限公司 Information processing method and electronic equipment
CN108737144B (en) * 2017-04-24 2021-06-29 华为技术有限公司 Method and device for resource management
CN108108177B (en) * 2018-01-02 2020-10-27 联想(北京)有限公司 Firmware upgrading method of physical host, physical host and virtual machine
CN110048875B (en) * 2018-01-17 2021-01-01 华为技术有限公司 Method and equipment for upgrading drive
CN111213343B (en) * 2018-09-28 2021-08-20 华为技术有限公司 Host upgrading method and device
CN110968392B (en) 2018-09-30 2024-04-12 华为技术有限公司 Method and device for upgrading virtualized simulator
CN109885380B (en) * 2019-01-18 2022-09-06 山石网科通信技术股份有限公司 Session processing method and device, storage medium and electronic device
CN111510314B (en) * 2019-01-31 2021-07-06 大唐移动通信设备有限公司 Method and device for upgrading core network element
CN111897554A (en) * 2019-05-06 2020-11-06 中兴通讯股份有限公司 Upgrading method, device and system
CN111078248A (en) * 2019-10-30 2020-04-28 烽火通信科技股份有限公司 Method and device for upgrading cloud platform and storage medium
CN114650319B (en) * 2020-12-17 2023-11-03 中移(苏州)软件技术有限公司 Resource migration method, device, server and storage medium
CN112612495A (en) * 2020-12-25 2021-04-06 深圳市科力锐科技有限公司 Upgrade protection method, device, equipment and storage medium
CN115913940A (en) * 2021-09-29 2023-04-04 中兴通讯股份有限公司 Network upgrading method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398770A (en) * 2007-09-30 2009-04-01 赛门铁克公司 System for and method of migrating one or more virtual machines
CN102455942A (en) * 2010-12-02 2012-05-16 中标软件有限公司 Method and system for dynamic migration of WAN virtual machines
CN102591702A (en) * 2011-12-31 2012-07-18 华为技术有限公司 Virtualization processing method, related device and computer system
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
CN103825915A (en) * 2012-11-16 2014-05-28 中国电信股份有限公司 Method and system for service mobility management in virtual environment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814121A (en) * 2010-04-19 2010-08-25 山东高效能服务器和存储研究院 Zero downtime HA of predictive virtual machine
CN102917025B (en) * 2012-09-21 2015-06-10 苏州盈联智能科技股份有限公司 Method for business migration based on cloud computing platform
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform
CN103581177A (en) * 2013-10-24 2014-02-12 华为技术有限公司 Method and device for managing virtual machine
CN103973478A (en) * 2014-01-28 2014-08-06 国网信通亿力科技有限责任公司 Disaster preparation system and disaster preparation method for power grid information based on resource pool technology
US9558082B2 (en) * 2014-03-28 2017-01-31 Vmware, Inc. VM availability during migration and VM network failures in host computing systems
CN104484243B (en) * 2014-12-05 2019-08-06 广东中兴新支点技术有限公司 A kind of highly reliable system and device and method of virtual machine fault-toleranr technique and the combination of high-availability cluster technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398770A (en) * 2007-09-30 2009-04-01 赛门铁克公司 System for and method of migrating one or more virtual machines
CN102455942A (en) * 2010-12-02 2012-05-16 中标软件有限公司 Method and system for dynamic migration of WAN virtual machines
CN102591702A (en) * 2011-12-31 2012-07-18 华为技术有限公司 Virtualization processing method, related device and computer system
CN102821158A (en) * 2012-08-20 2012-12-12 广州杰赛科技股份有限公司 Method and cloud system for realizing virtual machine migration
CN103825915A (en) * 2012-11-16 2014-05-28 中国电信股份有限公司 Method and system for service mobility management in virtual environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775993A (en) * 2017-02-15 2017-05-31 郑州云海信息技术有限公司 A kind of physical machine is migrated to the method and system of cloud computing platform

Also Published As

Publication number Publication date
CN106301876B (en) 2019-11-29
CN106301876A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016206456A1 (en) Physical machine upgrading method, service migration method and apparatus
CN106657173B (en) Service migration method, device and server in software upgrading under NFV architecture
EP3337097B1 (en) Network element upgrading method and device
CN106664216B (en) VNF switching method and device
EP3216194B1 (en) Network function virtualization service chaining
KR101746202B1 (en) Method and apparatus for network function virtualization
WO2017181876A1 (en) Device state and resource information monitoring method, related device, and system
EP3200393B1 (en) Method and device for virtual network function management
CN111917571B (en) Policy management method, device and system
WO2015117401A1 (en) Information processing method and device
CN106302074B (en) Migration method and device of virtual network function VNF
EP3447965B1 (en) Network function instance management method and relevant device
CN103647849A (en) Method and device for migrating businesses and disaster recovery system
US20240031432A1 (en) High Availability and High Utilization Cloud Data Center Architecture for Supporting Telecommunications Services
CN102316043B (en) Port virtualization method, switch and communication system
CN109565447A (en) Network function processing method and relevant device
CN110958297B (en) Data migration method and system
CN105491061A (en) Access control system and method
CN112655185B (en) Apparatus, method and storage medium for service allocation in a software defined network
CN104320282A (en) Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes
CN109788007B (en) Cloud platform based on two places and three centers and communication method thereof
CN103200225A (en) Method and system of centralized management of services in server cluster
US20230336405A1 (en) Failover of cloud-native network functions within node groups for high availability in a wireless telecommunication network
Quang et al. Experimental Evaluation of the Effectiveness of Virtualized Mobile Core Networks in the Real Commercial Network Environment
JP6246677B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, AND PROCESSING DEVICE SWITCHING METHOD

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

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

Country of ref document: EP

Kind code of ref document: A1