CN105245365A - Parameter configuration method, equipment and system for virtual network - Google Patents

Parameter configuration method, equipment and system for virtual network Download PDF

Info

Publication number
CN105245365A
CN105245365A CN201510640001.7A CN201510640001A CN105245365A CN 105245365 A CN105245365 A CN 105245365A CN 201510640001 A CN201510640001 A CN 201510640001A CN 105245365 A CN105245365 A CN 105245365A
Authority
CN
China
Prior art keywords
virtual
machine
virtual machine
network
physical machine
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
CN201510640001.7A
Other languages
Chinese (zh)
Other versions
CN105245365B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510640001.7A priority Critical patent/CN105245365B/en
Publication of CN105245365A publication Critical patent/CN105245365A/en
Application granted granted Critical
Publication of CN105245365B publication Critical patent/CN105245365B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a parameter configuration method for a virtual network. The virtual network comprises at least two virtual machines, wherein a first virtual machine is attached to a first physical machine; and a second virtual machine is attached to a second physical machine being different from the first physical machine. The method comprises the following steps: acquiring physical machine network parameters of the physical machines included in the virtual network, wherein the physical machine network parameters are used for describing first requirements of the physical machines on data packets needing to be transmitted through the physical machines; and acquiring virtual machine network parameters according to the network parameters of the physical machines, wherein the virtual machine network parameters are used for describing second requirements of the virtual machines on data packets needing to be transmitted through the virtual machines, and the virtual machine network parameters meet the first requirements. The virtual machine network parameters are determined on the basis of the physical machine network parameters in the virtual network, so that the virtual machines meet the data packet transmission requirements of the physical machines after network parameter configuration is performed on corresponding virtual machines in the virtual network based on the virtual machine network parameters, and the network transmission efficiency is increased.

Description

