WO2012119390A1 - Virtual machine migration notification method and system - Google Patents

Virtual machine migration notification method and system Download PDF

Info

Publication number
WO2012119390A1
WO2012119390A1 PCT/CN2011/078397 CN2011078397W WO2012119390A1 WO 2012119390 A1 WO2012119390 A1 WO 2012119390A1 CN 2011078397 W CN2011078397 W CN 2011078397W WO 2012119390 A1 WO2012119390 A1 WO 2012119390A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
control node
router
migrated
server
Prior art date
Application number
PCT/CN2011/078397
Other languages
French (fr)
Chinese (zh)
Inventor
郑若滨
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2011/078397 priority Critical patent/WO2012119390A1/en
Priority to CN201180001418.9A priority patent/CN103430149B/en
Publication of WO2012119390A1 publication Critical patent/WO2012119390A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a virtual machine (VM) migration method and system.
  • VM virtual machine
  • DC Data Center
  • VMs are set up on the server for calculation.
  • the VMs set up on the server need to be migrated to other servers.
  • the Media Access Control (MAC) address of the VM to be migrated is notified to the relevant node in the DC network by means of an address resolution protocol (ARP) message.
  • ARP address resolution protocol
  • each of the DCs includes a large number of VMs, the existing VM migration method can form a broadcast storm in the DC network.
  • the control signaling related to the migration occupies a large amount of network bandwidth, which causes waste of network bandwidth resources. Summary of the invention
  • the embodiment of the present invention provides a virtual machine migration notification method, which is used to solve the defects in the prior art and save bandwidth occupied by control signaling.
  • the embodiment of the present invention further provides a virtual machine migration system, which is used to solve the defects in the prior art and save bandwidth occupied by control signaling.
  • the embodiment of the invention provides a virtual machine VM migration method, including:
  • the target server starts the VM to be migrated and sends the media access control MAC address and the internet protocol IP address of the VM to be migrated to the target control node by using the first address resolution protocol ARP message; the target control node is updated according to the first ARP message.
  • IP routing table through the first road Sending, by the protocol packet, the IP address routing information of the VM to be migrated to the source control node, where the IP address routing information of the VM to be migrated includes the IP address of the VM to be migrated and the IP address of the target control node. ;
  • the source control node updates the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and sends the VM to be migrated to the source server by using the second ARP message. IP address or IP address and MAC address.
  • the embodiment of the invention further provides a virtual machine VM migration system, including:
  • a target server configured to start a VM to be migrated and send a media access control MAC address and an internet protocol IP address of the VM to be migrated to the target control node by using a first address resolution protocol ARP message;
  • a target control node configured to update an IP routing table according to the first ARP message, and send, by using the first routing protocol packet, the IP address routing information of the VM to be migrated after the update, and the IP of the VM to be migrated after the update
  • the address routing information includes an IP address of the VM to be migrated and an IP address of the target control node;
  • the source control node is configured to update the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and send the to-be-migrated to the source server by using the second ARP message.
  • a source server configured to receive the second ARP message from the source control node.
  • ARP protocol a routing protocol is used in the interaction process between the sites, and the target control node and the source control node perform mutual triggering and conversion between the ARP message and the routing protocol message. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is prevented from being sent to the DC interconnection network between the sites. Therefore, the broadcast storm caused by the broadcast of the ARP message in the DC Internet is avoided, thereby saving the broadcast. Control the bandwidth occupied by signaling.
  • FIG. 1 is a flowchart of a virtual machine migration notification method according to Embodiment 1 of the present invention.
  • Embodiment 2 is a schematic structural diagram of a network according to Embodiment 2 of the present invention and Embodiment 3 of the present invention;
  • FIG. 3 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 2 of the present invention.
  • FIG. 4 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of a virtual machine migration system according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a target control node 52 according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of a source control node 53 according to Embodiment 6 of the present invention. detailed description
  • FIG. 1 is a flowchart of a virtual machine migration notification method according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following process.
  • Step 101 The target server starts the VM to be migrated and sends a MAC address and an Internet Protocol (IP) address of the VM to be migrated to the target control node by using the first ARP message.
  • IP Internet Protocol
  • the target server refers to the server where the migrated VM is located.
  • the target control node is the control node of the site where the migrated VM is located, and may be the Customer Edge (CE) router or the carrier edge (Provider Edge) of the site where the migrated VM is located. Edge, referred to as PE) router.
  • the ARP message may be a Gratuitous ARP (GARP).
  • Step 102 The target control node updates the IP routing table according to the first ARP message, and sends the updated IP address routing information of the VM to be migrated to the source control node by using the first routing protocol packet.
  • the source control node is the control node of the site where the VM before the migration is located, and may be the CE router or PE router of the site where the VM is located before the migration.
  • the IP address routing information of the VM to be migrated after the update includes the IP address of the VM to be migrated and the IP address of the target control node.
  • the routing protocol packet refers to a packet that is sent by using a routing protocol.
  • the routing protocol may be a Border Gateway Protocol (BGP) or an intermediate system. Internediate System to Intermediate System (IS-IS) protocol.
  • BGP Border Gateway Protocol
  • IS-IS Internediate System to Intermediate System
  • an ARP message can only contain the address of one VM, and a routing protocol message can include the addresses of multiple VMs. Therefore, when the target control node receives multiple first ARP messages, it can The address of the VM in the multiple first ARP messages is integrated into a first routing protocol message and sent to the source control node.
  • Each site uses its own control node as the edge node for information interaction.
  • routing protocol packets are used between the sites to integrate ARP messages for multiple VMs in each site into one routing protocol packet.
  • the routing protocol packets are used to transmit messages between sites. Compared with the transmission of each ARP message between sites, the use of routing protocol packets for centralized aggregation can greatly reduce the amount of message transmission between sites. .
  • Step 103 The source control node updates the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and sends the IP address of the VM to be migrated to the source server through the second ARP message, or A combination of an IP address and a MAC address.
  • the source server is the server where the VM before migration is located.
  • the ARP protocol is adopted in the interaction process in each site, and the ARP protocol is a data link layer protocol, and each site is used.
  • the interaction process between the ARP message and the routing protocol message is triggered and converted by the target control node and the source control node. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is avoided from being sent to the DC internet between sites. Because an ARP message can only be used for one address, and one routing protocol message can include multiple addresses. Therefore, by using a routing protocol message instead of an ARP message in the DC internet, the ARP message band is avoided in the DC internet. The incoming broadcast storm saves the bandwidth occupied by control signaling.
  • FIG. 2 is a schematic structural diagram of a network according to Embodiment 2 of the present invention and Embodiment 3 of the present invention.
  • the network is a DC network that supports VM migration.
  • the network includes three sites. The three sites are connected to one PE router through their respective CE routers, and the three PE routers are connected to form a DC internetwork.
  • the first station includes a first server, and a plurality of VMs, such as VM11 and VM12, are disposed on the first server, and the first station includes a first CE router, and the first CE router is connected to the first A PE router; taking the second station as the second server as an example, setting a plurality of VMs on the second server, such as VM21, etc., and the second station includes a second CE router, and the second CE router is connected to the second
  • the third station includes a third server, and the third server is configured with multiple VMs, such as VM31, and the third station includes a third CE router, and the third CE router is connected to the third PE. router.
  • the first PE router, the second PE router, and the third PE router are connected to each other.
  • the virtual machine migration notification method in the first embodiment of the present invention is applied to the network architecture shown in FIG. 2 as an example, and the first embodiment of the present invention is described in detail.
  • the migration of the VM 12 on the first server to the third server is taken as an example.
  • the virtual machine to be migrated is VM12; the first server is the source server, and the first CE router is used.
  • the first PE router is the source PE router; the third server is the target server, the third CE router is the target CE router, and the third PE router is the target PE router.
  • the source control node may be the first CE router, and correspondingly, the target control node is the third CE router.
  • the source control node can be the first PE The router, correspondingly, the target control node is a third PE router.
  • FIG. 3 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 2 of the present invention.
  • the control node is a CE router, and an ARP proxy function is set on each CE router.
  • the first site is the source site
  • the first server is the source server
  • the first CE router is the source CE router
  • the third site is the target site
  • the third server is the target server
  • the third CE router is the target CE router.
  • the method includes the following process.
  • Step 301 The first CE router acquires, by using an ARP message, a mapping relationship between a MAC address and an IP address of the VM12 of the first server from the first server.
  • each CE router obtains the mapping relationship between the MAC address and the IP address of the VM in the site corresponding to its own server through the ARP message.
  • the first server sends an ARP message to the first CE router, where the message includes a mapping relationship between the MAC address and the IP address of the VM in the first site; the first CE router receives the ARP message from the first server, according to the ARP The message acquires the mapping between the MAC address and the IP address of the VM in the first site, and the second CE router obtains the mapping between the MAC address and the IP address of the VM in the second site from the second server by using the ARP message, and the third CE router passes the ARP.
  • the message acquires a mapping relationship between the MAC address and the IP address of the VM in the third site from the third server.
  • the process of migrating from the first server in the first site to the third server in the third site is taken as an example. Therefore, in this step, the first CE router passes the ARP message.
  • the first server acquires a mapping relationship between a MAC address and an IP address of the VM in the first site.
  • the mapping between the MAC address and the IP address of the VM in the first site, which is obtained by the first CE router, includes the mapping between the MAC address and the IP address of the VM12, as the VM12 is located in the first site.
  • each CE router After obtaining the mapping relationship between the MAC address and the IP address of the VM in the corresponding site, each CE router also according to the MAC address of the VM in the corresponding site.
  • a mapping relationship between IP addresses which stores a mapping table of MAC addresses and IP addresses.
  • the first CE router is still taken as an example.
  • Table 1 is a mapping table of MAC addresses and IP addresses of the first CE router.
  • @ represents the specific content of the address.
  • Step 302 The first CE router sends the IP address routing information of the VM12 of the first server to the third CE router through the routing protocol message.
  • each CE router sends the IP address routing information of the VM of its corresponding site to other CE routers through routing protocol packets.
  • the first CE router sends the IP address routing information of the VM of the first site to the second CE router and the third CE router by using the routing protocol packet
  • the second CE router sends the routing protocol packet to the first CE router and the first
  • the third CE router sends the IP address routing information of the VM of the second site
  • the third CE router sends the IP address routing information of the VM of the third site to the first CE router and the second CE router by using the routing protocol packet.
  • only the process of migrating from the first server in the first site to the third server in the third site is taken as an example.
  • the protocol packet sends the IP address routing information of the VM of the first site to the third CE router as an example.
  • the specific process of the other CE routers sending the IP address routing information of the VMs of the corresponding sites may refer to the first CE router sending the IP address routing information of the VMs of the first site. The implementation is not repeated here.
  • the specific process of the first CE router sending the IP address routing information of the VM of the first site to the third CE router by using the routing protocol packet includes: First, the first CE router sets the IP address of the VM in the first site and the first The IP address of a CE router constitutes the IP address routing information of the first site.
  • the pre-migration VM 12 is located in the first server in the first site and belongs to the VM in the first site. Therefore, the IP address routing information of the VM of the first site where the first CE router is located is , including the IP address routing information of the VM12 of the first server.
  • the IP address routing information of the VM12 of the first server includes an IP address of the VM12 of the first server and an IP address of the first CE router. Then, the first CE router sends the IP address routing information of the VM of the first station to the third CE router through the routing protocol message. The first CE router sends the IP address routing information of the VM12 of the first server in the first station to the third CE router by sending the IP address routing information of the VM of the first site.
  • each CE router sends the IP address routing information of the VM of its corresponding site to other CE routers through routing protocol packets
  • the other CE routers store their own information according to the IP address routing information of the obtained VMs of the site. IP routing table, and update the mapping table of its stored MAC address and IP address. See Table 2 to Table 5, where: Table 2 is the IP routing table of the third CE router; Table 3 is the IP routing table of the second CE router; Table 4 is the IP routing table of the first CE router; Table 5 is the second Mapping table of MAC addresses and IP addresses of CE routers.
  • Step 303 The third server sends the MAC address and the IP address of the VM12 of the third server to the node between the third server and the third CE router through the ARP message.
  • the node between the third server and the third CE router may include a switch, a hub, a router, and the like.
  • the migration process of VM12 can be manually triggered by the network administrator, or the migration process of VM12 can be triggered by the first server.
  • the VM12 migration process specifically includes the following steps: First, the third server starts a VM whose MAC address and IP address are the same as the MAC address and IP address of the VM12 of the first server. In the second embodiment of the present invention, the VM started by the third server will eventually replace the VM 12 of the first server, which is also referred to as VM12. The MAC address and IP address of the VM 12 of the third server are the same as the MAC address and IP address of the VM 12 of the first server, respectively. Then, the third server sends an ARP message to the node between the third server and the third CE router, where the ARP message carries the MAC address and IP address of the VM 12 of the third server.
  • Step 304 The node between the third server and the third CE router learns the MAC address of the VM 12 of the third server and updates the MAC address forwarding table.
  • the ARP message sent by the third server in the foregoing step 303 is broadcasted in the third station, and all nodes in the third station, that is, all nodes between the third server and the third CE router, will learn.
  • the MAC address of the VM 12 to the third server, and the respective MAC address forwarding table is updated according to the MAC address.
  • Step 305 The third CE router acquires the MAC address and the IP address of the VM 12 of the third server from the node between the third server and the third CE router through the ARP message.
  • the node between the third server and the third CE router forwards the ARP message to the third CE router, so that the MAC address and the IP address of the VM12 carrying the third server sent by the third server in step 303 are obtained.
  • the ARP message is received by the third CE router.
  • Step 306 The third CE router updates the IP routing table and obtains the next hop address corresponding to the IP address of the VM12 of the third server.
  • the third CE router updates the IP routing table stored in the third CE router according to the obtained IP address and MAC address of the VM12 of the third server. And, the third CE in step 305 The ARP message obtained by the router triggers the third CE router to check the IP routing table, and obtains the next hop address corresponding to the IP address of the VM 12 of the third server.
  • the next hop address corresponding to the IP address of the VM 12 of the third server is the IP address of the first CE router.
  • Step 307 The third CE router sends the updated IP address routing information of the VM12 of the third server to the first CE router and the second CE router by using the routing protocol packet.
  • the IP address of the VM12 of the third server and the IP address of the third CE router constitute the updated IP address routing information of the VM 12 of the third server.
  • the third CE router updates the IP routing table stored by itself according to the IP address routing information of the VM12 of the updated third server. See Table 6, Table 6 for the updated IP routing table of the third CE router.
  • the third CE router initiates a routing protocol packet by using the action of obtaining the ARP message in step 305, and sends the updated IP address routing information of the VM 12 of the third server to the other CE router through the routing protocol packet.
  • the node for example, is sent to the first CE router and the second CE router.
  • the foregoing routing protocol may adopt BGP or IS-IS protocol. Updated IP routing table of the third CE router
  • Step 308 The first CE router updates the IP routing table.
  • the first CE router queries the IP routing table stored by the first CE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after inquiry, The first CE router finds that the IP address routing information of the VM 12 of the first server consisting of the IP address of the VM 12 and the IP address of the first CE router already exists in the table. The IP routing table stored by the first CE router is queried according to the IP address routing information of the VM12 of the third server. The first CE router learns that the VM12 is migrated from the local first site to another station, and the first CE router follows the route of step 307.
  • the IP address routing information of the VM12 of the updated third server carried in the protocol packet updates the IP routing table, and the IP address of the VM12 and the next hop address in the table constitute a new IP address routing information.
  • the next hop address of the VM 12 is the IP address of the third CE router. See Table 7, Table 7 is the IP routing table of the updated second CE router. IP routing table of the second CE router
  • step 308 the first CE router learns that the VM 12 is migrated from the local first site to another station according to the routing protocol message, and then proceeds to step 309, where the first CE router triggers according to the routing protocol packet. ARP message.
  • Step 309 The first CE router sends the IP address of the VM 12 or the IP address and MAC address of the VM 12 to the node between the first server and the first CE router through the ARP message.
  • the first CE router triggers an ARP message, where the ARP message carries the IP address of the VM12.
  • the first CE router broadcasts the triggered ARP message to the first station, and is used to notify the node in the first station to release related resources of the VM 12 belonging to the first server, for example, computing resources or storage resources, and the like. Broadcast the ARP in the first site The message, the node between the first server and the first CE router will receive the ARP message.
  • the first CE router may first query the mapping table of the MAC address and the IP address stored by the first CE router according to the IP address of the VM 12, and obtain the MAC address of the VM 12.
  • the first CE router triggers an ARP message, where the ARP message carries the IP address and MAC address of the VM12.
  • the ARP message can also be used to update the MAC address forwarding table of each node in the first site.
  • the ARP message is broadcast in the first station, and the node between the first server and the first CE router receives the ARP message.
  • the ARP message used in the foregoing manner may be extended by using an operation code (OP Code) of the existing ARP message.
  • OP Code operation code
  • the specific extension method is: assigning a set value to the OP code of the ARP message, and indicating the related resources of the VM belonging to the first server and having the same address as the IP address carried by the ARP message.
  • related resources can include computing resources or storage resources, and so on.
  • Step 310 The node between the first server and the first CE router learns the MAC address of the VM 12 and updates the MAC address forwarding table.
  • the node between the first server and the first CE router receives the ARP message in step 309.
  • the ARP message in step 309 is carried in an Ethernet (Ethernet, hereinafter referred to as ETH) frame and transmitted to a node between the first server and the first CE router, where the ETH frame includes the MAC address of the VM 12, and the first server
  • ETH Ethernet
  • the node with the first CE router relearns the MAC address of the VM 12 and updates the respective MAC address forwarding table according to the learned MAC address of the VM 12.
  • Step 31 The first server receives the ARP message forwarded by the node between the first server and the first CE router, obtains the IP address of the VM12, or obtains the IP address and MAC address of the VM12.
  • Step 312 The first server releases related resources of the VM 12 of the first server.
  • the first server releases the related resources of the VM 12 belonging to the first server.
  • the related resources may include computing resources or storage resources, and the like.
  • step 313 After step 307, the following step 313 can also be performed.
  • the steps 308 to 312 are performed in the above sequence, and the step 313 can be performed before, after or simultaneously with the step 308 to the step 312.
  • Step 313 The second CE router updates the IP routing table.
  • the second CE router queries the IP routing table stored by the second CE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after querying, the second CE router finds that the IP address of the VM12 and the IP address of the first CE router already exist in the table. The IP address routing information of a server's VM12. According to the above query result, since the IP address of the VM 12 does not correspond to the local address of the second CE router, that is, the IP address of the second CE router is not corresponding, the second CE router learns that the VM 12 is not migrated from the local second site. .
  • the second CE router updates the IP routing table only according to the IP address routing information of the updated VM12 of the third server carried in the routing protocol message in step 307, and the IP address of the VM12 in the table is compared with the third CE router.
  • the IP address constitutes a new IP address routing information. See Table 8, Table 8 for the updated IP routing table of the first CE router.
  • step 313 since the second CE router learns that the VM 12 is not migrated from the local second site, after step 313, the second CE router does not trigger the IP address carrying the VM 12 or the IP address carrying the VM 12. ARP message with MAC address.
  • steps 303 and 304 may be omitted.
  • the third server sends the MAC address and IP address of the VM12 of the third server directly to the third CE router through the ARP message. IP routing table of the CE router
  • the VM 12 is migrated from the first server in the first site to the third server in the third site.
  • the VM 21 in the second server of the second site Take the VM 21 in the second server of the second site as an example of communication with the VM 12.
  • VM12 Before VM12 migration, VM12 is located in the first server in the first site, and the communication process between VM21 and VM12 is as follows.
  • Step 3a The second CE router acquires an IP packet from the VM21.
  • the VM 21 sends an ARP message carrying the IP address of the VM 12 to the second CE router, and requests the MAC address of the VM 12 from the second CE router through the message.
  • the second CE router acts as an ARP proxy, and queries the mapping table of the MAC address and IP address of the second CE router itself, as shown in Table 5.
  • the mapping table of the MAC address and the IP address of the second CE router replies the MAC address of the second CE router to the VM 21 as the MAC address of the VM 12.
  • the VM 21 sends an IP packet to the second CE router, and the destination IP address of the IP packet is the IP address of the VM 12.
  • the IP packet is sent to the second CE router, and the destination MAC address of the ETH packet is the MAC address of the second CE router.
  • Step 3b The second CE router encapsulates the IP packet into an IP tunnel to the first CE router.
  • the second CE router receives the IP packet in step 3a, and the purpose of the IP packet is The IP address is the IP address of VM12.
  • the second CE router queries the IP routing table of the second CE router itself, as shown in Table 3. According to the IP address of the VM12, the query obtains the next hop as the first CE router. Then, the second CE router encapsulates the IP packet into an IP tunnel to the first CE router. Specifically, the destination address of the IP tunnel is an IP address of the first CE router, and the source address is an IP address of the second CE router.
  • Step 3c The first CE router obtains an IP packet carried in the IP tunnel.
  • the first CE router receives the encapsulated packet from the second CE router, removes the IP tunnel encapsulation, and obtains an IP packet.
  • the destination IP address of the obtained IP packet is the IP address of the VM12.
  • Step 3d The first CE router sends an IP packet to the VM12 in the first server.
  • the first CE router queries the IP routing table of the first CE router according to the IP address of the obtained IP packet, and refers to Table 4.
  • the first CE router queries that the next hop is local, the first CE router sends the IP packet in the first station, and the destination IP address of the IP packet is the IP address of the VM12.
  • the VM 12 located in the first server in the first site receives the IP packet.
  • the above steps 3a to 3d are the data transfer process before the VM12 migration, and are executed before the above step 307. After the above steps 307 to 309 are performed, the VM 12 is migrated. After VM12 migration, VM12 is located in the third server in the third site, and the communication process between VM21 and VM12 is as follows.
  • the data transmission process of the first CE router includes the following steps 3e to 3h.
  • Step 3e The first CE router obtains an IP packet that is carried in the IP tunnel.
  • the first CE router receives the routing protocol packet of step 307, if the first CE router also receives the IP tunnel carried by the IP address of the first CE router and the destination IP address is VM12. For IP packets with IP addresses, follow the steps below.
  • Step 3f The first CE router encapsulates the IP packet into the IP tunnel to the third CE router. Road.
  • the first CE router queries the IP routing table of the first CE router according to the IP address of the VM12. Referring to Table 8, the next hop address corresponding to the IP address of the VM12 is the IP address of the third CE router. Then, the first CE router encapsulates the IP packet whose destination IP address is the IP address of the VM12 into the IP tunnel to the third CE router. The destination address of the IP tunnel is the IP address of the third CE router, and the source address is the The IP address of a CE router. After the second CE router receives the routing protocol packet later than the first CE router, by performing this step, it can ensure that after the VM 12 is migrated, the data transmission process does not drop packets, and the data transmission is ensured correctly.
  • Step 3g The third CE router obtains the IP packet carried in the IP tunnel.
  • the third CE router receives the encapsulated packet from the first CE router, removes the IP tunnel encapsulation, and obtains an IP packet.
  • the destination IP address of the obtained IP packet is the IP address of the VM12.
  • Step 3h The third CE router sends an IP packet to the VM12 in the third server.
  • the third CE router queries the IP routing table of the third CE router according to the IP address of the obtained IP packet, and refers to Table 6.
  • the third CE router queries that the next hop is local, and the third CE router sends the IP packet in the third station, and the destination IP address of the IP packet is the IP address of the VM12.
  • the VM 12 in the third server located in the third site receives the IP packet.
  • the data transmission process of the second CE router includes the following steps 3i to 3k. Steps 3i through 3k can be performed before, after or simultaneously with steps 3e through 3h.
  • Step 3i The second CE router encapsulates the IP packet into an IP tunnel to the third CE router.
  • the second CE router receives the routing protocol packet of step 307
  • the second CE router receives the IP packet from the IP address of the VM12 whose destination IP address is the VM12
  • the IP routing table of the second CE router itself is queried according to the IP address of the VM12, as shown in Table 7. According to the IP address of VM12, the query obtains the IP address corresponding to VM12. The next hop address is the IP address of the third CE router.
  • the first CE router encapsulates the IP packet whose IP address is the IP address of the VM12 into the IP tunnel to the third CE router.
  • the destination address of the IP tunnel is the IP address of the third CE router, and the source address is The IP address of the first CE router.
  • the second CE router directly forwards the IP packet to be sent to the VM 12 to the third CE router.
  • Step 3j The third CE router obtains the IP packet carried in the IP tunnel.
  • the third CE router receives the encapsulated packet from the second CE router, removes the IP tunnel encapsulation, and obtains an IP packet.
  • the destination IP address of the obtained IP packet is the IP address of the VM12.
  • Step 3k The third CE router sends an IP packet to the VM12 in the third server.
  • This step is the same as step 3h above, and is not described here.
  • the interaction process in the site adopts the ARP protocol, and the interaction process between the sites adopts a routing protocol. Therefore, when each CE router interacts with other nodes in the site where the CE router is located, the ARP protocol is adopted; when the first CE router that is the source CE router interacts with the third CE router that is the target CE router, the route is adopted. Protocol: The first CE router and the third CE router complete mutual triggering and conversion between the ARP message and the routing protocol message. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is prevented from being sent to the DC internet. Because an ARP message can only be used for one address, and a routing protocol message can include multiple addresses. Therefore, by using a routing protocol message instead of an ARP message in the DC Internet, it is avoided to broadcast an ARP message band in the DC internet. The incoming broadcast storm saves the bandwidth occupied by control signaling.
  • FIG. 4 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 3 of the present invention.
  • the ARP proxy function is set on each PE router by taking the control node as a PE router as an example.
  • the process of migrating from the first server in the first site to the third server in the third site is taken as an example, the first site is a source site, and the first server is a source server, One PE router is the source PE router; the third site is the target site, the third service The server is the target server, and the third PE router is the target PE router.
  • a VPN is formed by a multi-protocol label switching (MPLS) technology between PE routers.
  • MPLS multi-protocol label switching
  • Step 401 The first PE router obtains a mapping relationship between the MAC address and the IP address of the VM12 of the first server from the first server by using an ARP message.
  • each PE router obtains the mapping relationship between the MAC address and the IP address of the VM in the corresponding site through the ARP message from its own server.
  • the first server sends an ARP message to the first CE router, where the message includes a mapping relationship between the MAC address and the IP address of the VM in the first site; the first CE router forwards the ARP message to the first PE router;
  • the PE router receives the foregoing ARP message from the first CE router, and obtains a mapping relationship between the MAC address and the IP address of the VM in the first site according to the ARP message, and the second PE router acquires the VM in the second site from the second server by using the ARP message.
  • the mapping between the MAC address and the IP address is obtained by the third PE router from the third server by using the ARP message to obtain the mapping relationship between the MAC address and the IP address of the VM in the third site.
  • the process of migrating from the first server in the first site to the third server in the third site is taken as an example. Therefore, in this step, the first PE router passes the ARP message.
  • the first server acquires a mapping relationship between a MAC address and an IP address of the VM in the first site.
  • the mapping between the MAC address and the IP address of the VM in the first site obtained by the first PE router includes the mapping between the MAC address and the IP address of the VM12.
  • each PE router After obtaining the mapping relationship between the MAC address and the IP address of the VM in the corresponding site, each PE router also stores the MAC address and the IP address in the corresponding site according to the mapping relationship between the MAC address and the IP address of the VM in the corresponding site.
  • a mapping table of MAC addresses and IP addresses Taking the first PE router as an example, Table 9 is a mapping table of the MAC address and IP address of the first PE router. After the first PE router acquires the mapping relationship between the MAC address and the IP address of the VM in the first site from the first server by using the ARP message, the foregoing mapping relationship is stored in Table 9. The mapping relationship between the MAC address and the IP address of the VM 12 of the first server is included in Table 9. Mapping table of MAC address and IP address of PE router
  • Step 402 The first PE router sends the IP address routing information of the VM12 of the first server to the third PE router by using the routing protocol packet.
  • each PE router sends the IP address routing information of the VM of its own site to other PE routers through routing protocol packets.
  • the first PE router sends the IP address routing information of the VM of the first site to the second PE router and the third PE router by using the routing protocol packet
  • the second PE router sends the routing protocol packet to the first PE router and the first
  • the third PE router sends the IP address routing information of the VM of the second site
  • the third PE router sends the IP address routing information of the VM of the third site to the first PE router and the second PE router by using the routing protocol packet.
  • only the process of migrating from the first server in the first site to the third server in the third site is taken as an example.
  • the protocol packet sends the IP address routing information of the VM of the first site to the third PE router as an example.
  • the process of sending the IP address routing information of the VMs of the corresponding PEs of the other PEs may be implemented by referring to the process of sending the IP address routing information of the VMs of the first site by the first PE router, and details are not described herein.
  • the specific process of the first PE router sending the IP address routing information of the VM of the first site to the third PE router by using the routing protocol packet includes: First, the first PE router sets the IP address of the VM in the first site and the first The IP address of a PE router constitutes the IP address routing information of the first site.
  • the VM 12 before the migration is located in the first server in the first site and belongs to the VM in the first site. Therefore, the IP address routing information of the VM of the first site formed by the first PE router is The information includes the IP address routing information of the VM12 of the first server.
  • the IP address routing information of the VM 12 of the first server includes an IP address of the VM 12 of the first server and an IP address of the first PE router. Then, the first PE router sends the IP address routing information of the VM of the first site to the third PE router through the routing protocol message. The first PE router sends the IP address routing information of the VM 12 of the first server in the first site to the third PE router by sending the IP address routing information of the VM of the first site.
  • each PE router sends the IP address routing information of the VM of its corresponding site to other PE routers through routing protocol packets
  • the other PE routers store their own information according to the IP address routing information of the obtained VMs of the site.
  • IP routing table and update the mapping table of its stored MAC address and IP address. See Table 10 to Table 13, where: Table 10 is the IP routing table of the third PE router; Table 11 is the IP routing table of the second PE router; Table 12 is the IP routing table of the first PE router; Table 13 is the second Mapping table of MAC addresses and IP addresses of PE routers.
  • "X" indicates a hexadecimal number; "-" indicates a default.
  • the foregoing routing protocol may adopt a BGP protocol.
  • the network between PE routers is the PSN.
  • the Packet Switching Network (PSN) is an MPLS network
  • the routing protocol may use a Multiprotocol (MP) BGP protocol to carry a Pseudowire (PW) label.
  • MP Multiprotocol
  • Table 13 Mapping table of MAC addresses and IP addresses of the second PE router
  • Step 403 The third server sends the MAC address and the IP address of the VM12 of the third server to the node between the third server and the third PE router through the ARP message.
  • the VM 12 in the first server needs to be migrated to the third server.
  • the third server starts a VM whose MAC address and IP address are the same as the MAC address and IP address of the VM12 of the first server.
  • the VM started by the third server will eventually replace the VM 12 of the first server, which is also referred to as VM12.
  • the MAC address and IP address of the VM 12 of the third server are the same as the MAC address and IP address of the VM 12 of the first server, respectively. Then, the third server sends an ARP message to the node between the third server and the third PE router, where the ARP message carries the MAC address and IP address of the VM 12 of the third server.
  • Step 404 The node between the third server and the third PE router learns the MAC address of the VM 12 of the third server and updates the MAC address forwarding table.
  • the ARP message sent by the third server in the foregoing step 403 is broadcasted in the third station, and all nodes in the third station, that is, all nodes between the third server and the third PE router, will learn.
  • the MAC address of the VM 12 to the third server, and the respective MAC address forwarding table is updated according to the MAC address.
  • Step 405 The third PE router acquires the MAC address and the IP address of the VM 12 of the third server from the node between the third server and the third PE router through the ARP message.
  • the ARP message of the MAC address and IP address of the VM12 carrying the third server sent by the third server in step 403 is received by the third PE router.
  • Step 406 The third PE router updates the IP routing table and obtains the next hop address corresponding to the IP address of the VM12 of the third server.
  • the third PE router updates the IP routing table stored in the third PE router according to the obtained IP address and MAC address of the VM12 of the third server. Moreover, the ARP message obtained by the third PE router in step 405 triggers the third PE router to check the IP routing table, and obtains the next hop address corresponding to the IP address of the VM12 of the third server. In the third embodiment of the present invention, the next hop address corresponding to the IP address of the VM12 of the third server is the IP address of the first PE router.
  • Step 407 The third PE router sends the updated IP address routing information of the VM12 of the third server to the first PE router and the second PE router by using the routing protocol packet.
  • the third PE router combines the IP address of the VM12 of the third server with the IP address of the third PE router to form the IP address routing information of the VM12 of the updated third server. Moreover, the third PE router updates the IP routing table stored by itself according to the IP address routing information of the VM12 of the updated third server. See Table 14, Table 14 for the updated IP routing table of the third PE router. Then, the third PE router initiates a routing protocol packet by using the action of obtaining the ARP message in step 405, and sends the updated IP address routing information of the VM 12 of the third server to other PE routers through the routing protocol packet. The node, for example, is sent to the first PE router and the second PE router.
  • the foregoing routing protocol may adopt a BGP protocol.
  • the routing protocol packet may also carry a set PW label, where the set PW label is used to indicate that the routing protocol packet is sent by the PE router other than the third PE router to the third PE router.
  • the set PW tag can be: x54321. Updated IP routing table of the third PE router
  • Step 408 The first PE router updates the IP routing table.
  • the first PE router After receiving the routing protocol packet in step 407, the first PE router queries the IP routing table stored by the first PE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after inquiry, The first PE router finds that the IP address routing information of the VM 12 of the first server consisting of the IP address of the VM 12 and the IP address of the first PE router already exists in the table.
  • the first PE router learns that the VM12 is migrated from the local first site to another station, and the first PE router according to the route of step 407
  • the IP address routing information of the VM12 of the updated third server carried in the protocol packet updates the IP routing table, and the IP address of the VM12 in the table and the IP address of the third PE router form a new IP address routing information.
  • Table 15 is an updated IP routing table of the second PE router.
  • the PW label of the VM12 is bound to the PW label set in the step 407 by the routing protocol packet in the step 407.
  • the PW label bound to the IP address of the VM12 is x54321.
  • step 408 the first PE router learns that the VM 12 is migrated from the local first site to another station according to the routing protocol message, and then proceeds to step 409, where the first PE router triggers according to the routing protocol packet. ARP message.
  • Step 409 The first PE router sends an IP address of the VM 12 or an IP address and a MAC address of the VM 12 to the node between the first server and the first PE router through an ARP message.
  • the first PE router triggers an ARP message, where the ARP message carries the IP address of the VM12.
  • the first PE router broadcasts the triggered ARP message to the first station, to notify the node in the first station to release the first server.
  • VM12 related resources such as computing resources or storage resources.
  • the node between the first server and the first PE router receives the ARP message.
  • the first PE router may first query the mapping table of the MAC address and the IP address stored by the first PE router according to the IP address of the VM 12, and obtain the MAC address of the VM 12.
  • the first PE router triggers an ARP message, where the ARP message carries the IP address and MAC address of the VM 12.
  • the ARP message can also be used to update the MAC address forwarding table of each node in the first site.
  • the node between the first server and the first PE router receives the ARP message.
  • the ARP message used in the foregoing manner may be implemented by expanding an OP of an existing ARP message.
  • the specific extension method is: assigning a set value to the OP of the ARP message, and indicating the related resources of the VM belonging to the first server and having the same address as the IP address carried by the ARP message.
  • the related resources may include computing resources or storage resources, and the like.
  • Step 410 The node between the first server and the first PE router learns the MAC address of the VM 12 and updates the MAC address forwarding table.
  • Step 411 The first server receives an ARP message forwarded by a node between the first server and the first PE router, obtains an IP address of the VM12, or obtains an IP address and a MAC address of the VM12.
  • Step 412 The first server releases related resources of the VM12 of the first server.
  • the first server releases the related resources of the VM12 belonging to the first server.
  • the related resources may include computing resources or storage resources, and the like.
  • Step 413 After step 407, the following step 413 can also be performed. Steps 408 to 412 are performed in the above order, and step 413 can be performed before, after or simultaneously from step 408 to step 412. Step 413: The second PE router updates the IP routing table.
  • the second PE router queries the IP routing table stored by the second PE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after querying, the second PE router finds that the IP address of the VM12 and the IP address of the first PE router already exist in the table. The IP address routing information of a server's VM12. According to the above query result, since the IP address of the VM 12 does not correspond to the local address of the second PE router, that is, the IP address of the second PE router is not corresponding, the second PE router learns that the VM 12 is not migrated from the local second site. .
  • the second PE router only updates the IP routing table according to the IP address routing information of the updated VM12 of the third server carried in the routing protocol message in step 407, and the IP address of the VM12 in the table is related to the third PE router.
  • the IP address constitutes a new IP address routing information. See Table 16.
  • Table 16 shows the IP routing table of the updated first PE router.
  • the IP address of the VM 12 is bound to the PW label set in step 407 by the second PE router by the routing protocol packet in step 407.
  • the PW label bound to the IP address of the VM 12 is X54321.
  • step 413 since the second PE router learns that the VM 12 is not migrated from the local second site, after the step 413, the second PE router does not trigger the IP address carrying the VM12 or the IP address carrying the VM12. ARP message with MAC address.
  • steps 403 and 404 may be omitted, by The third server sends the MAC address and IP address of the VM12 of the third server directly to the third PE router through the ARP message.
  • the VM 12 is migrated from the first server in the first site to the third server in the third site.
  • the VM21 in the second server of the second site and the VM12 as an example.
  • VM12 Before VM12 migration, VM12 is located in the first server in the first site, and the communication process between VM21 and VM12 is as follows.
  • Step 4a The second PE router obtains an IP packet from the VM21.
  • the VM 21 sends an ARP message carrying the IP address of the VM 12 to the second PE router, and requests the MAC address of the VM 12 from the second PE router through the message.
  • the second PE router acts as an ARP proxy, and queries the mapping table of the MAC address and IP address of the second PE router itself, as shown in Table 13.
  • the mapping table of the MAC address and the IP address of the second PE router the second PE router replies the MAC address of the second PE router to the VM 21 as the MAC address of the VM 12.
  • the VM 21 sends an IP packet to the second PE router, and the destination IP address of the IP packet is the IP address of the VM 12.
  • the IP packet is sent to the second PE router, and the destination MAC address of the ETH packet is the MAC address of the second PE router.
  • Step 4b The second PE router encapsulates the IP packet into the MPLS tunnel to the first PE router.
  • the second PE router receives the IP packet in step 4a, and the destination IP address of the IP packet is the IP address of the VM 12.
  • the second PE router queries the IP routing table of the second PE router itself, as shown in Table 11. According to the IP address of the VM12, the query obtains the next hop as the first PE router. Then, the second PE router adds the IP packet to the PW header and encapsulates the MPLS tunnel to the first PE router.
  • the destination address of the MPLS tunnel is the IP address of the first PE router. Address, the source address is the IP address of the second PE router.
  • Step 4c The first PE router obtains an IP packet that is carried in the MPLS tunnel.
  • the first PE router receives the encapsulated packet from the second PE router, removes the MPLS tunnel encapsulation, and obtains an IP packet.
  • the destination IP address of the obtained IP packet is the IP address of the VM12.
  • Step 4d The first PE router sends an IP packet to the VM12 in the first server.
  • the first PE router queries the IP routing table of the first PE router according to the IP address of the obtained IP packet, and refers to Table 12.
  • the first PE router sends the IP packet in the first site, and the destination IP address of the IP packet is the IP address of the VM12.
  • the VM 12 located in the first server in the first site receives the IP packet.
  • the above steps 4a to 4d are the data transfer process before the VM12 migration, in the above steps.
  • VM12 is migrated.
  • VM12 is located in the third server in the third site, and the communication process between VM21 and VM12 is as follows.
  • the data transmission process of the first PE router includes the following steps 4e to 4h.
  • Step 4e The first PE router obtains an IP packet that is carried in the MPLS tunnel.
  • the first PE router receives the routing protocol packet of step 407, if the first PE router also receives the MPLS tunnel carried by the IP address of the first PE router and the destination IP address is VM12. For IP packets with IP addresses, follow the steps below.
  • Step 4f The first PE router encapsulates the IP packet into the MPLS tunnel to the third PE router.
  • the first PE router queries the IP routing table of the first PE router according to the IP address of the VM12. Referring to Table 16, the next hop address corresponding to the IP address of the VM12 is obtained as the IP address of the third PE router. And the query gets the set PW label, ie x54321. Then, the first PE router adds the PW header with the same IP address as the IP address of the VM12 whose destination IP address is the IP address of the VM12, and then encapsulates the MPLS tunnel to the third PE router.
  • the purpose of the MPLS tunnel is The address is the IP address of the third PE router, and the source address is the IP address of the first PE router.
  • Step 4g The third PE router obtains the IP packet carried in the MPLS tunnel.
  • the third PE router receives the encapsulated packet from the first PE router, removes the MPLS tunnel encapsulation, and obtains an IP packet.
  • the destination IP address of the obtained IP packet is the IP address of the VM12.
  • Step 4h The third PE router sends an IP packet to the VM12 in the third server.
  • the third PE router queries the IP routing table of the third PE router according to the IP address of the obtained IP packet, and refers to Table 14.
  • the third PE router queries the next hop to be local, and the third PE router sends the IP packet in the third station, and the destination IP address of the IP packet is the IP address of the VM12.
  • the VM 12 in the third server located in the third site receives the IP packet.
  • the data transmission process of the second PE router includes the following steps 4i to 4k. Steps 4i through 4k can be performed before, after or simultaneously with steps 4e through 4h.
  • Step 4i The second PE router encapsulates the IP packet into the MPLS tunnel to the third PE router.
  • the second PE router receives the routing protocol packet of step 407, if the second PE router receives the IP packet from the IP address of the VM12 whose destination IP address is the VM12, the second PE router The IP routing table of the second PE router itself is queried according to the IP address of the VM12, as shown in Table 15. According to the IP address of the VM12, the query obtains the next hop address corresponding to the IP address of the VM12 as the IP address of the third PE router, and queries the obtained PW label, that is, x54321. . Then, the first PE router sets the destination IP address to the IP address of the VM12.
  • the MPLS tunnel is encapsulated in the MPLS tunnel to the third PE router.
  • the destination address of the MPLS tunnel is the IP address of the third PE router, and the source address is the first PE.
  • the IP address of the router is the second PE router directly forwards the IP packet to be sent to the VM 12 to the third PE router.
  • Step 4j The third PE router obtains an IP packet that is carried in the MPLS tunnel.
  • the third PE router receives the encapsulated packet from the second PE router, removes the MPLS tunnel encapsulation, and obtains an IP packet.
  • the destination IP address of the obtained IP packet is the IP address of the VM12.
  • Step 4k The third PE router sends an IP packet to the VM12 in the third server.
  • step 4h This step is the same as step 4h above, and details are not described herein again.
  • an MPLS-based DC interconnection network is taken as an example, wherein each PE router node carries an Ethernet frame to an MPLS tunnel of the DC interconnection network for transmission, as shown in step 407.
  • a more optimized technical solution is that the IP packets of the PEs are directly carried on the IP tunnel of the DC internet.
  • the optimized technical solution can further reduce the number of MAC entries.
  • the ARP proxy function is set on the PE router, thereby reducing the number of MAC entries of the site egress node and the switch inside the site.
  • the interaction process in the site adopts the ARP protocol
  • the interaction process between the sites adopts a routing protocol. Therefore, when each PE router interacts with other nodes in the site where the PE router is located, the ARP protocol is adopted; when the first PE router that is the source PE router interacts with the third PE router that is the target PE router, the route is adopted. Protocol: The first PE router and the third PE router complete the mutual triggering and conversion between the ARP message and the routing protocol message.
  • the ARP protocol packet is restricted to each site, and the ARP protocol is prevented from being sent to the DC internet. Because an ARP message can only be used for one address, and one routing protocol message can include multiple addresses. Therefore, by using a routing protocol message instead of an ARP message in the DC internet, the ARP message band is avoided in the DC internet. Broadcast storms, saving control letters Let the occupied bandwidth.
  • the PE routers in the foregoing two embodiments may be disposed on a server, and the CE router may be disposed on the VM of the server, that is, The server is used as the PE router, and the VM on the server is used as the CE router.
  • the server as a PE router will directly support routing protocols (such as BGP).
  • the specific process of the virtual machine migration is the same as the process in the second embodiment of the present invention and the third embodiment of the present invention, except that the operation performed by the PE router in the second embodiment of the present invention and the third embodiment of the present invention is performed by the server, and the CE router performs the operation.
  • the operation is performed by the VM on the server. Specifically, since the CE router is set on the VM of the server, there is no node between the server and the CE router.
  • the specific process in the second embodiment or the third embodiment of the present invention is not included in the foregoing process.
  • Step 303, step 304, step 403 and step 404 the third server directly sends the MAC address and IP address of the VM12 of the third server to the third CE router or the third PE router through the ARP message.
  • the PE router does not belong to the carrier network between the PE routers. Therefore, the site is completely transparent to the carrier network between the PE routers. That is, the edge of the carrier network between the PE routers does not need to know the MAC address routing inside the site. .
  • FIG. 5 is a schematic structural diagram of a virtual machine migration system according to Embodiment 4 of the present invention. As shown in FIG. 5, the system includes at least: a target server 51, a target control node 52, a source control node 53, and a source server 54.
  • the target server 51 is configured to start the VM to be migrated and send the MAC address and IP address of the VM to be migrated to the target control node 52 through the first ARP message.
  • the target control node 52 is configured to update the IP routing table according to the first ARP message, send the IP address routing information of the VM to be migrated to the source control node 53 through the first routing protocol message, and update the IP address routing information of the VM to be migrated after the update.
  • the IP address of the VM to be migrated and the IP address of the target control node 52 are included.
  • the source control node 53 is configured to update the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node 52 in the first routing protocol message, and serve the source through the second ARP message.
  • the server 54 sends an IP address or an IP address and a MAC address of the VM to be migrated;
  • the source server 54 is configured to release related resources of the VM to be migrated according to the second ARP message.
  • the source control node 53 is further configured to obtain, by using the third ARP message, the mapping relationship between the MAC address and the IP address of the VM to be migrated from the source server 54 to the target control node 52 through the second routing protocol message.
  • the IP address routing information of the VM to be migrated is sent, and the IP address routing information includes an IP address of the VM to be migrated and an IP address of the source control node 53.
  • the system further includes: a node 55 between the target server and the target control node, and a node 56 between the source server and the source control node.
  • the target server 51 is specifically configured to send, by using the first ARP message, the MAC address and the IP address of the VM to be migrated to the node 55 between the target server and the target control node.
  • the node 55 between the target server and the target control node is specifically configured to learn the MAC address and IP address of the VM to be migrated and update the MAC address forwarding, and forward the first ARP message to the target control node 52.
  • the source control node 53 is specifically configured to send, by using the second ARP message, the IP address or IP address and MAC address of the VM to be migrated to the node 56 between the source server and the source control node.
  • the node 56 between the source server and the source control node is specifically configured to learn the MAC address of the VM to be migrated and update the MAC address forwarding table, and forward the second ARP message to the source server 54.
  • the system further includes: other control nodes 57.
  • the target control node 52 is further configured to send, after the IP routing table is updated according to the first ARP message, the IP address routing information of the updated VM to be migrated to the other control node 57 by using the first routing protocol message.
  • the other control node 57 is configured to update the IP routing table according to the IP address of the VM to be migrated in the first routing protocol message and the IP address of the target control node 52.
  • the source control node 53 or other control node 57 is further configured to: after receiving the first routing protocol packet from the target control node 52, obtain the IP address of the packet as the IP address of the VM to be migrated. When the IP packet of the address is sent, the IP packet is sent to the target control node 52.
  • the target control node 52 is also used to send an IP message to the target server 51.
  • the target control node 52, the source control node 53, and the like Its control node 57 is a CE router.
  • the source control node 53 or other control node 57 is specifically configured to encapsulate the IP packet into the IP tunnel to the target CE router and send it to the target CE router.
  • the target control node 52, the source control node 53, and other control nodes 57 are all PE routers.
  • the first routing protocol packet further includes: a PW label.
  • the source control node 53 is also used to bind the IP address and PW label of the VM to be migrated.
  • the source control node 53 or other control node 57 is specifically configured to add the same PW header to the IP packet as the PW label, and then encapsulate the MPLS tunnel to the target PE router and send it to the target PE router.
  • the interaction process in each site adopts the ARP protocol
  • the interaction process between the sites adopts a routing protocol
  • the target control node 52 and the source control node 53 complete the ARP message.
  • Mutual triggering and conversion with routing protocol messages. Therefore, the ARP protocol packets are restricted to each site, and the ARP protocol is prevented from being sent to the DC internet between sites.
  • the broadcast storm caused by the broadcast of the ARP message in the DC Internet is avoided, which saves the bandwidth occupied by the control signaling.
  • FIG. 6 is a schematic structural diagram of a target control node 52 according to Embodiment 5 of the present invention.
  • the target control node 52 includes at least: an ARP module 521, a processing module 522, and a routing protocol module 523.
  • the ARP module 521 is configured to obtain, by using the first ARP message, the MAC address and the IP address of the VM to be migrated from the target server 51.
  • the processing module 522 is configured to update the IP routing table according to the first ARP message.
  • the routing protocol module 523 is configured to send the IP address routing information of the VM to be migrated to the source control node 53 through the first routing protocol message, and the IP address routing information of the VM to be migrated after the update includes the IP address and target control of the VM to be migrated.
  • the IP address of node 52 is configured to obtain, by using the first ARP message, the MAC address and the IP address of the VM to be migrated from the target server 51.
  • the processing module 522 is configured to update the IP routing table according to the first ARP message.
  • the routing protocol module 523 is configured to send the IP address routing information of the VM to be migrated to the source control node 53 through the first routing protocol message, and the IP address routing information of the VM to be
  • the ARP module 521 is specifically configured to acquire a first ARP message forwarded from the target server 51 from a node between the target server 51 and the target control node 52.
  • the routing protocol module 523 is further configured to send, by using the first routing protocol packet, the IP address routing information of the VM to be migrated after being updated to the other control node 57, after the update.
  • the IP address routing information of the VM to be migrated includes the IP address of the VM to be migrated and the IP address of the target control node 52, so that the other control node 57 according to the IP address of the VM to be migrated and the target control node 52 in the first routing protocol message.
  • the IP address updates the IP routing table.
  • the target control node 52, the source control node 53, and other control nodes 57 are all CE routers.
  • the target control node 52, the source control node 53 and the other control nodes 57 are all PE routers.
  • the first routing protocol packet further includes: a PW label.
  • the target control node 52 mutually triggers and translates the ARP message and the routing protocol message, so that the interaction process in the site corresponding to the target control node 52 adopts the ARP protocol, between the sites.
  • the interaction process uses a routing protocol to limit the ARP packets to each site. This prevents the ARP protocol from being sent to the DC Internet between sites.
  • FIG. 7 is a schematic structural diagram of a source control node 53 according to Embodiment 6 of the present invention.
  • the source control node 53 includes at least: a routing protocol module 531, a processing module 532, and an ARP module 533.
  • the routing protocol module 531 is configured to obtain, by using the first routing protocol packet, the IP address routing information of the VM to be migrated from the target control node 52, and the IP address routing information of the VM to be migrated after the update includes the IP address of the VM to be migrated.
  • the IP address of the target control node 52 is configured to obtain, by using the first routing protocol packet, the IP address routing information of the VM to be migrated from the target control node 52, and the IP address routing information of the VM to be migrated after the update includes the IP address of the VM to be migrated.
  • the IP address of the target control node 52 is configured to obtain, by using the first routing protocol packet, the IP address routing information of the VM to be migrated from the target control node 52, and the IP address routing information of the VM to be migrated after the update includes the IP address of the VM to be migrated.
  • the IP address of the target control node 52 is configured to obtain, by using the first routing protocol packet, the IP address routing information of the
  • the processing module 532 is configured to update the IP routing table according to the IP address of the VM to be migrated in the first routing protocol message and the IP address of the target control node 52.
  • the ARP module 533 is configured to send the IP address or IP address and MAC address of the VM to be migrated to the source server 54 through the second ARP message, so that the source server 54 releases the related resources of the VM to be migrated.
  • the ARP module 533 is specifically configured to pass the second ARP message. Sending the IP address or IP address and MAC address of the VM to be migrated to the node between the source server 54 and the source control node 53 to cause the node between the source server 54 and the source control node 53 to forward the second ARP message to the source server 54. .
  • the ARP module 533 is specifically configured to broadcast a second ARP message to the source site, where the second ARP message includes an IP address of the VM to be migrated.
  • the ARP module 533 is configured to query the stored MAC address and IP address mapping table according to the IP address of the VM to be migrated, obtain the MAC address of the VM to be migrated, and broadcast the second ARP message to the source site, where the second ARP message is sent. Includes the IP address and MAC address of the VM to be migrated.
  • the node further includes: an IP packet module.
  • the IP packet module is configured to obtain the IP address of the IP address of the VM to be migrated after the IP address of the VM to be migrated is obtained after the IP address of the VM to be migrated is obtained from the target control node 52.
  • an IP packet is sent to the target control node 52 to cause the target control node 52 to send an IP packet to the target server 51.
  • the source control node 53 and the target control node 52 are both CE routers.
  • the IP packet module is specifically configured to encapsulate the IP packet into an IP tunnel to the target CE router and send it to the target CE router.
  • both the source control node 53 and the target control node 52 are PE routers.
  • the first routing protocol packet further includes: a PW label.
  • the processing module 532 is also used to bind the IP address and PW label of the VM to be migrated.
  • the IP packet module is specifically configured to add the same PW header to the IP packet as the PW label, and then encapsulate the MPLS tunnel to the target PE router and send it to the target PE router.
  • the source control node 53 mutually triggers and translates the ARP message and the routing protocol message, so that the interaction process between the sites is performed by using the ARP protocol in the interaction process of the site corresponding to the source control node 53.
  • the process uses a routing protocol to limit ARP packets to each site, avoiding the ARP protocol being sent to the DC internet between sites.
  • the DC interconnection is avoided.
  • the broadcast storm caused by the broadcast of ARP messages on the network saves the bandwidth occupied by control signaling.

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

Provided are a virtual machine migration notification method and system. A destination control node updates an IP routing table according to a first ARP message containing the address of a VM to be migrated sent by a destination server, and sends the updated IP address routing information about the VM to be migrated to a source control node using a first routing protocol message; and the source control node updates the IP routing table according to the first routing protocol message and sends the address of the VM to be migrated to a source server using a second ARP message. The application of the virtual machine migration method and system in the present invention can reduce the bandwidth occupied by the control signalling.

Description

虚拟机迁移通知方法和系统  Virtual machine migration notification method and system
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种虚拟机(Virtual Machine, 简称 VM ) 迁移方法和系统。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a virtual machine (VM) migration method and system. Background technique
随着计算机技术以及通信技术的不断发展, 数据中心(Data Center, 简 称 DC ) 网络得到越来越广泛的应用。  With the continuous development of computer technology and communication technology, Data Center (DC) network has been more and more widely used.
在 DC网络中, 在服务器上设置多个 VM进行计算。 当某个服务器的负 载过大或发生故障时, 需要将该服务器上设置的 VM迁移到其它服务器。 目 前, 在 VM迁移时, 通过广播地址解析协议(Address Resolution Protocol, 简称 ARP )消息的方式向 DC网络中的相关节点通知待迁移 VM的媒体访问 控制 ( Media Access Control, 简称 MAC )地址。 由于每个 DC内部包括大 量的 VM, 因此, 采用现有的 VM迁移方法会在 DC网络中形成广播风暴, 与 迁移相关的控制信令占用大量网络带宽, 造成网络带宽资源的浪费。 发明内容  In a DC network, multiple VMs are set up on the server for calculation. When a server's load is too large or fails, the VMs set up on the server need to be migrated to other servers. At the time of VM migration, the Media Access Control (MAC) address of the VM to be migrated is notified to the relevant node in the DC network by means of an address resolution protocol (ARP) message. As each of the DCs includes a large number of VMs, the existing VM migration method can form a broadcast storm in the DC network. The control signaling related to the migration occupies a large amount of network bandwidth, which causes waste of network bandwidth resources. Summary of the invention
本发明实施例提供一种虚拟机迁移通知方法, 用以解决现有技术中的缺 陷, 节省控制信令占用的带宽。  The embodiment of the present invention provides a virtual machine migration notification method, which is used to solve the defects in the prior art and save bandwidth occupied by control signaling.
本发明实施例还提供一种虚拟机迁移系统,用以解决现有技术中的缺陷, 节省控制信令占用的带宽。  The embodiment of the present invention further provides a virtual machine migration system, which is used to solve the defects in the prior art and save bandwidth occupied by control signaling.
本发明实施例提供一种虚拟机 VM迁移方法, 包括:  The embodiment of the invention provides a virtual machine VM migration method, including:
目标服务器启动待迁移 VM并通过第一地址解析协议 ARP消息向目标控 制节点发送所述待迁移 VM的媒体访问控制 MAC地址和网际协议 IP地址; 所述目标控制节点根据所述第一 ARP消息更新 IP路由表, 通过第一路 由协议报文向源控制节点发送更新后待迁移 VM的 IP地址路由信息,所述更 新后待迁移 VM的 IP地址路由信息包括所述待迁移 VM的 IP地址和所述目 标控制节点的 IP地址; The target server starts the VM to be migrated and sends the media access control MAC address and the internet protocol IP address of the VM to be migrated to the target control node by using the first address resolution protocol ARP message; the target control node is updated according to the first ARP message. IP routing table, through the first road Sending, by the protocol packet, the IP address routing information of the VM to be migrated to the source control node, where the IP address routing information of the VM to be migrated includes the IP address of the VM to be migrated and the IP address of the target control node. ;
所述源控制节点根据所述第一路由协议报文中的所述待迁移 VM的 IP地 址和所述目标控制节点的 IP地址更新 IP路由表,通过第二 ARP消息向源服 务器发送待迁移 VM的 IP地址或 IP地址和 MAC地址。  The source control node updates the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and sends the VM to be migrated to the source server by using the second ARP message. IP address or IP address and MAC address.
本发明实施例还提供一种虚拟机 VM迁移系统, 包括:  The embodiment of the invention further provides a virtual machine VM migration system, including:
目标服务器,用于启动待迁移 VM并通过第一地址解析协议 ARP消息向 目标控制节点发送所述待迁移 VM的媒体访问控制 MAC地址和网际协议 IP 地址;  a target server, configured to start a VM to be migrated and send a media access control MAC address and an internet protocol IP address of the VM to be migrated to the target control node by using a first address resolution protocol ARP message;
目标控制节点, 用于根据所述第一 ARP消息更新 IP路由表, 通过第一 路由协议报文向源控制节点发送更新后待迁移 VM的 IP地址路由信息,所述 更新后待迁移 VM的 IP地址路由信息包括所述待迁移 VM的 IP地址和所述 目标控制节点的 IP地址;  a target control node, configured to update an IP routing table according to the first ARP message, and send, by using the first routing protocol packet, the IP address routing information of the VM to be migrated after the update, and the IP of the VM to be migrated after the update The address routing information includes an IP address of the VM to be migrated and an IP address of the target control node;
源控制节点, 用于根据所述第一路由协议报文中的所述待迁移 VM的 IP 地址和所述目标控制节点的 IP地址更新 IP路由表,通过第二 ARP消息向源 服务器发送待迁移 VM的 IP地址或 IP地址和 MAC地址;  The source control node is configured to update the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and send the to-be-migrated to the source server by using the second ARP message. The IP address or IP address and MAC address of the VM;
源服务器, 用于从所述源控制节点接收所述第二 ARP消息。 ARP协议, 在各个站点之间的交互过程采用路由协议, 由目标控制节点和源 控制节点对完成 ARP 消息与路由协议报文之间的相互触发和转化。 从而将 ARP协议的报文限制在各个站点内部, 避免了将 ARP协议发到各个站点之 间的 DC互联网络中, 因此避免了在 DC互联网络中广播 ARP消息带来的广 播风暴, 从而节省了控制信令占用的带宽。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 And a source server, configured to receive the second ARP message from the source control node. In the ARP protocol, a routing protocol is used in the interaction process between the sites, and the target control node and the source control node perform mutual triggering and conversion between the ARP message and the routing protocol message. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is prevented from being sent to the DC interconnection network between the sites. Therefore, the broadcast storm caused by the broadcast of the ARP message in the DC Internet is avoided, thereby saving the broadcast. Control the bandwidth occupied by signaling. DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1本发明实施例一的虚拟机迁移通知方法的流程图;  1 is a flowchart of a virtual machine migration notification method according to Embodiment 1 of the present invention;
图 2为本发明实施例二和本发明实施例三的网络结构示意图;  2 is a schematic structural diagram of a network according to Embodiment 2 of the present invention and Embodiment 3 of the present invention;
图 3为本发明实施例二的虚拟机迁移通知方法的信令流程图;  3 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 2 of the present invention;
图 4为本发明实施例三的虚拟机迁移通知方法的信令流程图;  4 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 3 of the present invention;
图 5为本发明实施例四的虚拟机迁移系统的结构示意图;  FIG. 5 is a schematic structural diagram of a virtual machine migration system according to Embodiment 4 of the present invention; FIG.
图 6为本发明实施例五的目标控制节点 52的结构示意图;  6 is a schematic structural diagram of a target control node 52 according to Embodiment 5 of the present invention;
图 7为本发明实施例六的源控制节点 53的结构示意图。 具体实施方式  FIG. 7 is a schematic structural diagram of a source control node 53 according to Embodiment 6 of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1本发明实施例一的虚拟机迁移通知方法的流程图。 如图 1所示, 该 方法包括如下过程。  FIG. 1 is a flowchart of a virtual machine migration notification method according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following process.
步骤 101: 目标服务器启动待迁移 VM并通过第一 ARP消息向目标控制 节点发送待迁移 VM的 MAC地址和网际协议 ( Internet Procotol, 简称 IP ) 地址。  Step 101: The target server starts the VM to be migrated and sends a MAC address and an Internet Protocol (IP) address of the VM to be migrated to the target control node by using the first ARP message.
其中, 目标服务器是指迁移后的 VM所在的服务器。 目标控制节点是指 迁移后的 VM所在的站点的控制节点, 具体可以是迁移后的 VM所在的站点 的用户边缘(Customer Edge, 简称 CE )路由器或运营商边缘(Provider Edge, 简称 PE )路由器。在本发明实施例一以及后续的各个实施例中, ARP 消息可以采用免费 ARP ( Gratuitous ARP, 简称 GARP )。 The target server refers to the server where the migrated VM is located. The target control node is the control node of the site where the migrated VM is located, and may be the Customer Edge (CE) router or the carrier edge (Provider Edge) of the site where the migrated VM is located. Edge, referred to as PE) router. In the first embodiment of the present invention and the subsequent embodiments, the ARP message may be a Gratuitous ARP (GARP).
步骤 102: 目标控制节点根据第一 ARP消息更新 IP路由表, 通过第一 路由协议报文向源控制节点发送更新后待迁移 VM的 IP地址路由信息。  Step 102: The target control node updates the IP routing table according to the first ARP message, and sends the updated IP address routing information of the VM to be migrated to the source control node by using the first routing protocol packet.
其中, 源控制节点是指迁移前的 VM所在的站点的控制节点, 具体可以 是迁移前 VM所在的站点的 CE路由器或 PE路由器。  The source control node is the control node of the site where the VM before the migration is located, and may be the CE router or PE router of the site where the VM is located before the migration.
在本步骤中,更新后待迁移 VM的 IP地址路由信息包括待迁移 VM的 IP 地址和目标控制节点的 IP地址。在本发明实施例一以及以下的各个实施例中 , 所涉及的路由协议报文是指采用路由协议发送的报文, 路由协议可以采用边 界网关协议 ( Border Gateway Protocol , 简称 BGP )或中间系统到中间系统 ( Internediate System to Intermediate System, 简称 IS-IS )协议。  In this step, the IP address routing information of the VM to be migrated after the update includes the IP address of the VM to be migrated and the IP address of the target control node. In the first embodiment of the present invention and the following embodiments, the routing protocol packet refers to a packet that is sent by using a routing protocol. The routing protocol may be a Border Gateway Protocol (BGP) or an intermediate system. Internediate System to Intermediate System (IS-IS) protocol.
由于根据 ARP和路由协议的规定, 一个 ARP消息只能包含一个 VM的 地址, 而一个路由协议报文可以包括多个 VM的地址, 因此当目标控制节点 接收到多个第一 ARP消息时, 能够将多个第一 ARP消息中的 VM的地址整 合到一个第一路由协议报文中发送给源控制节点。 各个站点以各自的控制节 点作为信息交互的边缘节点, 采用上述方案, 在各个站点之间采用路由协议 报文, 将每个站点内对于多个 VM的 ARP消息整合为一个路由协议报文, 在 各个站点之间采用路由协议报文进行消息传输,与将每个 ARP消息均在各个 站点之间进行传输相比, 采用路由协议报文进行整合集中的方式可以大量减 少站点之间的消息传输量。  According to the ARP and the routing protocol, an ARP message can only contain the address of one VM, and a routing protocol message can include the addresses of multiple VMs. Therefore, when the target control node receives multiple first ARP messages, it can The address of the VM in the multiple first ARP messages is integrated into a first routing protocol message and sent to the source control node. Each site uses its own control node as the edge node for information interaction. The above scheme is adopted, and routing protocol packets are used between the sites to integrate ARP messages for multiple VMs in each site into one routing protocol packet. The routing protocol packets are used to transmit messages between sites. Compared with the transmission of each ARP message between sites, the use of routing protocol packets for centralized aggregation can greatly reduce the amount of message transmission between sites. .
步骤 103: 源控制节点根据第一路由协议报文中的待迁移 VM的 IP地址 和目标控制节点的 IP地址更新 IP路由表,通过第二 ARP消息向源服务器发 送待迁移 VM的 IP地址, 或 IP地址和 MAC地址的组合。  Step 103: The source control node updates the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and sends the IP address of the VM to be migrated to the source server through the second ARP message, or A combination of an IP address and a MAC address.
源服务器是指迁移前的 VM所在的服务器。  The source server is the server where the VM before migration is located.
在本发明实施例一中, 在 VM迁移控制过程中, 在各个站点内的交互过 程采用 ARP协议, ARP协议是数据链路层(data link layer )协议, 各站点 之间的交互过程采用路由协议,由目标控制节点和源控制节点对完成 ARP消 息与路由协议报文之间的相互触发和转化。从而将 ARP协议的报文限制在各 个站点内部, 避免了将 ARP协议发到各个站点之间的 DC互联网络中。 因为 一个 ARP消息只能针对一个地址, 而一个路由协议报文可以包括多个地址, 因此, 通过在 DC互联网络中采用路由协议报文替代 ARP消息, 避免了在 DC互联网络中广播 ARP消息带来的广播风暴, 从而节省了控制信令占用的 带宽。 In the first embodiment of the present invention, in the VM migration control process, the ARP protocol is adopted in the interaction process in each site, and the ARP protocol is a data link layer protocol, and each site is used. The interaction process between the ARP message and the routing protocol message is triggered and converted by the target control node and the source control node. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is avoided from being sent to the DC internet between sites. Because an ARP message can only be used for one address, and one routing protocol message can include multiple addresses. Therefore, by using a routing protocol message instead of an ARP message in the DC internet, the ARP message band is avoided in the DC internet. The incoming broadcast storm saves the bandwidth occupied by control signaling.
图 2为本发明实施例二和本发明实施例三的网络结构示意图。 如图 2所 示, 该网络为支持 VM迁移的 DC网络。 该网络中包括三个站点, 三个站点 通过各自的 CE路由器分别连接一个 PE路由器, 三个 PE路由器相连, 构成 一个 DC互联网络。 具体地, 以第一站点包括第一服务器为例, 在第一服务 器上设置有多个 VM, 例如 VM11和 VM12等, 并且, 第一站点包括第一 CE 路由器, 该第一 CE路由器连接到第一 PE路由器; 以第二站点包括第二服 务器为例, 在第二服务器上设置有多个 VM, 例如 VM21 等, 并且, 第二站 点包括第二 CE路由器,该第二 CE路由器连接到第二 PE路由器; 以第三站 点包括第三服务器为例, 在第三服务器上设置有多个 VM, 例如 VM31 等, 并且, 第三站点包括第三 CE路由器, 该第三 CE路由器连接到第三 PE路由 器。 上述第一 PE路由器、 第二 PE路由器与第三 PE路由器相互连接。 在以 下的本发明实施例二和本发明实施例三中, 以将本发明实施例一中的虚拟机 迁移通知方法应用到图 2所示的网络架构中为例, 详细说明本发明实施例一 的虚拟机迁移通知方法。 在本发明实施例二和本发明实施例三中, 以第一服 务器上的 VM12迁移到第三服务器上为例, 则, 待迁移虚拟机为 VM12; 第 一服务器为源服务器, 第一 CE路由器为源 CE路由器, 第一 PE路由器为源 PE路由器; 第三服务器为目标服务器, 第三 CE路由器为目标 CE路由器, 第三 PE路由器为目标 PE路由器。其中,源控制节点可以为第一 CE路由器, 相应地, 目标控制节点为第三 CE路由器。 或者, 源控制节点可以为第一 PE 路由器, 相应地, 目标控制节点为第三 PE路由器。 以下分别通过本发明实 施例二和本发明实施例三对上述两种情况进行具体说明。 FIG. 2 is a schematic structural diagram of a network according to Embodiment 2 of the present invention and Embodiment 3 of the present invention. As shown in Figure 2, the network is a DC network that supports VM migration. The network includes three sites. The three sites are connected to one PE router through their respective CE routers, and the three PE routers are connected to form a DC internetwork. Specifically, the first station includes a first server, and a plurality of VMs, such as VM11 and VM12, are disposed on the first server, and the first station includes a first CE router, and the first CE router is connected to the first A PE router; taking the second station as the second server as an example, setting a plurality of VMs on the second server, such as VM21, etc., and the second station includes a second CE router, and the second CE router is connected to the second For example, the third station includes a third server, and the third server is configured with multiple VMs, such as VM31, and the third station includes a third CE router, and the third CE router is connected to the third PE. router. The first PE router, the second PE router, and the third PE router are connected to each other. In the following second embodiment of the present invention and the third embodiment of the present invention, the virtual machine migration notification method in the first embodiment of the present invention is applied to the network architecture shown in FIG. 2 as an example, and the first embodiment of the present invention is described in detail. Virtual machine migration notification method. In the second embodiment of the present invention and the third embodiment of the present invention, the migration of the VM 12 on the first server to the third server is taken as an example. The virtual machine to be migrated is VM12; the first server is the source server, and the first CE router is used. For the source CE router, the first PE router is the source PE router; the third server is the target server, the third CE router is the target CE router, and the third PE router is the target PE router. The source control node may be the first CE router, and correspondingly, the target control node is the third CE router. Alternatively, the source control node can be the first PE The router, correspondingly, the target control node is a third PE router. The above two cases are specifically described below by using the second embodiment of the present invention and the third embodiment of the present invention.
图 3为本发明实施例二的虚拟机迁移通知方法的信令流程图。 在本发明 实施例二中, 以控制节点为 CE路由器为例, 在各个 CE路由器上设置 ARP 代理功能。  FIG. 3 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 2 of the present invention. In the second embodiment of the present invention, the control node is a CE router, and an ARP proxy function is set on each CE router.
以 VM12从第一站点中的第一服务器迁移到第三站点中的第三服务器的 过程为例, 则第一站点为源站点, 第一服务器为源服务器, 第一 CE路由器 为源 CE路由器; 第三站点为目标站点, 第三服务器为目标服务器, 第三 CE 路由器为目标 CE路由器。 如图 3所示, 该方法包括如下过程。  Taking the process of migrating from the first server in the first site to the third server in the third site as an example, the first site is the source site, the first server is the source server, and the first CE router is the source CE router; The third site is the target site, the third server is the target server, and the third CE router is the target CE router. As shown in FIG. 3, the method includes the following process.
步骤 301 : 第一 CE路由器通过 ARP消息从第一服务器获取第一服务器 的 VM12的 MAC地址和 IP地址的映射关系。  Step 301: The first CE router acquires, by using an ARP message, a mapping relationship between a MAC address and an IP address of the VM12 of the first server from the first server.
在本步骤中,各个 CE路由器通过 ARP消息从自身对应的服务器获取自 身对应的站点内的 VM的 MAC地址和 IP地址的映射关系。 具体地, 第一服 务器向第一 CE路由器发送 ARP消息,该消息中包括第一站点内 VM的 MAC 地址和 IP地址的映射关系; 第一 CE路由器从第一服务器接收上述 ARP消 息, 根据该 ARP消息获取第一站点内 VM的 MAC地址和 IP地址的映射关 系,第二 CE路由器通过 ARP消息从第二服务器获取第二站点内 VM的 MAC 地址和 IP地址的映射关系 , 第三 CE路由器通过 ARP消息从第三服务器获 取第三站点内 VM的 MAC地址和 IP地址的映射关系。在本发明实施例二中, 仅以 VM12从第一站点内的第一服务器迁移到第三站点内的第三服务器的过 程为例, 因此, 在本步骤中, 第一 CE路由器通过 ARP消息从第一服务器获 取第一站点内 VM的 MAC地址和 IP地址的映射关系。 由于迁移前 VM12位 于第一站点内,所以第一 CE路由器获取的第一站点内 VM的 MAC地址和 IP 地址的映射关系中, 包括 VM12的 MAC地址和 IP地址的映射关系。  In this step, each CE router obtains the mapping relationship between the MAC address and the IP address of the VM in the site corresponding to its own server through the ARP message. Specifically, the first server sends an ARP message to the first CE router, where the message includes a mapping relationship between the MAC address and the IP address of the VM in the first site; the first CE router receives the ARP message from the first server, according to the ARP The message acquires the mapping between the MAC address and the IP address of the VM in the first site, and the second CE router obtains the mapping between the MAC address and the IP address of the VM in the second site from the second server by using the ARP message, and the third CE router passes the ARP. The message acquires a mapping relationship between the MAC address and the IP address of the VM in the third site from the third server. In the second embodiment of the present invention, the process of migrating from the first server in the first site to the third server in the third site is taken as an example. Therefore, in this step, the first CE router passes the ARP message. The first server acquires a mapping relationship between a MAC address and an IP address of the VM in the first site. The mapping between the MAC address and the IP address of the VM in the first site, which is obtained by the first CE router, includes the mapping between the MAC address and the IP address of the VM12, as the VM12 is located in the first site.
在本步骤中, 各个 CE路由器在获取到各自对应的站点内的 VM的 MAC 地址和 IP地址的映射关系之后, 还根据对应的站点内的 VM的 MAC地址和 IP地址的映射关系, 在自身存储 MAC地址与 IP地址的映射表。 仍以第一 CE路由器为例, 表 1为第一 CE路由器的 MAC地址和 IP地址的映射表。 在表 1 以及本发明各个实施例的以下各表中, @表示地址的具体内容。 第一 CE路由器通过 ARP消息从第一服务器获取第一站点内 VM的 MAC地址和 IP地址的映射关系之后, 将上述映射关系存储到表 1 中。 其中, 表 1中包括 第一服务器的 VM12的 MAC地址和 IP地址的映射关系。 表 1 第一 CE路由器的 MAC地址和 IP地址的映射表 In this step, after obtaining the mapping relationship between the MAC address and the IP address of the VM in the corresponding site, each CE router also according to the MAC address of the VM in the corresponding site. A mapping relationship between IP addresses, which stores a mapping table of MAC addresses and IP addresses. The first CE router is still taken as an example. Table 1 is a mapping table of MAC addresses and IP addresses of the first CE router. In Table 1 and the following tables of the various embodiments of the present invention, @ represents the specific content of the address. After the first CE router obtains the mapping relationship between the MAC address and the IP address of the VM in the first site from the first server by using the ARP message, the foregoing mapping relationship is stored in Table 1. The mapping relationship between the MAC address and the IP address of the VM 12 of the first server is included in Table 1. Table 1 Mapping table of MAC address and IP address of the first CE router
Figure imgf000009_0001
步骤 302:第一 CE路由器通过路由协议报文向第三 CE路由器发送第一 服务器的 VM12的 IP地址路由信息。
Figure imgf000009_0001
Step 302: The first CE router sends the IP address routing information of the VM12 of the first server to the third CE router through the routing protocol message.
在本步骤中, 各个 CE路由器通过路由协议报文向其它 CE路由器发送 自身对应站点的 VM的 IP地址路由信息。 具体地, 第一 CE路由器通过路由 协议报文向第二 CE路由器和第三 CE路由器发送第一站点的 VM的 IP地址 路由信息,第二 CE路由器通过路由协议报文向第一 CE路由器和第三 CE路 由器发送第二站点的 VM的 IP地址路由信息, 第三 CE路由器通过路由协议 报文向第一 CE路由器和第二 CE路由器发送第三站点的 VM的 IP地址路由 信息。 在本发明实施例二中, 仅以 VM12从第一站点中的第一服务器迁移到 第三站点中的第三服务器的过程为例, 因此, 在本步骤中, 仅以第一 CE路 由器通过路由协议报文向第三 CE路由器发送第一站点的 VM的 IP地址路由 信息为例。 其它 CE路由器发送各自对应站点的 VM的 IP地址路由信息的具 体过程可以参照第一 CE路由器发送第一站点的 VM的 IP地址路由信息的过 程实现, 在此不再赘述。 In this step, each CE router sends the IP address routing information of the VM of its corresponding site to other CE routers through routing protocol packets. Specifically, the first CE router sends the IP address routing information of the VM of the first site to the second CE router and the third CE router by using the routing protocol packet, and the second CE router sends the routing protocol packet to the first CE router and the first The third CE router sends the IP address routing information of the VM of the second site, and the third CE router sends the IP address routing information of the VM of the third site to the first CE router and the second CE router by using the routing protocol packet. In the second embodiment of the present invention, only the process of migrating from the first server in the first site to the third server in the third site is taken as an example. Therefore, in this step, only the first CE router passes the route. The protocol packet sends the IP address routing information of the VM of the first site to the third CE router as an example. The specific process of the other CE routers sending the IP address routing information of the VMs of the corresponding sites may refer to the first CE router sending the IP address routing information of the VMs of the first site. The implementation is not repeated here.
具体地, 第一 CE路由器通过路由协议报文向第三 CE路由器发送第一站点 的 VM的 IP地址路由信息的具体过程包括: 首先, 第一 CE路由器将第一站点 内 VM的 IP地址与第一 CE路由器的 IP地址组成第一站点的 IP地址路由信息。 在本发明实施例二中, 迁移前的 VM12位于第一站点中的第一服务器中,属于 第一站点内的 VM, 因此, 第一 CE路由器所在的第一站点的 VM的 IP地址路由 信息中, 包括第一服务器的 VM12的 IP地址路由信息。 具体地, 第一服务器的 VM12的 IP地址路由信息包括第一服务器的 VM12的 IP地址和第一 CE路由器 的 IP地址。 然后, 第一 CE路由器通过路由协议报文向第三 CE路由器发送第 一站点的 VM的 IP地址路由信息。通过发送第一站点的 VM的 IP地址路由信息, 第一 CE路由器将位于第一站点中第一服务器的 VM12的 IP地址路由信息发送 给第三 CE路由器。  Specifically, the specific process of the first CE router sending the IP address routing information of the VM of the first site to the third CE router by using the routing protocol packet includes: First, the first CE router sets the IP address of the VM in the first site and the first The IP address of a CE router constitutes the IP address routing information of the first site. In the second embodiment of the present invention, the pre-migration VM 12 is located in the first server in the first site and belongs to the VM in the first site. Therefore, the IP address routing information of the VM of the first site where the first CE router is located is , including the IP address routing information of the VM12 of the first server. Specifically, the IP address routing information of the VM12 of the first server includes an IP address of the VM12 of the first server and an IP address of the first CE router. Then, the first CE router sends the IP address routing information of the VM of the first station to the third CE router through the routing protocol message. The first CE router sends the IP address routing information of the VM12 of the first server in the first station to the third CE router by sending the IP address routing information of the VM of the first site.
在本步骤中, 各个 CE路由器通过路由协议报文向其它 CE路由器发送自身 对应站点的 VM的 IP地址路由信息之后, 其它 CE路由器根据获得的站点的 VM 的 IP地址路由信息, 在自身存储各自的 IP路由表, 并更新自身存储的 MAC地 址和 IP地址的映射表。 参见表 2至表 5, 其中: 表 2为第三 CE路由器的 IP路由 表; 表 3为第二 CE路由器的 IP路由表; 表 4为第一 CE路由器的 IP路由表; 表 5 为第二 CE路由器的 MAC地址和 IP地址的映射表。  In this step, after each CE router sends the IP address routing information of the VM of its corresponding site to other CE routers through routing protocol packets, the other CE routers store their own information according to the IP address routing information of the obtained VMs of the site. IP routing table, and update the mapping table of its stored MAC address and IP address. See Table 2 to Table 5, where: Table 2 is the IP routing table of the third CE router; Table 3 is the IP routing table of the second CE router; Table 4 is the IP routing table of the first CE router; Table 5 is the second Mapping table of MAC addresses and IP addresses of CE routers.
第三 CE路由器的 IP路由表  IP routing table of the third CE router
Figure imgf000010_0001
第二 CE路由器的 IP路由表
Figure imgf000010_0001
IP routing table of the second CE router
Figure imgf000011_0001
Figure imgf000011_0001
CE路由器的 IP路由表 CE router IP routing table
Figure imgf000011_0002
第二 CE路由器的 MAC地址和 IP地址的映射表
Figure imgf000011_0002
Mapping table of MAC address and IP address of the second CE router
Figure imgf000011_0003
步骤 303:第三服务器通过 ARP消息向第三服务器与第三 CE路由器之间的 节点发送第三服务器的 VM12的 MAC地址和 IP地址。 在本步骤中, 第三服务器与第三 CE路由器之间的节点可以包括交换机、 集线器、 路由器等等。 当第一服务器由于负荷过重或发生故障时, 需要将第 一服务器中的 VM12迁移到第三服务器。在此情况下, 可以通过网络管理员手 动触发 VM12的迁移过程, 或者由第一服务器触发 VM12的迁移过程。 VM12 的迁移过程具体包括如下步骤:首先,第三服务器启动一个 VM,该 VM的 MAC 地址和 IP地址都与第一服务器的 VM12的 MAC地址和 IP地址相同。 在本发明 实施例二中, 第三服务器启动的该 VM最终将代替第一服务器的 VM12,该 VM 也被称为 VM12。 第三服务器的 VM12的 MAC地址和 IP地址分别与第一服务器 的 VM12的 MAC地址和 IP地址相同。 然后, 第三服务器向第三服务器与第三 CE路由器之间的节点发送 ARP消息, 该 ARP消息中携带有第三服务器的 VM 12的 MAC地址和 I P地址。
Figure imgf000011_0003
Step 303: The third server sends the MAC address and the IP address of the VM12 of the third server to the node between the third server and the third CE router through the ARP message. In this step, the node between the third server and the third CE router may include a switch, a hub, a router, and the like. When the first server is overloaded or fails, the VM 12 in the first server needs to be migrated to the third server. In this case, the migration process of VM12 can be manually triggered by the network administrator, or the migration process of VM12 can be triggered by the first server. The VM12 migration process specifically includes the following steps: First, the third server starts a VM whose MAC address and IP address are the same as the MAC address and IP address of the VM12 of the first server. In the second embodiment of the present invention, the VM started by the third server will eventually replace the VM 12 of the first server, which is also referred to as VM12. The MAC address and IP address of the VM 12 of the third server are the same as the MAC address and IP address of the VM 12 of the first server, respectively. Then, the third server sends an ARP message to the node between the third server and the third CE router, where the ARP message carries the MAC address and IP address of the VM 12 of the third server.
步骤 304: 第三服务器与第三 CE路由器之间的节点学习第三服务器的 VM 12的 MAC地址并更新 MAC地址转发表。  Step 304: The node between the third server and the third CE router learns the MAC address of the VM 12 of the third server and updates the MAC address forwarding table.
在本步骤中, 在第三站点内广播上述步骤 303中第三服务器发送的 ARP消 息, 则第三站点内的所有节点, 即第三服务器与第三 CE路由器之间的所有节 点, 都将学习到第三服务器的 VM12的 MAC地址, 并根据该 MAC地址更新各 自的 MAC地址转发表。  In this step, the ARP message sent by the third server in the foregoing step 303 is broadcasted in the third station, and all nodes in the third station, that is, all nodes between the third server and the third CE router, will learn. The MAC address of the VM 12 to the third server, and the respective MAC address forwarding table is updated according to the MAC address.
步骤 305: 第三 CE路由器通过 ARP消息从第三服务器与第三 CE路由器之 间的节点获取第三服务器的 VM 12的 MAC地址和 I P地址。  Step 305: The third CE router acquires the MAC address and the IP address of the VM 12 of the third server from the node between the third server and the third CE router through the ARP message.
在本步骤中, 第三服务器与第三 CE路由器之间的节点向第三 CE路由器转 发 ARP消息, 从而使得步骤 303中第三服务器发送的携带有第三服务器的 VM12的 MAC地址和 IP地址的 ARP消息被第三 CE路由器接收。  In this step, the node between the third server and the third CE router forwards the ARP message to the third CE router, so that the MAC address and the IP address of the VM12 carrying the third server sent by the third server in step 303 are obtained. The ARP message is received by the third CE router.
步骤 306: 第三 CE路由器更新 IP路由表并获得第三服务器的 VM12的 IP地 址对应的下一跳地址。  Step 306: The third CE router updates the IP routing table and obtains the next hop address corresponding to the IP address of the VM12 of the third server.
在本步骤中, 第三 CE路由器根据获得的第三服务器的 VM12的 IP地址和 MAC地址, 更新第三 CE路由器中存储的 IP路由表。 并且, 步骤 305中第三 CE 路由器获取的 ARP消息触发第三 CE路由器查 IP路由表, 获得第三服务器的 VM 12的 I P地址对应的下一跳地址。在本发明实施例二中,第三服务器的 VM 12 的 IP地址对应的下一跳地址为第一 CE路由器的 IP地址。 In this step, the third CE router updates the IP routing table stored in the third CE router according to the obtained IP address and MAC address of the VM12 of the third server. And, the third CE in step 305 The ARP message obtained by the router triggers the third CE router to check the IP routing table, and obtains the next hop address corresponding to the IP address of the VM 12 of the third server. In the second embodiment of the present invention, the next hop address corresponding to the IP address of the VM 12 of the third server is the IP address of the first CE router.
步骤 307: 第三 CE路由器通过路由协议报文向第一 CE路由器和第二 CE路 由器发送更新的第三服务器的 VM12的 IP地址路由信息。  Step 307: The third CE router sends the updated IP address routing information of the VM12 of the third server to the first CE router and the second CE router by using the routing protocol packet.
在本步骤中, 首先, 作为第三 CE路由器将第三服务器的 VM12的 IP地址与 第三 CE路由器的 IP地址组成更新的第三服务器的 VM12的 IP地址路由信息。 并且, 第三 CE路由器根据上述更新的第三服务器的 VM12的 IP地址路由信息 更新自身存储的 IP路由表。 参见表 6, 表 6为更新后的第三 CE路由器的 IP路由 表。 然后, 以步骤 305中获取到 ARP消息的动作作为触发条件, 第三 CE路由 器发起路由协议报文, 通过路由协议报文将更新的第三服务器的 VM 12的 I P 地址路由信息发送给其它 CE路由器节点, 例如发送给第一 CE路由器和第二 CE路由器。 具体地, 上述路由协议可以采用 BGP或 IS-IS协议。 更新后的第三 CE路由器的 IP路由表  In this step, first, as the third CE router, the IP address of the VM12 of the third server and the IP address of the third CE router constitute the updated IP address routing information of the VM 12 of the third server. And, the third CE router updates the IP routing table stored by itself according to the IP address routing information of the VM12 of the updated third server. See Table 6, Table 6 for the updated IP routing table of the third CE router. Then, the third CE router initiates a routing protocol packet by using the action of obtaining the ARP message in step 305, and sends the updated IP address routing information of the VM 12 of the third server to the other CE router through the routing protocol packet. The node, for example, is sent to the first CE router and the second CE router. Specifically, the foregoing routing protocol may adopt BGP or IS-IS protocol. Updated IP routing table of the third CE router
Figure imgf000013_0001
步骤 308: 第一 CE路由器更新 IP路由表。
Figure imgf000013_0001
Step 308: The first CE router updates the IP routing table.
在本步骤中, 第一 CE路由器接收到步骤 307中的路由协议报文后,根据第 三服务器的 VM12的 IP地址, 查询第一 CE路由器自身存储的 IP路由表。 由于 第三服务器的 VM12的 IP地址与第一服务器的 VM12的 IP地址相同, 经查询, 第一 CE路由器发现该表中已经存在由该 VM12的 IP地址和第一 CE路由器的 IP地址组成的第一服务器的 VM12的 IP地址路由信息。 根据第三服务器的 VM12的 IP地址路由信息查询第一 CE路由器自身存储的 IP路由表, 第一 CE路 由器获知该 VM12由本地第一站点迁移到其它站点, 则第一 CE路由器根据步 骤 307的路由协议报文中携带的更新的第三服务器的 VM12的 IP地址路由信 息更新 IP路由表,将该表中的 VM12的 IP地址与下一跳地址组成新的 IP地址路 由信息。 在本发明实施例二中, VM12的下一跳地址为第三 CE路由器的 IP地 址。 参见表 7, 表 7为更新后的第二 CE路由器的 IP路由表。 第二 CE路由器的 IP路由表 In this step, after receiving the routing protocol packet in step 307, the first CE router queries the IP routing table stored by the first CE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after inquiry, The first CE router finds that the IP address routing information of the VM 12 of the first server consisting of the IP address of the VM 12 and the IP address of the first CE router already exists in the table. The IP routing table stored by the first CE router is queried according to the IP address routing information of the VM12 of the third server. The first CE router learns that the VM12 is migrated from the local first site to another station, and the first CE router follows the route of step 307. The IP address routing information of the VM12 of the updated third server carried in the protocol packet updates the IP routing table, and the IP address of the VM12 and the next hop address in the table constitute a new IP address routing information. In the second embodiment of the present invention, the next hop address of the VM 12 is the IP address of the third CE router. See Table 7, Table 7 is the IP routing table of the updated second CE router. IP routing table of the second CE router
Figure imgf000014_0001
并且, 在步骤 308中, 第一 CE路由器根据该路由协议报文获知该 VM12由 本地第一站点迁移到其它站点, 则继续执行如下的步骤 309, 由第一 CE路由 器根据该路由协议报文触发 ARP消息。
Figure imgf000014_0001
In addition, in step 308, the first CE router learns that the VM 12 is migrated from the local first site to another station according to the routing protocol message, and then proceeds to step 309, where the first CE router triggers according to the routing protocol packet. ARP message.
步骤 309: 第一 CE路由器通过 ARP消息向第一服务器与第一 CE路由器之 间的节点发送 VM 12的 I P地址或发送 VM 12的 I P地址和 MAC地址。  Step 309: The first CE router sends the IP address of the VM 12 or the IP address and MAC address of the VM 12 to the node between the first server and the first CE router through the ARP message.
在本步骤中, 具体可以采用如下具体实施方式: 第一 CE路由器触发 ARP 消息, 该 ARP消息中携带着 VM12的 IP地址。 第一 CE路由器向第一站点中广 播上述触发的 ARP消息, 用于通知第一站点中的节点释放属于第一服务器的 VM12的相关资源, 例如, 计算资源或存储资源等。 在第一站点中广播该 ARP 消息, 则第一服务器与第一 CE路由器之间的节点均会接收到该 ARP消息。 在 上述过程中, 第一 CE路由器还可以先根据 VM12的 IP地址查询第一 CE路由器 自身存储的 MAC地址和 IP地址的映射表, 得到 VM12的 MAC地址。 然后, 第 一 CE路由器触发 ARP消息, 该 ARP消息中携带着 VM12的 IP地址和 MAC地 址。 该 ARP消息还可以用于更新第一站点内各个节点的 MAC地址转发表。 在 第一站点中广播该 ARP消息,则第一服务器与第一 CE路由器之间的节点均会 接收到该 ARP消息。 In this step, the specific implementation manner is as follows: The first CE router triggers an ARP message, where the ARP message carries the IP address of the VM12. The first CE router broadcasts the triggered ARP message to the first station, and is used to notify the node in the first station to release related resources of the VM 12 belonging to the first server, for example, computing resources or storage resources, and the like. Broadcast the ARP in the first site The message, the node between the first server and the first CE router will receive the ARP message. In the above process, the first CE router may first query the mapping table of the MAC address and the IP address stored by the first CE router according to the IP address of the VM 12, and obtain the MAC address of the VM 12. Then, the first CE router triggers an ARP message, where the ARP message carries the IP address and MAC address of the VM12. The ARP message can also be used to update the MAC address forwarding table of each node in the first site. The ARP message is broadcast in the first station, and the node between the first server and the first CE router receives the ARP message.
在本步骤中, 在采用上述两种实施方式中的任何一种方式的情况下, 上述 方式中采用的 ARP消息可以通过对现有的 ARP消息的操作字段( Operation Code, 简称 OP Code )进行拓展来实现。 具体扩展方法为: 为 ARP消息的 OP Code赋予一个设定的值, 通过该设定的值指示释放属于第一服务器的并 且地址与 ARP消息所携带的 IP地址相同的 VM的相关资源。 其中, 相关资源可 以包括计算资源或存储资源等等。  In this step, in the case of adopting any one of the foregoing two implementation manners, the ARP message used in the foregoing manner may be extended by using an operation code (OP Code) of the existing ARP message. to realise. The specific extension method is: assigning a set value to the OP code of the ARP message, and indicating the related resources of the VM belonging to the first server and having the same address as the IP address carried by the ARP message. Among them, related resources can include computing resources or storage resources, and so on.
步骤 310: 第一服务器与第一 CE路由器之间的节点学习 VM 12的 MAC地址 并更新 MAC地址转发表。  Step 310: The node between the first server and the first CE router learns the MAC address of the VM 12 and updates the MAC address forwarding table.
在本步骤中, 第一服务器与第一 CE路由器之间的节点接收步骤 309中的 ARP消息。 具体地, 步骤 309中的 ARP消息承载在以太网 (Ethernet, 简称 ETH )帧中传送给第一服务器与第一 CE路由器之间的节点, 该 ETH帧中包含 VM 12的 MAC地址, 第一服务器与第一 CE路由器之间的节点重新学习 VM 12 的 MAC地址, 并根据学习到的 VM12的 MAC地址更新各自的 MAC地址转发 表。  In this step, the node between the first server and the first CE router receives the ARP message in step 309. Specifically, the ARP message in step 309 is carried in an Ethernet (Ethernet, hereinafter referred to as ETH) frame and transmitted to a node between the first server and the first CE router, where the ETH frame includes the MAC address of the VM 12, and the first server The node with the first CE router relearns the MAC address of the VM 12 and updates the respective MAC address forwarding table according to the learned MAC address of the VM 12.
步骤 31 1:第一服务器接收第一服务器与第一 CE路由器之间的节点转发的 ARP消息, 获取 VM12的 IP地址, 或获取 VM12的 IP地址和 MAC地址。  Step 31: The first server receives the ARP message forwarded by the node between the first server and the first CE router, obtains the IP address of the VM12, or obtains the IP address and MAC address of the VM12.
步骤 312: 第一服务器释放第一服务器的 VM 12的相关资源。 在本步骤中,第一服务器在收到步骤 309中第一 CE路由器触发的 ARP消息 后, 释放属于第一服务器的 VM12的相关资源。 其中, 相关资源可以包括计算 资源或存储资源等等。 Step 312: The first server releases related resources of the VM 12 of the first server. In this step, after receiving the ARP message triggered by the first CE router in step 309, the first server releases the related resources of the VM 12 belonging to the first server. The related resources may include computing resources or storage resources, and the like.
在步骤 307之后, 还可以执行如下的步骤 313。 其中, 步骤 308至步骤 312 需按照上述顺序执行, 步骤 313可以在步骤 308至步骤 312之前、 之后或同时 执行。  After step 307, the following step 313 can also be performed. The steps 308 to 312 are performed in the above sequence, and the step 313 can be performed before, after or simultaneously with the step 308 to the step 312.
步骤 313: 第二 CE路由器更新 IP路由表。  Step 313: The second CE router updates the IP routing table.
在本步骤中, 第二 CE路由器接收到步骤 307中的路由协议报文后,根据第 三服务器的 VM12的 IP地址, 查询第二 CE路由器自身存储的 IP路由表。 由于 第三服务器的 VM12的 IP地址与第一服务器的 VM12的 IP地址相同, 经查询, 第二 CE路由器发现该表中已经存在由该 VM12的 IP地址和第一 CE路由器的 IP地址组成的第一服务器的 VM12的 IP地址路由信息。 根据上述查询结果, 由 于 VM 12的 IP地址对应的不是第二 CE路由器的本地地址, 即对应的不是第二 CE路由器的 IP地址, 第二 CE路由器获知该 VM12不是从本地第二站点迁移出 去的。 因此, 第二 CE路由器仅根据步骤 307的路由协议报文中携带的更新的 第三服务器的 VM12的 IP地址路由信息更新 IP路由表, 将该表中的 VM12的 IP 地址与第三 CE路由器的 IP地址组成新的 IP地址路由信息。 参见表 8, 表 8为更 新后的第一 CE路由器的 IP路由表。  In this step, after receiving the routing protocol packet in step 307, the second CE router queries the IP routing table stored by the second CE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after querying, the second CE router finds that the IP address of the VM12 and the IP address of the first CE router already exist in the table. The IP address routing information of a server's VM12. According to the above query result, since the IP address of the VM 12 does not correspond to the local address of the second CE router, that is, the IP address of the second CE router is not corresponding, the second CE router learns that the VM 12 is not migrated from the local second site. . Therefore, the second CE router updates the IP routing table only according to the IP address routing information of the updated VM12 of the third server carried in the routing protocol message in step 307, and the IP address of the VM12 in the table is compared with the third CE router. The IP address constitutes a new IP address routing information. See Table 8, Table 8 for the updated IP routing table of the first CE router.
并且, 在步骤 313中, 由于第二 CE路由器获知该 VM12不是从本地第 二站点迁移出去的, 因此, 在步骤 313之后, 第二 CE路由器并不触发携带 VM12的 IP地址或携带 VM12的 IP地址和 MAC地址的 ARP消息。  Moreover, in step 313, since the second CE router learns that the VM 12 is not migrated from the local second site, after step 313, the second CE router does not trigger the IP address carrying the VM 12 or the IP address carrying the VM 12. ARP message with MAC address.
在上述本发明实施例二的具体过程中, 如果不存在第一服务器与第一控 制节点之间的节点和第三服务器与第三控制节点之间的节点, 则步骤 303和 304可以省略, 由第三服务器通过 ARP消息直接向第三 CE路由器发送第三 服务器的 VM12的 MAC地址和 IP地址即可。 CE路由器的 IP路由表 In the specific process of the second embodiment of the present invention, if there is no node between the first server and the first control node and a node between the third server and the third control node, steps 303 and 304 may be omitted. The third server sends the MAC address and IP address of the VM12 of the third server directly to the third CE router through the ARP message. IP routing table of the CE router
Figure imgf000017_0001
采用上述 VM迁移方法, 将 VM12从第一站点中的第一服务器迁移到第 三站点中的第三服务器。 以第二站点的第二服务器中的 VM21与该 VM12通 信为例。
Figure imgf000017_0001
Using the VM migration method described above, the VM 12 is migrated from the first server in the first site to the third server in the third site. Take the VM 21 in the second server of the second site as an example of communication with the VM 12.
在 VM12迁移之前, VM12位于第一站点中的第一服务器, VM21与 VM12 的通信过程如下。  Before VM12 migration, VM12 is located in the first server in the first site, and the communication process between VM21 and VM12 is as follows.
步骤 3a: 第二 CE路由器获取来自 VM21的 IP报文。  Step 3a: The second CE router acquires an IP packet from the VM21.
在本步骤中, 首先, VM21向第二 CE路由器发出携带有 VM12的 IP地 址的 ARP消息, 通过该消息向第二 CE路由器请求 VM12的 MAC地址。 然 后, 第二 CE路由器作为 ARP代理, 查询第二 CE路由器自身的 MAC地址 和 IP地址的映射表, 参见表 5。 根据第二 CE路由器的 MAC地址和 IP地址 的映射表,第二 CE路由器将第二 CE路由器的 MAC地址作为 VM12的 MAC 地址回复给 VM21。 然后, VM21向第二 CE路由器发送 IP报文, 该 IP报文 的目的 IP地址为 VM12的 IP地址。 具体地, 该 IP报文被承载于 ETH报文 上发送给第二 CE路由器, 该 ETH报文的目的 MAC地址为第二 CE路由器 的 MAC地址。  In this step, first, the VM 21 sends an ARP message carrying the IP address of the VM 12 to the second CE router, and requests the MAC address of the VM 12 from the second CE router through the message. Then, the second CE router acts as an ARP proxy, and queries the mapping table of the MAC address and IP address of the second CE router itself, as shown in Table 5. According to the mapping table of the MAC address and the IP address of the second CE router, the second CE router replies the MAC address of the second CE router to the VM 21 as the MAC address of the VM 12. Then, the VM 21 sends an IP packet to the second CE router, and the destination IP address of the IP packet is the IP address of the VM 12. Specifically, the IP packet is sent to the second CE router, and the destination MAC address of the ETH packet is the MAC address of the second CE router.
步骤 3b: 第二 CE路由器将 IP报文封装入通往第一 CE路由器的 IP隧 道。  Step 3b: The second CE router encapsulates the IP packet into an IP tunnel to the first CE router.
在本步骤中, 第二 CE路由器收到步骤 3a中 IP报文, 该 IP报文的目的 IP地址为 VM12的 IP地址。 第二 CE路由器查询第二 CE路由器自身的 IP 路由表, 参见表 3。 根据 VM12的 IP地址, 查询得到下一跳为第一 CE路由 器。则第二 CE路由器将该 IP报文封装入通往第一 CE路由器的 IP隧道。具 体地, 该 IP隧道的目的地址为第一 CE路由器的 IP地址, 源地址为第二 CE 路由器的 IP地址。 In this step, the second CE router receives the IP packet in step 3a, and the purpose of the IP packet is The IP address is the IP address of VM12. The second CE router queries the IP routing table of the second CE router itself, as shown in Table 3. According to the IP address of the VM12, the query obtains the next hop as the first CE router. Then, the second CE router encapsulates the IP packet into an IP tunnel to the first CE router. Specifically, the destination address of the IP tunnel is an IP address of the first CE router, and the source address is an IP address of the second CE router.
步骤 3c: 第一 CE路由器获取承载于 IP隧道的 IP报文。  Step 3c: The first CE router obtains an IP packet carried in the IP tunnel.
在本步骤中, 第一 CE路由器接收来自第二 CE路由器的上述封装后的 报文, 去除 IP隧道封装, 得到 IP报文。 其中, 得到的该 IP报文的目的 IP 地址为 VM12的 IP地址。  In this step, the first CE router receives the encapsulated packet from the second CE router, removes the IP tunnel encapsulation, and obtains an IP packet. The destination IP address of the obtained IP packet is the IP address of the VM12.
步骤 3d: 第一 CE路由器向第一服务器中的 VM12发送 IP报文。  Step 3d: The first CE router sends an IP packet to the VM12 in the first server.
在本步骤中,第一 CE路由器根据得到的 IP报文的目的 IP地址为 VM12 的 IP地址, 查询第一 CE路由器自身的 IP路由表, 参见表 4。 第一 CE路由 器查询得到下一跳为本地, 则第一 CE路由器在第一站点内发送该 IP报文, 该 IP报文的目的 IP地址为 VM12的 IP地址。位于第一站点内第一服务器中 的 VM12收到该 IP报文。  In this step, the first CE router queries the IP routing table of the first CE router according to the IP address of the obtained IP packet, and refers to Table 4. When the first CE router queries that the next hop is local, the first CE router sends the IP packet in the first station, and the destination IP address of the IP packet is the IP address of the VM12. The VM 12 located in the first server in the first site receives the IP packet.
上述步骤 3a至步骤 3d为 VM12迁移之前的数据传递过程, 在上述步骤 307之前执行。 在执行了上述步骤 307至步骤 309之后, VM12发生迁移。 在 VM12迁移之后, VM12位于第三站点中的第三服务器,此时 VM21与 VM12 的通信过程如下。  The above steps 3a to 3d are the data transfer process before the VM12 migration, and are executed before the above step 307. After the above steps 307 to 309 are performed, the VM 12 is migrated. After VM12 migration, VM12 is located in the third server in the third site, and the communication process between VM21 and VM12 is as follows.
在 VM12迁移后,第一 CE路由器的数据传输过程包括如下步骤 3e至步 骤 3h。  After the VM12 is migrated, the data transmission process of the first CE router includes the following steps 3e to 3h.
步骤 3e: 第一 CE路由器获取承载于 IP隧道的 IP报文。  Step 3e: The first CE router obtains an IP packet that is carried in the IP tunnel.
在本步骤中, 在第一 CE路由器收到步骤 307的路由协议报文后, 如果 该第一 CE路由器还收到承载于以第一 CE路由器的 IP地址的 IP隧道并且目 的 IP地址为 VM12的 IP地址的 IP报文, 则按照下述步骤执行。  In this step, after the first CE router receives the routing protocol packet of step 307, if the first CE router also receives the IP tunnel carried by the IP address of the first CE router and the destination IP address is VM12. For IP packets with IP addresses, follow the steps below.
步骤 3f: 第一 CE路由器将 IP报文封装入通往第三 CE路由器的 IP隧 道。 Step 3f: The first CE router encapsulates the IP packet into the IP tunnel to the third CE router. Road.
在本步骤中, 第一 CE路由器根据 VM12的 IP地址查询第一 CE路由器 自身的 IP路由表, 参见表 8, 得到 VM12的 IP地址对应的下一跳地址为第 三 CE路由器的 IP地址。 然后, 第一 CE路由器将目的 IP地址为 VM12的 IP地址的 IP报文封装入通往第三 CE路由器的 IP隧道,该 IP隧道的目的地 址为第三 CE路由器的 IP地址, 源地址为第一 CE路由器的 IP地址。在第二 CE路由器收到路由协议报文晚于第一 CE路由器的情况下 ,通过执行本步骤, 能够保证在 VM 12发生迁移之后, 数据传输过程不丟包, 保证数据传输的正 确性。  In this step, the first CE router queries the IP routing table of the first CE router according to the IP address of the VM12. Referring to Table 8, the next hop address corresponding to the IP address of the VM12 is the IP address of the third CE router. Then, the first CE router encapsulates the IP packet whose destination IP address is the IP address of the VM12 into the IP tunnel to the third CE router. The destination address of the IP tunnel is the IP address of the third CE router, and the source address is the The IP address of a CE router. After the second CE router receives the routing protocol packet later than the first CE router, by performing this step, it can ensure that after the VM 12 is migrated, the data transmission process does not drop packets, and the data transmission is ensured correctly.
步骤 3g: 第三 CE路由器获取承载于 IP隧道的 IP报文。  Step 3g: The third CE router obtains the IP packet carried in the IP tunnel.
在本步骤中, 第三 CE路由器接收来自第一 CE路由器的上述封装后的 报文, 去除 IP隧道封装, 得到 IP报文。 其中, 得到的 IP报文的目的 IP地 址为 VM12的 IP地址。  In this step, the third CE router receives the encapsulated packet from the first CE router, removes the IP tunnel encapsulation, and obtains an IP packet. The destination IP address of the obtained IP packet is the IP address of the VM12.
步骤 3h: 第三 CE路由器向第三服务器中的 VM12发送 IP报文。  Step 3h: The third CE router sends an IP packet to the VM12 in the third server.
在本步骤中,第三 CE路由器根据得到的 IP报文的目的 IP地址为 VM12 的 IP地址, 查询第三 CE路由器自身的 IP路由表, 参见表 6。 第三 CE路由 器查询得到下一跳为本地, 则第三 CE路由器在第三站点内发送该 IP报文, 该 IP报文的目的 IP地址为 VM12的 IP地址。位于第三站点内的第三服务器 中的 VM12收到该 IP报文。  In this step, the third CE router queries the IP routing table of the third CE router according to the IP address of the obtained IP packet, and refers to Table 6. The third CE router queries that the next hop is local, and the third CE router sends the IP packet in the third station, and the destination IP address of the IP packet is the IP address of the VM12. The VM 12 in the third server located in the third site receives the IP packet.
在 VM12迁移后, 第二 CE路由器的数据传输过程包括如下步骤 3i至步 骤 3k。 步骤 3i至步骤 3k可以在步骤 3e至步骤 3h之前、 之后或同时执行。  After the VM12 is migrated, the data transmission process of the second CE router includes the following steps 3i to 3k. Steps 3i through 3k can be performed before, after or simultaneously with steps 3e through 3h.
步骤 3i:第二 CE路由器将 IP报文封装入通往第三 CE路由器的 IP隧道。 在本步骤中, 在第二 CE路由器收到步骤 307的路由协议报文后, 如果 第二 CE路由器收到来自自身站点的目的 IP地址为 VM12的 IP地址的 IP报 文, 则第二 CE路由器根据 VM12的 IP地址查询第二 CE路由器自身的 IP 路由表, 参见表 7。 根据 VM12的 IP地址, 查询得到 VM12的 IP地址对应 的下一跳地址为第三 CE路由器的 IP地址。 然后, 第一 CE路由器将该目的 IP地址为 VM12的 IP地址的 IP报文封装入通往第三 CE路由器的 IP隧道, 该 IP隧道的目的地址为第三 CE路由器的 IP地址,源地址为第一 CE路由器 的 IP地址。 采用本步骤, 第二 CE路由器直接将待发送给 VM 12的 IP报文 转发给第三 CE路由器。 Step 3i: The second CE router encapsulates the IP packet into an IP tunnel to the third CE router. In this step, after the second CE router receives the routing protocol packet of step 307, if the second CE router receives the IP packet from the IP address of the VM12 whose destination IP address is the VM12, the second CE router The IP routing table of the second CE router itself is queried according to the IP address of the VM12, as shown in Table 7. According to the IP address of VM12, the query obtains the IP address corresponding to VM12. The next hop address is the IP address of the third CE router. Then, the first CE router encapsulates the IP packet whose IP address is the IP address of the VM12 into the IP tunnel to the third CE router. The destination address of the IP tunnel is the IP address of the third CE router, and the source address is The IP address of the first CE router. With this step, the second CE router directly forwards the IP packet to be sent to the VM 12 to the third CE router.
步骤 3j: 第三 CE路由器获取承载于 IP隧道的 IP报文。  Step 3j: The third CE router obtains the IP packet carried in the IP tunnel.
在本步骤中, 第三 CE路由器接收来自第二 CE路由器的上述封装后的 报文, 去除 IP隧道封装, 得到 IP报文。 其中, 得到的 IP报文的目的 IP地 址为 VM12的 IP地址。  In this step, the third CE router receives the encapsulated packet from the second CE router, removes the IP tunnel encapsulation, and obtains an IP packet. The destination IP address of the obtained IP packet is the IP address of the VM12.
步骤 3k: 第三 CE路由器向第三服务器中的 VM12发送 IP报文。  Step 3k: The third CE router sends an IP packet to the VM12 in the third server.
本步骤与上述步骤 3h相同, 在此不再赘述。  This step is the same as step 3h above, and is not described here.
在本发明实施例二中, 在 VM迁移控制过程中, 站点内的交互过程采用 ARP协议,站点间的交互过程采用路由协议。 因此,各个 CE路由器与该 CE 路由器自身所在的站点内的其它节点进行交互时, 采用 ARP 协议; 作为源 CE路由器的第一 CE路由器与作为目标 CE路由器的第三 CE路由器进行交 互时, 采用路由协议; 由第一 CE路由器与第三 CE路由器完成 ARP消息与 路由协议报文之间的相互触发和转化。从而将 ARP协议的报文限制在各个站 点内部, 避免了将 ARP协议发到 DC互联网络中。 因为一个 ARP消息只能 针对一个地址, 而一个路由协议报文可以包括多个地址, 因此, 通过在 DC 互联网络中采用路由协议报文替代 ARP消息,避免了在 DC互联网络中广播 ARP消息带来的广播风暴, 从而节省了控制信令占用的带宽。  In the second embodiment of the present invention, in the VM migration control process, the interaction process in the site adopts the ARP protocol, and the interaction process between the sites adopts a routing protocol. Therefore, when each CE router interacts with other nodes in the site where the CE router is located, the ARP protocol is adopted; when the first CE router that is the source CE router interacts with the third CE router that is the target CE router, the route is adopted. Protocol: The first CE router and the third CE router complete mutual triggering and conversion between the ARP message and the routing protocol message. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is prevented from being sent to the DC internet. Because an ARP message can only be used for one address, and a routing protocol message can include multiple addresses. Therefore, by using a routing protocol message instead of an ARP message in the DC Internet, it is avoided to broadcast an ARP message band in the DC internet. The incoming broadcast storm saves the bandwidth occupied by control signaling.
图 4为本发明实施例三的虚拟机迁移通知方法的信令流程图。 在本发明 实施例三中, 以控制节点为 PE路由器为例, 在各个 PE路由器上设置 ARP 代理功能。 在本发明实施例三中, 以 VM12从第一站点中的第一服务器迁移 到第三站点中的第三服务器的过程为例, 则第一站点为源站点, 第一服务器 为源服务器, 第一 PE路由器为源 PE路由器; 第三站点为目标站点, 第三服 务器为目标服务器, 第三 PE路由器为目标 PE路由器。 以各个 PE路由器之 间通过多协议标记交换 ( Multiprotocol Label Switching, 简称 MPLS )技术 构成 VPN为例。 如图 4所示, 该方法包括如下过程。 FIG. 4 is a signaling flowchart of a virtual machine migration notification method according to Embodiment 3 of the present invention. In the third embodiment of the present invention, the ARP proxy function is set on each PE router by taking the control node as a PE router as an example. In the third embodiment of the present invention, the process of migrating from the first server in the first site to the third server in the third site is taken as an example, the first site is a source site, and the first server is a source server, One PE router is the source PE router; the third site is the target site, the third service The server is the target server, and the third PE router is the target PE router. For example, a VPN is formed by a multi-protocol label switching (MPLS) technology between PE routers. As shown in FIG. 4, the method includes the following process.
步骤 401 : 第一 PE路由器通过 ARP消息从第一服务器获取第一服务器 的 VM12的 MAC地址和 IP地址的映射关系。  Step 401: The first PE router obtains a mapping relationship between the MAC address and the IP address of the VM12 of the first server from the first server by using an ARP message.
在本步骤中, 各个 PE路由器通过 ARP消息从自身对应的服务器获取自 身对应的站点内的 VM的 MAC地址和 IP地址的映射关系。 具体地, 第一服 务器向第一 CE路由器发送 ARP消息,该消息中包括第一站点内 VM的 MAC 地址和 IP地址的映射关系; 第一 CE路由器向第一 PE路由器转发该 ARP 消息; 第一 PE路由器从第一 CE路由器接收上述 ARP消息, 根据该 ARP 消息获取第一站点内 VM的 MAC地址和 IP地址的映射关系, 第二 PE路由 器通过 ARP消息从第二服务器获取第二站点内 VM的 MAC地址和 IP地址 的映射关系, 第三 PE路由器通过 ARP 消息从第三服务器获取第三站点内 VM的 MAC地址和 IP地址的映射关系。 在本发明实施例三中, 仅以 VM12 从第一站点内的第一服务器迁移到第三站点内的第三服务器的过程为例, 因 此, 在本步骤中, 第一 PE路由器通过 ARP消息从第一服务器获取第一站点 内 VM的 MAC地址和 IP地址的映射关系。 由于迁移前 VM12位于第一站点 内, 所以第一 PE路由器获取的第一站点内 VM的 MAC地址和 IP地址的映 射关系中, 包括 VM12的 MAC地址和 IP地址的映射关系。  In this step, each PE router obtains the mapping relationship between the MAC address and the IP address of the VM in the corresponding site through the ARP message from its own server. Specifically, the first server sends an ARP message to the first CE router, where the message includes a mapping relationship between the MAC address and the IP address of the VM in the first site; the first CE router forwards the ARP message to the first PE router; The PE router receives the foregoing ARP message from the first CE router, and obtains a mapping relationship between the MAC address and the IP address of the VM in the first site according to the ARP message, and the second PE router acquires the VM in the second site from the second server by using the ARP message. The mapping between the MAC address and the IP address is obtained by the third PE router from the third server by using the ARP message to obtain the mapping relationship between the MAC address and the IP address of the VM in the third site. In the third embodiment of the present invention, the process of migrating from the first server in the first site to the third server in the third site is taken as an example. Therefore, in this step, the first PE router passes the ARP message. The first server acquires a mapping relationship between a MAC address and an IP address of the VM in the first site. The mapping between the MAC address and the IP address of the VM in the first site obtained by the first PE router includes the mapping between the MAC address and the IP address of the VM12.
在本步骤中, 各个 PE路由器在获取到各自对应的站点内的 VM的 MAC 地址和 IP地址的映射关系之后, 还根据对应的站点内的 VM的 MAC地址和 IP地址的映射关系, 在自身存储 MAC地址与 IP地址的映射表。 仍以第一 PE路由器为例,表 9为第一 PE路由器的 MAC地址和 IP地址的映射表。第 一 PE路由器通过 ARP消息从第一服务器获取第一站点内 VM的 MAC地址 和 IP地址的映射关系之后, 将上述映射关系存储到表 9中。 其中, 表 9中包 括第一服务器的 VM12的 MAC地址和 IP地址的映射关系。 PE路由器的 MAC地址和 IP地址的映射表 In this step, after obtaining the mapping relationship between the MAC address and the IP address of the VM in the corresponding site, each PE router also stores the MAC address and the IP address in the corresponding site according to the mapping relationship between the MAC address and the IP address of the VM in the corresponding site. A mapping table of MAC addresses and IP addresses. Taking the first PE router as an example, Table 9 is a mapping table of the MAC address and IP address of the first PE router. After the first PE router acquires the mapping relationship between the MAC address and the IP address of the VM in the first site from the first server by using the ARP message, the foregoing mapping relationship is stored in Table 9. The mapping relationship between the MAC address and the IP address of the VM 12 of the first server is included in Table 9. Mapping table of MAC address and IP address of PE router
Figure imgf000022_0001
步骤 402:第一 PE路由器通过路由协议报文向第三 PE路由器发送第一 服务器的 VM12的 IP地址路由信息。
Figure imgf000022_0001
Step 402: The first PE router sends the IP address routing information of the VM12 of the first server to the third PE router by using the routing protocol packet.
在本步骤中,各个 PE路由器通过路由协议报文向其它 PE路由器发送自 身对应站点的 VM的 IP地址路由信息。 具体地, 第一 PE路由器通过路由协 议报文向第二 PE路由器和第三 PE路由器发送第一站点的 VM的 IP地址路 由信息,第二 PE路由器通过路由协议报文向第一 PE路由器和第三 PE路由 器发送第二站点的 VM的 IP地址路由信息, 第三 PE路由器通过路由协议报 文向第一 PE路由器和第二 PE路由器发送第三站点的 VM的 IP地址路由信 息。 在本发明实施例三中, 仅以 VM12从第一站点中的第一服务器迁移到第 三站点中的第三服务器的过程为例, 因此, 在本步骤中, 仅以第一 PE路由 器通过路由协议报文向第三 PE路由器发送第一站点的 VM的 IP地址路由信 息为例。 其它 PE路由器发送各自对应站点的 VM的 IP地址路由信息的具体 过程可以参照第一 PE路由器发送第一站点的 VM的 IP地址路由信息的过程 实现, 在此不再赘述。  In this step, each PE router sends the IP address routing information of the VM of its own site to other PE routers through routing protocol packets. Specifically, the first PE router sends the IP address routing information of the VM of the first site to the second PE router and the third PE router by using the routing protocol packet, and the second PE router sends the routing protocol packet to the first PE router and the first The third PE router sends the IP address routing information of the VM of the second site, and the third PE router sends the IP address routing information of the VM of the third site to the first PE router and the second PE router by using the routing protocol packet. In the third embodiment of the present invention, only the process of migrating from the first server in the first site to the third server in the third site is taken as an example. Therefore, in this step, only the first PE router passes the route. The protocol packet sends the IP address routing information of the VM of the first site to the third PE router as an example. The process of sending the IP address routing information of the VMs of the corresponding PEs of the other PEs may be implemented by referring to the process of sending the IP address routing information of the VMs of the first site by the first PE router, and details are not described herein.
具体地, 第一 PE路由器通过路由协议报文向第三 PE路由器发送第一站点 的 VM的 IP地址路由信息的具体过程包括: 首先, 第一 PE路由器将第一站点 内 VM的 IP地址与第一 PE路由器的 IP地址组成第一站点的 IP地址路由信息。在 本发明实施例三中, 迁移前的 VM12位于第一站点中的第一服务器中,属于第 一站点内的 VM, 因此, 第一 PE路由器组成的第一站点的 VM的 IP地址路由信 息中, 包括第一服务器的 VM12的 IP地址路由信息。 具体地, 第一服务器的 VM12的 IP地址路由信息包括第一服务器的 VM12的 IP地址和第一 PE路由器 的 IP地址。 然后, 第一 PE路由器通过路由协议报文向第三 PE路由器发送第一 站点的 VM的 IP地址路由信息。 通过发送第一站点的 VM的 IP地址路由信息, 第一 PE路由器将位于第一站点中第一服务器的 VM12的 IP地址路由信息发送 给第三 PE路由器。 Specifically, the specific process of the first PE router sending the IP address routing information of the VM of the first site to the third PE router by using the routing protocol packet includes: First, the first PE router sets the IP address of the VM in the first site and the first The IP address of a PE router constitutes the IP address routing information of the first site. In the third embodiment of the present invention, the VM 12 before the migration is located in the first server in the first site and belongs to the VM in the first site. Therefore, the IP address routing information of the VM of the first site formed by the first PE router is The information includes the IP address routing information of the VM12 of the first server. Specifically, the IP address routing information of the VM 12 of the first server includes an IP address of the VM 12 of the first server and an IP address of the first PE router. Then, the first PE router sends the IP address routing information of the VM of the first site to the third PE router through the routing protocol message. The first PE router sends the IP address routing information of the VM 12 of the first server in the first site to the third PE router by sending the IP address routing information of the VM of the first site.
在本步骤中, 各个 PE路由器通过路由协议报文向其它 PE路由器发送自身 对应站点的 VM的 IP地址路由信息之后, 其它 PE路由器根据获得的站点的 VM 的 IP地址路由信息, 在自身存储各自的 IP路由表, 并更新自身存储的 MAC地 址和 IP地址的映射表。 参见表 10至表 13, 其中: 表 10为第三 PE路由器的 IP 路由表; 表 11为第二 PE路由器的 IP路由表; 表 12为第一 PE路由器的 IP路由 表;表 13为第二 PE路由器的 MAC地址和 IP地址的映射表。在上述各表中, "X" 表示 16进制数; "-" 表示缺省。  In this step, after each PE router sends the IP address routing information of the VM of its corresponding site to other PE routers through routing protocol packets, the other PE routers store their own information according to the IP address routing information of the obtained VMs of the site. IP routing table, and update the mapping table of its stored MAC address and IP address. See Table 10 to Table 13, where: Table 10 is the IP routing table of the third PE router; Table 11 is the IP routing table of the second PE router; Table 12 is the IP routing table of the first PE router; Table 13 is the second Mapping table of MAC addresses and IP addresses of PE routers. In each of the above tables, "X" indicates a hexadecimal number; "-" indicates a default.
具体地, 在本发明实施例中, 上述路由协议可以采用 BGP协议。 PE路由 器之间的网络为 PSN。 如果分组交换网 ( Packet Switching Network, PSN ) 为 MPLS网络, 优选地, 上述路由协议可以采用多协议扩展( Multiprotocol , 简称 MP ) BGP协议, 以便携带伪线(Pseudowire, 简称 PW )标签。 第三 PE路由器的 IP路由表  Specifically, in the embodiment of the present invention, the foregoing routing protocol may adopt a BGP protocol. The network between PE routers is the PSN. If the Packet Switching Network (PSN) is an MPLS network, the routing protocol may use a Multiprotocol (MP) BGP protocol to carry a Pseudowire (PW) label. IP routing table of the third PE router
Figure imgf000023_0001
第二 PE路由器的 IP路由表
Figure imgf000023_0001
IP routing table of the second PE router
Figure imgf000024_0001
表 13 第二 PE路由器的 MAC地址和 IP地址的映射表
Figure imgf000024_0001
Table 13 Mapping table of MAC addresses and IP addresses of the second PE router
Figure imgf000024_0002
步骤 403:第三服务器通过 ARP消息向第三服务器与第三 PE路由器之间的 节点发送第三服务器的 VM12的 MAC地址和 IP地址。 在本步骤中, 当第一服务器由于负荷过重或发生故障时, 需要将第一服务 器中的 VM12迁移到第三服务器。 首先, 第三服务器启动一个 VM, 该 VM的 MAC地址和 IP地址都与第一服务器的 VM12的 MAC地址和 IP地址相同。 在本 发明实施例三中, 第三服务器启动的该 VM最终将代替第一服务器的 VM 12 , 该 VM也被称为 VM12。 第三服务器的 VM12的 MAC地址和 IP地址分别与第一 服务器的 VM12的 MAC地址和 IP地址相同。 然后, 第三服务器向第三服务器 与第三 PE路由器之间的节点发送 ARP消息,该 ARP消息中携带有第三服务器 的 VM 12的 MAC地址和 I P地址。
Figure imgf000024_0002
Step 403: The third server sends the MAC address and the IP address of the VM12 of the third server to the node between the third server and the third PE router through the ARP message. In this step, when the first server is overloaded or fails, the VM 12 in the first server needs to be migrated to the third server. First, the third server starts a VM whose MAC address and IP address are the same as the MAC address and IP address of the VM12 of the first server. In the third embodiment of the present invention, the VM started by the third server will eventually replace the VM 12 of the first server, which is also referred to as VM12. The MAC address and IP address of the VM 12 of the third server are the same as the MAC address and IP address of the VM 12 of the first server, respectively. Then, the third server sends an ARP message to the node between the third server and the third PE router, where the ARP message carries the MAC address and IP address of the VM 12 of the third server.
步骤 404: 第三服务器与第三 PE路由器之间的节点学习第三服务器的 VM 12的 MAC地址并更新 MAC地址转发表。  Step 404: The node between the third server and the third PE router learns the MAC address of the VM 12 of the third server and updates the MAC address forwarding table.
在本步骤中, 在第三站点内广播上述步骤 403中第三服务器发送的 ARP消 息, 则第三站点内的所有节点, 即第三服务器与第三 PE路由器之间的所有节 点, 都将学习到第三服务器的 VM12的 MAC地址, 并根据该 MAC地址更新各 自的 MAC地址转发表。  In this step, the ARP message sent by the third server in the foregoing step 403 is broadcasted in the third station, and all nodes in the third station, that is, all nodes between the third server and the third PE router, will learn. The MAC address of the VM 12 to the third server, and the respective MAC address forwarding table is updated according to the MAC address.
步骤 405: 第三 PE路由器通过 ARP消息从第三服务器与第三 PE路由器之 间的节点获取第三服务器的 VM 12的 MAC地址和 I P地址。  Step 405: The third PE router acquires the MAC address and the IP address of the VM 12 of the third server from the node between the third server and the third PE router through the ARP message.
在本步骤中, 步骤 403中第三服务器发送的携带有第三服务器的 VM12的 MAC地址和 IP地址的 ARP消息被第三 PE路由器接收。  In this step, the ARP message of the MAC address and IP address of the VM12 carrying the third server sent by the third server in step 403 is received by the third PE router.
步骤 406: 第三 PE路由器更新 IP路由表并获得第三服务器的 VM12的 IP地 址对应的下一跳地址。  Step 406: The third PE router updates the IP routing table and obtains the next hop address corresponding to the IP address of the VM12 of the third server.
在本步骤中, 第三 PE路由器根据获得的第三服务器的 VM12的 IP地址和 MAC地址, 更新第三 PE路由器中存储的 IP路由表。 并且, 步骤 405中第三 PE 路由器获取的 ARP消息触发第三 PE路由器查 IP路由表, 获得第三服务器的 VM12的 IP地址对应的下一跳地址。在本发明实施例三中,第三服务器的 VM12 的 IP地址对应的下一跳地址为第一 PE路由器的 IP地址。 步骤 407: 第三 PE路由器通过路由协议报文向第一 PE路由器和第二 PE路 由器发送更新的第三服务器的 VM12的 IP地址路由信息。 In this step, the third PE router updates the IP routing table stored in the third PE router according to the obtained IP address and MAC address of the VM12 of the third server. Moreover, the ARP message obtained by the third PE router in step 405 triggers the third PE router to check the IP routing table, and obtains the next hop address corresponding to the IP address of the VM12 of the third server. In the third embodiment of the present invention, the next hop address corresponding to the IP address of the VM12 of the third server is the IP address of the first PE router. Step 407: The third PE router sends the updated IP address routing information of the VM12 of the third server to the first PE router and the second PE router by using the routing protocol packet.
在本步骤中, 首先, 第三 PE路由器将第三服务器的 VM12的 IP地址与第三 PE路由器的 IP地址, 组成更新的第三服务器的 VM12的 IP地址路由信息。 并 且, 第三 PE路由器根据上述更新的第三服务器的 VM12的 IP地址路由信息更 新自身存储的 IP路由表。 参见表 14, 表 14为更新后的第三 PE路由器的 IP路由 表。 然后, 以步骤 405中获取到 ARP消息的动作作为触发条件, 第三 PE路由 器发起路由协议报文, 通过路由协议报文将更新的第三服务器的 VM 12的 I P 地址路由信息发送给其它 PE路由器节点, 例如发送给第一 PE路由器和第二 PE路由器。 具体地, 上述路由协议可以采用 BGP协议。 在路由协议报文中, 还可以携带一个设定的 PW标签, 该设定的 PW标签用于指示该路由协议报文 由第三 PE路由器以外的其它 PE路由器发送到第三 PE路由器。 例如, 该设定 的 PW标签可以为: x54321。 更新后的第三 PE路由器的 IP路由表  In this step, first, the third PE router combines the IP address of the VM12 of the third server with the IP address of the third PE router to form the IP address routing information of the VM12 of the updated third server. Moreover, the third PE router updates the IP routing table stored by itself according to the IP address routing information of the VM12 of the updated third server. See Table 14, Table 14 for the updated IP routing table of the third PE router. Then, the third PE router initiates a routing protocol packet by using the action of obtaining the ARP message in step 405, and sends the updated IP address routing information of the VM 12 of the third server to other PE routers through the routing protocol packet. The node, for example, is sent to the first PE router and the second PE router. Specifically, the foregoing routing protocol may adopt a BGP protocol. The routing protocol packet may also carry a set PW label, where the set PW label is used to indicate that the routing protocol packet is sent by the PE router other than the third PE router to the third PE router. For example, the set PW tag can be: x54321. Updated IP routing table of the third PE router
Figure imgf000026_0001
步骤 408: 第一 PE路由器更新 IP路由表。
Figure imgf000026_0001
Step 408: The first PE router updates the IP routing table.
在本步骤中, 第一 PE路由器接收到步骤 407中的路由协议报文后, 根据第 三服务器的 VM12的 IP地址, 查询第一 PE路由器自身存储的 IP路由表。 由于 第三服务器的 VM12的 IP地址与第一服务器的 VM12的 IP地址相同, 经查询, 第一 PE路由器发现该表中已经存在由该 VM12的 IP地址和第一 PE路由器的 IP 地址组成的第一服务器的 VM12的 IP地址路由信息。 根据第三服务器的 VM12 的 IP地址路由信息查询第一 PE路由器自身存储的 IP路由表,第一 PE路由器获 知该 VM12由本地第一站点迁移到其它站点, 则第一 PE路由器根据步骤 407 的路由协议报文中携带的更新的第三服务器的 VM12的 IP地址路由信息更新 IP路由表, 将该表中的 VM12的 IP地址与第三 PE路由器的 IP地址组成新的 IP 地址路由信息。参见表 15,表 15为更新后的第二 PE路由器的 IP路由表。其中, 由步骤 407中的路由协议报文触发第一 PE路由器对 VM12的 IP地址与步骤 407中设定的 PW标签进行绑定, 参见表 15, VM12的 IP地址绑定的 PW标签为 x54321。 In this step, after receiving the routing protocol packet in step 407, the first PE router queries the IP routing table stored by the first PE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after inquiry, The first PE router finds that the IP address routing information of the VM 12 of the first server consisting of the IP address of the VM 12 and the IP address of the first PE router already exists in the table. Querying the IP routing table stored by the first PE router according to the IP address routing information of the VM12 of the third server, the first PE router learns that the VM12 is migrated from the local first site to another station, and the first PE router according to the route of step 407 The IP address routing information of the VM12 of the updated third server carried in the protocol packet updates the IP routing table, and the IP address of the VM12 in the table and the IP address of the third PE router form a new IP address routing information. Referring to Table 15, Table 15 is an updated IP routing table of the second PE router. The PW label of the VM12 is bound to the PW label set in the step 407 by the routing protocol packet in the step 407. The PW label bound to the IP address of the VM12 is x54321.
第二 PE路由器的 IP路由表  IP routing table of the second PE router
Figure imgf000027_0001
并且, 在步骤 408中, 第一 PE路由器根据该路由协议报文获知该 VM12由 本地第一站点迁移到其它站点, 则继续执行如下的步骤 409, 由第一 PE路由 器根据该路由协议报文触发 ARP消息。
Figure imgf000027_0001
In addition, in step 408, the first PE router learns that the VM 12 is migrated from the local first site to another station according to the routing protocol message, and then proceeds to step 409, where the first PE router triggers according to the routing protocol packet. ARP message.
步骤 409: 第一 PE路由器通过 ARP消息向第一服务器与第一 PE路由器之 间的节点发送 VM 12的 I P地址或发送 VM 12的 I P地址和 MAC地址。  Step 409: The first PE router sends an IP address of the VM 12 or an IP address and a MAC address of the VM 12 to the node between the first server and the first PE router through an ARP message.
在本步骤中, 具体可以采用如下具体实施方式: 第一 PE路由器触发 ARP 消息, 该 ARP消息中携带着 VM12的 IP地址。 第一 PE路由器向第一站点中广 播上述触发的 ARP消息, 用于通知第一站点中的节点释放属于第一服务器的 VM12的相关资源, 例如, 计算资源或存储资源等。 在第一站点中广播该 ARP 消息, 则第一服务器与第一 PE路由器之间的节点均会接收到该 ARP消息。 在 上述过程中, 第一 PE路由器还可以先根据 VM12的 IP地址查询第一 PE路由器 自身存储的 MAC地址和 IP地址的映射表, 得到 VM12的 MAC地址。 然后, 第 一 PE路由器触发 ARP消息, 该 ARP消息中携带着 VM 12的 IP地址和 MAC地 址。 还 ARP消息可以用于更新第一站点内各个节点的 MAC地址转发表。 在第 一站点中广播该 ARP消息, 则第一服务器与第一 PE路由器之间的节点均会接 收到该 ARP消息。 In this step, the specific implementation manner is as follows: The first PE router triggers an ARP message, where the ARP message carries the IP address of the VM12. The first PE router broadcasts the triggered ARP message to the first station, to notify the node in the first station to release the first server. VM12 related resources, such as computing resources or storage resources. When the ARP message is broadcast in the first station, the node between the first server and the first PE router receives the ARP message. In the above process, the first PE router may first query the mapping table of the MAC address and the IP address stored by the first PE router according to the IP address of the VM 12, and obtain the MAC address of the VM 12. Then, the first PE router triggers an ARP message, where the ARP message carries the IP address and MAC address of the VM 12. The ARP message can also be used to update the MAC address forwarding table of each node in the first site. When the ARP message is broadcast in the first station, the node between the first server and the first PE router receives the ARP message.
在本步骤中, 在采用上述两种实施方式中的任何一种方式的情况下, 上述 方式中采用的 ARP消息可以通过对现有的 ARP消息的 OP进行拓展来实现。具 体扩展方法为: 为 ARP消息的 OP赋予一个设定的值, 通过该设定的值指示释 放属于第一服务器的并且地址与 ARP消息所携带的 IP地址相同的 VM的相关 资源。 其中, 相关资源可以包括计算资源或存储资源等等。  In this step, in the case of adopting any one of the foregoing two implementation manners, the ARP message used in the foregoing manner may be implemented by expanding an OP of an existing ARP message. The specific extension method is: assigning a set value to the OP of the ARP message, and indicating the related resources of the VM belonging to the first server and having the same address as the IP address carried by the ARP message. The related resources may include computing resources or storage resources, and the like.
步骤 410: 第一服务器与第一 PE路由器之间的节点学习 VM 12的 MAC地址 并更新 MAC地址转发表。  Step 410: The node between the first server and the first PE router learns the MAC address of the VM 12 and updates the MAC address forwarding table.
在本步骤中, 第一站点内的所有节点重新学习 VM12的 MAC地址, 并根据 学习到的 VM12的 MAC地址更新各自的 MAC地址转发表。  In this step, all nodes in the first station relearn the MAC address of the VM12, and update the respective MAC address forwarding table according to the MAC address of the learned VM12.
步骤 411:第一服务器接收第一服务器与第一 PE路由器之间的节点转发的 ARP消息, 获取 VM12的 IP地址, 或获取 VM12的 IP地址和 MAC地址。  Step 411: The first server receives an ARP message forwarded by a node between the first server and the first PE router, obtains an IP address of the VM12, or obtains an IP address and a MAC address of the VM12.
步骤 412: 第一服务器释放第一服务器的 VM12的相关资源。  Step 412: The first server releases related resources of the VM12 of the first server.
在本步骤中,第一服务器在收到步骤 409中第一 PE路由器触发的 ARP消息 后, 释放属于第一服务器的 VM12的相关资源。 其中, 相关资源可以包括计算 资源或存储资源等等。  In this step, after receiving the ARP message triggered by the first PE router in step 409, the first server releases the related resources of the VM12 belonging to the first server. The related resources may include computing resources or storage resources, and the like.
在步骤 407之后, 还可以执行如下的步骤 413。 其中, 步骤 408至步骤 412 需按照上述顺序执行, 步骤 413可以在步骤 408至步骤 412之前、 之后或同时 执行。 步骤 413: 第二 PE路由器更新 IP路由表。 After step 407, the following step 413 can also be performed. Steps 408 to 412 are performed in the above order, and step 413 can be performed before, after or simultaneously from step 408 to step 412. Step 413: The second PE router updates the IP routing table.
在本步骤中, 第二 PE路由器接收到步骤 407中的路由协议报文后, 根据第 三服务器的 VM12的 IP地址, 查询第二 PE路由器自身存储的 IP路由表。 由于 第三服务器的 VM12的 IP地址与第一服务器的 VM12的 IP地址相同, 经查询, 第二 PE路由器发现该表中已经存在由该 VM12的 IP地址和第一 PE路由器的 IP 地址组成的第一服务器的 VM12的 IP地址路由信息。根据上述查询结果, 由于 VM 12的 I P地址对应的不是第二 PE路由器的本地地址, 即对应的不是第二 PE 路由器的 IP地址, 第二 PE路由器获知该 VM12不是从本地第二站点迁移出去 的。 因此, 第二 PE路由器仅根据步骤 407的路由协议报文中携带的更新的第 三服务器的 VM12的 IP地址路由信息更新 IP路由表, 将该表中的 VM12的 IP地 址与第三 PE路由器的 IP地址组成新的 IP地址路由信息。 参见表 16, 表 16为更 新后的第一 PE路由器的 IP路由表。 其中, 由步骤 407中的路由协议报文触发 第二 PE路由器对 VM 12的 I P地址与步骤 407中设定的 PW标签进行绑定, 参见 表 16 , VM 12的 I P地址绑定的 P W标签为 X54321。  In this step, after receiving the routing protocol packet in step 407, the second PE router queries the IP routing table stored by the second PE router according to the IP address of the VM12 of the third server. Since the IP address of the VM12 of the third server is the same as the IP address of the VM12 of the first server, after querying, the second PE router finds that the IP address of the VM12 and the IP address of the first PE router already exist in the table. The IP address routing information of a server's VM12. According to the above query result, since the IP address of the VM 12 does not correspond to the local address of the second PE router, that is, the IP address of the second PE router is not corresponding, the second PE router learns that the VM 12 is not migrated from the local second site. . Therefore, the second PE router only updates the IP routing table according to the IP address routing information of the updated VM12 of the third server carried in the routing protocol message in step 407, and the IP address of the VM12 in the table is related to the third PE router. The IP address constitutes a new IP address routing information. See Table 16. Table 16 shows the IP routing table of the updated first PE router. The IP address of the VM 12 is bound to the PW label set in step 407 by the second PE router by the routing protocol packet in step 407. For example, the PW label bound to the IP address of the VM 12 is X54321.
并且, 在步骤 413中, 由于第二 PE路由器获知该 VM12不是从本地第二站 点迁移出去的, 因此, 在步骤 413之后, 第二 PE路由器并不触发携带 VM12 的 IP地址或携带 VM12的 IP地址和 MAC地址的 ARP消息。  Moreover, in step 413, since the second PE router learns that the VM 12 is not migrated from the local second site, after the step 413, the second PE router does not trigger the IP address carrying the VM12 or the IP address carrying the VM12. ARP message with MAC address.
PE路由器的 IP路由表  PE router IP routing table
Figure imgf000029_0001
在上述本发明实施例三的具体过程中, 如果不存在第一服务器与第一控 制节点之间的节点和第三服务器与第三控制节点之间的节点, 则步骤 403和 404可以省略, 由第三服务器通过 ARP消息直接向第三 PE路由器发送第三 服务器的 VM12的 MAC地址和 IP地址即可。
Figure imgf000029_0001
In the foregoing specific process of the third embodiment of the present invention, if there is no node between the first server and the first control node and a node between the third server and the third control node, steps 403 and 404 may be omitted, by The third server sends the MAC address and IP address of the VM12 of the third server directly to the third PE router through the ARP message.
采用上述 VM迁移方法, 将 VM12从第一站点中的第一服务器迁移到第 三站点中的第三服务器。 以第二站点的第二服务器中的 VM21与该 VM12通 信为例。  Using the VM migration method described above, the VM 12 is migrated from the first server in the first site to the third server in the third site. Take the VM21 in the second server of the second site and the VM12 as an example.
在 VM12迁移之前, VM12位于第一站点中的第一服务器, VM21与 VM12 的通信过程如下。  Before VM12 migration, VM12 is located in the first server in the first site, and the communication process between VM21 and VM12 is as follows.
步骤 4a: 第二 PE路由器获取来自 VM21的 IP报文。  Step 4a: The second PE router obtains an IP packet from the VM21.
在本步骤中, 首先, VM21向第二 PE路由器发出携带有 VM12的 IP地 址的 ARP消息, 通过该消息向第二 PE路由器请求 VM12的 MAC地址。 然 后, 第二 PE路由器作为 ARP代理, 查询第二 PE路由器自身的 MAC地址 和 IP地址的映射表, 参见表 13。 根据第二 PE路由器的 MAC地址和 IP地 址的映射表, 第二 PE路由器将第二 PE路由器的 MAC地址作为 VM12的 MAC地址回复给 VM21。 然后, VM21向第二 PE路由器发送 IP报文, 该 IP 报文的目的 IP地址为 VM12的 IP地址。 具体地, 该 IP报文被承载于 ETH 报文上发送给第二 PE路由器, 该 ETH报文的目的 MAC地址为第二 PE路 由器的 MAC地址。  In this step, first, the VM 21 sends an ARP message carrying the IP address of the VM 12 to the second PE router, and requests the MAC address of the VM 12 from the second PE router through the message. Then, the second PE router acts as an ARP proxy, and queries the mapping table of the MAC address and IP address of the second PE router itself, as shown in Table 13. According to the mapping table of the MAC address and the IP address of the second PE router, the second PE router replies the MAC address of the second PE router to the VM 21 as the MAC address of the VM 12. Then, the VM 21 sends an IP packet to the second PE router, and the destination IP address of the IP packet is the IP address of the VM 12. Specifically, the IP packet is sent to the second PE router, and the destination MAC address of the ETH packet is the MAC address of the second PE router.
步骤 4b: 第二 PE路由器将 IP报文封装入通往第一 PE路由器的 MPLS 隧道。  Step 4b: The second PE router encapsulates the IP packet into the MPLS tunnel to the first PE router.
在本步骤中, 第二 PE路由器收到步骤 4a中 IP报文, 该 IP报文的目的 IP地址为 VM12的 IP地址。 第二 PE路由器查询第二 PE路由器自身的 IP 路由表, 参见表 11。 根据 VM12的 IP地址, 查询得到下一跳为第一 PE路由 器。 则第二 PE路由器将该 IP报文添加 PW头后, 封装入通往第一 PE路由 器的 MPLS隧道。 具体地, 该 MPLS隧道的目的地址为第一 PE路由器的 IP 地址, 源地址为第二 PE路由器的 IP地址。 In this step, the second PE router receives the IP packet in step 4a, and the destination IP address of the IP packet is the IP address of the VM 12. The second PE router queries the IP routing table of the second PE router itself, as shown in Table 11. According to the IP address of the VM12, the query obtains the next hop as the first PE router. Then, the second PE router adds the IP packet to the PW header and encapsulates the MPLS tunnel to the first PE router. Specifically, the destination address of the MPLS tunnel is the IP address of the first PE router. Address, the source address is the IP address of the second PE router.
步骤 4c: 第一 PE路由器获取承载于 MPLS隧道的 IP报文。  Step 4c: The first PE router obtains an IP packet that is carried in the MPLS tunnel.
在本步骤中,第一 PE路由器接收来自第二 PE路由器的上述封装后的报 文, 去除 MPLS隧道封装, 得到 IP报文。 其中, 得到的该 IP报文的目的 IP 地址为 VM12的 IP地址。  In this step, the first PE router receives the encapsulated packet from the second PE router, removes the MPLS tunnel encapsulation, and obtains an IP packet. The destination IP address of the obtained IP packet is the IP address of the VM12.
步骤 4d: 第一 PE路由器向第一服务器中的 VM12发送 IP报文。  Step 4d: The first PE router sends an IP packet to the VM12 in the first server.
在本步骤中,第一 PE路由器根据得到的 IP报文的目的 IP地址为 VM12 的 IP地址, 查询第一 PE路由器自身的 IP路由表, 参见表 12。 第一 PE路 由器查询得到下一跳为本地,则第一 PE路由器在第一站点内发送该 IP报文, 该 IP报文的目的 IP地址为 VM12的 IP地址。位于第一站点内第一服务器中 的 VM12收到该 IP报文。  In this step, the first PE router queries the IP routing table of the first PE router according to the IP address of the obtained IP packet, and refers to Table 12. The first PE router sends the IP packet in the first site, and the destination IP address of the IP packet is the IP address of the VM12. The VM 12 located in the first server in the first site receives the IP packet.
上述步骤 4a至步骤 4d为 VM12迁移之前的数据传递过程, 在上述步骤 The above steps 4a to 4d are the data transfer process before the VM12 migration, in the above steps.
407之前执行。 在执行了上述步骤 407至步骤 409之后, VM12发生迁移。 在 VM12迁移之后, VM12位于第三站点中的第三服务器,此时 VM21与 VM12 的通信过程如下。 Executed before 407. After the above steps 407 to 409 are performed, the VM 12 is migrated. After VM12 migration, VM12 is located in the third server in the third site, and the communication process between VM21 and VM12 is as follows.
在 VM12迁移后,第一 PE路由器的数据传输过程包括如下步骤 4e至步 骤 4h。  After the VM12 is migrated, the data transmission process of the first PE router includes the following steps 4e to 4h.
步骤 4e: 第一 PE路由器获取承载于 MPLS隧道的 IP报文。  Step 4e: The first PE router obtains an IP packet that is carried in the MPLS tunnel.
在本步骤中, 在第一 PE路由器收到步骤 407的路由协议报文后, 如果 该第一 PE路由器还收到承载于以第一 PE路由器的 IP地址的 MPLS隧道并 且目的 IP地址为 VM12的 IP地址的 IP报文, 则按照下述步骤执行。  In this step, after the first PE router receives the routing protocol packet of step 407, if the first PE router also receives the MPLS tunnel carried by the IP address of the first PE router and the destination IP address is VM12. For IP packets with IP addresses, follow the steps below.
步骤 4f: 第一 PE路由器将 IP报文封装入通往第三 PE路由器的 MPLS 隧道。  Step 4f: The first PE router encapsulates the IP packet into the MPLS tunnel to the third PE router.
在本步骤中, 第一 PE路由器根据 VM12的 IP地址查询第一 PE路由器 自身的 IP路由表, 参见表 16, 查询得到 VM12的 IP地址对应的下一跳地址 为第三 PE路由器的 IP地址, 并且查询得到设定的 PW标签, 即 x54321。 然后, 第一 PE路由器将目的 IP地址为 VM12的 IP地址的 IP报文添加与上 述设定的 PW标签相同的 PW头后, 封装入通往第三 PE路由器的 MPLS隧 道, 该 MPLS隧道的目的地址为第三 PE路由器的 IP地址, 源地址为第一 PE路由器的 IP地址。在第二 PE路由器收到路由协议报文晚于第一 PE路由 器的情况下, 通过执行本步骤, 能够保证在 VM 12发生迁移之后, 数据传输 过程不丟包, 保证数据传输的正确性。 In this step, the first PE router queries the IP routing table of the first PE router according to the IP address of the VM12. Referring to Table 16, the next hop address corresponding to the IP address of the VM12 is obtained as the IP address of the third PE router. And the query gets the set PW label, ie x54321. Then, the first PE router adds the PW header with the same IP address as the IP address of the VM12 whose destination IP address is the IP address of the VM12, and then encapsulates the MPLS tunnel to the third PE router. The purpose of the MPLS tunnel is The address is the IP address of the third PE router, and the source address is the IP address of the first PE router. After the second PE router receives the routing protocol packet later than the first PE router, by performing this step, it can be ensured that after the VM 12 is migrated, the data transmission process does not drop packets, and the data transmission is correct.
步骤 4g: 第三 PE路由器获取承载于 MPLS隧道的 IP报文。  Step 4g: The third PE router obtains the IP packet carried in the MPLS tunnel.
在本步骤中,第三 PE路由器接收来自第一 PE路由器的上述封装后的报 文, 去除 MPLS隧道封装, 得到 IP报文。 其中, 得到的 IP报文的目的 IP地 址为 VM12的 IP地址。  In this step, the third PE router receives the encapsulated packet from the first PE router, removes the MPLS tunnel encapsulation, and obtains an IP packet. The destination IP address of the obtained IP packet is the IP address of the VM12.
步骤 4h: 第三 PE路由器向第三服务器中的 VM12发送 IP报文。  Step 4h: The third PE router sends an IP packet to the VM12 in the third server.
在本步骤中,第三 PE路由器根据得到的 IP报文的目的 IP地址为 VM12 的 IP地址, 查询第三 PE路由器自身的 IP路由表, 参见表 14。 第三 PE路 由器查询得到下一跳为本地,则第三 PE路由器在第三站点内发送该 IP报文, 该 IP报文的目的 IP地址为 VM12的 IP地址。位于第三站点内的第三服务器 中的 VM12收到该 IP报文。  In this step, the third PE router queries the IP routing table of the third PE router according to the IP address of the obtained IP packet, and refers to Table 14. The third PE router queries the next hop to be local, and the third PE router sends the IP packet in the third station, and the destination IP address of the IP packet is the IP address of the VM12. The VM 12 in the third server located in the third site receives the IP packet.
在 VM12迁移后, 第二 PE路由器的数据传输过程包括如下步骤 4i至步 骤 4k。 步骤 4i至步骤 4k可以在步骤 4e至步骤 4h之前、 之后或同时执行。  After the VM12 is migrated, the data transmission process of the second PE router includes the following steps 4i to 4k. Steps 4i through 4k can be performed before, after or simultaneously with steps 4e through 4h.
步骤 4i: 第二 PE路由器将 IP报文封装入通往第三 PE路由器的 MPLS 隧道。  Step 4i: The second PE router encapsulates the IP packet into the MPLS tunnel to the third PE router.
在本步骤中, 在第二 PE路由器收到步骤 407的路由协议报文后, 如果 第二 PE路由器收到来自自身站点的目的 IP地址为 VM12的 IP地址的 IP报 文, 则第二 PE路由器根据 VM12的 IP地址查询第二 PE路由器自身的 IP 路由表, 参见表 15。 根据 VM12的 IP地址, 查询得到 VM12的 IP地址对应 的下一跳地址为第三 PE路由器的 IP地址, 并且查询得到设定的 PW标签, 即 x54321。。 然后, 第一 PE路由器将该目的 IP地址为 VM12的 IP地址的 IP报文添加与上述设定的 PW标签相同的 PW头后, 封装入通往第三 PE路 由器的 MPLS隧道, 该 MPLS隧道的目的地址为第三 PE路由器的 IP地址, 源地址为第一 PE路由器的 IP地址。 采用本步骤, 第二 PE路由器直接将待 发送给 VM12的 IP报文转发给第三 PE路由器。 In this step, after the second PE router receives the routing protocol packet of step 407, if the second PE router receives the IP packet from the IP address of the VM12 whose destination IP address is the VM12, the second PE router The IP routing table of the second PE router itself is queried according to the IP address of the VM12, as shown in Table 15. According to the IP address of the VM12, the query obtains the next hop address corresponding to the IP address of the VM12 as the IP address of the third PE router, and queries the obtained PW label, that is, x54321. . Then, the first PE router sets the destination IP address to the IP address of the VM12. After the IP packet is added to the PW header of the PW label, the MPLS tunnel is encapsulated in the MPLS tunnel to the third PE router. The destination address of the MPLS tunnel is the IP address of the third PE router, and the source address is the first PE. The IP address of the router. With this step, the second PE router directly forwards the IP packet to be sent to the VM 12 to the third PE router.
步骤 4j: 第三 PE路由器获取承载于 MPLS隧道的 IP报文。  Step 4j: The third PE router obtains an IP packet that is carried in the MPLS tunnel.
在本步骤中,第三 PE路由器接收来自第二 PE路由器的上述封装后的报 文, 去除 MPLS隧道封装, 得到 IP报文。 其中, 得到的 IP报文的目的 IP地 址为 VM12的 IP地址。  In this step, the third PE router receives the encapsulated packet from the second PE router, removes the MPLS tunnel encapsulation, and obtains an IP packet. The destination IP address of the obtained IP packet is the IP address of the VM12.
步骤 4k: 第三 PE路由器向第三服务器中的 VM12发送 IP报文。  Step 4k: The third PE router sends an IP packet to the VM12 in the third server.
本步骤与上述步骤 4h相同, 在此不再赘述。  This step is the same as step 4h above, and details are not described herein again.
在本发明实施例的上述技术方案中,以基于 MPLS的 DC互联网络为例, 其中, 各个 PE路由器节点之间将以太网帧承载到 DC互联网络的 MPLS隧 道上进行传输, 参见步骤 407。 一种更加优化的技术方案是, 各个 PE路由 器节点之间将 IP报文直接承载在 DC互联网络的 IP隧道之上, 该优化的技 术方案能够进一步降低 MAC表项数量。  In the above technical solution of the embodiment of the present invention, an MPLS-based DC interconnection network is taken as an example, wherein each PE router node carries an Ethernet frame to an MPLS tunnel of the DC interconnection network for transmission, as shown in step 407. A more optimized technical solution is that the IP packets of the PEs are directly carried on the IP tunnel of the DC internet. The optimized technical solution can further reduce the number of MAC entries.
在本发明实施例三中, 在 VM迁移控制过程中, 在 PE路由器设置 ARP 代理功能, 因此减少了站点出口节点和站点内部的交换机的 MAC表项数量。 并且, 站点内的交互过程采用 ARP协议, 站点间的交互过程采用路由协议。 因此,各个 PE路由器与该 PE路由器自身所在的站点内的其它节点进行交互 时, 采用 ARP协议; 作为源 PE路由器的第一 PE路由器与作为目标 PE路 由器的第三 PE路由器进行交互时,采用路由协议; 由第一 PE路由器与第三 PE 路由器完成 ARP 消息与路由协议报文之间的相互触发和转化。 从而将 ARP协议的报文限制在各个站点内部, 避免了将 ARP协议发到 DC互联网 络中。 因为一个 ARP消息只能针对一个地址, 而一个路由协议报文可以包括 多个地址, 因此, 通过在 DC互联网络中采用路由协议报文替代 ARP消息, 避免了在 DC互联网络中广播 ARP消息带来的广播风暴,从而节省了控制信 令占用的带宽。 In the third embodiment of the present invention, in the VM migration control process, the ARP proxy function is set on the PE router, thereby reducing the number of MAC entries of the site egress node and the switch inside the site. Moreover, the interaction process in the site adopts the ARP protocol, and the interaction process between the sites adopts a routing protocol. Therefore, when each PE router interacts with other nodes in the site where the PE router is located, the ARP protocol is adopted; when the first PE router that is the source PE router interacts with the third PE router that is the target PE router, the route is adopted. Protocol: The first PE router and the third PE router complete the mutual triggering and conversion between the ARP message and the routing protocol message. Therefore, the ARP protocol packet is restricted to each site, and the ARP protocol is prevented from being sent to the DC internet. Because an ARP message can only be used for one address, and one routing protocol message can include multiple addresses. Therefore, by using a routing protocol message instead of an ARP message in the DC internet, the ARP message band is avoided in the DC internet. Broadcast storms, saving control letters Let the occupied bandwidth.
在上述本发明实施例二和本发明实施例三的技术方案的基础上,具体地, 上述两个实施例中的 PE路由器可以设置在服务器上, CE路由器可以设置在 该服务器的 VM上, 即, 采用服务器作为 PE路由器, 采用服务器上的 VM 作为 CE路由器。 采用上述设置, 服务器作为 PE路由器将直接支持路由协 议(如 BGP )。 虚拟机迁移的具体过程与上述本发明实施例二和本发明实施 例三中的过程相同, 只是本发明实施例二和本发明实施例三中的 PE路由器 进行的操作由服务器完成, CE路由器进行的操作由服务器上的 VM完成,具 体地, 由于 CE路由器设置在服务器的 VM上, 因此不存在服务器与 CE路 由器之间的节点, 上述本发明实施例二或实施例三的具体过程中不包括步骤 303、 步骤 304、 步骤 403和步骤 404, 由第三服务器通过 ARP消息直接向 第三 CE路由器或第三 PE路由器发送第三服务器的 VM12的 MAC地址和 IP 地址即可。 采用此种设置, PE路由器不属于 PE路由器之间的运营商网络, 因此站点对 PE路由器之间的运营商网络彻底透明,即 PE路由器之间的运营 商网络边缘不必获知站点内部的 MAC地址路由。  On the basis of the foregoing technical solutions of the second embodiment of the present invention and the third embodiment of the present invention, specifically, the PE routers in the foregoing two embodiments may be disposed on a server, and the CE router may be disposed on the VM of the server, that is, The server is used as the PE router, and the VM on the server is used as the CE router. With the above settings, the server as a PE router will directly support routing protocols (such as BGP). The specific process of the virtual machine migration is the same as the process in the second embodiment of the present invention and the third embodiment of the present invention, except that the operation performed by the PE router in the second embodiment of the present invention and the third embodiment of the present invention is performed by the server, and the CE router performs the operation. The operation is performed by the VM on the server. Specifically, since the CE router is set on the VM of the server, there is no node between the server and the CE router. The specific process in the second embodiment or the third embodiment of the present invention is not included in the foregoing process. Step 303, step 304, step 403 and step 404, the third server directly sends the MAC address and IP address of the VM12 of the third server to the third CE router or the third PE router through the ARP message. With this configuration, the PE router does not belong to the carrier network between the PE routers. Therefore, the site is completely transparent to the carrier network between the PE routers. That is, the edge of the carrier network between the PE routers does not need to know the MAC address routing inside the site. .
图 5为本发明实施例四的虚拟机迁移系统的结构示意图。 如图 5所示, 该系统中至少包括: 目标服务器 51、 目标控制节点 52、 源控制节点 53和源 服务器 54。  FIG. 5 is a schematic structural diagram of a virtual machine migration system according to Embodiment 4 of the present invention. As shown in FIG. 5, the system includes at least: a target server 51, a target control node 52, a source control node 53, and a source server 54.
其中, 目标服务器 51用于启动待迁移 VM并通过第一 ARP消息向目标 控制节点 52发送待迁移 VM的 MAC地址和 IP地址。  The target server 51 is configured to start the VM to be migrated and send the MAC address and IP address of the VM to be migrated to the target control node 52 through the first ARP message.
目标控制节点 52用于根据第一 ARP消息更新 IP路由表,通过第一路由 协议报文向源控制节点 53发送更新后待迁移 VM的 IP地址路由信息, 更新 后待迁移 VM的 IP地址路由信息包括待迁移 VM的 IP地址和目标控制节点 52的 IP地址。  The target control node 52 is configured to update the IP routing table according to the first ARP message, send the IP address routing information of the VM to be migrated to the source control node 53 through the first routing protocol message, and update the IP address routing information of the VM to be migrated after the update. The IP address of the VM to be migrated and the IP address of the target control node 52 are included.
源控制节点 53用于根据第一路由协议报文中的所述待迁移 VM的 IP地 址和目标控制节点 52的 IP地址更新 IP路由表, 通过第二 ARP消息向源服 务器 54发送待迁移 VM的 IP地址或 IP地址和 MAC地址; The source control node 53 is configured to update the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node 52 in the first routing protocol message, and serve the source through the second ARP message. The server 54 sends an IP address or an IP address and a MAC address of the VM to be migrated;
源服务器 54用于根据第二 ARP消息释放待迁移 VM的相关资源。  The source server 54 is configured to release related resources of the VM to be migrated according to the second ARP message.
在上述技术方案的基础上, 源控制节点 53还用于通过第三 ARP消息从 源服务器 54获取待迁移 VM的 MAC地址和 IP地址的映射关系, 通过第二 路由协议报文向目标控制节点 52发送待迁移 VM的 IP地址路由信息, IP地 址路由信息包括待迁移 VM的 IP地址和源控制节点 53的 IP地址。  On the basis of the foregoing technical solution, the source control node 53 is further configured to obtain, by using the third ARP message, the mapping relationship between the MAC address and the IP address of the VM to be migrated from the source server 54 to the target control node 52 through the second routing protocol message. The IP address routing information of the VM to be migrated is sent, and the IP address routing information includes an IP address of the VM to be migrated and an IP address of the source control node 53.
在上述技术方案的基础上, 该系统还包括: 目标服务器与目标控制节点 之间的节点 55、 源服务器与源控制节点之间的节点 56。 其中, 目标服务器 51具体用于通过第一 ARP消息向目标服务器与目标控制节点之间的节点 55 发送待迁移 VM的 MAC地址和 IP地址。 目标服务器与目标控制节点之间的 节点 55具体用于学习待迁移 VM的 MAC地址和 IP地址并更新 MAC地址转 发表, 向目标控制节点 52转发第一 ARP消息。 源控制节点 53具体用于通 过第二 ARP消息向源服务器与源控制节点之间的节点 56发送待迁移 VM的 IP地址或 IP地址和 MAC地址。 源服务器与源控制节点之间的节点 56具体 用于学习待迁移 VM的 MAC地址并更新 MAC地址转发表, 向源服务器 54 转发第二 ARP消息。  Based on the above technical solution, the system further includes: a node 55 between the target server and the target control node, and a node 56 between the source server and the source control node. The target server 51 is specifically configured to send, by using the first ARP message, the MAC address and the IP address of the VM to be migrated to the node 55 between the target server and the target control node. The node 55 between the target server and the target control node is specifically configured to learn the MAC address and IP address of the VM to be migrated and update the MAC address forwarding, and forward the first ARP message to the target control node 52. The source control node 53 is specifically configured to send, by using the second ARP message, the IP address or IP address and MAC address of the VM to be migrated to the node 56 between the source server and the source control node. The node 56 between the source server and the source control node is specifically configured to learn the MAC address of the VM to be migrated and update the MAC address forwarding table, and forward the second ARP message to the source server 54.
在上述技术方案的基础上, 该系统还包括: 其它控制节点 57。 其中, 目 标控制节点 52还用于在根据第一 ARP消息更新 IP路由表之后,通过第一路 由协议报文向其它控制节点 57发送更新后待迁移 VM的 IP地址路由信息。 其它控制节点 57用于根据第一路由协议报文中的待迁移 VM的 IP地址和目 标控制节点 52的 IP地址更新 IP路由表。  Based on the above technical solution, the system further includes: other control nodes 57. The target control node 52 is further configured to send, after the IP routing table is updated according to the first ARP message, the IP address routing information of the updated VM to be migrated to the other control node 57 by using the first routing protocol message. The other control node 57 is configured to update the IP routing table according to the IP address of the VM to be migrated in the first routing protocol message and the IP address of the target control node 52.
在上述技术方案的基础上, 源控制节点 53或其它控制节点 57还用于在 接收来自目标控制节点 52的第一路由协议报文之后, 当获取到报文目的 IP 地址为待迁移 VM的 IP地址的 IP报文时,向目标控制节点 52发送 IP报文。 目标控制节点 52还用于向目标服务器 51发送 IP报文。  On the basis of the foregoing technical solution, the source control node 53 or other control node 57 is further configured to: after receiving the first routing protocol packet from the target control node 52, obtain the IP address of the packet as the IP address of the VM to be migrated. When the IP packet of the address is sent, the IP packet is sent to the target control node 52. The target control node 52 is also used to send an IP message to the target server 51.
在上述技术方案的基础上, 上述目标控制节点 52、 源控制节点 53、 其 它控制节点 57均为 CE路由器。 源控制节点 53或其它控制节点 57具体用 于将 IP报文封装入通往目标 CE路由器的 IP隧道发送给目标 CE路由器。 Based on the above technical solution, the target control node 52, the source control node 53, and the like Its control node 57 is a CE router. The source control node 53 or other control node 57 is specifically configured to encapsulate the IP packet into the IP tunnel to the target CE router and send it to the target CE router.
或者, 在上述技术方案的基础上, 目标控制节点 52、 源控制节点 53、 其它控制节点 57均为 PE路由器。 第一路由协议报文中还包括: PW标签。 源控制节点 53还用于绑定待迁移 VM的 IP地址和 PW标签。源控制节点 53 或其它控制节点 57具体用于为 IP报文添加与 PW标签相同的 PW头后, 封 装入通往目标 PE路由器的 MPLS隧道发送给目标 PE路由器。  Alternatively, on the basis of the foregoing technical solutions, the target control node 52, the source control node 53, and other control nodes 57 are all PE routers. The first routing protocol packet further includes: a PW label. The source control node 53 is also used to bind the IP address and PW label of the VM to be migrated. The source control node 53 or other control node 57 is specifically configured to add the same PW header to the IP packet as the PW label, and then encapsulate the MPLS tunnel to the target PE router and send it to the target PE router.
在本发明实施例四中, 在 VM迁移系统中, 在各个站点内的交互过程采 用 ARP协议, 各站点之间的交互过程采用路由协议, 由目标控制节点 52和 源控制节点 53对完成 ARP消息与路由协议报文之间的相互触发和转化。 从 而将 ARP协议的报文限制在各个站点内部, 避免了将 ARP协议发到各个站 点之间的 DC互联网络中。通过在 DC互联网络中采用路由协议报文替代 ARP 消息, 避免了在 DC互联网络中广播 ARP消息带来的广播风暴, 从而节省了 控制信令占用的带宽。  In the fourth embodiment of the present invention, in the VM migration system, the interaction process in each site adopts the ARP protocol, and the interaction process between the sites adopts a routing protocol, and the target control node 52 and the source control node 53 complete the ARP message. Mutual triggering and conversion with routing protocol messages. Therefore, the ARP protocol packets are restricted to each site, and the ARP protocol is prevented from being sent to the DC internet between sites. By replacing the ARP message with the routing protocol packet in the DC network, the broadcast storm caused by the broadcast of the ARP message in the DC Internet is avoided, which saves the bandwidth occupied by the control signaling.
图 6为本发明实施例五的目标控制节点 52的结构示意图。 如图 6所示, 该目标控制节点 52中至少包括: ARP模块 521、 处理模块 522、 路由协议 模块 523。  FIG. 6 is a schematic structural diagram of a target control node 52 according to Embodiment 5 of the present invention. As shown in FIG. 6, the target control node 52 includes at least: an ARP module 521, a processing module 522, and a routing protocol module 523.
其中, ARP模块 521用于通过第一 ARP消息从目标服务器 51获取待迁 移 VM的 MAC地址和 IP地址。 处理模块 522用于根据第一 ARP消息更新 IP路由表。 路由协议模块 523用于通过第一路由协议报文向源控制节点 53 发送更新后待迁移 VM的 IP地址路由信息, 更新后待迁移 VM的 IP地址路 由信息包括待迁移 VM的 IP地址和目标控制节点 52的 IP地址。  The ARP module 521 is configured to obtain, by using the first ARP message, the MAC address and the IP address of the VM to be migrated from the target server 51. The processing module 522 is configured to update the IP routing table according to the first ARP message. The routing protocol module 523 is configured to send the IP address routing information of the VM to be migrated to the source control node 53 through the first routing protocol message, and the IP address routing information of the VM to be migrated after the update includes the IP address and target control of the VM to be migrated. The IP address of node 52.
在上述技术方案的基础上, ARP模块 521具体用于从目标服务器 51与 目标控制节点 52之间的节点获取转发自目标服务器 51的第一 ARP消息。  Based on the foregoing technical solution, the ARP module 521 is specifically configured to acquire a first ARP message forwarded from the target server 51 from a node between the target server 51 and the target control node 52.
在上述技术方案的基础上, 路由协议模块 523还用于通过第一路由协议 报文向其它控制节点 57发送更新后待迁移 VM的 IP地址路由信息, 更新后 待迁移 VM的 IP地址路由信息包括待迁移 VM的 IP地址和目标控制节点 52 的 IP地址, 以使其它控制节点 57根据第一路由协议报文中的待迁移 VM的 IP地址和目标控制节点 52的 IP地址更新 IP路由表。 On the basis of the foregoing technical solution, the routing protocol module 523 is further configured to send, by using the first routing protocol packet, the IP address routing information of the VM to be migrated after being updated to the other control node 57, after the update. The IP address routing information of the VM to be migrated includes the IP address of the VM to be migrated and the IP address of the target control node 52, so that the other control node 57 according to the IP address of the VM to be migrated and the target control node 52 in the first routing protocol message. The IP address updates the IP routing table.
在上述技术方案的基础上, 目标控制节点 52、 源控制节点 53和其它控 制节点 57均为 CE路由器。  Based on the above technical solutions, the target control node 52, the source control node 53, and other control nodes 57 are all CE routers.
或者, 在上述技术方案的基础上, 目标控制节点 52、 源控制节点 53和 其它控制节点 57均为 PE路由器。 第一路由协议报文中还包括: PW标签。  Alternatively, on the basis of the above technical solutions, the target control node 52, the source control node 53 and the other control nodes 57 are all PE routers. The first routing protocol packet further includes: a PW label.
在本发明实施例五中, 目标控制节点 52对 ARP消息与路由协议报文进 行相互触发和转化, 以在目标控制节点 52 对应的在站点内的交互过程采用 ARP协议, 在各个站点之间的交互过程采用路由协议, 从而将 ARP协议的 报文限制在各个站点内部,避免了将 ARP协议发到各个站点之间的 DC互联 网络中。 通过在 DC互联网络中采用路由协议报文替代 ARP消息, 避免了在 DC互联网络中广播 ARP消息带来的广播风暴, 从而节省了控制信令占用的 带宽。  In the fifth embodiment of the present invention, the target control node 52 mutually triggers and translates the ARP message and the routing protocol message, so that the interaction process in the site corresponding to the target control node 52 adopts the ARP protocol, between the sites. The interaction process uses a routing protocol to limit the ARP packets to each site. This prevents the ARP protocol from being sent to the DC Internet between sites. By replacing the ARP message with the routing protocol packet in the DC network, the broadcast storm caused by the broadcast of the ARP message in the DC network is avoided, which saves the bandwidth occupied by the control signaling.
图 7为本发明实施例六的源控制节点 53的结构示意图。 如图 7所示, 该源控制节点 53中至少包括: 路由协议模块 531、 处理模块 532、 ARP模 块 533。  FIG. 7 is a schematic structural diagram of a source control node 53 according to Embodiment 6 of the present invention. As shown in FIG. 7, the source control node 53 includes at least: a routing protocol module 531, a processing module 532, and an ARP module 533.
其中,路由协议模块 531用于通过第一路由协议报文从目标控制节点 52 获取更新后待迁移 VM的 IP地址路由信息, 更新后待迁移 VM的 IP地址路 由信息包括待迁移 VM的 IP地址和目标控制节点 52的 IP地址。  The routing protocol module 531 is configured to obtain, by using the first routing protocol packet, the IP address routing information of the VM to be migrated from the target control node 52, and the IP address routing information of the VM to be migrated after the update includes the IP address of the VM to be migrated. The IP address of the target control node 52.
处理模块 532用于根据第一路由协议报文中的待迁移 VM的 IP地址和目 标控制节点 52的 IP地址更新 IP路由表。  The processing module 532 is configured to update the IP routing table according to the IP address of the VM to be migrated in the first routing protocol message and the IP address of the target control node 52.
ARP模块 533用于通过第二 ARP消息向源服务器 54发送待迁移 VM的 IP地址或 IP地址和 MAC地址, 以使源服务器 54释放待迁移 VM的相关资 源。  The ARP module 533 is configured to send the IP address or IP address and MAC address of the VM to be migrated to the source server 54 through the second ARP message, so that the source server 54 releases the related resources of the VM to be migrated.
在上述技术方案的基础上, ARP模块 533具体用于通过第二 ARP消息 向源服务器 54与源控制节点 53之间的节点发送待迁移 VM的 IP地址或 IP 地址和 MAC地址, 以使源服务器 54与源控制节点 53之间的节点向源服务 器 54转发第二 ARP消息。 Based on the foregoing technical solution, the ARP module 533 is specifically configured to pass the second ARP message. Sending the IP address or IP address and MAC address of the VM to be migrated to the node between the source server 54 and the source control node 53 to cause the node between the source server 54 and the source control node 53 to forward the second ARP message to the source server 54. .
在上述技术方案的基础上, ARP模块 533具体用于向源站点中广播第二 ARP消息, 第二 ARP消息中包括待迁移 VM的 IP地址。 或者, ARP模块 533具体用于根据待迁移 VM的 IP地址查询存储的 MAC地址和 IP地址的映 射表, 获取待迁移 VM的 MAC地址, 向源站点中广播第二 ARP消息, 第二 ARP消息中包括待迁移 VM的 IP地址和 MAC地址。  Based on the foregoing technical solution, the ARP module 533 is specifically configured to broadcast a second ARP message to the source site, where the second ARP message includes an IP address of the VM to be migrated. Alternatively, the ARP module 533 is configured to query the stored MAC address and IP address mapping table according to the IP address of the VM to be migrated, obtain the MAC address of the VM to be migrated, and broadcast the second ARP message to the source site, where the second ARP message is sent. Includes the IP address and MAC address of the VM to be migrated.
在上述技术方案的基础上, 该节点中还包括: IP报文模块。 IP报文模块 用于在通过第一路由协议报文从目标控制节点 52获取更新后待迁移 VM的 IP 地址路由信息之后, 当获取到报文目的 IP地址为上述待迁移 VM的 IP地址 的 IP报文时, 向目标控制节点 52发送 IP报文, 以使目标控制节点 52向目 标服务器 51发送 IP报文。  Based on the foregoing technical solution, the node further includes: an IP packet module. The IP packet module is configured to obtain the IP address of the IP address of the VM to be migrated after the IP address of the VM to be migrated is obtained after the IP address of the VM to be migrated is obtained from the target control node 52. At the time of the message, an IP packet is sent to the target control node 52 to cause the target control node 52 to send an IP packet to the target server 51.
在上述技术方案的基础上, 源控制节点 53和目标控制节点 52均为 CE 路由器。 IP报文模块具体用于将 IP报文封装入通往目标 CE路由器的 IP隧 道发送给目标 CE路由器。  Based on the above technical solutions, the source control node 53 and the target control node 52 are both CE routers. The IP packet module is specifically configured to encapsulate the IP packet into an IP tunnel to the target CE router and send it to the target CE router.
或者, 在上述技术方案的基础上, 源控制节点 53和目标控制节点 52均 为 PE路由器。 第一路由协议报文中还包括: PW标签。 处理模块 532还用 于绑定待迁移 VM的 IP地址和 PW标签。 IP报文模块具体用于为 IP报文添 加与 PW标签相同的 PW头后, 封装入通往目标 PE路由器的 MPLS隧道发 送给目标 PE路由器。  Alternatively, based on the above technical solutions, both the source control node 53 and the target control node 52 are PE routers. The first routing protocol packet further includes: a PW label. The processing module 532 is also used to bind the IP address and PW label of the VM to be migrated. The IP packet module is specifically configured to add the same PW header to the IP packet as the PW label, and then encapsulate the MPLS tunnel to the target PE router and send it to the target PE router.
在本发明实施例六中, 源控制节点 53对 ARP消息与路由协议报文进行 相互触发和转化, 以在源控制节点 53对应的站点内的交互过程采用 ARP协 议, 在各个站点之间的交互过程采用路由协议,从而将 ARP协议的报文限制 在各个站点内部, 避免了将 ARP协议发到各个站点之间的 DC互联网络中。 通过在 DC互联网络中采用路由协议报文替代 ARP消息,避免了在 DC互联 网络中广播 ARP消息带来的广播风暴, 从而节省了控制信令占用的带宽。 需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描 述的动作顺序的限制, 因为依据本发明, 某些步骤可以采用其他顺序或者同 时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属 于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。 In the sixth embodiment of the present invention, the source control node 53 mutually triggers and translates the ARP message and the routing protocol message, so that the interaction process between the sites is performed by using the ARP protocol in the interaction process of the site corresponding to the source control node 53. The process uses a routing protocol to limit ARP packets to each site, avoiding the ARP protocol being sent to the DC internet between sites. By replacing the ARP message with a routing protocol message in the DC internet, the DC interconnection is avoided. The broadcast storm caused by the broadcast of ARP messages on the network saves the bandwidth occupied by control signaling. It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有 详述的部分, 可以参见其他实施例的相关描述。  In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要求 Rights request
1、 一种虚拟机 VM迁移方法, 其特征在于, 包括:  A virtual machine VM migration method, comprising:
目标服务器启动待迁移 VM并通过第一地址解析协议 ARP消息向目标控 制节点发送所述待迁移 VM的媒体访问控制 MAC地址和网际协议 IP地址; 所述目标控制节点根据所述第一 ARP消息更新 IP路由表, 通过第一路 由协议报文向源控制节点发送更新后待迁移 VM的 IP地址路由信息,所述更 新后待迁移 VM的 IP地址路由信息包括所述待迁移 VM的 IP地址和所述目 标控制节点的 IP地址;  The target server starts the VM to be migrated and sends the media access control MAC address and the internet protocol IP address of the VM to be migrated to the target control node by using the first address resolution protocol ARP message; the target control node is updated according to the first ARP message. The IP routing table sends the IP address routing information of the VM to be migrated to the source control node by using the first routing protocol packet, and the IP address routing information of the VM to be migrated after the update includes the IP address and location of the VM to be migrated. The IP address of the target control node;
所述源控制节点根据所述第一路由协议报文中的所述待迁移 VM的 IP地 址和所述目标控制节点的 IP地址更新 IP路由表,通过第二 ARP消息向源服 务器发送待迁移 VM的 IP地址或 IP地址和 MAC地址。  The source control node updates the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and sends the VM to be migrated to the source server by using the second ARP message. IP address or IP address and MAC address.
2、 根据权利要求 1所述的方法, 其特征在于, 所述通过第二 ARP消息 向源服务器发送待迁移 VM的 IP地址或 IP地址和 MAC地址之后还包括: 所述源服务器根据所述第二 ARP消息释放所述待迁移 VM的相关资源。  The method according to claim 1, wherein after the sending, by the second ARP message, the IP address or the IP address and the MAC address of the VM to be migrated to the source server, the method further includes: the source server according to the The second ARP message releases related resources of the VM to be migrated.
3、根据权利要求 1或 2所述的方法, 其特征在于, 所述目标服务器启动 待迁移 VM并通过第一 ARP消息向目标控制节点发送所述待迁移 VM的 MAC 地址和 IP地址之前还包括: The method according to claim 1 or 2, wherein the target server starts the VM to be migrated and sends the MAC address and IP address of the VM to be migrated to the target control node by using the first ARP message. :
所述源控制节点通过第三 ARP消息从源服务器获取所述待迁移 VM 的 MAC地址和 IP地址的映射关系;  And obtaining, by the source control node, a mapping relationship between the MAC address and the IP address of the VM to be migrated from the source server by using the third ARP message;
源控制节点通过第二路由协议报文向目标控制节点发送所述待迁移 VM 的 IP地址路由信息, 所述 IP地址路由信息包括所述待迁移 VM的 IP地址和 所述源控制节点的 IP地址。  The source control node sends the IP address routing information of the VM to be migrated to the target control node by using the second routing protocol packet, where the IP address routing information includes the IP address of the VM to be migrated and the IP address of the source control node. .
4、 根据权利要求 1至 3中任意一项所述的方法, 其特征在于, 所述通过第一 ARP消息向目标控制节点发送所述待迁移 VM的 MAC地 址和 IP地址包括: 目标服务器通过所述第一 ARP消息向目标服务器与目标 控制节点之间的节点发送所述待迁移 VM的 MAC地址和 IP地址; 所述目标 服务器与目标控制节点之间的节点学习所述待迁移 VM的 MAC地址和 IP地 址并更新 MAC地址转发表; 所述目标服务器与目标控制节点之间的节点向 所述目标控制节点转发所述第一 ARP消息,以使所述目标控制节点获取所述 待迁移 VM的 MAC地址和 IP地址; The method according to any one of claims 1 to 3, wherein the sending, by the first ARP message, the MAC address and the IP address of the VM to be migrated to the target control node includes: Transmitting, by the first ARP message, a MAC address and an IP address of the VM to be migrated to a node between the target server and the target control node; The node between the server and the target control node learns the MAC address and IP address of the VM to be migrated and updates the MAC address forwarding table; the node between the target server and the target control node forwards the number to the target control node An ARP message, so that the target control node acquires a MAC address and an IP address of the VM to be migrated;
所述通过第二 ARP消息向源服务器发送待迁移 VM的 IP地址或 IP地址 和 MAC地址, 包括: 源控制节点通过所述第二 ARP消息向源服务器与源控 制节点之间的节点发送所述待迁移 VM的 IP地址或 IP地址和 MAC地址;所 述源服务器与源控制节点之间的节点学习所述待迁移 VM的 MAC地址并更 新 MAC地址转发表; 所述源服务器与源控制节点之间的节点向所述源服务 器转发所述第二 ARP消息, 以使所述源服务器获取所述待迁移 VM的 IP地 址或 IP地址和 MAC地址。  The sending, by the second ARP message, the IP address or the IP address and the MAC address of the VM to be migrated to the source server, the method includes: the source control node sending, by using the second ARP message, the node between the source server and the source control node The IP address or the IP address and the MAC address of the VM to be migrated; the node between the source server and the source control node learns the MAC address of the VM to be migrated and updates the MAC address forwarding table; the source server and the source control node The node forwards the second ARP message to the source server, so that the source server acquires an IP address or an IP address and a MAC address of the VM to be migrated.
5、 根据权利要求 4所述的方法, 其特征在于, 所述源控制节点通过所述 第二 ARP消息向源服务器与源控制节点之间的节点发送所述待迁移 VM的 IP 地址或 IP地址和 MAC地址包括:  The method according to claim 4, wherein the source control node sends the IP address or IP address of the VM to be migrated to a node between the source server and the source control node by using the second ARP message. And the MAC address includes:
所述源控制节点向源站点中广播所述第二 ARP消息, 所述第二 ARP消 息中包括所述待迁移 VM的 IP地址;  The source control node broadcasts the second ARP message to the source site, where the second ARP message includes the IP address of the VM to be migrated;
或, 所述源控制节点根据所述待迁移 VM的 IP地址查询 MAC地址和 IP 地址的映射表, 获取所述待迁移 VM的 MAC地址, 向源站点中广播所述第 二 ARP消息, 所述第二 ARP消息中包括所述待迁移 VM的 IP地址和 MAC 地址。  Or the source control node queries the mapping table of the MAC address and the IP address according to the IP address of the VM to be migrated, obtains the MAC address of the VM to be migrated, and broadcasts the second ARP message to the source site, where The second ARP message includes an IP address and a MAC address of the VM to be migrated.
6、 根据权利要求 5所述的方法, 其特征在于, 所述目标控制节点根据所 述第一 ARP消息更新 IP路由表之后还包括:  The method according to claim 5, wherein after the target control node updates the IP routing table according to the first ARP message, the method further includes:
所述目标控制节点通过所述第一路由协议报文向其它控制节点发送所述 更新后待迁移 VM的 IP地址路由信息;  Sending, by the target control node, the IP address routing information of the VM to be migrated to the other control node by using the first routing protocol packet;
所述其它控制节点根据所述第一路由协议报文中的所述待迁移 VM的 IP 地址和所述目标控制节点的 IP地址更新 IP路由表。 And the other control node updates the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet.
7、 根据权利要求 6所述的方法, 其特征在于, 7. The method of claim 6 wherein:
所述控制节点为用户边缘 CE路由器; 所述源控制节点或所述其它控制 节点向所述目标控制节点发送所述 IP报文包括: 源 CE路由器或其它 CE路 由器将所述 IP报文封装入通往目标 CE路由器的 IP隧道发送给目标 CE路由 器;  The control node is a user edge CE router; the source control node or the other control node sends the IP packet to the target control node, including: the source CE router or other CE router encapsulates the IP packet The IP tunnel to the target CE router is sent to the target CE router;
或, 所述控制节点为运营商边缘 PE路由器; 所述第一路由协议报文中 还包括: 伪线 PW标签; 所述源控制节点根据所述第一路由协议报文中的所 述待迁移 VM的 IP地址和所述目标控制节点的 IP地址更新 IP路由表还包括: 源 PE路由器绑定所述待迁移 VM的 IP地址和所述 PW标签; 所述源控制节 点或所述其它控制节点向所述目标控制节点发送所述 IP报文包括: 源 PE路 由器为所述 IP报文添加与所述 PW标签相同的 PW头后, 封装入通往目标 PE路由器的多协议标记交换 MPLS隧道发送给目标 PE路由器。  Or the control node is a carrier edge PE router; the first routing protocol packet further includes: a pseudowire PW label; the source control node is to be migrated according to the first routing protocol packet Updating the IP routing table of the IP address of the VM and the IP address of the target control node further includes: the source PE router binding the IP address of the VM to be migrated and the PW label; the source control node or the other control node Sending the IP packet to the target control node includes: adding, by the source PE router, the same PW header as the PW label to the IP packet, and encapsulating the multi-protocol label switching MPLS tunnel to the target PE router Give the target PE router.
8、 一种虚拟机 VM迁移系统, 其特征在于, 包括:  8. A virtual machine VM migration system, comprising:
目标服务器,用于启动待迁移 VM并通过第一地址解析协议 ARP消息向 目标控制节点发送所述待迁移 VM的媒体访问控制 MAC地址和网际协议 IP 地址;  a target server, configured to start a VM to be migrated and send a media access control MAC address and an internet protocol IP address of the VM to be migrated to the target control node by using a first address resolution protocol ARP message;
目标控制节点, 用于根据所述第一 ARP消息更新 IP路由表, 通过第一 路由协议报文向源控制节点发送更新后待迁移 VM的 IP地址路由信息,所述 更新后待迁移 VM的 IP地址路由信息包括所述待迁移 VM的 IP地址和所述 目标控制节点的 IP地址;  a target control node, configured to update an IP routing table according to the first ARP message, and send, by using the first routing protocol packet, the IP address routing information of the VM to be migrated after the update, and the IP of the VM to be migrated after the update The address routing information includes an IP address of the VM to be migrated and an IP address of the target control node;
源控制节点, 用于根据所述第一路由协议报文中的所述待迁移 VM的 IP 地址和所述目标控制节点的 IP地址更新 IP路由表,通过第二 ARP消息向源 服务器发送待迁移 VM的 IP地址或 IP地址和 MAC地址;  The source control node is configured to update the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet, and send the to-be-migrated to the source server by using the second ARP message. The IP address or IP address and MAC address of the VM;
源服务器, 用于从所述源控制节点接收所述第二 ARP消息。  And a source server, configured to receive the second ARP message from the source control node.
9、 根据权利要求 8所述的系统, 其特征在于,  9. The system of claim 8 wherein:
所述源服务器还用于根据所述第二 ARP消息释放所述待迁移 VM的相关 资源。 The source server is further configured to release the correlation of the VM to be migrated according to the second ARP message. Resources.
10、 根据权利要求 8或 9所述的系统, 其特征在于,  10. A system according to claim 8 or claim 9 wherein:
所述源控制节点还用于通过第三 ARP 消息从所述源服务器获取所述待 迁移 VM的 MAC地址和 IP地址的映射关系, 通过第二路由协议报文向所述 目标控制节点发送所述待迁移 VM的 IP地址路由信息, 所述 IP地址路由信 息包括所述待迁移 VM的 IP地址和所述源控制节点的 IP地址。  The source control node is further configured to obtain, by using a third ARP message, a mapping relationship between a MAC address and an IP address of the VM to be migrated from the source server, and send the message to the target control node by using a second routing protocol packet. IP address routing information of the VM to be migrated, the IP address routing information includes an IP address of the VM to be migrated and an IP address of the source control node.
11、 根据权利要求 8或 9所述的系统, 其特征在于, 还包括: 目标服务 器与目标控制节点之间的节点和源服务器与源控制节点之间的节点;  The system according to claim 8 or 9, further comprising: a node between the target server and the target control node and a node between the source server and the source control node;
所述目标服务器具体用于通过所述第一 ARP 消息向所述目标服务器与 目标控制节点之间的节点发送所述待迁移 VM的 MAC地址和 IP地址;  The target server is specifically configured to send, by using the first ARP message, a MAC address and an IP address of the VM to be migrated to a node between the target server and the target control node;
所述目标服务器与目标控制节点之间的节点具体用于学习所述待迁移 VM的 MAC地址和 IP地址并更新 MAC地址转发表,向所述目标控制节点转 发所述第一 ARP消息;  The node between the target server and the target control node is specifically configured to learn the MAC address and the IP address of the VM to be migrated and update the MAC address forwarding table, and forward the first ARP message to the target control node;
所述源控制节点具体用于通过所述第二 ARP 消息向源服务器与源控制 节点之间的节点发送所述待迁移 VM的 IP地址或 IP地址和 MAC地址;  The source control node is specifically configured to send, by using the second ARP message, an IP address or an IP address and a MAC address of the VM to be migrated to a node between the source server and the source control node;
所述源服务器与源控制节点之间的节点具体用于学习所述待迁移 VM的 The node between the source server and the source control node is specifically used to learn the VM to be migrated.
MAC地址并更新 MAC地址转发表, 向所述源服务器转发所述第二 ARP消 自 MAC address and updating the MAC address forwarding table, forwarding the second ARP cancellation to the source server
12、 根据权利要求 8至 11 中任意一项所述的系统, 其特征在于, 还包 括: 其它控制节点;  The system according to any one of claims 8 to 11, further comprising: other control nodes;
所述目标控制节点还用于在根据所述第一 ARP消息更新 IP路由表之后, 通过所述第一路由协议报文向所述其它控制节点发送所述更新后待迁移 VM 的 IP地址路由信息;  The target control node is further configured to: after the IP routing table is updated according to the first ARP message, send, by using the first routing protocol message, the IP address routing information of the updated VM to be migrated to the other control node. ;
所述其它控制节点用于根据所述第一路由协议报文中的所述待迁移 VM 的 IP地址和所述目标控制节点的 IP地址更新 IP路由表。  And the other control node is configured to update the IP routing table according to the IP address of the VM to be migrated and the IP address of the target control node in the first routing protocol packet.
13、 根据权利要求 12所述的系统, 其特征在于, 所述源控制节点或所述其它控制节点还用于在接收来自所述目标控制节 点的第一路由协议报文之后, 当获取到报文目的 IP地址为所述待迁移 VM的 IP地址的 IP报文时, 向所述目标控制节点发送所述 IP报文; 13. The system of claim 12, wherein The source control node or the other control node is further configured to: after receiving the first routing protocol packet from the target control node, obtain the IP address of the IP address of the VM to be migrated Transmitting the IP packet to the target control node;
所述目标控制节点还用于向所述目标服务器发送所述 IP报文。  The target control node is further configured to send the IP packet to the target server.
14、 根据权利要求 13所述的系统, 其特征在于,  14. The system of claim 13 wherein:
所述目标控制节点、 所述源控制节点、 所述其它控制节点均为 CE路由 器; 所述源控制节点或所述其它控制节点具体用于将所述 IP报文封装入通往 目标 CE路由器的 IP隧道发送给目标 CE路由器;  The target control node, the source control node, and the other control nodes are all CE routers; the source control node or the other control node is specifically configured to encapsulate the IP packet into a target CE router. The IP tunnel is sent to the target CE router.
或, 所述目标控制节点、 所述源控制节点、 所述其它控制节点均为 PE 路由器; 所述第一路由协议报文中还包括: 伪线 PW标签; 所述源控制节点 还用于绑定所述待迁移 VM的 IP地址和所述 PW标签;所述源控制节点或所 述其它控制节点具体用于为所述 IP报文添加与所述 PW标签相同的 PW头 后,封装入通往目标 PE路由器的多协议标记交换 MPLS隧道发送给目标 PE 路由器。  Or the target control node, the source control node, and the other control node are all PE routers; the first routing protocol packet further includes: a pseudowire PW label; the source control node is also used for binding Setting the IP address of the VM to be migrated and the PW label; the source control node or the other control node is specifically configured to add a PW header that is the same as the PW label to the IP packet, and then encapsulate the packet. The multi-protocol label switched MPLS tunnel to the target PE router is sent to the target PE router.
PCT/CN2011/078397 2011-08-15 2011-08-15 Virtual machine migration notification method and system WO2012119390A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/078397 WO2012119390A1 (en) 2011-08-15 2011-08-15 Virtual machine migration notification method and system
CN201180001418.9A CN103430149B (en) 2011-08-15 2011-08-15 Virtual machine migration notification method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/078397 WO2012119390A1 (en) 2011-08-15 2011-08-15 Virtual machine migration notification method and system

