CN103532866A - Flow control method and system for virtual machine - Google Patents
Flow control method and system for virtual machine Download PDFInfo
- Publication number
- CN103532866A CN103532866A CN201310516422.XA CN201310516422A CN103532866A CN 103532866 A CN103532866 A CN 103532866A CN 201310516422 A CN201310516422 A CN 201310516422A CN 103532866 A CN103532866 A CN 103532866A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- flow
- control module
- data
- flow control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a flow control method and system for a virtual machine. The method comprises steps as follows: a transmission module transmits data to a flow control module corresponding to the virtual machine under the condition that data is required to be transmitted to the virtual machine, wherein the flow control module is configured with a flow threshold corresponding to the virtual machine in advance; and the flow control module transmits the received data to the virtual machine, wherein the flow control module controls the data transmission rate to the virtual machine according to the pre-configured flow threshold. According to the flow control method and system for the virtual machine, real-time efficient control is performed on the data transmission rate of the virtual machine through preset flow threshold of the flow control module, therefore application of other virtual machines in the environment is not affected, reasonable distribution can be performed on systematic flow resources, and systematic operation efficiency is improved.
Description
Technical field
The present invention relates to computer realm, and especially, relate to a kind of flow control methods and system of virtual machine.
Background technology
In traditional network, can realize each physical IP is carried out to flow restriction by physics fire compartment wall.But, if the bandwidth of the separate unit virtual machine in server is not carried out to flow control, there will be separate unit virtual machine occupied bandwidth too large, affect the application of other virtual machine in environment.
Existing flow control technique can solve the flow control under legacy network, can carry out flow control to whole system, but can not carry out flow control to separate unit server, can not solve the flow control under cloud computing virtual environment.Owing to re-creating, virtual machine elapsed time and resource are more, therefore conventionally also available virtual machine are moved as required.Under cloud computing virtual environment, virtual machine is dynamically and as required to move, so the features such as IP address of virtual machine can change along with the migration of virtual machine.With the flow control that traditional means are carried out virtual machine, be at this time infeasible.Wherein, virtual machine (Virtual Machine) refer to by software simulation have complete hardware system function, operate in a complete computer in complete isolation environment.
For being difficult in correlation technique, single virtual machine is carried out to flow control, cause the excessive problem that affects other virtual machine normal use of single virtual machine occupied bandwidth, not yet propose at present effective solution.
Summary of the invention
For being difficult in correlation technique, virtual machine is carried out to flow control, cause the excessive problem that affects other virtual machine normal use of single virtual machine occupied bandwidth, the present invention proposes a kind of flow control methods and system of virtual machine, can the message transmission rate of virtual machine be carried out in real time, effectively be controlled by flow-control module, thus the floating resources of distribution system reasonably.
Technical scheme of the present invention is achieved in that
A kind of flow control methods of virtual machine is provided according to an aspect of the present invention.
According to the flow control methods of virtual machine of the present invention, comprise:
In the situation that needs send data to virtual machine, transport module sends data to the flow-control module corresponding with virtual machine, and wherein, flow-control module is provided with the flow threshold that virtual machine is corresponding in advance;
Flow-control module is by the transfer of data receiving to virtual machine, and wherein, the transmission rate that flow-control module is reportedly transported to virtual machine according to pre-configured flow threshold logarithm is controlled.
And flow control methods according to the present invention further comprises:
Corresponding relation between pre-configured each flow-control module and each virtual machine.
In addition, flow control methods according to the present invention further comprises:
Between each flow-control module and respective virtual machine, be pre-created for transmitting the virtual data channel of data.
Further, above-mentioned flow-control module is positioned at same physics pusher side with corresponding virtual machine.
And flow control methods according to the present invention further comprises:
In the situation that a virtual machine is transferred to target physical machine from original physical machine, create the flow-control module corresponding with virtual machine after transfer, and create virtual data channel between the virtual machine after transfer and this flow-control module.
A kind of flow control system of virtual machine is provided according to an aspect of the present invention.
According to the flow control system of virtual machine of the present invention, comprise:
Transport module, in the situation that needs send data to virtual machine, sends data to the flow-control module corresponding with virtual machine, and wherein, flow-control module is provided with the flow threshold that virtual machine is corresponding in advance;
Flow-control module, for by the transfer of data receiving to virtual machine, wherein, the transmission rate that flow-control module is reportedly transported to virtual machine according to pre-configured flow threshold logarithm is controlled.
And flow control system according to the present invention further comprises:
Pre-configured module, for the corresponding relation between pre-configured each flow-control module and each virtual machine.
And flow control system according to the present invention further comprises:
Be pre-created module, between each flow-control module and respective virtual machine, be pre-created for transmitting the virtual data channel of data.
Wherein, above-mentioned flow-control module is positioned at same physics pusher side with corresponding virtual machine.
In addition, flow control system according to the present invention further comprises:
Creation module, in the situation that a virtual machine is transferred to target physical machine from original physical machine, creates the flow-control module corresponding with virtual machine after transfer, and for creating virtual data channel between the virtual machine after transfer and this flow-control module.
The present invention carries out in real time, effectively controls the message transmission rate of virtual machine by presetting the flow threshold of flow-control module, thereby do not affect the application of other virtual machine in environment, can reasonably distribute the floating resources of system, improve the operating efficiency of system.
Accompanying drawing explanation
Fig. 1 is according to the flow chart of the flow control methods of the virtual machine of the embodiment of the present invention;
Fig. 2 is according to the block diagram of the flow control system of the virtual machine of the embodiment of the present invention;
Fig. 3 be in actual applications according to the schematic diagram of the flow control system of the virtual machine of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain, belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of flow control methods of virtual machine.
As shown in Figure 1, according to the flow control methods of the embodiment of the present invention, comprise:
Step S101, in the situation that needs send data to virtual machine, transport module sends data to the flow-control module corresponding with virtual machine, and wherein, flow-control module is provided with the flow threshold that virtual machine is corresponding in advance;
Step S103, flow-control module is by the transfer of data receiving to virtual machine, and wherein, the transmission rate that flow-control module is reportedly transported to virtual machine according to pre-configured flow threshold logarithm is controlled.
And flow control methods according to the present invention further comprises: the corresponding relation between pre-configured each flow-control module and each virtual machine.
In addition, flow control methods according to the present invention further comprises: between each flow-control module and respective virtual machine, be pre-created for transmitting the virtual data channel of data.
Further, above-mentioned flow-control module is positioned at same physics pusher side with corresponding virtual machine.
And, flow control methods according to the present invention further comprises: in the situation that a virtual machine is transferred to target physical machine from original physical machine, create the flow-control module corresponding with virtual machine after transfer, and create virtual data channel between the virtual machine after transfer and this flow-control module.
A kind of flow control system of virtual machine is provided according to an aspect of the present invention.
According to the flow control system of virtual machine of the present invention, comprise:
Flow-control module 22, for by the transfer of data receiving to virtual machine, wherein, the transmission rate that flow-control module 22 is reportedly transported to virtual machine according to pre-configured flow threshold logarithm is controlled.
And flow control system according to the present invention may further include:
Pre-configured module (not shown), for the corresponding relation between pre-configured each flow-control module 22 and each virtual machine.In actual applications, according to the unique identification of each virtual machine, each flow-control module 22 is carried out to the pre-configured of corresponding relation with each virtual machine.
And flow control system according to the present invention may further include:
Be pre-created module (not shown), between each flow-control module 22 and respective virtual machine, be pre-created for transmitting the virtual data channel of data.
Wherein, above-mentioned flow-control module 22 is positioned at same physics pusher side with corresponding virtual machine.
In addition, flow control system according to the present invention may further include:
Creation module (not shown), for in the situation that a virtual machine is transferred to target physical machine from original physical machine, create the flow-control module 22 corresponding with virtual machine after transfer, and for creating virtual data channel between the virtual machine after transfer and this flow-control module 22.
In actual applications, can make to realize with the following methods the flow control methods according to the embodiment of the present invention.
As shown in Figure 3, after creating virtual machine, in Same Physical machine, create virtual firewall (corresponding to flow-control module described herein) simultaneously.By the unique identification code of this virtual machine, virtual firewall and virtual machine are carried out to logic binding.The data traffic of virtual machine is all pointed to virtual firewall, form virtual data interface channel, the data that assurance need to transfer to virtual machine all transfer to virtual machine again by virtual firewall.Corresponding to the virtual machine of binding, the flow threshold of virtual firewall is set, when data are passed through virtual firewall, transmission rate must be less than the flow threshold setting again, and like this, virtual machine fire compartment wall just can carry out flow control to virtual machine.
In addition,, in the situation that needs shift virtual machine, can the virtual firewall of binding be transferred to target physical machine simultaneously.After transfer completes, according to the demand of target physical machine, the regularization term of virtual machine is set, can be changed the flow threshold of corresponding virtual machine simultaneously.
In sum, by means of technique scheme of the present invention, the present invention controls the message transmission rate of virtual machine effectively by presetting the flow threshold of flow-control module, thereby do not affect the application of other virtual machine in environment, can reasonably distribute the floating resources of system.Technical scheme of the present invention is used virtual firewall technology, can be deep into virtual machine inside,, can together move along with the migration of virtual machine meanwhile, guarantees at any time virtual machine flow to be controlled.In addition, by virtual machine and flow-control module are bound, thereby when shifting virtual machine, can shift with the flow-control module of its binding to target physical machine simultaneously, thereby avoid the unnecessary expense loss on target physical machine, can improve further the operating efficiency of system.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. a flow control methods for virtual machine, is characterized in that, comprising:
In the situation that needs send data to virtual machine, transport module sends data to the flow-control module corresponding with described virtual machine, and wherein, described flow-control module is provided with the flow threshold that described virtual machine is corresponding in advance;
Described flow-control module is by the described transfer of data receiving to described virtual machine, and wherein, described flow-control module is controlled described transfer of data to the transmission rate of described virtual machine according to pre-configured described flow threshold.
2. flow control methods according to claim 1, is characterized in that, further comprises:
Corresponding relation between pre-configured each flow-control module and each virtual machine.
3. flow control methods according to claim 1, is characterized in that, further comprises:
Between each flow-control module and respective virtual machine, be pre-created for transmitting the virtual data channel of data.
4. flow control methods according to claim 3, is characterized in that, flow-control module is positioned at same physics pusher side with corresponding virtual machine.
5. flow control methods according to claim 3, is characterized in that, further comprises:
In the situation that a virtual machine is transferred to target physical machine from original physical machine, create the flow-control module corresponding with described virtual machine after transfer, and create virtual data channel between the described virtual machine after transfer and this flow-control module.
6. a flow control system for virtual machine, is characterized in that, comprising:
Transport module, in the situation that needs send data to virtual machine, sends data to the flow-control module corresponding with described virtual machine, and wherein, described flow-control module is provided with the flow threshold that described virtual machine is corresponding in advance;
Described flow-control module, for by the described transfer of data receiving to described virtual machine, wherein, described flow-control module is controlled described transfer of data to the transmission rate of described virtual machine according to pre-configured described flow threshold.
7. flow control system according to claim 6, is characterized in that, further comprises:
Pre-configured module, for the corresponding relation between pre-configured each flow-control module and each virtual machine.
8. flow control system according to claim 6, is characterized in that, further comprises:
Be pre-created module, between each flow-control module and respective virtual machine, be pre-created for transmitting the virtual data channel of data.
9. flow control system according to claim 8, is characterized in that, described flow-control module is positioned at same physics pusher side with corresponding virtual machine.
10. flow control system according to claim 8, is characterized in that, further comprises:
Creation module, for in the situation that a virtual machine is transferred to target physical machine from original physical machine, create the flow-control module corresponding with described virtual machine after transfer, and for creating virtual data channel between the described virtual machine after transfer and this flow-control module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310516422.XA CN103532866A (en) | 2013-10-28 | 2013-10-28 | Flow control method and system for virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310516422.XA CN103532866A (en) | 2013-10-28 | 2013-10-28 | Flow control method and system for virtual machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103532866A true CN103532866A (en) | 2014-01-22 |
Family
ID=49934554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310516422.XA Pending CN103532866A (en) | 2013-10-28 | 2013-10-28 | Flow control method and system for virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103532866A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453126A (en) * | 2016-11-29 | 2017-02-22 | 郑州云海信息技术有限公司 | Virtual machine traffic control method and device |
CN106534346A (en) * | 2016-12-07 | 2017-03-22 | 北京奇虎科技有限公司 | Virtual WAF-based flow control method, apparatus and system |
CN108471385A (en) * | 2017-02-23 | 2018-08-31 | 苏宁云商集团股份有限公司 | A kind of flow control methods and device for distributed system |
CN110113269A (en) * | 2019-04-28 | 2019-08-09 | 平安科技(深圳)有限公司 | A kind of method and relevant apparatus of the flow control based on middleware |
CN110740100A (en) * | 2019-10-22 | 2020-01-31 | 新华三信息安全技术有限公司 | transmission rate determination method, device, network equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102638406A (en) * | 2012-04-16 | 2012-08-15 | 北京星网锐捷网络技术有限公司 | Flow control method, device and network equipment |
CN102739505A (en) * | 2011-04-06 | 2012-10-17 | 中兴通讯股份有限公司 | Method and system for controlling virtual channel flow in data center network |
CN103139039A (en) * | 2013-02-25 | 2013-06-05 | 汉柏科技有限公司 | Virtual network capable of achieving flow isolation control and construction method |
-
2013
- 2013-10-28 CN CN201310516422.XA patent/CN103532866A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739505A (en) * | 2011-04-06 | 2012-10-17 | 中兴通讯股份有限公司 | Method and system for controlling virtual channel flow in data center network |
CN102638406A (en) * | 2012-04-16 | 2012-08-15 | 北京星网锐捷网络技术有限公司 | Flow control method, device and network equipment |
CN103139039A (en) * | 2013-02-25 | 2013-06-05 | 汉柏科技有限公司 | Virtual network capable of achieving flow isolation control and construction method |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106453126A (en) * | 2016-11-29 | 2017-02-22 | 郑州云海信息技术有限公司 | Virtual machine traffic control method and device |
CN106534346A (en) * | 2016-12-07 | 2017-03-22 | 北京奇虎科技有限公司 | Virtual WAF-based flow control method, apparatus and system |
CN106534346B (en) * | 2016-12-07 | 2019-12-10 | 北京奇虎科技有限公司 | Flow control method, device and system based on virtual WAF |
CN108471385A (en) * | 2017-02-23 | 2018-08-31 | 苏宁云商集团股份有限公司 | A kind of flow control methods and device for distributed system |
CN108471385B (en) * | 2017-02-23 | 2021-12-10 | 苏宁易购集团股份有限公司 | Flow control method and device for distributed system |
CN110113269A (en) * | 2019-04-28 | 2019-08-09 | 平安科技(深圳)有限公司 | A kind of method and relevant apparatus of the flow control based on middleware |
CN110113269B (en) * | 2019-04-28 | 2022-10-04 | 平安科技(深圳)有限公司 | Flow control method based on middleware and related device |
CN110740100A (en) * | 2019-10-22 | 2020-01-31 | 新华三信息安全技术有限公司 | transmission rate determination method, device, network equipment and storage medium |
CN110740100B (en) * | 2019-10-22 | 2022-04-22 | 新华三信息安全技术有限公司 | Transmission rate determining method, device, network equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106874237B (en) | Method of data synchronization and system based on two lines bus | |
CN102334112B (en) | Method and system for virtual machine networking | |
CN103532866A (en) | Flow control method and system for virtual machine | |
CN108713309B (en) | SD-WAN system, use method of SD-WAN system and related device | |
CN102523264A (en) | USB (Universal Serial Bus) equipment remote sharing method and system for virtual machine | |
CN104158755A (en) | Method, device and system used for transmitting messages | |
CN102681913A (en) | Method and device for realizing live migration along virtual machines | |
CN104219329A (en) | Method for deploying service through content distribution in cluster server | |
CN111953520B (en) | Method, device, equipment and medium for realizing group control through group virtual equipment | |
CN104301248A (en) | Message rate limiting method and device | |
CN110830574B (en) | Method for realizing intranet load balance based on docker container | |
CN105162702A (en) | AC current guide method and device | |
CN105187256A (en) | Disaster recovery method, device and system | |
DE112016002340T5 (en) | Using a network to commission a second network | |
CN108347472B (en) | Configuration method of IP address, cloud server, cloud platform and readable storage medium | |
CN105262604A (en) | Virtual machine migration method and equipment | |
CN104158683A (en) | Cross-device aggregation group rapid convergence method, and cross-device aggregation group rapid convergence device | |
CN104135379A (en) | Port control method and device based on OpenFlow protocol | |
CN105245464A (en) | Network acceleration method based on Android system | |
CN106375219A (en) | Method and device for forwarding message | |
CN106817291A (en) | VXLAN realizes device and its method of work | |
CN113949417B (en) | Power grid data transmission method and device based on hybrid communication | |
CN104580328A (en) | Virtual machine migration method, device and system | |
CN105939242B (en) | Realize the method and device of virtual system | |
CN102546840A (en) | Method, device and system for binding virtual serial port and physical serial port |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140122 |
|
RJ01 | Rejection of invention patent application after publication |