A kind of method for parameter configuration of virtual network, equipment and system
Technical field
The present invention relates to electronic device field, in particular, relate to a kind of method for parameter configuration of virtual network, equipment and system.
Background technology
Along with the development of electronic technology, virtual network is very common, in this virtualized network environment, comprises multiple main frame, and each main frame can mount multiple virtual machine (VirtualMachine, VM), and is connected by network between each main frame.
The schematic diagram of virtual network as shown in Figure 1, wherein host A and host B are respectively based on respective NIC (NetworkInterfaceCard, private data network identification code, is called for short network interface card) realize being connected by network, each main frame is mounted with multiple virtual machine VM.
In current network virtualization environment, if the network parameter of link and network card configuration set improper, often cause network transmission efficiency low.When MTU (MaximumTransmissionUnit, MTU) on such as network link sets less than normal, can cause in transmitting procedure, too much bottom data bag is fragmented and recombinates, and causes network transfer speeds slow.
Therefore, need badly a kind of can according to the situation of virtual network, carry out the method for configuration automatically to the parameter in this virtual network, applicable with network card configuration with the network parameter realized in network virtualization environment.
Summary of the invention
In view of this, the invention provides a kind of method for parameter configuration of virtual network, solve in prior art, the problem that in virtual network, the improper network transmission efficiency caused of parameter configuration is low.
For achieving the above object, the invention provides following technical scheme:
A kind of method for parameter configuration of virtual network, at least comprise the first virtual machine and the second virtual machine in described virtual network, described first virtual machine is articulated in the first physical machine, and described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, and described method comprises:
Obtain the physical machine network parameter of the physical machine comprised in described virtual network, in described virtual network, comprise at least two physical machine; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine;
According to the network parameter of described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
Above-mentioned method, preferably, obtains the physical machine network parameter of the physical machine comprised in described virtual network, specifically comprises:
Based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyze at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
The physical machine network parameter of at least two physical machine described in acquisition.
Above-mentioned method, preferably, according to the physical machine network parameter of described physical machine, analyze before obtaining the virtual machine network parameter of virtual machine in described virtual network, also comprise:
Obtain the default virtual machine network parameter of described first virtual machine and the default virtual machine network parameter of the second virtual machine;
Judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
The numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, perform the network parameter according to described physical machine, analyze the objective network parameter step of the virtual machine obtained in described virtual network.
Above-mentioned method, preferably, the described physical machine network parameter according to described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, comprising:
The function information of at least two network interface cards described in acquisition; Described function information at least represents the whether supported data bag process of described network interface card;
According to described function information, the whether supported data bag process of at least two network interface cards described in analyzing respectively, obtains analysis result;
At least two network interface card not all supported data bag process described in characterizing based on described analysis result, the physical machine network parameter according to described physical machine obtains described virtual machine network parameter;
At least two network interface card all supported data bag process described in characterizing based on described analysis result, the preset maximum value according to described virtual machine obtains described virtual machine network parameter, and described preset maximum value characterizes the maximum data packet data volume of described virtual function transmission.
Above-mentioned method, preferably, the described physical machine network parameter according to described physical machine obtains described virtual machine network parameter, comprising:
According to the configuration information of pre-stored in described physical machine, analyze the type of the virtual channel obtaining described first virtual machine and the second virtual machine composition;
Based on the type of described virtual channel, select the computation rule preset;
Based on described default computation rule and described physical machine network parameter, calculate described virtual machine network parameter.
Above-mentioned method, preferably, the described network parameter according to described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, comprising:
Whether the physical machine network parameter of at least two physical machine described in judgement is identical, obtains the first judged result;
Described in described first judged result characterizes, the physical machine network parameter of at least two physical machine is identical, and the physical machine network parameter analysis according to described physical machine obtains the virtual machine network parameter of described virtual machine;
Described in described first judged result characterizes, the physical machine network parameter of at least two physical machine is not identical, and minimum value in the physical machine network parameter of at least two physical machine described in acquisition, obtains the virtual machine network parameter of described virtual machine according to described minimum value analysis.
Above-mentioned method, preferably, the default virtual machine network parameter of described first virtual machine of described acquisition and the default virtual machine network parameter of the second virtual machine, specifically comprise:
According to the configuration information of pre-stored in described physical machine, analyze the type obtaining virtual channel between described first virtual machine and the second virtual machine;
Based on the type of described virtual channel, analyze the default network parameter obtaining virtual machine corresponding to described virtual channel.
Above-mentioned method, preferably, the described type based on described virtual channel, analyze the default network parameter obtaining virtual machine corresponding to described virtual channel, comprising:
According to the computation rule that the type selecting of described virtual channel is preset;
Obtain the physical machine network parameter of the first physical machine and the physical machine network parameter of the second physical machine successively;
According to described default computation rule and the physical machine network parameter of described first physical machine and the physical machine network parameter of the second physical machine, calculate the default network parameter of described first virtual machine and the default network parameter of the second virtual machine respectively.
Above-mentioned method, preferably, described analysis also comprises after obtaining the virtual machine network parameter of virtual machine in described virtual network:
According to described first virtual machine in virtual network described in described virtual machine network parameter configuration.
Above-mentioned method, preferably, described analysis also comprises after obtaining the virtual machine network parameter of virtual machine in described virtual network:
Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
Above-mentioned method, preferably, described analysis also comprises after obtaining the virtual machine network parameter of virtual machine in described virtual network:
Described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network;
Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
A kind of parameter configuration equipment of virtual network, the first virtual machine and the second virtual machine is at least comprised in described virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, and described parameter configuration equipment comprises:
Receiving port, for obtaining the physical machine network parameter of the physical machine comprised in described virtual network, comprises at least two physical machine in described virtual network; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine;
Processor, for the network parameter according to described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
Above-mentioned equipment, preferably, described receiving port, specifically for the Actual path based on information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine; The physical machine network parameter of at least two physical machine described in acquisition.
Above-mentioned equipment, preferably, also comprises:
First configuration module, for according to described first virtual machine in virtual network described in described virtual machine network parameter configuration, and described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
Above-mentioned equipment, preferably, also comprises:
Second configuration module, for described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network; Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
A kind of parameter configuring system of virtual network, at least comprise the first virtual machine and the second virtual machine in described virtual network, described first virtual machine is articulated in the first physical machine, and described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, and described system comprises:
Being arranged on the control end in arbitrary physical machine in described virtual network, for obtaining the physical machine network parameter of the physical machine comprised in described virtual network, in described virtual network, comprising at least two physical machine; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine; According to the network parameter of described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement;
Agent side, described agent side is arranged in described virtual network in each physical machine, and the physical machine network parameter for the physical machine by its correspondence transfers to described control end.
Above-mentioned system, preferably, described agent side also for: receive the virtual machine network parameter that described control end sends, and based on the virtual machine of described virtual machine network parameter configuration mounting.
Known via above-mentioned technical scheme, compared with prior art, the invention provides a kind of method for parameter configuration of virtual network, the first virtual machine and the second virtual machine is at least comprised in described virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, described method comprises: the physical machine network parameter obtaining the physical machine comprised in described virtual network, comprises at least two physical machine in described virtual network; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine; According to the network parameter of described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.Adopt the method, based on the physical machine network parameter of physical machine in virtual network, determine the virtual machine network parameter of the virtual machine in this virtual network, the virtual machine network parameter obtained combines the physical machine network parameter of the physical machine in this virtual network, making based on this virtual machine network parameter is after respective virtual machine in this virtual network carries out network parameter configuration, this virtual machine can meet the requirement of the transmission packet of this physical machine, improves network transmission efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the schematic diagram of virtual network in prior art;
Fig. 2 is the flow chart of the method for parameter configuration embodiment 1 of a kind of virtual network provided by the invention;
Fig. 3 is the flow chart of the method for parameter configuration embodiment 2 of a kind of virtual network provided by the invention;
Fig. 4 is the flow chart of the method for parameter configuration embodiment 3 of a kind of virtual network provided by the invention;
Fig. 5 is the flow chart of the method for parameter configuration embodiment 4 of a kind of virtual network provided by the invention;
Fig. 6 is the flow chart of the method for parameter configuration embodiment 5 of a kind of virtual network provided by the invention;
Fig. 7 is the flow chart of the method for parameter configuration embodiment 6 of a kind of virtual network provided by the invention;
Fig. 8 is the flow chart of the method for parameter configuration embodiment 7 of a kind of virtual network provided by the invention;
Fig. 9 is the flow chart of the method for parameter configuration embodiment 8 of a kind of virtual network provided by the invention;
Figure 10 is the flow chart of the method for parameter configuration embodiment 9 of a kind of virtual network provided by the invention;
Figure 11 is the structural representation of the parameter configuration apparatus embodiments 1 of a kind of virtual network provided by the invention;
Figure 12 is the structural representation of the parameter configuration apparatus embodiments 2 of a kind of virtual network provided by the invention;
Figure 13 is the structural representation of the parameter configuration apparatus embodiments 3 of a kind of virtual network provided by the invention;
Figure 14 is the structural representation of the parameter configuring system embodiment of a kind of virtual network provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
First, it should be noted that, be provided with some physical machine and some virtual machines, each physical machine be mounted with at least one virtual machine in virtual network, each virtual machine can realize communication by physical machine, is connected between this physical machine with physical machine by network.The method for parameter configuration of the virtual network that the application provides and equipment can be applicable to, in any one physical machine in this virtual network, based on the software and hardware structure of this physical machine, realize the parameter configuration of this virtual network.
Refer to accompanying drawing 2, for method for parameter configuration embodiment 1 flow chart of a kind of virtual network provided by the invention, wherein, the first virtual machine and the second virtual machine is at least comprised in this virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, and described first physical machine is different from the second physical machine.
Wherein, the method specifically can comprise the following steps:
Step S201: the physical machine network parameter obtaining the physical machine comprised in described virtual network;
Wherein, at least two physical machine are comprised in this virtual network;
Wherein, physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine.
Concrete, this physical machine network parameter can comprise network parameter corresponding to physical machine, the MTU of such as this physical machine.
In concrete enforcement, the physical network parameter of this physical machine can obtain from the configuration information this physical machine, because network interface card limits the data packet transmission requirement of physical machine, then the network parameter of this physical machine network parameter network interface card that can specifically use this physical machine corresponding.
Step S202: according to the network parameter of described physical machine, analyzes the virtual machine network parameter obtaining virtual machine in described virtual network.
Wherein, this virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
Wherein, the network parameter of this physical machine limits any two virtual machines being articulated in different physical machine in this virtual network and transmits the parameters such as the size of packet, therefore, based on the network parameter of this physical machine, just can analyze and obtain virtual machine network parameter corresponding to virtual machine in this virtual network, just can realize being configured the parameter in this virtual network based on this virtual machine network parameter, the parameter in this virtual network is applicable to, improve network transmission efficiency.
It should be noted that, in concrete enforcement, if this method for parameter configuration is applied in the constructive process of virtual network, then in establishment virtual network process, just arrange according to the parameter of physical machine parameter to link in this virtual network, ensure that the parameter configuration in the virtual network created is suitable, improve the overall transfer efficiency of virtual network.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, based on the physical machine network parameter of physical machine in virtual network, determine the virtual machine network parameter of the virtual machine in this virtual network, the virtual machine network parameter obtained combines the physical machine network parameter of the physical machine in this virtual network, making based on this virtual machine network parameter is after respective virtual machine in this virtual network carries out network parameter configuration, this virtual machine can meet the requirement of the transmission packet of this physical machine, improves network transmission efficiency.
Refer to accompanying drawing 3, be method for parameter configuration embodiment 2 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S301: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
Wherein, determine that any two virtual machines in this virtual network are pending virtual machine, then based on the Actual path of information transmission between these two virtual machines, analyze at least two physical machine obtaining comprising in this Actual path.
Such as, this first virtual machine is articulated in the first physical machine, this second virtual machine is articulated in the second physical machine, when being connected by network between this first physical machine and second physical machine, then comprise the first physical machine and the second physical machine two physical machine in the Actual path between this first virtual machine and second virtual machine; And when being connected by the 3rd physical machine and real-time performance between this first physical machine and second physical machine, then comprise the first physical machine, the second physical machine and the 3rd physical machine totally three physical machine in the Actual path between this first virtual machine and second virtual machine.
Step S302: the physical machine network parameter of at least two physical machine described in acquisition;
Wherein, after determining and carrying out the physical machine comprised in the Actual path of information transmission between these two virtual machines, the physical machine network parameter of the physical machine comprised in this Actual path is obtained one by one.
Concrete, when comprising two physical machine in this Actual path, then obtain the physical machine network parameter of these two physical machine; When comprising three physical machine in this Actual path, then obtain the physical machine network parameter of these three physical machine.
In concrete enforcement, the physical network parameter due to this physical machine is the network parameter of its network interface card adopted, then in this step implementation procedure, be then obtain the network parameter of network interface card corresponding to the multiple physical machine comprised in this actual filtering.
It should be noted that, a functional module is provided with in each physical machine in this virtual network, can realize obtaining the physical machine network parameter in the physical machine of its correspondence based on this functional module, and be sent in the parameter configuration equipment of the method for parameter configuration performing this virtual network.
Step S303: according to the network parameter of described physical machine, analyzes the virtual machine network parameter obtaining virtual machine in described virtual network.
Wherein, step S303 is consistent with the step S202 in embodiment 1, does not repeat in the present embodiment.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, the physical machine network parameter of the physical machine comprised in the described virtual network of this acquisition, specifically comprise: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyze at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine; The physical machine network parameter of at least two physical machine described in acquisition.Adopt the method, corresponding physical machine is determined based on the Actual path of information transmission between two virtual machines, then the physical machine network parameter of this physical machine is obtained, in this process, for the Actual path of information transmission corresponding to different virtual machine, determine physical machine and physical machine network parameter thereof, based on this process, Actual path between can realizing for any two virtual machines in this virtual network, the actual conditions combining this virtual network are arranged, and improve network transmission efficiency.
Refer to accompanying drawing 4, be method for parameter configuration embodiment 3 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S401: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
Step S402: the physical machine network parameter of at least two physical machine described in acquisition;
Wherein, step S401-402 is consistent with the step S301-302 in embodiment 2, does not repeat in the present embodiment.
Step S403: obtain the default virtual machine network parameter of described first virtual machine and the default virtual machine network parameter of the second virtual machine;
Wherein, virtual machine is articulated in physical machine, and the relevant parameter of this virtual machine all can be stored in the physical machine of its mounting.
Concrete, in the first physical machine of this first virtual machine mounting, obtain the default virtual machine network parameter of this first virtual machine, in the second physical machine of this second virtual machine mounting, obtain the default virtual machine network parameter of this second virtual machine.
Wherein, when creating virtual machine, user can preset a virtual machine network parameter to this virtual machine, this virtual machine can carry out data packet transmission based on this default virtual machine network parameter, this default virtual machine network parameter be user rule of thumb or other conditions carry out arranging, its may and the data packet transmission be not suitable between this virtual machine and another virtual machine, therefore, performing step S404 to judge, needing it the need of reconfiguring.
Step S404: judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
First, it should be noted that, the default network parameter of this virtual machine and the default network parameter of network interface card are carried out the comparison of numerical value, it is compared to the default network parameter of virtual machine and physical machine in Actual path between these two virtual machines in fact, when the numerical value of the default network parameter of virtual machine is greater than the numerical value of default network parameter of physical machine, then the numerical value characterizing the default network parameter of the arbitrary virtual machine in this Actual path is greater than the numerical value of the default network parameter of arbitrary physical machine.
It should be noted that, when the numerical value of the numerical value of the default network parameter of this first virtual machine and the default network parameter of the second virtual machine is greater than the numerical value of default network parameter of these at least two network interface cards, when carrying out data packet transmission according to the default network parameter of this virtual machine and the default network parameter of this network interface card, need to carry out burst and restructuring to packet, cause this network transfer speeds slower, therefore, need to perform step S405, the virtual machine network parameter of this virtual machine is reconfigured, mates with the default network parameter of this network to make it; And when the numerical value of the numerical value of the default network parameter of this first virtual machine and the default network parameter of the second virtual machine is not more than the numerical value of default network parameter of these at least two network interface cards, when then carrying out data packet transmission between these two virtual machines, without the need to carrying out burst and restructuring to packet, then without the need to reconfiguring the virtual network parameter of this virtual machine.
Therefore, the numerical value of the default network parameter of this first virtual machine and the numerical value of the default network parameter of the second virtual machine are compared with the size of the numerical value of the default network parameter of at least two network interface cards by this step.
It should be noted that, the default network parameter of the network interface card that physical machine is corresponding characterizes the parameter that this physical machine carries out data packet transmission, in general, the default network parameter of this network interface card is definite value, when namely this network interface card dispatches from the factory, be provided with, user generally can not configure automatically, so, in conjunction with the default network parameter of this network interface card in the application, the virtual machine network parameter of virtual machine is configured, to realize the process be configured the parameter of virtual network.
Step S405: the numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, according to the network parameter of described physical machine, analyze the objective network parameter of the virtual machine obtained in described virtual network.
Wherein, step S405 is consistent with the step S303 in embodiment 2, does not repeat in the present embodiment.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, also comprise: obtain the default virtual machine network parameter of described first virtual machine and the default virtual machine network parameter of the second virtual machine; Judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result; The numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, perform the network parameter according to described physical machine, analyze the objective network parameter step of the virtual machine obtained in described virtual network.Adopt the method, the result that the data based on the numerical value of the default network parameter of virtual machine and the default network parameter of physical machine are compared, determine whether to need the virtual machine network parameter to virtual machine to reconfigure.
Refer to accompanying drawing 5, be method for parameter configuration embodiment 4 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S501: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
Step S502: the physical machine network parameter of at least two physical machine described in acquisition;
Step S503: obtain the default virtual machine network parameter of described first virtual machine and the default virtual machine network parameter of the second virtual machine;
Step S504: judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
Wherein, step S501-504 is consistent with the step S401-404 in embodiment 3, does not repeat in the present embodiment.
Step S505: the numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, the function information of at least two network interface cards described in acquisition;
Wherein, described function information at least represents the whether supported data bag process of described network interface card.
At least one during the optimization process etc. that concrete, this data processing comprises packet fragmentation, wrap for TPC (turboproductcode, product code) processes packet.
Wherein, because network interface card connects the equipment between this physical machine and network, the function information of this network interface card also can think the function of this physical machine in this transmission of data packets.
In concrete enforcement, because the TSO (TCPSegmentOffload) in network interface card/LRO (LargeReceiveOffload) can represent the whether supported data bag process of this network interface card, therefore, can obtain the parameter of this TSO/LRO, to judge the whether supported data bag process of this network interface card based on this parameter.
Wherein, this TSO is a kind of a small amount of disposal ability utilizing network interface card, reduces the technology that CPU sends packet load.
Wherein, can realize by by multiple TCP (TransmissionControlProtocol based on this LRO, transmission control protocol/IP(Internet Protocol)) Data Integration is in one structure, and at the network protocol stack consigning to upper strata sometime as a large packet after a while, to reduce the expense of upper-layer protocol stack deal with data, improve the ability of system acceptance tcp data bag.
Step S506: according to described function information, the whether supported data bag process of at least two network interface cards described in analyzing respectively, obtains analysis result;
Wherein, the function information of this acquisition is analyzed, to determine its whether supported data bag process.
In concrete enforcement, represent the whether supported data bag process of this network interface card by giving different values for parameter in this network interface card, as 0 expression can be adopted not support, 1 expresses support for.
Wherein, to each network interface card in this first virtual machine and Actual path corresponding to the second virtual machine, whether the process of supported data bag is all analyzed respectively, judges whether equal supported data process, if all support to perform step S508, otherwise performs step S507.
Step S507: at least two network interface card not all supported data bag process described in characterizing based on described analysis result, the physical machine network parameter according to described physical machine obtains described virtual machine network parameter;
Wherein, when the not all supported data bag process of these at least two network interface cards, then in this first virtual machine and Actual path corresponding to the second virtual machine, arbitrary network interface card is the process of supported data bag not, when then needing to carry out data packet transmission between these two virtual machines, once the virtual machine network parameter of this virtual machine is greater than the physical machine network parameter of this physical machine, need to carry out burst and recombinate then may realizing to packet, the data packet transmission namely between these two virtual machines cannot realize; Or the process of a network interface card supported data bag, another is not supported, then the data packet transmission between these two virtual machines also cannot realize.
Therefore, need the physical machine network parameter analysis in conjunction with this physical machine to obtain this virtual machine network parameter, coordinate with this physical machine network parameter to make this virtual machine network parameter.
Wherein, the described physical machine network parameter according to described physical machine obtains described virtual machine network parameter, specifically comprise: according to the configuration information of pre-stored in described physical machine, analyze the type of the virtual channel obtaining described first virtual machine and the second virtual machine composition; Based on the type of described virtual channel, select the computation rule preset; Based on described default computation rule and described physical machine network parameter, calculate described virtual machine network parameter.
Concrete, the type of virtual channel between the virtual machine of its mounting and other virtual machines is stored in this physical machine, the type of this virtual channel can for user in advance manual configuration obtain, the type of this virtual channel can comprise based on GRE (GenericRoutingEncapsulation, generic route encapsulation) or the type such as tunnel based on VxLAN agreement.
In concrete enforcement, need in packet due to the transmission of virtual machine to add the information corresponding to this tunnel type in its packet header, be described for MTU, between the MTU of the MTU of packet that this virtual machine sends relative to physical machine, there is a data difference, this data difference size virtual channel type corresponding with this virtual machine is corresponding, and as based in the virtual network of GRE, this data difference value is 46, in virtual network based on VxLAN agreement, this data difference value is 50.Wherein, when the MTU of this physical machine is known, then based on the type of the virtual channel of the virtual machine of its correspondence, the MTU of the virtual machine of its correspondence can be calculated.
Step S508: at least two network interface card all supported data bag process described in characterizing based on described analysis result, the preset maximum value according to described virtual machine obtains described virtual machine network parameter.
Wherein, this preset maximum value characterizes the maximum data packet data volume of described virtual function transmission.
Wherein, each network interface card supported data bag process in this first virtual machine and Actual path corresponding to the second virtual machine, then this virtual machine can adopt the virtual machine network parameter of the physical machine network parameter being greater than this physical machine to carry out data packet transmission, the burst to packet and restructuring can be realized in this Actual path, therefore, can be higher value to the virtual machine network optimum configurations of this virtual machine, as the preset maximum value of this virtual machine.
Wherein, the interval of virtual machine network parameter of this virtual machine setting can be 1-50, be then 50 by this virtual machine network optimum configurations, each packet can transmit larger data volume.
Certainly, it should be noted that, in actual enforcement, for reducing the time loss of packet fragmentation and restructuring, and improving the speed of data packet transmission between virtual machine, volume of transmitted data in transmission of data packets can be carried out in conjunction with between these two virtual machines, calculate a virtual machine network parameter, meet simultaneously and can once transmit larger data amount, and without the need to the too much time of carrying out burst and restructuring, to improve the speed of transfer of data in this virtual network.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, comprising: the function information of at least two network interface cards described in acquisition; Described function information at least represents the whether supported data bag process of described network interface card; According to described function information, the whether supported data bag process of at least two network interface cards described in analyzing respectively, obtains analysis result; At least two network interface card not all supported data bag process described in characterizing based on described analysis result, the physical machine network parameter according to described physical machine obtains described virtual machine network parameter; At least two network interface card all supported data bag process described in characterizing based on described analysis result, the preset maximum value according to described virtual machine obtains described virtual machine network parameter, and described preset maximum value characterizes the maximum data packet data volume of described virtual function transmission.Adopt the method, the situation of the physical machine that the Actual path between combining two virtual machines relates to whether supported data bag process, analyzes the virtual machine network parameter obtained more accurate.
Refer to accompanying drawing 6, be method for parameter configuration embodiment 5 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S601: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
Step S602: the physical machine network parameter of at least two physical machine described in acquisition;
Wherein, step S601-602 is consistent with the step S301-302 in embodiment 2, does not repeat in the present embodiment.
Step S603: whether the physical machine network parameter of at least two physical machine described in judgement is identical, obtains the first judged result;
Wherein, at least two physical machine are comprised in the Actual path of the information transmission between these two virtual machines, because this information is transmitted by data packet form, then in this transmission of data packets, for the process of this data packet transmission unified, then need to judge the physical machine network parameter situation of at least two physical machine in this Actual path.
Concrete, judge that whether the physical machine network parameter of at least two physical machine in this Actual path is identical, if identical, then can based on the virtual machine network parameter of the physical machine network parameter analyzing virtual machine of arbitrary physical machine; Otherwise, need the physical machine network parameter in conjunction with each physical machine in this Actual path to analyze, the virtual machine network parameter of these at least two virtual machines could be determined.
Step S604: described in described first judged result characterizes, the physical machine network parameter of at least two physical machine is identical, and the physical machine network parameter analysis according to described physical machine obtains the virtual machine network parameter of described virtual machine;
Wherein, when the physical machine network parameter of these at least two physical machine is identical, then obtain the virtual machine network parameter of this virtual machine according to this physical machine network parameter analysis.
It should be noted that, because the physical machine network parameter of these at least two physical machine is identical, then give and analyze and can analyze according to the physical machine network parameter of any one physical machine.
Step S605: when the physical machine network parameter of at least two physical machine is not identical described in described first judged result characterizes, minimum value in the physical machine network parameter of at least two physical machine described in acquisition, obtains the virtual machine network parameter of described virtual machine according to described minimum value analysis.
Wherein, when the physical machine network parameter of these at least two physical machine is not identical, need the physical machine network parameter in conjunction with each physical machine in this Actual path to analyze, analyze the virtual machine network parameter obtaining this virtual machine.
Concrete, be the burst in reduction transmission of data packets and regrouping process, select minimum value in the physical machine network parameter of these at least two physical machine, and obtain the virtual machine network parameter of this virtual machine based on this minimum value analytical calculation.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, the physical machine network parameter of each physical machine related in the Actual path to information transmission between this first virtual machine and second virtual machine is analyzed, when the physical machine network parameter of at least two physical machine is identical, the physical machine network parameter analysis according to described physical machine obtains the virtual machine network parameter of described virtual machine; When the physical machine network parameter of these at least two physical machine is not identical, then minimum value in the physical machine network parameter of at least two physical machine described in obtaining, obtains the virtual machine network parameter of described virtual machine according to described minimum value analysis.Adopt the method, combine the actual conditions of the physical machine in this Actual path, analyze and obtain virtual machine network parameter, analyze the virtual machine network parameter obtained more accurate.
Refer to accompanying drawing 7, be method for parameter configuration embodiment 6 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S701: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
Step S702: the physical machine network parameter of at least two physical machine described in acquisition;
Wherein, step S701-702 is consistent with the step S401-402 in embodiment 2, does not repeat in the present embodiment.
Step S703: according to the configuration information of pre-stored in described physical machine, analyzes the type obtaining virtual channel between described first virtual machine and the second virtual machine;
It should be noted that, the type of virtual channel between the virtual machine of its mounting and other virtual machines is stored in this physical machine, the type of this virtual channel can obtain for user is pre-configured, the type of this virtual channel can comprise based on GRE (GenericRoutingEncapsulation, generic route encapsulation) or the type such as tunnel based on VxLAN agreement.
Concrete, the configuration information in pre-stored in this physical machine can be obtained, just can obtain the type of the virtual channel between this first virtual machine and second virtual machine, as GRE or VxLAN etc.
Step S704: based on the type of described virtual channel, analyzes the default network parameter obtaining virtual machine corresponding to described virtual channel;
Wherein, after determining the type of virtual channel, the type analysis based on this virtual channel obtains the default network parameter of the virtual machine related in this virtual channel.
Wherein, this default network parameter can be arranged this virtual machine for user rule of thumb waits, also can be physical machine when dispatching from the factory, manufacturer is that its configuration obtains, or when also can be this establishment virtual machine, parameter configuration based on this physical machine obtains, and does not limit in the application to the default network parameter set-up mode of this virtual machine.
Wherein, the type in this different virtual tunnel, corresponding different analysis calculation methods, can illustrate the process of this analytical calculation in subsequent embodiment, not describe in detail in the present embodiment.
Step S705: judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
Step S706: the numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, according to the network parameter of described physical machine, analyze the objective network parameter of the virtual machine obtained in described virtual network.
Wherein, step S705-706 is consistent with the step S404-405 in embodiment 3, does not repeat in the present embodiment.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, comprising: according to the configuration information of pre-stored in described physical machine, analyze the type obtaining virtual channel between described first virtual machine and the second virtual machine; Based on the type of described virtual channel, analyze the default network parameter obtaining virtual machine corresponding to described virtual channel.Adopt the method, based on the default network parameter of the virtual machine of its correspondence of type analysis of virtual channel, and carry out follow-up process in this default network parameter, analytic process is simple, is easy to realize.
Refer to accompanying drawing 8, be method for parameter configuration embodiment 7 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S801: based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
Step S802: the physical machine network parameter of at least two physical machine described in acquisition;
Step S803: according to the configuration information of pre-stored in described physical machine, analyzes the type obtaining virtual channel between described first virtual machine and the second virtual machine;
Step S804: based on the type of described virtual channel, analyzes the default network parameter obtaining virtual machine corresponding to described virtual channel.
Step S805: judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
Wherein, step S801-805 is consistent with the step S701-705 in embodiment 6, does not repeat in the present embodiment.
Step S806: the numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, the computation rule that the type selecting according to described virtual channel is preset;
It should be noted that, in the present embodiment, when the default network parameter of this virtual machine is for creating virtual machine, the parameter configuration based on this physical machine obtains.
Wherein, the numerical value of the default network parameter of at least two network interface cards described in the numerical value of the numerical value of the default network parameter of this first virtual machine and the default network parameter of the second virtual machine is greater than, when then this carries out data packet transmission according to the default network parameter of this virtual machine and the default network parameter of this network interface card, need to carry out burst and restructuring to packet, cause this network transfer speeds slower, therefore, need to reconfigure the virtual machine network parameter of this virtual machine, mate with the default network parameter of this network to make it.
Now, according to the type of this first virtual machine and virtual channel corresponding to the second virtual machine, the computation rule preset is selected.
In concrete enforcement, the type of different virtual channels, corresponding different computation rules.
It should be noted that, need in packet due to the transmission of virtual machine to add the information corresponding to this tunnel type in its packet header, be described for MTU, between the MTU of the MTU of packet that this virtual machine sends relative to physical machine, there is a data difference, this data difference size virtual channel type corresponding with this virtual machine is corresponding, and as based in the virtual network of GRE, this data difference value is 46, in virtual network based on VxLAN agreement, this data difference value is 50.Then different virtual channel types, corresponding different computation rules.
Step S807: obtain the physical machine network parameter of the first physical machine and the physical machine network parameter of the second physical machine successively;
During owing to calculating the default network parameter of this virtual machine, need the physical machine network parameter of the physical machine according to its mounting, then need to obtain the physical machine network parameter of the first physical machine corresponding to this first virtual machine, and the physical machine network parameter of the second physical machine corresponding to this second virtual machine is obtained.
Step S808: according to described default computation rule and the physical machine network parameter of described first physical machine and the physical machine network parameter of the second physical machine, calculate the default network parameter of described first virtual machine and the default network parameter of the second virtual machine respectively;
Wherein, due to the corresponding same tunnel type of the virtual machine of two in same virtual channel, then when calculating the default network parameter of two virtual machines, then identical computation rule is adopted.
To calculate MTU, based in the virtual network of GRE, this data difference value is 46, then the MTU formula calculating virtual machine is:
v-MTU=p-MTU-46;
In virtual network based on VxLAN agreement, this data difference value is 50, then the MTU formula calculating virtual machine is:
v-MTU=p-MTU-50;
Wherein, v-MTU is the MTU of virtual machine, and this p-MTU is the physical machine network parameter of the physical machine of this virtual machine mounting.
Wherein, it should be noted that, the physical machine network parameter of at least two physical machine comprised in the Actual path between this first virtual machine and second virtual machine can be different, then the default network parameter of this first virtual machine calculated and the default network parameter of the second virtual machine may be different.
Step S809: judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
Step S810: the numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, according to the network parameter of described physical machine, analyze the objective network parameter of the virtual machine obtained in described virtual network.
Wherein, step S809-810 is consistent with the step S705-706 in embodiment 6, does not repeat in the present embodiment.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, the computation rule that the type selecting according to described virtual channel is preset; Obtain the physical machine network parameter of the first physical machine and the physical machine network parameter of the second physical machine successively; According to described default computation rule and the physical machine network parameter of described first physical machine and the physical machine network parameter of the second physical machine, calculate the default network parameter of described first virtual machine and the default network parameter of the second virtual machine respectively.Adopt the method, based on the physical machine network parameter of the physical machine that type and this virtual machine of virtual channel mount, analyze the default network parameter of the virtual machine of its correspondence, and carry out follow-up process in this default network parameter, analytic process is simple and amount of calculation is less, is easy to realize.
Refer to accompanying drawing 9, be method for parameter configuration embodiment 8 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S901: the physical machine network parameter obtaining the physical machine comprised in described virtual network;
Step S902: according to the network parameter of described physical machine, analyzes the virtual machine network parameter obtaining virtual machine in described virtual network;
Wherein, step S901-902 is consistent with the step S201-202 in embodiment 1, does not repeat in the present embodiment.
Step S903: according to described first virtual machine in virtual network described in described virtual machine network parameter configuration;
First, it should be noted that, the present embodiment for for this method for parameter configuration be that the physical machine that mounted by this virtual machine performs, concrete, be applied in the first physical machine of mounting first virtual machine.
Wherein, after analysis in step S902 obtains the virtual machine network parameter of virtual machine in this virtual network, based on this virtual machine network parameter, the first virtual machine that this first physical machine mounts is configured.
Step S904: described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
Wherein, by the network between this first physical machine and second physical machine, be sent in the second physical machine by analyzing the virtual machine network parameter obtained in this first physical machine, to make this second physical machine be configured the second virtual machine that it mounts based on this virtual machine network parameter, complete the process of the virtual machine network parameter configuration to the virtual machine in this virtual network.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, also comprise: according to described first virtual machine in virtual network described in described virtual machine network parameter configuration; Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.Adopt the method, the second virtual machine that the first virtual machine mount the first physical machine and the second physical machine be connected with this first physical machine mount carries out virtual machine network parameter.
Refer to accompanying drawing 10, be method for parameter configuration embodiment 9 flow chart of a kind of virtual network provided by the invention, the method specifically can comprise the following steps:
Step S1001: the physical machine network parameter obtaining the physical machine comprised in described virtual network;
Step S1002: according to the network parameter of described physical machine, analyzes the virtual machine network parameter obtaining virtual machine in described virtual network;
Wherein, step S1001-1002 is consistent with the step S201-202 in embodiment 1, does not repeat in the present embodiment.
Step S1003: described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network;
Step S1004: described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
It should be noted that, the present embodiment for for this method for parameter configuration be by do not mount this first virtual machine or the second virtual machine physical machine perform, concrete, can be the 3rd physical machine be connected by network with the first physical machine, the second physical machine.
Wherein, the 3rd physical machine for being included in the physical machine between this first virtual machine and second virtual machine in Actual path, can also can be the physical machine be only connected with the first physical machine and/or the second physical machine.
Concrete, the virtual machine network parameter this analysis obtained sends to the first physical machine, the first virtual machine that it mounts is configured based on this virtual machine network parameter to make this first physical machine, the virtual machine network parameter this analysis obtained sends to the second physical machine, to make this second physical machine be configured the second virtual machine that it mounts based on this virtual machine network parameter, complete the process of the virtual machine network parameter configuration to the virtual machine in this virtual network.
To sum up, in the method for parameter configuration of a kind of virtual network that the present embodiment provides, also comprise: described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network; Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.Adopt the method, based on other physical machine of non-first physical machine and the second physical machine, realize analyzing the virtual machine network parameter in this virtual machine network, and achieve it and analyze in the first physical machine and the second physical machine that the virtual machine network parameter that obtains is sent to mounting virtual machine, make it be configured the virtual machine of its mounting, complete the process of the virtual machine network parameter configuration to the virtual machine in this virtual network.
The method for parameter configuration of virtual network is described in detail in the embodiment that the invention described above provides, method for parameter configuration for virtual network of the present invention can adopt the device of various ways to realize, therefore present invention also offers a kind of parameter configuration equipment and system of virtual network, provide specific embodiment below and be described in detail.
Refer to accompanying drawing 11, for parameter configuration apparatus embodiments 1 structural representation of a kind of virtual network provided by the invention, wherein, the first virtual machine and the second virtual machine is at least comprised in this virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, and described first physical machine is different from the second physical machine.
Wherein, the parameter configuration equipment of this virtual network specifically can comprise following structure: receiving port 1101 and processor 1102;
Wherein, this receiving port 1101, for obtaining the physical machine network parameter of the physical machine comprised in described virtual network, comprises at least two physical machine in described virtual network; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine;
Wherein, this processor 1102, for the network parameter according to described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
In concrete enforcement, this parameter configuration equipment can be a certain physical machine be applied in this virtual network, then this processor can adopt the CPU (CentralProcessingUnit, central processing unit) of this physical machine.
Wherein, this receiving port 1101, specifically for the Actual path based on information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine; The physical machine network parameter of at least two physical machine described in acquisition.
To sum up, in the parameter configuration equipment of a kind of virtual network that the present embodiment provides, based on the physical machine network parameter of physical machine in virtual network, determine the virtual machine network parameter of the virtual machine in this virtual network, the virtual machine network parameter obtained combines the physical machine network parameter of the physical machine in this virtual network, making based on this virtual machine network parameter is after respective virtual machine in this virtual network carries out network parameter configuration, this virtual machine can meet the requirement of the transmission packet of this physical machine, improves network transmission efficiency.
Refer to accompanying drawing 12, for parameter configuration apparatus embodiments 2 structural representation of a kind of virtual network provided by the invention, the parameter configuration equipment of this virtual network specifically can comprise following structure: receiving port 1201, processor 1202 and the first configuration module 1203.
Wherein, the structure function of this receiving port 1201, processor 1202 is consistent with the corresponding construction function in embodiment 1, does not repeat in the present embodiment.
Wherein, this the first configuration module 1203, for according to described first virtual machine in virtual network described in described virtual machine network parameter configuration, and described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
First, it should be noted that, the present embodiment for for this parameter configuration equipment be applied to this virtual machine mounting physical machine, concrete, be applied in the first physical machine of mounting first virtual machine.
Wherein, by the network between this first physical machine and second physical machine, be sent in the second physical machine by analyzing the virtual machine network parameter obtained in this first physical machine, to make this second physical machine be configured the second virtual machine that it mounts based on this virtual machine network parameter, complete the process of the virtual machine network parameter configuration to the virtual machine in this virtual network.
To sum up, in the parameter configuration equipment of a kind of virtual network that the present embodiment provides, the second virtual machine that the first virtual machine mount the first physical machine and the second physical machine be connected with this first physical machine mount carries out virtual machine network parameter.
Refer to accompanying drawing 13, for parameter configuration apparatus embodiments 3 structural representation of a kind of virtual network provided by the invention, the parameter configuration equipment of this virtual network specifically can comprise following structure: receiving port 1301, processor 1302 and the second configuration module 1303.
Wherein, the structure function of this receiving port 1301, processor 1302 is consistent with the corresponding construction function in embodiment 1, does not repeat in the present embodiment.
Wherein, this second configuration module 1204, for described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network; Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
It should be noted that, the present embodiment for for this parameter configuration equipment can be the physical machine not mounting this first virtual machine or the second virtual machine, concrete, can be the 3rd physical machine be connected by network with the first physical machine, the second physical machine.
Wherein, the 3rd physical machine for being included in the physical machine between this first virtual machine and second virtual machine in Actual path, can also can be the physical machine be only connected with the first physical machine and/or the second physical machine.
Concrete, the virtual machine network parameter this analysis obtained sends to the first physical machine, the first virtual machine that it mounts is configured based on this virtual machine network parameter to make this first physical machine, the virtual machine network parameter this analysis obtained sends to the second physical machine, to make this second physical machine be configured the second virtual machine that it mounts based on this virtual machine network parameter, complete the process of the virtual machine network parameter configuration to the virtual machine in this virtual network.
To sum up, in the parameter configuration equipment of a kind of virtual network that the present embodiment provides, based on other physical machine of non-first physical machine and the second physical machine, realize analyzing the virtual machine network parameter in this virtual machine network, and achieve it and analyze in the first physical machine and the second physical machine that the virtual machine network parameter that obtains is sent to mounting virtual machine, make it be configured the virtual machine of its mounting, complete the process of the virtual machine network parameter configuration to the virtual machine in this virtual network.
Refer to accompanying drawing 14, for the parameter configuring system example structure schematic diagram of a kind of virtual network provided by the invention, wherein, the first virtual machine and the second virtual machine is at least comprised in this virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, and described first physical machine is different from the second physical machine.
Wherein, system described in this can comprise following equipment: control end 1401 and agent side 1402.
Wherein, this control end 1401 is arranged in described virtual network in arbitrary physical machine, for obtaining the physical machine network parameter of the physical machine comprised in described virtual network, comprises at least two physical machine in described virtual network; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine; According to the network parameter of described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
Wherein, this agent side 1402 is arranged in described virtual network in each physical machine, and the physical machine network parameter for the physical machine by its correspondence transfers to described control end.
Wherein, this agent side 1402 also for: receive the virtual machine network parameter that described control end sends, and based on the virtual machine of described virtual machine network parameter configuration mounting.
It should be noted that, this control end and agent side are arranged in each physical machine, can be connected between this control end and agent side by network.
It should be noted that, in concrete enforcement, this agent side can be applied in Same Physical machine with this control end.
To sum up, in the parameter configuring system of a kind of virtual network that the present embodiment provides, based on the physical machine network parameter of physical machine in virtual network, determine the virtual machine network parameter of the virtual machine in this virtual network, the virtual machine network parameter obtained combines the physical machine network parameter of the physical machine in this virtual network, making based on this virtual machine network parameter is after respective virtual machine in this virtual network carries out network parameter configuration, this virtual machine can meet the requirement of the transmission packet of this physical machine, improves network transmission efficiency.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For the device that embodiment provides, the method provided due to itself and embodiment is corresponding, so description is fairly simple, relevant part illustrates see method part.
To the above-mentioned explanation of provided embodiment, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle provided in this article and features of novelty.

Claims (17)

1. the method for parameter configuration of a virtual network, it is characterized in that, the first virtual machine and the second virtual machine is at least comprised in described virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, and described method comprises:
Obtain the physical machine network parameter of the physical machine comprised in described virtual network, in described virtual network, comprise at least two physical machine; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine;
According to the network parameter of described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
2. method according to claim 1, is characterized in that, obtains the physical machine network parameter of the physical machine comprised in described virtual network, specifically comprises:
Based on the Actual path of information transmission between described first virtual machine and the second virtual machine, analyze at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine;
The physical machine network parameter of at least two physical machine described in acquisition.
3. method according to claim 2, is characterized in that, according to the physical machine network parameter of described physical machine, analyzes before obtaining the virtual machine network parameter of virtual machine in described virtual network, also comprises:
Obtain the default virtual machine network parameter of described first virtual machine and the default virtual machine network parameter of the second virtual machine;
Judge the numerical value of the numerical value of the default network parameter of described first virtual machine and the default network parameter of the second virtual machine whether be greater than described in the numerical value of default network parameter of at least two network interface cards, obtain the first comparison result;
The numerical value of the default network parameter of at least two network interface cards described in being greater than based on the first comparison result sign numerical value of default network parameter of described first virtual machine and the numerical value of the default network parameter of the second virtual machine, perform the network parameter according to described physical machine, analyze the objective network parameter step of the virtual machine obtained in described virtual network.
4. method according to claim 3, is characterized in that, the described physical machine network parameter according to described physical machine, analyzes the virtual machine network parameter obtaining virtual machine in described virtual network, comprising:
The function information of at least two network interface cards described in acquisition; Described function information at least represents the whether supported data bag process of described network interface card;
According to described function information, the whether supported data bag process of at least two network interface cards described in analyzing respectively, obtains analysis result;
At least two network interface card not all supported data bag process described in characterizing based on described analysis result, the physical machine network parameter according to described physical machine obtains described virtual machine network parameter;
At least two network interface card all supported data bag process described in characterizing based on described analysis result, the preset maximum value according to described virtual machine obtains described virtual machine network parameter, and described preset maximum value characterizes the maximum data packet data volume of described virtual function transmission.
5. method according to claim 4, is characterized in that, the described physical machine network parameter according to described physical machine obtains described virtual machine network parameter, comprising:
According to the configuration information of pre-stored in described physical machine, analyze the type of the virtual channel obtaining described first virtual machine and the second virtual machine composition;
Based on the type of described virtual channel, select the computation rule preset;
Based on described default computation rule and described physical machine network parameter, calculate described virtual machine network parameter.
6. method according to claim 2, is characterized in that, the described network parameter according to described physical machine, analyzes the virtual machine network parameter obtaining virtual machine in described virtual network, comprising:
Whether the physical machine network parameter of at least two physical machine described in judgement is identical, obtains the first judged result;
Described in described first judged result characterizes, the physical machine network parameter of at least two physical machine is identical, and the physical machine network parameter analysis according to described physical machine obtains the virtual machine network parameter of described virtual machine;
Described in described first judged result characterizes, the physical machine network parameter of at least two physical machine is not identical, and minimum value in the physical machine network parameter of at least two physical machine described in acquisition, obtains the virtual machine network parameter of described virtual machine according to described minimum value analysis.
7. method according to claim 3, is characterized in that, the default virtual machine network parameter of described first virtual machine of described acquisition and the default virtual machine network parameter of the second virtual machine, specifically comprise:
According to the configuration information of pre-stored in described physical machine, analyze the type obtaining virtual channel between described first virtual machine and the second virtual machine;
Based on the type of described virtual channel, analyze the default network parameter obtaining virtual machine corresponding to described virtual channel.
8. method according to claim 7, is characterized in that, the described type based on described virtual channel, analyzes the default network parameter obtaining virtual machine corresponding to described virtual channel, comprising:
According to the computation rule that the type selecting of described virtual channel is preset;
Obtain the physical machine network parameter of the first physical machine and the physical machine network parameter of the second physical machine successively;
According to described default computation rule and the physical machine network parameter of described first physical machine and the physical machine network parameter of the second physical machine, calculate the default network parameter of described first virtual machine and the default network parameter of the second virtual machine respectively.
9. method according to claim 1, is characterized in that, described analysis also comprises after obtaining the virtual machine network parameter of virtual machine in described virtual network:
According to described first virtual machine in virtual network described in described virtual machine network parameter configuration.
10. method according to claim 9, is characterized in that, described analysis also comprises after obtaining the virtual machine network parameter of virtual machine in described virtual network:
Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
11. methods according to claim 1, is characterized in that, described analysis also comprises after obtaining the virtual machine network parameter of virtual machine in described virtual network:
Described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network;
Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
The parameter configuration equipment of 12. 1 kinds of virtual networks, it is characterized in that, the first virtual machine and the second virtual machine is at least comprised in described virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, and described parameter configuration equipment comprises:
Receiving port, for obtaining the physical machine network parameter of the physical machine comprised in described virtual network, comprises at least two physical machine in described virtual network; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine;
Processor, for the network parameter according to described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement.
13. equipment according to claim 12, it is characterized in that, described receiving port, specifically for the Actual path based on information transmission between described first virtual machine and the second virtual machine, analyzes at least two physical machine comprised in the Actual path obtained between described first virtual machine and the second virtual machine; The physical machine network parameter of at least two physical machine described in acquisition.
14. equipment according to claim 12, is characterized in that, also comprise:
First configuration module, for according to described first virtual machine in virtual network described in described virtual machine network parameter configuration, and described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
15. equipment according to claim 12, is characterized in that, also comprise:
Second configuration module, for described virtual machine network parameter is sent to described first physical machine, so that described first physical machine configures described first virtual machine in described virtual network; Described virtual machine network parameter is sent to described second physical machine, so that described second physical machine configures described second virtual machine in described virtual network.
The parameter configuring system of 16. 1 kinds of virtual networks, it is characterized in that, the first virtual machine and the second virtual machine is at least comprised in described virtual network, described first virtual machine is articulated in the first physical machine, described second virtual machine is articulated in the second physical machine, described first physical machine is different from the second physical machine, and described system comprises:
Being arranged on the control end in arbitrary physical machine in described virtual network, for obtaining the physical machine network parameter of the physical machine comprised in described virtual network, in described virtual network, comprising at least two physical machine; Described physical machine network parameter is for describing described physical machine for the first requirement needing the packet transmitted by described physical machine; According to the network parameter of described physical machine, analyze the virtual machine network parameter obtaining virtual machine in described virtual network, described virtual machine network parameter is for describing described virtual machine for the second requirement needing the packet transmitted by described virtual machine, and described virtual machine network parameter meets described first requirement;
Agent side, described agent side is arranged in described virtual network in each physical machine, and the physical machine network parameter for the physical machine by its correspondence transfers to described control end.
17. systems according to claim 16, is characterized in that, described agent side also for: receive the virtual machine network parameter that described control end sends, and based on the virtual machine of described virtual machine network parameter configuration mounting.
CN201510640001.7A 2015-09-30 2015-09-30 A kind of method for parameter configuration of virtual network, equipment and system Active CN105245365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510640001.7A CN105245365B (en) 2015-09-30 2015-09-30 A kind of method for parameter configuration of virtual network, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510640001.7A CN105245365B (en) 2015-09-30 2015-09-30 A kind of method for parameter configuration of virtual network, equipment and system

