CN104796338B - Virtual machine migration method and device - Google Patents
Virtual machine migration method and device Download PDFInfo
- Publication number
- CN104796338B CN104796338B CN201510201122.1A CN201510201122A CN104796338B CN 104796338 B CN104796338 B CN 104796338B CN 201510201122 A CN201510201122 A CN 201510201122A CN 104796338 B CN104796338 B CN 104796338B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- data center
- forwarding
- address
- routing
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides virtual machine migration method and device, and this method is applied on the router of the first data center in LISP networks, including:When virtual machine needs to move to the second data center in LISP networks from the first data center, receives the forwarding to virtual machine configuration and route;The mask-length of forwarding routing is set according to the host address of the router interface address of the first data center and virtual machine, and will be in the forwarding route sending-down to local routing table after setting;When the data message for virtual machine for receiving far-end server transmission, and when virtual machine moves to the second data center from the first data center, then it is route data message forwarding to the virtual machine for moving into the second data center according to the forwarding in local routing table.It can ensure that the flow between the virtual machine after server and migration is not in short interruption using the embodiment of the present invention, and then improve user experience.
Description
Technical field
The present invention relates to network communication technology field more particularly to virtual machine migration methods and device.
Background technology
With the development of network communication technology, virtual machine migration technology is also widely used.
In the prior art, when virtual machine (Virtual Machine, VM) is from station location marker separated protocol (Locator
Identifier Separation Protocol, LISP) the first data center in network move to the second data center it
Afterwards, and far-end server study is moved into virtual machine before the routing address of the second data center, and far-end server is to first
When the virtual machine of data center moved out sends datagram, the router of the first data center understands what basis had generated
NULL0 routings abandon the corresponding data message of the virtual machine moved out, so that during virtual machine (vm) migration, far
Flow between end server and virtual machine will appear short interruption, reduce user experience.
Invention content
The present invention carries virtual machine migration method and device, to solve in the prior art during virtual machine (vm) migration, distal end
The problem of flow between server and virtual machine will appear short interruption, reduce user experience.
According to a first aspect of the embodiments of the present invention, a kind of virtual machine migration method is provided, the method is applied to position
On the router for identifying the first data center in separated protocol LISP networks, including:
When virtual machine VM needs to move to the second data center in the LISP networks from first data center,
Receive to route the forwarding of the virtual machine configuration, the forwarding routing is the host address and described the according to the virtual machine
The router address configuration of two data centers;
Turn according to the setting of the host address of the router interface address of first data center and the virtual machine is described
The mask-length of routing is sent out, and will be in the forwarding route sending-down to local routing table after the setting;
When the data message for the virtual machine for receiving far-end server transmission, and the virtual machine is from described
When first data center moves to second data center, then according to the corresponding forwarding road of virtual machine described in local routing table
By by the data message forwarding to the virtual machine for moving into second data center.
According to a second aspect of the embodiments of the present invention, a kind of virtual machine (vm) migration device is provided, described device is applied to position
On the router for identifying the first data center in separated protocol LISP networks, including:
First receiving unit needs to move in the LISP networks from first data center for working as virtual machine VM
The second data center when, receive to route the forwarding of the virtual machine configuration, it is according to the virtual machine that the forwarding, which is route,
Host address and second data center router address configuration;
Setting unit, for the host according to the router interface address of first data center and the virtual machine
The mask-length of the forwarding routing is arranged in location, and will be in the forwarding route sending-down to local routing table after the setting;
Retransmission unit, for working as the data message for the virtual machine for receiving far-end server transmission, and it is described
When virtual machine moves to second data center from first data center, then according to virtual described in local routing table
The corresponding forwarding of machine is route the data message forwarding to the virtual machine for moving into second data center.
Using the embodiment of the present invention, when virtual machine needs to move to the second data in LISP networks from the first data center
When center, receive the forwarding to virtual machine configuration and route, forwarding routing is the host address according to the virtual machine for needing to migrate
It is configured with the router address of the second data center;The mask-length of forwarding routing is set, and will be turned after the setting
It sends out in route sending-down to local routing table;When the datagram for the virtual machine for needing to migrate for receiving far-end server transmission
Text, and the virtual machine of needs migration is from the first data center when moving to the second data center, then according to local routing table
In the corresponding forwarding of virtual machine that migrates of the needs route the data message forwarding received to moving into the second data center
Virtual machine, to realize the data message forwarding received to the virtual machine moved out through the forwarding of user configuration routing,
It can ensure during virtual machine (vm) migration, the flow between virtual machine after server and migration is not in short interruption,
And then improve user experience.
Description of the drawings
Fig. 1 is the application scenarios schematic diagram using virtual machine (vm) migration of the embodiment of the present invention;
Fig. 2 is one 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 equipment where virtual machine (vm) migration device of the present invention;
Fig. 6 is one embodiment block diagram of virtual machine (vm) migration device of the present invention.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Referring to Fig. 1, for the application scenarios schematic diagram of application virtual machine (vm) migration of the embodiment of the present invention:
A kind of group-network construction of LISP networks is shown in Fig. 1.The framework includes:First data center, the second data
Center, mapping server and far-end server.Wherein, LISP networks can also include in addition to the first data center and the second data
Other data centers except center come in the embodiment of the present invention only by taking the first data center and the second data center as an example
Illustrate virtual machine migration method proposed by the present invention.In addition, mapping server can also may be used independently with except each data center
With in a data center being located therein.
In addition, all there are router in the first data center and the second data center, and each router all can be to data
Message carries out LISP tunnel encapsulations (Ingress Tunnel Router, ITR) and LISP tunnel decapsulations (Engress
Tunnel Router, ETR).Each data center may include one or more virtual machines, and the void of each data center
Quasi- machine may migrate, such as:The virtual machine of first data center can move to the second data center.
In the prior art, after virtual machine moves to the second data center from the first data center in LISP networks,
And far-end server study is moved into virtual machine before the routing address of the second data center, and far-end server is to the first data
When the virtual machine moved out at center sends datagram, the router of the first data center understands what basis had generated
NULL0 routings abandon the corresponding data message of the virtual machine moved out, so that during virtual machine (vm) migration, far
Flow between end server and virtual machine will appear short interruption, reduce user experience.
And in the embodiment of the present invention, during virtual machine (vm) migration, user is known which virtual machine needs to migrate, with
Which and need that destination moved to.Wherein, user is network administrator, and can be with each virtual in overall arrangement LISP networks
The position of machine.Therefore, it when virtual machine VM needs to move to the second data center in LISP networks from the first data center, uses
The host address of virtual machine and the router address of the second data center that family can be migrated according to needs configure needs migration
The corresponding forwarding routing of virtual machine, and the forwarding of the configuration is route to the router for being sent to the first data center, so that the road
By device by the forwarding route sending-down to local routing table received, and for when receive far-end server transmission for moving
When the data message of the virtual machine after shifting, then it is route data message forwarding according to the corresponding forwarding of the virtual machine of user configuration
Virtual machine after to migration, to realize during virtual machine (vm) migration, between the virtual machine after far-end server and migration
Flow be not in short interruption, and then improve user experience.
The embodiment of virtual machine (vm) migration of the present invention is described in detail below in conjunction with the accompanying drawings.
It is one embodiment flow chart of virtual machine migration method of the present invention referring to Fig. 2, which is applied to LISP nets
On the router of the first data center in network, which can be the first data center in Fig. 1, including following
Step:
Step 210:When virtual machine needs to move to the second data center in LISP networks from the first data center, connect
It is route by the forwarding of the virtual machine configuration migrated to needs, forwarding routing is the host address according to the virtual machine for needing to migrate
It is configured with the router address of the second data center.
In the present embodiment, user can be with the position of each virtual machine in overall arrangement LISP networks.When determining by a void
When quasi- machine moves to the second data center from the first data center, during ensureing virtual machine (vm) migration, far-end server and
The flow between virtual machine after migration is not in short interruption, and user can be one forwarding routing of the virtual machine configuration, use
In after virtual machine moves to the second data center from the first data center, far-end server study is to moving into the second data
Before the new routing of the virtual machine of the heart, far-end server, will be to migrating still according to the router address locally preserved
The data message of virtual machine is sent to the router of the first data center, and the router of the first data center is received for
After the data message of the virtual machine migrated, can according to the forwarding of user configuration routing by the data message forwarding to having moved
Enter the virtual machine of the second data center.
Step 220:According to the host address for the virtual machine that the router interface address of the first data center and needs migrate
The mask-length of the corresponding forwarding routing of virtual machine of needs migration is set, and will be under the forwarding routing after setting mask-length
It is sent in local routing table.
It, can be according to the router interface of the first data center after the corresponding forwarding routing of user configuration in the present embodiment
Address and need whether the host address of virtual machine migrated in the same network segment is arranged the mask-length of forwarding routing, and
It will be arranged in the forwarding route sending-down to local routing table of mask-length, if needing the virtual machine migrated not yet from first at this time
Data center moves out, then includes not only the corresponding forwarding routing of virtual machine for needing to migrate in local routing table, further include the need
The corresponding address resolution protocol of the virtual machine to be migrated (Address Resolution Protocol, ARP) Host routes.It should
ARP Host routes are used for before needing the virtual machine migrated to move out from the first data center, receive far-end server transmission
For need migrate virtual machine data message when, according to ARP Host routes by data message be sent to the needs migration
Virtual machine.
Step 230:When the data message for the virtual machine for needing to migrate for receiving far-end server transmission, and this is needed
When the virtual machine to be migrated moves to the second data center from the first data center, then moved according to the needs in local routing table
The corresponding forwarding of virtual machine of shifting is route the data message forwarding received to the virtual machine for moving into the second data center.
It, can when the data message of the virtual machine after the migration that the router of the first data center receives in the present embodiment
To route the data message forwarding that will be received to the road of the second data center according to the forwarding of the virtual machine in local routing table
By device, then by the second data center router by data message forwarding to migrate after virtual machine so that far-end server and
The flow between virtual machine after migration is not in interrupt.
Involved in above-mentioned steps 210 to step 230 to forwarding routing may include:Prefix addresses and next hop address.
Host address corresponding network segment address of the prefix addresses according to the virtual machine for needing to migrate, next hop address are the second data center
Router address, that is, destination address.
In addition, according to the router interface address of the first data center and the host address of virtual machine in above-mentioned steps 220
It, can be according to the router of the first data center when the mask-length of the corresponding forwarding routing of virtual machine of needs migration is set
Interface IP address and need whether the host address of virtual machine that migrates in the same network segment carries out different settings, specifically such as
Under:
When the host address of the router interface address of the first data center and virtual machine is in the same network segment, then should
Need the mask-length of the corresponding forwarding routing of the virtual machine migrated that the router interface address institute in the first data center is set
Belong between the network segment and the host address of virtual machine.
Alternatively, when the router interface address of the first data center and the host address of virtual machine are not at the same network segment
When, then the router in the first data center is arranged in the mask-length of the corresponding forwarding routing of virtual machine that the needs migrate and connect
Between the transportable virtual machine network segment and the host address of virtual machine of mouth configuration.
Such as:It is 10.17.1.65/32 i.e. ARP hosts that the host address of the virtual machine migrated is needed in first data center
Routing, mask-length 32.
Also, when the router interface address of the first data center and the host address of the virtual machine migrated is needed to be in same
When one network segment, which is 10.17.1.0/24, mask-length 24;Alternatively, when the router interface of the first data center
When the host address for the virtual machine that address and needs migrate is not at the same network segment, the router interface configuration of the first data center
The transportable virtual machine network segment, the network segment are 10.17.1.0/24, mask-length 24.
Also, the router address of the second data center is 192.168.2.1, then the needs of user configuration migrate virtual
The prefix of the forwarding routing of machine can be 10.17.1.0/25, next hop address 192.168.2.1.
Wherein, 25 in 10.17.1.0/25 are mask-length, which can be arbitrary between 24 to 32
Value.
If selection mask length is 24, it can be overlapped with the router interface address, cause to occur configuring not coming into force, 24
Direct-connected routing priority it is not high.
If selection mask length is 32, since the priority of forwarding routing is higher than ARP Host routes, then ARP master can be covered
Machine is route, and causes the data message received when needing the virtual machine migrated not migrate that can also be sent according to forwarding routing
To the second data center, cause flow obstructed
So when the data message for the virtual machine for needing to migrate for receiving far-end server transmission, and the needs
When the virtual machine of migration is moved out from the first data center not yet, then longest ARP hosts can be matched in local routing table
It is route 10.17.1.65/32, and data message is sent to the virtual machine that do not move out, it being capable of normal communication;When receive distal end
Server send for the data message of virtual machine for needing to migrate, and the virtual machine of needs migration is from the first data
It, then can be without ARP Host routes, that is, 10.17.1.65/32 in local routing table when the heart moves to the second data center
Longest is matched to the forwarding i.e. 10.17.1.0/25 of routing in local routing table, to which data message to be sent in forwarding routing
Next hop address, that is, 192.168.2.1 realizes so that the virtual machine after migration can also receive data message virtual
In machine transition process, the flow between far-end server and the virtual machine of migration is not in interrupt, and then improve user's body
It tests.
As seen from the above-described embodiment, when virtual machine needs to move to the second data in LISP networks from the first data center
When center, receive the forwarding to virtual machine configuration and route, forwarding routing is the host address according to the virtual machine for needing to migrate
It is configured with the router address of the second data center;The mask-length of forwarding routing is set, and will be turned after the setting
It sends out in route sending-down to local routing table;When the datagram for the virtual machine for needing to migrate for receiving far-end server transmission
Text, and the virtual machine of needs migration is from the first data center when moving to the second data center, then according to local routing table
In the corresponding forwarding of virtual machine that migrates of the needs route the data message forwarding received to moving into the second data center
Virtual machine, to realize the data message forwarding received to the virtual machine moved out through the forwarding of user configuration routing,
It can ensure during virtual machine (vm) migration, the flow between virtual machine after server and migration is not in short interruption,
And then improve user experience.
In one embodiment, it is another embodiment flow chart of virtual machine migration method of the present invention referring to Fig. 3, it should
Embodiment is applied on the router of the first data center in LISP networks, which can be the in Fig. 1
One data center, includes the following steps:
Step 310:After virtual machine moves to the second data center from the first data center, receives mapping server and send
The corresponding mapping notice message of the virtual machine migrated, and according to the mapping notice message generate the transmission migration void
Intend the corresponding packet loss routing of machine.
Step 320:It will be in packet loss route sending-down to LISP threads.
Step 330:When receive far-end server transmission for the virtual machine migrated data message when, root
The corresponding request of the virtual machine migrated, which is generated, according to the packet loss routing in LISP threads sends mapping request
(Solicit Map-Request, SMR) message.
Step 340:SMR messages are sent to far-end server, so that after far-end server receives SMR messages, Xiang Ying
It penetrates server and sends mapping request message, the routing for relearning the virtual machine after migrating.
Involved in above-mentioned steps 310 to step 330 to packet loss routing be the first data center router generate
NULL0 routing.In order to which only triggering SMR messages are then needed without being forwarded to the data message received for NULL0 routings
NULL0 routings are only issued in LISP threads, without being further issued in local routing table, the message is lost in this way
Abandon routing be served only for the first data center router receive far-end server transmission be directed to the virtual machine migrated
Data message when, trigger the corresponding SMR messages of the virtual machine migrated.
As seen from the above-described embodiment, when the data for the virtual machine migrated for receiving far-end server transmission
When message, triggering SMR messages can be route according to the packet loss in LISP threads, and make the remote of the SMR messages received
End server relearns the routing of the virtual machine after migration, meanwhile, it is route datagram according to the forwarding in local routing table
Text is forwarded to the virtual machine for moving into the second data center, to ensure that the flow between far-end server and the virtual machine of migration
While being not in interruption, moreover it is possible to trigger the routing for the virtual machine that far-end server relearns after migration.In addition, distal end takes
It is engaged in after device study to the routing of the virtual machine after migration, can be sent datagram to the virtual machine after migration using new routing.
It is another embodiment flow chart of virtual machine migration method of the present invention referring to Fig. 4 in another embodiment, it should
Embodiment is applied on the router of the first data center in LISP networks, which can be the in Fig. 1
One data center, includes the following steps:
Step 410:Receive the deletion instruction for the corresponding forwarding routing of virtual machine for needing to migrate.
Step 420:Corresponding forwarding routing in local routing table is deleted according to the deletion instruction received.
As seen from the above-described embodiment, user can be with the position of each virtual machine in overall arrangement LISP networks, when needs move
When shifting, then corresponding forwarding routing is configured;When that need not migrate, then configured forwarding can be route and be deleted;Alternatively, working as
Virtual machine was moved out after a period of time, and user can delete configured forwarding routing according to actual conditions, can reduce account in this way
With more system resources.
Corresponding with the embodiment of aforementioned virtual machine moving method, the present invention also provides the implementations of virtual machine (vm) migration device
Example.
The embodiment of virtual machine (vm) migration device of the present invention can be applied on network devices.Device embodiment can be by soft
Part is realized, can also be realized by way of hardware or software and hardware combining.For implemented in software, as a logical meaning
On device, be to be read corresponding computer program instructions in nonvolatile memory by the processor of equipment where it
Operation is formed in memory.For hardware view, as shown in figure 5, for the one of virtual machine (vm) migration device of the present invention place equipment
Kind hardware structure diagram, other than processor shown in fig. 5, network interface, memory and nonvolatile memory, in embodiment
Equipment where device can also include usually other hardware, such as be responsible for the forwarding chip of processing message;From hardware configuration
From the equipment be also possible to be distributed equipment, may include multiple interface cards, so as to hardware view carry out message at
The extension of reason.
It is one embodiment block diagram of virtual machine (vm) migration device of the present invention referring to Fig. 6, described device can be applied to LISP
On the router of the first data center in network, which can be the first data center in Fig. 1, the dress
Set including:First receiving unit 61, setting unit 62 and retransmission unit 63.
Wherein, the first receiving unit 61 is used to need to move to the LISP from first data center as virtual machine VM
When the second data center in network, receive the forwarding to the virtual machine configuration and route, the forwarding routing is described in foundation
What the host address of virtual machine and the router address of second data center configured.
Setting unit 62 is used for the host of the router interface address and the virtual machine according to first data center
The mask-length of the forwarding routing is arranged in address, and will be in the forwarding route sending-down to local routing table after the setting.
Retransmission unit 63 is used to work as the data message for the virtual machine for receiving far-end server transmission, and described
When virtual machine moves to second data center from first data center, then according to virtual described in local routing table
The corresponding forwarding of machine is route the data message forwarding to the virtual machine for moving into second data center.
Wherein, the forwarding routing includes prefix addresses and next hop address;The prefix addresses are according to the virtual machine
The corresponding network segment address of host address, the next hop address be second data center router address.
In addition, setting unit 62 is specifically used for the router interface address of first data center and the virtual machine
When host address is in the same network segment, then the routing in first data center is arranged in the mask-length by the forwarding routing
Between the network segment and the host address of the virtual machine belonging to device interface IP address;Alternatively, when the routing of first data center
When the host address of device interface IP address and the virtual machine is not at the same network segment, then the mask-length by the forwarding routing is set
Set the host address in transportable the virtual machine network segment and the virtual machine of the router interface configuration of first data center
Between.
In an alternative embodiment, described device further includes:Receiving unit, issuance unit, SMR message generation units
It (is not shown in Fig. 6) with transmission unit.
Wherein, receiving unit is used to move in the LISP networks from first data center when the virtual machine
After second data center, the corresponding mapping notice message of the virtual machine that mapping server is sent is received, and reflect according to described
It penetrates notice message and generates the corresponding packet loss routing of the virtual machine.
Issuance unit is used for will be in the packet loss route sending-down to LISP threads.
SMR message generation units are used for when the data message for the virtual machine for receiving far-end server transmission
When, the corresponding request of the virtual machine is generated according to the packet loss routing in the LISP threads and sends mapping request SMR reports
Text.
Transmission unit is used to the SMR messages being sent to far-end server, so that the far-end server receives institute
After stating SMR messages, mapping request message is sent to mapping server, the routing for relearning the virtual machine after migrating.
In another optional embodiment, described device further includes:Second receiving unit and deleting unit (are not shown in Fig. 6
Go out).
Wherein, the second receiving unit is used to receive the deletion instruction for the corresponding forwarding routing of the virtual machine.
Deleting unit, which is used to be instructed according to the deletion, deletes corresponding forwarding routing in local routing table.
As seen from the above-described embodiment, when virtual machine needs to move to the second data in LISP networks from the first data center
When center, receive the corresponding forwarding routing of virtual machine that the needs of user configuration migrate, forwarding routing is user according to needs
The corresponding host address of virtual machine of migration and the configuration of the router address of the second data center, when receiving far-end server
The data message for the virtual machine for needing to migrate sent, and the virtual machine of needs migration is migrated from the first data center
When to the second data center, then the corresponding forwarding of virtual machine migrated according to the needs of user configuration route the number that will be received
It is forwarded to the virtual machine for moving into the second data center according to message, will be received by the forwarding of user configuration routing to realize
Data message forwarding to the virtual machine moved out, can ensure during virtual machine (vm) migration, server and migration after it is virtual
Flow between machine is not in short interruption, and then improves user experience.
The function of each unit and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, when virtual machine needs to move to the second data in LISP networks from the first data center
When center, receive the corresponding forwarding routing of virtual machine that the needs of user configuration migrate, forwarding routing is user according to needs
The corresponding host address of virtual machine of migration and the configuration of the router address of the second data center, when receiving far-end server
The data message for the virtual machine for needing to migrate sent, and the virtual machine of needs migration is migrated from the first data center
When to the second data center, then the corresponding forwarding of virtual machine migrated according to the needs of user configuration route the number that will be received
It is forwarded to the virtual machine for moving into the second data center according to message, will be received by the forwarding of user configuration routing to realize
Data message forwarding to the virtual machine moved out, can ensure during virtual machine (vm) migration, server and migration after it is virtual
Flow between machine is not in short interruption, and then improves user experience.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of virtual machine migration method, which is characterized in that the method is applied in station location marker separated protocol LISP networks
The first data center router on, including:
When virtual machine VM needs to move to the second data center in the LISP networks from first data center, receive
Forwarding routing to the virtual machine configuration, the forwarding routing are the host address and second number according to the virtual machine
It is configured according to the router address at center;
According to the host address of the router interface address of first data center and the virtual machine, the forwarding road is set
By mask-length, and will be in the forwarding route sending-down to local routing table after the setting;
When the data message for the virtual machine for receiving far-end server transmission, and the virtual machine is from described first
It, then will according to the corresponding forwarding routing of virtual machine described in local routing table when data center moves to second data center
The data message forwarding is to the virtual machine for moving into second data center.
2. according to the method described in claim 1, it is characterized in that, forwarding routing includes prefix addresses and next-hop
Location;Host address corresponding network segment address of the prefix addresses according to the virtual machine, the next hop address are described the
The router address of two data centers.
3. according to the method described in claim 1, it is characterized in that, the router interface according to first data center
The mask-length that the forwarding routing is arranged in the host address of address and the virtual machine specifically includes:
When the host address of the router interface address of first data center and the virtual machine is in the same network segment, then
The network segment and institute belonging to the router interface address of first data center is arranged in the mask-length of the forwarding routing
Between the host address for stating virtual machine;
Alternatively, when the router interface address of first data center and the host address of the virtual machine are not at same net
Duan Shi, then by it is described forwarding routing mask-length be arranged first data center router interface configuration it is transportable
Between the virtual machine network segment and the host address of the virtual machine.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
After the virtual machine moves to the second data center in the LISP networks from first data center, reception is reflected
The corresponding mapping notice message of the virtual machine of server transmission is penetrated, and described virtual according to mapping notice message generation
The corresponding packet loss routing of machine;
It will be in the packet loss route sending-down to LISP threads;
When receive far-end server transmission for the virtual machine data message when, according to the report in the LISP threads
Text abandons routing and generates the corresponding request transmission mapping request SMR messages of the virtual machine;
The SMR messages are sent to far-end server, so that after the far-end server receives the SMR messages, Xiang Ying
It penetrates server and sends mapping request message, the routing for relearning the virtual machine after migrating.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
Receive the deletion instruction for the corresponding forwarding routing of the virtual machine;
It is instructed according to the deletion and deletes corresponding forwarding routing in local routing table.
6. a kind of virtual machine (vm) migration device, which is characterized in that described device is applied in station location marker separated protocol LISP networks
The first data center router on, including:
First receiving unit, for needing to move to the in the LISP networks from first data center as virtual machine VM
When two data centers, receive the forwarding to the virtual machine configuration and route, the forwarding routing is the master according to the virtual machine
The configuration of the router address of machine address and second data center;
Setting unit, for being set according to the router interface address of first data center and the host address of the virtual machine
The mask-length of the forwarding routing is set, and will be in the forwarding route sending-down to local routing table after the setting;
Retransmission unit, for working as the data message for the virtual machine for receiving far-end server transmission, and it is described virtual
When machine moves to second data center from first data center, then according to virtual machine pair described in local routing table
The forwarding answered is route the data message forwarding to the virtual machine for moving into second data center.
7. device according to claim 6, which is characterized in that forwarding routing includes prefix addresses and next-hop
Location;The prefix addresses are the corresponding network segment address of host address of the virtual machine, and the next hop address is described second
The router address of data center.
8. device according to claim 6, which is characterized in that the setting unit is specifically used for when in first data
When the router interface address of the heart and the host address of the virtual machine are in the same network segment, then by the mask of the forwarding routing
Length be arranged the network segment and the virtual machine belonging to the router interface address of first data center host address it
Between;Alternatively, when the router interface address of first data center and the host address of the virtual machine are not at same net
Duan Shi, then by it is described forwarding routing mask-length be arranged first data center router interface configuration it is transportable
Between the virtual machine network segment and the host address of the virtual machine.
9. device according to claim 7, which is characterized in that described device further includes:
Receiving unit, for moving to from first data center the second data in the LISP networks when the virtual machine
Behind center, the corresponding mapping notice message of the virtual machine that mapping server is sent is received, and notify to report according to the mapping
Text generates the corresponding packet loss routing of the virtual machine;
Issuance unit, being used for will be in the packet loss route sending-down to LISP threads;
SMR message generation units, for when receive far-end server transmission for the virtual machine data message when, root
The corresponding request of the virtual machine, which is generated, according to the packet loss routing in the LISP threads sends mapping request SMR messages;
Transmission unit, for the SMR messages to be sent to far-end server so that the far-end server receive it is described
After SMR messages, mapping request message is sent to mapping server, the routing for relearning the virtual machine after migrating.
10. device according to claim 6, which is characterized in that described device further includes:
Second receiving unit, for receiving the deletion instruction for the corresponding forwarding routing of the virtual machine;
Deleting unit deletes corresponding forwarding routing in local routing table for being instructed according to the deletion.
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 CN104796338A (en) | 2015-07-22 |
CN104796338B true 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603511B (en) * | 2016-11-30 | 2019-06-28 | 中国人民解放军国防科学技术大学 | A kind of LISP data flow processing method based on independent kernel module |
CN108322393B (en) * | 2017-01-18 | 2021-03-16 | 阿里巴巴集团控股有限公司 | Routing link management method and system, virtual routing gateway and host machine gateway |
CN106961487B (en) * | 2017-04-19 | 2020-10-27 | 南京大学 | Data stream self-adaptive adjusting system and method in virtual machine live migration process |
CN109412925B (en) * | 2018-09-30 | 2021-06-18 | 锐捷网络股份有限公司 | Forwarding table item updating method based on VTEP and VTEP |
CN110011859B (en) * | 2019-04-15 | 2022-04-29 | 深信服科技股份有限公司 | Virtual machine control method and cluster system |
CN111988223B (en) * | 2020-08-19 | 2022-04-08 | 杭州迪普科技股份有限公司 | Virtual machine migration method and network system |
CN113326101B (en) * | 2021-08-02 | 2022-04-12 | 阿里云计算有限公司 | Thermal migration method, device and equipment based on remote direct data storage |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8234377B2 (en) * | 2009-07-22 | 2012-07-31 | Amazon Technologies, Inc. | Dynamically migrating computer networks |
-
2015
- 2015-04-24 CN CN201510201122.1A patent/CN104796338B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104796338A (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104796338B (en) | Virtual machine migration method and device | |
CN104780109B (en) | Virtual machine migration method and device | |
CN113132201B (en) | Communication method and device between VPCs | |
US10003571B2 (en) | Method and apparatus for implementing communication between virtual machines | |
CN104506408B (en) | The method and device of data transfer based on SDN | |
US20180217861A1 (en) | Methods and systems for establishing connections associated with virtual machine migrations | |
JP7034187B2 (en) | Data processing methods, network interface cards, and servers | |
US9529623B2 (en) | Method, migration management apparatus, network device, and virtual machine server for migrating virtual machine parameters | |
US10044608B2 (en) | Virtual machine migration | |
US10484307B2 (en) | Method of operating a network entity | |
US20170264496A1 (en) | Method and device for information processing | |
WO2018058677A1 (en) | Message processing method, computing device, and message processing apparatus | |
CN105706043A (en) | Boosting linked list throughput | |
CN104468368B (en) | Configure the method and device of bgp neighbor | |
CN105227466B (en) | Communication processing method and device | |
CN106209644B (en) | A kind of message forwarding method and device based on equivalent route | |
CN105591907B (en) | A kind of route obtaining method and device | |
WO2016184283A1 (en) | Data stream management method and system for virtual machine | |
CN106961487B (en) | Data stream self-adaptive adjusting system and method in virtual machine live migration process | |
US11050647B1 (en) | Simulation-based cross-cloud connectivity checks | |
CN106059923A (en) | Message forwarding method and device | |
WO2015165249A1 (en) | Method and device for establishing service path | |
CN105591935B (en) | The update method and device of EID-RLOC mapping relations after a kind of virtual machine (vm) migration | |
CN104935573B (en) | Virtual machine migration method and device | |
KR20160114401A (en) | Method for switching between IPv4 service and IPv6 service in Locator ID Separation Protocol network environment and Locator ID Separation Protocol network system |
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 |