CN103152200B - Virtual machine migration method, switch, network management device and network system - Google Patents

Virtual machine migration method, switch, network management device and network system Download PDF

Info

Publication number
CN103152200B
CN103152200B CN201310073605.9A CN201310073605A CN103152200B CN 103152200 B CN103152200 B CN 103152200B CN 201310073605 A CN201310073605 A CN 201310073605A CN 103152200 B CN103152200 B CN 103152200B
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.)
Active
Application number
CN201310073605.9A
Other languages
Chinese (zh)
Other versions
CN103152200A (en
Inventor
黄建兵
谭兆远
仇国华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310073605.9A priority Critical patent/CN103152200B/en
Publication of CN103152200A publication Critical patent/CN103152200A/en
Application granted granted Critical
Publication of CN103152200B publication Critical patent/CN103152200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present embodiments relate to a kind of virtual machine migration method, switch, network management device and network system, switch in this network system is for obtaining the traffic rate of all virtual machines of server, calculate the port speed of virtual machine port, when this port speed reaches default threshold value, determine virtual machine to be migrated on described virtual machine port, and send migration request to network management device;Network management device is for after receiving migration request, inquiry virtual machine port information table, and determine purpose virtual machine port, and migration instruction is sent to Virtual Machine Management Service device, described migration instruction is used for making Virtual Machine Management Service device perform migration operation according to migrating instruction, obtains migration results;Receive the migration results of described Virtual Machine Management Service device transmission and migration results is sent to switch.The present invention can be when switch monitors network congestion, it is achieved the migration of virtual machine.

Description

Virtual machine migration method, switch, network management device and network system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of virtual machine migration method, switch, network management device and network system.
Background technology
Virtual machine (VirtualMachine, VM) refer to by software simulate there is complete hardware system function, the complete computer that operates in a completely isolated environment.Virtual machine migration technology is that server virtualization provides method easily, runs and has the server of virtual machine to have unified " virtual hardware resource ", unlike traditional server has many different hardware resources.
Fig. 1 is the Organization Chart of the network system of prior art.As it can be seen, this network system includes the server 11 at virtual machine place, the network equipment 12 and Virtual Machine Management Service device 13.Wherein, the network equipment 12 Connection Service device 11 and Virtual Machine Management Service device 13, the virtual machine (vm) migration of server 11 can be managed by Virtual Machine Management Service device 13.During when a virtual machine in server 11 because fault causes shutdown, the business of this virtual machine can be switched on another virtual machine in this server, thus reach the purpose of non-interrupting service.
Along with in server 11, quantity and the portfolio of virtual machine increase, each virtual machine takies the internal memory of server 11 and gets more and more, and the situation of the memory space inadequate of server 11 often occurs.Therefore, Virtual Machine Management Service device 13 can the memory space of periodic detection server 11, when the memory space inadequate of server 11 being detected, then can trigger the real-time migration of virtual machine in server 11.In order to ensure that in transition process, virtual machine performs the availability of business, the then downtime that this transition process is the ofest short duration, and the interruption of the imperceptible business of virtual machine user, therefore this transition process is transparent to user.
But, along with communication service is more and more higher to the requirement of bandwidth, when the network equipment 12 that server 11 connects occurs that network bandwidth deficiency i.e. network congestion occurs, then influence whether that the virtual machine of whole network system accesses.And prior art can only trigger the real-time migration of virtual machine when server 11 memory space inadequate being detected, and cannot the bandwidth situation of sensing network equipment 12.Therefore, when network congestion occurs in the network equipment 12 that server 11 connects, Virtual Machine Management Service device 13 cannot 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 of switch connecting virtual machine management server occurs congested, the problem that Virtual Machine Management Service device cannot trigger the migration of virtual machine.
In first aspect, the invention provides a kind of network system, described network system includes: server, switch, network management device and Virtual Machine Management Service device;Described server, by virtual machine port and described switch communication, described server runs and has multiple virtual machine;Described switch is for obtaining the traffic rate of all virtual machines of described server, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, when described switch monitors the threshold value that the port speed of described virtual machine port reaches default, determine virtual machine to be migrated according to default migration strategy, and carry described virtual machine port and the migration request of described virtual machine to be migrated to the transmission of described network management device.
Described network management device is for after receiving the described migration request that described switch sends, virtual machine port information table is inquired about according to described migration request, and determine purpose virtual machine port, and the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port is sent to described Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtains migration results;Receive the migration results of described Virtual Machine Management Service device transmission and described migration results is sent to described switch;Described switch is additionally operable to update the configuration information of described virtual machine port according to described migration results.
In the embodiment that the first is possible, described switch is additionally operable to the traffic rate of all virtual machines of server described in timing acquisition, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device;Described network management device is additionally operable to receive the port speed of the described virtual machine port that described switch sends, and according to the port speed of described virtual machine port, updates described virtual machine port information table.
The first possible embodiment in conjunction with first aspect or first aspect, in the embodiment that the second is possible, described switch is additionally operable to obtain the medium access control MAC Address of self and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;Configure the shared bandwidth upper limit of described virtual machine port, and configuration virtual machine (vm) migration strategy;When after the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
In second aspect, the invention provides a kind of virtual machine migration method, described method includes: switch monitors the port speed of the virtual machine port of described switch;When the port speed of described virtual machine port reaches default threshold value, described switch determines virtual machine to be migrated on described virtual machine port according to the migration strategy preset;Send to network management device and carry described virtual machine port and the migration request of described virtual machine to be migrated;Receive the migration results that described network management device sends, update the configuration information of described virtual machine port according to described migration results.
In the embodiment that the first is possible, described method also includes: the traffic rate of all virtual machines of server described in timing acquisition, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device, so that described network management device is according to the port speed of described virtual machine port, update the virtual machine port information table of self.
The first possible embodiment in conjunction with second aspect or second aspect, in the embodiment that the second is possible, before the port speed of the virtual machine port that described switch monitors described switch, also include: described switch obtains the medium access control MAC Address of self and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;Configure the shared bandwidth upper limit of described virtual machine port, and configuration virtual machine (vm) migration strategy;When after the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
In the third aspect, the invention provides a kind of virtual machine migration method, described method includes: after network management device receives the migration request carrying described virtual machine port and described virtual machine to be migrated that switch sends, described network management device inquiry virtual machine port information table, determines purpose virtual machine port;Send the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port to Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtains migration results;Receive the described migration results that described Virtual Machine Management Service device sends, and described migration results is sent to described switch.
In the embodiment that the first is possible, described method also includes: receive the port speed of the described virtual machine port that described switch sends, and updates 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 characterised in that described switch includes: monitoring means is for monitoring the port speed of the virtual machine port of described switch;Transmitting element is for when described monitoring means monitors the threshold value that the port speed of described virtual machine port reaches default, virtual machine to be migrated is determined according to default migration strategy, generate and carry described virtual machine port and the migration request of described virtual machine to be migrated, send to network management device and carry described virtual machine port and the migration request of described virtual machine to be migrated;Receive unit, for receiving the migration results that described network management device sends, update the configuration information of described virtual machine port according to described migration results.
In the embodiment that the first is possible, described switch also includes: acquiring unit is for obtaining the traffic rate of all virtual machines of described server, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device, so that described network management device is according to the port speed of described virtual machine port, update self virtual machine port information table described.
The first possible embodiment in conjunction with fourth aspect or fourth aspect, in the embodiment that the second is possible, described switch also includes: dispensing unit is for obtaining the MAC Address of described switch and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;Configure the shared bandwidth upper limit of described virtual machine port, and configuration virtual machine (vm) migration strategy;When after the virtual machine activation in described server, receive the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
At the 5th aspect, the invention provides a kind of network management device, it is characterized in that, described network management device includes: query unit is after receiving, when network management device, the migration request carrying described virtual machine port and described virtual machine to be migrated that switch sends, inquiry virtual machine port information table, and determine purpose virtual machine port, and by described virtual machine to be migrated and described purpose virtual machine port transmission to transmitting element;Transmitting element is for receiving described virtual machine to be migrated and described purpose virtual machine port from described query unit, the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port is sent to Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtains migration results;Receive unit to be used for receiving the described migration results that described Virtual Machine Management Service device sends, and described migration results is sent to described switch.
In the embodiment that the first is possible, described network management device also includes: updating block, for receiving the port speed of the described virtual machine port that described switch sends, updates described virtual machine port information table according to the port speed of described virtual machine port.
nullThe virtual machine migration method provided by the application present 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,Virtual machine to be migrated is determined according to default migration strategy,And carry virtual machine port and the migration request of virtual machine to be migrated to network management device transmission,After network management device receives the migration request that switch sends,Inquiry virtual machine port information table,And determine purpose virtual machine port,The migration carrying virtual machine to be migrated and purpose virtual machine port is instructed and is sent to Virtual Machine Management Service device,Virtual Machine Management Service device is made to perform migration operation,The migration results that 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.
Accompanying drawing explanation
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.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage 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 a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Embodiments provide a kind of virtual machine migration method, switch, network management device and network system, described switch is for obtaining the traffic rate of all virtual machines of server, traffic rate according to all virtual machines calculates the port speed of virtual machine port, when switch monitors the threshold value that the port speed of self virtual machine port reaches default, determine virtual machine to be migrated on described virtual machine port according to default migration strategy, and carry virtual machine port and the migration request of virtual machine to be migrated to network management device transmission;Network management device is for after receiving the migration request that switch sends, virtual machine port information table is inquired about according to migration request, and determine purpose virtual machine port, and the migration instruction carrying virtual machine to be migrated and purpose virtual machine port is sent to Virtual Machine Management Service device, described migration instruction is used for making Virtual Machine Management Service device perform migration operation, obtains migration results;Sink virtual machine manages the migration results of server transmission, migration results is sent to described switch, described switch updates the configuration information of described virtual machine port according to described migration results, it is thus possible to when switch monitors network congestion, it is achieved the migration of virtual machine.
The switch that the network congestion related in the present invention refers to be connected with server occurs that the network bandwidth is not enough.Switch in the present invention can be with sensing network bandwidth situation, the port speed of virtual machine port is calculated by the traffic rate of all virtual machines of server described in timing acquisition, when switch monitors the threshold value that the port speed of virtual machine port reaches default, then illustrate that network congestion now occurs, then need 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 it can be seen, the network system that the embodiment of the present invention provides includes: server 21, switch 22, network management device 23 and Virtual Machine Management Service device 24.Described server 21 is communicated with switch 22 by virtual machine port, and described server 21 runs virtual machine.Described virtual machine port refer on switch 22 for the port communicated with described server 21.One described switch 22 can be communicated with different described servers 21 respectively by different virtual machine ports.
Described switch 22 is for obtaining the traffic rate of all virtual machines of described server 21, traffic rate according to all virtual machines calculates the port speed of described virtual machine port, when the virtual machine port of described switch 22 monitors the threshold value that the port speed of described virtual machine port reaches default, determine virtual machine to be migrated on described virtual machine port according to default migration strategy, and carry described virtual machine port and the migration request of described virtual machine to be migrated to the transmission of described network management device 23.Described network management device 23 is for after receiving the migration request that described switch 22 sends, virtual machine port information table is inquired about according to described migration request, determine purpose virtual machine port, the migration carrying described virtual machine to be migrated and described purpose virtual machine port is instructed and is sent to described Virtual Machine Management Service device 24, described Virtual Machine Management Service device 24 receives described after migrating instruction, instruction execution migration operation is migrated according to described, obtain migration results, and the migration results that will obtain after migrating is sent 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, update the configuration information of described virtual machine port according to described migration results.Wherein, described purpose virtual machine port is described virtual machine to be migrated second server to be moved into and the interface of the second switch communication, and described migration operation refers to, by described virtual machine (vm) migration to be migrated to second server;Described default migration strategy is the one 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 the whole virtual machines by described virtual machine port communication, selects the virtual machine that speed is the highest, moves to other servers.The minimum migration strategy of speed refers to from the whole virtual machines by described virtual machine port communication, selects the virtual machine that speed is minimum, moves to other servers.After enter first to go out strategy and slightly refer to from the whole virtual machines by described virtual machine port communication, select the last virtual machine started, move to other servers.
Further, described switch 22 is additionally operable to the traffic rate of all virtual machines of server 21 described in timing acquisition, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device 23.Described network management device 23 is additionally operable to receive the port speed of the described virtual machine port that described switch 22 sends, and according to the port speed of described virtual machine port, updates the described virtual machine port information table of self storage.
Specifically, before the traffic rate of all virtual machines of server 21 described in described switch 22 timing acquisition, described virtual machine port also to be initialized by described switch 22.This initialization includes: obtain the MAC Address of switch self and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;Configure the shared bandwidth upper limit of described virtual machine port, the maximum bandwidth that all virtual machines i.e. connected can be shared, and configuration virtual machine (vm) migration strategy by this virtual machine port;When after the virtual machine activation on described server 21, described switch 22 receives the address resolution protocol (AddressResolutionProtocol that this virtual machine sends, ARP) message, and traffic statistics based on virtual machine IP address are sent to described network management device 23, and the IP address of described virtual machine is added in virtual machine list.Wherein, one IP address of each virtual machine, need speed based on IP address statistics virtual machine.
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
Virtual machine (vm) migration strategy
Virtual machine list (user 1, user 2 ..., user N)
The virtual machine port information table of network management device 23 storage is as shown in table 2.
Table 2
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 1 be all virtual machines that virtual machine port 1 currently accommodates speed and, by that analogy, the port speed of virtual machine port N be all virtual machines that virtual machine port N currently accommodates speed and.
Therefore, the embodiment of the present invention utilizes the traffic rate of all virtual machines of switch acquisition server, traffic rate according to all virtual machines calculates the port speed of virtual machine port, when switch monitors the threshold value that the port speed of virtual machine port reaches default, determine virtual machine to be migrated on virtual machine port according to default migration strategy, and carry virtual machine port and the migration request of virtual machine to be migrated to network management device transmission;After network management device receives migration request, inquiry virtual machine port information table, and determine purpose virtual machine port, and the migration instruction carrying virtual machine to be migrated and purpose virtual machine port is sent to Virtual Machine Management Service device, after Virtual Machine Management Service device receives migration instruction, perform 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 be when monitoring network congestion when switch, it is achieved 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 virtual machine network that the method application embodiment of the present invention two provides.As it can be seen, the present embodiment specifically includes following steps:
Step 310, switch monitors the port speed of the virtual machine port of described switch.
Step 320, when the port speed of described virtual machine port reaches default threshold value, described switch determines virtual machine to be migrated on described virtual machine port according to the migration strategy preset.Wherein, described virtual machine port be described switch-to-server communication port, described default migration strategy is the one 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 virtual machine that speed is the highest, moves to other servers.The minimum migration strategy of speed refers to from whole virtual machines of virtual machine port communication, selects the virtual machine that speed is minimum, moves to other servers.After enter first to go out strategy and slightly refer to from whole virtual machines of virtual machine port communication, select the last virtual machine started, move to other servers.
Step 330, described switch sends to network management device and carries described virtual machine port and the migration request of described virtual machine to be migrated.Described migration request is used for making described network management device inquire about virtual machine port information table, determine purpose virtual machine port, the migration carrying virtual machine user to be migrated and purpose virtual machine port is instructed and is sent to Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtain migration results, and described migration results is sent to described network management device.
Step 340, described switch receives the migration results that described network management device sends, and updates the configuration information of described virtual machine port according to described migration results.
Further, the virtual machine shifting method that the present embodiment provides also includes: the traffic rate of all virtual machines of server described in described switch timing acquisition, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device, so that described network management device is according to the port speed of described virtual machine port, update 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 server described in described switch timing acquisition, also include that described switch obtains the MAC Address of switch self and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;Configure the shared bandwidth upper limit of described virtual machine port, the maximum bandwidth that all virtual machines i.e. connected can be shared, and configuration virtual machine (vm) migration strategy by this virtual machine port;When, after the virtual machine activation on described server, described switch receives the ARP message that this virtual machine sends, and sends traffic statistics based on virtual machine IP address to described network management device, and is added in virtual machine list the IP address of described virtual machine.Wherein, one IP of each virtual machine, need speed based on IP statistics 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 utilizing all virtual machines of switch acquisition 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 described switch monitors the threshold value that the port speed of this virtual machine port reaches default, virtual machine to be migrated is determined according to default migration strategy, and the migration request carried described virtual machine port with told virtual machine user to be migrated is sent to network management device, and receive the migration results that described network management device sends, the configuration information of described virtual machine port is updated according to described migration results.It is thus possible to when switch monitors network congestion, it is achieved 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 virtual machine network that the method application embodiment of the present invention two provides.As it can be seen, the present embodiment specifically includes following steps:
Step 410, after network management device receives the migration request carrying virtual machine to be migrated on virtual machine port and described virtual machine port that switch sends, described network management device inquiry virtual machine port information table, determine purpose virtual machine port.
Step 420, described network management device sends the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port to Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtains migration results.
Step 430, described network management device receives the described migration results that described Virtual Machine Management Service device sends, and described migration results is sent to described switch.Described migration results updates the configuration information of described virtual machine port for making described switch according to described migration results.
Further, the virtual machine migration method that the embodiment of the present invention provides also includes: described network management device receives the port speed of the described virtual machine port that described switch sends, and updates 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.
nullTherefore,The virtual machine migration method that the embodiment of the present invention provides,When network management device receives the port speed of the virtual machine port that switch sends,Update the virtual machine port information table self preserved,After receiving the migration request carrying virtual machine port and virtual machine user to be migrated that switch sends,Virtual machine port information table after inquiry renewal,Determine purpose virtual machine port,And the migration instruction of virtual machine to be migrated and purpose virtual machine port is carried to the transmission of Virtual Machine Management Service device,Virtual Machine Management Service device is made to perform migration operation,And the migration results that sink virtual machine management server sends,Again this migration results is sent switch,Switch is made to update the configuration information of described virtual machine port according to described migration results,It is thus possible to 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 is for performing the virtual machine migration method that the embodiment of the present invention two provides.As it can be seen, the switch that the embodiment of the present invention provides specifically includes: monitoring means 51, transmitting element 52 and reception unit 53.
Described monitoring means 51 is for monitoring the port speed of the virtual machine port of described switch.
Described transmitting element 52 is when the port speed monitoring described virtual machine port when described monitoring means 51 reaches default threshold value, virtual machine to be migrated is determined according to default migration strategy, generate and carry described virtual machine port and the migration request of described virtual machine to be migrated, send to network management device and carry described virtual machine port and the migration request of described virtual machine to be migrated.Described migration request is used for making described network management device inquire about virtual machine port information table, and determine purpose virtual machine port, and the migration instruction carrying described virtual machine user to be migrated and described purpose virtual machine port is sent to Virtual Machine Management Service device, described Virtual Machine Management Service device is made to migrate instruction execution migration operation according to described, obtain migration results, and described migration results is sent to described network management device.
Described reception unit 53, for receiving the migration results that described network management device sends, updates the configuration information of described virtual machine port according to described migration results.
Wherein, preset migration strategy be the one 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 virtual machine that speed is the highest, moves to other servers.The minimum migration strategy of speed refers to from whole virtual machines of virtual machine port communication, selects the virtual machine that speed is minimum, 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 started, move to other servers.
Further, the switch that the embodiment of the present invention provides also includes acquiring unit 54 and dispensing unit 55.
Described acquiring unit 54 is for obtaining the traffic rate of all virtual machines of server, traffic rate according to described all virtual machines calculates the port speed of virtual machine port, and the port speed of described virtual machine port is sent to network management device, so that described network management device is according to the port speed of described virtual machine port, update the described virtual machine port information table of self.
Described dispensing unit 55 is for obtaining the MAC Address of described switch and the port numbers of the port with described server communication, and is configured to virtual machine port by described with server communication port type;Configure the shared bandwidth upper limit of all virtual machines of described virtual machine port, and configuration virtual machine (vm) migration strategy;When after the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
Therefore, the switch that the embodiment of the present invention provides, the port speed of virtual machine port is calculated by obtaining the traffic rate of all virtual machines of server, and the port speed of virtual machine port is sent to network management device, when switch monitors the threshold value that the port speed of this virtual machine port reaches default, switch determines virtual machine to be migrated according to the migration strategy preset, and carry virtual machine port and the migration request of virtual machine user to be migrated to network management device transmission, and the migration results that receiving network managing equipment sends, it is thus possible to 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 is for performing the virtual machine migration method that the embodiment of the present invention three provides.As it can be seen, the network management device that the embodiment of the present invention provides specifically includes: query unit 61, transmitting element 62 and reception unit 63.
Described query unit 61 is after receiving, when network management device, the migration request carrying virtual machine port and virtual machine to be migrated that switch sends, inquiry virtual machine port information table, and determine purpose virtual machine port, and give described transmitting element 62 by described virtual machine to be migrated and described purpose virtual machine port transmission.
Described transmitting element 62 is for receiving described virtual machine to be migrated and described purpose virtual machine port from described query unit 61, the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port is sent to Virtual Machine Management Service device, so that described Virtual Machine Management Service device performs migration operation, obtain migration results.
Described reception unit 63 is for receiving the described migration results that described Virtual Machine Management Service device sends, and described migration results is sent to described switch, so that described switch updates the configuration information of described virtual machine port according to described migration results.
Further, the network management device that the embodiment of the present invention provides also includes: updating block 64.
The port speed of the virtual machine port that described updating block 64 sends for desampler, updates 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, when the port speed receiving the virtual machine port that switch sends, update the virtual machine port information table self preserved, after receiving the migration request carrying virtual machine port and virtual machine user to be migrated that switch sends, virtual machine port information table after inquiry renewal, determine purpose virtual machine port, and the migration instruction of virtual machine to be migrated and purpose virtual machine port is carried to the transmission of Virtual Machine Management Service device, Virtual Machine Management Service device is made to perform migration operation, obtain migration results, and the migration results that sink virtual machine management server sends, again this migration results is sent switch, make to update the configuration information of described virtual machine port according to this migration results, it is thus possible to 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 is for performing the virtual machine migration method that the embodiment of the present invention two provides.As it can be seen, the embodiment of the present invention specifically includes switch ports themselves 71, processor 72 and memorizer 73.Cross bus 74 is used for connecting switch ports themselves 71, processor 72 and memorizer 73.
Switch ports themselves 71 is for being connected with the server 21 in network system as shown in Figure 2, network management device 22 and Virtual Machine Management Service device 23.
Memorizer 73 can be permanent memory, such as hard disk drive and flash memory, has software module and device driver in memorizer 73.Software module is able to carry out the various functional modules of said method of the present invention;Device driver can be network and interface drive program.
On startup, these component softwares are loaded in memorizer 73, are then accessed by processor 72 and perform method as shown in Figure 3.
The schematic diagram of the network management device that Fig. 8 provides for the embodiment of the present invention seven, this network management device is for performing the virtual machine migration method that the embodiment of the present invention three provides.As it can be seen, the embodiment of the present invention specifically includes: network management device port 81, processor 82 and memorizer 83.Network management device bus 84 is used for connecting network management device port 81, processor 82 and memorizer 83.
Network management device port 81 is for being connected with the switch 22 in network system as shown in Figure 2 and Virtual Machine Management Service device 23.
Memorizer 83 can be permanent memory, such as hard disk drive and flash memory, has software module and device driver in memorizer 83.Software module is able to carry out the various functional modules of said method of the present invention;Device driver can be network and interface drive program.
On startup, these component softwares are loaded in memorizer 83, are then accessed by processor 82 and perform method as shown in Figure 4.
Professional should further appreciate that, the unit of each example described in conjunction with the embodiments described herein and algorithm steps, can be with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software, the most generally describe composition and the step of each example according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use different methods to realize described function to each specifically should being used for, but this realization is it is not considered that beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can use the software module that hardware, processor perform, or the combination of the two is implemented.In any other form of storage medium that software module is known in can being placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field.
Above-described detailed description of the invention; the purpose of the present invention, technical scheme and beneficial effect are further described; it is it should be understood that; the foregoing is only the detailed description of the invention of the present invention; the protection domain being not intended to limit the present invention; all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the present invention.

Claims (15)

1. a network system, it is characterised in that described network system includes: server, switch, network management device and Virtual Machine Management Service device;Described server, by virtual machine port and described switch communication, described server runs and has virtual machine;
Described switch is for obtaining the traffic rate of all virtual machines of described server, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, when described switch monitors the threshold value that the port speed of described virtual machine port reaches default, determine virtual machine to be migrated on described virtual machine port according to default migration strategy, and carry described virtual machine port and the migration request of described virtual machine to be migrated to the transmission of described network management device;
Described network management device is for after receiving the described migration request that described switch sends, virtual machine port information table is inquired about according to described migration request, determine purpose virtual machine port, the migration carrying described virtual machine to be migrated and described purpose virtual machine port is instructed and is sent to described Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device migrate instruction execution migration operation according to described, obtains migration results;Receive the migration results of described Virtual Machine Management Service device transmission and described migration results is sent to described switch;
Described switch is additionally operable to, according to described migration results, update the configuration information of the described virtual machine port of described switch storage.
Network system the most according to claim 1, it is characterized in that, described switch is additionally operable to the traffic rate of all virtual machines of server described in timing acquisition, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device;
Described network management device is additionally operable to receive the port speed of the described virtual machine port that described switch sends, and according to the port speed of described virtual machine port, updates described virtual machine port information table.
Network system the most according to claim 1 and 2, it is characterized in that, described switch is additionally operable to obtain the medium access control MAC Address of self and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;Configure the shared bandwidth upper limit of described virtual machine port, and configuration virtual machine (vm) migration strategy;When after the virtual machine activation in described server, described switch receives the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
Network system the most according to claim 3, it is characterised in that described default migration strategy is the one 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, it is characterised in that described method includes:
The traffic rate of all virtual machines of switch timing acquisition server, calculates the port speed of the virtual machine port of described switch according to the traffic rate of described all virtual machines;
When the port speed of described virtual machine port reaches default threshold value, described switch determines virtual machine to be migrated on described virtual machine port according to the migration strategy preset;
Send to network management device and carry described virtual machine port and the migration request of described virtual machine to be migrated, obtain migration results for described network management device according to described migration request;
Receive the described migration results that described network management device sends, according to described migration results, update the configuration information of the described virtual machine port of described switch storage.
Virtual machine migration method the most according to claim 5, it is characterised in that described method also includes:
The traffic rate of all virtual machines of server described in timing acquisition, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device, so that described network management device is according to the port speed of described virtual machine port, update the virtual machine port information table of self.
7. according to the virtual machine migration method described in claim 5 or 6, it is characterised in that before the port speed of the virtual machine port that described switch monitors described switch, also include:
Described switch obtains the MAC Address of self and the port numbers of the port with described server communication, and the port type of the described port with server communication is configured to virtual machine port;
Configure the shared bandwidth upper limit of described virtual machine port, and configuration virtual machine (vm) migration strategy;
When after the virtual machine activation in described server, receive the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
Virtual machine migration method the most according to claim 7, it is characterised in that described default migration strategy is the one 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, it is characterised in that described method includes:
After network management device receives the migration request carrying virtual machine to be migrated on virtual machine port and described virtual machine port that switch sends, described network management device inquiry virtual machine port information table, determine purpose virtual machine port;
Send the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port to Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtains migration results;
Receive the described migration results that described Virtual Machine Management Service device sends, and described migration results is sent to described switch;
Wherein, on described virtual machine port, virtual machine to be migrated is the traffic rate of all virtual machines by described switch timing acquisition server, communication according to described all virtual machines calculates the port speed of the virtual machine port of described switch, when the port speed of described virtual machine port reaches default threshold value, determine according to presetting migration strategy.
Virtual machine migration method the most according to claim 9, it is characterised in that described method also includes:
Receive the port speed of the described virtual machine port that described switch sends, update the described virtual machine port information table of self according to the port speed of described virtual machine port.
11. 1 kinds of switches, it is characterised in that described switch includes:
Monitoring means, for the traffic rate of all virtual machines of timing acquisition server, calculates the port speed of the virtual machine port of described switch according to the traffic rate of described all virtual machines;
Transmitting element, during for monitoring threshold value that the port speed of described virtual machine port reaches default when described monitoring means, virtual machine to be migrated is determined according to default migration strategy, generate and carry described virtual machine port and the migration request of described virtual machine to be migrated, send to network management device and carry described virtual machine port and the migration request of described virtual machine to be migrated, obtain migration results for described network management device according to described migration request;
Receive unit, for receiving the described migration results that described network management device sends, according to described migration results, update the configuration information of the described virtual machine port of described switch storage.
12. switches according to claim 11, it is characterised in that described switch also includes:
Acquiring unit, for obtaining the traffic rate of all virtual machines of described server, traffic rate according to described all virtual machines calculates the port speed of described virtual machine port, and the port speed of described virtual machine port is sent to described network management device, so that described network management device is according to the port speed of described virtual machine port, update the virtual machine port information table of self.
13. according to the switch described in claim 11 or 12, it is characterised in that described switch also includes:
Dispensing unit, for obtaining the MAC Address of described switch and the port numbers of the port with described server communication, and is configured to virtual machine port by the port type of the described port with server communication;Configure the shared bandwidth upper limit of described virtual machine port, and configuration virtual machine (vm) migration strategy;When after the virtual machine activation in described server, receive the ARP message that described virtual machine sends, traffic statistics based on described virtual machine IP address are sent to described network management device, and the IP address of described virtual machine is added in virtual machine list.
14. 1 kinds of network management devices, it is characterised in that described network management device includes:
Query unit, after receiving, when network management device, the migration request carrying virtual machine to be migrated on virtual machine port and described virtual machine port that switch sends, inquiry virtual machine port information table, determine purpose virtual machine port, and by described virtual machine to be migrated and described purpose virtual machine port transmission to transmitting element;
Transmitting element, instruction is migrated for generating according to described virtual machine to be migrated and described purpose virtual machine port, the migration instruction carrying described virtual machine to be migrated and described purpose virtual machine port is sent to Virtual Machine Management Service device, described migration instruction is used for making described Virtual Machine Management Service device perform migration operation, obtains migration results;
Receive unit, for receiving the described migration results that described Virtual Machine Management Service device sends, and described migration results is sent to described switch;
Wherein, on described virtual machine port, virtual machine to be migrated is the traffic rate of all virtual machines by described switch timing acquisition server, traffic rate according to described all virtual machines calculates the virtual machine port speed of described switch, when the port speed of described virtual machine port reaches default threshold value, determine according to presetting migration strategy.
15. network management devices according to claim 14, it is characterised in that described network management device also includes:
Updating block, for receiving the port speed of the described virtual machine port that described switch sends, updates described virtual machine port information table according to the port speed of described virtual machine port.
CN201310073605.9A 2013-03-07 2013-03-07 Virtual machine migration method, switch, network management device and network system Active CN103152200B (en)

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 CN103152200A (en) 2013-06-12
CN103152200B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243427B (en) * 2013-06-19 2018-04-06 日电(中国)有限公司 The online moving method of virtual machine, data pack transmission method and equipment
CN103581036B (en) * 2013-10-31 2017-05-24 华为技术有限公司 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
CN104243231B (en) * 2014-06-30 2018-01-23 华为技术有限公司 The evaluation method and relevant device of flow rate between virtual machine pair
US10333814B2 (en) 2014-06-30 2019-06-25 Huawei Technologies Co., Ltd. Method for estimating traffic rate between virtual machine pair, and related device
CN106453118B (en) * 2016-11-11 2020-01-07 深信服科技股份有限公司 Flow control method and flow control system
CN106657330B (en) * 2016-12-22 2019-08-27 北京华为数字技术有限公司 Migration of subscriber data method and user data backup method, apparatus and system
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6816934B2 (en) * 2000-12-22 2004-11-09 Hewlett-Packard Development Company, L.P. Computer system with registered peripheral component interconnect device for processing extended commands and attributes according to a registered peripheral component interconnect protocol

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN103152200A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
CN103152200B (en) Virtual machine migration method, switch, network management device and network system
US11296960B2 (en) Monitoring distributed applications
US9525648B2 (en) Method for acquiring physical address of virtual machine
CN108780410B (en) Network virtualization of containers in a computing system
US9876756B2 (en) Network access method and device for equipment
CN105577723B (en) Virtualize the method and apparatus that load balancing is realized in network
EP3316532A1 (en) Computer device, system and method for implementing load balancing
US8625595B2 (en) Fiber channel identifier mobility for fiber channel and fiber channel over ethernet networks
US11349806B2 (en) Methods, apparatuses and systems for assigning IP addresses in a virtualized environment
CN107800743B (en) Cloud desktop system, cloud management system and related equipment
CN106301859B (en) Method, device and system for managing network card
US10120729B2 (en) Virtual machine load balancing
WO2015143983A1 (en) Method and apparatus for implementing acceleration processing on vnf
US20150229641A1 (en) Migration of a security policy of a virtual machine
US10572291B2 (en) Virtual network management
CN109981493B (en) Method and device for configuring virtual machine network
WO2016028927A1 (en) Methods and system for allocating an ip address for an instance in a network function virtualization (nfv) system
AU2013230945A1 (en) Multitenant access to multiple desktops on host machine partitions in a service provider network
JP2016536721A (en) Client premises resource control via provider-defined interface
US20130007253A1 (en) Method, system and corresponding device for load balancing
WO2018218977A1 (en) Method for orchestrating software defined network, and sdn controller
CN104580391A (en) Server bandwidth improving method suitable for cloud computing
CN102821023A (en) Method and device for dynamically migrating VLAN (virtual local area network) configuration
CN104506654A (en) Cloud computing system and backup method of dynamic host configuration protocol server
CN103401954B (en) The implementation method of virtual DHCP

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