Publications (1)

Publication Number Publication Date
WO2012119390A1 true WO2012119390A1 (en) 2012-09-13

Family

ID=46797445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078397 WO2012119390A1 (en) 2011-08-15 2011-08-15 Virtual machine migration notification method and system

Country Status (2)

Country Link
CN (1) CN103430149B (en)
WO (1) WO2012119390A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052666A (en) * 2013-03-14 2014-09-17 杭州华三通信技术有限公司 Method and apparatus for realizing host route reachability
US10628198B2 (en) 2017-08-30 2020-04-21 Red Hat Israel Ltd. Hypervisor management of migration notification and response messages for virtual machines
US10693801B2 (en) 2018-02-20 2020-06-23 Red Hat, Inc. Packet drop reduction in virtual machine migration
US10838752B2 (en) 2017-08-28 2020-11-17 Red Hat Israel, Ltd. Network notification loss detection for virtual machine migration
US10965641B2 (en) 2017-12-07 2021-03-30 Red Hat, Inc. Live virtual machine migration utilizing network address pools
US10977064B2 (en) 2017-08-23 2021-04-13 Red Hat, Inc. Live virtual machine migration
US11070629B2 (en) 2017-08-30 2021-07-20 Red Hat Israel, Ltd Migration notification and response messages for virtual machines

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208048A (en) * 2014-05-30 2015-12-30 株式会社日立制作所 Global migration manager, gateway, virtual machine migration system and method thereof
CN107306223B (en) * 2016-04-21 2020-08-14 华为技术有限公司 Data transmission system, method and device
CN112486626A (en) * 2016-08-30 2021-03-12 华为技术有限公司 Method and device for determining virtual machine migration
CN106998297B (en) * 2017-03-22 2019-11-08 新华三技术有限公司 A kind of virtual machine migration method and device
CN109981493B (en) * 2019-04-09 2020-05-01 苏州浪潮智能科技有限公司 Method and device for configuring virtual machine network
CN111988223B (en) * 2020-08-19 2022-04-08 杭州迪普科技股份有限公司 Virtual machine migration method and network system
CN113612782B (en) * 2021-08-06 2023-02-17 中国联合网络通信集团有限公司 Virtual machine migration verification method and device
CN115297055B (en) * 2022-07-25 2024-01-23 紫光云技术有限公司 Public cloud host migration arp table item updating method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080189432A1 (en) * 2007-02-02 2008-08-07 International Business Machines Corporation Method and system for vm migration in an infiniband network
CN101876883A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 Method for keeping remote operation of virtual machine uninterrupted
US20100287548A1 (en) * 2009-05-06 2010-11-11 Vmware, Inc. Long Distance Virtual Machine Migration

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764752B (en) * 2009-12-25 2012-01-04 杭州华三通信技术有限公司 Method and system for managing remote concentrated image
CN102137001B (en) * 2010-11-29 2014-12-10 华为技术有限公司 Routing information exchange method, equipment and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080189432A1 (en) * 2007-02-02 2008-08-07 International Business Machines Corporation Method and system for vm migration in an infiniband network
US20100287548A1 (en) * 2009-05-06 2010-11-11 Vmware, Inc. Long Distance Virtual Machine Migration
CN101876883A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 Method for keeping remote operation of virtual machine uninterrupted

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WEI XIAOHUI ET AL.: "Mechanism of Virtual Machine Live Migration in Cross-Domain Virtual Networks", JOURNAL OF JILIN UNIVERSITY (SCIENCE EDITION), vol. 49, no. 3, May 2011 (2011-05-01), pages 481 - 486 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052666A (en) * 2013-03-14 2014-09-17 杭州华三通信技术有限公司 Method and apparatus for realizing host route reachability
US9992106B2 (en) 2013-03-14 2018-06-05 Hewlett Packard Enterprise Development Lp Generating a host route
US10977064B2 (en) 2017-08-23 2021-04-13 Red Hat, Inc. Live virtual machine migration
US10838752B2 (en) 2017-08-28 2020-11-17 Red Hat Israel, Ltd. Network notification loss detection for virtual machine migration
US10628198B2 (en) 2017-08-30 2020-04-21 Red Hat Israel Ltd. Hypervisor management of migration notification and response messages for virtual machines
US11070629B2 (en) 2017-08-30 2021-07-20 Red Hat Israel, Ltd Migration notification and response messages for virtual machines
US10965641B2 (en) 2017-12-07 2021-03-30 Red Hat, Inc. Live virtual machine migration utilizing network address pools
US10693801B2 (en) 2018-02-20 2020-06-23 Red Hat, Inc. Packet drop reduction in virtual machine migration

