CN114679461A - Cloud network session connectivity guarantee method and system for virtual machine live migration scene - Google Patents
Cloud network session connectivity guarantee method and system for virtual machine live migration scene Download PDFInfo
- Publication number
- CN114679461A CN114679461A CN202210328396.7A CN202210328396A CN114679461A CN 114679461 A CN114679461 A CN 114679461A CN 202210328396 A CN202210328396 A CN 202210328396A CN 114679461 A CN114679461 A CN 114679461A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- session
- network
- live migration
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
- H04L49/3009—Header conversion, routing tables or routing tags
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/148—Migration or transfer of sessions
Abstract
The invention discloses a method and a system for guaranteeing cloud network session connectivity for a virtual machine live migration scene, wherein the method comprises the following steps: the live migration module is used for controlling the live migration of the source virtual machine to the target virtual machine based on the virtual machine live migration request; and the routing module is used for realizing the forwarding and routing of the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine in the migration process. The method and the system realize session connectivity guarantee by using a virtual machine live migration technology carrying the session, and are beneficial to improving the service quality of the cloud network.
Description
Technical Field
The invention relates to the field of cloud network service quality guarantee, in particular to a method and a system for guaranteeing cloud network session connectivity oriented to a virtual machine live migration scene.
Background
Over a decade ago, global networks were stepping into the cloud network era. In recent years, cloud networks have been providing services for various industries such as text, video, games, conferencing, and public services. For cloud service, flexible, scalable, stable, high-reliability session connectivity is a problem that customers are concerned closely, and is also an important index for measuring the quality of cloud manufacturer products and services, and all of the quality depends on the hot migration capability of a bottom layer virtual machine. The hot migration capability is an important ring for the hot migration of the elastic computing service sold by each cloud service manufacturer.
The existing cloud network lacks reliable network heat transfer capability, so that uncertainty exists in the network when a user carries out heat transfer. The uncertainty is mainly reflected in that for a specific type of session, a network interruption problem occurs during hot migration, so that the service and the application of a user have no response for a long time, and a great influence is generated on the service of the user.
The session in the cloud network is session, which is used for reducing unnecessary communication between the client and the server, recording an information set of a series of states of communication between the client and the server, mainly including connection quintuple information and the like, and is essentially a caching technology.
Session connectivity refers to the validity of session information and the timeliness of updates. The barrier-free communication of the related connections can be guaranteed through the session, and the situations of overhigh delay, large-area packet loss, even disconnection and the like do not occur.
In addition to the underlying session types, special sessions that may be interrupted during the live migration include:
(1) NAT information is recorded in a high-protection session in a first packet of the TCP;
(2) a session relying on a SYN-ACK message;
(3) session relying on IP for hash addressing;
(4) a session established depending on a message sent by a load balancer;
(5) a session strongly associated with the status of the first packet in the connection, and so on.
This particular type of session, however, is ubiquitous in resilient computing services offered by cloud services providers. Therefore, the elastic computing service or the corresponding virtual machine related to the special sessions can only be cold migrated and does not have the capacity of hot migration.
However, with the increase of users on the cloud, the contradiction between the requirement for the live migration capability of the on-line elastic computing service or the corresponding virtual machine and the unreliable network live migration capability becomes more and more prominent.
Disclosure of Invention
In view of the above, the present invention aims to provide a method and a system for guaranteeing session connectivity of a cloud network facing a live migration scenario of a virtual machine, which utilize a live migration technology of a virtual machine carrying a session to guarantee session connectivity and are beneficial to improving cloud network service quality.
In order to achieve the above object, an embodiment provides a cloud network session connectivity assurance system for a virtual machine live migration scenario, including:
the live migration module is used for controlling the live migration of the source virtual machine to the target virtual machine based on the virtual machine live migration request;
and the routing module is used for realizing the forwarding and routing of the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine in the migration process.
In one embodiment, the thermomigration module comprises:
the virtual machine selection unit is used for selecting a target virtual machine subjected to virtual live migration from a plurality of network computers;
the session storage unit is used for storing all sessions on the source virtual machine;
and the virtual machine migration unit is used for controlling all the sessions on the source virtual machine to be stored in the session storage unit, implementing virtual machine live migration, and taking out all the sessions on the source virtual machine from the session storage unit and copying all the sessions to the target virtual machine.
In one embodiment, the thermomigration module further comprises:
and the version conversion unit is used for verifying and converting the session versions before the virtual machine migration unit copies all the sessions so as to ensure that the copied session versions are consistent with the session versions of the target virtual machine.
In one embodiment, the routing module comprises:
the table item updating unit is used for updating the table items of the virtual machine-network computer on the load balancer or the gateway of the client;
and the data routing unit is used for transmitting the network data before the updating of the virtual machine-network computer table item is completed to the virtual switch corresponding to the target virtual machine from the virtual switch corresponding to the source virtual machine.
In one embodiment, in the entry updating unit, the updating process of the virtual machine-network computer entry includes:
a virtual switch corresponding to a target virtual machine sends a notify message to a load balancer or a gateway to inform that a relevant session of a source virtual machine has been migrated to the target virtual machine;
after receiving the notify message, the load balancer or the gateway locally queries related session information, closes the learning source function of the related session, updates the virtual machine-network computer table entry according to the information in the notify message, and sends an ACK packet to notify a virtual switch corresponding to the target virtual machine that the learning source function is closed;
and after the virtual switch corresponding to the target virtual machine receives the ACK packet, marking the local related session as an acknowledgement state, and marking that the table entry is updated completely.
In an embodiment, the data routing unit controls the virtual switch corresponding to the source virtual machine to transmit the network data received before the table entry is updated to the virtual switch corresponding to the target virtual machine, using a Relay technology.
In one embodiment, the data routing unit includes:
the issuing Relay route configuration unit is used for issuing the Relay route configuration to the virtual switch corresponding to the source virtual machine when the elastic computing service management and control module starts the hot migration;
starting a Relay routing unit, wherein the Relay routing unit is used for starting Relay routing by using vport for a source virtual machine to receive and transmit network data packets after the start of the hot migration;
and the Relay route deleting unit is used for deleting the old vport by using the new vport and the elastic computing service management and control module after the hot migration is finished, and deleting the old vport after the Relay route is overtime.
In order to achieve the above object, an embodiment of the present invention further provides a method for guaranteeing connectivity of a cloud network session for a live migration scenario of a virtual machine, where the method employs the system for guaranteeing connectivity of a cloud network session, and the method includes the following steps:
and 2, forwarding and routing the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine through the routing module in the migration process.
step 1-1, selecting a target virtual machine subjected to virtual live migration from a plurality of network computers through a virtual machine selection unit;
step 1-2, before all session copies are carried out, the version conversion unit carries out checksum conversion on the session versions so as to ensure that the copied session versions are consistent with the session versions of the target virtual machine;
and step 1-3, storing all the sessions on the source virtual machine into a session storage unit through the control of the virtual machine migration unit, implementing virtual machine live migration, and taking out all the sessions on the source virtual machine from the session storage unit and copying the sessions to a target virtual machine.
Step 2 in one embodiment comprises:
step 2-1, a virtual switch corresponding to a target virtual machine sends a notify message to a load balancer or a gateway to inform that a relevant session of a source virtual machine has been migrated to the target virtual machine;
step 2-2, after receiving the notify message, the load balancer or the gateway locally queries related session information, closes the learning source function of the related session, updates the virtual machine-network computer table entry according to the information in the notify message, and sends an ACK packet to notify a virtual switch corresponding to the target virtual machine that the learning source function is closed;
step 2-3, after the virtual switch corresponding to the target virtual machine receives the ACK packet, marking the local related session as a confirmation state and marking that the table entry is completely updated;
and 2-4, transmitting the network data before the updating of the virtual machine-network computer table item is completed to the virtual switch corresponding to the target virtual machine from the virtual switch corresponding to the source virtual machine through a Relay technology.
Compared with the prior art, the invention has the beneficial effects that:
(1) the method has the advantages that the virtual machine live migration carrying all types of sessions can be completed in the cloud network, and the cost for reestablishing the sessions is reduced;
(2) the problems of increase of related connection delay and disconnection caused by incapability of carrying sessions to perform virtual machine live migration are solved, and the service quality is improved;
(3) the method and the device can enable the user to carry out the live migration of the virtual machine carrying the session in an imperceptible manner, and improve the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a structure and a work flow diagram of a cloud network session connectivity assurance system for a virtual machine live migration scenario according to an embodiment;
fig. 2 is a flowchart of a method for guaranteeing connectivity of a cloud network session in a virtual machine live migration scenario according to an embodiment;
FIG. 3 is a schematic workflow diagram of a thermal migration module according to an embodiment;
FIG. 4 is a flowchart illustrating a process of updating a virtual machine-network computer entry by a routing module according to an embodiment;
fig. 5 is a schematic flowchart illustrating a work flow of a routing module forwarding a packet by using Relay technology according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a structure and a work flow diagram of a cloud network session connectivity assurance system for a virtual machine live migration scenario provided in an embodiment of the present invention, and as shown in fig. 1, the cloud network session connectivity assurance system for a virtual machine live migration scenario provided in an embodiment includes a live migration module and a routing module, so as to implement migration of a session carried by a virtual machine 1 (a source virtual machine) of a tenant from a network computer 1 to a virtual machine 1' (a target virtual machine) on a network computer 2, where the source virtual machine and the target virtual machine are used as a main body of a sold elastic network service.
The live migration module is used for controlling the live migration of the source virtual machine to the target virtual machine based on the virtual machine live migration request. In an embodiment, an elastic compute service polices the initiating virtual machine live migration request to indicate the virtual machine live migration is starting. And after receiving the virtual machine live migration request, the live migration module performs live migration processing, including selection of a live migration target virtual machine, storage, backup, copy and version conversion of a session in the live migration process.
Among them, the elastic computing service is a cloud network service sold by network providers, which is essentially a virtual machine. The elastic computing service management and control can initiate a live migration request according to actual conditions due to reasons such as load balancing of a provider network computer cluster or fault recovery.
Specifically, the live migration module comprises a virtual machine selection unit, a session storage unit, a virtual machine migration unit and a version conversion unit.
The virtual machine selection unit is used for selecting a target virtual machine subjected to virtual live migration from a plurality of network computers. In general, a source virtual machine and a target virtual machine are generally built on two different network computers, and the target virtual machine is selected through a certain algorithm, and then a live migration process is started. Specifically, the selection process of the target virtual machine includes:
1. preliminarily screening all target network computers which meet the standard according to the characteristics (including hardware models, hardware configurations, software versions, belonged virtual private cloud networks and the like) of the source virtual machine and the network computer where the source virtual machine is located;
2. further screening target network computers capable of being migrated according to indexes such as states of the network computers, task allocation conditions and the like;
3. grading all the target network computers screened in the step 2 from the aspects of resource utilization rate, migration difficulty, future deployment space and the like through a grading system;
4. selecting N network computers with the highest scores from the network computers scored in the step 3 through a TopN algorithm;
5. randomly selecting one network computer from the N network computers selected in the step 4 as a target network computer, establishing a virtual machine meeting the standard on the target network computer,
namely the target virtual machine.
The conversation storage unit is used for storing all conversations on the source virtual machine. In order to avoid the risk of data loss and facilitate data management, the embodiment provides the session storage unit as an intermediary and also plays a role of data backup.
The virtual machine migration unit is used for controlling all the sessions on the source virtual machine to be stored in the session storage unit, implementing virtual machine live migration, and taking out all the sessions on the source virtual machine from the session storage unit and copying the sessions to the target virtual machine.
The version conversion unit is used for verifying and converting the session version before the virtual machine migration unit copies all the sessions so as to ensure that the copied session version is consistent with the session version of the target virtual machine. Generally, after the migration of the virtual machine is completed, the session needs to be copied to the target virtual machine; during the session copy process, it should be noted that the session version should be consistent with the target virtual machine, so the version conversion is performed by the version conversion unit before the copy.
In an embodiment, the routing module is configured to implement forwarding and routing of a network packet from a virtual switch corresponding to the source virtual machine to a virtual switch corresponding to the target virtual machine in the migration process. Specifically, a Relay technology is used for transferring network data between network computers where a source virtual machine and a target virtual machine are located in the process of virtual machine live migration; and updating the corresponding relation table item of the virtual machine and the network computer through the information communication between the virtual switch and the load balancer or the gateway, and establishing a correct routing path between the client and the virtual machine corresponding to the elastic network computing service. The load balancer or the gateway is used as a bridge for communicating with the client data packet, and is matched with the virtual switch unit to realize the Relay technology, so that the normal forwarding of the data packet in the heat migration process is completed.
In an embodiment, the routing module includes an entry update unit and a data routing unit. The table entry updating unit is used for updating the virtual machine-network computer table entries on the load balancer or the gateway of the client. In order to correctly route network data after the virtual machine is completely migrated, the table entry of the virtual machine-network computer comparison table must be updated. The updating step is mainly completed by communication between a virtual switch of a network computer where the target virtual machine is located (namely, the virtual switch corresponding to the target virtual machine) and the load balancer or the gateway, the virtual switch corresponding to the target virtual machine notifies the load balancer or the gateway, and the virtual machine carries a session to perform live migration.
In an embodiment, the updating process of the virtual machine-network computer table entry implemented in the table entry updating unit includes: a virtual switch corresponding to a target virtual machine sends a notify message to a load balancer or a gateway to inform that a relevant session of a source virtual machine has been migrated to the target virtual machine; the notify message is a self-defined message realized on the basis of Vxlan technology, and the analysis of the self-defined message is increased by modifying the form of a protocol stack. The Notify message records specific session information.
After receiving the notify message, the load balancer or the gateway locally queries related session information, closes the learning source function of the related session, updates the virtual machine-network computer table entry according to the information in the notify message, and sends an ACK packet to notify a virtual switch corresponding to the target virtual machine that the learning source function is closed; the learning source function refers to a routing self-learning function, and the destination IP of the network data packet can be automatically determined through an algorithm. The algorithm is a technology for a virtual switch on a network computer to autonomously learn a forwarding path to a load balancer or a gateway based on a Vxlan self-defined message, the technology comprises a function of determining a target IP, and the method specifically comprises the following steps:
1. after a virtual switch on a certain network computer receives a message and inquires, the virtual switch finds that a forwarding path of the message is not recorded;
2. the virtual switch sends a network data packet to a load balancer or a gateway to request a forwarding path of a related message;
3. after receiving the network data packet, the load balancer or the gateway queries a forwarding path, encapsulates queried conversion path information and sends the encapsulated conversion path information to the virtual switch;
4. the virtual switch learns a correct forwarding path through the network data packet to forward the network data packet.
And after the virtual switch corresponding to the target virtual machine receives the ACK packet, marking the local related session as an acknowledgement state, and marking that the table entry is updated completely.
In an embodiment, the data routing unit is configured to transfer, from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine, the network data before the update of the virtual machine-network computer entry is completed. Specifically, Relay technology may be used for transferring network data. The Relay technology is a technology used in the table entry updating process, and temporarily routes a data packet received in the table entry updating process in a manner that a virtual switch of a network computer where a source virtual machine is located is temporarily used as a routing node. The Relay technology can prevent packet loss, reduce delay and improve service quality.
In the embodiment, the data routing unit comprises a Relay routing configuration issuing unit, a Relay routing unit starting unit and a Relay routing unit deleting unit; the issuing Relay route configuration unit is used for issuing the Relay route configuration to a virtual switch of a network computer where the source virtual machine is located (namely, a virtual switch corresponding to the source virtual machine) while the elastic computing service management and control module starts the live migration; the method comprises the steps that a Relay routing unit is started to start a Relay route by using a vport for a source virtual machine transceiving network data packet after the start of hot migration; and the Relay route deleting unit is used for deleting the old vport by using the new vport and the elastic computing service management and control module after the hot migration is finished, and deleting the old vport after the Relay route is overtime. The vport is a virtual port of a service virtual machine in the cloud network, and has a main function of simulating a network card port to receive and send data packets.
Based on the cloud network session connectivity guarantee system facing to the virtual machine live migration scenario, the embodiment further provides a cloud network session connectivity guarantee method facing to the virtual machine live migration scenario, as shown in fig. 2, including the following steps:
and 2, forwarding and routing the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine through the routing module in the migration process.
As shown in fig. 3, in step 1, controlling, by a live migration module, live migration of a source virtual machine to a target virtual machine based on a virtual machine live migration request includes:
step 1-1, receiving a virtual machine live migration request;
step 1-2, selecting a target virtual machine subjected to virtual live migration from a plurality of network computers through a virtual machine selection unit;
step 1-3, before all session copies are carried out, the version conversion unit carries out checksum conversion on the session versions so as to ensure that the copied session versions are consistent with the session versions of the target virtual machine;
step 1-4, storing all sessions on a source virtual machine into a session storage unit through the control of a virtual machine migration unit;
and 1-5, taking out all the sessions on the source virtual machine from the session storage unit and copying the sessions to the target virtual machine.
In step 2, the forwarding and routing of the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine are realized in the migration process through the routing module, which includes:
step 2-1, updating the virtual machine-network computer table entry on the load balancer or the gateway, specifically, as shown in fig. 4, specifically including:
step 2-1-1, a virtual switch corresponding to a target virtual machine sends a notify message to a load balancer or a gateway to inform that a relevant session of a source virtual machine has been migrated to the target virtual machine;
step 2-1-2, after receiving the notify message, the load balancer or the gateway locally queries the related session information, then closes the learning source function of the related session, updates the virtual machine-network computer table entry according to the information in the notify message, and sends an ACK packet to notify the virtual switch corresponding to the target virtual machine that the learning source function is closed;
step 2-1-3, after the virtual switch corresponding to the target virtual machine receives the ACK packet, marking the local related session as a confirmation state, and marking that the table item is updated;
and 2-1-4, if the load balancer or the gateway does not send the ACK packet or the virtual switch does not receive the ACK message, the virtual switch repeats the steps 2-1-1 to 2-1-3 until the session is aged or the virtual switch correctly receives the ACK message.
And 2-2, transmitting the network data before the updating of the virtual machine-network computer table item is completed to the virtual switch corresponding to the target virtual machine from the virtual switch corresponding to the source virtual machine through a Relay technology. As shown in fig. 5, the method specifically includes:
step 2-2-1, issuing Relay route configuration to a virtual switch corresponding to a source virtual machine while starting hot migration by an elastic computing service management and control module through an issuing Relay route configuration unit;
step 2-2-2, after the hot migration starts by starting a Relay routing unit, a source virtual machine transceiver network data packet starts a Relay routing by using a vport;
and 2-2-3, after the hot migration is finished by deleting the Relay routing unit, deleting the old vport by using the new vport by the elastic computing service management and control module, and deleting the old vport after the Relay routing is overtime.
The method and the system for guaranteeing the session connectivity of the cloud network provided by the embodiment utilize the live migration technology of the virtual machine carrying the session, so that the session connectivity guarantee is realized, and the service quality of the cloud network is favorably improved.
The above-mentioned embodiments are intended to illustrate the technical solutions and advantages of the present invention, and it should be understood that the above-mentioned embodiments are only the most preferred embodiments of the present invention, and are not intended to limit the present invention, and any modifications, additions, equivalents, etc. made within the scope of the principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A cloud network session connectivity guarantee system facing to a virtual machine live migration scene is characterized by comprising;
the live migration module is used for controlling the live migration of the source virtual machine to the target virtual machine based on the virtual machine live migration request;
and the routing module is used for realizing the forwarding and routing of the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine in the migration process.
2. The cloud network session connectivity assurance system oriented to the virtual machine live migration scenario of claim 1, wherein the live migration module comprises:
the virtual machine selection unit is used for selecting a target virtual machine subjected to virtual live migration from a plurality of network computers;
the session storage unit is used for storing all sessions on the source virtual machine;
and the virtual machine migration unit is used for controlling all the sessions on the source virtual machine to be stored in the session storage unit, implementing virtual machine live migration, and taking out all the sessions on the source virtual machine from the session storage unit and copying all the sessions to the target virtual machine.
3. The system according to claim 1, wherein in the virtual machine selection unit, the selection process of the target virtual machine includes:
(a) preliminarily screening all target network computers which meet the standard according to the characteristics of a source virtual machine and a network computer where the source virtual machine is located, wherein the characteristics comprise a hardware model, hardware configuration, a software version and a virtual private cloud network to which the source virtual machine belongs;
(b) further screening the preliminary screening result of the step (a) for target network computers capable of being migrated according to the state of the network computers and the task allocation condition;
(c) scoring the target network computers screened in the step (b) from the perspective of resource utilization rate, migration difficulty and future deployment space;
(d) selecting the N network computers with the highest scores from the network computers scored in the step (c) through a TopN algorithm;
(e) randomly selecting one network computer from the N network computers selected in the step (d) as a target network computer, and establishing a virtual machine meeting the standard on the target network computer, namely the target virtual machine.
4. The cloud network session connectivity assurance system for virtual machine live migration scenarios according to claim 1, wherein the live migration module further comprises:
and the version conversion unit is used for verifying and converting the session versions before the virtual machine migration unit copies all the session versions so as to ensure that the copied session versions are consistent with the session versions of the target virtual machine.
5. The cloud network session connectivity assurance system oriented to the virtual machine live migration scenario of claim 1, wherein the routing module comprises:
the table item updating unit is used for updating the table items of the virtual machine-network computer on the load balancer or the gateway of the client;
the data routing unit is used for transmitting the network data before the updating of the virtual machine-network computer table item is completed to the virtual switch corresponding to the target virtual machine from the virtual switch corresponding to the source virtual machine;
preferably, the data routing unit controls the virtual switch corresponding to the source virtual machine to transmit the network data received before the table entry is updated to the virtual switch corresponding to the target virtual machine by using a Relay technology.
6. The cloud network session connectivity assurance system oriented to the virtual machine live migration scenario of claim 5, wherein in the entry updating unit, the updating process of the virtual machine-network computer entry includes:
a virtual switch corresponding to a target virtual machine sends a notify message to a load balancer or a gateway to inform that a relevant session of a source virtual machine has been migrated to the target virtual machine;
after receiving the notify message, the load balancer or the gateway locally queries the related session information, then closes the learning source function of the related session, updates the virtual machine-network computer table entry according to the information in the notify message, and sends an ACK packet to notify a virtual switch corresponding to the target virtual machine that the learning source function is closed;
after the virtual switch corresponding to the target virtual machine receives the ACK packet, the local related session is marked as a confirmation state, and the completion of the table item updating is marked;
preferably, the learning source function refers to a routing self-learning function, and automatically determines the destination IP of the network data packet through an algorithm, including:
(a) after a virtual switch on a certain network computer receives a message and inquires, the virtual switch finds that a forwarding path of the message is not recorded;
(b) the virtual switch sends a network data packet to a load balancer or a gateway to request a forwarding path of a related message;
(c) after receiving the network data packet, the load balancer or the gateway queries a forwarding path, encapsulates queried conversion path information and sends the encapsulated conversion path information to the virtual switch;
(d) the virtual switch learns a correct forwarding path through the network data packet to forward the network data packet.
7. The cloud network session connectivity assurance system oriented to the virtual machine live migration scenario of claim 1, wherein the data routing unit comprises:
the issuing Relay route configuration unit is used for issuing the Relay route configuration to the virtual switch corresponding to the source virtual machine when the elastic computing service management and control module starts the hot migration;
starting a Relay routing unit, wherein the Relay routing unit is used for starting Relay routing by using vport for a source virtual machine to receive and transmit network data packets after the start of the hot migration;
and the Relay route deleting unit is used for deleting the old vport by using the new vport and the elastic computing service management and control module after the hot migration is finished, and deleting the old vport after the Relay route is overtime.
8. A cloud network session connectivity assurance method for a virtual machine live migration scene, wherein the method adopts the cloud network session connectivity assurance system of any one of claims 1 to 7, and the method comprises the following steps:
step 1, controlling the live migration of a source virtual machine to a target virtual machine based on a virtual machine live migration request through a live migration module;
and 2, forwarding and routing the network data packet from the virtual switch corresponding to the source virtual machine to the virtual switch corresponding to the target virtual machine through the routing module in the migration process.
9. The method for guaranteeing cloud network session connectivity for the virtual machine live migration scenario according to claim 8, wherein step 1 includes:
step 1-1, selecting a target virtual machine subjected to virtual live migration from a plurality of network computers through a virtual machine selection unit;
step 1-2, before all session copies are carried out, the version conversion unit carries out checksum conversion on the session versions so as to ensure that the copied session versions are consistent with the session versions of the target virtual machine;
and step 1-3, storing all the sessions on the source virtual machine into a session storage unit through the control of the virtual machine migration unit, implementing virtual machine live migration, and taking out all the sessions on the source virtual machine from the session storage unit and copying the sessions to a target virtual machine.
10. The method for guaranteeing cloud network session connectivity for the virtual machine live migration scenario according to claim 8, wherein step 2 includes:
step 2-1, a virtual switch corresponding to a target virtual machine sends a notify message to a load balancer or a gateway to inform that a relevant session of a source virtual machine has been migrated to the target virtual machine;
step 2-2, after receiving the notify message, the load balancer or the gateway locally queries related session information, closes the learning source function of the related session, updates the virtual machine-network computer table entry according to the information in the notify message, and sends an ACK packet to notify a virtual switch corresponding to the target virtual machine that the learning source function is closed;
step 2-3, after the virtual switch corresponding to the target virtual machine receives the ACK packet, marking the local related session as a confirmation state, and marking that the table item is updated;
and 2-4, transmitting the network data before the updating of the virtual machine-network computer table item is completed to the virtual switch corresponding to the target virtual machine from the virtual switch corresponding to the source virtual machine through a Relay technology.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210328396.7A CN114679461B (en) | 2022-03-30 | 2022-03-30 | Cloud network session connectivity guarantee method and system for virtual machine live migration scene |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210328396.7A CN114679461B (en) | 2022-03-30 | 2022-03-30 | Cloud network session connectivity guarantee method and system for virtual machine live migration scene |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114679461A true CN114679461A (en) | 2022-06-28 |
CN114679461B CN114679461B (en) | 2023-02-14 |
Family
ID=82075456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210328396.7A Active CN114679461B (en) | 2022-03-30 | 2022-03-30 | Cloud network session connectivity guarantee method and system for virtual machine live migration scene |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114679461B (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102884763A (en) * | 2012-06-30 | 2013-01-16 | 华为技术有限公司 | Cross-data-center virtual machine migration method, service control gateway and cross-data-center virtual machine migration |
WO2013163865A1 (en) * | 2012-05-04 | 2013-11-07 | 华为技术有限公司 | Virtual machine hot migration and deployment method, server and cluster system |
CN103812823A (en) * | 2012-11-07 | 2014-05-21 | 华为技术有限公司 | Method, device and system for configuration information migration in thermal migration of virtual machine |
CN104468397A (en) * | 2014-11-06 | 2015-03-25 | 杭州华三通信技术有限公司 | Method and device for preventing package loss in thermal transferring and forwarding process of virtual machine |
CN105208048A (en) * | 2014-05-30 | 2015-12-30 | 株式会社日立制作所 | Global migration manager, gateway, virtual machine migration system and method thereof |
WO2016015443A1 (en) * | 2014-07-31 | 2016-02-04 | 华为技术有限公司 | Method, physical host and system for live migration of virtual machine |
CN106250228A (en) * | 2016-08-11 | 2016-12-21 | 北京网迅科技有限公司杭州分公司 | The method and device that virtual machine entity thermophoresis networking takes over seamlessly |
CN107544841A (en) * | 2016-06-29 | 2018-01-05 | 中兴通讯股份有限公司 | Live migration of virtual machine method and system |
US20180060117A1 (en) * | 2016-08-29 | 2018-03-01 | Vmware, Inc. | Live migration of virtual computing instances between data centers |
US20180314542A1 (en) * | 2017-04-26 | 2018-11-01 | Vmware, Inc. | Virtual machine migrations across clouds assisted with content based read caching |
CN112306650A (en) * | 2019-07-31 | 2021-02-02 | 华为技术有限公司 | Virtual machine live migration method and communication equipment |
CN113973114A (en) * | 2020-07-21 | 2022-01-25 | 阿里巴巴集团控股有限公司 | Cloud server live migration method, virtual switch and software defined network architecture |
CN114003334A (en) * | 2020-07-28 | 2022-02-01 | 中移(苏州)软件技术有限公司 | Virtual machine live migration network interruption optimization method, device, equipment, storage medium and system |
CN114143252A (en) * | 2021-11-29 | 2022-03-04 | 中国电信集团系统集成有限责任公司 | Method for realizing uninterrupted multicast flow during virtual machine migration |
-
2022
- 2022-03-30 CN CN202210328396.7A patent/CN114679461B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013163865A1 (en) * | 2012-05-04 | 2013-11-07 | 华为技术有限公司 | Virtual machine hot migration and deployment method, server and cluster system |
CN102884763A (en) * | 2012-06-30 | 2013-01-16 | 华为技术有限公司 | Cross-data-center virtual machine migration method, service control gateway and cross-data-center virtual machine migration |
CN103812823A (en) * | 2012-11-07 | 2014-05-21 | 华为技术有限公司 | Method, device and system for configuration information migration in thermal migration of virtual machine |
CN105208048A (en) * | 2014-05-30 | 2015-12-30 | 株式会社日立制作所 | Global migration manager, gateway, virtual machine migration system and method thereof |
WO2016015443A1 (en) * | 2014-07-31 | 2016-02-04 | 华为技术有限公司 | Method, physical host and system for live migration of virtual machine |
CN104468397A (en) * | 2014-11-06 | 2015-03-25 | 杭州华三通信技术有限公司 | Method and device for preventing package loss in thermal transferring and forwarding process of virtual machine |
CN107544841A (en) * | 2016-06-29 | 2018-01-05 | 中兴通讯股份有限公司 | Live migration of virtual machine method and system |
CN106250228A (en) * | 2016-08-11 | 2016-12-21 | 北京网迅科技有限公司杭州分公司 | The method and device that virtual machine entity thermophoresis networking takes over seamlessly |
US20180060117A1 (en) * | 2016-08-29 | 2018-03-01 | Vmware, Inc. | Live migration of virtual computing instances between data centers |
US20180314542A1 (en) * | 2017-04-26 | 2018-11-01 | Vmware, Inc. | Virtual machine migrations across clouds assisted with content based read caching |
CN112306650A (en) * | 2019-07-31 | 2021-02-02 | 华为技术有限公司 | Virtual machine live migration method and communication equipment |
CN113973114A (en) * | 2020-07-21 | 2022-01-25 | 阿里巴巴集团控股有限公司 | Cloud server live migration method, virtual switch and software defined network architecture |
CN114003334A (en) * | 2020-07-28 | 2022-02-01 | 中移(苏州)软件技术有限公司 | Virtual machine live migration network interruption optimization method, device, equipment, storage medium and system |
CN114143252A (en) * | 2021-11-29 | 2022-03-04 | 中国电信集团系统集成有限责任公司 | Method for realizing uninterrupted multicast flow during virtual machine migration |
Non-Patent Citations (3)
Title |
---|
SEUNGGYUN LEE;HOCHEOL NAM;JAEWON PARK;SEEHWAN YOO: "Student Session: Comparative Analysis of Live VM Migration with SGX Enclave", 《2020 IEEE 26TH INTERNATIONAL CONFERENCE ON EMBEDDED AND REAL-TIME COMPUTING SYSTEMS AND APPLICATIONS (RTCSA)》 * |
徐城璋: "DPDK在虚拟机热迁移中的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
高相林: "容器化虚拟机热迁移技术的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN114679461B (en) | 2023-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lindgren et al. | Probabilistic routing protocol for intermittently connected networks | |
US6178453B1 (en) | Virtual circuit switching architecture | |
US9838297B2 (en) | System and method for message routing in a network | |
KR101032512B1 (en) | Reliable delivery of multi-cast conferencing data | |
US7627627B2 (en) | Controlling command message flow in a network | |
US8913485B2 (en) | Open shortest path first (OSPF) nonstop routing (NSR) with link derivation | |
CN101127702A (en) | Multi-to-multi reliable multicast error recovery method for plane structure network | |
US20060262734A1 (en) | Transport protocol connection synchronization | |
US7801029B2 (en) | System for selecting routes for retransmission in a network | |
JPH0738653B2 (en) | Transport level setting method and system for compensating transport protocol incompatibility in data communication network | |
JPH0936910A (en) | Management of routing in packet communication network | |
CN104539531A (en) | Data transmission method and device | |
JP2004032224A (en) | Server takeover system and method thereof | |
US7539191B1 (en) | System and method for securing route processors against attack | |
WO2022105730A1 (en) | Method and apparatus for ensuring same source and same destination of sctp multi-homing packet | |
CN105897486A (en) | Hot backup method of SCTP | |
Park et al. | Smart base station-assisted partial-flow device-to-device offloading system for video streaming services | |
CN116016164A (en) | Virtual service network construction method based on software defined network | |
CN114143252B (en) | Method for realizing uninterrupted multicast flow during virtual machine migration | |
JP2008219461A (en) | Communicating history information managing system, sip client terminal, history server, and communicating history information managing method | |
CN104660550B (en) | A method of conversate migration between multiserver | |
CN114679461B (en) | Cloud network session connectivity guarantee method and system for virtual machine live migration scene | |
US7466699B2 (en) | System for communicating between network end-points using a payload offset and buffer pool handle | |
CN108512833A (en) | A kind of security from attacks method and device | |
KR100597405B1 (en) | System and method for relaying data by use of socket applicaton program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |