CN103118066A - Optimized virtual machine network model based on XEN - Google Patents

Optimized virtual machine network model based on XEN Download PDF

Info

Publication number
CN103118066A
CN103118066A CN2012104883368A CN201210488336A CN103118066A CN 103118066 A CN103118066 A CN 103118066A CN 2012104883368 A CN2012104883368 A CN 2012104883368A CN 201210488336 A CN201210488336 A CN 201210488336A CN 103118066 A CN103118066 A CN 103118066A
Authority
CN
China
Prior art keywords
xen
virtual machine
xenvmnic
network
layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012104883368A
Other languages
Chinese (zh)
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.)
PCI Suntek Technology Co Ltd
Original Assignee
PCI Suntek Technology 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 PCI Suntek Technology Co Ltd filed Critical PCI Suntek Technology Co Ltd
Priority to CN2012104883368A priority Critical patent/CN103118066A/en
Publication of CN103118066A publication Critical patent/CN103118066A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an optimized virtual machine network model based on an XEN. Communication network optimization design that a host machine is used among a plurality of virtual machines based on the XEN is provided. On the same host machine, the XEN creates and manages the plurality of virtual machines, each layer of service in three-layer framework internet application is independently operated in one virtual machine, a virtual network interface card having high performance is configured for each virtual machine, and all the virtual network interface cards are connected with one another to form a virtual machine network.

Description

A kind of optimization virtual machine network model based on XEN
Technical field
The present invention relates to computer application field, particularly relate to a kind of virtual machine network model based on XEN
Background technology
The hardware resource of monitor of virtual machine (VMM) virtual computing platforms is with support a plurality of virtual machines (VM) time operation.Operating system of each virtual machine independent operating, the operating system that runs in virtual machine is called as client operating system (GOS), and monitor of virtual machine provides the isolation of safety and height for these operating systems.
Xen is the VMM that runs on Intel * 86, and its supports performance and isolation that a plurality of GOS did not have to move simultaneously, is that increasing income of following that GNU permits is soft assorted.Current, use Xen to support a plurality of virtual machines, and on each virtual machine the independent operating system of each self-operating, the research of multiplexing computing platform becomes the focus of Chinese scholars research just gradually.
Xen can provide multiplexing computing platform for 3 popular layer architecture internet, applications.3 layer architecture internet, applications comprise: (1) front end is http server, is responsible for processing user's input and output: be application server in the middle of (2), realize the Core Feature of using; (3) rear end is database server, the storage user data.An outstanding feature of 3 layer architecture the Internets is that the user is only mutual with http server, not with two other server interaction.In other words, http server is single-point entrance or the application gateway of two other service of access.
For 3 layer architecture internet, applications, proposed designing based on the communication network optimize between a plurality of virtual machines of Xen on same host: on same host, Xen creates and manages a plurality of virtual machines, every one deck service isolated operation in 3 layer architecture internet, applications is in a virtual machine towel, be the more high performance Microsoft Loopback Adapter of each virtual machine configuration, all Microsoft Loopback Adapters are interconnected into a virtual machine network.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of based on the virtual machine network model based on the optimization of XEN, to improve the network performance of virtual machine.
For achieving the above object, the invention provides a kind of virtual machine network model through optimal design, comprise XEN communication media, VM, VMnic frame
Described XEN is used for: as communication media, corresponding to the physical layer of 7 layer models in OSI;
Described VMnic is used for: as the link layer of OSI 7 layer models;
1, preferably have, in said method, also comprise: each VM is called XenVMnet by computer network of the interconnected one-tenth of its XenVMNIC.Microsoft Loopback Adapter does not have the concept of front-end and back-end, does not need Domain0 to create yet and starts a special DVM.The VM that a special VM1 by name is arranged on the contrary.VM1 has two network interface cards at least: one is the physical network card of the host of Xen, is connected with host other computers in addition; Another is XenVMNIC, with other VM mutually repeatedly.Except VM1, the network interface card that in every other VM, neither one can be connected with the computer beyond host.Compare with master pattern, direct communication between the virtual machine in Optimized model does not need the intervention of DVM, does not need the forwarding behaviour of bridge equipment yet; Shift the ownership of this page for convenience of communicating pair, standard and the GOS that optimizes in two models will distribute the cover joint word buffer stopper of one page size for every frame, the longest frame of XenVMNIC is 4096B, and the respective value of master pattern is 1500B, therefore, new model has reduced the frame number that will shift; The longest frame of 4096B of Optimized model has also significantly reduced each cover joint word Buffer Pool internal fragmentation, has significantly reduced to be used for the time that internal fragmentation merges.XenVMnic has Checksum offloading function (TCO), make its notice upper TCP/IP stack do not want calculation check and.Further because communicating pair carries out the very low without code check of transfer of data by shared drive, the design also cancelled the verification of XenVMNIC link layer and calculating.The establishment of XENVMNIC starts at VM and carries out before also its GOS of initialization loads.Algorithm is as follows:
Start Domain0, it creates a Network Interface Unit Xenvmnic0
For (to the VM of all N needs establishments and startup)
{
Domain0 creates the Network Interface Unit XENVMNIC i of i VMi, i=1, and 2 ..., N
Domain0 creates event channel IEC (VMj, VMi) between virtual machine, j=0, and 1 ..., i-1;
}
After N user VM starts, altogether move N+1 VM on Xen.Each VM has a networking interface equipment XenVMNIC, and each XenVMNIC has N interrupt source, these interrupt sources can trigger by the other N VM respectively, each XenVMNIC also has N SMR, they are corresponding one by one with an other N VM respectively.
It is a kind of based on the Xenvmnic frame that the present invention also provides, and comprising: XenVMNIC has realized the link layer of XenVMNet network, and the longest 4096B of XenVMNet frame has following field:
(1) 2 peaceful joints of " VM sign " field, sign receives the target VM of XenVMNet frame; (2) 2 bytes of " protocol type " field, sign XenVMNet frame entrained network layer protocol type is as IP protocol type etc.; (3) 2 bytes of " length " field, sign XenVMNet frame entrained payload length: the entrained payload of (4) " payload " field identification XenVMNet frame, people's payload length is 4090B:
When the IP stack of GOS was prepared the IP bag is submitted to the XenVMNIC of link layer, XenVMNIC must have the ability the XenVMNIC frame that is packaged with the IP bag is sent to correct recipient.ARP based on XenVMNIC is redesigned, VM is that XenVMNIC safeguards an anticipatory remark way address mapping table, each list item " iP address " field is one-to-one relationship with " VM sign " field, the XenVMNIC that shows the VM that the latter shows has configured the former represented IP address, and each list item also has a timer to be used for this renewal.
Xen safeguards a global address mapping table, and " VM sign " field of each list item is also one-to-one relationship with " IP address " field.VM can read list item from the global address mapping table, when the IP of VM address modification, can also upgrade the global address mapping table.
Can be found out by such scheme, proposing in the present invention to provide multiplexing computing platform for 3 popular layer architecture internet, applications.3 layer architecture internet, applications comprise: (1) front end is http server, is responsible for processing user's input and output: be application server in the middle of (2), realize the Core Feature of using; (3) rear end is database server, the storage user data.An outstanding feature of 3 layer architecture the Internets is that the user is only mutual with http server, not with two other server interaction.In other words, http server is single-point entrance or the application gateway of two other service of access.
For 3 layer architecture internet, applications, proposed designing based on the communication network optimize between a plurality of virtual machines of Xen on same host: on same host, Xen creates and manages a plurality of virtual machines, every one deck service isolated operation in 3 layer architecture internet, applications is in a virtual machine towel, be the more high performance Microsoft Loopback Adapter of each virtual machine configuration, all Microsoft Loopback Adapters are interconnected into a virtual machine network.
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 simple the introduction to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only 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.
Figure is system configuration schematic diagram in the embodiment of the present invention one.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.Obviously, described embodiment is only 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.
Embodiment one, referring to figure
The invention provides a kind of optimization virtual machine network model based on XEN, proposed to design based on the communication network optimize between a plurality of virtual machines of XEN on a host, on same host, Xen creates and manages a plurality of virtual machines, every one deck service isolated operation in 3 layer architecture internet, applications is in a virtual machine, be the more high performance Microsoft Loopback Adapter of each virtual machine configuration, all Microsoft Loopback Adapters are by virtual machine network of interconnected one-tenth.
Therefore provided by the invention a kind ofly have following advantage based on the optimization virtual machine network model based on XEN, optimizes the COMMUNICATION NETWORK PERFORMANCES of having improved between virtual machine, reduced comparatively significantly user's request response time.
The above is only the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (3)

1. the optimization virtual machine network model based on XEN, is characterized in that, Xen is as communication media, corresponding to the physical layer of 7 layer models in OSI; Each VM has a Microsoft Loopback Adapter, is called as XenVMNIC, corresponding to the link layer of 7 layer models in OSI; Each VM is called XenVMNet by computer network of the interconnected one-tenth of its XenVMNIC.
2. method according to claim 1, is characterized in that, also comprises: Microsoft Loopback Adapter does not have the concept of front-end and back-end, does not need Domain0 to create yet and starts a special DVM.On the contrary, the VM of a special VM1 by name is arranged, VM1 has two network interface cards at least: one is the physical network card of the host of Xen, is connected with host other computers in addition; Another is XenVMNIC, with other VM mutually repeatedly; Except VM1, the network interface card that in every other VM, neither one can be connected with the computer beyond host; Compare with master pattern, direct communication between the virtual machine in Optimized model does not need the intervention of DVM, does not need the forwarding behaviour of bridge equipment yet; Shift the ownership of this page for convenience of communicating pair, standard and the GOS that optimizes in two models will distribute the cover joint word buffer stopper of one page size for every frame, the longest frame of XenVMNIC is 4096B, and the respective value of master pattern is 1500B, therefore, new model has reduced the frame number that will shift; The longest frame of 4096B of Optimized model has also significantly reduced each cover joint word Buffer Pool internal fragmentation, has significantly reduced to be used for the time that internal fragmentation merges.
3. method according to claim 1, is characterized in that, also comprises: XenVMNIC has TCP check and offloading functions (TCO), make its notice upper TCP/IP stack do not want calculation check and.
CN2012104883368A 2012-11-16 2012-11-16 Optimized virtual machine network model based on XEN Pending CN103118066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104883368A CN103118066A (en) 2012-11-16 2012-11-16 Optimized virtual machine network model based on XEN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104883368A CN103118066A (en) 2012-11-16 2012-11-16 Optimized virtual machine network model based on XEN

Publications (1)

Publication Number Publication Date
CN103118066A true CN103118066A (en) 2013-05-22

Family

ID=48416336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104883368A Pending CN103118066A (en) 2012-11-16 2012-11-16 Optimized virtual machine network model based on XEN

Country Status (1)

Country Link
CN (1) CN103118066A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471697A (en) * 2015-12-18 2016-04-06 国云科技股份有限公司 Self-adapting network communication encryption method based on XEN virtual machine
CN105871540A (en) * 2016-03-24 2016-08-17 北京江南天安科技有限公司 Cipher machine and cryptogrammic operation implementation method based on host machine
CN107533472A (en) * 2015-02-20 2018-01-02 普瑞斯汀计算机有限责任公司 A kind of method in system interlayer division data operational function
US11249789B2 (en) 2020-01-06 2022-02-15 International Business Machines Corporation Network performance optimization in a hypervisor-based system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409714A (en) * 2008-11-18 2009-04-15 华南理工大学 Firewall system based on virtual machine
CN102088404A (en) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 Method for limiting speed of network card in Xen virtual machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409714A (en) * 2008-11-18 2009-04-15 华南理工大学 Firewall system based on virtual machine
CN102088404A (en) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 Method for limiting speed of network card in Xen virtual machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟江涛等: ""一种基于XEN的优化虚拟机网络模型"", 《电子科技大学学报》, vol. 39, no. 1, 31 January 2010 (2010-01-31) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107533472A (en) * 2015-02-20 2018-01-02 普瑞斯汀计算机有限责任公司 A kind of method in system interlayer division data operational function
CN105471697A (en) * 2015-12-18 2016-04-06 国云科技股份有限公司 Self-adapting network communication encryption method based on XEN virtual machine
CN105871540A (en) * 2016-03-24 2016-08-17 北京江南天安科技有限公司 Cipher machine and cryptogrammic operation implementation method based on host machine
US11249789B2 (en) 2020-01-06 2022-02-15 International Business Machines Corporation Network performance optimization in a hypervisor-based system

Similar Documents

Publication Publication Date Title
CN104094231B (en) For the system and method for the dynamic migration for supporting the virtual machine in InfiniBand network
JP5784482B2 (en) Information processing apparatus and communication control method
CN1906573B (en) System and method for supporting multiple users
US10171294B2 (en) Information processing device and system design support method
CN106301859B (en) Method, device and system for managing network card
CN101276288B (en) Facilitating input/output processing of one or more guest processing systems
CN102110196B (en) Method and system for safely transmitting data among parallel-running multiple user operating systems
US9063793B2 (en) Virtual server and virtual machine management method for supporting zero client by providing host interfaces from classified resource pools through emulation or direct connection modes
CN104572243B (en) Method and system for sharing Java Virtual Machine
CN101430649B (en) Virtual computation environmental system based on virtual machine
CN103312601A (en) Data message processing method from user mode to kernel mode
EP2879053A1 (en) Virtual machine memory data migration method, related apparatus, and cluster system
JP5373893B2 (en) Configuration for storing and retrieving blocks of data having different sizes
WO2006017584A3 (en) Virtual host bus adapter and method
CN103856480A (en) User datagram protocol (UDP) packet migration in a virtual machine (VM) migration
GB2446737A (en) Application of virtual servers to high availability and disaster recovery solutions
CN102314372A (en) The configuration of virtual machine I/O multipath
CN104704471A (en) Virtual machine multicast/broadcast in virtual network
CN101120317A (en) Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
CN103226518A (en) Method and device for performing volume expansion in storage management system
CN102341786A (en) Altering access to a fibre channel fabric
CN103324278A (en) Terminal device, system and method for accessing virtual desktops
CN103118066A (en) Optimized virtual machine network model based on XEN
CN102023960A (en) Computer network system, computer and hardware equipment remote management method thereof
CN105556473A (en) I/O task processing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130522