Also Published As

Publication number Publication date
CN103430149A (en) 2013-12-04
CN103430149B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
WO2012119390A1 (en) Virtual machine migration notification method and system
JP5830093B2 (en) Asymmetric network address encapsulation
US9448821B2 (en) Method and system for realizing virtual machine mobility
JP5617137B2 (en) Virtual layer 2 and mechanisms for making it scalable
US9240944B2 (en) Overlay services in communication networks
EP3065358A1 (en) Method and device for message forwarding
JP2013504959A (en) Method and system for realizing virtual private network
EP2632088B1 (en) Method and device for storing and sending mac address entry
WO2015180084A1 (en) Packet forwarding method and vxlan gateway
WO2018214809A1 (en) Message transmission method and device, and storage medium
WO2014201974A1 (en) Service routing packet processing method, device and network system
WO2012106919A1 (en) Routing control method, apparatus and system of layer 3 virtual private network
WO2012031487A1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
JP5656137B2 (en) Method and system for updating border gateway protocol route
WO2011113393A2 (en) Virtual local area network identity transformation method and apparatus
WO2015124041A1 (en) Processing method and related device for host route in virtual sub-network, and communication system
WO2011050644A1 (en) Method for performing dynamic tunnel message forwarding and switch thereof
EP2227883A1 (en) Setting up a virtual private network
WO2022001669A1 (en) Method for establishing vxlan tunnel, and related device
WO2007112645A1 (en) A method and system for implementing a mobile virtual private network
WO2012106935A1 (en) Data communication network configuration method, gateway element and data communication system
WO2013107245A1 (en) Method, device and system for implementing multicast in transparent interconnection of lots of links (trill) campus
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2013071866A1 (en) Host name transfer method and device
WO2014082414A1 (en) Service forwarding method and device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180001418.9

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11860284

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11860284

Country of ref document: EP

Kind code of ref document: A1