CN109189549A - Virtual machine migration method and device - Google Patents
Virtual machine migration method and device Download PDFInfo
- Publication number
- CN109189549A CN109189549A CN201810866973.1A CN201810866973A CN109189549A CN 109189549 A CN109189549 A CN 109189549A CN 201810866973 A CN201810866973 A CN 201810866973A CN 109189549 A CN109189549 A CN 109189549A
- Authority
- CN
- China
- Prior art keywords
- equipment
- outgoing interface
- information
- forwarding
- table item
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Virtual machine migration method and device provided by the embodiments of the present application, are related to data communication field, and the method receives the advertising of route information that the second equipment is sent by receiving interface;According in advertising of route information migration attribute and VM address information, search it is stored include the first outgoing interface VM forwarding-table item;Increase the second outgoing interface newly in VM forwarding-table item.In the above method, first equipment is after receiving advertising of route information, increase new outgoing interface in VM forwarding-table item, new outgoing interface is the receiving interface for receiving advertising of route information, so when message is sent to VM, the first outgoing interface or the second newly-increased outgoing interface reception message before can be passed through, it is ensured that the business of VM will not interrupt, and improve user experience.
Description
Technical field
This application involves data communication technology fields, in particular to a kind of virtual machine migration method and device.
Background technique
Currently, multiple virtual machines (English: VirtualMachine, abbreviation: VM) can be created on one server, no
Same VM may belong to different expansible Virtual Local Area Networks (English: Virtual eXtensible Local Area
Network, referred to as: VXLAN) or identical expansible Virtual Local Area Network.
Server can by with VXLAN endpoint of a tunnel equipment (English: VXLAN Tunnel End Point, referred to as:
VTEP the communication connection between), access network based on ethernet Virtual Private Network (English: Ethernet Virtual Private
Network, abbreviation EVPN).
VM can be migrated between the server connected under different VTEP, when the server that VM is connected at different VTEP it
Between when migrating, VTEP after migration may mistake study transmission VM routing iinformation so that being sent to the message of VM can not send
Up to VM, lead to data packetloss, influences user experience.
Summary of the invention
Embodiments herein describes a kind of virtual machine migration method and device, to solve in the prior art because VM is moved
Move so that VTEP mistake study transmission VM routing iinformation, caused by data packetloss.
In a first aspect, the embodiment of the present application provides a kind of virtual machine migration method, which comprises
The first via that the second equipment is sent is received by advertised information by the receiving interface of first equipment, described first
Advertising of route information includes the address information of the migration attribute and the VM that indicate that the virtual machine VM has been migrated;
According to the address information of the migration attribute and the VM, search and the matched VM forwarding table of the address information
, the VM forwarding-table item includes the first outgoing interface;
Increase the second outgoing interface newly in the VM forwarding-table item, second outgoing interface is the receiving interface.
Optionally, in the present embodiment, the method also includes:
When the secondary route advertised information that the expression VM for receiving the transmission of third equipment is not migrated, according to institute
Secondary route advertised information is stated, second outgoing interface in the VM forwarding-table item is deleted, retains first outgoing interface;
When the third advertising of route information that the expression VM for receiving the transmission of third equipment is migrated, according to described
Third advertising of route information deletes first outgoing interface in the VM forwarding-table item, retains second outgoing interface;
The third equipment is the neighbor device of first equipment, second equipment.
Optionally, in the present embodiment, when first equipment is the equipment that the VM is accessed in advance, the method is also
Include:
By first outgoing interface, send for whether detecting the VM yet by first outgoing interface and described the
The ARP request information of one equipment connection;
According to the response results of the ARP request message, the VM forwarding-table item is adjusted.
Optionally, in the present embodiment, the response results according to the ARP request message, to the VM forwarding table
Item is adjusted, comprising:
If receiving the arp reply information for the ARP request information, second in the VM forwarding-table item is gone out
Interface is deleted, and first outgoing interface is retained;
If not receiving the arp reply information for the ARP request information, by first in the VM forwarding-table item
Outgoing interface is deleted, and second outgoing interface is retained.
Optionally, in the present embodiment, the method also includes:
If receiving the arp reply message for the ARP request message, to second equipment and third equipment
The 4th advertising of route information for indicating that the VM is not migrated is sent, so that second equipment and the third equipment are deleted
Except the outgoing interface increased newly according to the first via by advertised information in respective VM forwarding-table item, retain VM forwarding-table item Central Plains
The outgoing interface of beginning;
If not receiving the arp reply message for the ARP request message, to second equipment and described
Three equipment send the 5th advertising of route information for indicating that the VM is migrated, so that second equipment and the third are set
It is standby to delete outgoing interface original described in respective VM forwarding-table item, retain the newly-increased outgoing interface;The third equipment is institute
State the neighbor device of the first equipment, second equipment.
Optionally, in the present embodiment, advertising of route information includes the migration attribute-bit word for indicating migration attribute
Section;
First high position of the migration attribute identification field indicates that the advertising of route information is when for the first state
Equipment sends the routing iinformation after the ARP request information;Migrate attribute identification field first is high-order for second of state
When, expression advertising of route information is synchronization of routing information;
Second high position of the migration attribute identification field indicates that the equipment receives and is directed to when for the first state
The arp reply message of the ARP request information;The second of the migration attribute identification field is high-order when for second of state,
Indicate that the equipment does not receive the arp reply message for the ARP request information;
The equipment includes first equipment, the second equipment or third equipment.
Second aspect, the embodiment of the present application also provide a kind of virtual machine (vm) migration device, are applied to the first equipment, described device
Include:
Receiving module receives the first advertising of route that the second equipment is sent by the receiving interface of first equipment and believes
Breath, the first via include the address of the migration attribute and the VM that indicate that the virtual machine VM migrated by advertised information
Information;
Searching module is searched and the address information for the address information according to the migration attribute and the VM
The VM forwarding-table item matched, the VM forwarding-table item include the first outgoing interface;
Newly-increased module, for increasing the second outgoing interface newly in the VM forwarding-table item, second outgoing interface is described connects
Receive interface.
Optionally, in the present embodiment, the receiving module is also used to:
When the secondary route advertised information that the expression VM for receiving the transmission of third equipment is not migrated, according to institute
Secondary route advertised information is stated, second outgoing interface in the VM forwarding-table item is deleted, retains first outgoing interface;
When the third advertising of route information that the expression VM for receiving the transmission of third equipment is migrated, according to described
Third advertising of route information deletes first outgoing interface in the VM forwarding-table item, retains second outgoing interface;
The third equipment is the neighbor device of first equipment, second equipment.
Optionally, in the present embodiment, when first equipment is the equipment that the VM is accessed in advance, described device is also
Include:
First sending module, for sending for whether detecting the VM yet by described by first outgoing interface
The ARP request information that first outgoing interface is connect with first equipment;
Adjustment module is adjusted the VM forwarding-table item for the response results according to the ARP request message.
The third aspect, the embodiment of the present application also provide a kind of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes calculating
Machine program, electronic equipment executes described in first aspect the computer program controls the readable storage medium storing program for executing when running where
Virtual machine migration method.
In terms of existing technologies, the application has the advantages that
Virtual machine migration method and device provided by the embodiments of the present application, firstly, receiving the second equipment by receiving interface
The advertising of route information of transmission;Then, according to the address information of migration attribute and VM in advertising of route information, lookup has been stored
The VM forwarding-table item including the first outgoing interface;Finally, increasing the second outgoing interface newly in VM forwarding-table item.In the above method, the
One equipment increases new outgoing interface after receiving advertising of route information in VM forwarding-table item, and new outgoing interface is to receive road
By the receiving interface of advertised information, it can be ensured that the first equipment can learn to correct outgoing interface, can when message is sent to VM
With before passing through the first outgoing interface or the second newly-increased outgoing interface receive message, it is ensured that data will not packet loss, the business of VM is not
It can interrupt, improve user experience.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the structural block diagram of EVPN network provided by the embodiments of the present application;
Fig. 2 is the structural block diagram of the first equipment provided by the embodiments of the present application;
Fig. 3 is one of the flow diagram of virtual machine migration method provided by the embodiments of the present application;
Fig. 4 is the two of the flow diagram that the application implements the virtual machine migration method provided;
Fig. 5 is a kind of functional block diagram of virtual machine (vm) migration device provided by the embodiments of the present application;
Fig. 6 is another functional block diagram of virtual machine (vm) migration device provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ",
" installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one
Connect to body;It can be mechanical connection, be also possible to be electrically connected;It can be directly connected, it can also be indirect by intermediary
It is connected, can be the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition
State the concrete meaning of term in this application.
At present in EVPN networking, VM migration is to judge the whether successful critically important characteristic of EVPN networking, in order to
The VM forged migration message is avoided as far as possible, it is ensured that VTEP can correctly learn to outgoing interface.The prior art provide mode be,
After the MAC/IP migration routing iinformation for receiving other VTEP transmission, by the VTEP (VTEP before migrating) for connecting the VM before
VM detection is carried out, to determine whether VM really moves on other VTEP.The prior art is carried out with reference to the accompanying drawing detailed
It introduces.
Please refer to Fig. 1, Fig. 1 shows a kind of EVPN network structure, in the network structure include VTEP and server,
In, by VXLAN tunnel communication between VTEP, VTEP is connect by AC (AttachmentCircuit) mouth with server.
VTEP is the edge device of VXLAN.The relevant treatment of VXLAN carries out all on VTEP, for example, identification ether netting index
Two layers of forwarding, encapsulation/decapsulation message etc. are carried out to data frame according to VXLAN belonging to frame, based on VXLAN.VTEP can be one
The independent physical equipment of platform, the server being also possible to where virtual machine.
The tunnel VXLAN is the point-to-point logical tunnel between two VTEP.VTEP is data frame packaging V XLAN, UDP head
After IP, the message after encapsulation is transmitted to by distal end VTEP by the tunnel VXLAN, distal end VTEP decapsulates it.
AC is the physical circuit or virtual circuit of VTEP connection site-local.On VTEP, AC is associated three layers with VSI
Interface or Ethernet Service Instance.
In the prior art, if what VM accessed in advance is VTEP1 (outgoing interface is the AC1 mouth on VTEP1), above VTEP1
VM forwarding-table item can be generated, it is assumed that the IP address of VM are as follows: 100.1.1.2/32;MAC Address are as follows: 1-1-1.VM forwarding-table item such as table
Shown in 1:
IP address | MAC Address | Outgoing interface |
100.1.1.2/32 | 1-1-1 | AC1 |
Table 1
The ARP entry of VM is synchronized to VTEP2 and VTEP3 by VTEP1, it is assumed that the IP address of VTEP1 is 1.1.1.1, VTEP2
IP address be 2.2.2.2, the IP address of VTEP3 is 3.3.3.3.
The VM forwarding-table item generated on VTEP2 is as shown in table 2:
Table 2
The VM forwarding-table item generated on VTEP3 is as shown in table 3:
Table 3
When on the server (VTEP3 by outgoing interface AC2 with server connect) under VM moves to VTEP3, VTEP3 from
The ARP entry of VM is arrived in local AC2 mouth study, and perception VM is migrated, transmission advertising of route information to VTEP1 and VTEP2,
It informs that VTEP1 and VTEP2 is migrated, VTEP1 and VTEP2 is allowed to do the adjustment of VM forwarding-table item.
VTEP1 is after the advertising of route information for receiving VTEP3 transmission, and VM is not migrated really in order to prevent, VTEP1
APR probe messages are sent by AC1 mouthfuls, for detecting the presence of VM.If receiving the response of VM within a certain period of time,
Then keep the VM forwarding-table item in VTEP1 constant.It, will be in VTEP1 if not receiving the response of VM within a certain period of time
VM forwarding-table item is adjusted, and list item adjusted is as shown in table 4:
Table 4
Above scheme has the following deficiencies:
VTEP1 receive VTEP3 transmission host 1 advertising of route information after, not immediately to VM forwarding-table item into
Row adjustment, but the ARP detection of AC1 mouthfuls of the outgoing interface progress VM of VTEP1 is used, if within a certain period of time, not receiving response,
Then carry out VM forwarding-table item adjustment, if but VM really migrate, VTEP3 wants access to VM, ARP detection the waiting time in,
Because the VM forwarding-table item on VTEP1 remains unchanged, service message forwarding will appear mistake, and VM does not receive service message, causes
Message packet loss.
In order to overcome above-mentioned defect existing in the prior art, is studied by applicant, propose following solution, under
Face is described in detail.
Referring to figure 2., Fig. 2 is a kind of structural schematic diagram of first equipment provided by the embodiments of the present application.Described first sets
Standby includes virtual machine (vm) migration device 110, memory 111, processor 112 and communication unit 113.
Each element of the memory 111, processor 112 and communication unit 113 is directly or indirectly electrical between each other
Connection, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or letter between each other
Number line, which is realized, to be electrically connected.
Wherein, the memory 111 may be, but not limited to, random access memory (English: Random Access
Memory, referred to as: RAM), read-only memory (English: Read Only Memory, referred to as: ROM), programmable read only memory
(English: Programmable Read-Only Memory, referred to as: PROM), erasable read-only memory (English: Erasable
Programmable Read-Only Memory, referred to as: EPROM), electricallyerasable ROM (EEROM) (English: Electric
Erasable Programmable Read-Only Memory, referred to as: EEPROM) etc..Wherein, memory 111 is for storing
Program, the processor 112 execute described program after receiving and executing instruction.The communication unit 113 is for passing through network
The communication connection between first equipment and other equipment (such as server) is established, and for carrying out data by network
It sends and receivees.
Virtual machine (vm) migration device 110 includes described at least one can be stored in the form of software or firmware (firmware)
In memory 111 or it is solidificated in soft in the operating system (English: OperatingSystem, abbreviation: OS) of first equipment
Part functional module.The processor 112 is used to execute the executable module stored in the memory 111, such as virtual machine moves
Software function module included by moving device 110 and computer program etc..
It should be understood that structure shown in Fig. 2 be only illustrate, first equipment may also include than shown in Fig. 2 more
More perhaps less component or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can be using hardware, soft
Part or combinations thereof is realized.
Referring to figure 3., Fig. 3 is the virtual machine (vm) migration side provided by the embodiments of the present application applied to the first equipment in Fig. 2
The flow chart of method, below to the method includes each step illustrated in detail.
Step S310 receives the advertising of route information that the second equipment is sent by receiving interface, and advertising of route information includes
Indicate the address information for the migration attribute and VM that VM has been migrated.
Step S320 searches stored VM forwarding-table item according to the address information of migration attribute and VM, wherein VM turns
It include the first outgoing interface in forwarding list item.
Step S330, increases the second outgoing interface newly in VM forwarding-table item, and the second outgoing interface is receiving interface.
On the basis of description of the prior art above, Fig. 1 is recombined, the process of step S310- step S330 is carried out
Exhaustive presentation.
VM moves to the server that the second equipment (below with VTEP3 replacement) connects below.When VTEP3 is online, VTEP3
VM can be perceived to migrate.Specifically perception are as follows: the ARP message that VTEP3 can be received by AC2 mouthfuls from VM,
And the IP address and MAC Address of VM is parsed from the ARP message.Due to having had recorded IP address, the MAC of VM in table 3
Location and the tunnel outgoing interface VXLAN 2, thus may determine that VM is come from the server migration under other VTEP.
It increases an outgoing interface AC2 in VM forwarding-table item on VTEP3 newly, i.e., is connect out for VM there are two on VTEP3
Mouthful, specific VM forwarding-table item is as shown in table 6.
Table 6
ARP entry of the VTEP3 from AC2 mouthfuls of study to VM perceives after migration has occurred in VM, and VTEP3 passes through the tunnel VXLAN
1 sends advertising of route information to VTEP1, wherein the advertising of route information can carry the IP address and MAC Address of VM, and route
Advertised information carries migration attribute.
After VTEP1 is received by receiving interface via the advertising of route message in the tunnel VXLAN 1, pass through advertising of route message
In IP address and MAC Address inquiry VTEP1 in forwarding-table item, obtain matched VM forwarding-table item, as shown in table 1, the VM
The outgoing interface of forwarding-table item is AC1 mouthfuls.
Increase an outgoing interface in VM forwarding-table item on VTEP1 newly, which is to receive via VXLAN tunnel
The receiving interface of the advertising of route message in road 1.For VM, there are two outgoing interfaces, specific VM forwarding-table items i.e. on VTEP1
As shown in table 7.
Table 7
ARP entry of the VTEP3 from AC2 mouthfuls of study to VM, after migration has occurred in perception VM, VTEP3 also passes through the tunnel VXLAN
3 send advertising of route information to VTEP2, similar with VTEP1 above, and VTEP2 can also increase one newly on the basis of table 2 and go out to connect
Mouthful, i.e., for VM there is also two outgoing interfaces on VTEP2, specific VM forwarding-table item is as shown in table 8.
Table 8
In above process, the first equipment can be VTEP1, be also possible to VTEP2.After VM is migrated, meeting exists
Increase the outgoing interface after a VM is migrated on the VM forwarding-table item of VTEP1, VTEP2 and VTEP3 newly, so that above-mentioned each VTEP
Two outgoing interfaces are all safeguarded in VM forwarding-table item simultaneously, wherein original outgoing interface may insure VM not in VM forwarding-table item
When migrating, the message for being sent to VM is received by VM;The outgoing interface increased newly in VM forwarding-table item may insure that VM is being moved
After shifting, the service message for being sent to VM can be received by VM.I.e. when sending message to VM, can have two for above-mentioned each VTEP
A outgoing interface goes to send message, it is ensured that message can be sent on VM, prevent packet loss.
In order to which more convenient illustrates scheme, it is assumed that the VTEP that VM is accessed in advance is VTEP1, that is, mentioned below the
One equipment refers to VTEP1.Referring to figure 4., the method can also include:
Step S340 is sent by the first outgoing interface for whether detecting VM yet by the first outgoing interface and the first equipment
The ARP request information of connection.
Step S350 is adjusted VM forwarding-table item according to the response results of ARP request information.
Detailed process is still introduced in conjunction with Fig. 1, and VTEP1 is after VM forwarding-table item increases outgoing interface newly, by VTEP1
The outgoing interface AC1 connecting with VM sends the ARP request information whether being additionally attached on VTEP1 for detecting VM to VM.
VTEP1 waits the response results of VM within a preset time, if VTEP1 receives arp reply letter within a preset time
Breath, then determine that VM is not migrated;If VTEP1 is not received by arp reply information within a preset time, determine that VM is moved
It moves.VTEP1 is adjusted the VM forwarding-table item on VTEP1 according to the response results of ARP request message.
Specifically, when determining that VM is not migrated, table 7 is adjusted, deletes the outgoing interface 2 in table 7, reservation table 7
In outgoing interface 1, VM forwarding-table item adjusted is identical as table 1.
When determining that VM is migrated, table 7 is adjusted, deletes the outgoing interface 1 in table 7, the outgoing interface in reservation table 7
2, VM forwarding-table item adjusted is as shown in table 9:
Table 9
VTEP1 is routed through information to VTEP3 transmission according to the response results of ARP request message.Described in the present embodiment
Method can also include:
If VTEP1 receives the arp reply message for ARP request message, sending to the second equipment (VTEP3) is indicated
The advertising of route information that VM is not migrated, VTEP3 is after receiving the advertising of route information, to the VM forwarding table on VTEP3
Item is adjusted.Specifically, list item is adjusted to table 3 by table 6, i.e. reservation outgoing interface 1, deletes outgoing interface 2.
If VTEP1 does not receive the arp reply message for ARP request message, sending to VTEP3 indicates that VM does not occur
The advertising of route information of migration, VTEP3 adjust the VM forwarding-table item on VTEP3 after receiving the advertising of route information
It is whole.List item adjusted such as table 10, i.e. outgoing interface 2 in reservation table 6 delete outgoing interface 1.
Table 10
VTEP1 is routed through information to VTEP2 transmission also according to the response results of ARP request message.Institute in the present embodiment
The method of stating can also include:
If VTEP1 receives the arp reply message for ARP request message, sending to third equipment (VTEP2) is indicated
The advertising of route information that VM is not migrated, VTEP2 is after receiving the advertising of route information, to the VM forwarding table on VTEP2
Item is adjusted.Specifically, list item is adjusted to table 2, i.e. outgoing interface 1 in reservation table 8 by table 8, deletes outgoing interface 2.
If VTEP1 does not receive the arp reply message for ARP request message, sending to VTEP2 indicates that VM is moved
The advertising of route information of shifting, VTEP2 are adjusted the VM forwarding-table item on VTEP2 after receiving the advertising of route information.
Specifically, list item is adjusted to table 11, i.e. outgoing interface 2 in reservation table 8 by table 8, deletes outgoing interface 1.
Table 11
In the present embodiment, advertising of route information may include extended community attribute information, extended community attribute Information Number
It is as follows according to structure:
| Type=0x06 | Sub-Type=0x01 | Flags (1octet) | Reserved=0 | | Sequence Number
|
Wherein, Flag is migration attribute identification field, and migrate attribute identification field first is high-order for the first state (ratio
Such as set 1) when, indicate that the advertising of route information is that VTEP1 detects the routing iinformation sent after VM;Migrate attribute identification field
It is first high-order when being second of state (such as set 0), indicate that the advertising of route information is common synchronization of routing information.
When second high position for migrating attribute identification field is the first state (such as set 1), indicate that VTEP1 receives needle
To the arp reply message of ARP request information;Migrate attribute identification field second is high-order for (such as the set of second state
0) when, indicate that the first equipment does not receive the arp reply message for ARP request information.
Specifically, VTEP1 is when receiving the arp reply message for ARP request message, the advertising of route information of transmission
Middle extended community attribute information data structure can be such that
| Type=0x06 | Sub-Type=0x01 | 1 | | 1 | Reserved=0 | | Sequence Number |
VTEP1 expands in the advertising of route information of transmission when not receiving the arp reply message for ARP request message
Exhibit-delegation's body data of attribute information structure can be such that
| Type=0x06 | Sub-Type=0x01 | 1 | | 0 | Reserved=0 | | Sequence Number |
Above scheme adjusts the VM forwarding-table item on each VTEP by VTEP1 to the detection result of VM, so that after adjustment
Each VM forwarding-table item only retain an outgoing interface.So as to subtract while ensuring that service message accurately can be sent to VM
The number for sending message less promotes the efficiency that message is sent.
The embodiment of the present application also provides a kind of virtual machine (vm) migration device 110, unlike above example, this virtual machine
Moving apparatus 110 is to describe application scheme from the angle of virtual bench.Referring to figure 5., virtual machine (vm) migration device 110 can be with
It comprises the following modules.
Receiving module 1101, for receiving the first via that the second equipment is sent by advertised information by receiving interface, first
Advertising of route information includes the address information of the migration attribute and VM that indicate that virtual machine VM has been migrated.
Searching module 1102 is searched matched with the address information for the address information according to migration attribute and VM
VM forwarding-table item, VM forwarding-table item include the first outgoing interface.
Newly-increased module 1103, for increasing the second outgoing interface newly in VM forwarding-table item, the second outgoing interface is described connects
Mouthful.
In the present embodiment, the receiving module 1101 is also used to:
When the secondary route advertised information that the expression VM for receiving the transmission of third equipment is not migrated, according to institute
Secondary route advertised information is stated, second outgoing interface in the VM forwarding-table item is deleted, retains first outgoing interface;
When the third advertising of route information that the expression VM for receiving the transmission of third equipment is migrated, according to described
Third advertising of route information deletes first outgoing interface in the VM forwarding-table item, retains second outgoing interface.
Third equipment is the neighbor device of the first equipment, the second equipment.In the present embodiment, VTEP1, VTEP2 and VTEP3
Neighbor device each other.
Fig. 6 is please referred to, in the present embodiment, when the first equipment is the equipment that VM is accessed in advance, runs on described first
Virtual machine (vm) migration device 110 in equipment can also include:
First sending module 1104, for by the first outgoing interface, sending for detecting whether VM yet by first goes out to connect
The ARP request information that mouth is connect with the first equipment.
Adjustment module 1105 is adjusted VM forwarding-table item for the response results according to ARP request message.
In the present embodiment, adjustment module 1105 is specifically used for:
If receiving the arp reply information for ARP request information, the second outgoing interface in VM forwarding-table item is deleted
It removes, retains the first outgoing interface;
If not receiving the arp reply information for ARP request information, the first outgoing interface in VM forwarding-table item is deleted
It removes, retains the second outgoing interface.
Referring once again to Fig. 6, virtual machine (vm) migration device 110 can also include:
Second sending module 1106, if for receiving the arp reply message for the ARP request message, to institute
It states the second equipment and third equipment sends the 4th advertising of route information for indicating that the VM is not migrated, so that described second
Equipment and the third equipment delete the outgoing interface increased newly according to the first via by advertised information in respective VM forwarding-table item,
Retain outgoing interface original in the VM forwarding-table item.
Second sending module 1106, if being also used to not receive the arp reply message for the ARP request message,
The 5th advertising of route information for indicating that the VM is migrated is sent to second equipment and the third equipment, so that institute
It states the second equipment and the third equipment deletes outgoing interface original described in respective VM forwarding-table item, retain described newly-increased
Outgoing interface.Third equipment is the neighbor device of the first equipment, the second equipment.
In the present embodiment, advertising of route information includes the migration attribute identification field for indicating migration attribute.Migration
First high position of attribute identification field indicates that advertising of route information is that equipment sends the ARP request when for the first state
Routing iinformation after information;First high position of attribute identification field is migrated when for second of state, indicates advertising of route information
For synchronization of routing information, wherein the equipment includes first equipment, the second equipment or third equipment.
Second high position of attribute identification field is migrated when for the first state, indicates that equipment is received for ARP request
The arp reply message of information;Second high position of attribute identification field is migrated when for second of state, indicates that equipment does not receive
For the arp reply message of ARP request information.
It, can be with if above-mentioned function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are with so that the first equipment executes each reality of the application
Apply all or part of the steps of the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (English
Text: Read-OnlyMemory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as:
RAM), the various media that can store program code such as magnetic or disk.
In conclusion virtual machine migration method provided by the embodiments of the present application and device, firstly, being received by receiving interface
The advertising of route information that second equipment is sent;Then, it according to the address information of migration attribute and VM in advertising of route information, looks into
Look for it is stored include the first outgoing interface VM forwarding-table item;Finally, increasing the second outgoing interface newly in VM forwarding-table item.First
Equipment carries out retaining two outgoing interfaces when VM detection, it is ensured that message packet loss will not occur during detection, after the completion of detection, according to
Outgoing interface in each equipment is adjusted by detection result, only retains a correct outgoing interface, it can be ensured that service message energy
While being accurately sent to VM, the number for sending message is reduced, promotes the efficiency that message is sent.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain
Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
Claims (12)
1. a kind of virtual machine migration method is applied to the first equipment, which is characterized in that the described method includes:
Receive the first via that the second equipment is sent by advertised information by the receiving interface of first equipment, the first via by
Advertised information includes the address information of the migration attribute and the VM that indicate that the virtual machine VM has been migrated;
According to the address information of the migration attribute and the VM, search and the matched VM forwarding-table item of the address information, institute
Stating VM forwarding-table item includes the first outgoing interface;
Increase the second outgoing interface newly in the VM forwarding-table item, second outgoing interface is the receiving interface.
2. the method according to claim 1, wherein the method also includes:
When the secondary route advertised information that the expression VM for receiving the transmission of third equipment is not migrated, according to described the
Two advertising of route information delete second outgoing interface in the VM forwarding-table item, retain first outgoing interface;
When the third advertising of route information that the expression VM for receiving the transmission of third equipment is migrated, according to the third
Advertising of route information deletes first outgoing interface in the VM forwarding-table item, retains second outgoing interface;
The third equipment is the neighbor device of first equipment, second equipment.
3. the method as described in claim 1, which is characterized in that when first equipment is the equipment that the VM is accessed in advance
When, the method also includes:
By first outgoing interface, send for detecting whether the VM sets with described first yet by first outgoing interface
The ARP request information of standby connection;
According to the response results of the ARP request message, the VM forwarding-table item is adjusted.
4. method as claimed in claim 3, which is characterized in that the response results according to the ARP request message, to institute
VM forwarding-table item is stated to be adjusted, comprising:
If receiving the arp reply information for the ARP request information, described second in the VM forwarding-table item is gone out
Interface is deleted, and first outgoing interface is retained;
If not receiving the arp reply information for the ARP request information, by described first in the VM forwarding-table item
Outgoing interface is deleted, and second outgoing interface is retained.
5. method as claimed in claim 3, which is characterized in that the method also includes:
If receiving the arp reply message for the ARP request message, sent to second equipment and third equipment
The 4th advertising of route information that the VM is not migrated is indicated, so that second equipment and the third equipment are deleted respectively
The outgoing interface increased newly from VM forwarding-table item according to the first via by advertised information retains original in the VM forwarding-table item
Outgoing interface;
If not receiving the arp reply message for the ARP request message, set to second equipment and the third
Preparation send the 5th advertising of route information for indicating that the VM is migrated, so that second equipment and the third equipment are deleted
Except outgoing interface original described in respective VM forwarding-table item, retain the newly-increased outgoing interface;
The third equipment is the neighbor device of first equipment, second equipment.
6. the method as described in any one of claim 1-5, which is characterized in that advertising of route information includes for indicating to move
Move the migration attribute identification field of attribute;
When first high position of the migration attribute identification field is the first state, indicate the advertising of route information for equipment hair
Routing iinformation after sending ARP request information;When first high position of the migration attribute identification field is second of state, road is indicated
It is synchronization of routing information by advertised information;
When second high position of the migration attribute identification field is the first state, indicate that the equipment is received for described
The arp reply message of ARP request information;When second high position for migrating attribute identification field is second of state, set described in expression
The standby arp reply message not received for the ARP request information;
The equipment includes first equipment, the second equipment or third equipment.
7. a kind of virtual machine (vm) migration device, it is applied to the first equipment, which is characterized in that described device includes:
Receiving module receives the first via of the second equipment transmission by advertised information, institute by the receiving interface of first equipment
State the address information that the first via includes the migration attribute and the VM that indicate that the virtual machine VM migrated by advertised information;
Searching module is searched matched with the address information for the address information according to the migration attribute and the VM
VM forwarding-table item, the VM forwarding-table item include the first outgoing interface;
Newly-increased module, for increasing the second outgoing interface newly in the VM forwarding-table item, second outgoing interface is described connects
Mouthful.
8. device as claimed in claim 7, which is characterized in that the receiving module is also used to:
When the secondary route advertised information that the expression VM for receiving the transmission of third equipment is not migrated, according to described the
Two advertising of route information delete second outgoing interface in the VM forwarding-table item, retain first outgoing interface;
When the third advertising of route information that the expression VM for receiving the transmission of third equipment is migrated, according to the third
Advertising of route information deletes first outgoing interface in the VM forwarding-table item, retains second outgoing interface;
The third equipment is the neighbor device of first equipment, second equipment.
9. device as claimed in claim 7, which is characterized in that when first equipment is the equipment that the VM is accessed in advance
When, described device further include:
First sending module, for sending for whether detecting the VM yet by described first by first outgoing interface
The ARP request information that outgoing interface is connect with first equipment;
Adjustment module is adjusted the VM forwarding-table item for the response results according to the ARP request message.
10. device as claimed in claim 9, which is characterized in that adjustment module is specifically used for:
If receiving the arp reply information for the ARP request information, described second in the VM forwarding-table item is gone out
Interface is deleted, and first outgoing interface is retained;
If not receiving the arp reply information for the ARP request information, by described first in the VM forwarding-table item
Outgoing interface is deleted, and second outgoing interface is retained.
11. device as claimed in claim 10, which is characterized in that described device further include:
Second sending module, if being set for receiving the arp reply message for the ARP request message to described second
Standby and third equipment sends the 4th advertising of route information for indicating that the VM is not migrated so that second equipment and
The third equipment deletes the outgoing interface increased newly according to the first via by advertised information in respective VM forwarding-table item, described in reservation
Original outgoing interface in VM forwarding-table item;
Second sending module, if being also used to not receive the arp reply message for the ARP request message, to institute
It states the second equipment and the third equipment and sends the 5th advertising of route information for indicating that the VM is migrated, so that described the
Two equipment and the third equipment delete outgoing interface original described in respective VM forwarding-table item, and reservation is described newly-increased to be connect out
Mouthful;
The third equipment is the neighbor device of first equipment, second equipment.
12. device described in any one as claim in claims 7-11, which is characterized in that advertising of route information includes for indicating
Migrate the migration attribute identification field of attribute;
When first high position of the migration attribute identification field is the first state, indicate the advertising of route information for equipment hair
Routing iinformation after sending the ARP request information;First high position of attribute identification field is migrated when for second of state, is indicated
Advertising of route information is synchronization of routing information;
Second high position of the migration attribute identification field indicates that the equipment is received for described when for the first state
The arp reply message of ARP request information;Second high position of the migration attribute identification field indicates when for second of state
The equipment does not receive the arp reply message for the ARP request information;
The equipment includes first equipment, the second equipment or third equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810866973.1A CN109189549A (en) | 2018-08-01 | 2018-08-01 | Virtual machine migration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810866973.1A CN109189549A (en) | 2018-08-01 | 2018-08-01 | Virtual machine migration method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189549A true CN109189549A (en) | 2019-01-11 |
Family
ID=64920342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810866973.1A Pending CN109189549A (en) | 2018-08-01 | 2018-08-01 | Virtual machine migration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189549A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111736958A (en) * | 2020-06-29 | 2020-10-02 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer equipment and storage medium |
CN111988223A (en) * | 2020-08-19 | 2020-11-24 | 杭州迪普科技股份有限公司 | Virtual machine migration method and network system |
CN113296869A (en) * | 2020-02-24 | 2021-08-24 | 华为技术有限公司 | Virtual machine VM (virtual machine) migration method and device |
CN113938354A (en) * | 2021-10-12 | 2022-01-14 | 中国联合网络通信集团有限公司 | Routing information updating method and device, electronic equipment and computer readable medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101656679A (en) * | 2009-09-25 | 2010-02-24 | 华为技术有限公司 | Method for rapidly converging multicast, router and communication system |
CN102130826A (en) * | 2010-11-25 | 2011-07-20 | 华为技术有限公司 | Message transmitting method and device |
CN102932499A (en) * | 2012-11-01 | 2013-02-13 | 杭州华三通信技术有限公司 | Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks |
CN103631652A (en) * | 2012-08-28 | 2014-03-12 | 中兴通讯股份有限公司 | Method and system for achieving virtual machine migration |
CN105763440A (en) * | 2016-01-29 | 2016-07-13 | 杭州华三通信技术有限公司 | Message forwarding method and device |
US20170147381A1 (en) * | 2010-09-30 | 2017-05-25 | Amazon Technologies, Inc. | Managing virtual computing nodes |
CN106878052A (en) * | 2016-12-21 | 2017-06-20 | 新华三技术有限公司 | A kind of customer shift method and device |
CN106998297A (en) * | 2017-03-22 | 2017-08-01 | 新华三技术有限公司 | A kind of virtual machine migration method and device |
WO2017199062A1 (en) * | 2016-05-17 | 2017-11-23 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatus for enabling live virtual machine (vm) migration in software-defined networking networks |
CN107547400A (en) * | 2017-06-21 | 2018-01-05 | 新华三技术有限公司 | A kind of virtual machine migration method and device |
CN107612834A (en) * | 2017-09-13 | 2018-01-19 | 杭州迪普科技股份有限公司 | A kind of EVPN route renewing methods based on virtual unit migration |
CN108259347A (en) * | 2017-05-19 | 2018-07-06 | 新华三技术有限公司 | A kind of message transmitting method and device |
-
2018
- 2018-08-01 CN CN201810866973.1A patent/CN109189549A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101656679A (en) * | 2009-09-25 | 2010-02-24 | 华为技术有限公司 | Method for rapidly converging multicast, router and communication system |
US20170147381A1 (en) * | 2010-09-30 | 2017-05-25 | Amazon Technologies, Inc. | Managing virtual computing nodes |
CN102130826A (en) * | 2010-11-25 | 2011-07-20 | 华为技术有限公司 | Message transmitting method and device |
CN103631652A (en) * | 2012-08-28 | 2014-03-12 | 中兴通讯股份有限公司 | Method and system for achieving virtual machine migration |
CN102932499A (en) * | 2012-11-01 | 2013-02-13 | 杭州华三通信技术有限公司 | Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks |
CN105763440A (en) * | 2016-01-29 | 2016-07-13 | 杭州华三通信技术有限公司 | Message forwarding method and device |
WO2017199062A1 (en) * | 2016-05-17 | 2017-11-23 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and apparatus for enabling live virtual machine (vm) migration in software-defined networking networks |
CN106878052A (en) * | 2016-12-21 | 2017-06-20 | 新华三技术有限公司 | A kind of customer shift method and device |
CN106998297A (en) * | 2017-03-22 | 2017-08-01 | 新华三技术有限公司 | A kind of virtual machine migration method and device |
CN108259347A (en) * | 2017-05-19 | 2018-07-06 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN107547400A (en) * | 2017-06-21 | 2018-01-05 | 新华三技术有限公司 | A kind of virtual machine migration method and device |
CN107612834A (en) * | 2017-09-13 | 2018-01-19 | 杭州迪普科技股份有限公司 | A kind of EVPN route renewing methods based on virtual unit migration |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113296869A (en) * | 2020-02-24 | 2021-08-24 | 华为技术有限公司 | Virtual machine VM (virtual machine) migration method and device |
WO2021169514A1 (en) * | 2020-02-24 | 2021-09-02 | 华为技术有限公司 | Virtual machine (vm) migrating method and apparatus |
CN113296869B (en) * | 2020-02-24 | 2023-01-13 | 华为技术有限公司 | Virtual machine VM (virtual machine) migration method and device |
CN111736958A (en) * | 2020-06-29 | 2020-10-02 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer equipment and storage medium |
CN111736958B (en) * | 2020-06-29 | 2023-06-30 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer equipment and storage medium |
CN111988223A (en) * | 2020-08-19 | 2020-11-24 | 杭州迪普科技股份有限公司 | Virtual machine migration method and network system |
CN113938354A (en) * | 2021-10-12 | 2022-01-14 | 中国联合网络通信集团有限公司 | Routing information updating method and device, electronic equipment and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109189549A (en) | Virtual machine migration method and device | |
CN105763440B (en) | A kind of method and apparatus of message forwarding | |
CN104219340B (en) | A kind of arp reply Proxy Method and device | |
CN102801599B (en) | A kind of communication means and system | |
CN107547242B (en) | The acquisition methods and device of VM configuration information | |
EP2731010A1 (en) | Method, device, and system for migrating configuration information during live migration of virtual machine | |
CN108173691B (en) | Cross-device aggregation method and device | |
CN103795602A (en) | Network strategy configuration method and device of virtual network | |
CN101764751A (en) | Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN | |
CN110505621B (en) | Terminal migration processing method and device | |
JP6928076B2 (en) | Packet monitoring | |
CN108199968B (en) | Route processing method and device | |
CN105162702A (en) | AC current guide method and device | |
JP2019515553A (en) | Packet transmission | |
CN109067784A (en) | The method and apparatus of anti-fraud in a kind of VXLAN | |
WO2012146120A1 (en) | Method for forwarding response packet from dhcp server, forwarding device and system | |
CN104301446B (en) | A kind of message processing method, switch device and system | |
CN105812221B (en) | The device and method of data transmission in virtual expansible Local Area Network | |
CN113489646B (en) | VXLAN-based segmented route transmission method, server, source node and storage medium | |
CN104486217A (en) | Cross network message transmitting method and equipment | |
JP2024504466A (en) | Packet forwarding methods, packet processing methods, and devices | |
CN108768849A (en) | Message processing method and device | |
CN108259349A (en) | A kind of message forwarding method and device | |
CN107547341B (en) | Access method and device of virtual extensible local area network VXLAN | |
US20150222591A1 (en) | Method, Device, and System for Acquiring Internet Protocol Address |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |