CN101465812B - Redirection method for virtual machine network connection when on-line migrating striding sub network - Google Patents
Redirection method for virtual machine network connection when on-line migrating striding sub network Download PDFInfo
- Publication number
- CN101465812B CN101465812B CN2009100762292A CN200910076229A CN101465812B CN 101465812 B CN101465812 B CN 101465812B CN 2009100762292 A CN2009100762292 A CN 2009100762292A CN 200910076229 A CN200910076229 A CN 200910076229A CN 101465812 B CN101465812 B CN 101465812B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- subnet
- home agent
- agent
- registration request
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method for redirecting network connection of a virtual machine when being transferred across subnets online, including the steps that: 1, the virtual machine is transferred from a first subnet to a second subnet; 2, a foreign agent arranged in the second subnet sends a registration request to a home agent in the first subnet; 3, after receiving the registration request,the home agent builds a bidirectional data transmission tunnel between the home agent and the foreign agent; 4, the data to be sent to the virtual machine by a communication counterpart terminal is first sent to the home agent and then is sent to the foreign agent by the home agent through the bidirectional data transmission tunnel, and the foreign agent sends the received data to the virtual machine. The method is unnecessary to change the operating system of the virtual machine, can ensure the transparency to the virtual machine in the network redirection process when transferring the virtual machine across the subnets, and can overcome the defect in prior art that data is forwarded between the communication counterpart terminal and the virtual machine through a source host, which leadsto the increase of the load of the source host.
Description
Technical field
The present invention relates to virtual machine technique, relate in particular to a kind of when striding the online migration of subnet virtual machine network connect reorientation method.
Background technology
Under the background of Internet technology develop rapidly, the calculating under the distributed environment is showed its importance and the demand of meeting the tendency widely day by day.But the dynamic and the isomerism of the physical resource layer that wide area distributes are again unmodifiable reality, and therefore, the traditional calculating pattern is demonstrating its increasing limitation.In the traditional calculating pattern; Software is bundled on the bottom hardware with tightly coupled mode, no matter is single cpu mode, the multi-machine collaborative pattern; Or networked patterns such as cluster, all the characteristics such as isomerism, dynamic and distributivity with hardware resource have very big contradiction.So new computation schema---virtual computing technique is arisen at the historic moment.
Utilize Intel Virtualization Technology, can shield of the influence of the isomerism of hardware effectively upper layer software (applications).The effect that the while virtual machine also has isolation software is deployed in the operation each other of the software in the different virtual machine on the same physical host with influencing.Now, the speed of the update of hardware resource is very fast, and problems such as hardware fault, equipment downtime maintenance possibly occur.In the face of the problems that hardware resource occurs often, the online migrating technology of virtual machine just nature has been carried.Utilize online migrating technology, can tackle the challenge that the dynamic of hardware is brought, let the running status of upper layer software (applications) operation need not the variation of perception bottom hardware resource.And under the network environment of complicacy; How can let virtual machine between network, move fast, pellucidly; Thereby can make up flexible, virtual network topology; And then masking of the influence of the distributivity of hardware resource to running software, this just must study how to utilize various virtual networks connection redirecting techniques.
At present, how to realize that the network that virtual machine is striden when subnet is online to be moved connects the redirected hot research problem that become.
Prior art one provides a kind of virtual proprietary network (Virtual Private Network; Be called for short VPN) technical scheme; This scheme belongs to after the source of virtual machine end main frame and migration and sets up a VPN passage between the destination main frame, and like this, the virtual machine after the migration just can be connected in the network at end main frame place, source through the VPN passage; So just can be transparent to virtual machine, the access to netwoks mode need not change.But the problem that this scheme is brought is: behind the virtual machine (vm) migration, source end main frame still needs transmission network and the mutual message of virtual machine, and this can increase the live load of source end main frame, thereby can reduce the runnability of entire environment.
Prior art two provides a kind of dynamic IP tunnel configuration method, is specially: virtual machine (vm) migration arrives after the new subnet, dynamically sets up a tunnel between the physical host at virtual machine place and the PERCOM peripheral communication opposite end.The shortcoming of this method is that the configuration behavior in tunnel can not keep transparent to the communication node of outside.
Prior art three provides a kind of mobile IP technology, and this technology is regarded virtual machine as in the network mobile node, lets virtual machine move the mobile IP protocol stack in the transition process, moves thereby be implemented between the different sub-network, reaches the purpose that continues to keep communication.But, this scheme need be in virtual machine the installation and moving IP stack, promptly need revise VME operating system.
Summary of the invention
The objective of the invention is to the problem that exists in the prior art; Provide a kind of when striding the online migration of subnet virtual machine network connect reorientation method; Need not revise VME operating system; Can in the virtual machine (vm) migration process, keep the IP address of virtual machine constant, keep virtual machine (vm) migration to operating in the transparency of the program in the virtual machine, and can reduce the load of the mutual message of source end main frame transmission network and virtual machine behind virtual machine (vm) migration.
To achieve these goals, the invention provides a kind of when striding the online migration of subnet virtual machine network connect reorientation method, comprising:
Said step 3 specifically comprises: the correctness of authorization information in the said proxy registration request message that said home agent checking receives; If said authorization information is correct; And the value of the term of validity is greater than 0 described in the said proxy registration request message; The IP address of the said virtual machine that then said home agent basis parses from said proxy registration request message and said external agent's IP address, the bidirectional data transfers passage between foundation and the said external agent.
The present invention provides that virtual machine network connects reorientation method when striding the online migration of subnet; Home agent and the bidirectional data transfers tunnel between the external agent in second subnet in first subnet have been set up; Like this; If Correspondent Node has the virtual machine after data need send to migration, can send to home agent earlier so, home agent sends the data to the external agent through the bidirectional data transfers tunnel then; And then send the data to virtual machine by the external agent, that has realized that virtual machine network connects is redirected.In this process, the IP address of virtual machine does not change, can guarantee for the transparency that operates in the program in the virtual machine, and keep with migration after the outside communication node of subnet between the communicating by letter of close friend.Behind virtual machine (vm) migration; The redirected of virtual machine network is to be realized with the external agent who is arranged in second subnet by the home agent that is arranged in first subnet; Need not the participation of virtual machine; The network redirection process is transparent to virtual machine in the time of can guaranteeing virtual machine (vm) migration like this, and after network redirection, and the outside Correspondent Node of second subnet sends to the data of virtual machine can be through transmitting between home agent and the external agent; The source end main frame that need not in first subnet is participated in data forwarding, and having overcome needs remote host to transmit the defective that data cause source end main unit load to increase behind the virtual machine (vm) migration in the prior art.
Through accompanying drawing and embodiment, technical scheme of the present invention is done further detailed description below.
Description of drawings
Shown in Figure 1 when striding the online migration of subnet for the present invention virtual machine network connect reorientation method embodiment one flow chart;
Shown in Figure 2 when striding the online migration of subnet for the present invention virtual machine network connect the Redirectional system structural representation;
Shown in Figure 3 when striding the online migration of subnet for the present invention virtual machine network connect reorientation method embodiment two flow charts.
Embodiment
Virtual machine network connects reorientation method embodiment one flow chart when being illustrated in figure 1 as the present invention and striding the online migration of subnet, comprising:
Through above method; Set up home agent and the bidirectional data transfers tunnel between the external agent in second subnet in first subnet, like this, if Correspondent Node has the virtual machine after data need send to migration; Can send to home agent earlier so; Home agent sends the data to the external agent through the bidirectional data transfers tunnel then, and then sends the data to virtual machine by the external agent, and it is redirected to have realized that virtual machine network connects.In this process, the IP address of virtual machine does not change, can guarantee for the transparency that operates in the program in the virtual machine, and keep with migration after the outside communication node of subnet between the communicating by letter of close friend.Behind virtual machine (vm) migration; The redirected of virtual machine network is to be realized with the external agent who is arranged in second subnet by the home agent that is arranged in first subnet; Need not the participation of virtual machine; The network redirection process is transparent to virtual machine in the time of can guaranteeing virtual machine (vm) migration like this, and after network redirection, and the outside Correspondent Node of second subnet sends to the data of virtual machine can be through transmitting between home agent and the external agent; The source end main frame that need not in first subnet is participated in data forwarding, and having overcome needs remote host to transmit the defective that data cause source end main unit load to increase behind the virtual machine (vm) migration in the prior art.
Virtual machine network connects the reorientation method realization flow when introducing the present invention below in detail and striding the online migration of subnet.
Virtual machine network connects the Redirectional system structural representation when being illustrated in figure 2 as the present invention and striding the online migration of subnet, and in this system, home agent 211 is arranged in first subnet 21, and external agent 221 is arranged in second subnet 22; Home agent 211 is used to safeguard virtual machine address binding message, and simultaneously, the end as the bidirectional data transfers tunnel carries out data encapsulation and decapsulation; External agent 221 is used to find the network insertion of virtual machine, initiates register requirement to home agent, as an end in bidirectional data transfers tunnel, carries out data encapsulation and decapsulation simultaneously.Communicate between Correspondent Node 24 and the virtual machine 23.
In the system shown in Figure 2, at first, virtual machine is initiated the migration from the source end main frame of first subnet to the destination main frame of second subnet; Virtual machine continues on the end main frame of source, to move; Virtual machine (vm) migration finishes then, and virtual machine stops on the end main frame of source and moves, and virtual machine network connects interruption.
Then, virtual machine starts on the destination main frame, and begins to start virtual machine network.Virtual machine network connects reorientation method embodiment two flow charts when being illustrated in figure 3 as the present invention and striding the online migration of subnet, comprising:
Whether step 104, home agent judge the value of the term of validity (Lifetime) field in the PRRQ message greater than 0, if the value of the term of validity (Lifetime) field greater than 0, shows that then this PRRQ message is a register requirement, execution in step 105; If it is to remove register requirement, execution in step 111 that the value of the term of validity (Lifetime) field, then shows this PRRQ message smaller or equal to 0.
If virtual machine is out of service or move out of second subnet, then can activates the external agent and initiate virtual machine releasing registering functional.The external agent is encapsulated into the IP address (HoA) of virtual machine, external agent's itself IP address (CoA), the term of validity (Lifetime) field and authorization information (Identification) etc. in the UDP message, i.e. PRRQ message, and send it to home agent.The value of the term of validity in the PRRQ message (Lifetime) field is set to 0, shows that this PRRQ message is the message that registration is removed in request.Home agent is after receiving that this is used to contact the PRRQ message of registration; (HoA, CoA, the term of validity (Lifetime)) clauses and subclauses of this virtual machine of deletion in the address binding information database; The home agent deletion is deleted the bidirectional data transfers tunnel about the HoA routing iinformation of this virtual machine.
In step 101 virtual machine activation network; Home agent can be waited for the PRRQ message from the external agent in background process; Home agent safeguards that in background process is removed a registered events formation simultaneously, if expire the releasing registered events, then home agent is deleted the (HoA that relates in this releasing registered events in the address binding information database; CoA, the term of validity (Lifetime)) clauses and subclauses.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.
Claims (3)
1. a virtual machine network when striding the online migration of subnet connects reorientation method, it is characterized in that, comprising:
Step 1, virtual machine are moved to second subnet from first subnet;
Step 2, the home agent of external agent in being arranged on said first subnet that is arranged in said second subnet are initiated the proxy registration request message, comprise in the said proxy registration request message: the IP address of said virtual machine, said external agent's IP address, the term of validity and the authorization information of this registration;
Step 3, said home agent after receiving said proxy registration request message, set up and said external agent between the bidirectional data transfers tunnel;
Step 4, the data that Correspondent Node is desired to send to said virtual machine send to said home agent earlier; And sending to said external agent through said bidirectional data transfers tunnel by said home agent, said external agent sends to said virtual machine with the data that receive;
Said step 3 specifically comprises: the correctness of authorization information in the said proxy registration request message that said home agent checking receives; If said authorization information is correct; And the value of the term of validity is greater than 0 described in the said proxy registration request message; The IP address of the said virtual machine that then said home agent basis parses from said proxy registration request message and said external agent's IP address, the bidirectional data transfers passage between foundation and the said external agent.
2. according to claim 1 when striding the online migration of subnet virtual machine network connect reorientation method; It is characterized in that; Also comprise: said external agent periodically initiates register update, the term of validity that prolongs the virtual machine log-on message in the said proxy registration request message to said home agent.
3. according to claim 1 when striding the online migration of subnet virtual machine network connect reorientation method, it is characterized in that said proxy registration request message is a user datagram protocol message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100762292A CN101465812B (en) | 2009-01-06 | 2009-01-06 | Redirection method for virtual machine network connection when on-line migrating striding sub network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100762292A CN101465812B (en) | 2009-01-06 | 2009-01-06 | Redirection method for virtual machine network connection when on-line migrating striding sub network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101465812A CN101465812A (en) | 2009-06-24 |
CN101465812B true CN101465812B (en) | 2012-03-21 |
Family
ID=40806182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100762292A Expired - Fee Related CN101465812B (en) | 2009-01-06 | 2009-01-06 | Redirection method for virtual machine network connection when on-line migrating striding sub network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101465812B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102214117B (en) * | 2010-04-07 | 2014-06-18 | 中兴通讯股份有限公司南京分公司 | Virtual machine management method, system and server |
CN102185774A (en) * | 2011-05-10 | 2011-09-14 | 中兴通讯股份有限公司 | Method, monitor and system for seamless migration of virtual machine |
US9116736B2 (en) * | 2012-04-02 | 2015-08-25 | Cisco Technology, Inc. | Virtualized movement of enhanced network services associated with a virtual machine |
US8997094B2 (en) * | 2012-06-29 | 2015-03-31 | Pulse Secure, Llc | Migrating virtual machines between computing devices |
US9081603B2 (en) * | 2012-07-09 | 2015-07-14 | Cisco Technology, Inc. | Packet forwarding optimization with virtual machine mobility by comparing device identifiers to determine VM movement |
CN102801715B (en) * | 2012-07-30 | 2015-03-11 | 华为技术有限公司 | Method for virtual machine migration in network, gateway and system |
CN103631652B (en) * | 2012-08-28 | 2018-09-28 | 中兴通讯股份有限公司 | The realization method and system of virtual machine (vm) migration |
US8910162B2 (en) * | 2012-11-30 | 2014-12-09 | International Business Machines Corporation | User datagram protocol (UDP) packet migration in a virtual machine (VM) migration |
CN104052666B (en) | 2013-03-14 | 2018-05-11 | 新华三技术有限公司 | The method and apparatus for realizing host routing reachable |
CN104113459A (en) | 2013-04-16 | 2014-10-22 | 杭州华三通信技术有限公司 | Method for smoothly migrating virtual machine in Ethernet virtual interconnection (EVI) network, and device for smoothly migrating virtual machine in EVI network |
CN103346900B (en) * | 2013-05-31 | 2016-12-28 | 华为技术有限公司 | Method for configuring route after live migration of virtual machine and gateway in big double layer network |
CN103546556B (en) * | 2013-10-22 | 2017-04-05 | 同济大学 | One kind online moving method of virtual machine in future network XIA |
US10013276B2 (en) | 2014-06-20 | 2018-07-03 | Google Llc | System and method for live migration of a virtualized networking stack |
US9912584B2 (en) * | 2014-11-07 | 2018-03-06 | Cisco Technology, Inc. | Data center inbound routing optimization in the event of virtual machine mobility |
CN113691436B (en) * | 2021-09-07 | 2023-04-18 | 中国联合网络通信集团有限公司 | Virtual machine migration method and virtual machine migration device |
CN114301994B (en) * | 2021-12-29 | 2023-09-19 | 迈普通信技术股份有限公司 | Dual-stack conversion method, device, network equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1411231A (en) * | 2002-10-17 | 2003-04-16 | 武汉邮电科学研究院 | Data packet transmission method in mobile IP |
CN1564508A (en) * | 2004-03-22 | 2005-01-12 | 西安电子科技大学 | Anonymous connection method of broadband radio IP network |
-
2009
- 2009-01-06 CN CN2009100762292A patent/CN101465812B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1411231A (en) * | 2002-10-17 | 2003-04-16 | 武汉邮电科学研究院 | Data packet transmission method in mobile IP |
CN1564508A (en) * | 2004-03-22 | 2005-01-12 | 西安电子科技大学 | Anonymous connection method of broadband radio IP network |
Also Published As
Publication number | Publication date |
---|---|
CN101465812A (en) | 2009-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101465812B (en) | Redirection method for virtual machine network connection when on-line migrating striding sub network | |
US20210044675A1 (en) | Methods Circuits Devices Systems and Functionally Associated Computer Executable Code for Facilitating Edge Computing on a Mobile Data Communication Network | |
CN102457586B (en) | Expanding method for realizing double-layer network and expanded double-layer network | |
CN101459618B (en) | Data packet forwarding method and device for virtual machine network | |
EP2381647B1 (en) | Session migration in content-centric networks | |
CN102413046B (en) | Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment | |
CN102255736B (en) | Control the method for mobile terminal, home hub and accessed hub | |
US10270622B2 (en) | Method for enabling mobility of client devices in large scale unified networks | |
CN104144205A (en) | Method for multi-tenant virtual access point-network resources virtualization | |
CN102457583A (en) | Realization method of mobility of virtual machine and system thereof | |
KR20140057553A (en) | - virtualization gateway between virtualized and non-virtualized networks | |
CN100583877C (en) | Method, device and system for distributing server requests among a cluster of servers that have registered as mobile nodes | |
CN102316043B (en) | Port virtualization method, switch and communication system | |
CN104995902A (en) | Methods and systems for seamless network communication between IPV4 and IPV6 devices | |
CN113364660B (en) | Data packet processing method and device in LVS load balancing | |
CN102946351A (en) | Data transmission method and system | |
BR112022005854B1 (en) | PROXY SERVER TO ENABLE REMOTE MANAGEMENT OF A PROFILE IN AN IDENTITY MODULE ON A NARROBAND INTERNET OF THINGS DEVICE AND RELATED METHOD | |
CN101785283A (en) | Methods and devices for communicating diagnosis data in a real time communication network | |
CN102594886B (en) | Method and device for direct communication between browsers, and communication system | |
CN111158865A (en) | Method for realizing multiplexing virtual serial port | |
CN103974332A (en) | Mobile Director | |
WO2001076151A2 (en) | Unicast agent advertisement based on layer 2 and layer 3 motion detection | |
CN102025604B (en) | Carrying network and data transmission method | |
CN101796769B (en) | Ipv6 over ipv4 transition method and apparatus for improving performance of control server | |
KR20120065131A (en) | Apparatus and method for multi-terminal virtualization |
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: 20120321 Termination date: 20180106 |
|
CF01 | Termination of patent right due to non-payment of annual fee |