CN104796338A - Migration method and device of virtual machines - Google Patents

Migration method and device of virtual machines Download PDF

Info

Publication number
CN104796338A
CN104796338A CN201510201122.1A CN201510201122A CN104796338A CN 104796338 A CN104796338 A CN 104796338A CN 201510201122 A CN201510201122 A CN 201510201122A CN 104796338 A CN104796338 A CN 104796338A
Authority
CN
China
Prior art keywords
virtual machine
data center
address
route
forwarding route
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
Application number
CN201510201122.1A
Other languages
Chinese (zh)
Other versions
CN104796338B (en
Inventor
廖俊云
彭章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201510201122.1A priority Critical patent/CN104796338B/en
Publication of CN104796338A publication Critical patent/CN104796338A/en
Application granted granted Critical
Publication of CN104796338B publication Critical patent/CN104796338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a migration method and device of virtual machines. The method applied to a router of a first data center of an LISP (location-ID separation protocol) network includes the steps of when a virtual machine needs to be migrated from the first data center to a second data center of the LISP network, receiving a forwarding route configured for the virtual machine; according to a router interface address of the first data center and a host address of the virtual machine, setting mask length of the forwarding route, and issuing the set forwarding route to a local route table; when data messages for the virtual machine from a remote server are received and the virtual machine is already migrated from the first data center to the second data center, forwarding the data messages to the virtual machine migrated to the second data center, according to the forwarding route in the local route table. By the use of the migration method and device, traffic between the server and the migrated virtual machine is never temporarily interrupted, and user experience is improved.

Description

Virtual machine migration method and device
Technical field
The present invention relates to network communication technology field, particularly relate to virtual machine migration method and device.
Background technology
Along with the development of the network communications technology, virtual machine migration technology is also widely used.
In prior art, as virtual machine (Virtual Machine, VM) from station location marker separated protocol (Locator Identifier Separation Protocol, LISP) after the first data center in network moves to the second data center, and far-end server learn virtual machine move into the second data center routing address before, when far-end server sends datagram to the virtual machine of having moved out of the first data center, the data message that the virtual machine that this can have been moved out according to the NULL0 route generated of the router of the first data center is corresponding abandons, thus make in virtual machine (vm) migration process, flow between far-end server and virtual machine there will be short interruption, reduce Consumer's Experience.
Summary of the invention
The present invention carries virtual machine migration method and device, and to solve in prior art in virtual machine (vm) migration process, the flow between far-end server and virtual machine there will be short interruption, reduces the problem of Consumer's Experience.
According to the first aspect of the embodiment of the present invention, provide a kind of virtual machine migration method, described method is applied on the router of the first data center in station location marker separated protocol LISP network, comprising:
When virtual machine VM needs to move to the second data center described LISP network from described first data center, accept the forwarding route configured described virtual machine, described forwarding route configures according to the host address of described virtual machine and the router address of described second data center;
The mask-length of described forwarding route is set according to the router interface address of described first data center and the host address of described virtual machine, and by the forwarding route sending-down after described setting in local routing table;
When receiving the data message for described virtual machine of far-end server transmission, and described virtual machine is when moving to described second data center from described first data center, then according to forwarding route corresponding to virtual machine described in local routing table by described data message forwarding to the virtual machine of described second data center of moving into.
According to the second aspect of the embodiment of the present invention, provide a kind of virtual machine (vm) migration device, on the router of first data center of described application of installation in station location marker separated protocol LISP network, comprising:
First receiving unit, during for needing to move to the second data center described LISP network from described first data center as virtual machine VM, accept the forwarding route configured described virtual machine, described forwarding route configures according to the host address of described virtual machine and the router address of described second data center;
Setting unit, for arranging the mask-length of described forwarding route, and by the forwarding route sending-down after described setting in local routing table according to the router interface address of described first data center and the host address of described virtual machine;
Retransmission unit, for working as the data message for described virtual machine receiving far-end server and send, and described virtual machine is when moving to described second data center from described first data center, then according to forwarding route corresponding to virtual machine described in local routing table by described data message forwarding to the virtual machine of described second data center of moving into.
The application embodiment of the present invention, when virtual machine needs to move to the second data center LISP network from the first data center, acceptance is to the forwarding route of virtual machine configuration, and this forwarding route configures according to the host address of the virtual machine needing migration and the router address of the second data center, the mask-length of this forwarding route is set, and by the forwarding route sending-down after described setting in local routing table, when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is when moving to the second data center from the first data center, then according to the forwarding route corresponding to virtual machine of these needs migration in local routing table by the data message forwarding received to the virtual machine of the second data center of moving into, thus to achieve the data message forwarding received by user configured forwarding route to the virtual machine of moving out, can ensure in virtual machine (vm) migration process, flow between server and the virtual machine after moving there will not be short interruption, and then improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram of application embodiment of the present invention virtual machine (vm) migration;
Fig. 2 is an embodiment flow chart of virtual machine migration method of the present invention;
Fig. 3 is another embodiment flow chart of virtual machine migration method of the present invention;
Fig. 4 is another embodiment flow chart of virtual machine migration method of the present invention;
Fig. 5 is a kind of hardware structure diagram of virtual machine (vm) migration device place of the present invention equipment;
Fig. 6 is an embodiment block diagram of virtual machine (vm) migration device of the present invention.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
See Fig. 1, the application scenarios schematic diagram for application embodiment of the present invention virtual machine (vm) migration:
A kind of group-network construction of LISP network has been shown in Fig. 1.This framework comprises: the first data center, the second data center, mapping server and far-end server.Wherein, LISP network also can comprise other data centers except the first data center and the second data center, just for the first data center and the second data center in the embodiment of the present invention, the virtual machine migration method that the present invention proposes is described.In addition, mapping server can independently and outside each data center, also can be positioned in one of them data center.
In addition, all there are router in first data center and the second data center, and each router all can carry out LISP tunnel encapsulation (Ingress Tunnel Router, ITR) and LISP tunnel decapsulation (Engress Tunnel Router, ETR) to data message.Each data center can comprise one or more virtual machine, and the virtual machine of each data center may move, such as: the virtual machine of the first data center can move to the second data center.
In prior art, when virtual machine is from after the first data center LISP network moves to the second data center, and far-end server learn virtual machine move into the second data center routing address before, when far-end server sends datagram to the virtual machine of having moved out of the first data center, the data message that the virtual machine that this can have been moved out according to the NULL0 route generated of the router of the first data center is corresponding abandons, thus make in virtual machine (vm) migration process, flow between far-end server and virtual machine there will be short interruption, reduce Consumer's Experience.
Which and in the embodiment of the present invention, in virtual machine (vm) migration process, user can know which virtual machine needs migration, and need to move to destination.Wherein, user is network manager, and can the position of each virtual machine in overall arrangement LISP network.Therefore, when virtual machine VM needs to move to the second data center LISP network from the first data center, user can configure the forwarding route corresponding to virtual machine of these needs migration according to the host address of virtual machine and the router address of the second data center needing migration, and the forwarding route of this configuration is sent to the router of the first data center, to make this router by the forwarding route sending-down that receives in local routing table, and for when receiving the data message for the virtual machine after migration that far-end server sends, then according to forwarding route corresponding to this virtual machine user configured by the virtual machine after data message forwarding to migration, thus achieve in virtual machine (vm) migration process, flow between far-end server and the virtual machine after moving there will not be short interruption, and then improve Consumer's Experience.
Be described in detail below in conjunction with the embodiment of accompanying drawing to virtual machine (vm) migration of the present invention.
See Fig. 2, be an embodiment flow chart of virtual machine migration method of the present invention, this embodiment is applied on the router of the first data center in LISP network, and this first data center can be the first data center in Fig. 1, comprises the following steps:
Step 210: when virtual machine needs to move to the second data center LISP network from the first data center, accept the forwarding route to the virtual machine configuration needing to move, this forwarding route configures according to the host address of the virtual machine needing migration and the router address of the second data center.
In the present embodiment, user can the position of each virtual machine in overall arrangement LISP network.When determining a virtual machine to move to the second data center from the first data center, in order to ensure in virtual machine (vm) migration process, flow between far-end server and the virtual machine after moving there will not be short interruption, user can forward route for this virtual machine configures one, for when virtual machine is from after the first data center moves to the second data center, far-end server learn to move into the second data center virtual machine new route before, far-end server is still according to the router address that this locality is preserved, the data message of the virtual machine that migration occurs will be sent to the router of the first data center, and the router of the first data center receive for occur move virtual machine data message after, can according to user configured forwarding route by this data message forwarding to the virtual machine of the second data center of having moved into.
Step 220: according to the router interface address of the first data center with need the host address of the virtual machine of migration to arrange the mask-length of forwarding route corresponding to the virtual machine of these needs migration, and the forwarding route sending-down after mask-length will be set in local routing table.
In the present embodiment, after user configures corresponding forwarding route, and the host address of the virtual machine of migration can be needed whether to be in the mask-length that the same network segment arranges this forwarding route according to the router interface address of the first data center, and the forwarding route sending-down of mask-length will be set in local routing table, the virtual machine moved if now need also is not moved out from the first data center, then not only comprise the forwarding route that the virtual machine of needs migration is corresponding in local routing table, also comprise address resolution protocol (the Address Resolution Protocol that the virtual machine of these needs migration is corresponding, ARP) Host routes.This ARP Host routes is used for before the virtual machine of needs migration is moved out from the first data center, when receiving the data message of the virtual machine for needs migration that far-end server sends, according to ARP Host routes, data message is sent to the virtual machine of these needs migration.
Step 230: when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is when moving to the second data center from the first data center, then according to forwarding route corresponding to the virtual machine of these needs migration in local routing table by the data message forwarding received to the virtual machine of the second data center of moving into.
In the present embodiment, during the data message of the virtual machine after the migration that the router of the first data center receives, the router of data message forwarding to the second data center that will be able to receive according to the forwarding route of this virtual machine in local routing table, virtual machine after data message forwarding extremely being moved by the router of the second data center again, there will not be interruption to make the flow between far-end server and the virtual machine after moving.
The forwarding route related in above-mentioned steps 210 to step 230 can comprise: prefix addresses and next hop address.Prefix addresses is according to needing the network segment address that the host address of the virtual machine moved is corresponding, and next hop address is router address and the destination address of the second data center.
In addition, when the mask-length of the forwarding route corresponding to virtual machine of these needs migration is set according to the router interface address of the first data center and the host address of virtual machine in above-mentioned steps 220, whether the host address of the virtual machine that can move according to the router interface address of the first data center and needs is in the same network segment is carried out different settings, specific as follows:
When the router interface address of the first data center and the host address of virtual machine are in the same network segment, then belonging to the router interface address that the mask-length of the forwarding route that the virtual machine moved by these needs is corresponding is arranged on the first data center between the network segment and the host address of virtual machine.
Or, when the router interface address of the first data center and the host address of virtual machine are not in the same network segment, then between the transportable virtual machine network segment that the mask-length of the forwarding route that the virtual machine moved by these needs is corresponding is arranged on the router interface configuration of the first data center and the host address of virtual machine.
Such as: the host address needing the virtual machine moved in the first data center is 10.17.1.65/32 and ARP Host routes, and its mask-length is 32.
Further, when the router interface address of the first data center with when needing the host address of the virtual machine of migration to be in the same network segment, this network segment is 10.17.1.0/24, and its mask-length is 24; Or, when the router interface address of the first data center with when needing the host address of the virtual machine of migration not to be in the same network segment, the router interface of the first data center is configured with the transportable virtual machine network segment, and this network segment is 10.17.1.0/24, and its mask-length is 24.
Further, the router address of the second data center is 192.168.2.1, then the user configured prefix needing the forwarding route of the virtual machine of migration can be 10.17.1.0/25, and next hop address is 192.168.2.1.
Wherein, 25 in 10.17.1.0/25 is mask-length, this prefix mask length can between 24 to 32 any value.
If select mask-length to be 24, then can overlap with this router interface address, cause occurring that configuration does not come into force, the direct-connected routing priority of 24 is not high.
If select mask-length to be 32, owing to forwarding the priority of route higher than ARP Host routes, then can cover ARP Host routes, cause when the virtual machine of needs migration does not move, the data message received also can be sent to the second data center according to forwarding route, causes flow obstructed
So, when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is also when moving out from the first data center, then the longlyest in local routing table can match ARP Host routes 10.17.1.65/32, and data message is sent to the virtual machine of not moving out, can proper communication, when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is when moving to the second data center from the first data center, without ARP Host routes and 10.17.1.65/32 in local routing table, then in local routing table, the longest matching can forward route and 10.17.1.0/25, thus next hop address data message is sent in forwarding route and 192.168.2.1, thus make the virtual machine after moving also can receive data message, achieve in virtual machine (vm) migration process, flow between far-end server and the virtual machine of migration there will not be interruption, and then improve Consumer's Experience.
As seen from the above-described embodiment, when virtual machine needs to move to the second data center LISP network from the first data center, acceptance is to the forwarding route of virtual machine configuration, and this forwarding route configures according to the host address of the virtual machine needing migration and the router address of the second data center, the mask-length of this forwarding route is set, and by the forwarding route sending-down after described setting in local routing table, when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is when moving to the second data center from the first data center, then according to the forwarding route corresponding to virtual machine of these needs migration in local routing table by the data message forwarding received to the virtual machine of the second data center of moving into, thus to achieve the data message forwarding received by user configured forwarding route to the virtual machine of moving out, can ensure in virtual machine (vm) migration process, flow between server and the virtual machine after moving there will not be short interruption, and then improve Consumer's Experience.
In one embodiment, see Fig. 3, be another embodiment flow chart of virtual machine migration method of the present invention, this embodiment is applied on the router of the first data center in LISP network, this first data center can be the first data center in Fig. 1, comprises the following steps:
Step 310: after virtual machine moves to the second data center from the first data center, receive the mapping notice message that the virtual machine of this generation migration that mapping server sends is corresponding, and generate the packet loss route corresponding to virtual machine of this transmission migration according to this mapping notice message.
Step 320: by packet loss route sending-down in LISP thread.
Step 330: when receiving the data message for this virtual machine moved that far-end server sends, request corresponding to virtual machine generating this generation migration according to the packet loss route in LISP thread sends mapping request (Solicit Map-Request, SMR) message.
Step 340: SMR message is sent to far-end server, after receiving SMR message, sends mapping request message, for relearning the route of the virtual machine after migration to mapping server to make far-end server.
The packet loss route related in above-mentioned steps 310 to step 330 is the NULL0 route that the router of the first data center generates.In order to this NULL0 route only triggers SMR message, and the data message received is not forwarded, this NULL0 route is then needed only to be issued in LISP thread, and be issued to no longer further in local routing table, when this packet loss route only receives for the router of the first data center the data message for this virtual machine moved that far-end server sends like this, trigger the SMR message that the virtual machine of this generation migration is corresponding.
As seen from the above-described embodiment, when receiving the data message for this virtual machine moved that far-end server sends, SMR message can be triggered according to the packet loss route in LISP thread, and make the far-end server of the SMR message received relearn the route of the virtual machine after migration, simultaneously, according to the forwarding route in local routing table by data message forwarding to the virtual machine of the second data center of moving into, thus while the flow that ensure that between far-end server and the virtual machine of migration there will not be interruption, the route that far-end server relearns the virtual machine after migration can also be triggered.In addition, after far-end server learns the route of the virtual machine after moving, new route can be utilized to send datagram to the virtual machine after migration.
In another embodiment, see Fig. 4, be another embodiment flow chart of virtual machine migration method of the present invention, this embodiment is applied on the router of the first data center in LISP network, this first data center can be the first data center in Fig. 1, comprises the following steps:
Step 410: accept the delete instruction for forwarding route corresponding to the virtual machine needing to move.
Step 420: delete forwarding route corresponding in local routing table according to the delete instruction received.
As seen from the above-described embodiment, user can the position of each virtual machine in overall arrangement LISP network, when needs move, then configures corresponding forwarding route; When not needing migration, then the forwarding route configured can be deleted; Or after virtual machine moves out a period of time, user can delete according to actual conditions the forwarding route configured, and can reduce like this and take more system resource.
Corresponding with the embodiment of aforementioned virtual machine moving method, present invention also offers the embodiment of virtual machine (vm) migration device.
The embodiment of virtual machine (vm) migration device of the present invention can be applied on network devices.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, as the device on a logical meaning, be by the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.Say from hardware view, as shown in Figure 5, for a kind of hardware structure diagram of virtual machine (vm) migration device place of the present invention equipment, except the processor shown in Fig. 5, network interface, internal memory and nonvolatile memory, in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message; May be also distributed equipment from this equipment of hardware configuration, multiple interface card may be comprised, to carry out the expansion of Message processing at hardware view.
See Fig. 6, for an embodiment block diagram of virtual machine (vm) migration device of the present invention, described device can be applied on the router of the first data center in LISP network, this first data center can be the first data center in Fig. 1, and described device comprises: the first receiving unit 61, setting unit 62 and retransmission unit 63.
Wherein, when first receiving unit 61 is for needing to move to the second data center described LISP network from described first data center as virtual machine VM, accept the forwarding route configured described virtual machine, described forwarding route configures according to the host address of described virtual machine and the router address of described second data center.
Setting unit 62 for arranging the mask-length of described forwarding route according to the router interface address of described first data center and the host address of described virtual machine, and by the forwarding route sending-down after described setting in local routing table.
Retransmission unit 63 is for working as the data message for described virtual machine receiving far-end server and send, and described virtual machine is when moving to described second data center from described first data center, then according to forwarding route corresponding to virtual machine described in local routing table by described data message forwarding to the virtual machine of described second data center of moving into.
Wherein, described forwarding route comprises prefix addresses and next hop address; Described prefix addresses is according to network segment address corresponding to the host address of described virtual machine, and described next hop address is the router address of described second data center.
In addition, when setting unit 62 is in the same network segment specifically for the router interface address of described first data center and the host address of described virtual machine, then the mask-length of described forwarding route is arranged between the network segment belonging to router interface address of described first data center and the host address of described virtual machine; Or, when the router interface address of described first data center and the host address of described virtual machine are not in the same network segment, then between the transportable virtual machine network segment mask-length of described forwarding route being arranged on the router interface configuration of described first data center and the host address of described virtual machine.
In an optional embodiment, described device also comprises: receiving element, issue unit, SMR message generation unit and transmitting element (not shown in Fig. 6).
Wherein, receiving element is used for moving to after the second data center described LISP network when described virtual machine from described first data center, receive the mapping notice message that the described virtual machine of mapping server transmission is corresponding, and generate packet loss route corresponding to described virtual machine according to described mapping notice message.
Issue unit for by described packet loss route sending-down in LISP thread.
SMR message generation unit is used for when receiving the data message for described virtual machine that far-end server sends, and generates request corresponding to described virtual machine send mapping request SMR message according to the packet loss route in described LISP thread.
Transmitting element is used for described SMR message to be sent to far-end server, after receiving described SMR message, sends mapping request message, for relearning the route of the virtual machine after migration to mapping server to make described far-end server.
In another optional embodiment, described device also comprises: the second receiving unit and delete cells (not shown in Fig. 6).
Wherein, the second receiving unit is for accepting the delete instruction for forwarding route corresponding to described virtual machine.
Delete cells is used for deleting forwarding route corresponding in local routing table according to described delete instruction.
As seen from the above-described embodiment, when virtual machine needs to move to the second data center LISP network from the first data center, accept the forwarding route that the user configured virtual machine needing to move is corresponding, this forwarding route is user according to the router address configuration needing host address that the virtual machine of migration is corresponding and the second data center, when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is when moving to the second data center from the first data center, then according to forwarding route corresponding to the virtual machine of user configured these needs migration by the data message forwarding received to the virtual machine of the second data center of moving into, thus to achieve the data message forwarding received by user configured forwarding route to the virtual machine of moving out, can ensure in virtual machine (vm) migration process, flow between server and the virtual machine after moving there will not be short interruption, and then improve Consumer's Experience.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present invention program.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
As seen from the above-described embodiment, when virtual machine needs to move to the second data center LISP network from the first data center, accept the forwarding route that the user configured virtual machine needing to move is corresponding, this forwarding route is user according to the router address configuration needing host address that the virtual machine of migration is corresponding and the second data center, when receiving the data message of the virtual machine for needs migration that far-end server sends, and the virtual machine of these needs migration is when moving to the second data center from the first data center, then according to forwarding route corresponding to the virtual machine of user configured these needs migration by the data message forwarding received to the virtual machine of the second data center of moving into, thus to achieve the data message forwarding received by user configured forwarding route to the virtual machine of moving out, can ensure in virtual machine (vm) migration process, flow between server and the virtual machine after moving there will not be short interruption, and then improve Consumer's Experience.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (10)

1. a virtual machine migration method, is characterized in that, described method is applied on the router of the first data center in station location marker separated protocol LISP network, comprising:
When virtual machine VM needs to move to the second data center described LISP network from described first data center, accept the forwarding route configured described virtual machine, described forwarding route configures according to the host address of described virtual machine and the router address of described second data center;
The mask-length of described forwarding route is set according to the router interface address of described first data center and the host address of described virtual machine, and by the forwarding route sending-down after described setting in local routing table;
When receiving the data message for described virtual machine of far-end server transmission, and described virtual machine is when moving to described second data center from described first data center, then according to forwarding route corresponding to virtual machine described in local routing table by described data message forwarding to the virtual machine of described second data center of moving into.
2. method according to claim 1, is characterized in that, described forwarding route comprises prefix addresses and next hop address; Described prefix addresses is according to network segment address corresponding to the host address of described virtual machine, and described next hop address is the router address of described second data center.
3. method according to claim 1, is characterized in that, the described mask-length arranging described forwarding route according to the router interface address of described first data center and the host address of described virtual machine specifically comprises:
When the router interface address of described first data center and the host address of described virtual machine are in the same network segment, then the mask-length of described forwarding route is arranged between the network segment belonging to router interface address of described first data center and the host address of described virtual machine;
Or, when the router interface address of described first data center and the host address of described virtual machine are not in the same network segment, then between the transportable virtual machine network segment mask-length of described forwarding route being arranged on the router interface configuration of described first data center and the host address of described virtual machine.
4. method according to claim 1, is characterized in that, described method also comprises:
When described virtual machine moves to after the second data center described LISP network from described first data center, receive the mapping notice message that the described virtual machine of mapping server transmission is corresponding, and generate packet loss route corresponding to described virtual machine according to described mapping notice message;
By described packet loss route sending-down in LISP thread;
When receiving the data message for described virtual machine that far-end server sends, generating request corresponding to described virtual machine according to the packet loss route in described LISP thread and sending mapping request SMR message;
Described SMR message being sent to far-end server, after receiving described SMR message to make described far-end server, sending mapping request message, for relearning the route of the virtual machine after migration to mapping server.
5. method according to claim 1, is characterized in that, described method also comprises:
Accept the delete instruction for forwarding route corresponding to described virtual machine;
Forwarding route corresponding in local routing table is deleted according to described delete instruction.
6. a virtual machine (vm) migration device, is characterized in that, on the router of first data center of described application of installation in station location marker separated protocol LISP network, comprising:
First receiving unit, during for needing to move to the second data center described LISP network from described first data center as virtual machine VM, accept the forwarding route configured described virtual machine, described forwarding route configures according to the host address of described virtual machine and the router address of described second data center;
Setting unit, for arranging the mask-length of described forwarding route, and by the forwarding route sending-down after described setting in local routing table according to the router interface address of described first data center and the host address of described virtual machine;
Retransmission unit, for working as the data message for described virtual machine receiving far-end server and send, and described virtual machine is when moving to described second data center from described first data center, then according to forwarding route corresponding to virtual machine described in local routing table by described data message forwarding to the virtual machine of described second data center of moving into.
7. device according to claim 6, is characterized in that, described forwarding route comprises prefix addresses and next hop address; Described prefix addresses is the network segment address that the host address of described virtual machine is corresponding, and described next hop address is the router address of described second data center.
8. device according to claim 6, it is characterized in that, the mask-length of described forwarding route specifically for when the router interface address of described first data center and the host address of described virtual machine are in the same network segment, is then arranged between the network segment belonging to router interface address of described first data center and the host address of described virtual machine by described setting unit; Or, when the router interface address of described first data center and the host address of described virtual machine are not in the same network segment, then between the transportable virtual machine network segment mask-length of described forwarding route being arranged on the router interface configuration of described first data center and the host address of described virtual machine.
9. device according to claim 7, is characterized in that, described device also comprises:
Receiving element, for moving to after the second data center described LISP network when described virtual machine from described first data center, receive the mapping notice message that the described virtual machine of mapping server transmission is corresponding, and generate packet loss route corresponding to described virtual machine according to described mapping notice message;
Issue unit, for by described packet loss route sending-down in LISP thread;
SMR message generation unit, for when receiving the data message for described virtual machine that far-end server sends, generating request corresponding to described virtual machine according to the packet loss route in described LISP thread and sending mapping request SMR message;
Transmitting element, for described SMR message is sent to far-end server, after receiving described SMR message to make described far-end server, sends mapping request message, for relearning the route of the virtual machine after migration to mapping server.
10. device according to claim 6, is characterized in that, described device also comprises:
Second receiving unit, for accepting the delete instruction for forwarding route corresponding to described virtual machine;
Delete cells, for deleting forwarding route corresponding in local routing table according to described delete instruction.
CN201510201122.1A 2015-04-24 2015-04-24 Virtual machine migration method and device Active CN104796338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510201122.1A CN104796338B (en) 2015-04-24 2015-04-24 Virtual machine migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510201122.1A CN104796338B (en) 2015-04-24 2015-04-24 Virtual machine migration method and device

Publications (2)

Publication Number Publication Date
CN104796338A true CN104796338A (en) 2015-07-22
CN104796338B CN104796338B (en) 2018-08-24

Family

ID=53560860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510201122.1A Active CN104796338B (en) 2015-04-24 2015-04-24 Virtual machine migration method and device

Country Status (1)

Country Link
CN (1) CN104796338B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603511A (en) * 2016-11-30 2017-04-26 中国人民解放军国防科学技术大学 LISP data flow processing method based on independent kernel module
CN106961487A (en) * 2017-04-19 2017-07-18 南京大学 Data stream self-adapting adjustment system and method for adjustment during live migration of virtual machine
CN108322393A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 Routing link management method and system, virtual flow-line gateway and host gateway
CN109412925A (en) * 2018-09-30 2019-03-01 锐捷网络股份有限公司 Forwarding-table item update method and VTEP based on VTEP
CN110011859A (en) * 2019-04-15 2019-07-12 深信服科技股份有限公司 A kind of virtual machine control method and group system
CN111988223A (en) * 2020-08-19 2020-11-24 杭州迪普科技股份有限公司 Virtual machine migration method and network system
CN113326101A (en) * 2021-08-02 2021-08-31 阿里云计算有限公司 Thermal migration method, device and equipment based on remote direct data storage

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022711A1 (en) * 2009-07-22 2011-01-27 Cohn Daniel T Dynamically migrating computer networks
CN104081733A (en) * 2012-01-31 2014-10-01 国际商业机器公司 Interconnecting data centers for migration of virtual machines
CN104516768A (en) * 2013-09-26 2015-04-15 英特尔公司 Live migration of virtualized systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022711A1 (en) * 2009-07-22 2011-01-27 Cohn Daniel T Dynamically migrating computer networks
CN104081733A (en) * 2012-01-31 2014-10-01 国际商业机器公司 Interconnecting data centers for migration of virtual machines
CN104516768A (en) * 2013-09-26 2015-04-15 英特尔公司 Live migration of virtualized systems

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603511A (en) * 2016-11-30 2017-04-26 中国人民解放军国防科学技术大学 LISP data flow processing method based on independent kernel module
CN108322393A (en) * 2017-01-18 2018-07-24 阿里巴巴集团控股有限公司 Routing link management method and system, virtual flow-line gateway and host gateway
CN108322393B (en) * 2017-01-18 2021-03-16 阿里巴巴集团控股有限公司 Routing link management method and system, virtual routing gateway and host machine gateway
CN106961487A (en) * 2017-04-19 2017-07-18 南京大学 Data stream self-adapting adjustment system and method for adjustment during live migration of virtual machine
CN106961487B (en) * 2017-04-19 2020-10-27 南京大学 Data stream self-adaptive adjusting system and method in virtual machine live migration process
CN109412925A (en) * 2018-09-30 2019-03-01 锐捷网络股份有限公司 Forwarding-table item update method and VTEP based on VTEP
CN110011859A (en) * 2019-04-15 2019-07-12 深信服科技股份有限公司 A kind of virtual machine control method and group system
CN111988223A (en) * 2020-08-19 2020-11-24 杭州迪普科技股份有限公司 Virtual machine migration method and network system
CN113326101A (en) * 2021-08-02 2021-08-31 阿里云计算有限公司 Thermal migration method, device and equipment based on remote direct data storage
CN113326101B (en) * 2021-08-02 2022-04-12 阿里云计算有限公司 Thermal migration method, device and equipment based on remote direct data storage

Also Published As

Publication number Publication date
CN104796338B (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN104796338A (en) Migration method and device of virtual machines
US10237230B2 (en) Method and system for inspecting network traffic between end points of a zone
US10237177B2 (en) Transfer device and transfer system
CN104506408B (en) The method and device of data transfer based on SDN
EP4009593A1 (en) Data transmission method and apparatus, network card and storage medium
CN104780109A (en) Virtual machine migration method and device
CN107925623A (en) The interconnection of overlay network
CN107645431B (en) Message forwarding method and device
CN107547349A (en) A kind of method and device of virtual machine (vm) migration
CN106059923A (en) Message forwarding method and device
CN107404436A (en) Communication means and device for virtual expansible LAN
JP6928076B2 (en) Packet monitoring
CN105763440A (en) Message forwarding method and device
CN104468368A (en) Method and device for allocating BGP neighbors
CN103957161B (en) A kind of message forwarding method and its device
CN109547350B (en) Route learning method and gateway equipment
CN104378299A (en) Flow table entry processing method and device
EP3337109A1 (en) Forwarding table entry establishment method and apparatus
CN104022956A (en) Method and device for data message processing in location/ID separation protocol network
CN105591907A (en) Route acquisition method and device
CN106992918B (en) Message forwarding method and device
CN104579973A (en) Message forwarding method and device of virtual cluster
US9948598B2 (en) Delivery control device, data delivery system, delivery control method, and non-transitory computer readable medium storing delivery control program
CN104780090A (en) VPN multicast transmission method and device PE equipment
CN107819708A (en) Data processing method, system and equipment based on virtual machine (vm) migration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant