CN103164255A - Virtual machine network communication implementation method, virtual machine monitor and physical host - Google Patents

Virtual machine network communication implementation method, virtual machine monitor and physical host Download PDF

Info

Publication number
CN103164255A
CN103164255A CN2013100689664A CN201310068966A CN103164255A CN 103164255 A CN103164255 A CN 103164255A CN 2013100689664 A CN2013100689664 A CN 2013100689664A CN 201310068966 A CN201310068966 A CN 201310068966A CN 103164255 A CN103164255 A CN 103164255A
Authority
CN
China
Prior art keywords
microsoft loopback
loopback adapter
virtual
network interface
interface card
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
Application number
CN2013100689664A
Other languages
Chinese (zh)
Other versions
CN103164255B (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 CN201310068966.4A priority Critical patent/CN103164255B/en
Publication of CN103164255A publication Critical patent/CN103164255A/en
Application granted granted Critical
Publication of CN103164255B publication Critical patent/CN103164255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a virtual machine network communication implementation method, a virtual machine monitor and a physical host. The virtual machine network communication implementation method comprises the following steps: at least two virtual network adapters corresponding to physical network adapters are constructed to a virtual network adapter set by a virtual machine monitor (VMM); a virtual aggregation network adapter is used for driving to receive network transmission requesting information of a virtual machine, a uniform virtual network adapter is used for driving to transfer the virtual network adapters from the virtual network adapter set, and therefore a to-be-distributed virtual aggregation network adapter is confirmed, wherein the to-be-distributed virtual aggregation network adapter is the virtual aggregation network adapter mapped by the virtual network adapter, or the virtual aggregation network adapter which chooses one virtual network adapter from at least two virtual network adapter sets to aggregate by using an aggregation technology; and the virtual aggregation network adapter is used for driving to transfer the to-be-distributed virtual aggregation network adapter, and the to-be-distributed virtual aggregation network adapter is controlled to execute the network transmission requesting information. The virtual machine network communication implementation method achieves migration and transfer of the virtual machine among different hardware devices.

Description

Virtual machine network Realization Method of Communication and monitor of virtual machine and physical host
Technical field
The embodiment of the present invention relates to the communication technology, relates in particular to a kind of virtual machine network Realization Method of Communication and monitor of virtual machine and physical host.
Background technology
Virtual is a hot spot technology of present data center, and its core meaning is to help data center, and large-scale workstation is with lower TCO, and dirigibility and the reaction capacity of its environment risen to a new level.Nowadays central processing unit (Central Processing Unit, CPU) and the Intel Virtualization Technology develop rapidly of content, and I/O (Input/Output, I/O) virtual but relatively backward, become the performance bottleneck of Intel Virtualization Technology fast development, a lot of hardware producer all proposes and has used different solutions for the I/O Intel Virtualization Technology.The virtual mode compatibility that front and back end the earliest drives is good, but the performance loss that virtualization overhead causes is large.
In order to improve the virtualizing performance of the network equipment, some new Intel Virtualization Technologies constantly are applied in new network interface card, virtual (the Single Root Input Output Virtual of single input and output for example, be called for short SRIOV) and virtual machine facility formation (Virtual Machine Device Queue is called for short VMDQ).But this virtual machine (Virtual Machine, the virtual mode of abbreviation VM) directly taking over physical equipment has reduced monitor of virtual machine (Virtual Machine Monitor, abbreviation VMM) program is managerial to equipment, and can't support the migration between heterogeneous networks equipment, can not embody the strong Inherent advantage of virtual manageability.How to carry out balance between manageability and performance, proposed a new difficult point to industry.
Another kind of I/O Intel Virtualization Technology is based on the network virtualization scheme of straight-through technology, virtual machine is direct and hardware device is mutual, the distribution processor work of the complete paired data bag of hardware device, MOS (Management Operation System, be called for short OS), only do the work of equipment control, the network data of reality do not processed.It is little that the advantage of this virtual mode maximum is exactly the performance loss.
Virtual machine is direct and hardware device is mutual, and virtual machine directly uses the technology of the driving of hardware device, causes virtual machine to move between the physical machine of the physical network card that uses the different virtual type because network device driver is inconsistent.Can't migrate to normal hardware device if certain hardware device breaks down or netting twine drops, can cause the network of virtual machine obstructed, thereby can't bring into play the strong sharpest edges of virtual management.
Summary of the invention
The embodiment of the present invention provides a kind of virtual machine network Realization Method of Communication and monitor of virtual machine and physical host, to improve the input and output Intel Virtualization Technology, realizes that the migration of virtual machine between different hardware equipment call.
First aspect, the embodiment of the present invention provide a kind of virtual machine network Realization Method of Communication, are applied to physical host, wherein said physical host comprises hardware layer, operate in the monitor of virtual machine VMM on described hardware layer, operate at least one virtual machine on described VMM, comprising:
At least two physical network cards of VMM general each Microsoft Loopback Adapter of correspondence respectively are configured to the Microsoft Loopback Adapter group;
VMM drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups;
VMM drives by virtual polymerization network interface card and calls described virtual polymerization network interface card to be allocated, controls described virtual polymerization network interface card to be allocated and carries out described Internet Transmission solicited message.
In the possible implementation of the first of first aspect, described VMM will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group and comprise:
VMM fictionalizes respectively each corresponding Microsoft Loopback Adapter with described at least two physical network cards;
VMM is according to the virtual type of each physical network card, and each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.
The implementation possible according to the first of first aspect, in the possible implementation of the second, described virtual type comprises: based on the virtual type of single input and output Intel Virtualization Technology and/or based on the virtual type of virtual machine facility queue technology.
According to first aspect, in the third possible implementation, described VMM drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, call Microsoft Loopback Adapter from the Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, comprising:
VMM drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card;
VMM compares the demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter, obtains comparative result;
VMM calls Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
According to the third possible implementation of first aspect, in the 4th kind of possible implementation, described VMM determines virtual polymerization network interface card to be allocated from each Microsoft Loopback Adapter according to comparative result, comprising:
If described demand bandwidth value is less than or equal to the bandwidth value of described Microsoft Loopback Adapter, VMM selects any one Microsoft Loopback Adapter to be mapped as virtual polymerization network interface card from any described Microsoft Loopback Adapter group, and wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
If described demand bandwidth value is greater than the bandwidth value of described Microsoft Loopback Adapter, VMM obtains the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared;
If described ratio is less than or equal to the number of described Microsoft Loopback Adapter group, VMM respectively selects a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a virtual polymerization network interface card, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
If described ratio is greater than the number of described Microsoft Loopback Adapter group, VMM sends the described virtual polymeric network card crash of virtual machine application of described Internet Transmission solicited message.
Second aspect, the embodiment of the present invention provide a kind of monitor of virtual machine, are applied to physical host, comprising: the Microsoft Loopback Adapter group builds module, be used for will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group;
Virtual polymerization network interface card determination module to be allocated, be used for driving by virtual polymerization network interface card the Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups;
Virtual polymerization network interface card calling module is used for driving by virtual polymerization network interface card and calls described virtual polymerization network interface card to be allocated, controls described virtual polymerization network interface card to be allocated and carries out described Internet Transmission solicited message.
In the possible implementation of the first of second aspect, described Microsoft Loopback Adapter group builds module and comprises:
The Microsoft Loopback Adapter acquiring unit is used for described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter;
Microsoft Loopback Adapter group construction unit is used for the virtual type according to each physical network card, and each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.
According to a kind of possible implementation of second aspect, in the possible implementation of the second, virtual type comprises based on the virtual type of single input and output Intel Virtualization Technology and/or based on the virtual type of virtual machine facility queue technology;
Described Microsoft Loopback Adapter group construction unit specifically is used for: according to the virtual type of each physical network card, each Microsoft Loopback Adapter of physical network card is configured to described Microsoft Loopback Adapter group.
According to second aspect, in the third possible implementation of second aspect, described virtual polymerization network interface card determination module to be allocated comprises:
The solicited message receiving element is used for the Internet Transmission solicited message by virtual polymerization network interface card driving sink virtual machine;
The bandwidth comparing unit compares for the demand bandwidth value that described Internet Transmission solicited message is carried and the bandwidth value of a Microsoft Loopback Adapter, obtains comparative result;
The network interface card determining unit, be used for calling Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
According to the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described network interface card determining unit specifically comprises:
The first network interface card is determined subelement, if be used for the bandwidth value that described demand bandwidth value is less than or equal to described Microsoft Loopback Adapter, select any one Microsoft Loopback Adapter to be mapped as virtual polymerization network interface card from any described Microsoft Loopback Adapter group, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
Ratio is determined subelement, if be used for described demand bandwidth value greater than the bandwidth value of described Microsoft Loopback Adapter, obtain the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared;
Network interface card polymerization subelement, if be used for the number that described ratio is less than or equal to described Microsoft Loopback Adapter group, respectively select a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a virtual polymerization network interface card, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
Apply for failed subelement, if be used for described ratio greater than the number of described Microsoft Loopback Adapter group, send the described virtual polymeric network card crash of virtual machine application of described Internet Transmission solicited message.
The third aspect, the embodiment of the present invention provides a kind of physical host, comprise: hardware layer, operate in the monitor of virtual machine VMM on described hardware layer, operate at least one virtual machine on described monitor of virtual machine VMM, wherein, described VMM be used for will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group; The Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated can be the described virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the described virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
In the possible implementation of the first of the third aspect, described VMM specifically is used for:
Described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter;
According to the virtual type of each physical network card, each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group; The Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
According to the third aspect, in the possible implementation of the second of the third aspect, described VMM specifically is used for:
Drive the Internet Transmission solicited message that receives described virtual machine by virtual polymerization network interface card;
The demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter are compared, obtain comparative result;
Call Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
Virtual machine network Realization Method of Communication, monitor of virtual machine and physical host that the embodiment of the present invention provides, be configured to the Microsoft Loopback Adapter group by the Microsoft Loopback Adapter that physical network card is corresponding, and adopt unified Microsoft Loopback Adapter to drive to call Microsoft Loopback Adapter, directly use the driving of physical network card due to virtual machine in prior art, it is inconsistent that yet physical network card drives, and causes virtual machine to move between the physical machine of using different physical network cards.And in the embodiment of the present invention, VMM adopts unified Microsoft Loopback Adapter to drive to call Microsoft Loopback Adapter, therefore, solved to a certain extent virtual machine and moved the problem of calling between different physical network cards, simultaneously owing to having introduced Microsoft Loopback Adapter group concept, solved and caused the problem of makeing mistakes to doing polymerization from a plurality of Microsoft Loopback Adapters on same port, and adopted polymerization technique to promote the bandwidth of Microsoft Loopback Adapter when virtual machine application Microsoft Loopback Adapter operates.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do one to the accompanying drawing of required use in embodiment or description of the Prior Art and introduce simply, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 1 provides for the embodiment of the present invention one;
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 2 provides for the embodiment of the present invention two;
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 3 provides for the embodiment of the present invention three;
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 4 provides for the embodiment of the present invention four;
The structural representation of a kind of physical host that Fig. 5 A provides for the various embodiments described above of the present invention;
The structural representation of the another kind of physical host that Fig. 5 B provides for the various embodiments described above of the present invention;
The structural representation of the monitor of virtual machine that Fig. 6 provides for the embodiment of the present invention five;
The structural representation of the monitor of virtual machine that Fig. 7 provides for the embodiment of the present invention six;
The structural representation of the another kind of physical host 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.
To facilitate understanding of the present embodiment of the invention, at first introduce at this several key elements that can introduce in embodiment of the present invention description.
VMM: be for example Xen Hypervisor.VMM is as administration and supervision authorities, in order to management, the distribution of completing hardware resource; For virtual machine presents the virtual hardware platform; Realize scheduling and the isolation of virtual machine.Wherein, the virtual hardware platform provides various hardware resources to each virtual machine of operation on it, as virtual processor (as VCPU), virtual memory, virtual disk, Microsoft Loopback Adapter etc. are provided.
VM: can simulate one or many virtual computing machines by software virtual machine on a physical computer, and these virtual machines carry out work just as real computing machine, can installing operating system and application program on virtual machine, in the present invention, Client OS (Guest Operate System is called for short Guest OS) is arranged on virtual machine.Virtual machine is the addressable network resource also.For for the application program of moving in virtual machine, similarly be to carry out work in real computing machine.
The Microsoft Loopback Adapter group builds module: in the present invention, introduced the Microsoft Loopback Adapter group at the VMM layer and built module, the Microsoft Loopback Adapter group build module be used for the physical network card of different virtual type respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group.
Hardware layer: the hardware platform of virtualized environment operation.Wherein, hardware layer can comprise multiple hardwares, and for example the hardware layer of certain computing node can comprise processor (as CPU) and internal memory, can also comprise network interface card, storer etc. high speed/low speed I/O (Input/Output is called for short I/O) equipment.
Embodiment one
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 1 provides for the embodiment of the present invention one.The method of the present embodiment is applicable to the situation of virtual machine call physical network card.The method can be carried out by being configured in monitor of virtual machine, and this device usually realizes in the mode of hardware and/or software, can be integrated in all kinds of can the network equipment of configuring virtual machine in.With reference to Fig. 1, the virtual machine network Realization Method of Communication of the embodiment of the present invention comprises the steps:
Step 110, at least two physical network cards of VMM general each Microsoft Loopback Adapter of correspondence respectively are configured to the Microsoft Loopback Adapter group;
In step 110, VMM can be according to the virtual type of each physical network card, and each Microsoft Loopback Adapter that each physical network card of every kind of virtual type is fictionalized is configured to a Microsoft Loopback Adapter group.
Step 120, VMM drive the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, and call Microsoft Loopback Adapter in driving from described Microsoft Loopback Adapter group by unified Microsoft Loopback Adapter, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated can be the described virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the described virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups;
In step 120, virtual polymerization network interface card drives the Internet Transmission solicited message of sink virtual machine, and call unified Microsoft Loopback Adapter driving according to described Internet Transmission solicited message, unified Microsoft Loopback Adapter drives by calling each physical network card concentrates bottom layer driving identify each Microsoft Loopback Adapter in corresponding Microsoft Loopback Adapter group and call Microsoft Loopback Adapter accordingly, wherein, each Microsoft Loopback Adapter in the corresponding Microsoft Loopback Adapter group of identification can identify to identify according to each Microsoft Loopback Adapter in each Microsoft Loopback Adapter group.Concrete, respectively virtual polymerization network interface card driving, unified virtual polymerization network interface card are driven and concentrate bottom layer driving to be introduced: it is the program that VCPU controlled and used virtual polymerization network interface card that the virtual polymerization network interface card in the present invention drives.Unified Microsoft Loopback Adapter drive be to each physical network card respectively corresponding each Microsoft Loopback Adapter carry out unified management, and can make virtual machine move between the physical machine of using different physical network cards.Concentrated bottom layer driving is for example the corresponding bottom layer driving of the physical network card of the virtual type of SRIOV or is the corresponding bottom layer driving of physical network card of the virtual type of VMDQ, can directly call Microsoft Loopback Adapter corresponding to physical network card in the process of using network by the corresponding bottom layer driving of physical network card.Described virtual polymerization network interface card to be allocated (Virtual Partition Aggregation, be called for short VPA) can be directly to obtain a Microsoft Loopback Adapter from any one Microsoft Loopback Adapter group, this Microsoft Loopback Adapter is shone upon to VPA, with this VPA as VPA to be allocated; Can be also that each random selects a Microsoft Loopback Adapter from least two Microsoft Loopback Adapter groups respectively, and adopt polymerization technique to be polymerized to a VPA, with this VPA as VPA to be allocated.In the present invention, mentioned polymerization technique belongs to the industry prior art, admittedly do not repeat them here.
Step 130, VMM drive by virtual polymerization network interface card and call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
Virtual type by the judgement physical network card, and fictionalize each corresponding Microsoft Loopback Adapter according to the virtual type of each physical network card, and each Microsoft Loopback Adapter that the physical network card of each virtual type fictionalizes is configured to a Microsoft Loopback Adapter group, realize that virtual machine can move between the physical machine of using different physical network cards, and adopt polymerization technique to promote the bandwidth of Microsoft Loopback Adapter when virtual machine application Microsoft Loopback Adapter operates and use unified Microsoft Loopback Adapter to drive and call Microsoft Loopback Adapter.
The virtual machine network Realization Method of Communication that the embodiment of the present invention provides, virtual type by considering physical network card also builds the Microsoft Loopback Adapter group, and use unified Microsoft Loopback Adapter to drive and call definite Microsoft Loopback Adapter, solved the problem that virtual machine can not move between the physical machine of using different physical network cards, simultaneously owing to having introduced Microsoft Loopback Adapter group concept, solved and caused the problem of makeing mistakes to doing polymerization from a plurality of Microsoft Loopback Adapters on same port, and the polymerization technique that adopts when virtual machine application Microsoft Loopback Adapter operates has promoted the VPA bandwidth.
Embodiment two
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 2 provides for the embodiment of the present invention two on the basis of above-described embodiment technical scheme, further is optimized.With reference to Fig. 2, in the embodiment of the present invention, with at least two physical network cards respectively the operation that is configured to the Microsoft Loopback Adapter group of corresponding each Microsoft Loopback Adapter specifically comprise the steps:
Step 111, VMM fictionalize respectively each corresponding Microsoft Loopback Adapter with at least two physical network cards;
Step 112, VMM be according to the virtual type of each physical network card, and each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.
Virtual type comprises based on the virtual type of SRIOV technology and/or based on virtual type of VMDQ technology etc., is perhaps common network interface card that can not be virtual.If the physical network card of general type, with a physical network card of this general type through Microsoft Loopback Adapter of virtual acquisition once.Virtual type according to each physical network card, the process that each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group is as follows: describe as an example of two physical network cards example, two physical network cards are respectively based on the physical network card of the virtual type of SRIOV technology with based on the physical network card of the virtual type of VMDQ technology.Physical network card for based on the virtual type of SRIOV technology fictionalizes M network interface card SR1 to SRM with each physical network card based on the virtual type of SRIOV technology; For the physical network card based on the virtual type of VMDQ technology, each physical network card based on the virtual type of VMDQ technology is fictionalized M network interface card VQ1 to VQM, wherein, the value of M is at least greater than 2, the Microsoft Loopback Adapter group builds module and detects all network interface cards that the physical network card in VMM fictionalizes, and all network interface cards that the physical network card in VMM fictionalizes are mapped as Microsoft Loopback Adapter VP, all Microsoft Loopback Adapter VP can use unified Microsoft Loopback Adapter to drive and call.The Microsoft Loopback Adapter group builds module can also judge physical network card under each Microsoft Loopback Adapter VP, and according to the virtual type of the physical network card under each Microsoft Loopback Adapter VP, each Microsoft Loopback Adapter VP is named.All Microsoft Loopback Adapter VP that for example belong to the physical network card of the virtual type of SRIOV unify called after VP11 to VP1M; All Microsoft Loopback Adapter VP that belong to the physical network card of the virtual type of VMDQ unify called after VP21 to VP2M.VP11 is configured to a Microsoft Loopback Adapter group to VP1M, and VP21 is configured to another Microsoft Loopback Adapter group to VP2M.
The virtual machine network Realization Method of Communication that the embodiment of the present invention provides, by introducing Microsoft Loopback Adapter group concept, can pass through the virtual type classification of physical network card from each Microsoft Loopback Adapter of different port, avoided causing the problem of makeing mistakes to doing polymerization from a plurality of Microsoft Loopback Adapters on same port, solved the problem that virtual machine can not move between the physical machine of the physical network card that uses the different virtual type, and the polymerization technique that adopts has promoted the VPA bandwidth when virtual machine application Microsoft Loopback Adapter operates.
Embodiment three
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 3 provides for the embodiment of the present invention three on the basis of above-described embodiment one technical scheme, further is optimized.With reference to Fig. 3, in the embodiment of the present invention, drive the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, call Microsoft Loopback Adapter from the Microsoft Loopback Adapter group, specifically comprise the steps: with the operation of determining virtual polymerization network interface card to be allocated
Step 121, VMM drive the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card;
Step 122, VMM compare the demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter, obtain comparative result;
In step 122, the bandwidth of a described Microsoft Loopback Adapter is to choose at random the bandwidth of a Microsoft Loopback Adapter from any one Microsoft Loopback Adapter group, and the bandwidth value of each Microsoft Loopback Adapter all equates.
Step 123, VMM call Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine VPA to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
The virtual machine network Realization Method of Communication that the embodiment of the present invention provides, drive and to distribute any one Microsoft Loopback Adapter in any one Microsoft Loopback Adapter group for virtual machine by virtual polymerization network interface card, be convenient to realize that virtual machine to the calling of physical network card, also is convenient to use other physical network cards when certain physical network card fault.
Embodiment four
The process flow diagram of the virtual machine network Realization Method of Communication that Fig. 4 provides for the embodiment of the present invention four on the basis of above-described embodiment three technical schemes, further is optimized.With reference to Fig. 4, in the embodiment of the present invention, VMM determines from each Microsoft Loopback Adapter that according to comparative result the operation of VPA specifically comprises the steps:
If the described demand bandwidth value of step 1231 is less than or equal to the bandwidth value of described Microsoft Loopback Adapter, VMM selects any one Microsoft Loopback Adapter to be mapped as VPA from any one described Microsoft Loopback Adapter group, and wherein this VPA is as the VPA that gives described virtual machine to be allocated;
In step 1231, select any one Microsoft Loopback Adapter from any one Microsoft Loopback Adapter group, this Microsoft Loopback Adapter is mapped as VPA, this VPA is offered virtual machine as the Microsoft Loopback Adapter that distributes use.
If the described demand bandwidth value of step 1232 is greater than the bandwidth value of described Microsoft Loopback Adapter, VMM obtains the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared;
If the described ratio of step 1233 is less than or equal to the number of described Microsoft Loopback Adapter group, VMM respectively selects a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a VPA, wherein this VPA is as the VPA that gives described virtual machine to be allocated;
in step 1233, if described ratio is less than or equal to the number of described Microsoft Loopback Adapter group, respectively select a Microsoft Loopback Adapter from least two Microsoft Loopback Adapter groups, adopt polymerization technique to be polymerized to a VPA, for example, if described ratio is greater than 1 and be less than or equal to 2, respectively get respectively a Microsoft Loopback Adapter and adopt polymerization technique to be polymerized to a VPA from two Microsoft Loopback Adapter groups, with this VPA as the VPA that gives virtual machine to be allocated, if described ratio is greater than 2 and be less than or equal to 3, respectively get respectively a Microsoft Loopback Adapter and adopt polymerization technique to be polymerized to a VPA from three Microsoft Loopback Adapter groups, with this VPA as the VPA that gives virtual machine to be allocated, by that analogy, do not repeat them here.
If the described ratio of step 1234 is greater than the number of described Microsoft Loopback Adapter group, VMM sends the described virtual polymeric network card crash of virtual machine application of described Internet Transmission solicited message.
The virtual machine network Realization Method of Communication that the embodiment of the present invention provides transmits demand bandwidth that solicited message carries and the bandwidth of a Microsoft Loopback Adapter by comparing cell, thereby determines VPA to be allocated.When virtual machine application Microsoft Loopback Adapter operates, if can adopt polymerization technique when the bandwidth of a Microsoft Loopback Adapter can not satisfy the demand bandwidth of virtual machine application, promoted the VPA bandwidth and satisfied its demand.
More directly perceived for the virtual machine network Realization Method of Communication that allows the above embodiment of the present invention provide, special Fig. 5 A that coordinates is illustrated, the structural representation of a kind of physical host that Fig. 5 A provides for the various embodiments described above of the present invention.With reference to Fig. 5 A, this physical host 500 comprises hardware layer 510, operates in the monitor of virtual machine VMM520 on described hardware layer, operates at least one virtual machine 530,531,532 on described monitor of virtual machine VMM ...Wherein, described VMM520 be used for will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group; The Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated can be the described virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the described virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
In one implementation, described VMM520 specifically is used for:
Described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter;
According to the virtual type of each physical network card, each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group; The Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
In another kind of implementation, described VMM520 specifically is used for:
Drive the Internet Transmission solicited message that receives described virtual machine by virtual polymerization network interface card;
The demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter are compared, obtain comparative result;
Call Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
Should be understood that, the function of the VMM in the physical host in the embodiment of the present invention repeats no more here with reference to the device embodiment of preceding method embodiment and follow-up monitor of virtual machine.
More directly perceived for the virtual machine network Realization Method of Communication that allows the above embodiment of the present invention provide, special Fig. 5 B that coordinates is illustrated, the structural representation of the another kind of physical host that Fig. 5 B provides for the various embodiments described above of the present invention.With reference to Fig. 5 B, this physical host 500 comprises hardware layer 510, operates in the monitor of virtual machine VMM520 on described hardware layer, operates at least one virtual machine 530 on described monitor of virtual machine VMM.In the present invention, only dispose the physical network card of two virtual types and virtual machine 530 take physical host 500 and describe as example.If be mounted with simultaneously Microsoft Loopback Adapter VF1 based on the straight-through technology of SRIOV on physical host 500, based on Microsoft Loopback Adapter VQ1 and the common network interface card NIC of VMDQ technology.It is VP Group1 that VMM520 will be mapped as a Microsoft Loopback Adapter group based on the Microsoft Loopback Adapter VF1 of the straight-through technology of SRIOV, and this Microsoft Loopback Adapter group comprises three Microsoft Loopback Adapters on port Port1, and these three Microsoft Loopback Adapters are respectively VP11, VP12 and VP13; In like manner being mapped as another Microsoft Loopback Adapter group based on the Microsoft Loopback Adapter VQ1 of the straight-through technology of VMDQ is VP Group2, and this Microsoft Loopback Adapter group comprises three Microsoft Loopback Adapters on port Port2, and these three Microsoft Loopback Adapters are respectively VP21, VP22 and VP23.Can select any one Microsoft Loopback Adapter from VP Group1 according to the Internet Transmission solicited message of virtual machine 530, select any one Microsoft Loopback Adapter from VP Group2.If select VP11 from VP Group1, select VP21 from VP Group2, then adopt link aggregate control protocol (Link Aggregate Contro1Protoco1, LACP) VP11 and VP21 are polymerized to a virtual polymerization network interface card VPA1 and offer virtual machine 530 to satisfy the Internet Transmission request of virtual machine 530, perhaps select VP12 from VP Group1, select VP21 from VP Group2, then adopt LACP that VP12 and VP21 are polymerized to a virtual polymerization network interface card VPA2 and offer virtual machine 530 to satisfy the Internet Transmission request of virtual machine 530.The structure that general type network interface card NIC on port Port3 also can unify to be mapped to VPA is namely shone upon and is become VPA3, therefore, adopt Intel Virtualization Technology to shield the difference of different physical network cards at the VMM layer, the VPA direct and unified for virtual machine provides compatibility alternately.
Shown in Fig. 5 B is that the Microsoft Loopback Adapter that the physical network card based on the different virtual technology on different port fictionalizes is carried out polymerization, the invention is not restricted to this, the Microsoft Loopback Adapter that also can fictionalize the physical network card based on identical Intel Virtualization Technology on different port carries out polymerization.
Embodiment five
The structural representation of the monitor of virtual machine that Fig. 6 provides for the embodiment of the present invention five, the embodiment of the present invention is applicable to the situation that virtual machine moves between the physical machine of the physical network card that uses different virtual types, the Microsoft Loopback Adapter that satisfies its demand situation for virtual machine can be provided when also being applicable to a Microsoft Loopback Adapter operation of virtual machine application.With reference to Fig. 6, embodiment of the present invention monitor of virtual machine comprises as lower module: the Microsoft Loopback Adapter group builds module 510, virtual polymerization network interface card determination module 520 to be allocated and virtual polymerization network interface card calling module 530.
Wherein, the Microsoft Loopback Adapter group build module 510 be used for will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group; Virtual polymerization network interface card determination module 520 to be allocated is used for driving by virtual polymerization network interface card the Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine VPA to be allocated, wherein, described virtual polymerization network interface card to be allocated can be the described virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the described virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Virtual polymerization network interface card calling module 530 is used for calling described VPA to be allocated by virtual polymerization network interface card driving, controls described VPA to be allocated and carries out described Internet Transmission solicited message.
The Microsoft Loopback Adapter group builds module 510 and comprises Microsoft Loopback Adapter acquiring unit 511 and Microsoft Loopback Adapter group construction unit 512.Wherein, Microsoft Loopback Adapter acquiring unit 511 is used for described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter; Microsoft Loopback Adapter group construction unit 512 is used for the virtual type according to each physical network card, and each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.Build the Microsoft Loopback Adapter group mainly according to the virtual type of each physical network card, each Microsoft Loopback Adapter that each physical network card of virtual type is fictionalized is configured to a Microsoft Loopback Adapter group; If the physical network card of general type, with a physical network card of this general type through VPA of virtual acquisition once, wherein, virtual type can comprise based on the virtual type of SRIOV technology and/or based on the virtual type of VMDQ technology.
The monitor of virtual machine that the embodiment of the present invention provides, virtual type by considering physical network card also builds the Microsoft Loopback Adapter group, and use unified Microsoft Loopback Adapter to drive and call definite Microsoft Loopback Adapter, solved the problem that virtual machine can not move between the physical machine of using different physical network cards, simultaneously owing to having introduced Microsoft Loopback Adapter group concept, solved and caused the problem of makeing mistakes to doing polymerization from a plurality of Microsoft Loopback Adapters on same port, and the polymerization technique that adopts when virtual machine application Microsoft Loopback Adapter operates has promoted the VPA bandwidth.
Embodiment six
On basis embodiment illustrated in fig. 6, the structural representation of the monitor of virtual machine that Fig. 7 provides for the embodiment of the present invention six, with reference to Fig. 7, virtual polymerization network interface card determination module to be allocated comprises as lower unit: solicited message receiving element 521, bandwidth comparing unit 522 and network interface card determining unit 523.
Wherein solicited message receiving element 521 is used for driving by virtual polymerization network interface card the Internet Transmission solicited message of sink virtual machine; Bandwidth comparing unit 522 compares for the demand bandwidth that the Internet Transmission solicited message is carried and the bandwidth of a Microsoft Loopback Adapter, and obtains comparative result; Network interface card determining unit 523 is used for determining VPA to be allocated according to comparative result from each Microsoft Loopback Adapter, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
Further, network interface card determining unit 523 specifically is used for:
If described demand bandwidth value is less than or equal to the bandwidth value of described Microsoft Loopback Adapter, select any one Microsoft Loopback Adapter to be mapped as virtual polymerization network interface card from any described Microsoft Loopback Adapter group, wherein this virtual polymerization network interface card is as the VPA that gives described virtual machine to be allocated; If described demand bandwidth value greater than the bandwidth value of described Microsoft Loopback Adapter, obtains the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared; If described ratio is less than or equal to the number of described Microsoft Loopback Adapter group, respectively select a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a VPA, wherein this VPA is as the VPA that gives described virtual machine to be allocated; If described ratio greater than the number of described Microsoft Loopback Adapter group, sends the described VPA failure of the virtual machine application of described Internet Transmission solicited message.
The monitor of virtual machine that the embodiment of the present invention provides transmits demand bandwidth that solicited message carries and the bandwidth of a Microsoft Loopback Adapter by comparing cell, thereby determines VPA to be allocated.When virtual machine application Microsoft Loopback Adapter operates, if can adopt polymerization technique when the bandwidth of a Microsoft Loopback Adapter can not satisfy the demand bandwidth of virtual machine application, promoted the VPA bandwidth and satisfied its demand.
Embodiment seven
The structural representation of the another kind of physical host that Fig. 8 provides for the embodiment of the present invention seven, with reference to Fig. 8, this physical host 600 comprises: at least one processor 601, CPU for example, at least one network interface 604 or other user interfaces 603, storer 605, at least one communication bus 602.Communication bus 602 is for the connection communication that realizes between these assemblies.This physical host 600 optionally comprises user interface 603, comprises display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch sensitive display screen).Storer 605 may comprise the high-speed RAM storer, also may also comprise non-unsettled storer (non-volatile memory), for example at least one magnetic disk memory.Storer 605 optionally can comprise at least one and be positioned at memory storage away from aforementioned processing device 601.
In some embodiments, storer 605 has been stored following element, executable module or data structure, perhaps their subset, perhaps their superset:
Operating system 6051 comprises various system programs, is used for realizing various basic businesses and processing hardware based task;
Application module 6052 comprises various application programs, is used for realizing various applied business.
Include but not limited in application module 6052 that the Microsoft Loopback Adapter group builds module 510, virtual polymerization network interface card determination module 520 to be allocated and virtual polymerization network interface card calling module 530.
Corresponding module in application module 6052 in the specific implementation of each module embodiment shown in Figure 6 is not repeated herein.
Particularly, processor 601 is used for:
With at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group;
Drive the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated can be the described virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the described virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups;
Drive by virtual polymerization network interface card and call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
Further, processor 601 will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group and comprise:
Described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter;
According to the virtual type of each physical network card, each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.
Wherein, described virtual type comprises: based on the virtual type of single input and output Intel Virtualization Technology and/or based on the virtual type of virtual machine facility queue technology.
Further, processor 601 drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, call Microsoft Loopback Adapter from the Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, comprising:
Drive the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card;
The demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter are compared, obtain comparative result;
Call Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
Further, processor 601 is determined virtual polymerization network interface card to be allocated from each Microsoft Loopback Adapter according to comparative result, comprising:
If described demand bandwidth value is less than or equal to the bandwidth value of described Microsoft Loopback Adapter, select any one Microsoft Loopback Adapter to be mapped as virtual polymerization network interface card from any one described Microsoft Loopback Adapter group, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
If described demand bandwidth value greater than the bandwidth value of described Microsoft Loopback Adapter, obtains the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared;
If described ratio is less than or equal to the number of described Microsoft Loopback Adapter group, respectively select a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a virtual polymerization network interface card, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
If described ratio greater than the number of described Microsoft Loopback Adapter group, sends the described virtual polymeric network card crash of the virtual machine application of described Internet Transmission solicited message.
By above-described embodiment as can be known, monitor of virtual machine according to will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group, and use unified Microsoft Loopback Adapter to drive and call Microsoft Loopback Adapter, solved the problem that virtual machine can not move between the physical machine of using different physical network cards, simultaneously owing to having introduced Microsoft Loopback Adapter group concept, solved and caused the problem of makeing mistakes to doing polymerization from a plurality of Microsoft Loopback Adapters on same port, and the polymerization technique that adopts when virtual machine application Microsoft Loopback Adapter operates has promoted the VPA bandwidth.
Need to prove, the method that the invention described above embodiment discloses can be applied in processor 601, is realized by processor 601 in other words.Processor 601 may be a kind of integrated circuit (IC) chip, has the executive capability of instruction and data, and the processing power of signal.In implementation procedure, each step of said method can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processor can be general processor (CPU), digital signal processor (DSP), special IC (ASIC), ready-made programmable gate array (FPGA) or other programmable logic device (PLD), discrete gate or transistor logic device, discrete hardware components.Can realize or carry out disclosed each method, step and logic diagram in the embodiment of the present invention.General processor can be that microprocessor or this processor can be also the processors of any routine etc.Step in conjunction with the disclosed method of the embodiment of the present invention can be presented as directly that hardware processor is complete, and is perhaps complete with the hardware in processor and software module combination.Software module can be positioned at random access memory, and flash memory, ROM (read-only memory) are in the storage medium of this area maturations such as programmable read only memory or electrically erasable programmable storer, register.This storage medium is positioned at storer 605, and the information in processor read memory 605 is completed the step of said method in conjunction with its hardware.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can be completed by the hardware that programmed instruction is correlated with.Aforesaid program can be stored in a computer read/write memory medium.This program is carried out the step that comprises above-mentioned each embodiment of the method when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (13)

1. a virtual machine network Realization Method of Communication, be applied to physical host, and wherein said physical host comprises hardware layer, operate in the monitor of virtual machine VMM on described hardware layer, operate at least one virtual machine on described VMM, it is characterized in that, comprising:
At least two physical network cards of VMM general each Microsoft Loopback Adapter of correspondence respectively are configured to the Microsoft Loopback Adapter group;
VMM drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups;
VMM drives by virtual polymerization network interface card and calls described virtual polymerization network interface card to be allocated, controls described virtual polymerization network interface card to be allocated and carries out described Internet Transmission solicited message.
2. virtual machine network Realization Method of Communication according to claim 1, is characterized in that, described VMM will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group and comprise:
VMM fictionalizes respectively each corresponding Microsoft Loopback Adapter with described at least two physical network cards;
VMM is according to the virtual type of each physical network card, and each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.
3. virtual machine network Realization Method of Communication according to claim 2, it is characterized in that: described virtual type comprises: based on the virtual type of single input and output Intel Virtualization Technology and/or based on the virtual type of virtual machine facility queue technology.
4. virtual machine network Realization Method of Communication according to claim 1, it is characterized in that, described VMM drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card, call Microsoft Loopback Adapter from the Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, comprising:
VMM drives the Internet Transmission solicited message of sink virtual machine by virtual polymerization network interface card;
VMM compares the demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter, obtains comparative result;
VMM calls Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
5. virtual machine network Realization Method of Communication according to claim 4, is characterized in that, described VMM determines virtual polymerization network interface card to be allocated from each Microsoft Loopback Adapter according to comparative result, comprising:
If described demand bandwidth value is less than or equal to the bandwidth value of described Microsoft Loopback Adapter, VMM selects any one Microsoft Loopback Adapter to be mapped as virtual polymerization network interface card from any one described Microsoft Loopback Adapter group, and wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
If described demand bandwidth value is greater than the bandwidth value of described Microsoft Loopback Adapter, VMM obtains the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared;
If described ratio is less than or equal to the number of described Microsoft Loopback Adapter group, VMM respectively selects a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a virtual polymerization network interface card, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
If described ratio is greater than the number of described Microsoft Loopback Adapter group, VMM sends the described virtual polymeric network card crash of virtual machine application of described Internet Transmission solicited message.
6. a monitor of virtual machine VMM, be applied to physical host, it is characterized in that, comprising:
The Microsoft Loopback Adapter group builds module, be used for will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group;
Virtual polymerization network interface card determination module to be allocated, be used for driving by virtual polymerization network interface card the Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups;
Virtual polymerization network interface card calling module is used for driving by virtual polymerization network interface card and calls described virtual polymerization network interface card to be allocated, controls described virtual polymerization network interface card to be allocated and carries out described Internet Transmission solicited message.
7. VMM according to claim 6, is characterized in that, described Microsoft Loopback Adapter group builds module and comprises:
The Microsoft Loopback Adapter acquiring unit is used for described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter;
Microsoft Loopback Adapter group construction unit is used for the virtual type according to each physical network card, and each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group.
8. VMM according to claim 7 is characterized in that: virtual type comprises based on the virtual type of single input and output Intel Virtualization Technology and/or based on the virtual type of virtual machine facility queue technology;
Described Microsoft Loopback Adapter group construction unit specifically is used for: according to the virtual type of each physical network card, each Microsoft Loopback Adapter of physical network card is configured to described Microsoft Loopback Adapter group.
9. VMM according to claim 6, is characterized in that, described virtual polymerization network interface card determination module to be allocated comprises:
The solicited message receiving element is used for the Internet Transmission solicited message by virtual polymerization network interface card driving sink virtual machine;
The bandwidth comparing unit compares for the demand bandwidth value that described Internet Transmission solicited message is carried and the bandwidth value of a Microsoft Loopback Adapter, obtains comparative result;
The network interface card determining unit, be used for calling Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups.
10. VMM according to claim 9, is characterized in that, described network interface card determining unit comprises:
The first network interface card is determined subelement, if be used for the bandwidth value that described demand bandwidth value is less than or equal to described Microsoft Loopback Adapter, select any one Microsoft Loopback Adapter to be mapped as virtual polymerization network interface card from any described Microsoft Loopback Adapter group, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
Ratio is determined subelement, if be used for described demand bandwidth value greater than the bandwidth value of described Microsoft Loopback Adapter, obtain the ratio of the bandwidth of described demand bandwidth and described Microsoft Loopback Adapter, and the number of described ratio and described Microsoft Loopback Adapter group is compared;
Network interface card polymerization subelement, if be used for the number that described ratio is less than or equal to described Microsoft Loopback Adapter group, respectively select a Microsoft Loopback Adapter from least two described Microsoft Loopback Adapter groups, and adopt polymerization technique to be polymerized to a virtual polymerization network interface card, wherein this virtual polymerization network interface card is as the virtual polymerization network interface card of giving described virtual machine to be allocated;
Apply for failed subelement, if be used for described ratio greater than the number of described Microsoft Loopback Adapter group, send the described virtual polymeric network card crash of virtual machine application of described Internet Transmission solicited message.
11. physical host, it is characterized in that, comprise: hardware layer, operate in the monitor of virtual machine VMM on described hardware layer, operate at least one virtual machine on described monitor of virtual machine VMM, wherein, described VMM be used for will at least two physical network cards respectively corresponding each Microsoft Loopback Adapter be configured to the Microsoft Loopback Adapter group; The Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
12. physical host according to claim 11 is characterized in that, described VMM specifically is used for:
Described at least two physical network cards are fictionalized respectively each corresponding Microsoft Loopback Adapter;
According to the virtual type of each physical network card, each Microsoft Loopback Adapter of physical network card is configured to the Microsoft Loopback Adapter group; The Internet Transmission solicited message of sink virtual machine, and call Microsoft Loopback Adapter by unified Microsoft Loopback Adapter driving from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
13. physical host according to claim 11 is characterized in that, described VMM specifically is used for:
Drive the Internet Transmission solicited message that receives described virtual machine by virtual polymerization network interface card;
The demand bandwidth value that carries in described Internet Transmission solicited message and the bandwidth value of a Microsoft Loopback Adapter are compared, obtain comparative result;
Call Microsoft Loopback Adapter according to comparative result from described Microsoft Loopback Adapter group, to determine virtual polymerization network interface card to be allocated, wherein, described virtual polymerization network interface card to be allocated is the virtual polymerization network interface card of a described Microsoft Loopback Adapter mapping, or is the virtual polymerization network interface card of selecting respectively a Microsoft Loopback Adapter and adopt the polymerization technique polymerization from least two described Microsoft Loopback Adapter groups; Call described virtual polymerization network interface card to be allocated, control described virtual polymerization network interface card to be allocated and carry out described Internet Transmission solicited message.
CN201310068966.4A 2013-03-04 2013-03-04 Virtual machine network communication implementation method and monitor of virtual machine and physical host Active CN103164255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310068966.4A CN103164255B (en) 2013-03-04 2013-03-04 Virtual machine network communication implementation method and monitor of virtual machine and physical host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310068966.4A CN103164255B (en) 2013-03-04 2013-03-04 Virtual machine network communication implementation method and monitor of virtual machine and physical host

Publications (2)

Publication Number Publication Date
CN103164255A true CN103164255A (en) 2013-06-19
CN103164255B CN103164255B (en) 2016-08-03

Family

ID=48587372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310068966.4A Active CN103164255B (en) 2013-03-04 2013-03-04 Virtual machine network communication implementation method and monitor of virtual machine and physical host

Country Status (1)

Country Link
CN (1) CN103164255B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103795621A (en) * 2013-12-12 2014-05-14 华为技术有限公司 Virtual machine data exchange method and device, and physical host
CN104219093A (en) * 2014-08-30 2014-12-17 杭州华为数字技术有限公司 Network card function configuration method and relevant equipment
WO2015058699A1 (en) * 2013-10-23 2015-04-30 Hangzhou H3C Technologies Co., Ltd. Data forwarding
CN107807840A (en) * 2016-09-09 2018-03-16 阿里巴巴集团控股有限公司 A kind of equipment direction connection method and device applied to virtual machine network
CN108351795A (en) * 2015-10-30 2018-07-31 华为技术有限公司 Method and system for maps virtual machine communication path
CN108632155A (en) * 2017-03-16 2018-10-09 网宿科技股份有限公司 Cloud platform traffic scheduling method and system, computer-readable storage medium
CN104883302B (en) * 2015-03-18 2018-11-09 华为技术有限公司 A kind of method, apparatus and system of data packet forwarding
WO2022028149A1 (en) * 2020-08-03 2022-02-10 华为技术有限公司 Method and system for binding multiple physical devices as virtual device, and related device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060875B1 (en) * 2006-05-26 2011-11-15 Vmware, Inc. System and method for multiple virtual teams
CN102394831A (en) * 2011-11-28 2012-03-28 杭州华三通信技术有限公司 Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration
CN102609298B (en) * 2012-01-11 2016-01-13 中国科学技术大学苏州研究院 Based on network interface card virtualization system and the method thereof of hardware queue expansion
CN102790777B (en) * 2012-08-07 2016-06-15 华为技术有限公司 Network interface adapter register method and driving equipment, server
CN102932174B (en) * 2012-10-25 2015-07-29 华为技术有限公司 A kind of physical network card management method, device and physical host

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015058699A1 (en) * 2013-10-23 2015-04-30 Hangzhou H3C Technologies Co., Ltd. Data forwarding
CN103795621A (en) * 2013-12-12 2014-05-14 华为技术有限公司 Virtual machine data exchange method and device, and physical host
CN103795621B (en) * 2013-12-12 2017-02-15 华为技术有限公司 Virtual machine data exchange method and device, and physical host
CN104219093A (en) * 2014-08-30 2014-12-17 杭州华为数字技术有限公司 Network card function configuration method and relevant equipment
CN104219093B (en) * 2014-08-30 2017-09-12 杭州华为数字技术有限公司 Network interface card function configuration method and relevant device
CN104883302B (en) * 2015-03-18 2018-11-09 华为技术有限公司 A kind of method, apparatus and system of data packet forwarding
CN108351795A (en) * 2015-10-30 2018-07-31 华为技术有限公司 Method and system for maps virtual machine communication path
CN107807840A (en) * 2016-09-09 2018-03-16 阿里巴巴集团控股有限公司 A kind of equipment direction connection method and device applied to virtual machine network
CN107807840B (en) * 2016-09-09 2022-01-25 阿里巴巴集团控股有限公司 Equipment direct connection method and device applied to virtual machine network
CN108632155A (en) * 2017-03-16 2018-10-09 网宿科技股份有限公司 Cloud platform traffic scheduling method and system, computer-readable storage medium
CN108632155B (en) * 2017-03-16 2021-11-23 网宿科技股份有限公司 Cloud platform traffic scheduling method and system and computer-readable storage medium
WO2022028149A1 (en) * 2020-08-03 2022-02-10 华为技术有限公司 Method and system for binding multiple physical devices as virtual device, and related device

Also Published As

Publication number Publication date
CN103164255B (en) 2016-08-03

Similar Documents

Publication Publication Date Title
CN103164255A (en) Virtual machine network communication implementation method, virtual machine monitor and physical host
US10990431B2 (en) Virtual machine hot migration method and apparatus, and system
CN104050045B (en) Virtual resource allocation method and device based on disk I/O
US11256649B2 (en) Machine templates for predetermined compute units
US20160124754A1 (en) Virtual Function Boot In Single-Root and Multi-Root I/O Virtualization Environments
CN102790777B (en) Network interface adapter register method and driving equipment, server
CN103116517A (en) Adjustment method of I/O channels of virtualization platform and adjustment device
CN102932174A (en) Method, device and physical host for managing physical network card
CN104714846A (en) Resource processing method, operating system and equipment
CN103210379A (en) Server system, management method and device
CN104486234A (en) Method and server for uninstalling service exchanger to physical network card
CN103856547A (en) Mapping method and system of virtual machines and client side devices
CN103559087A (en) Interrupt realization method between virtual processors, relevant device and system
CN105790991A (en) Link aggregation method and system for virtualization server and intelligent network adapter thereof
CN103336708A (en) Method and related equipment for aggregating network card resources, and computer system
US9841983B2 (en) Single click host maintenance
CN105556473A (en) I/O task processing method, device and system
CN105468429A (en) Efficient virtual cluster management method and cluster node
CN102609324B (en) Restoration methods, Apparatus and system after a kind of virtual machine deadlock
CN111078353A (en) Operation method of storage equipment and physical server
CN109032982A (en) A kind of data processing method, device, equipment, system, FPGA board and combinations thereof
TWI616759B (en) Apparatus assigning controller and apparatus assigning method
CN112463296B (en) Method and device for creating virtual machine
CN107807840A (en) A kind of equipment direction connection method and device applied to virtual machine network
CN109032754A (en) The method and apparatus for improving communication path reliability

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