CN103346900B - Method for configuring route after live migration of virtual machine and gateway in big double layer network - Google Patents

Method for configuring route after live migration of virtual machine and gateway in big double layer network Download PDF

Info

Publication number
CN103346900B
CN103346900B CN201310211338.7A CN201310211338A CN103346900B CN 103346900 B CN103346900 B CN 103346900B CN 201310211338 A CN201310211338 A CN 201310211338A CN 103346900 B CN103346900 B CN 103346900B
Authority
CN
China
Prior art keywords
gateway
subnet
address information
passage
bag
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
Application number
CN201310211338.7A
Other languages
Chinese (zh)
Other versions
CN103346900A (en
Inventor
林洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310211338.7A priority Critical patent/CN103346900B/en
Publication of CN103346900A publication Critical patent/CN103346900A/en
Application granted granted Critical
Publication of CN103346900B publication Critical patent/CN103346900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments provide in a kind of big double layer network the method for configuring route after live migration of virtual machine and gateway.Method includes: the address information of VM that gateway obtains the first subnet of moving into and the address information of CN communicated with VM, wherein, VM from the second subnet thermophoresis to the first subnet;Gateway sets up request message according to the address information of CN to CN sendaisle, and wherein, Path Setup request message is set up the passage between gateway and CN for request and configures channel to the route of CN to VM.In the embodiment of the present invention, gateway is by obtaining thermophoresis to the address information of the VM of gateway place subnet and the address information of CN that communicates with VM, and set up request message to set up gateway to the passage of CN the route that configures channel between CN to VM to CN sendaisle, shorten the routed path between CN to VM, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.

Description

Method for configuring route after live migration of virtual machine and gateway in big double layer network
Technical field
The present embodiments relate to computer network field, and more particularly, to the big two layers of net of one Method for configuring route after live migration of virtual machine and gateway in network.
Background technology
Cloud computing and Intel Virtualization Technology make people that deployment and the management of data center are proposed new demand, Information isolation is realized and in data including many tenants (Multi-tenant) management, multiple virtual network The heart, realize VLAN (Virtual LAN, VLAN) global deployment etc..
Big double layer network technology by utilizing Internet protocol (Internet Protocol, IP) tunneling technique, Make can interconnect between VLAN, form an overlapping overlay network on an IP network (Overlay network).
But, after virtual machine (Virtual Machine, VM) thermophoresis (live migration), with The peer node (Corresponding Node, CN) of VM communication is not aware that the migration action of VM, Network before still migrating with VM keeps being connected, and the data sent from peer node CN arrive at source net After network, then it route via the inside of big double layer network, arrive at the network after VM migrates, thus produce one Big going for a stroll on individual communication path, the delay causing VM with CN to communicate increases, and this phenomenon claims For traffic trombone phenomenon.
Summary of the invention
The embodiment of the present invention provides the method for configuring route in a kind of big double layer network after live migration of virtual machine And gateway, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
First aspect, it is provided that method for configuring route after live migration of virtual machine in a kind of big double layer network, The method includes: gateway obtains the address information of the virtual machine VM of the first subnet of moving into and leads to this VM The address information of peer node CN of letter, wherein, this gateway be in this first subnet for this first The gateway of the external network interaction data of subnet, this VM from the second subnet thermophoresis to this first subnet; This gateway sets up request message according to the address information of this CN to this CN sendaisle, and wherein, this leads to Road is set up request message and is set up the passage between this gateway and this CN for request and be configured to by this passage In the route of this CN to this VM, this passage is for transmitting the packet between this CN and this VM.
In conjunction with first aspect, in the implementation that the first is possible, the method also includes: this gateway connects Receive the Path Setup confirmation message that this CN sends according to this Path Setup request message;This gateway is according to being somebody's turn to do Path Setup confirms this passage of the message arrangement port at this gateway;This passage is configured to this by this gateway In the route of VM to this CN.
In conjunction with the first possible implementation of first aspect or first aspect, in the reality that the second is possible In existing mode, the address information of the virtual machine VM that this gateway obtains the first subnet of moving into includes implementing For: the ARP that this gateway obtains from this second subnet asks bag, at this first son This ARP request bag of net broadcast transmission, this ARP request bag carries the IP address information of this VM; This gateway obtains the arp response bag that this VM is returned, this arp response according to this ARP request bag Bag carries the mac address information of this VM;This gateway is according to this ARP request bag and this arp response Bag obtains the address information of this VM, and the address information of this VM includes IP address and this VM of this VM MAC Address.
In conjunction with the implementation that the second of first aspect is possible, in the implementation that the third is possible, This gateway obtains the address information of the peer node CN communicated with this VM and is implemented as: this gateway obtains This gateway of learning from else's experience arrives the packet of this VM, and this packet carries the IP address information of this CN; This gateway obtains the address information of this CN according to this packet, and the address information of this CN includes this CN IP address information.
In conjunction with the first possible implementation of first aspect or first aspect to the 3rd of first aspect Plant any one possible implementation in possible implementation, in the 4th kind of possible implementation, It is implemented as: this Path Setup request message carries the IP address letter of the type of this passage, this gateway Breath and port information.
Second aspect, it is provided that a kind of gateway, this gateway includes: acquiring unit, moves into for acquisition The address information of the virtual machine VM of one subnet and the address letter of peer node CN communicated with this VM Breath, wherein, this gateway is for the external network interaction data with this first subnet in this first subnet Gateway, this VM from the second subnet thermophoresis to this first subnet;Output unit, for according to this CN Address information to this CN sendaisle set up request message, wherein, this Path Setup request message use Set up the passage between this gateway and this CN in request and this passage is updated this CN to this VM's In route, this passage is for transmitting the packet between this CN and this VM.
In conjunction with second aspect, in the implementation that the first is possible, this gateway also includes: input block, The Path Setup sent according to this Path Setup request message for receiving this CN confirms message;Configuration is single Unit, for confirming this passage of the message arrangement port at this gateway according to this Path Setup;This dispensing unit It is additionally operable to be configured to by this passage in the route of this VM to this CN.
In conjunction with the first possible implementation of second aspect or second aspect, in the reality that the second is possible In existing mode, in the address information of the virtual machine VM obtaining the first subnet of moving into, this acquiring unit is concrete It is embodied as: obtain the ARP from this second subnet and ask bag, and single by output Unit sends this ARP request bag at this first subnet broadcast, and this ARP request bag carries the IP of this VM Address information;Obtain the arp response bag that this VM is returned, this ARP according to this ARP request bag Respond packet carries the mac address information of this VM;According to this ARP request bag and this arp response Bag obtains the address information of this VM, and the address information of this VM includes IP address and this VM of this VM MAC Address;Correspondingly, this output unit is additionally operable to send this ARP at this first subnet broadcast Request bag.
In conjunction with the implementation that the second of second aspect is possible, in the implementation that the third is possible, Obtaining the address information of the peer node CN communicated with this VM, this acquiring unit is implemented as: Obtaining the packet arriving this VM through this gateway, this packet carries the IP address letter of this CN Breath;Obtain the address information of this CN according to this packet, the address information of this CN includes this CN's IP address information.
In conjunction with the first possible implementation of second aspect or second aspect to the 3rd of second aspect Plant any one possible implementation in possible implementation, in the 4th kind of possible implementation, It is implemented as: this Path Setup request message carries the IP address letter of the type of this passage, this gateway Breath and port information.
Based on above technical scheme, the method for configuring route after live migration of virtual machine and net in big double layer network Close, by obtaining thermophoresis to the address information of the VM of gateway place subnet and the CN that communicates with VM Address information, and to CN sendaisle set up request message with set up gateway to the passage of CN and general Passage is configured to the route between CN to VM, shortens the routed path between CN to VM, energy Enough reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to embodiment or existing skill In art description, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below It is only some embodiments of the present invention, for those of ordinary skill in the art, is not paying creation Property work on the premise of, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram before embodiment of the present invention live migration of virtual machine.
Fig. 2 is the application scenarios schematic diagram after embodiment of the present invention live migration of virtual machine.
Fig. 3 is the one of the method for configuring route after the embodiment of the present invention big double layer network live migration of virtual machine Schematic flow sheet.
Fig. 4 is another of the method for configuring route after the embodiment of the present invention big double layer network live migration of virtual machine Plant schematic flow sheet.
Fig. 5 is the applied field that passage is set up in request after the embodiment of the present invention big double layer network live migration of virtual machine Scape schematic diagram.
Fig. 6 is the routing configuration effect signal after the embodiment of the present invention big double layer network live migration of virtual machine Figure.
Fig. 7 is the interaction flow of the communication means after the embodiment of the present invention big double layer network live migration of virtual machine Figure.
Fig. 8 is the structural representation of embodiment of the present invention gateway.
Fig. 9 is the structural representation of another gateway of the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment be a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound The every other embodiment obtained under the property made work premise, broadly falls into the scope of protection of the invention.
To facilitate understanding of the present embodiment of the invention, first introduce at this during embodiment of the present invention describes and can introduce Several key elements.
To facilitate understanding of the present embodiment of the invention, first introduce at this during embodiment of the present invention describes and can introduce Several key elements:
Virtual machine VM, refer to by software virtual machine can simulate on a physical computer one or The computer that person's multiple stage is virtual, and these virtual machines are operated just as real computer, virtual Can install operating system and application program on machine, virtual machine may also access Internet resources.For virtual For the application program run in machine, virtual machine similarly is to be operated in real computer.
Big double layer network technology, refers to utilize the technology such as tunnel, makes VLAN can cross over Internet protocol (Internet Protocol, IP) network, it is achieved the technology that double layer network interconnects.It addition, this The big double layer network technology mentioned in bright, refers to use IP network interconnection technique, it is achieved cross over three-layer network Two layers of extended network technology, include but not limited to virtual extended LAN (Virtual eXtensible Local Area Network, VxLAN) technology, generic route encapsulation network virtualization (Network Virtualization using Generic Routing Encapsulation, NVGRE) technology, nerve of a covering Network transfer of virtual (Overlay Transport Virtualization, OTV) etc..
Thermophoresis (live migration), refers to the process that VM migrates between different physical hosts.Move VM not power down during shifting, after migration VM medium education ((Media Access Control, MAC) address and IP address keep constant.
Traffic trombone phenomenon, refers to that the information of network internal comes and goes flowing.In cloud computing environment After VM thermophoresis, data can be first dealt into the former network of VM by the CN communicated with, then through excessive two layers Network internal is routed to VM, forms big going for a stroll on communication path, causes communication delay increase etc. Problem.
Gateway (Gateway, GW), is that a network is connected to another network " critical point ", also known as Gateway, protocol converter.Gateway, on the level of the transport layer to realize network interconnection, is the most complicated net Network interconnection equipment, is only used for two different network interconnections of upper-layer protocol.Gateway both may be used for wide area network Interconnection, it is also possible to for local area network interconnection.Gateway is a kind of computer system serving as conversion important task or sets Standby.Using different communication protocol, data form or language, even architecture diverse two Between the system of kind, gateway is a translater.Pass on information different the most simply from bridge, gateway pair The information received to be repacked, with the demand of adaptation to end system.Meanwhile, gateway can also provide Filter and security function.
Fig. 1 is the application scenarios schematic diagram before embodiment of the present invention live migration of virtual machine.In Fig. 1, virtual Machine (Virtual Machine, VM) 108 is in the second subnet, by GW103 through router 102 Communicate with peer node (Corresponding Node, CN) 101.In Fig. 1, router 102 is One concept referred to, refers to the router of network.GW103 is for sub with second in second subnet The gateway of the external network interaction data of net.The external network of the second subnet, can be first in FIG Subnet or the subnet at CN101 place.VM108 prepares to migrate to the first subnet from the second subnet.Here The second subnet can be understood as source subnet, the first subnet can be understood as targeted subnet.
Fig. 2 is the application scenarios schematic diagram after embodiment of the present invention live migration of virtual machine.As in figure 2 it is shown, VM108 is after the second subnet thermophoresis to the first subnet, and the CN101 communicated with VM108 is to VM The packet sent can the most first arrive at the second subnet, through the ARP of inside and the road of excessive double layer network By mechanism, arrive at first subnet at VM108 place.As in figure 2 it is shown, the packet that CN101 sends Can be through router 102, GW103, the second subnet VxLAN agent node (VxLAN Tunnel End Point, VTEP) 104, router 105, VTEP106, GW107, arrive VM108.Fig. 2 In, router 102 and router 105 are concepts referred to, and refer to the router on network.GW 103 is for the gateway with the external network interaction data of the second subnet in the second subnet;GW107 is For the gateway with the external network interaction data of the first subnet in first subnet.The extranets of the second subnet Network can be the first subnet or the subnet at CN101 place in fig. 2.The external network of the first subnet exists Fig. 2 can be the second subnet or the subnet at CN101 place.VM108 migrates to from the second subnet After one subnet, the second subnet can be set up and VM108 by the tunnel of VTEP104 Yu VTEP106 Connection.
Certainly, in the present invention, the scene shown in Fig. 1 and Fig. 2 is only a schematic diagram, is not offered as The scene of embodiments of the invention application is only limitted to the network node shown in figure, it is also possible to institute in figure The node shown is made certain interpolation, is deleted or replace, as long as not affecting the operation of embodiment of the present invention method, The embodiment of the present invention is not restricted at this.
It addition, the second subnet that the present invention mentions Anywhere refers both to the subnet at the front place of VM thermophoresis; The first subnet that the present invention mentions Anywhere refers both to the subnet at place after VM thermophoresis.
It addition, in the present invention, the concrete form of the CN communicated with VM, can be PC, virtual Machine or other form, this is not restricted for the embodiment of the present invention.
Fig. 3 is the one of the method for configuring route after the embodiment of the present invention big double layer network live migration of virtual machine Schematic flow sheet.The method of Fig. 3 is performed by gateway.
301, the address information of VM that gateway obtains the first subnet of moving into and the opposite end communicated with this VM The address information of node CN.
Wherein, for the net with the external network interaction data of the first subnet during this gateway is the first subnet Close, this VM from the second subnet thermophoresis to the first subnet.When VM thermophoresis to the first subnet, IP Address and MAC Address are constant.
As a example by Fig. 2, the second subnet can be by the VTEP104 and the VTEP of the first subnet of the second subnet The connection with VM108 is set up in the tunnel of 106.The GW107 of the first subnet can check VTEP104 The packet carried with the tunnel of VTEP106, the virtual machine VM108 of first subnet that finds to move into, And obtain the address information of the CN101 communicated with VM108.
302, this gateway sets up request message according to the address information of this CN to this CN sendaisle.
Wherein, this Path Setup request message sets up the passage of this VM and this CN for request, and will Passage is configured in the route of this CN to this VM, and this passage is for transmitting the number between CN and VM According to bag.
Gateway can be such as to the scene of this CN sendaisle foundation request message according to the address information of this CN Shown in Fig. 5.Fig. 5 is the scene schematic diagram that passage is set up in request after embodiment of the present invention live migration of virtual machine. In Fig. 5, GW107 sets up request via router 105 to CN101 sendaisle, to ask to set up This passage is also configured between GW107 and CN101 by passage between GW107 and CN101 In route.In Fig. 5, although the tunnel of VTEP104 Yu VTEP106 also passes through router 105, but The passage two being not offered as between the tunnel of VTEP104 and VTEP106, GW107 and CN101 Identical router is necessarily comprised between person.
Visible, in the embodiment of the present invention, gateway is by the VM's of acquisition thermophoresis to gateway place subnet Address information and the address information of CN communicated with VM, and set up request message to CN sendaisle To set up gateway to the passage of CN the route that configures channel between CN to VM, shorten Routed path between CN to VM, it is possible to after reducing big double layer network VM thermophoresis to a certain extent Communication delay.
Fig. 4 is another of the method for configuring route after the embodiment of the present invention big double layer network live migration of virtual machine Plant schematic flow sheet.
Alternatively, as shown in Figure 4, send logical at this gateway to this CN according to the address information of this CN After request message is set up in road, the method may also include that
303, this gateway receives the Path Setup confirmation that this CN sends according to this Path Setup request message Message.
After CN receives Path Setup request message, if agreeing to set up passage, then collocation channel is at CN The port of side, and set up confirmation message to gateway sendaisle, instruction gateway collocation channel is at gateway side Port.
304, this gateway confirms this passage of the message arrangement port at this gateway according to this Path Setup.
Gateway confirms message according to Path Setup, completes the passage configuration at gateway side.
305, this passage is configured in the route of this VM to this CN by this gateway.
After gateway sets up passage, this passage can be configured in the route between VM to CN.Now, The effect that CN with VM communicates can be as shown in Figure 6.Fig. 6 is that the big double layer network of the embodiment of the present invention is virtual Routing configuration effect schematic diagram after machine thermophoresis.Data in Fig. 6, between CN101 and VM108 Bag is transmitted by the passage of CN101 with GW107, is no longer pass through the second subnet.
Visible, in the embodiment of the present invention, gateway confirms the message arrangement passage end at gateway side according to passage Mouthful, and this passage is configured in the route of this VM to this CN, shorten between VM to CN Routed path, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Alternatively, in step 301, the address information of the VM that this gateway obtains the first subnet of moving into can be wrapped Include: this gateway obtains address resolution protocol (the Address Resolution from this second subnet Protocol, ARP) to ask bag and send this ARP request bag at this first subnet broadcast, this gateway obtains Taking the arp response bag that this VM is returned according to this ARP request bag, this gateway please according to this ARP Bag and this arp response bag is asked to obtain the address information of this VM.Wherein, this ARP request bag portability Having the IP address information of this VM, this arp response bag portability has the mac address information of this VM, The address information of this VM can include the IP address information of this VM and the mac address information of this VM. Gateway is obtaining after the VM arp response bag to ARP request bag, can confirm that this VM is for newly moving into the The VM of one subnet, and obtain the address information (including IP address and MAC Address) of this VM.With Time, the second subnet passes through ARP flow process, can set up the route that the second subnet communicates with VM.
Further, the address information of the CN that the acquisition of this gateway communicates with this VM comprises the steps that this gateway Obtaining the packet arriving this VM through this gateway, this gateway obtains the ground of this CN according to this packet Location information.Wherein, this packet portability has the IP address information of this CN, the address information of this CN The IP address information of this CN can be included.Certainly, this packet is gone back the IP address of this VM of portability Information and/or the mac address information of this VM.
Alternatively, the request of this Path Setup type of this passage of portability, the IP address information of this gateway And port information.
Visible, in the embodiment of the present invention, gateway is by the VM's of acquisition thermophoresis to gateway place subnet Address information and the address information of CN communicated with VM, set up the passage between CN and this led to Road is configured in the route between VM and CN, shortens the routed path between VM and CN, energy Enough reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Below in conjunction with specific embodiment, the method for the embodiment of the present invention is further described.
Fig. 7 is embodiment of the present invention communication means idiographic flow schematic diagram, be applied to as shown in Figure 1, Figure 2, In application scenarios described in Fig. 5 or Fig. 6.Wherein, the first subnet GW is for in first subnet The gateway of one subnet external network interaction data, the second subnet GW is for sub with second in second subnet The gateway of net external network interaction data.
701, VM communicate with CN on the second subnet.
702, VM from the second subnet thermophoresis to the first subnet.
Wherein, IP address and the MAC Address of VM keeps constant.
703, the second subnet GW send ARP request bag to the first subnet GW.
VM after the second subnet thermophoresis to the first gateway, the second subnet can by the second subnet GW to First subnet GW initiates ARP flow process, to obtain the down hop of the route of the second subnet GW to VM Address.Specifically, the second subnet GW can send ARP request bag, this ARP to the first subnet GW Request bag carries the IP address information of VM.As a example by Fig. 2, GW103 can pass through VTEP104 And the tunnel between VTEP106 sends ARP request bag to GW107.Now, in ARP request bag Target ip address and IP address that destination-mac address is VM and the MAC Address of full 0.
704, the first subnet GW broadcast transmission ARP request bag in the first subnet.
First subnet GW can intercept and capture after the ARP request bag of the second subnet, and in the first subnet Broadcast this ARP request bag.
705, VM return the arp response bag of ARP request bags to the first subnet GW.
After VM receives the ARP request bag of the first subnet GW broadcast, extract in ARP request bag and take The IP address of the destination host of band.If VM finds that this IP address is consistent, then with the IP address of self Confirm that this ARP request bag is intended for this VM's.Now, VM can return to the first subnet GW and be somebody's turn to do The arp response bag of ARP request bag, carries the mac address information of VM in this arp response bag.
Now, the first subnet GW can be according to the arp response bag of ARP request bag and ARP request bag Judge newly to move into the VM of the first subnet, and obtains IP address information and the mac address information of this VM.
Wherein, the first subnet GW obtains according to the arp response bag of ARP request bag and ARP request bag The method of the IP address information and mac address information that take VM is referred to prior art and realizes, this Inventive embodiments does not repeats them here.
706, the first subnet GW forward the arp response bag of VM to the second subnet GW.
First subnet GW forwards the arp response bag of VM, the second subnet GW to the second subnet GW The second subnet can be set up to the route of VM according to the arp response bag of ARP request bag.
707, the second subnet GW set up the second subnet to the route of VM.
After second subnet GW receives the arp response bag that VM sends, can be according to this arp response bag Set up the second subnet to the route of VM.
708, the CN packets being sent to VM are sent by the second subnet GW.
Wherein, the IP address information of this packet portability CN.Certainly, the target that this packet points to IP address is the IP address of VM, the MAC Address that MAC Address is VM that this packet points to, According to the target ip address of packet or target MAC (Media Access Control) address, first subnet GW can judge that packet is The no packet for VM.
709, the CN packets being sent to VM are sent by the first subnet GW.
710, the first subnet GW obtains the address information of CN.
First subnet GW is sent to the packet of VM according to CN, can obtain the address information of CN. The address information of this CN can include the IP address information of CN.
First subnet GW is sent to the method for the address information of the packet acquisition CN of VM according to CN Being referred to prior art realize, the embodiment of the present invention does not repeats them here.
Certainly, the first subnet GW can forward this packet to VM, and the embodiment of the present invention is the most superfluous at this State.
711, the first subnet GW set up request to CN sendaisle.
As a example by Fig. 5, GW107 can be according to the address information of the CN101 extracted, to CN101 Initiation Path Setup is asked.
First subnet GW, according to the IP address of CN, can set up request to CN sendaisle.Wherein, The following information of portability in the request of this Path Setup: the type of this passage, the IP address information of this gateway And port information.
The type of passage, includes but not limited to IP tunnel, UDP tunnel, MAC tunnel, application layer net Close (Application Layer Gateway, ALG) and the network address translation of subsidiary protocol translation The types such as device (Network Address Translation-Protocol, NAT-PT).
Alternatively, the IP address information of this VM of portability is gone back in the request of this Path Setup.
712, CN according to Path Setup request collocation channel at the port of CN, and configure channel to The route of CN to VM.
According to the current state of CN, CN, after receiving Path Setup request, can judge whether that agreement is built Vertical passage.
If CN refusal sets up passage, then the communication lines of CN with VM is by keeping constant, and the present invention is real Execute example not repeat them here.
If CN agrees to set up passage, then setting up this passage, collocation channel is at the port of CN, and incites somebody to action Passage adds the route table items of CN, and is configured in the route of CN to VM by the route table items of passage.
713, CN set up confirmation message to the first subnet GW sendaisle.
CN completes passage after the configuration of CN side, can set up request to the first subnet GW sendaisle Path Setup confirm message, this Path Setup confirms that message indicates the first subnet GW to complete passage the The configuration of one subnet GW side.
714, the first subnet GW collocation channel is at the port of the first subnet GW, and configures channel to The route of VM to CN.
First subnet GW confirms the message arrangement passage end in the first subnet GW side according to Path Setup Mouth, and passage is added the route table items of the first subnet GW, and the route table items of passage is configured to In the route of VM to CN.
715, CN are communicated with VM by passage.
As a example by Fig. 6, the packet between CN101 and VM108 passes through CN101 and GW107 Passage be transmitted, be no longer pass through the second subnet.
Visible, in the embodiment of the present invention, the first subnet GW by set up the first subnet GW Yu CN it Between passage and this passage is configured in the route between VM and CN, shorten VM Yu CN it Between routed path, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Fig. 8 is the structural representation of embodiment of the present invention gateway 800.Gateway 800 comprises the steps that acquisition is single Unit 801 and output unit 802.
Acquiring unit 801, for obtain move into the first subnet virtual machine VM address information and with this The address information of the peer node CN of VM communication.Wherein, in this first subnet of gateway 800 for The gateway of this first subnet external network interaction data, this VM from this second subnet thermophoresis to this first Subnet.
Output unit 802, sets up request for the address information according to this CN to this CN sendaisle Message.Wherein, this Path Setup request message can ask to set up the passage between gateway 800 and this CN, And this passage is updated in the route of this CN to this VM, this passage is used for transmitting this CN and being somebody's turn to do Packet between VM.
In the embodiment of the present invention, gateway 800 is by the VM of acquisition thermophoresis to gateway 800 place subnet Address information and the address information of CN that communicates with VM, and disappear to the CN sendaisle request of setting up Cease to set up the gateway 800 passage to CN, and the route that this passage is configured between CN to VM, Shorten the routed path between CN to VM, decrease big double layer network VM heat to a certain extent and move Communication delay after shifting.
Alternatively, gateway 800 may also include input block 803, dispensing unit 804.
Input block 803, the passage sent according to this Path Setup request message for receiving this CN is built Vertical confirmation message.
According to this Path Setup, dispensing unit 804, for confirming that this passage of message arrangement is at gateway 800 Port.
Dispensing unit 804 is additionally operable to be configured to by this passage in the route of this VM to this CN.
Visible, in the embodiment of the present invention, according to passage, gateway 800 confirms that message arrangement passage is at gateway side Port, and this passage is configured in the route of this VM to this CN, shorten VM to CN it Between routed path, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Alternatively, in the address information of the VM obtaining the first subnet of moving into, acquiring unit 801 is specifically used In obtain from this second subnet ARP request bag and pass through output unit 802 wide at this first subnet Broadcast and give this ARP request bag, obtain the arp response that this VM is returned according to this ARP request bag Bag, and the address information of this VM is obtained according to this ARP request bag and this arp response bag.Wherein, This ARP request bag portability has the IP address information of this VM, and this arp response bag portability has this The mac address information of VM, the address information of this VM can include the IP address information of this VM and be somebody's turn to do The mac address information of VM;
Correspondingly, output unit 802 is additionally operable to send this ARP request bag at this first subnet broadcast.
Alternatively, obtaining the address information of the CN communicated with this VM, acquiring unit 801 is specifically used In obtaining the packet arriving this VM through gateway 800, and obtain the ground of this CN according to this packet Location information.Wherein, this packet portability has the IP address information of this CN, the address information of this CN The IP address information of this CN can be included.
Alternatively, this Path Setup request message carries the IP address of the type of this passage, gateway 800 Information and port information.
Visible, in the embodiment of the present invention, gateway 800 is by obtaining thermophoresis to gateway 800 place subnet The address information of VM and the address information of CN that communicates with VM, set up the passage between CN And this passage is configured in the route between VM and CN, shorten the route between VM and CN Path, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Fig. 9 is the structural representation of embodiment of the present invention gateway 900.Gateway 900 can include input equipment 901, outut device 904, processor 902 and memorizer 903.
Memorizer 903 can include read only memory and random access memory, and carries to processor 902 For instruction and data.A part for memorizer 903 can also include nonvolatile RAM (NVRAM).
Memorizer 903 stores following element, executable module or data structure, or they Subset, or their superset:
Operational order: include various operational order, is used for realizing various operation.
Operating system: include various system program, is used for realizing various basic business and processing based on firmly The task of part.
In embodiments of the present invention, processor 902 (should by calling the operational order of memorizer 903 storage Operational order is storable in operating system), perform to operate as follows:
By input equipment 901 obtain move into the first subnet virtual machine VM address information and with this The address information of the peer node CN of VM communication;Address information according to this CN passes through outut device 904 set up request message to this CN sendaisle.Wherein, gateway 900 be in the first subnet for The gateway of the external network interaction data of the first subnet, this VM from this second subnet thermophoresis to this first Subnet, this Path Setup request message can be asked the passage setting up gateway 900 with this CN, and this be led to Road updates in the route of this CN to this VM, and this passage is for transmitting between this CN and this VM Packet.
Visible, in the embodiment of the present invention, gateway 900 is by obtaining thermophoresis to gateway 900 place subnet The address information of VM and the address information of CN that communicates with VM, and set up to CN sendaisle Request message is to set up the gateway 900 passage to CN, and is configured between CN to VM by this passage Route, shorten the routed path between CN to VM, decrease big double layer network to a certain extent Communication delay after VM thermophoresis.
Processor 902 controls the operation of gateway 900, and processor 902 can also be referred to as CPU(Central Processing Unit, CPU).Memorizer 903 can include read only memory and deposit at random Access to memory, and provide instruction and data to processor 902.A part for memorizer 903 can also be wrapped Include nonvolatile RAM (NVRAM).In concrete application, subscriber equipment 900 each Individual assembly is coupled by bus system 905, wherein bus system 905 except include data/address bus it Outward, it is also possible to include power bus, control bus and status signal bus in addition etc..But in order to understand explanation For the sake of, in the drawings various buses are all designated as bus system 905.
The method that the invention described above embodiment discloses can apply in processor 902, or by processor 902 realize.Processor 902 is probably a kind of IC chip, has the disposal ability of signal.? During realization, each step of said method can be by the integration logic electricity of the hardware in processor 902 The instruction of road or software form completes.Above-mentioned processor 902 can be general processor, numeral letter Number processor (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or Other PLDs of person, discrete gate or transistor logic, discrete hardware components.Permissible Realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General procedure The processor etc. that device can be microprocessor or this processor can also be any routine.In conjunction with the present invention The step of the method disclosed in embodiment can be embodied directly in hardware decoding processor and perform, or Combine execution by the hardware in decoding processor and software module to complete.Software module may be located at deposits at random Reservoir, flash memory, read only memory, programmable read only memory or electrically erasable programmable memorizer, In the storage medium that this areas such as depositor are ripe.This storage medium is positioned at memorizer 903, processor 902 Read the information in memorizer 903, complete the step of said method in conjunction with its hardware.
Alternatively, input equipment 901 also can receive what this CN sent according to this Path Setup request message Path Setup confirms message;According to this Path Setup, processor 902 also can confirm that this passage of message arrangement exists The port of gateway 900, and this passage can be configured in the route of this VM to this CN.
In the embodiment of the present invention, gateway 900 confirms the message arrangement passage port at gateway side according to passage, And this passage is configured in the route of this VM to this CN, shorten the route between VM to CN Path, it is possible to reduce the communication delay after big double layer network VM thermophoresis to a certain extent.
Alternatively, in the address information of the VM obtaining the first subnet of moving into, processor 902 specifically can use In obtaining the ARP request bag from this second subnet, and by outut device 904 at this first subnet This ARP request bag of broadcast transmission, obtains this VM according to this ARP request bag by input equipment 901 The arp response bag returned, and obtain this VM according to this ARP request bag and this arp response bag Address information.Wherein, this ARP request bag portability has the IP address information of this VM, this ARP Respond packet portability has the mac address information of this VM, and the address information of this VM can include this VM IP address information and the mac address information of this VM.
Alternatively, obtaining the address information of this CN, processor 902 is particularly used in and is set by input Standby 901 obtain the packet arriving this VM through gateway 900, and obtain this CN according to this packet Address information.Wherein, this packet portability has the IP address information of this CN, the address of this CN Information can include the IP address information of this CN.
Alternatively, this Path Setup request message carries the IP address of the type of this passage, gateway 900 Information and port information.
In the embodiment of the present invention, gateway 900 is by the VM of acquisition thermophoresis to gateway 900 place subnet Address information and the address information of CN that communicates with VM, set up the passage between CN should Passage is configured in the route between VM and CN, shortens the routed path between VM and CN, The communication delay after big double layer network VM thermophoresis can be reduced to a certain extent.
Those of ordinary skill in the art are it is to be appreciated that combine each of the embodiments described herein description The unit of example and algorithm steps, it is possible to electronic hardware or computer software and the knot of electronic hardware Incompatible realization.These functions perform with hardware or software mode actually, depend on the spy of technical scheme Fixed application and design constraint.Professional and technical personnel can use not Tongfang to each specifically should being used for Method realizes described function, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, and for convenience and simplicity of description, above-mentioned retouches The specific works process of system, device and the unit stated, is referred to the correspondence in preceding method embodiment Process, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed system, device and Method, can realize by another way.Such as, device embodiment described above is only shown Meaning property, such as, the division of described unit, be only a kind of logic function and divide, actual can when realizing There to be other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another System, or some features can ignore, or do not perform.Another point, shown or discussed each other Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit Or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, makees The parts shown for unit can be or may not be physical location, i.e. may be located at a place, Or can also be distributed on multiple NE.Can select according to the actual needs part therein or The whole unit of person realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in one In individual unit.
If described function realizes using the form of SFU software functional unit and as independent production marketing or make Used time, can be stored in a computer read/write memory medium.Based on such understanding, the present invention The part that the most in other words prior art contributed of technical scheme or the portion of this technical scheme Dividing and can embody with the form of software product, this computer software product is stored in a storage medium In, including some instructions with so that computer equipment (can be personal computer, server, Or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And it is front The storage medium stated includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can To store the medium of program code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to In this, any those familiar with the art, can be easily in the technical scope that the invention discloses Expect change or replace, all should contain within protection scope of the present invention.Therefore, the protection of the present invention Scope should described be as the criterion with scope of the claims.

Claims (10)

1. method for configuring route after live migration of virtual machine in a big double layer network, it is characterised in that Including:
Gateway obtains the address information of virtual machine VM of the first subnet of moving into and right with what described VM communicated The address information of end node CN, wherein, described gateway is for described first in described first subnet The gateway of the external network interaction data of subnet, described VM is sub to described first from the second subnet thermophoresis Net;
Described gateway sets up request message according to the address information of described CN to described CN sendaisle, Wherein, described Path Setup request message sets up the passage between described gateway and described CN for request And described passage is configured in the route of described CN to described VM, described passage is used for transmitting described Packet between CN and described VM.
2. the method for claim 1, it is characterised in that also include:
Described gateway receives the Path Setup confirmation that described CN sends according to described Path Setup request message Message;
According to described Path Setup, described gateway confirms that described in message arrangement, passage is at the port of described gateway;
Described passage is configured in the route of described VM to described CN by described gateway.
3. method as claimed in claim 1 or 2, it is characterised in that described gateway obtains moves into the The address information of the virtual machine VM of one subnet includes:
The ARP that described gateway obtains from described second subnet asks bag, described First subnet broadcast sends described ARP request bag, and described ARP request bag carries the mutual of described VM Networking protocol IP address information;
Described gateway obtains the arp response bag that described VM is returned, institute according to described ARP request bag State arp response bag and carry the MAC address information of described VM;
Described gateway obtains the address of described VM according to described ARP request bag and described arp response bag Information, the address information of described VM includes the IP address of described VM and the MAC ground of described VM Location.
4. method as claimed in claim 3, described gateway obtain communicate with described VM to end segment The address information of some CN includes:
Described gateway obtains the packet arriving described VM through described gateway, and described packet carries The IP address information of described CN;
Described gateway obtains the address information of described CN according to described packet, the address letter of described CN Breath includes the IP address information of described CN.
5. method as claimed in claim 1 or 2, it is characterised in that the request of described Path Setup disappears Breath carries the type of described passage, the IP address information of described gateway and port information.
6. a gateway, it is characterised in that including:
Acquiring unit, for obtaining the address information of the virtual machine VM of the first subnet of moving into and with described The address information of the peer node CN of VM communication, wherein, described gateway is to use in described first subnet In the gateway with the external network interaction data of described first subnet, described VM is from the second subnet thermophoresis To described first subnet;
Output unit, sets up request for the address information according to described CN to described CN sendaisle Message, wherein, described Path Setup request message is set up between described gateway and described CN for request Passage and described passage is updated described CN to described VM route on, described passage is used for passing Packet between defeated described CN and described VM.
7. gateway as claimed in claim 6, it is characterised in that also include:
Input block, the passage sent according to described Path Setup request message for receiving described CN is built Vertical confirmation message;
According to described Path Setup, dispensing unit, for confirming that described in message arrangement, passage is at described gateway Port;
Described dispensing unit is additionally operable to be configured to by described passage in the route of described VM to described CN.
Gateway the most as claimed in claims 6 or 7, it is characterised in that move into the first subnet in acquisition The address information of virtual machine VM, described acquiring unit specifically for: obtain from described second subnet ARP request bag, and sent out at described first subnet broadcast by described output unit Send the Internet protocol IP ground that described ARP request bag, described ARP request bag carry described VM Location information;Obtain the arp response bag that described VM is returned according to described ARP request bag, described Arp response bag carries the MAC address information of described VM;And, according to institute State ARP request bag and the address information of the described arp response bag described VM of acquisition, the ground of described VM Location information includes IP address and the MAC Address of described VM of described VM;
Correspondingly, described output unit is additionally operable to send described ARP request at described first subnet broadcast Bag.
9. gateway as claimed in claim 8, at the peer node CN that acquisition communicates with described VM Address information, described acquiring unit specifically for: obtain through described gateway arrive described VM number According to bag, described packet carries the IP address information of described CN;Obtain described according to described packet The address information of CN, the address information of described CN includes the IP address information of described CN.
Gateway the most as claimed in claims 6 or 7, it is characterised in that the request of described Path Setup disappears Breath carries the type of described passage, the IP address information of described gateway and port information.
CN201310211338.7A 2013-05-31 2013-05-31 Method for configuring route after live migration of virtual machine and gateway in big double layer network Active CN103346900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310211338.7A CN103346900B (en) 2013-05-31 2013-05-31 Method for configuring route after live migration of virtual machine and gateway in big double layer network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310211338.7A CN103346900B (en) 2013-05-31 2013-05-31 Method for configuring route after live migration of virtual machine and gateway in big double layer network

Publications (2)

Publication Number Publication Date
CN103346900A CN103346900A (en) 2013-10-09
CN103346900B true CN103346900B (en) 2016-12-28

Family

ID=49281676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310211338.7A Active CN103346900B (en) 2013-05-31 2013-05-31 Method for configuring route after live migration of virtual machine and gateway in big double layer network

Country Status (1)

Country Link
CN (1) CN103346900B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607347B (en) * 2013-11-15 2017-07-28 华为技术有限公司 Set up the method and controller of transmission channel
CN103647853B (en) * 2013-12-04 2018-07-03 华为技术有限公司 One kind sends ARP file transmitting methods, VTEP and VxLAN controllers in VxLAN
CN103716221B (en) * 2013-12-10 2017-02-01 同济大学 On-line migration method of virtual machine in wide area network under future network NDN (Named Data Network)
EP3117561B1 (en) * 2014-03-14 2018-10-17 Nicira Inc. Route advertisement by managed gateways
CN104243265B (en) * 2014-09-05 2018-01-05 华为技术有限公司 A kind of gateway control method, apparatus and system based on virtual machine (vm) migration
CN104283980B (en) * 2014-10-09 2018-02-09 新华三技术有限公司 A kind of address resolution protocol pickup method and device
CN105577417B (en) * 2014-11-06 2019-02-22 新华三技术有限公司 Message forwarding method and device based on VXLAN network
CN105337858B (en) * 2015-11-20 2019-10-18 北京百度网讯科技有限公司 Virtual router cluster, data forwarding method and device
CN106130867B (en) * 2016-08-30 2019-06-14 锐捷网络股份有限公司 Virtual machine communication method and device across data center
CN108512678B (en) * 2017-02-27 2020-12-25 中国科学院信息工程研究所 Method and system for accessing physical equipment to virtual network based on overlay technology
CN109426547B (en) 2017-09-04 2022-05-17 华为技术有限公司 Thermal migration method, device and system of virtual machine
CN111225071B (en) * 2018-11-23 2022-11-22 深信服科技股份有限公司 Cloud platform and cross-cloud platform network intercommunication system and method
CN113301070A (en) * 2020-04-07 2021-08-24 阿里巴巴集团控股有限公司 Method and device for establishing data transmission channel
CN113872844B (en) * 2020-06-30 2023-07-18 华为技术有限公司 Method for establishing VXLAN tunnel and related equipment
CN114338397B (en) * 2021-12-27 2023-11-03 中国联合网络通信集团有限公司 Cloud platform network configuration method, device, server, storage medium and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102884763A (en) * 2012-06-30 2013-01-16 华为技术有限公司 Cross-data-center virtual machine migration method, service control gateway and cross-data-center virtual machine migration
US8924560B2 (en) * 2010-11-29 2014-12-30 At&T Intellectual Property I, L.P. Optimized game server relocation environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465812B (en) * 2009-01-06 2012-03-21 北京航空航天大学 Redirection method for virtual machine network connection when on-line migrating striding sub network
CN102118458A (en) * 2011-03-10 2011-07-06 浪潮(北京)电子信息产业有限公司 Method and system for live migration of virtual machine
CN102801715B (en) * 2012-07-30 2015-03-11 华为技术有限公司 Method for virtual machine migration in network, gateway and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924560B2 (en) * 2010-11-29 2014-12-30 At&T Intellectual Property I, L.P. Optimized game server relocation environment
CN102884763A (en) * 2012-06-30 2013-01-16 华为技术有限公司 Cross-data-center virtual machine migration method, service control gateway and cross-data-center virtual machine migration

Also Published As

Publication number Publication date
CN103346900A (en) 2013-10-09

Similar Documents

Publication Publication Date Title
CN103346900B (en) Method for configuring route after live migration of virtual machine and gateway in big double layer network
CN112470436B (en) Systems, methods, and computer-readable media for providing multi-cloud connectivity
CN103997414B (en) Generate method and the network control unit of configuration information
CN113169928B (en) Logical router including a disaggregated network element
US10320664B2 (en) Cloud overlay for operations administration and management
CN106685787B (en) PowerVM (virtual machine) virtualized network management method and device based on OpenStack
CN105407140B (en) A kind of computing resource virtual method of networking test system
CN114363021B (en) Network target range system, virtual network implementation method and device of network target range system
CN105634770B (en) The method and apparatus for disposing virtual extended local area network
CN107770064A (en) A kind of method of internetwork communication, equipment
US20150163072A1 (en) Virtual Port Extender
CN106656719A (en) Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device
CN109937400A (en) The stream mode of real-time migration for virtual machine transmits
CN102780601A (en) Method and system of virtual managed network
CN109412922B (en) Method, forwarding device, controller and system for transmitting message
CN107404436A (en) Communication means and device for virtual expansible LAN
CN106101023A (en) A kind of VPLS message processing method and equipment
CN111556110B (en) Automatic adaptation method for different physical service networks of private cloud system
CN106878136A (en) A kind of message forwarding method and device
CN110035012B (en) SDN-based VPN flow scheduling method and SDN-based VPN flow scheduling system
CN105917617A (en) Single hop overlay architecture for line rate performance in campus networks
CN106059881B (en) A kind of SDN and its flow lead-in and lead-out method
CN108989071A (en) Virtual Service providing method, gateway and storage medium
CN101370009B (en) Construction method for virtual network block frame based on Linux kernel network subsystem
CN107294746B (en) Method and equipment for deploying service

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