Publications (2)

Publication Number Publication Date
CN105245365A true CN105245365A (en) 2016-01-13
CN105245365B CN105245365B (en) 2019-04-26

Family

ID=55042876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510640001.7A Active CN105245365B (en) 2015-09-30 2015-09-30 A kind of method for parameter configuration of virtual network, equipment and system

Country Status (1)

Country Link
CN (1) CN105245365B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656867A (en) * 2016-11-10 2017-05-10 北京大学(天津滨海)新代信息技术研究院 Dynamic SDN (Software Defined Network) configuration method based on application awareness of virtual network
CN108616387A (en) * 2018-03-30 2018-10-02 北京润科通用技术有限公司 A kind of configuration method and device of the virtual terminal based on AFDX buses
CN112153016A (en) * 2020-09-09 2020-12-29 维沃移动通信有限公司 Network communication method and device
CN113037563A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Cloud platform network optimization method, device and system and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1355449A1 (en) * 2002-04-17 2003-10-22 France Telecom Method and system for determining the parameters of a data transmission network for creating, in that network, a virtual private network
CN103248700A (en) * 2013-05-16 2013-08-14 成都国腾实业集团有限公司 Method for limiting speeds of internal and external networks of virtual machine on cloud platform in different levels

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1355449A1 (en) * 2002-04-17 2003-10-22 France Telecom Method and system for determining the parameters of a data transmission network for creating, in that network, a virtual private network
CN103248700A (en) * 2013-05-16 2013-08-14 成都国腾实业集团有限公司 Method for limiting speeds of internal and external networks of virtual machine on cloud platform in different levels

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656867A (en) * 2016-11-10 2017-05-10 北京大学(天津滨海)新代信息技术研究院 Dynamic SDN (Software Defined Network) configuration method based on application awareness of virtual network
CN106656867B (en) * 2016-11-10 2019-11-05 北京大学(天津滨海)新一代信息技术研究院 A kind of dynamic SDN configuration method of the application perception based on virtual network
CN108616387A (en) * 2018-03-30 2018-10-02 北京润科通用技术有限公司 A kind of configuration method and device of the virtual terminal based on AFDX buses
CN108616387B (en) * 2018-03-30 2021-02-02 北京润科通用技术有限公司 Configuration method and device of virtual terminal based on AFDX (avionics full Duplex switched Ethernet) bus
CN112153016A (en) * 2020-09-09 2020-12-29 维沃移动通信有限公司 Network communication method and device
CN112153016B (en) * 2020-09-09 2023-04-07 维沃移动通信有限公司 Network communication method and device
CN113037563A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Cloud platform network optimization method, device and system and readable storage medium
CN113037563B (en) * 2021-03-26 2023-01-24 山东英信计算机技术有限公司 Cloud platform network optimization method, device and system and readable storage medium

