CN103152200A - Migration method of virtual machine, switch, network management equipment and network system - Google Patents
Migration method of virtual machine, switch, network management equipment and network system Download PDFInfo
- Publication number
- CN103152200A CN103152200A CN2013100736059A CN201310073605A CN103152200A CN 103152200 A CN103152200 A CN 103152200A CN 2013100736059 A CN2013100736059 A CN 2013100736059A CN 201310073605 A CN201310073605 A CN 201310073605A CN 103152200 A CN103152200 A CN 103152200A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- port
- migration
- switch
- network management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention relates to a migration method of a virtual machine, a switch, network management equipment and a network system. The switch in the network system is used for acquiring the communication rate of all virtue machines of a server, calculating the port rate of virtual machine ports, determining the to-be-migrated virtual machine on the virtual machine ports when the port rate achieves to the preset threshold value, and sending a migration request to the network management equipment; the network management equipment is used for inquiring a virtual machine port information table after receiving the migration request, determining a target virtual machine port, and sending a migration command to a virtual machine management server, wherein the migration command is used for enabling the virtual machine management server to execute the migration operation according to the migration command so as to obtain a migration result; and the migration result sent by the virtual machine management server is received and sent to the switch. According to the invention, when the switch monitors network congestion, the virtual machine can be migrated.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of virtual machine migration method, switch, network management device and network system.
Background technology
Virtual machine (Virtual Machine, VM) refer to by software simulation have the complete hardware system function, operate in a complete computer in complete isolation environment.The virtual machine (vm) migration technology provides method easily for server virtualization, and operation has the server of virtual machine that unified " virtual hardware resource " arranged, and unlike traditional server, many different hardware resources is arranged.
Fig. 1 is the Organization Chart of the network system of prior art.As shown in the figure, this network system comprises server 11, the network equipment 12 and the Virtual Machine Manager server 13 at virtual machine place.Wherein, the network equipment 12 connection servers 11 and Virtual Machine Manager server 13, the virtual machine (vm) migration of server 11 can be managed by Virtual Machine Manager server 13., the business of this virtual machine can be switched on another virtual machine in this server because fault causes when shutting down when a virtual machine in server 11, thereby reach the purpose of non-interrupting service.
Along with quantity and the traffic carrying capacity increase of virtual machine in server 11, the internal memory that each virtual machine takies server 11 gets more and more, and the situation of the memory space inadequate of server 11 often can occur.Therefore, Virtual Machine Manager server 13 can regularly detect the memory space of server 11, when the memory space inadequate of server 11 being detected, can trigger the real-time migration of the virtual machine in server 11.In order to guarantee the availability of virtual machine execution business in transition process, this transition process only has very of short duration downtime, and the interruption of the imperceptible business of virtual machine user, therefore this transition process is transparent to the user.
But, along with communication service is more and more higher to the requirement of bandwidth, when the network equipment 12 that connects when server 11 network bandwidth deficiency occurs and namely network congestion occurs, can have influence on the virtual machine access of whole network system.And prior art can only trigger the real-time migration of virtual machine when server 11 memory space inadequate being detected, and bandwidth situation that can't sensing network equipment 12.Therefore, when network congestion appearred in the network equipment 12 of server 11 connections, Virtual Machine Manager server 13 can't trigger the real-time migration of virtual machine.
Summary of the invention
The invention provides a kind of virtual machine network and virtual machine migration method, to solve in prior art when the port generation of switch connecting virtual machine management server is congested, the Virtual Machine Manager server can't trigger the problem of the migration of virtual machine.
In first aspect, the invention provides a kind of network system, described network system comprises: server, switch, network management device and Virtual Machine Manager server; Described server is by virtual machine port and described switch communication, and on described server, operation has a plurality of virtual machines; Described switch is for the traffic rate of all virtual machines that obtain described server, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, when the port speed that monitors described virtual machine port when described switch reaches default threshold value, determine virtual machine to be migrated according to default migration strategy, and send to described network management device the migration request that carries described virtual machine port and described virtual machine to be migrated.
Described network management device is used for after the described migration request that receives described switch transmission, according to described migration request inquiry virtual machine port information table, and definite purpose virtual machine port, and will carry described virtual machine to be migrated and the migration instruction of described purpose virtual machine port sends to described Virtual Machine Manager server, described migration instruction is used for making described Virtual Machine Manager server to carry out migration operation, obtains migration results; Receive the migration results of described Virtual Machine Manager server transmission and described migration results is sent to described switch; Described switch also is used for upgrading according to described migration results the configuration information of described virtual machine port.
In the possible execution mode of the first, described switch also is used for the traffic rate of all virtual machines of the described server of timing acquisition, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device; Described network management device also for the port speed of the described virtual machine port that receives described switch transmission, according to the port speed of described virtual machine port, upgrades described virtual machine port information table.
In conjunction with the possible execution mode of the first of first aspect or first aspect, in the possible execution mode of the second, described switch also be used for obtaining self the medium access control MAC Address and with the port numbers of the port of described server communication, and will be described and the port type of the port of server communication be configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, and the configuring virtual machine migration strategy; After the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
In second aspect, the invention provides a kind of virtual machine migration method, described method comprises: the port speed of the virtual machine port of the described switch of switch monitoring; When the port speed of described virtual machine port reached default threshold value, described switch was determined virtual machine to be migrated on described virtual machine port according to default migration strategy; Send the migration request carry described virtual machine port and described virtual machine to be migrated to network management device; Receive the migration results that described network management device sends, upgrade the configuration information of described virtual machine port according to described migration results.
In the possible execution mode of the first, described method also comprises: the traffic rate of all virtual machines of the described server of timing acquisition, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device, so that described network management device according to the port speed of described virtual machine port, upgrades the virtual machine port information table of self.
In conjunction with the possible execution mode of the first of second aspect or second aspect, in the possible execution mode of the second, before the port speed of the virtual machine port of the described switch of described switch monitoring, also comprise: described switch obtain self the medium access control MAC Address and with the port numbers of the port of described server communication, and the port type of the port of described and server communication is configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, and the configuring virtual machine migration strategy; After the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
In the third aspect, the invention provides a kind of virtual machine migration method, described method comprises: after the migration request that carries described virtual machine port and described virtual machine to be migrated that network management device receives that switch sends, described network management device inquiry virtual machine port information table is determined purpose virtual machine port; Send to the Virtual Machine Manager server and carry described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, described migration instruction is used for making described Virtual Machine Manager server to carry out migration operation, obtains migration results; Receive the described migration results that described Virtual Machine Manager server sends, and described migration results is sent to described switch.
In the possible execution mode of the first, described method also comprises: receive the port speed of the described virtual machine port of described switch transmission, upgrade the described virtual machine port information table of self according to the port speed of described virtual machine port.
In fourth aspect, the invention provides a kind of switch, it is characterized in that, described switch comprises: monitoring means is for the port speed of the virtual machine port of monitoring described switch; Transmitting element is used for when port speed that described monitoring means monitors described virtual machine port reaches default threshold value, determine virtual machine to be migrated according to default migration strategy, generation carries the migration request of described virtual machine port and described virtual machine to be migrated, sends the migration request that carries described virtual machine port and described virtual machine to be migrated to network management device; Receiving element is used for receiving the migration results that described network management device sends, and upgrades the configuration information of described virtual machine port according to described migration results.
In the possible execution mode of the first, described switch also comprises: acquiring unit is for the traffic rate of all virtual machines that obtain described server, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device, so that described network management device according to the port speed of described virtual machine port, upgrades described self virtual machine port information table.
In conjunction with the possible execution mode of the first of fourth aspect or fourth aspect, in the possible execution mode of the second, described switch also comprises: dispensing unit be used for obtaining described switch MAC Address and with the port numbers of the port of described server communication, and will be described and the port type of the port of server communication be configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, and the configuring virtual machine migration strategy; After the virtual machine activation in described server, receive the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
Aspect the 5th, the invention provides a kind of network management device, it is characterized in that, described network management device comprises: query unit is used for after network management device receives the migration request that carries described virtual machine port and described virtual machine to be migrated of switch transmission, inquiry virtual machine port information table, and definite purpose virtual machine port, and with described virtual machine to be migrated and described purpose virtual machine port transmission to transmitting element; Transmitting element is used for receiving described virtual machine to be migrated and described purpose virtual machine port from described query unit, send to the Virtual Machine Manager server and carry described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, described migration instruction is used for making described Virtual Machine Manager server to carry out migration operation, obtains migration results; Receiving element is used for receiving the described migration results that described Virtual Machine Manager server sends, and described migration results is sent to described switch.
In the possible execution mode of the first, described network management device also comprises: updating block is for the port speed of the described virtual machine port that receives described switch transmission, according to the described virtual machine port information table of port speed renewal of described virtual machine port.
by using virtual machine migration method provided by the invention, switch, network management device and network system, the port speed of switch monitoring virtual machine port, when the port speed of virtual machine port reaches default threshold value, determine virtual machine to be migrated according to default migration strategy, and send the migration request carry virtual machine port and virtual machine to be migrated to network management device, receive the migration request of switch transmission when network management device after, inquiry virtual machine port information table, and definite purpose virtual machine port, the migration instruction that carries virtual machine to be migrated and purpose virtual machine port is sent to the Virtual Machine Manager server, make the Virtual Machine Manager server carry out migration operation, the migration results that the sink virtual machine management server sends, migration results is sent to switch, can be when switch monitors network congestion, realize the migration of virtual machine.
Description of drawings
Fig. 1 is the Organization Chart of the network system of prior art;
The Organization Chart of the network system that Fig. 2 provides for the embodiment of the present invention one;
The flow chart of the virtual machine shifting method that Fig. 3 provides for the embodiment of the present invention two;
The flow chart of the virtual machine shifting method that Fig. 4 provides for the embodiment of the present invention three;
The schematic diagram of the switch that Fig. 5 provides for the embodiment of the present invention four;
The schematic diagram of the network management device that Fig. 6 provides for the embodiment of the present invention five;
The schematic diagram of the switch that Fig. 7 provides for the embodiment of the present invention six;
The schematic diagram of the network management device that Fig. 8 provides for the embodiment of the present invention seven.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the present invention provides a kind of virtual machine migration method, switch, network management device and network system, described switch is for the traffic rate of all virtual machines that obtain server, calculate the port speed of virtual machine port according to the traffic rate of all virtual machines, when the port speed that monitors self virtual machine port when switch reaches default threshold value, determine virtual machine to be migrated on described virtual machine port according to default migration strategy, and send to network management device the migration request that carries virtual machine port and virtual machine to be migrated; Network management device is used for after the migration request that receives the switch transmission, according to migration request inquiry virtual machine port information table, and definite purpose virtual machine port, and the migration instruction that will carry virtual machine to be migrated and purpose virtual machine port sends to the Virtual Machine Manager server, described migration instruction is used for making the Virtual Machine Manager server to carry out migration operation, obtains migration results; The migration results that the sink virtual machine management server sends, migration results is sent to described switch, described switch upgrades the configuration information of described virtual machine port according to described migration results, thereby can when switch monitors network congestion, realize the migration of virtual machine.
The network congestion that relates in the present invention refers to the switch that is connected with server and network bandwidth deficiency occurs.Switch in the present invention can the sensing network bandwidth situation, the traffic rate of all virtual machines by the described server of timing acquisition calculates the port speed of virtual machine port, when the port speed that monitors the virtual machine port when switch reaches default threshold value, explanation network congestion occurs this moment, needs the virtual machine in server is carried out real-time migration.
The Organization Chart of the network system that Fig. 2 provides for the embodiment of the present invention one.As shown in the figure, the network system that provides of the embodiment of the present invention comprises: server 21, switch 22, network management device 23 and Virtual Machine Manager server 24.Described server 21 is communicated by letter with switch 22 by the virtual machine port, and on described server 21, operation has virtual machine.Described virtual machine port refers to the port that being used on switch 22 communicates by letter with described server 21.A described switch 22 can be communicated by letter with different described servers 21 respectively by different virtual machine ports.
Described switch 22 is for the traffic rate of all virtual machines that obtain described server 21, calculate the port speed of described virtual machine port according to the traffic rate of all virtual machines, when the port speed that monitors described virtual machine port when the virtual machine port of described switch 22 reaches default threshold value, determine virtual machine to be migrated on described virtual machine port according to default migration strategy, and send the migration request of carrying described virtual machine port and described virtual machine to be migrated to described network management device 23.Described network management device 23 is used for after the migration request that receives described switch 22 transmissions, according to described migration request inquiry virtual machine port information table, determine purpose virtual machine port, send to described Virtual Machine Manager server 24 with carrying described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, after described Virtual Machine Manager server 24 receives described migration instruction, carry out migration operation according to described migration instruction, obtain migration results, and the migration results that will obtain after moving sends to described network management device 23.After described network management device 23 receives described migration results, this migration results is sent to switch 22.After switch 22 receives migration results, upgrade the configuration information of described virtual machine port according to described migration results.Wherein, described purpose virtual machine port is the second server that will move into of described virtual machine to be migrated and the interface of the second switch communication, and described migration operation refers to, with described virtual machine (vm) migration to be migrated to second server; Described default migration strategy is a kind of in following strategy: the highest migration strategy of speed, the minimum migration strategy of speed, and after enter first to go out strategy.The highest migration strategy of speed refers to from by whole virtual machines of described virtual machine port communication, selects the highest virtual machine of speed, moves to other servers.The minimum migration strategy of speed refers to from by whole virtual machines of described virtual machine port communication, selects the minimum virtual machine of speed, moves to other servers.After enter first to go out strategy and slightly refer to from by whole virtual machines of described virtual machine port communication, select the last virtual machine that starts, move to other servers.
Further, described switch 22 also is used for the traffic rate of all virtual machines of the described server 21 of timing acquisition, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device 23.Described network management device 23 also for the port speed of the described virtual machine port that receives described switch 22 transmissions, according to the port speed of described virtual machine port, upgrades the described virtual machine port information table of self storing.
Particularly, before the traffic rate of all virtual machines of the described switch 22 described servers 21 of timing acquisition, described switch 22 also will carry out initialization to described virtual machine port.This initialization comprises: obtain switch self MAC Address and with the port numbers of the port of described server communication, and the port type of the port of described and server communication is configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, the maximum bandwidth that all virtual machines that namely connect by this virtual machine port can be shared, and configuring virtual machine migration strategy; After the virtual machine activation on described server 21, described switch 22 receives address resolution protocol (the Address Resolution Protocol that this virtual machine sends, ARP) message, and will be sent to described network management device 23 based on the traffic statistics of virtual machine IP address, and the IP address of described virtual machine is added in the virtual machine list.Wherein, one of each virtual machine IP address need to be based on the speed of IP address statistics virtual machine.
Through after above-mentioned initialization, the configuration information of this virtual machine port is as shown in table 1.
Table 1
Switch mac address |
Port numbers |
Port type (virtual machine port) |
Share the bandwidth upper limit |
The virtual machine (vm) migration strategy |
The virtual machine list (user 1, user 2 ..., user N) |
The virtual machine port information table of network management device 23 storages is as shown in table 2.
Table 2
The virtual machine port | Share the bandwidth upper limit | Port speed |
1 | 1024Mbps | 896Mbps |
2 | 1024Mbps | 512Mbps |
...... | ...... | ...... |
N | 1024Mbps | 128Mbps |
Wherein, the port speed of virtual machine port one be current all virtual machines that hold of virtual machine port one speed and, by that analogy, the port speed of virtual machine port N be current all virtual machines that hold of virtual machine port N speed and.
Therefore, the embodiment of the present invention utilizes switch to obtain the traffic rate of all virtual machines of server, calculate the port speed of virtual machine port according to the traffic rate of all virtual machines, when the port speed that monitors the virtual machine port when switch reaches default threshold value, determine virtual machine to be migrated on the virtual machine port according to default migration strategy, and send to network management device the migration request that carries virtual machine port and virtual machine to be migrated; After network management device receives migration request, inquiry virtual machine port information table, and definite purpose virtual machine port, and the migration instruction that will carry virtual machine to be migrated and purpose virtual machine port sends to the Virtual Machine Manager server, after the Virtual Machine Manager server receives the migration instruction, carry out migration operation, and send migration results to network management device, after network management device receives migration results, this migration results is sent to switch, can when switch monitors network congestion, realize the migration of virtual machine.
The flow chart of the virtual machine shifting method that Fig. 3 provides for the embodiment of the present invention two.The method is used the virtual machine network that the embodiment of the present invention two provides.As shown in the figure, the present embodiment specifically comprises the following steps:
Further, the virtual machine shifting method that the present embodiment provides also comprises: the traffic rate of all virtual machines of the described server of described switch timing acquisition, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device, so that described network management device according to the port speed of described virtual machine port, upgrades the virtual machine port information table of self.
Wherein, the virtual machine shifting method that the present embodiment provides is before the traffic rate of all virtual machines of the described server of described switch timing acquisition, also comprise described switch obtain switch self MAC Address and with the port numbers of the port of described server communication, and the port type of the port of described and server communication is configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, the maximum bandwidth that all virtual machines that namely connect by this virtual machine port can be shared, and configuring virtual machine migration strategy; After the virtual machine activation on described server, described switch receives the ARP message that this virtual machine sends, and will be sent to described network management device based on the traffic statistics of virtual machine IP address, and the IP address of described virtual machine is added in the virtual machine list.Wherein, IP of each virtual machine need to add up based on IP the speed of virtual machine.Wherein, the configuration information of described virtual machine port is as shown in table 1.
therefore, the virtual machine method that the embodiment of the present invention provides, the traffic rate that utilizes switch to obtain all virtual machines of server calculates the port speed of virtual machine port, and the port speed of described virtual machine port is sent to network management device, when the port speed that monitors this virtual machine port when described switch reaches default threshold value, determine virtual machine to be migrated according to default migration strategy, and send the migration request carry described virtual machine port and the virtual machine user to be migrated of telling to network management device, and receive the migration results that described network management device sends, upgrade the configuration information of described virtual machine port according to described migration results.Thereby can when switch monitors network congestion, realize the migration of virtual machine.。
The flow chart of the virtual machine shifting method that Fig. 4 provides for the embodiment of the present invention three.The method is used the virtual machine network that the embodiment of the present invention two provides.As shown in the figure, the present embodiment specifically comprises the following steps:
Further, the virtual machine migration method that the embodiment of the present invention provides also comprises: described network management device receives the port speed of the described virtual machine port of described switch transmission, upgrades the virtual machine port information table of self according to the port speed of described virtual machine port.Wherein, described virtual machine port information table is as shown in table 2.
therefore, the virtual machine migration method that the embodiment of the present invention provides, receive the port speed of the virtual machine port of switch transmission when network management device, upgrade the virtual machine port information table of self preserving, after the migration request of carrying virtual machine port and virtual machine user to be migrated that receives that switch sends, virtual machine port information table after inquiry is upgraded, determine purpose virtual machine port, and send the migration instruction carry virtual machine to be migrated and purpose virtual machine port to the Virtual Machine Manager server, make the Virtual Machine Manager server carry out migration operation, and the migration results of sink virtual machine management server transmission, again this migration results is sent switch, make switch upgrade the configuration information of described virtual machine port according to described migration results, thereby can be when switch monitors network congestion, realize the migration of virtual machine.
The schematic diagram of the switch that Fig. 5 provides for the embodiment of the present invention four, this switch are used for carrying out the virtual machine migration method that the embodiment of the present invention two provides.As shown in the figure, the switch that provides of the embodiment of the present invention specifically comprises: monitoring means 51, transmitting element 52 and receiving element 53.
Described monitoring means 51 is for the port speed of the virtual machine port of monitoring described switch.
Described transmitting element 52 is used for when port speed that described monitoring means 51 monitors described virtual machine port reaches default threshold value, determine virtual machine to be migrated according to default migration strategy, generation carries the migration request of described virtual machine port and described virtual machine to be migrated, sends the migration request that carries described virtual machine port and described virtual machine to be migrated to network management device.Described migration request is used for making described network management device inquiry virtual machine port information table, and definite purpose virtual machine port, and will carry described virtual machine user to be migrated and the migration instruction of described purpose virtual machine port sends to the Virtual Machine Manager server, make described Virtual Machine Manager server carry out migration operation according to described migration instruction, obtain migration results, and described migration results is sent to described network management device.
Described receiving element 53 is used for receiving the migration results that described network management device sends, and upgrades the configuration information of described virtual machine port according to described migration results.
Wherein, default migration strategy is a kind of in following strategy: the highest migration strategy of speed, the minimum migration strategy of speed, and after enter first to go out strategy.The highest migration strategy of speed refers to from whole virtual machines of virtual machine port communication, selects the highest virtual machine of speed, moves to other servers.The minimum migration strategy of speed refers to from whole virtual machines of virtual machine port communication, selects the minimum virtual machine of speed, moves to other servers.After enter first to go out strategy and refer to from whole virtual machines of virtual machine port communication, select the last virtual machine that starts, move to other servers.
Further, the switch that provides of the embodiment of the present invention also comprises acquiring unit 54 and dispensing unit 55.
Described acquiring unit 54 is for the traffic rate of all virtual machines that obtain server, calculate the port speed of virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to network management device, so that described network management device according to the port speed of described virtual machine port, upgrades the described virtual machine port information table of self.
Described dispensing unit 55 be used for obtaining described switch MAC Address and with the port numbers of the port of described server communication, and will be described and port type server communication be configured to the virtual machine port; Configure the shared bandwidth upper limit of all virtual machines of described virtual machine port, and the configuring virtual machine migration strategy; After the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
therefore, the switch that the embodiment of the present invention provides, the traffic rate of all virtual machines by obtaining server calculates the port speed of virtual machine port, and the port speed of virtual machine port is sent to network management device, when the port speed that monitors this virtual machine port when switch reaches default threshold value, switch is determined virtual machine to be migrated according to default migration strategy, and send the migration request carry virtual machine port and virtual machine user to be migrated to network management device, and the migration results of receiving network managing equipment transmission, thereby can be when switch monitors network congestion, realize the migration of virtual machine.
The schematic diagram of the network management device that Fig. 6 provides for the embodiment of the present invention five, this network management device are used for carrying out the virtual machine migration method that the embodiment of the present invention three provides.As shown in the figure, the network management device that provides of the embodiment of the present invention specifically comprises: query unit 61, transmitting element 62 and receiving element 63.
Described query unit 61 is used for after network management device receives the migration request that carries virtual machine port and virtual machine to be migrated of switch transmission, inquiry virtual machine port information table, and definite purpose virtual machine port, and give described transmitting element 62 with described virtual machine to be migrated and described purpose virtual machine port transmission.
Described transmitting element 62 is used for receiving described virtual machine to be migrated and described purpose virtual machine port from described query unit 61, send to the Virtual Machine Manager server and carry described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, so that described Virtual Machine Manager server is carried out migration operation, obtain migration results.
Described receiving element 63 is used for receiving the described migration results that described Virtual Machine Manager server sends, and described migration results is sent to described switch, so that described switch upgrades the configuration information of described virtual machine port according to described migration results.
Further, the network management device that provides of the embodiment of the present invention also comprises: updating block 64.
Described updating block 64 is used for the port speed of the virtual machine port of desampler transmission, upgrades the virtual machine port information table of self according to the port speed of described virtual machine port.
therefore, the network management device that the embodiment of the present invention provides, port speed when the virtual machine port that receives the switch transmission, upgrade the virtual machine port information table of self preserving, after the migration request of carrying virtual machine port and virtual machine user to be migrated that receives that switch sends, virtual machine port information table after inquiry is upgraded, determine purpose virtual machine port, and send the migration instruction carry virtual machine to be migrated and purpose virtual machine port to the Virtual Machine Manager server, make the Virtual Machine Manager server carry out migration operation, obtain migration results, and the migration results of sink virtual machine management server transmission, again this migration results is sent switch, make the configuration information that upgrades described virtual machine port according to this migration results, thereby can be when switch monitors network congestion, realize the migration of virtual machine.
The schematic diagram of the switch that Fig. 7 provides for the embodiment of the present invention six, this switch are used for carrying out the virtual machine migration method that the embodiment of the present invention two provides.As shown in the figure, the embodiment of the present invention specifically comprises switch ports themselves 71, processor 72 and memory 73.Cross bus 74 is used for connecting switch ports themselves 71, processor 72 and memory 73.
Switch ports themselves 71 is used for being connected with server 21, network management device 22 and the Virtual Machine Manager server 23 of as shown in Figure 2 network system.
When starting, these component softwares are loaded in memory 73, are then accessed and carry out as shown in Figure 3 method by processor 72.
The schematic diagram of the network management device that Fig. 8 provides for the embodiment of the present invention seven, this network management device are used for carrying out the virtual machine migration method that the embodiment of the present invention three provides.As shown in the figure, the embodiment of the present invention specifically comprises: network management device port 81, processor 82 and memory 83.Network management device bus 84 is used for interconnection network management equipment port 81, processor 82 and memory 83.
Network management device port 81 is used for being connected with Virtual Machine Manager server 23 with the switch 22 of as shown in Figure 2 network system.
When starting, these component softwares are loaded in memory 83, are then accessed and carry out as shown in Figure 4 method by processor 82.
The professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or combination both, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can use the software module of hardware, processor execution, and perhaps both combination is implemented.Software module can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above is only the specific embodiment of the present invention; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (15)
1. a network system, is characterized in that, described network system comprises: server, switch, network management device and Virtual Machine Manager server; Described server is by virtual machine port and described switch communication, and on described server, operation has virtual machine;
Described switch is for the traffic rate of all virtual machines that obtain described server, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, when the port speed that monitors described virtual machine port when described switch reaches default threshold value, determine virtual machine to be migrated on described virtual machine port according to default migration strategy, and send to described network management device the migration request that carries described virtual machine port and described virtual machine to be migrated;
Described network management device is used for after the described migration request that receives described switch transmission, according to described migration request inquiry virtual machine port information table, determine purpose virtual machine port, send to described Virtual Machine Manager server with carrying described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, described migration instruction is used for making described Virtual Machine Manager server to carry out migration operation according to described migration instruction, obtains migration results; Receive the migration results of described Virtual Machine Manager server transmission and described migration results is sent to described switch;
Described switch also is used for upgrading according to described migration results the configuration information of described virtual machine port.
2. network system according to claim 1, it is characterized in that, described switch also is used for the traffic rate of all virtual machines of the described server of timing acquisition, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device;
Described network management device also for the port speed of the described virtual machine port that receives described switch transmission, according to the port speed of described virtual machine port, upgrades described virtual machine port information table.
3. network system according to claim 1 and 2, it is characterized in that, described switch also be used for obtaining self the medium access control MAC Address and with the port numbers of the port of described server communication, and will be described and the port type of the port of server communication be configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, and the configuring virtual machine migration strategy; After the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
4. the described network system of according to claim 1 to 3 any one, is characterized in that, described default migration strategy is a kind of in following strategy: the highest migration strategy of speed, the minimum migration strategy of speed and after enter first to go out strategy.
5. a virtual machine migration method, is characterized in that, described method comprises:
The port speed of the virtual machine port of the described switch of switch monitoring;
When the port speed of described virtual machine port reached default threshold value, described switch was determined virtual machine to be migrated on described virtual machine port according to default migration strategy;
Send the migration request carry described virtual machine port and described virtual machine to be migrated to network management device;
Receive the migration results that described network management device sends, upgrade the configuration information of described virtual machine port according to described migration results.
6. virtual machine migration method according to claim 5, is characterized in that, described method also comprises:
The traffic rate of all virtual machines of the described server of timing acquisition, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device, so that described network management device according to the port speed of described virtual machine port, upgrades the virtual machine port information table of self.
7. according to claim 5 or 6 described virtual machine migration methods, is characterized in that, before the port speed of the virtual machine port of the described switch of described switch monitoring, also comprises:
Described switch obtain self MAC Address and with the port numbers of the port of described server communication, and the port type of the port of described and server communication is configured to the virtual machine port;
Configure the shared bandwidth upper limit of described virtual machine port, and the configuring virtual machine migration strategy;
After the virtual machine activation in described server, receive the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
8. the described virtual machine migration method of according to claim 5 to 7 any one, is characterized in that, described default migration strategy is a kind of in following strategy: the highest migration strategy of speed, the minimum migration strategy of speed and after enter first to go out strategy.
9. a virtual machine migration method, is characterized in that, described method comprises:
Receive the migration request that carries virtual machine to be migrated on virtual machine port and described virtual machine port of switch transmission when network management device after, described network management device inquiry virtual machine port information table is determined purpose virtual machine port;
Send to the Virtual Machine Manager server and carry described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, described migration instruction is used for making described Virtual Machine Manager server to carry out migration operation, obtains migration results;
Receive the described migration results that described Virtual Machine Manager server sends, and described migration results is sent to described switch.
10. virtual machine migration method according to claim 9, is characterized in that, described method also comprises:
Receive the port speed of the described virtual machine port of described switch transmission, upgrade the described virtual machine port information table of self according to the port speed of described virtual machine port.
11. a switch is characterized in that, described switch comprises:
Monitoring means is for the port speed of the virtual machine port of monitoring described switch;
Transmitting element, be used for when port speed that described monitoring means monitors described virtual machine port reaches default threshold value, determine virtual machine to be migrated according to default migration strategy, generation carries the migration request of described virtual machine port and described virtual machine to be migrated, sends the migration request that carries described virtual machine port and described virtual machine to be migrated to network management device;
Receiving element is used for receiving the migration results that described network management device sends, and upgrades the configuration information of described virtual machine port according to described migration results.
12. switch according to claim 11 is characterized in that, described switch also comprises:
Acquiring unit, traffic rate for all virtual machines that obtain described server, calculate the port speed of described virtual machine port according to the traffic rate of described all virtual machines, and the port speed of described virtual machine port is sent to described network management device, so that described network management device according to the port speed of described virtual machine port, upgrades the virtual machine port information table of self.
13. according to claim 11 or 12 described switches is characterized in that, described switch also comprises:
Dispensing unit, be used for obtaining described switch MAC Address and with the port numbers of the port of described server communication, and will be described and the port type of the port of server communication be configured to the virtual machine port; Configure the shared bandwidth upper limit of described virtual machine port, and the configuring virtual machine migration strategy; After the virtual machine activation in described server, receive the ARP message that described virtual machine sends, to send to described network management device based on the traffic statistics of described virtual machine IP address, and the IP address of described virtual machine will be added in the virtual machine list.
14. a network management device is characterized in that, described network management device comprises:
Query unit, be used for after network management device receives the migration request that carries virtual machine to be migrated on virtual machine port and described virtual machine port of switch transmission, inquiry virtual machine port information table, determine purpose virtual machine port, and with described virtual machine to be migrated and described purpose virtual machine port transmission to transmitting element;
Transmitting element, be used for generating the migration instruction according to described virtual machine to be migrated and described purpose virtual machine port, send to the Virtual Machine Manager server and carry described virtual machine to be migrated and the migration instruction of described purpose virtual machine port, described migration instruction is used for making described Virtual Machine Manager server to carry out migration operation, obtains migration results;
Receiving element is used for receiving the described migration results that described Virtual Machine Manager server sends, and described migration results is sent to described switch.
15. network management device according to claim 14 is characterized in that, described network management device also comprises:
Updating block is for the port speed of the described virtual machine port that receives described switch transmission, according to the described virtual machine port information table of port speed renewal of described virtual machine port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310073605.9A CN103152200B (en) | 2013-03-07 | 2013-03-07 | Virtual machine migration method, switch, network management device and network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310073605.9A CN103152200B (en) | 2013-03-07 | 2013-03-07 | Virtual machine migration method, switch, network management device and network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103152200A true CN103152200A (en) | 2013-06-12 |
CN103152200B CN103152200B (en) | 2016-08-03 |
Family
ID=48550075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310073605.9A Active CN103152200B (en) | 2013-03-07 | 2013-03-07 | Virtual machine migration method, switch, network management device and network system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103152200B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581036A (en) * | 2013-10-31 | 2014-02-12 | 华为技术有限公司 | Method, device and system for controlling virtual machine network flow |
CN104243427A (en) * | 2013-06-19 | 2014-12-24 | 日电(中国)有限公司 | Virtual machine online migration method and data package transmission method and device |
CN105208048A (en) * | 2014-05-30 | 2015-12-30 | 株式会社日立制作所 | Global migration manager, gateway, virtual machine migration system and method thereof |
WO2016000430A1 (en) * | 2014-06-30 | 2016-01-07 | 华为技术有限公司 | Method and related device for estimating traffic rate between virtual machine pairs |
CN103716221B (en) * | 2013-12-10 | 2017-02-01 | 同济大学 | On-line migration method of virtual machine in wide area network under future network NDN (Named Data Network) |
CN106453118A (en) * | 2016-11-11 | 2017-02-22 | 深圳市深信服电子科技有限公司 | Flow control method and flow control system |
CN106657330A (en) * | 2016-12-22 | 2017-05-10 | 北京华为数字技术有限公司 | User data migration method and user data backup method, device and system |
US10333814B2 (en) | 2014-06-30 | 2019-06-25 | Huawei Technologies Co., Ltd. | Method for estimating traffic rate between virtual machine pair, and related device |
CN113220413A (en) * | 2021-04-21 | 2021-08-06 | 新浪网技术(中国)有限公司 | Method and system for clearing ARP (address resolution protocol) table entry of old port of switch after virtual machine migration |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273534A1 (en) * | 1998-09-03 | 2005-12-08 | Compaq Computer Corporation | High speed peripheral interconnect apparatus, method and system |
CN102769670A (en) * | 2012-07-13 | 2012-11-07 | 中兴通讯股份有限公司 | Method, device and system for migration of virtual machines |
CN102929715A (en) * | 2012-10-31 | 2013-02-13 | 曙光云计算技术有限公司 | Method and system for scheduling network resources based on virtual machine migration |
-
2013
- 2013-03-07 CN CN201310073605.9A patent/CN103152200B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050273534A1 (en) * | 1998-09-03 | 2005-12-08 | Compaq Computer Corporation | High speed peripheral interconnect apparatus, method and system |
CN102769670A (en) * | 2012-07-13 | 2012-11-07 | 中兴通讯股份有限公司 | Method, device and system for migration of virtual machines |
CN102929715A (en) * | 2012-10-31 | 2013-02-13 | 曙光云计算技术有限公司 | Method and system for scheduling network resources based on virtual machine migration |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243427A (en) * | 2013-06-19 | 2014-12-24 | 日电(中国)有限公司 | Virtual machine online migration method and data package transmission method and device |
CN104243427B (en) * | 2013-06-19 | 2018-04-06 | 日电(中国)有限公司 | The online moving method of virtual machine, data pack transmission method and equipment |
CN103581036A (en) * | 2013-10-31 | 2014-02-12 | 华为技术有限公司 | Method, device and system for controlling virtual machine network flow |
CN103716221B (en) * | 2013-12-10 | 2017-02-01 | 同济大学 | On-line migration method of virtual machine in wide area network under future network NDN (Named Data Network) |
CN105208048A (en) * | 2014-05-30 | 2015-12-30 | 株式会社日立制作所 | Global migration manager, gateway, virtual machine migration system and method thereof |
US10819610B2 (en) | 2014-06-30 | 2020-10-27 | Huawei Technologies Co., Ltd. | Method for estimating traffic rate between virtual machine pair, and related device |
WO2016000430A1 (en) * | 2014-06-30 | 2016-01-07 | 华为技术有限公司 | Method and related device for estimating traffic rate between virtual machine pairs |
US10333814B2 (en) | 2014-06-30 | 2019-06-25 | Huawei Technologies Co., Ltd. | Method for estimating traffic rate between virtual machine pair, and related device |
CN106453118A (en) * | 2016-11-11 | 2017-02-22 | 深圳市深信服电子科技有限公司 | Flow control method and flow control system |
CN106657330A (en) * | 2016-12-22 | 2017-05-10 | 北京华为数字技术有限公司 | User data migration method and user data backup method, device and system |
CN106657330B (en) * | 2016-12-22 | 2019-08-27 | 北京华为数字技术有限公司 | Migration of subscriber data method and user data backup method, apparatus and system |
CN113220413A (en) * | 2021-04-21 | 2021-08-06 | 新浪网技术(中国)有限公司 | Method and system for clearing ARP (address resolution protocol) table entry of old port of switch after virtual machine migration |
CN113220413B (en) * | 2021-04-21 | 2023-11-21 | 新浪技术(中国)有限公司 | Method and system for removing ARP (Address resolution protocol) table entries of old port of switch after virtual machine migration |
Also Published As
Publication number | Publication date |
---|---|
CN103152200B (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103152200A (en) | Migration method of virtual machine, switch, network management equipment and network system | |
US11200079B2 (en) | System and method for virtual machine live migration | |
US10764111B2 (en) | Preventing concurrent distribution of network data to a hardware switch by multiple controllers | |
WO2015143983A1 (en) | Method and apparatus for implementing acceleration processing on vnf | |
US9432215B2 (en) | Hierarchical network managers | |
US20180375726A1 (en) | Resource Configuration Method, Virtualized Network Function Manager, and Element Management System | |
US9525648B2 (en) | Method for acquiring physical address of virtual machine | |
US11223679B2 (en) | Host device with multi-path layer configured for detection and reporting of path performance issues | |
EP2750331A1 (en) | Virtual network optimizing a physical network | |
CN102316043B (en) | Port virtualization method, switch and communication system | |
CN104580391A (en) | Server bandwidth improving method suitable for cloud computing | |
US9866436B2 (en) | Smart migration of monitoring constructs and data | |
CN105577723A (en) | Method of realizing load sharing in virtualization network and apparatus thereof | |
EP3731459A1 (en) | Initializing server configurations in a data center | |
CN103516547A (en) | Network parameter distribution method and device | |
CN110830574B (en) | Method for realizing intranet load balance based on docker container | |
CN110928637A (en) | Load balancing method and system | |
CN103546315A (en) | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server | |
WO2016082078A1 (en) | Path management system, device and method | |
CN107547258A (en) | The implementation method and device of a kind of network strategy | |
US20190042294A1 (en) | System and method for implementing virtualized network functions with a shared memory pool | |
CN105700823A (en) | Method and apparatus for transmitting data between IP hard disks | |
CN110034951A (en) | The failure switching method and iSCSI major heading device of iscsi target device | |
CN103118115B (en) | Facing cloud calculates virtual machine management method and the device of user | |
CN103685481A (en) | Cloud storage clustering system and cloud storage method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |