CN103716378A - Method for on-line migration of virtual machine in wide area network under future network serval - Google Patents
Method for on-line migration of virtual machine in wide area network under future network serval Download PDFInfo
- Publication number
- CN103716378A CN103716378A CN201310669375.2A CN201310669375A CN103716378A CN 103716378 A CN103716378 A CN 103716378A CN 201310669375 A CN201310669375 A CN 201310669375A CN 103716378 A CN103716378 A CN 103716378A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- migration
- address
- network
- serval
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method for on-line migration of a virtual machine in a wide area network under future network serval. The method comprises the following steps: a source host writes migration data of the virtual machine into a standard input stream of a sending progress of migration data; a destination host writes the migration data into a standard output stream of a receiving process of the migration data after receiving the migration data, loads and starts the virtual machine; after receiving of the migration data is completed, a new progress is started to continuously send messages of updating the network state to the virtual machine; and after the virtual machine updates the network state, all streams in the virtual machine are checked, and established network layer address information in the virtual machine is updated. Compared with the prior art, the method for on-line migration of the virtual machine in the wire area network under the future network serval can realize on-line seamless migration of the virtual machine under the wide area network, can enable the virtual machine to be self-adaptive to a new network environment, and enable applications on the virtual machine to be kept continuous in the migration process of the virtual machine, thereby being of great significance to cloud computing and load balance of the future network serval.
Description
Technical field
The present invention relates to cloud computing technology and network communications technology field, especially relate to the online moving method of virtual machine in a kind of wide area network under future network serval.
Background technology
Along with popularizing of computer and developing rapidly of network, there is increasing shortcoming in existing TCP/IP network architecture.Such as, the part that IP address as a token of connects can not change in communication process.In order to change current predicament, there are at present three thinkings.The one,, abandon TCP/IP network completely, build a brand-new network architecture, the XIA researching and developing as U.S. Carnegie Mellon University.The 2nd,, repair the problem occurring in TCP/IP network architecture, as Mobile IP.The 3rd,, be situated between between the above two, change TCP/IP network architecture, the serval researching and developing as Princeton University.
Along with the fast development of network technology, cloud computing technology is complied with requirements of the times and has been climbed up the arena of history.But cloud computing technology must solve two problems, the one,, guarantee user's service-level agreement.The 2nd, carry out effectively and rationally the distribution of resource.Wherein the online migration of virtual machine is in cloud computing technology, to carry out the very promising problem of Resources allocation effectively and rationally.
The online migration of virtual machine can be divided into online migration in local area network (LAN) and the online migration in wide area network at present.In the network architecture of TCP/IP, the online migration of the virtual machine of local area network (LAN) is realized well.But the online migration of virtual machine in wide area network remains a difficult problem.Because when virtual machine (vm) migration is in new network environment time, virtual machine cannot communicate by existing IP address.Now, must revise the IP address of virtual machine, but after having revised IP address, TCP connections all in virtual machine all can be interrupted.
Yet, still blank at present for the research of carrying out the online migration of virtual machine in the new network system.The serval of Princeton University's research and development builds the network of a service-centric by adding a new service access layer SAL (Service Access Layer) between the transport layer at TCP/IP and network layer.Because sign connects in serval, not IP address and port numbers but source ID and the object ID of stream, so can guarantee virtual machine in having arrived new network as long as source ID and the object ID of stream are constant according to this feature, just connect and can not break so.Therefore, we can complete the online migration of virtual machine in wide area network whereby.
Summary of the invention
Object of the present invention is exactly to provide the online moving method of virtual machine in a kind of wide area network under future network serval in order to overcome the defect of above-mentioned prior art existence.
Object of the present invention can be achieved through the following technical solutions: the online moving method of virtual machine in a kind of wide area network under future network serval, it is characterized in that, and comprise the following steps:
S1: first the exec migration pattern by QEMU-KVM is written to the migration data of virtual machine in the standard input stream of migration data transmission process in sourcesink master host, then the socket by serval sends in the migration data receiving process of destination host by the migration data in standard input stream;
S2: after destination host receives migration data, be written in the standard output stream of migration data receiving process, QEMU-KVM reads migration data loading and starts virtual machine from this standard output stream;
S3: after migration data receives, destination host close with sourcesink master host between for receiving and dispatching being connected of migration data, and start a new process and constantly to virtual machine, send to upgrade the message of network state, after virtual machine receives this message, send one and confirm that bag upgrades the network state of oneself to destination host simultaneously;
S4: after virtual machine has upgraded network state, all stream in traversal virtual machine, the network layer address information of the stream of having set up in renewal virtual machine.
Implementation step S3 detailed process is as follows:
(31) after migration data receives, destination host close with sourcesink master host between for receiving and dispatching being connected of migration data, an and local process send_changeAddr_msg who sends renewal virtual machine network state data packets of notice, this process is returned to a confirmation to migration data receiving process after receiving message, and migration data receiving process exits after receiving this confirmation;
(32) packet that upgrades virtual machine networking state of link layer socket structure for process send_changeAddr_msg, the information that this packet comprises IP address, mask and gateway address that virtual machine is new, afterwards, start every 100 milliseconds of timer and send the once packet of the changed network state of structure to virtual machine;
(33) virtual machine (vm) migration is to destination host and after resuming operation, reception comes from the packet of the changed network state of destination host, same, virtual machine confirms that with one of link layer socket structure packet returns to destination host, upgrades oneself the network address and gateway address simultaneously.
The form of the packet of described changed network state is: Ethernet destination address+ethernet source address+type+type of hardware+protocol type+hardware address length+agreement length+action type+source hardware address+source IP address+object hardware address+object IP address+netmask+gateway ip address+and can extended field.
In described data packet format, Ethernet destination address is 6 bytes, and ethernet source address is 6 bytes, type is 2 bytes, and type of hardware is 4 bytes, and protocol type is 4 bytes, hardware address length is 2 bytes, and agreement length is 2 bytes, and action type is 4 bytes, source hardware address is 6 bytes, and source IP address is 4 bytes, and object hardware address is 6 bytes, object IP address is 4 bytes, netmask is 4 bytes, and gateway ip address is 4 bytes, can extended field be 4 bytes; Wherein, type field is 0x0810, and it is 0x0001 that destination host sends to the protocol type field of the packet of virtual machine, and it is 0x0002 that virtual machine sends to the protocol type field of the confirmation packet of destination host.
Implementation step S4 detailed process is as follows:
(41) travel through the stream table of virtual machine, search the source ID of all streams in virtual machine;
(42) according to the source ID of stream, use the function of migration stream in serval, by stream migration to having had on the network interface card of the new network address.
In the online transition process of virtual machine; use the every 100 milliseconds of services of accessing in a virtual machine of application program of serval; and require virtual machine to return to a response packet; after virtual machine (vm) migration finishes; whether verifying virtual machines can continue to provide service; and add up the number that virtual machine is not received response packet in transition process, obtain the downtime of the online migration of virtual machine under serval.
Compared with prior art, the present invention can realize the online seamless migration that carries out virtual machine under wide area network, and can make the network environment that virtual machine self adaptation is new, make to keep constantly in the process that is applied in virtual machine (vm) migration on virtual machine, significant to the cloud computing of future network serval and load balancing.
Accompanying drawing explanation
Fig. 1 is the test envelope schematic diagram of testing the inventive method in embodiment.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Be illustrated in figure 1 the test envelope schematic diagram of test the inventive method, in figure, HOST_A is sourcesink master host, HOST_B is destination host, Service router1 is the default route under the serval of HOST_A, Servicerouter2 is the default route under the serval of HOST_B, and TCP/IP router is router common in current network.
Specific implementation process is as follows:
Step (1): in sourcesink master host HOST_A and destination host HOST_B deploy serval network environment, wherein, the default route of sourcesink master host HOST_A is arranged to Service router1, and specific instructions is :/serval/src/servd/servd-rip 10.60.1.1; The default route of destination host HOST_B is arranged to Servicerouter2, and specific instructions is :/serval/src/servd/servd-rip 10.60.5.1;
Step (2): Service router1 and Service router2 are configured to respectively to the router under serval, order is :/serval/src/servd/servd-r, and Service router1 is added to the default route of sourcesink master host HOST_A, Service router2 is added to the acquiescence road of destination host HOST_B, the same step of adding method (1);
Step (3): start virtual machine HOST_VM on sourcesink master host HOST_A, start-up parameter is:
-m 640-smp 1-drive file=/var/lib/libvirt/images/ubuntu.img, if=virtio, format=raw-net nic, vlan=0, macaddr=52:54:00:6d:82:f9-net tap, vlan=0, ifname=tap0, script=no, wherein, the size of/var/lib/libvirt/images/ubuntu.img is 4G;
Step (4): in virtual machine HOST_VM deploy serval network environment, wherein, the default route of virtual machine HOST_VM is arranged to Service router1, and specific instructions is :/serval/src/servd/servd-rip 10.60.1.1;
Step (5): the receiving process that starts the online migration of virtual machine HOST_VM on destination host HOST_B, Starting mode increases QEMU-KVM after the start-up parameter of virtual machine exec mode for starting at step (3) sourcesink master host HOST_A receives the process of migration data :-incoming/serval/src/test/tcp_server, opens process send_changeAddr_msg simultaneously;
Step (6): input migration order in the monitor of the QEMU of sourcesink master host HOST_A, order to be: migrate-b exec:/serval/src/test/tcp_client;
Step (7): open in virtual machine HOST_VM and wait for the process that receives renewal network state: get_changAddr_msg;
Step (8): open in virtual machine HOST_VM for verifying in linearity and measuring the virtual machine service processes sping_server of downtime;
Step (9): open on sourcesink master host HOST_A for verifying in linearity and measuring the virtual machine client process sping_client of downtime;
Step (10): after migration finishes, check whether the sping_client of sourcesink master host HOST_A still can continue operation, and the packet loss number of this process, obtain downtime.
Claims (6)
1. the online moving method of virtual machine in the wide area network under future network serval, is characterized in that, comprises the following steps:
S1: first the exec migration pattern by QEMU-KVM is written to the migration data of virtual machine in the standard input stream of migration data transmission process in sourcesink master host, then the socket by serval sends in the migration data receiving process of destination host by the migration data in standard input stream;
S2: after destination host receives migration data, be written in the standard output stream of migration data receiving process, QEMU-KVM reads migration data loading and starts virtual machine from this standard output stream;
S3: after migration data receives, destination host close with sourcesink master host between for receiving and dispatching being connected of migration data, and start a new process and constantly to virtual machine, send to upgrade the message of network state, after virtual machine receives this message, send one and confirm that bag upgrades the network state of oneself to destination host simultaneously;
S4: after virtual machine has upgraded network state, all stream in traversal virtual machine, the network layer address information of the stream of having set up in renewal virtual machine.
2. the online moving method of virtual machine in a kind of wide area network under future network serval according to claim 1, is characterized in that, implementation step S3 detailed process is as follows:
(31) after migration data receives, destination host close with sourcesink master host between for receiving and dispatching being connected of migration data, an and local process send_changeAddr_msg who sends renewal virtual machine network state data packets of notice, this process is returned confirmation of net to migration data receiving process after receiving message, and migration data receiving process exits after receiving this confirmation;
(32) packet that upgrades virtual machine networking state of link layer socket structure for process send_changeAddr_msg, the information that this packet comprises IP address, mask and gateway address that virtual machine is new, afterwards, start every 100 milliseconds of timer and send the once packet of the changed network state of structure to virtual machine;
(33) virtual machine (vm) migration is to destination host and after resuming operation, reception comes from the packet of the changed network state of destination host, same, virtual machine confirms that with one of link layer socket structure packet returns to destination host, upgrades oneself the network address and gateway address simultaneously.
3. the online moving method of virtual machine in a kind of wide area network under future network serval according to claim 2, it is characterized in that, the form of the packet of described changed network state is: Ethernet destination address+ethernet source address+type+type of hardware+protocol type+hardware address length+agreement length+action type+source hardware address+source IP address+object hardware address+object IP address+netmask+gateway ip address+and can extended field.
4. the online moving method of virtual machine in a kind of wide area network under future network serval according to claim 3, it is characterized in that, in described data packet format, Ethernet destination address is 6 bytes, ethernet source address is 6 bytes, type is 2 bytes, type of hardware is 4 bytes, protocol type is 4 bytes, hardware address length is 2 bytes, agreement length is 2 bytes, action type is 4 bytes, source hardware address is 6 bytes, source IP address is 4 bytes, object hardware address is 6 bytes, object IP address is 4 bytes, netmask is 4 bytes, gateway ip address is 4 bytes, can extended field be 4 bytes, wherein, type field is 0x0810, and it is 0x0001 that destination host sends to the protocol type field of the packet of virtual machine, and it is 0x0002 that virtual machine sends to the protocol type field of the confirmation packet of destination host.
5. the online moving method of virtual machine in a kind of wide area network under future network serval claimed in claim 1, is characterized in that, implementation step S4 detailed process is as follows:
(41) travel through the stream table of virtual machine, search the source ID of all streams in virtual machine;
(42) according to the source ID of stream, use the function of migration stream in serval, by stream migration to having had on the network interface card of the new network address.
6. the online moving method of virtual machine in a kind of wide area network under future network serval claimed in claim 1; it is characterized in that; in the online transition process of virtual machine; use the every 100 milliseconds of services of accessing in a virtual machine of application program of serval; and require virtual machine to return to a response packet; after virtual machine (vm) migration finishes; whether verifying virtual machines can continue to provide service; and add up the number that virtual machine is not received response packet in transition process, obtain the downtime of the online migration of virtual machine under serval.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310669375.2A CN103716378B (en) | 2013-12-10 | 2013-12-10 | Method for on-line migration of virtual machine in wide area network under future network serval |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310669375.2A CN103716378B (en) | 2013-12-10 | 2013-12-10 | Method for on-line migration of virtual machine in wide area network under future network serval |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103716378A true CN103716378A (en) | 2014-04-09 |
CN103716378B CN103716378B (en) | 2017-02-01 |
Family
ID=50408950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310669375.2A Expired - Fee Related CN103716378B (en) | 2013-12-10 | 2013-12-10 | Method for on-line migration of virtual machine in wide area network under future network serval |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716378B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104184803A (en) * | 2014-08-08 | 2014-12-03 | 同济大学 | DAG based method for adaptively completing online migration of virtual machine in XIA network |
CN104699522A (en) * | 2015-03-17 | 2015-06-10 | 成都艺辰德迅科技有限公司 | Virtual machine dynamic migration method |
CN105227357A (en) * | 2015-09-15 | 2016-01-06 | 清华大学 | Virtual machine policy migration collocation method and device |
CN109981493A (en) * | 2019-04-09 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus for configuring virtual machine network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103077071B (en) * | 2012-12-31 | 2016-08-03 | 北京启明星辰信息技术股份有限公司 | The acquisition methods of a kind of KVM virtual machine progress information and system |
-
2013
- 2013-12-10 CN CN201310669375.2A patent/CN103716378B/en not_active Expired - Fee Related
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104184803A (en) * | 2014-08-08 | 2014-12-03 | 同济大学 | DAG based method for adaptively completing online migration of virtual machine in XIA network |
CN104184803B (en) * | 2014-08-08 | 2017-12-15 | 同济大学 | The method that virtual machine migrates online in adaptive completion XIA networks based on DAG |
CN104699522A (en) * | 2015-03-17 | 2015-06-10 | 成都艺辰德迅科技有限公司 | Virtual machine dynamic migration method |
CN104699522B (en) * | 2015-03-17 | 2017-10-13 | 成都麦进斗科技有限公司 | A kind of dynamic migration of virtual machine method |
CN105227357A (en) * | 2015-09-15 | 2016-01-06 | 清华大学 | Virtual machine policy migration collocation method and device |
CN105227357B (en) * | 2015-09-15 | 2018-10-16 | 清华大学 | Virtual machine policy migration configuration method and device |
CN109981493A (en) * | 2019-04-09 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus for configuring virtual machine network |
CN109981493B (en) * | 2019-04-09 | 2020-05-01 | 苏州浪潮智能科技有限公司 | Method and device for configuring virtual machine network |
Also Published As
Publication number | Publication date |
---|---|
CN103716378B (en) | 2017-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106533883B (en) | A kind of method for building up, the apparatus and system of network special line | |
CN104636184B (en) | The dispositions method and device and equipment of virtual machine instance | |
CN102238230B (en) | Method and system for offloading tunnel packet processing in cloud computing | |
CN102334112B (en) | Method and system for virtual machine networking | |
CN104734931B (en) | Link establishing method and device between a kind of virtual network function | |
CN104320350B (en) | Method and system for providing fiduciary flow control | |
CN104995902B (en) | Method and system for the Seamless Network communication between IPV4 and IPV6 device | |
CN109768871A (en) | Configure method, host and the storage medium of multiple Microsoft Loopback Adapters | |
CN102255903A (en) | Safety isolation method for virtual network and physical network of cloud computing | |
CN108881158A (en) | Data interaction system and method | |
CN108713309A (en) | SD-WAN system, use method of SD-WAN system and related device | |
CN109981375B (en) | Method and apparatus for satellite communication simulation network construction | |
CN106953848B (en) | Software defined network implementation method based on ForCES | |
CN106034077A (en) | Dynamic route configuration method, device and system thereof | |
CN107222324A (en) | The business collocation method and device of network service | |
US9871848B1 (en) | Integration engine for communications between source and target applications | |
CN103716378A (en) | Method for on-line migration of virtual machine in wide area network under future network serval | |
CN106330779A (en) | Server, physical switch, and communication system | |
CN107707557A (en) | Anonymous access method, apparatus, the network equipment and readable storage medium storing program for executing | |
CN110493337A (en) | Data access method, gateway, system, storage medium and device | |
CN114374634A (en) | Message forwarding method and network equipment | |
KR20230162083A (en) | Extend cloud-based virtual private networks to wireless-based networks | |
US20220239583A1 (en) | Systems and methods for implementing multi-part virtual network functions | |
US20070086348A1 (en) | ATN network simulation for testing applications of terminal devices in civil aeronautics | |
CN104639557A (en) | Method and system for establishing PCEP (Path Computation Element Communication Protocol) session and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170201 Termination date: 20191210 |
|
CF01 | Termination of patent right due to non-payment of annual fee |