Also Published As

Publication number Publication date
CN105245365B (en) 2019-04-26

Similar Documents

Publication Publication Date Title
US10601906B2 (en) Method and system for processing load balancing using virtual switch in virtual network environment
EP3356935B1 (en) Direct network traffic monitoring within vm platforms in virtual processing environments
CN110506411B (en) Method and system for providing packet enforcement using logical ports in a virtualized computing environment
US11196677B2 (en) Heterogeneous multi-protocol stack method, apparatus, and system
CN111865736B (en) Equipment control method and device
US20140003249A1 (en) Virtual port monitoring method and apparatus
US9774710B2 (en) System and method for network protocol offloading in virtual networks
EP3499845B1 (en) Data packet transmission method and system
CN104169878A (en) Scalable virtual appliance cloud
CN112769794B (en) Data conversion method and device
CN105245365A (en) Parameter configuration method, equipment and system for virtual network
CN104394080A (en) Method and device for achieving function of security group
CN106998347A (en) The apparatus and method of server virtualization network share
CN111371694B (en) Shunting method, device and system, processing equipment and storage medium
CN104683428A (en) Network service processing method and device
CN105190530A (en) Transmitting hardware-rendered graphical data
CN110932992A (en) Load balancing communication method based on tunnel mode
KR102168047B1 (en) Virtual circuits in cloud networks
Kang et al. A comparative study of Zynq-based OpenFlow switches in a software/hardware co-design
Vrijders et al. Reducing the complexity of virtual machine networking
WO2013060193A1 (en) Method for bundling cross-board multilink protocol
CN108023837B (en) Virtual network switch system and establishing method thereof
CN102065028B (en) Gateway equipment and message processing method
CN107276873B (en) Method and device for accessing service
CN107896234B (en) Method for transmitting message in Modbus communication network, Modbus communication network system and Modbus communication network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant