CN102123093B - Method for ensuring necessary network bandwidth of virtual machine - Google Patents

Method for ensuring necessary network bandwidth of virtual machine Download PDF

Info

Publication number
CN102123093B
CN102123093B CN201110052872A CN201110052872A CN102123093B CN 102123093 B CN102123093 B CN 102123093B CN 201110052872 A CN201110052872 A CN 201110052872A CN 201110052872 A CN201110052872 A CN 201110052872A CN 102123093 B CN102123093 B CN 102123093B
Authority
CN
China
Prior art keywords
network bandwidth
microsoft loopback
loopback adapter
network
bandwidth
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.)
Expired - Fee Related
Application number
CN201110052872A
Other languages
Chinese (zh)
Other versions
CN102123093A (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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201110052872A priority Critical patent/CN102123093B/en
Publication of CN102123093A publication Critical patent/CN102123093A/en
Application granted granted Critical
Publication of CN102123093B publication Critical patent/CN102123093B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for ensuring the necessary network bandwidth of a virtual machine, which belongs to a network resource scheduling and allocating method in a virtual machine system, solves the problems that the network configuration can not be modified and the minimum bandwidth required by a virtual network card can not be ensured in the existing network bandwidth control method, modifies the bandwidth limit of the virtual network card in real time so as to ensure the necessary network bandwidth of each virtual network card, and utilizes the physical bandwidth and improves the utilization rate of the network hardware equipment to the greatest degree. The method disclosed by the invention is used in a virtual machine system comprising a virtualization platform and M virtual machines, wherein 1-2 virtual network cards are configured in each virtual machine; and the method sequentially comprises a network bandwidth limit allocating step, a busy or idle state judging step and a network bandwidth limit adjusting step. According to the invention, the using conditions of the network bandwidth by the virtual network cards in the virtualization platform are monitored in real time, the busy or idle state of each virtual network card is judged, and the idle network resources are transferred to the virtual machine with a using demand, thereby ensuring the necessary network bandwidth of the virtual machine, and sufficiently using the network bandwidth.

Description

The essential network bandwidth support method of a kind of virtual machine
Technical field
The invention belongs to network resource scheduling and distribution method in the dummy machine system; Be specifically related to the essential network bandwidth support method of a kind of virtual machine; Be used for limited network bandwidth resources is distributed to the virtual machine of user demand, keep the essential network bandwidth of network service to ensure each virtual machine.
Background technology
Dummy machine system has huge advantage at the aspects such as integration of hardware facility utilance, service reliability, server, is being faced with unprecedented development and opportunity.Dummy machine system comprises virtual platform and a plurality of virtual machine; One or more Microsoft Loopback Adapter of configuration in each virtual machine; A plurality of virtual machines can move on a physical platform simultaneously; Each Microsoft Loopback Adapter uses certain network bandwidth separately, and is separate between the Microsoft Loopback Adapter, can fair, the safe resource of sharing physical network.
Along with increasing network application need provide lasting, stable service to the user; Virtual platform is when network is busy; How to guarantee that virtual machine still can provide the continuous uninterrupted service to the user with stabilized quality, become a problem of virtual machine network quality assurance.Through network bandwidth control algolithm in the virtual platform, the allocated bandwidth of Microsoft Loopback Adapter in the control virtual machine is a kind of method that realizes that virtual machine network distributes.
The Xen virtual platform that Cambridge University was proposed in 2003 uses the first in first out strategy that has weights, realizes the upper limit control to Microsoft Loopback Adapter bandwidth in the virtual machine.Virtual platform reads the network bandwidth predetermined value of each Microsoft Loopback Adapter, and is each Microsoft Loopback Adapter distribution network bandwidth amount in view of the above.Network bandwidth amount is in cycle time; Microsoft Loopback Adapter can use the maximum of the network bandwidth; When Microsoft Loopback Adapter to the demand of bandwidth during greater than preallocated network bandwidth amount, the Microsoft Loopback Adapter application is also waited for next of virtual platform distribution network bandwidth amount once more cycle time.On this basis, each Microsoft Loopback Adapter shared network bandwidth resources.
The existing network allocation method of bandwidth, when N piece Microsoft Loopback Adapter was simultaneously busy, each Microsoft Loopback Adapter can use the 1/N of physical network bandwidth, and Microsoft Loopback Adapter can be realized fair shared network resource; But in order to guarantee the network service quality of virtual machine, virtual platform need ensure that virtual machine keeps desired by services minimal network bandwidth, is called the essential network bandwidth among the application; In the existing network allocation method of bandwidth; Virtual platform limits the maximum bandwidth amount of other Microsoft Loopback Adapters through weights, ensures the essential network bandwidth of some Microsoft Loopback Adapter, and this tactful drawback is; When the network bandwidth has the free time; Other Microsoft Loopback Adapters are subject to the bandwidth upper limit, can't make full use of idle network bandwidth resources, cause waste of network resources; Virtual machine is when starting; Through reading virtual machine configuration, confirm information such as virtual machine network bandwidth, realize initialization to virtual machine network; In the virtual machine running; Network configuration is revised and can't be come into force, and the sub-distribution again of bandwidth can only be restarted virtual machine and realize through interrupting user's service.
Summary of the invention
The present invention proposes essential network bandwidth support method in a kind of virtual machine; Solve in the existing network band width control method; The problem of the essential minimum bandwidth of Microsoft Loopback Adapter can't be revised, can't be ensured to network configuration, and real time modifying Microsoft Loopback Adapter bandwidth amount is to guarantee the essential network bandwidth of each Microsoft Loopback Adapter; And at utmost utilize band width in physical, improve the utilance of network hardware equipment.
The essential network bandwidth support method of a kind of virtual machine of the present invention is used to comprise the dummy machine system of virtual platform and M virtual machine, and M=1~32 dispose 1~2 Microsoft Loopback Adapter in each virtual machine, comprise the steps: in proper order
One, network bandwidth amount allocation step comprises following process:
1.1 virtual platform reads the essential network bandwidth of each Microsoft Loopback Adapter from user profile; User profile be have the Microsoft Loopback Adapter of demand that it is set must the network bandwidth; The essential network bandwidth of other Microsoft Loopback Adapter is set to 0, and each Microsoft Loopback Adapter must network bandwidth summation be less than or equal to band width in physical;
1.2 virtual platform is the network bandwidth initial value in each Microsoft Loopback Adapter assignment period time according to the user profile that is read, be 5~50 milliseconds cycle time;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring periods time; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Be that then this Microsoft Loopback Adapter is an idle condition, otherwise this Microsoft Loopback Adapter is a busy state, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the network bandwidth amount of each busy state Microsoft Loopback Adapter is increased the stepping bandwidth, judge whether all Microsoft Loopback Adapter network bandwidth amount summations are less than or equal to band width in physical, be then to change step 2; Otherwise the process of carrying out 3.2;
3.2 the network bandwidth amount of each idle condition Microsoft Loopback Adapter is reduced the stepping bandwidth, judge whether all Microsoft Loopback Adapter network bandwidth amount summations are less than or equal to band width in physical, be then to change step 2; Otherwise the process of carrying out 3.3;
3.3 with the network bandwidth amount of each busy state Microsoft Loopback Adapter and its must the network bandwidth relatively; The network bandwidth amount that will exceed the maximum Microsoft Loopback Adapter of the essential network bandwidth reduces by 2 times of stepping bandwidth, judges whether all Microsoft Loopback Adapter network bandwidth amount summations are less than or equal to band width in physical; Be then to change step 2; Otherwise the process of carrying out 3.4;
3.4 all Microsoft Loopback Adapter network bandwidth amount summations are deducted band width in physical, and remaining sum is on average deducted by the network bandwidth amount of all busy state Microsoft Loopback Adapters, changes step 2;
Said band width in physical is the physical network bandwidth summation that virtual platform provides, and said stepping bandwidth is 0.001~0.05 times of band width in physical.
The essential network bandwidth support method of described a kind of virtual machine; In the process 3.3 of said network bandwidth amount set-up procedure; Exceed the maximum Microsoft Loopback Adapter number of the essential network bandwidth greater than 1 o'clock, the network bandwidth amount that respectively exceeds must the network bandwidth maximum Microsoft Loopback Adapters is all reduced by 2 times of stepping bandwidth.
The essential network bandwidth support method of described a kind of virtual machine, said spare time or busy condition determining step can comprise following process:
A. each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring periods time, use the network bandwidth amount of distribution when Microsoft Loopback Adapter after, to virtual platform application distribution network bandwidth amount once more;
B. virtual platform judge the double application distribution network of each Microsoft Loopback Adapter bandwidth amount the time interval whether greater than said cycle time, be that then this Microsoft Loopback Adapter is an idle condition, otherwise this Microsoft Loopback Adapter is a busy state.
When the double application distribution network of Microsoft Loopback Adapter bandwidth amount interval greater than said cycle time the time; This Microsoft Loopback Adapter actual bandwidth demand is less than the network bandwidth amount of distributing; It is few to be illustrated in the network bandwidth amount that network bandwidth requirements is distributed in said cycle time; The network bandwidth that distributes has residue, and Microsoft Loopback Adapter is idle;
When the time interval of the double application distribution network of Microsoft Loopback Adapter bandwidth amount is less than or equal to said cycle time; This Microsoft Loopback Adapter actual bandwidth demand is not less than the network bandwidth amount of distribution; It is many than network bandwidth amount to be illustrated in said cycle time network bandwidth requirements; The network bandwidth of former distribution is not enough, and Microsoft Loopback Adapter is busy.
The present invention dynamically reads and writes the information of Microsoft Loopback Adapter in the virtual machine, on-the-fly modifies Microsoft Loopback Adapter network bandwidth amount, under the prerequisite of not interrupting user's service, Microsoft Loopback Adapter is configured; Stable, accurate, the fair characteristics of bandwidth amount scheduling strategy have been kept; Through Microsoft Loopback Adapter in the real-time monitoring virtual platform to the operating position of the network bandwidth; Judge the busy or not busy state of Microsoft Loopback Adapter; The Internet resources of free time are shifted to the virtual machine that user demand is arranged, ensure the essential network bandwidth of virtual machine; When many Microsoft Loopback Adapters are simultaneously busy, ensure the essential network bandwidth of each Microsoft Loopback Adapter, and putting before this, the remaining bandwidth fair allocat; When busy, give the Microsoft Loopback Adapter that network demand is arranged for the part virtual machine, make full use of the network bandwidth bandwidth resource allocation; Virtual platform can be according to user's request simultaneously, the amplitude of define grid bandwidth amount adjustment, seeking balance in system sensitivity and adjustment expense.
Description of drawings
Fig. 1 is a schematic flow sheet of the present invention;
Fig. 2 is the bandwidth adjustment curve synoptic diagram of three virtual machines.
Embodiment
Below in conjunction with embodiment the present invention is done further detailed description.
The hardware platform of present embodiment adopts Intel E5600 processor, the 2G internal memory, and the physical network card bandwidth is 100Mbps; Present embodiment comprises virtual platform and 3 virtual machine Dom1, Dom2 and Dom3, and each virtual machine adopts monokaryon virtual cpu, 256 MB of memory; Each virtual machine uses the monolithic Microsoft Loopback Adapter, so the virtual machine network bandwidth is the Microsoft Loopback Adapter network bandwidth; The client of test usefulness is connected same switch with each virtual machine, forms Star Network.The Netperf testing software of Hewlett-Packard's exploitation is used in test, fully to take the virtual machine network bandwidth.It must the network bandwidth be 20Mbps that Dom1 sets, and it must the network bandwidth be 40Mbps that Dom2 sets, and Dom3 does not do necessary network bandwidth requirement, and virtual platform cycle time is 10ms, and the stepping bandwidth is 0.005 times of band width in physical.Virtual machine Dom1 and Dom2 are in 0~3 second, and network requests is idle; In 3~5 seconds, virtual machine Dom1 and Dom2 network requests begin busy, and the actual bandwidth demand is all greater than 100Mbps; After 5 seconds, virtual machine Dom1 asks to reduce, and the actual bandwidth request is reduced to 0Mbps, and virtual machine Dom2 request is kept busy constant; Be in busy state after the operation of Dom3 network requests virtual machine, the actual bandwidth request is greater than 100Mbps always.
Present embodiment comprises the steps: in proper order
One, network bandwidth amount allocation step comprises following process:
1.1 virtual platform reads the essential network bandwidth of each Microsoft Loopback Adapter from user profile; The essential network bandwidth of the Microsoft Loopback Adapter A of Dom1 is 20Mbps; The essential network bandwidth of the Microsoft Loopback Adapter B of Dom2 is 40Mbps; The essential network bandwidth of the Microsoft Loopback Adapter C of Dom3 is 0Mbps, and each Microsoft Loopback Adapter must network bandwidth summation be 60Mbps, less than band width in physical 100Mbps;
1.2 the network bandwidth initial value of Microsoft Loopback Adapter A is set to 20Mbps, the network bandwidth initial value of Microsoft Loopback Adapter B is set to 40Mbps, and the network bandwidth initial value of Microsoft Loopback Adapter C is set to 0Mbps;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; The actual bandwidth demand of Microsoft Loopback Adapter A and B is 0Mbps, and network bandwidth amount 20Mbps and 40Mbps less than distributing all are judged as idle condition; Microsoft Loopback Adapter C actual bandwidth demand is greater than 100Mpbs, greater than the network bandwidth amount 0Mbps that distributes, is judged as busyly, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the Microsoft Loopback Adapter C network bandwidth amount of busy state is increased stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 20Mpbs, 40Mbps and 0.5Mbps at this moment; All-network bandwidth amount summation is 60.5Mbps; Less than band width in physical 100Mbps, change step 2;
Repeat the process 3.1 of above-mentioned steps two, step 3, to 800ms, Microsoft Loopback Adapter C network bandwidth amount increases to 40Mbps, and the network bandwidth amount of Microsoft Loopback Adapter A and B is respectively 20Mbps and 40Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; The actual bandwidth demand of Microsoft Loopback Adapter A and B is 0Mbps, all less than the network bandwidth amount of distributing, is judged as idle condition; The actual bandwidth demand of Microsoft Loopback Adapter C is greater than 100Mbps, and the network bandwidth amount 40Mbps greater than distributing is judged as busy state, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the network bandwidth amount of the Microsoft Loopback Adapter C of busy state is increased stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 20Mpbs, 40Mbps and 40.5Mbps at this moment; All-network bandwidth amount summation is 100.5Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 the network bandwidth amount of the Microsoft Loopback Adapter of the Microsoft Loopback Adapter A of idle condition and B is reduced stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 19.5Mbps, 39.5Mbps and 40.5Mbps at this moment; All-network bandwidth amount summation is 99.5Mbps; Less than band width in physical, change step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; The actual bandwidth demand of Microsoft Loopback Adapter A and B is 0Mbps, and network bandwidth amount 19.5Mbps and 39.5Mbps less than distributing all are judged as idle condition; The actual bandwidth demand of Microsoft Loopback Adapter C is greater than 100Mbps, and the network bandwidth amount 40.5Mbps greater than distributing is judged as busy state, changes step 3;
3.1 the network bandwidth amount of the Microsoft Loopback Adapter C of busy state is increased stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 19.5Mbps, 39.5Mbps and 41Mbps at this moment; All-network bandwidth amount summation is 99.5Mbps; Less than band width in physical 100Mbps, change step 2;
Repeat above-mentioned steps two and step 3; To 1600ms, the Microsoft Loopback Adapter network bandwidth amount of Microsoft Loopback Adapter A is reduced to 0Mbps, and the Microsoft Loopback Adapter network bandwidth amount of Microsoft Loopback Adapter B is reduced to 20Mbps; The network bandwidth amount of Microsoft Loopback Adapter C increases to 80Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Microsoft Loopback Adapter A actual bandwidth demand is 0Mbps, and the network bandwidth amount 0Mbps that equals to distribute is judged as idle condition; The actual bandwidth demand of Microsoft Loopback Adapter B is 0Mbps, and the network bandwidth amount 20Mbps less than distributing is judged as idle condition; The actual bandwidth demand of Microsoft Loopback Adapter C is greater than 100Mbps, and the network bandwidth amount 80Mbps greater than distributing is judged as busy state, changes step 3;
3.1 the network bandwidth amount of the Microsoft Loopback Adapter C of busy state is increased stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0Mbps, 20Mbps and 80.5Mbps at this moment; All-network bandwidth amount summation is 100.5Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 the Microsoft Loopback Adapter A of idle condition and the network bandwidth amount of B are reduced stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0Mbps, 19.5Mbps and 80.5Mbps at this moment; All-network bandwidth amount summation is 100Mbps, equals band width in physical, changes step 2;
Repeat the process 3.1,3.2 of above-mentioned steps two, step 3; Idle at Microsoft Loopback Adapter A and B, when Microsoft Loopback Adapter C kept busy state, the network bandwidth amount of Microsoft Loopback Adapter A and B was reduced to 0Mbps; The network bandwidth amount of Microsoft Loopback Adapter C increases to 100Mbps; Fully taken the physical network bandwidth, reached the efficient utilization to physical network device, this dynamic adjustment process needs 2000ms;
Repeat above-mentioned steps two, in the time of 3 seconds, Dom1 and the request of Dom2 virtual machine network increase, and each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms judges whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs, and network bandwidth amount 0Mbps, 0Mbps and 100Mbps greater than distributing all are judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 Microsoft Loopback Adapter A, B and the C network bandwidth amount of busy state are increased 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0.5Mbps, 0.5Mbps and 100.5Mbps at this moment; All-network bandwidth amount summation is 101.5Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 do not have the idle condition network interface card, carry out process 3.3;
3.3 the network bandwidth amount and the essential network bandwidth that busy state Microsoft Loopback Adapter A, B and C are distributed compare; Exceed must the network bandwidth be respectively-19.5Mbps ,-39.5Mbps and 100.5Mbps, exceed the maximum Microsoft Loopback Adapter C of the essential network bandwidth in 2 times of stepping bandwidth 1Mbps so reduce.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0.5Mbps, 0.5Mbps and 99.5Mbps at this moment.All-network bandwidth amount summation is 100.5Mbps, greater than band width in physical 100Mbps, carries out process 3.4;
3.4 100.5Mbps deducts band width in physical 100Mbps with all-network bandwidth amount summation; Remaining sum 0.5Mbps is on average deducted by all busy Microsoft Loopback Adapter network bandwidth amounts, and at this moment, Microsoft Loopback Adapter A, B and C bandwidth are 0.33Mbps; 0.33Mbps and 99.33Mbps, change step 2;
Repeat the process 3.1,3.2,3.3,3.4 of above-mentioned steps two, step 3, to 1200ms, the Microsoft Loopback Adapter network bandwidth amount of Dom1 and Dom2 all increases to 40Mbps, and the network bandwidth amount of Dom3 Microsoft Loopback Adapter is reduced to 20Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms judges whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution, and Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs; Greater than the network bandwidth amount 40Mbps that distributes; 40Mbps and 20Mbps all are judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 Microsoft Loopback Adapter A, B and the C network bandwidth amount of busy state are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 40.5Mbps, 40.5Mbps and 20.5Mbps at this moment; All-network bandwidth amount summation is 101.5Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 do not have the idle condition network interface card, carry out process 3.3;
3.3 the network bandwidth amount and the essential network bandwidth that busy state Microsoft Loopback Adapter A, B and C are distributed compare; Exceed and to be respectively 20.5Mbps by the network bandwidth; 0.5Mbps and 20.5Mbps, exceed the maximum Microsoft Loopback Adapter A of the essential network bandwidth and C in 2 times of stepping bandwidth 1Mbps so reduce.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 39.5Mbps, 40.5Mbps and 19.5Mbps at this moment, and all-network bandwidth amount summation is 99.5Mbps, less than band width in physical 100Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution, Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs, greater than the network bandwidth amount 39.5Mbps, 40.5Mbps and the 19.5Mbps that distribute; All be judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 Microsoft Loopback Adapter A, B and the C network bandwidth amount of busy state are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 40Mbps, 41Mbps and 20Mbps at this moment; All-network bandwidth amount summation is 101Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 do not have the idle condition network interface card, carry out process 3.3;
3.3 the network bandwidth amount and the essential network bandwidth that busy state Microsoft Loopback Adapter A, B and C are distributed compare; Exceed and to be respectively 20Mbps by the network bandwidth; 1Mbps and 20Mbps exceed the maximum Microsoft Loopback Adapter A of the essential network bandwidth and C in 2 times of stepping bandwidth 1Mbps so reduce.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 39Mbps, 41Mbps and 19Mbps at this moment, and all-network bandwidth amount summation is 99Mbps, less than band width in physical 100Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution, Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs, greater than the network bandwidth amount 39Mbps, 41Mbps and the 19Mbps that distribute; All be judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 Microsoft Loopback Adapter A, B and the C network bandwidth amount of busy state are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 39.5Mbps, 41.5Mbps and 19.5Mbps at this moment; All-network bandwidth amount summation is 100.5Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 do not have the idle condition network interface card, carry out process 3.3;
3.3 the network bandwidth amount and the essential network bandwidth that busy state Microsoft Loopback Adapter A, B and C are distributed compare; Exceed and to be respectively 19.5Mbps by the network bandwidth; 1.5Mbps and 19.5Mbps, exceed the maximum Microsoft Loopback Adapter A of the essential network bandwidth and C in 2 times of stepping bandwidth 1Mbps so reduce.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 38.5Mbps, 41.5Mbps and 18.5Mbps at this moment, and all-network bandwidth amount summation is 98.5Mbps, less than band width in physical 100Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution, Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs, greater than the network bandwidth amount 38.5Mbps, 41.5Mbps and the 18.5Mbps that distribute; All be judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 Microsoft Loopback Adapter A, B and the C network bandwidth amount of busy state are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 39Mbps, 42Mbps and 19Mbps at this moment; All-network bandwidth amount summation is 100Mbps; Equal band width in physical 100Mbps, change step 2;
Repeat above-mentioned steps two, step 3, during to 4460ms, the network bandwidth amount of Microsoft Loopback Adapter A and C is reduced to 33Mbps and 13Mbps, and the network bandwidth amount of the Microsoft Loopback Adapter of Dom2 increases to 53Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms judges whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution, and Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs; Greater than the network bandwidth amount 33Mbps that distributes; 53Mbps and 13Mbps all are judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the network bandwidth amount of Microsoft Loopback Adapter A, B and the C of busy state is increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 33.5Mbps, 53.5Mbps and 13.5Mbps at this moment; All-network bandwidth amount summation is 100.5Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 do not have the idle condition network interface card, carry out process 3.3;
3.3 the network bandwidth amount and the essential network bandwidth that busy state Microsoft Loopback Adapter A, B and C are distributed compare; Exceed and to be respectively 13.5Mbps, 13.5Mbps and 13.5Mbps by the network bandwidth, exceed the essential network bandwidth maximum Microsoft Loopback Adapter A, B and C in 2 times of stepping bandwidth 1Mbps so reduce.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 32.5Mbps, 52.5Mbps and 12.5Mbps at this moment, and all-network bandwidth amount summation is 97.5Mbps, less than band width in physical 100Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution, Microsoft Loopback Adapter A, B and C actual bandwidth demand are all greater than 100Mpbs, greater than the network bandwidth amount 32.5Mbps, 52.5Mbps and the 12.5Mbps that distribute; Be judged as busy state, change step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 Microsoft Loopback Adapter A, B and the C network bandwidth amount of busy state are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 33Mbps, 53Mbps and 13Mbps at this moment; All-network bandwidth amount summation is 99Mbps; Greater than band width in physical 100Mbps, change step 2;
Repeat above-mentioned steps two, step 3, Microsoft Loopback Adapter A, B and C lay respectively at dynamic adjustments between 33Mbps, 53Mbps and 13Mbps and 32.5Mbps, 52.5Mbps and the 12.5Mbps, and continue always.Dom1 and Dom2 virtual machine have satisfied the essential network bandwidth of set 20Mbps and 40Mbps, and have shared remaining 40Mbps bandwidth with Dom3, and adjustment network bandwidth required time is 1460ms.
Repeat above-mentioned steps in the time of two, 5 seconds, the request of Dom1 virtual machine network reduces, and the request of Microsoft Loopback Adapter A actual bandwidth is reduced to 0Mbps, and the network bandwidth amount 33Mbps less than distributing is judged as idle condition; Dom2 and Dom3 virtual machine keep busy state, and the actual bandwidth request of Microsoft Loopback Adapter B and C all is judged as busy state greater than 100Mbps greater than the network bandwidth amount 53Mbps and the 13Mbps that distribute, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the Microsoft Loopback Adapter B of busy state and the network bandwidth amount of C are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 33Mbps, 53.5Mbps and 13.5Mbps at this moment; All-network bandwidth amount summation is 100Mbps; Equal band width in physical, change step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Microsoft Loopback Adapter A actual bandwidth demand is 0Mpbs, and the network bandwidth amount 33Mbps less than distributing is judged as the free time; The actual bandwidth demand of Microsoft Loopback Adapter B and C is greater than 100Mpbs, greater than the network bandwidth amount 53.5Mbps and the 13.5Mbps that distribute, is judged as busyly, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the Microsoft Loopback Adapter B of busy state and the network bandwidth amount of C are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 33Mbps, 54Mbps and 14Mbps at this moment; All-network bandwidth amount summation is 101Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 the network bandwidth amount of the Microsoft Loopback Adapter A of idle condition is reduced stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 32.5Mbps, 54Mbps and 14Mbps at this moment; All-network bandwidth amount summation is 100.5Mbps; Greater than band width in physical, carry out process 3.3;
3.3 the network bandwidth amount that the Microsoft Loopback Adapter B of busy state and C are distributed and the essential network bandwidth relatively, exceed and must be respectively 14Mbps and 14Mbps by the network bandwidth, so minimizing exceeds must the network bandwidth maximum Microsoft Loopback Adapter C in 2 times of stepping bandwidth 1Mbps.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 32.5Mbps, 53Mbps and 13Mbps at this moment, and all-network bandwidth amount summation is 98.5Mbps, less than band width in physical 100Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Microsoft Loopback Adapter A actual bandwidth demand is 0Mpbs, and the network bandwidth amount 32.5Mbps less than distributing is judged as the free time; The actual bandwidth demand of Microsoft Loopback Adapter B and C is greater than 100Mpbs, greater than the network bandwidth amount 53Mbps and the 13Mbps that distribute, is judged as busyly, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the Microsoft Loopback Adapter B of busy state and the network bandwidth amount of C are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 32.5Mbps, 53.5Mbps and 13.5Mbps at this moment; All-network bandwidth amount summation is 99.5Mbps; Less than band width in physical 100Mbps, change step 2;
Repeat above-mentioned steps two, step 3, the network bandwidth amount of Microsoft Loopback Adapter A is reduced to 0Mbps during to 6 seconds, and the network bandwidth amount of Microsoft Loopback Adapter B increases to 70Mbps, and the network bandwidth amount of Microsoft Loopback Adapter C is reduced to 30Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Microsoft Loopback Adapter A actual bandwidth demand is 0Mpbs, and the network bandwidth amount 0Mbps that equals to distribute is judged as the free time; The actual bandwidth demand of Microsoft Loopback Adapter B and C is greater than 100Mpbs, greater than the network bandwidth amount 70Mbps and the 30Mbps that distribute, is judged as busyly, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the Microsoft Loopback Adapter B of busy state and the network bandwidth amount of C are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0Mbps, 70.5Mbps and 30.5Mbps at this moment; All-network bandwidth amount summation is 101Mbps; Greater than band width in physical 100Mbps, carry out process 3.2;
3.2 the network bandwidth amount of the Microsoft Loopback Adapter A of idle condition is reduced stepping bandwidth 0.5Mbps; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0Mbps, 70.5Mbps and 30.5Mbps at this moment; All-network bandwidth amount summation is 101Mbps; Greater than band width in physical 100Mbps, carry out process 3.3;
3.3 relatively with the network bandwidth amount of the distribution of busy state Microsoft Loopback Adapter B and C and the essential network bandwidth; Exceed and to be respectively 30.5Mbps and 30.5Mbps by the network bandwidth, exceed the maximum Microsoft Loopback Adapter C of the essential network bandwidth in 2 times of stepping bandwidth 1Mbps so reduce.The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0Mbps, 69.5Mbps and 29.5Mbps at this moment, and all-network bandwidth amount summation is 99Mbps, less than band width in physical 100Mbps, changes step 2;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring 10ms; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Microsoft Loopback Adapter A actual bandwidth demand is 0Mpbs, and the network bandwidth amount 0Mbps that equals to distribute is judged as the free time; The actual bandwidth demand of Microsoft Loopback Adapter B and C is greater than 100Mpbs, greater than the network bandwidth amount 69.5Mbps and the 29.5Mbps that distribute, is judged as busyly, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the Microsoft Loopback Adapter B of busy state and the network bandwidth amount of C are increased stepping bandwidth 0.5Mbps respectively; The network bandwidth amount of Microsoft Loopback Adapter A, B and C is respectively 0Mbps, 70Mbps and 30Mbps at this moment; All-network bandwidth amount summation is 100Mbps; Equal band width in physical 100Mbps, change step 2;
Repeat above-mentioned steps two, step 3, Microsoft Loopback Adapter A, B and C lay respectively at 0Mbps, 69.5Mbps, dynamic adjustments between 29.5Mbps and 0Mbps, 70Mbps and the 30Mbps, and continue always.The Dom2 virtual machine has satisfied the essential network bandwidth of set 40Mbps, and has shared remaining 60Mbps bandwidth with Dom3, and adjustment network bandwidth required time is 1000ms.
The bandwidth adjustment curve of three virtual machines is as shown in Figure 2, and rectangle, circle, triangle are represented the network bandwidth amount of Microsoft Loopback Adapter A, B and C different cycles time respectively among the figure.

Claims (2)

1. the essential network bandwidth support method of a virtual machine is used to comprise the dummy machine system of virtual platform and M virtual machine, and M=1~32 dispose 1~2 Microsoft Loopback Adapter in each virtual machine, comprise the steps: in proper order
One, network bandwidth amount allocation step comprises following process:
1.1 virtual platform reads the essential network bandwidth of each Microsoft Loopback Adapter from user profile; User profile be have the Microsoft Loopback Adapter of demand that it is set must the network bandwidth; The essential network bandwidth of other Microsoft Loopback Adapter is set to 0, and each Microsoft Loopback Adapter must network bandwidth summation be less than or equal to band width in physical;
1.2 virtual platform is the network bandwidth amount initial value in each Microsoft Loopback Adapter assignment period time according to the user profile that is read, be 5~50 milliseconds cycle time;
Two, busy or not busy state determining step; Each Microsoft Loopback Adapter actual bandwidth demand in the virtual platform monitoring periods time; Judge whether each Microsoft Loopback Adapter actual bandwidth demand is less than or equal to the network bandwidth amount of distribution; Be that then this Microsoft Loopback Adapter is an idle condition, otherwise this Microsoft Loopback Adapter is a busy state, changes step 3;
Three, network bandwidth amount set-up procedure comprises following process:
3.1 the network bandwidth amount of each busy state Microsoft Loopback Adapter is increased the stepping bandwidth, judge whether all Microsoft Loopback Adapter network bandwidth amount summations are less than or equal to band width in physical, be then to change step 2; Otherwise the process of carrying out 3.2;
3.2 the network bandwidth amount of each idle condition Microsoft Loopback Adapter is reduced the stepping bandwidth, judge whether all Microsoft Loopback Adapter network bandwidth amount summations are less than or equal to band width in physical, be then to change step 2; Otherwise the process of carrying out 3.3;
3.3 with the network bandwidth amount of each busy state Microsoft Loopback Adapter and its must the network bandwidth relatively; The network bandwidth amount that will exceed the maximum Microsoft Loopback Adapter of the essential network bandwidth reduces by 2 times of stepping bandwidth, judges whether all Microsoft Loopback Adapter network bandwidth amount summations are less than or equal to band width in physical; Be then to change step 2; Otherwise the process of carrying out 3.4;
3.4 all Microsoft Loopback Adapter network bandwidth amount summations are deducted band width in physical, and remaining sum is on average deducted by the network bandwidth amount of all busy state Microsoft Loopback Adapters, changes step 2;
Said band width in physical is the physical network bandwidth summation that virtual platform provides, and said stepping bandwidth is 0.001~0.05 times of band width in physical.
2. the essential network bandwidth support method of a kind of virtual machine as claimed in claim 1 is characterized in that:
In the process 3.3 of said network bandwidth amount set-up procedure, exceed the maximum Microsoft Loopback Adapter number of the essential network bandwidth, the network bandwidth amount that respectively exceeds must the network bandwidth maximum Microsoft Loopback Adapters is all reduced by 2 times of stepping bandwidth greater than 1 o'clock.
CN201110052872A 2011-03-04 2011-03-04 Method for ensuring necessary network bandwidth of virtual machine Expired - Fee Related CN102123093B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110052872A CN102123093B (en) 2011-03-04 2011-03-04 Method for ensuring necessary network bandwidth of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110052872A CN102123093B (en) 2011-03-04 2011-03-04 Method for ensuring necessary network bandwidth of virtual machine

Publications (2)

Publication Number Publication Date
CN102123093A CN102123093A (en) 2011-07-13
CN102123093B true CN102123093B (en) 2012-09-26

Family

ID=44251549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110052872A Expired - Fee Related CN102123093B (en) 2011-03-04 2011-03-04 Method for ensuring necessary network bandwidth of virtual machine

Country Status (1)

Country Link
CN (1) CN102123093B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013064181A1 (en) * 2011-11-02 2013-05-10 Siemens Aktiengesellschaft Real time ethernet in virtual machines
CN102801636B (en) * 2012-09-05 2015-07-29 成都国腾实业集团有限公司 The method of cloud computing platform cloud mainframe network bandwidth restriction
CN103248700B (en) * 2013-05-16 2016-04-20 成都国腾实业集团有限公司 The method of cloud platform virtual machine intranet and extranet different stage speed limit
CN103838520A (en) * 2014-02-19 2014-06-04 华为技术有限公司 Input/output traffic control method and equipment
CN104883264A (en) * 2014-02-27 2015-09-02 中国科学院声学研究所 Method and system of virtualizing network cards on network processing platform
CN106161068B (en) * 2015-04-15 2020-10-16 华为技术有限公司 Recovery prompting and distributing method for network resources and controller
CN107222349B (en) * 2017-06-23 2021-09-10 北京三快在线科技有限公司 Method and device for configuring network card rate of virtual machine, computer equipment and storage medium
CN109962862A (en) * 2017-12-25 2019-07-02 航天信息股份有限公司 Cloud platform, distribution method of dynamic bandwidth and device based on cloud platform
CN110086724B (en) * 2018-01-26 2020-11-27 北京金山云网络技术有限公司 Bandwidth adjusting method and device, electronic equipment and computer readable storage medium
CN109787818B (en) * 2018-12-28 2020-08-25 联想(北京)有限公司 Interface configuration adjusting method and device and electronic equipment
CN114257515A (en) * 2021-12-21 2022-03-29 中国电信集团系统集成有限责任公司 Bandwidth secondary scheduling method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067557A (en) * 1996-09-06 2000-05-23 Cabletron Systems, Inc. Method and system for allocating CPU bandwidth by prioritizing competing processes
CN1885821A (en) * 2005-06-24 2006-12-27 中国长城计算机深圳股份有限公司 Realization method for carrying out buffer control on internet user bandwidth
CN101409674A (en) * 2008-11-26 2009-04-15 中兴通讯股份有限公司 Apparatus, system and method for implementing access bandwidth dynamic regulation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067557A (en) * 1996-09-06 2000-05-23 Cabletron Systems, Inc. Method and system for allocating CPU bandwidth by prioritizing competing processes
CN1885821A (en) * 2005-06-24 2006-12-27 中国长城计算机深圳股份有限公司 Realization method for carrying out buffer control on internet user bandwidth
CN101409674A (en) * 2008-11-26 2009-04-15 中兴通讯股份有限公司 Apparatus, system and method for implementing access bandwidth dynamic regulation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Yifeng Zhu 等.Improved Read Performance in a Cost-Effective, Fault-Tolerant Parallel Virtual File System (LEFT-PVFS).《IEEE COMPUTER SOCIETY》.2003, *
YifengZhu等.ImprovedReadPerformanceinaCost-Effective Fault-Tolerant Parallel Virtual File System (LEFT-PVFS).《IEEE COMPUTER SOCIETY》.2003

Also Published As

Publication number Publication date
CN102123093A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN102123093B (en) Method for ensuring necessary network bandwidth of virtual machine
US9369249B2 (en) Terminal inter-application network resource allocation method and device thereof
US20210036957A1 (en) Methods and devices for optimizing load balancing based on cloud monitoring
Iqbal et al. SLA-driven dynamic resource management for multi-tier web applications in a cloud
CN105279027B (en) A kind of virtual machine deployment method and device
CN105872079B (en) A kind of link equalization method based on domain name system DNS
JP2017511545A5 (en)
CN104104551B (en) Cloud resource need assessment method and device
CN105227489B (en) A kind of bandwidth management method and electronic equipment
CN112988390A (en) Calculation power resource allocation method and device
CN102045396A (en) Load balancing method of server document
WO2013082742A1 (en) Resource scheduling method, device and system
US20150146521A1 (en) Dynamic resource pooling and trading mechanism in network virtualization
JP6394313B2 (en) Storage management device, storage management method, and storage management program
CN106407013A (en) Resource dynamic dispatching method, apparatus and system, and resource dispatching server
JP2013196695A (en) Virtual machine allocation system and method of the same
Ekane et al. FlexVF: Adaptive network device services in a virtualized environment
CN106020971A (en) CPU (Central Processing Unit) scheduling method and device in cloud host system
CN106506594B (en) A kind of concurrent computation resource distribution method and device
CN114489463B (en) Method and device for dynamically adjusting QOS of storage volume and computing equipment
CN115357368A (en) MapReduce job scheduling method based on heterogeneous environment perception
CN108833528A (en) A kind of cloud platform colony dispatching method and apparatus
CN105824708A (en) CPU (Central Processing Unit) scheduling method and device in cloud host system
CN115344350A (en) Node equipment of cloud service system and resource processing method
CN109962862A (en) Cloud platform, distribution method of dynamic bandwidth and device based on cloud platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120926