CN103581042A - Method and device for sending data package - Google Patents
Method and device for sending data package Download PDFInfo
- Publication number
- CN103581042A CN103581042A CN201310526766.9A CN201310526766A CN103581042A CN 103581042 A CN103581042 A CN 103581042A CN 201310526766 A CN201310526766 A CN 201310526766A CN 103581042 A CN103581042 A CN 103581042A
- Authority
- CN
- China
- Prior art keywords
- packet
- microsoft loopback
- loopback adapter
- transmission rate
- virtual 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a method and device for sending a data package, and relates to the field of communication. The method and device for sending the data package are used for controlling the speed of sending the data package to a target device by a virtual switch. The method comprises the steps that the visual switch establishes a first virtual network interface card corresponding to a first visual machine in a physical machine, the data package is sent to the first visual network interface card after the data package which is sent through a corresponding second visual network interface card by the first visual machine is received, wherein the first visual network interface card is equipped with a first data package sending rule, the visual switch receives the data package which is sent by the first visual network interface card according to a first sending speed, and the data package is sent to the target device according to the first sending speed. The method and device for sending the data package are used for sending the data package to the target device by the visual machine.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and apparatus of Packet Generation.
Background technology
In server virtualization technology, the virtual machine configuring in physical machine is when sending packet, need to be by virtual switch by Packet Generation to object equipment (as other virtual machines that configure in physical network card or physical machine), but, in the process of Packet Generation, can take physical resource (as the bandwidth resources of physical network card, the computational resource of CPU etc.), when this physical machine sends the speed of packet when excessive, will take too much physical resource, have influence on the normal operation of other equipment (as other virtual machines that configure in physical machine), therefore, need to control the data package transmission velocity of virtual machine.
In the existing method that the data package transmission velocity of virtual machine is controlled, in physical network card, dispose Packet Generation rule, in the situation that virtual machine sends packet by physical network card, virtual switch receives the packet that this virtual machine sends, and by this Packet Generation to physical network card, this physical network card according to Packet Generation rule by this Packet Generation to external equipment (as another station server in network), wherein, this Packet Generation rule comprises the information such as transmission rate of packet, thereby realizes the control to data package transmission velocity.
As from the foregoing, virtual switch is uncontrollable to the speed of object equipment sending data bag, if this object equipment is other virtual machines that configure in physical machine, because virtual switch does not need this Packet Generation through physical network card to the process of other virtual machines that configure in this physical machine, therefore, cannot realize the control to data package transmission velocity.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus of Packet Generation, to control virtual switch to the speed of object equipment sending data bag.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of method of Packet Generation, comprising:
Virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, and wherein, described the first Microsoft Loopback Adapter disposes the first Packet Generation rule, and described the first Packet Generation rule comprises the first transmission rate of packet;
At the second Microsoft Loopback Adapter corresponding to described the first virtual machine, receive after the packet of described the first virtual machine transmission, described virtual switch receives the described packet that described the second Microsoft Loopback Adapter sends;
Described virtual switch by described Packet Generation to described the first Microsoft Loopback Adapter;
Described virtual switch receives the described packet that described the first Microsoft Loopback Adapter sends according to described the first transmission rate, and described packet is sent to object equipment according to described the first transmission rate.
In the possible implementation of the first of first aspect, before described virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, described method also comprises:
Described virtual switch receives the Microsoft Loopback Adapter of user's transmission and sets up instruction, and wherein, it is that user is determining that described the first virtual machine sends while taking physical resource over predetermined threshold value that described Microsoft Loopback Adapter is set up instruction;
Described virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, comprising:
Described virtual switch is set up instruction according to described Microsoft Loopback Adapter and is set up described the first Microsoft Loopback Adapter.
In conjunction with first aspect or the possible implementation of the first, in the possible implementation of the second, described virtual switch is sent to object equipment by described packet according to described the first transmission rate, comprising:
Described virtual switch according to described the first transmission rate by described Packet Generation to the physical network card of described physical machine; Or,
Described virtual switch according to described the first transmission rate by described Packet Generation to the second virtual machine in described physical machine.
In conjunction with the possible implementation of the second, in the third possible implementation, described virtual switch according to described the first transmission rate by described Packet Generation to the physical network card of described physical machine, comprising:
Described virtual switch according to described the first transmission rate by described Packet Generation to the physical network card that disposes the second Packet Generation rule, wherein, described the second Packet Generation rule comprises the second transmission rate of packet, so as described physical network card according to described the second transmission rate by described Packet Generation to external equipment.
In conjunction with first aspect, to any one the possible implementation in the third possible implementation, in the 4th kind of possible implementation, described method also comprises:
Receive the network interface card delete instruction that user sends;
According to described network interface card delete instruction, delete described the first Microsoft Loopback Adapter.
Second aspect, provides a kind of virtual switch, comprising:
Processing unit, for setting up the first Microsoft Loopback Adapter of corresponding physical machine the first virtual machine, wherein, described the first Microsoft Loopback Adapter disposes the first Packet Generation rule, and described the first Packet Generation rule comprises the first transmission rate of packet;
Receiving element, for receiving at the second Microsoft Loopback Adapter corresponding to described the first virtual machine after the packet of described the first virtual machine transmission, receives the described packet that described the second Microsoft Loopback Adapter sends;
Transmitting element, for described Packet Generation that described receiving element is received to described the first Microsoft Loopback Adapter;
Described receiving element also for, at described the first Microsoft Loopback Adapter, receive after the described packet that described transmitting element sends, receive the described packet that described the first Microsoft Loopback Adapter sends according to described the first transmission rate;
Described transmitting element also for, at described receiving element, receive after the described packet that described the first Microsoft Loopback Adapter sends according to described the first transmission rate, described packet is sent to object equipment according to described the first transmission rate.
In the possible implementation of the first, described receiving element specifically for, the Microsoft Loopback Adapter that receives user's transmission is set up instruction, and wherein, it is that user is determining that described the first virtual machine sends while taking physical resource over predetermined threshold value that described Microsoft Loopback Adapter is set up instruction;
Described processing unit specifically for, according to described Microsoft Loopback Adapter, set up instruction and set up described the first Microsoft Loopback Adapter.
In conjunction with second aspect or the possible implementation of the first, in the possible implementation of the second, described transmitting element specifically for:
According to described the first transmission rate by described Packet Generation to physical network card; Or,
According to described the first transmission rate by described Packet Generation to the second virtual machine in described physical machine.
In conjunction with the possible implementation of the second, in the third possible implementation, described transmitting element specifically for:
According to the first transmission rate of described packet by described Packet Generation to the physical network card that disposes the second Packet Generation rule, wherein, described the second Packet Generation rule comprises the second transmission rate of packet, so as described physical network card according to described the second transmission rate by described Packet Generation to external equipment.
In conjunction with second aspect to the possible implementation of any one in the third possible implementation, in the 4th kind of possible implementation, described receiving element also for, receive the network interface card delete instruction that user sends;
Described processing unit also for, according to described network interface card delete instruction, delete described the first Microsoft Loopback Adapter.
Adopt such scheme, virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, and the second Microsoft Loopback Adapter to correspondence sends after packet at this first virtual machine, receive this packet that this second Microsoft Loopback Adapter sends, this virtual switch by this Packet Generation to this first Microsoft Loopback Adapter, like this, the packet that this virtual switch is sent to this second Microsoft Loopback Adapter by this first virtual machine is converted to the packet that this virtual switch is sent to this first Microsoft Loopback Adapter, and, this the first Microsoft Loopback Adapter configurable data bag sends rule, control this first Microsoft Loopback Adapter and to this virtual switch, send the transmission rate of packet, thereby control this virtual switch by this Packet Generation the transmission rate to object equipment, prevented that this first virtual machine is excessive to the excessive physical resource that causes this first virtual machine to take of speed of object equipment by Packet Generation by this virtual switch, improved user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of a kind of data packet sending method that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of a kind of data packet sending method that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of data packet sending method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of virtual switch that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the another kind of virtual switch that Fig. 5 provides for 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, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of sending method of packet, as shown in Figure 1, comprising:
S101, virtual switch are set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine.
Wherein, this first Microsoft Loopback Adapter disposes the first Packet Generation rule, and this first Packet Generation rule comprises the first transmission rate of packet.
Particularly, the Microsoft Loopback Adapter that receives user's transmission at this virtual switch is set up after instruction, according to this Microsoft Loopback Adapter, sets up the Microsoft Loopback Adapter that the first virtual machine in corresponding physical machine is set up in instruction.
It should be noted that, when transmission rate not enough at physical resource or this first virtual machine is excessive, in order to make packet normal transmission, user can issue Microsoft Loopback Adapter to this virtual switch and set up instruction, this virtual switch sets up according to this Microsoft Loopback Adapter the first Microsoft Loopback Adapter that this first virtual machine is set up in instruction, thereby controls this first virtual machine to the speed of object equipment sending data bag according to the Packet Generation rule configuring in this first Microsoft Loopback Adapter.
Wherein, the the first Packet Generation rule configuring in above-mentioned the first Microsoft Loopback Adapter can be completed by flow-control module, this flow-control module can be the module that is independent of virtual switch, particularly, this flow-control module arranges QoS (Quality of Service to this first Microsoft Loopback Adapter, quality of service guarantee) parameter, thereby realize and on this first Microsoft Loopback Adapter, configure the first Packet Generation rule, this qos parameter comprises transmission bandwidth, upper limit bandwidth and burst flow, wherein, this transmission bandwidth is the lowest-bandwidth of this packet of transmission of setting, guaranteed that the first virtual machine corresponding to this first Microsoft Loopback Adapter sends the transmission rate of this packet, thereby guarantee the normal transmission of this packet, high bandwidth that this upper limit bandwidth is this packet of transmission of arranging, guaranteed at the flow of this first virtual machine transmission when large (producing burst flow), this the first virtual machine sends the transmission rate of this Packet Generation, thereby guarantee the normal transmission of this packet, this upper limit bandwidth is more than or equal to this transmission bandwidth, this burst flow is the flow of the flow of this first virtual machine transmission transmission when larger and the difference of flow based on transmission bandwidth transmission, and burst flow is larger, and the time that this first virtual machine sends packet with this upper limit bandwidth is longer.Like this, not identical owing to sending the transmission rate of difference correspondence of bandwidth of this packet yet, therefore, by qos parameter, different transmission bandwidths is set, upper limit bandwidth and burst flow can be corresponding different the first transmission rate, thereby realize the control to the transmission rate of object equipment sending data bag by this virtual switch to this first virtual machine.
S102, at the second Microsoft Loopback Adapter corresponding to this first virtual machine, receive after the packet that this first virtual machine sends, this virtual switch receives this packet that this second Microsoft Loopback Adapter sends.
It should be noted that, the rear end Microsoft Loopback Adapter that this second Microsoft Loopback Adapter is this first virtual machine, this rear end Microsoft Loopback Adapter is user while creating this first virtual machine, to what should the first virtual machine together create, that is to say, this first virtual machine is received and is sent packet by this second Microsoft Loopback Adapter; Wherein, this second Microsoft Loopback Adapter comprises transmit queue and receiving queue, and above-mentioned flow-control module has good effect to the flow control of this transmit queue, and the flow control of this receiving queue is had to larger defect.Due to, the packet that this first virtual machine sends by this second Microsoft Loopback Adapter is without the transmit queue of this second Microsoft Loopback Adapter, therefore, in this second Microsoft Loopback Adapter, configuration data bag sends rule and cannot effectively control this first virtual machine and change planes to the transmission rate of object equipment sending data bag by this virtual machine.
Illustratively, as shown in Figure 2, described Fig. 2 is the schematic diagram of Packet Generation, physical machine shown in Fig. 2 comprise that rear end Microsoft Loopback Adapter, this virtual switch of virtual switch, the first virtual machine, this first virtual machine set up to the first Microsoft Loopback Adapter and the second virtual machine that should the first virtual machine, the rear end Microsoft Loopback Adapter of this second virtual machine, also has the physical network card of this physical machine and the external equipment outside this physical machine.Wherein, the small circle in Fig. 2 is for receiving or send the port of packet, and numeral is for sending or receive the path of packet.The packet that this second Microsoft Loopback Adapter receives this first virtual machine transmission is as shown in the path 1 in Fig. 2, and 2, path represents that this virtual switch receives this packet that this second Microsoft Loopback Adapter sends.
S103, this virtual switch by this Packet Generation to this first Microsoft Loopback Adapter.
Illustratively, this virtual switch after receiving the packet that this second Microsoft Loopback Adapter sends, by this package forward to this first Microsoft Loopback Adapter, as shown in the path 3 in Fig. 2.
S104, this virtual switch receive this packet that this first Microsoft Loopback Adapter sends according to this first transmission rate, and this packet is sent to object equipment according to this first transmission rate.
It should be noted that, this first Microsoft Loopback Adapter is sent to the packet of this virtual switch through the transmit queue of this first Microsoft Loopback Adapter, and this first Packet Generation rule of this first Microsoft Loopback Adapter configuration can effectively be controlled this first Microsoft Loopback Adapter and to this virtual switch, send the transmission rate of packet.
As shown in the path 4 in Fig. 2, illustratively, the qos parameter that this flow-control module is this Microsoft Loopback Adapter setting comprises transmission bandwidth, upper limit bandwidth and burst flow, remember that this transmission bandwidth is transmission bandwidth A, remember that this upper limit bandwidth is upper limit bandwidth B, remember that this burst flow is burst flow C, wherein, this burst flow C is the higher limit of this first virtual machine burst flow of setting, this first Microsoft Loopback Adapter sends this packet according to the first transmission rate corresponding to this qos parameter to this virtual switch, this virtual switch according to this first transmission rate by this Packet Generation to object equipment, wherein, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this transmission bandwidth A, so that this virtual switch is sent to this object equipment by this packet according to data package transmission velocity corresponding to this transmission bandwidth A.
When this first virtual machine produces this burst flow D (D is less than C), this first Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this burst flow D, so that this virtual switch according to data package transmission velocity corresponding to this burst flow D by this Packet Generation to this object equipment, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter recovers to this virtual switch, to send this packet with data package transmission velocity corresponding to transmission bandwidth A, this virtual switch recovers with data package transmission velocity corresponding to transmission bandwidth A to this object equipment sending data bag.
In addition, when this first virtual machine produces this burst flow C, this Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this upper limit bandwidth B, so that this virtual switch according to data package transmission velocity corresponding to this upper limit bandwidth B by this Packet Generation to this object equipment, and after C/ (B-A) second, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter recovers to this virtual switch, to send this packet with data package transmission velocity corresponding to transmission bandwidth A, this virtual switch recovers with data package transmission velocity corresponding to transmission bandwidth A to this object equipment sending data bag.
Particularly, this object equipment can be the second virtual machine in this physical machine, this virtual switch according to this first transmission rate by this Packet Generation to this second virtual machine (as the path 5 in Fig. 2, shown in path 6 and path 7); This object equipment can be also the physical network card of this physical machine, this virtual switch according to this first transmission rate by this Packet Generation to this physical network card (as shown in path 8 and path 9 in Fig. 2).
From the above mentioned, when this first virtual machine sends packet to the second virtual machine in corresponding physical machine, Packet Generation path is as the path 1,2,3,4,5,6 in Fig. 2, shown in 7; When this first virtual machine sends packet to the physical network card of corresponding physical machine, Packet Generation path is as the path 1 in Fig. 2,2,3,4,8, shown in 9,10, like this, this first virtual machine all passes through this first Microsoft Loopback Adapter to object equipment sending data bag and to this virtual switch, sends the path (being the path 4 in Fig. 2) of packet, thereby controls this first virtual machine to the speed of this object equipment sending data bag according to the Packet Generation rule configuring in this first Microsoft Loopback Adapter.
Further, virtual switch according to this first transmission rate by this Packet Generation to the physical network card that disposes the second Packet Generation rule, wherein, this the second Packet Generation rule comprises the second transmission rate of packet, so as this physical network card according to this second transmission rate by this Packet Generation to external equipment.
Wherein, the the second Packet Generation rule configuring in above-mentioned physical network card can be completed by flow-control module, this flow-control module can be the module that is independent of virtual switch, particularly, this flow-control module arranges QoS (Quality of Service to this physical network card, quality of service guarantee) parameter, thereby realize and on this physical network card, configure the second Packet Generation rule, this physical network card sends this packet according to the second transmission rate corresponding to this qos parameter to external equipment, specifically can according to this first transmission rate, to this virtual switch, send with reference to above-mentioned the first Microsoft Loopback Adapter the description of packet, repeated no more herein.
Illustratively, as shown in the path 10 in Fig. 2, this physical network card according to this second transmission rate by this Packet Generation to external equipment, this external equipment can be as another station server in network, this network can be wide area network or local area network (LAN).
It should be noted that, this flow-control module can also arrange the priority of this first virtual machine, at a plurality of virtual machines, to this physical network card, send packet simultaneously, and when this data packet flow causes the flow congestion of this physical network card, this physical network card can distribute bandwidth according to the priority of each virtual machine, and the virtual machine that priority is high can take more bandwidth.
Further, when user need to cancel the control to this first virtual-machine data packet rate, this virtual switch receives network interface card delete instruction, and deletes this first Microsoft Loopback Adapter according to this network interface card delete instruction.
Particularly, at physical resource in the situation that of the free time or the data package transmission velocity of this first virtual machine hour, user can issue network interface card delete instruction to this virtual switch, this virtual switch is deleted this first Microsoft Loopback Adapter according to this network interface card delete instruction, thereby cancel the control to the data package transmission velocity of this first virtual machine, to reduce system power dissipation.
Adopt said method, virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, and the second Microsoft Loopback Adapter to correspondence sends after packet at this first virtual machine, receive this packet that this second Microsoft Loopback Adapter sends, this virtual switch by this Packet Generation to this first Microsoft Loopback Adapter, like this, the packet that this virtual switch is sent to this second Microsoft Loopback Adapter by this first virtual machine is converted to the packet that this virtual switch is sent to this first Microsoft Loopback Adapter, and, this the first Microsoft Loopback Adapter configurable data bag sends rule, control this first Microsoft Loopback Adapter and to this virtual switch, send the transmission rate of packet, thereby control this virtual switch by this Packet Generation the transmission rate to object equipment, prevented that this first virtual machine is excessive to the excessive physical resource that causes this first virtual machine to take of speed of object equipment by Packet Generation by this virtual switch, improved user's experience.
The embodiment of the present invention provides a kind of sending method of packet, and as shown in Figure 3, the method is in the situation that second virtual machine of usining in physical machine describes as object equipment, comprising:
S301, virtual switch receive Microsoft Loopback Adapter and set up instruction, and set up according to this Microsoft Loopback Adapter the first Microsoft Loopback Adapter that the first virtual machine in corresponding physical machine is set up in instruction.
Wherein, this first Microsoft Loopback Adapter disposes the first Packet Generation rule, and this first Packet Generation rule comprises the first transmission rate of packet.
Particularly, the Microsoft Loopback Adapter that receives user's transmission at this virtual switch is set up after instruction, according to this Microsoft Loopback Adapter, sets up the Microsoft Loopback Adapter that the first virtual machine in corresponding physical machine is set up in instruction.
It should be noted that, when transmission rate not enough at physical resource or this first virtual machine is excessive, in order to make packet normal transmission, user can issue Microsoft Loopback Adapter to this virtual switch and set up instruction, this virtual switch sets up according to this Microsoft Loopback Adapter the first Microsoft Loopback Adapter that this first virtual machine is set up in instruction, thereby controls this first virtual machine to the speed of object equipment sending data bag according to the Packet Generation rule configuring in this first Microsoft Loopback Adapter.
Wherein, the the first Packet Generation rule configuring in above-mentioned the first Microsoft Loopback Adapter can be completed by flow-control module, this flow-control module can be the module that is independent of virtual switch, particularly, this flow-control module arranges QoS (Quality of Service to this first Microsoft Loopback Adapter, quality of service guarantee) parameter, thereby realize and on this first Microsoft Loopback Adapter, configure the first Packet Generation rule, this qos parameter comprises transmission bandwidth, upper limit bandwidth and burst flow, wherein, this transmission bandwidth is the lowest-bandwidth of this packet of transmission of setting, guaranteed that the first virtual machine corresponding to this first Microsoft Loopback Adapter sends the transmission rate of this packet, thereby guarantee the normal transmission of this packet, high bandwidth that this upper limit bandwidth is this packet of transmission of arranging, guaranteed at the flow of this first virtual machine transmission when large (producing burst flow), this the first virtual machine sends the transmission rate of this Packet Generation, thereby guarantee the normal transmission of this packet, this upper limit bandwidth is more than or equal to this transmission bandwidth, this burst flow is the flow of the flow of this first virtual machine transmission transmission when larger and the difference of flow based on transmission bandwidth transmission, and burst flow is larger, and the time that this first virtual machine sends packet with this upper limit bandwidth is longer.Like this, not identical owing to sending the transmission rate of difference correspondence of bandwidth of this packet yet, therefore, by qos parameter, different transmission bandwidths is set, upper limit bandwidth and burst flow can be corresponding different the first transmission rate, thereby realize the control to the transmission rate of object equipment sending data bag by this virtual switch to this first virtual machine.
S302, this first virtual machine send packet to the second Microsoft Loopback Adapter.
It should be noted that, the rear end Microsoft Loopback Adapter that this second Microsoft Loopback Adapter is this first virtual machine, this rear end Microsoft Loopback Adapter is user while creating this first virtual machine, and to what should the first virtual machine together create, the packet that this first virtual machine sends can be received by this second Microsoft Loopback Adapter; Wherein, this second Microsoft Loopback Adapter comprises transmit queue and receiving queue, and above-mentioned flow-control module has good effect to the flow control of this transmit queue, and the flow control of this receiving queue is had to larger defect.Due to, the packet that this first virtual machine sends by this second Microsoft Loopback Adapter is without the transmit queue of this second Microsoft Loopback Adapter, therefore, in this second Microsoft Loopback Adapter, configuration data bag sends rule and cannot effectively control this first virtual machine and change planes to the transmission rate of object equipment sending data bag by this virtual machine.
S303, this virtual switch receive this packet that this second Microsoft Loopback Adapter sends.
S304, this virtual switch by this Packet Generation to this first Microsoft Loopback Adapter.
Illustratively, as shown in Figure 2, described Fig. 2 is the schematic diagram of Packet Generation, comprise that rear end Microsoft Loopback Adapter, this virtual switch of virtual switch, the first virtual machine, this first virtual machine set up to the second virtual machine in the first Microsoft Loopback Adapter that should the first virtual machine and physical machine corresponding to this first virtual machine, the rear end Microsoft Loopback Adapter of this second virtual machine, also has the physical network card of this physical machine and the external equipment outside this physical machine.Wherein, the small circle in Fig. 2 is for receiving or send the port of packet, and numeral is for sending or receive the path of packet.The packet that this second Microsoft Loopback Adapter receives this first virtual machine transmission is as shown in the path 1 in Fig. 2, and 2, path represents that this virtual switch receives this packet that this second Microsoft Loopback Adapter sends.
Illustratively, this virtual switch after receiving the packet that this second Microsoft Loopback Adapter sends, by this package forward to this first Microsoft Loopback Adapter, as shown in the path 3 in Fig. 2.
S305, this virtual switch receive this packet that this first Microsoft Loopback Adapter sends according to the first transmission rate.
It should be noted that, this first Microsoft Loopback Adapter is sent to the packet of this virtual switch through the transmit queue of this first Microsoft Loopback Adapter, and this first Packet Generation rule of this first Microsoft Loopback Adapter configuration can effectively be controlled this first Microsoft Loopback Adapter and to this virtual switch, send the transmission rate of packet.
As shown in the path 4 in Fig. 2, illustratively, the qos parameter that this flow-control module is this Microsoft Loopback Adapter setting comprises transmission bandwidth, upper limit bandwidth and burst flow, remember that this transmission bandwidth is transmission bandwidth A, remember that this upper limit bandwidth is upper limit bandwidth B, remember that this burst flow is burst flow C, wherein, this burst flow C is the higher limit of this first virtual machine burst flow of setting, this first Microsoft Loopback Adapter sends this packet according to the first transmission rate corresponding to this qos parameter to this virtual switch, wherein, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this transmission bandwidth A.
When this first virtual machine produces this burst flow D (D is less than C), this first Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this burst flow D, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter recovers to this virtual switch, to send this packet with data package transmission velocity corresponding to transmission bandwidth A.
In addition, when this first virtual machine produces this burst flow C, this Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this upper limit bandwidth B, and after C/ (B-A) second, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter recovers to this virtual switch, to send this packet with data package transmission velocity corresponding to transmission bandwidth A.
S306, this virtual switch according to this first transmission rate by this Packet Generation to the second virtual machine.
Illustratively, when this first virtual machine sends packet to the second virtual machine in corresponding physical machine, Packet Generation path is as the path 1,2 in Fig. 2,3,4,5,6, shown in 7, like this, this virtual machine sends packet to this second virtual machine and through this first Microsoft Loopback Adapter, to this virtual switch, sends the path (being the path 4 in Fig. 2) of packet, thereby controls this first virtual machine to the speed of this object equipment sending data bag according to the Packet Generation rule configuring in this first Microsoft Loopback Adapter.
When user need to cancel the control to this first virtual-machine data packet rate, carry out S307 step.
S307, this virtual switch receive deletes network interface card instruction, and deletes this first Microsoft Loopback Adapter according to this network interface card delete instruction.
Further, when user need to cancel the control to this first virtual-machine data packet rate, this virtual switch receives network interface card delete instruction, and deletes this first Microsoft Loopback Adapter according to this network interface card delete instruction.
Particularly, at physical resource in the situation that of the free time or the data package transmission velocity of this first virtual machine hour, user can issue network interface card delete instruction to this virtual switch, this virtual switch is deleted this first Microsoft Loopback Adapter according to this network interface card delete instruction, thereby cancel the control to the data package transmission velocity of this first virtual machine, to reduce system power dissipation.
Like this, the packet that this virtual switch is sent to this second Microsoft Loopback Adapter by this first virtual machine is converted to the packet that this virtual switch is sent to this first Microsoft Loopback Adapter, and, this the first Microsoft Loopback Adapter configurable data bag sends rule, thereby control this first Microsoft Loopback Adapter, sends the transmission rate of packet to this virtual switch.This virtual switch by this Packet Generation to the second virtual machine, has been realized the control to the data package transmission velocity of this second virtual machine to this first virtual machine according to this transmission rate.
It should be noted that, for said method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
The embodiment of the present invention provides a kind of virtual switch 40, as shown in Figure 4, comprising:
Processing unit 41, for setting up the first Microsoft Loopback Adapter of corresponding physical machine the first virtual machine.
Wherein, dispose the first Packet Generation rule in this first Microsoft Loopback Adapter, this first Packet Generation rule comprises the first transmission rate of packet.
Receiving element 42, for receiving at the second Microsoft Loopback Adapter corresponding to this first virtual machine after the packet of this first virtual machine transmission, receives this packet that this second Microsoft Loopback Adapter sends.
Transmitting element 43, for this Packet Generation that this receiving element 42 is received to this first Microsoft Loopback Adapter.
This receiving element 42 also for, at this first Microsoft Loopback Adapter, receive after this packet that this transmitting element 43 sends, receive this packet that this first Microsoft Loopback Adapter sends according to this first transmission rate.
This transmitting element 43 also for, at this receiving element 42, receive after this packet that this first Microsoft Loopback Adapter sends according to this first transmission rate, this packet is sent to object equipment according to this first transmission rate.
Particularly, this receiving element 42 also for, receive the Microsoft Loopback Adapter that user sends and set up instruction.
Wherein, this Microsoft Loopback Adapter is set up instruction and when physical resource surpasses predetermined threshold value, is sent determining that this first virtual machine takies for user.
This processing unit 41 also for, the Microsoft Loopback Adapter receiving according to this receiving element is set up the first Microsoft Loopback Adapter that the first virtual machine in corresponding physical machine is set up in instruction.
It should be noted that, when transmission rate not enough at physical resource or this first virtual machine is excessive, in order to make packet normal transmission, user can issue Microsoft Loopback Adapter to this virtual switch and set up instruction, this virtual switch sets up according to this Microsoft Loopback Adapter the first Microsoft Loopback Adapter that this first virtual machine is set up in instruction, thereby controls this first virtual machine to the speed of object equipment sending data bag according to the Packet Generation rule configuring in this first Microsoft Loopback Adapter.
Wherein, the the first Packet Generation rule configuring in above-mentioned the first Microsoft Loopback Adapter can be completed by flow-control module, this flow-control module can be the module that is independent of virtual switch, particularly, this flow-control module arranges QoS (Quality of Service to this first Microsoft Loopback Adapter, quality of service guarantee) parameter, thereby realize and on this first Microsoft Loopback Adapter, configure the first Packet Generation rule, this qos parameter comprises transmission bandwidth, upper limit bandwidth and burst flow, wherein, this transmission bandwidth is the lowest-bandwidth of this packet of transmission of setting, guaranteed that the first virtual machine corresponding to this first Microsoft Loopback Adapter sends the transmission rate of this packet, thereby guarantee the normal transmission of this packet, high bandwidth that this upper limit bandwidth is this packet of transmission of arranging, guaranteed at the flow of this first virtual machine transmission when large (producing burst flow), this the first virtual machine sends the transmission rate of this Packet Generation, thereby guarantee the normal transmission of this packet, this upper limit bandwidth is more than or equal to this transmission bandwidth, this burst flow is the flow of the flow of this first virtual machine transmission transmission when larger and the difference of flow based on transmission bandwidth transmission, and burst flow is larger, and the time that this first virtual machine sends packet with this upper limit bandwidth is longer.Like this, not identical owing to sending the transmission rate of difference correspondence of bandwidth of this packet yet, therefore, by qos parameter, different transmission bandwidths is set, upper limit bandwidth and burst flow can be corresponding different the first transmission rate, thereby realize the control to the transmission rate of object equipment sending data bag by this virtual switch to this first virtual machine.
Particularly, this virtual switch is after receiving the packet of this first virtual machine by this second Microsoft Loopback Adapter transmission, by this Packet Generation to this first Microsoft Loopback Adapter, and receiving this first Microsoft Loopback Adapter according to this packet of this first transmission rate transmission, and this packet is sent to object equipment according to this first transmission rate.
Illustratively, the qos parameter that this flow-control module is this Microsoft Loopback Adapter setting comprises transmission bandwidth, upper limit bandwidth and burst flow, remember that this transmission bandwidth is transmission bandwidth A, remember that this upper limit bandwidth is upper limit bandwidth B, remember that this burst flow is burst flow C, wherein, this burst flow C is the higher limit of this first virtual machine burst flow of setting, this first Microsoft Loopback Adapter sends this packet according to the first transmission rate corresponding to this qos parameter to this virtual switch, this virtual switch according to this first transmission rate by this Packet Generation to object equipment, wherein, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this transmission bandwidth A, so that this virtual switch is sent to this object equipment by this packet according to data package transmission velocity corresponding to this transmission bandwidth A.
When this first virtual machine produces this burst flow D (D is less than C), this first Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this burst flow D, so that this virtual switch according to data package transmission velocity corresponding to this burst flow D by this Packet Generation to this object equipment, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter recovers to this virtual switch, to send this packet with data package transmission velocity corresponding to transmission bandwidth A, this virtual switch recovers with data package transmission velocity corresponding to transmission bandwidth A to this object equipment sending data bag.
In addition, when this first virtual machine produces this burst flow C, this Microsoft Loopback Adapter is sent to this virtual switch by the packet receiving according to data package transmission velocity corresponding to this upper limit bandwidth B, so that this virtual switch according to data package transmission velocity corresponding to this upper limit bandwidth B by this Packet Generation to this object equipment, and after C/ (B-A) second, when this first virtual machine does not have burst flow, this first Microsoft Loopback Adapter recovers to this virtual switch, to send this packet with data package transmission velocity corresponding to transmission bandwidth A, this virtual switch recovers with data package transmission velocity corresponding to transmission bandwidth A to this object equipment sending data bag.
Further, this transmitting element 43 specifically for, according to this first transmission rate by this Packet Generation to physical network card, or according to this first transmission rate by this Packet Generation to the second virtual machine in this physical machine.
As from the foregoing, this first virtual machine all passes through this first Microsoft Loopback Adapter to the path of this virtual switch transmission packet to this second virtual machine or this physical network card transmission packet, thereby this virtual switch can be controlled this first virtual machine to the speed of object equipment sending data bag according to the Packet Generation rule configuring in this first Microsoft Loopback Adapter.
Particularly, this transmitting element 43 specifically for, according to the first transmission rate of this packet by this Packet Generation to the physical network card that disposes the second Packet Generation rule.
Wherein, this second Packet Generation rule comprises the second transmission rate of packet, so as this physical network card according to this second transmission rate by this Packet Generation to external equipment.This external equipment can be as another station server in network, and this network can be wide area network or local area network (LAN).
In addition, the the second Packet Generation rule configuring in above-mentioned physical network card can be completed by flow-control module, this flow-control module can be the module that is independent of virtual switch, particularly, this flow-control module arranges QoS (Quality of Service to this physical network card, quality of service guarantee) parameter, thereby realize and on this physical network card, configure the second Packet Generation rule, this physical network card sends this packet according to the second transmission rate corresponding to this qos parameter to external equipment, specifically can according to this first transmission rate, to this virtual switch, send with reference to above-mentioned the first Microsoft Loopback Adapter the description of packet, repeated no more herein.
It should be noted that, this flow-control module can also arrange the priority of this first virtual machine, at a plurality of virtual machines, to this physical network card, send packet simultaneously, and when this data packet flow causes the flow congestion of this physical network card, this physical network card can distribute bandwidth according to the priority of each virtual machine, and the virtual machine that priority is high can take more bandwidth.
Alternatively, this receiving element 42 also for, receive the network interface card delete instruction that user sends.
This processing unit 41 also for, according to this network interface card delete instruction, delete this first Microsoft Loopback Adapter.
Particularly, at physical resource in the situation that of the free time or the data package transmission velocity of this first virtual machine hour, user can issue network interface card delete instruction to this virtual switch, this virtual switch is deleted this first Microsoft Loopback Adapter according to this network interface card delete instruction, thereby cancel the control to the data package transmission velocity of this first virtual machine, to reduce system power dissipation.
Adopt above-mentioned virtual switch, this virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, and the second Microsoft Loopback Adapter to correspondence sends after packet at this first virtual machine, receive this packet that this second Microsoft Loopback Adapter sends, this virtual switch by this Packet Generation to this first Microsoft Loopback Adapter, like this, the packet that this virtual switch is sent to this second Microsoft Loopback Adapter by this first virtual machine is converted to the packet that this virtual switch is sent to this first Microsoft Loopback Adapter, and, this the first Microsoft Loopback Adapter configurable data bag sends rule, control this first Microsoft Loopback Adapter and to this virtual switch, send the transmission rate of packet, thereby control this virtual switch by this Packet Generation the transmission rate to object equipment, prevented that this first virtual machine is excessive to the excessive physical resource that causes this first virtual machine to take of speed of object equipment by Packet Generation by this virtual switch, improved user's experience.
The embodiment of the present invention provides a kind of virtual switch 50, and as shown in Figure 5, this virtual switch 50 comprises:
The program code of storage in processor 51 execute stores 53, for setting up the first Microsoft Loopback Adapter of corresponding physical machine the first virtual machine, at the second Microsoft Loopback Adapter corresponding to this first virtual machine, receive after the packet of this first virtual machine transmission, receive this packet that this second Microsoft Loopback Adapter sends, and by this Packet Generation to this first Microsoft Loopback Adapter, at this virtual switch, receive this packet that this first Microsoft Loopback Adapter sends according to this first transmission rate, this packet is sent to object equipment according to this first transmission rate.
Wherein, dispose the first Packet Generation rule in this Microsoft Loopback Adapter, this first Packet Generation rule comprises the first transmission rate of packet.
It should be noted that, the physical machine described in the embodiment of the present invention can be the physical machine at virtual switch equipment 50 places.In this physical machine, comprise two or more virtual machines.
Alternatively, this processor 51 also for, receive the Microsoft Loopback Adapter that user sends and set up instruction, and according to this Microsoft Loopback Adapter, set up instruction and set up this first Microsoft Loopback Adapter.
Wherein, this Microsoft Loopback Adapter is set up instruction and when physical resource surpasses predetermined threshold value, is sent determining that this first virtual machine takies for user.
Alternatively, this processor 51 also for, according to this first transmission rate by this Packet Generation the physical network card to this physical machine, or, according to this first transmission rate by this Packet Generation to the second virtual machine in this physical machine.
Alternatively, this processor 51 also for, according to the first transmission rate of this packet by this Packet Generation to the physical network card that disposes the second Packet Generation rule so that this physical network card according to the second transmission rate by this Packet Generation to external equipment.
Wherein, this second Packet Generation rule comprises the second transmission rate of packet.
Alternatively, this processor 51 also for, receive the network interface card delete instruction that user sends, and delete this first Microsoft Loopback Adapter according to this network interface card delete instruction.
It should be noted that, device embodiment described above is only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or holding wire.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly comprise that application-specific integrated circuit (ASIC), dedicated cpu, private memory, special-purpose components and parts etc. realize by specialized hardware.Generally, all functions being completed by computer program can realize with corresponding hardware at an easy rate, and the particular hardware structure that is used for realizing same function can be also diversified, such as analog circuit, digital circuit or special circuit etc.But software program realization is better execution mode under more susceptible for the purpose of the present invention condition.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) method described in each embodiment of execution the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (10)
1. a method for Packet Generation, is characterized in that, comprising:
Virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, and wherein, described the first Microsoft Loopback Adapter disposes the first Packet Generation rule, and described the first Packet Generation rule comprises the first transmission rate of packet;
At the second Microsoft Loopback Adapter corresponding to described the first virtual machine, receive after the packet of described the first virtual machine transmission, described virtual switch receives the described packet that described the second Microsoft Loopback Adapter sends;
Described virtual switch by described Packet Generation to described the first Microsoft Loopback Adapter;
Described virtual switch receives the described packet that described the first Microsoft Loopback Adapter sends according to described the first transmission rate, and described packet is sent to object equipment according to described the first transmission rate.
2. method according to claim 1, is characterized in that, before described virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, described method also comprises:
Described virtual switch receives the Microsoft Loopback Adapter of user's transmission and sets up instruction, and wherein, it is that user is determining that described the first virtual machine sends while taking physical resource over predetermined threshold value that described Microsoft Loopback Adapter is set up instruction;
Described virtual switch is set up the first Microsoft Loopback Adapter of the first virtual machine in corresponding physical machine, comprising:
Described virtual switch is set up instruction according to described Microsoft Loopback Adapter and is set up described the first Microsoft Loopback Adapter.
3. method according to claim 1 and 2, is characterized in that, described virtual switch is sent to object equipment by described packet according to described the first transmission rate, comprising:
Described virtual switch according to described the first transmission rate by described Packet Generation to the physical network card of described physical machine; Or,
Described virtual switch according to described the first transmission rate by described Packet Generation to the second virtual machine in described physical machine.
4. method according to claim 3, is characterized in that, described virtual switch according to described the first transmission rate by described Packet Generation to the physical network card of described physical machine, comprising:
Described virtual switch according to described the first transmission rate by described Packet Generation to the physical network card that disposes the second Packet Generation rule, wherein, described the second Packet Generation rule comprises the second transmission rate of packet, so as described physical network card according to described the second transmission rate by described Packet Generation to external equipment.
5. according to the method described in claim 1 to 4 any one, it is characterized in that, described method also comprises:
Receive the network interface card delete instruction that user sends;
According to described network interface card delete instruction, delete described the first Microsoft Loopback Adapter.
6. a virtual switch, is characterized in that, comprising:
Processing unit, for setting up the first Microsoft Loopback Adapter of corresponding physical machine the first virtual machine, wherein, described the first Microsoft Loopback Adapter disposes the first Packet Generation rule, and described the first Packet Generation rule comprises the first transmission rate of packet;
Receiving element, for receiving at the second Microsoft Loopback Adapter corresponding to described the first virtual machine after the packet of described the first virtual machine transmission, receives the described packet that described the second Microsoft Loopback Adapter sends;
Transmitting element, for described Packet Generation that described receiving element is received to described the first Microsoft Loopback Adapter;
Described receiving element also for, at described the first Microsoft Loopback Adapter, receive after the described packet that described transmitting element sends, receive the described packet that described the first Microsoft Loopback Adapter sends according to described the first transmission rate;
Described transmitting element also for, at described receiving element, receive after the described packet that described the first Microsoft Loopback Adapter sends according to described the first transmission rate, described packet is sent to object equipment according to described the first transmission rate.
7. equipment according to claim 6, is characterized in that,
Described receiving element specifically for, receive the Microsoft Loopback Adapter that user sends and set up instruction, wherein, described Microsoft Loopback Adapter is set up instruction and when physical resource surpasses predetermined threshold value, is sent determining that described the first virtual machine takies for user;
Described processing unit specifically for, according to described Microsoft Loopback Adapter, set up instruction and set up described the first Microsoft Loopback Adapter.
8. according to the equipment described in claim 6 or 7, it is characterized in that, described transmitting element specifically for:
According to described the first transmission rate by described Packet Generation to physical network card; Or,
According to described the first transmission rate by described Packet Generation to the second virtual machine in described physical machine.
9. equipment according to claim 8, is characterized in that, described transmitting element specifically for:
According to the first transmission rate of described packet by described Packet Generation to the physical network card that disposes the second Packet Generation rule, wherein, described the second Packet Generation rule comprises the second transmission rate of packet, so as described physical network card according to described the second transmission rate by described Packet Generation to external equipment.
10. according to the equipment described in claim 6 to 9 any one, it is characterized in that,
Described receiving element also for, receive the network interface card delete instruction that user sends;
Described processing unit also for, according to described network interface card delete instruction, delete described the first Microsoft Loopback Adapter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310526766.9A CN103581042B (en) | 2013-10-30 | 2013-10-30 | Method and device for sending data package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310526766.9A CN103581042B (en) | 2013-10-30 | 2013-10-30 | Method and device for sending data package |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103581042A true CN103581042A (en) | 2014-02-12 |
CN103581042B CN103581042B (en) | 2017-01-18 |
Family
ID=50052003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310526766.9A Expired - Fee Related CN103581042B (en) | 2013-10-30 | 2013-10-30 | Method and device for sending data package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103581042B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106101013A (en) * | 2016-06-03 | 2016-11-09 | 广东睿江云计算股份有限公司 | A kind of cloud main-machine communication queue ensuring method based on QoS and system |
CN106101014A (en) * | 2016-06-03 | 2016-11-09 | 广东睿江云计算股份有限公司 | A kind of cloud main-machine communication queue support method based on QoS and system |
CN107222349A (en) * | 2017-06-23 | 2017-09-29 | 北京三快在线科技有限公司 | A kind of method and device for configuring virtual machine network interface card speed |
CN107317710A (en) * | 2017-06-30 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN |
CN107368178A (en) * | 2017-08-21 | 2017-11-21 | 湖南大学 | Power consumption optimization method based on DPDK processing data packets platforms |
CN108964959A (en) * | 2017-05-27 | 2018-12-07 | 阿里巴巴集团控股有限公司 | A kind of network interface card direct communication system and data packet monitoring and managing method for virtual platform |
CN109922003A (en) * | 2019-03-22 | 2019-06-21 | 苏州浪潮智能科技有限公司 | A kind of data transmission method for uplink, system and associated component |
CN111224897A (en) * | 2018-11-23 | 2020-06-02 | 北京金山云网络技术有限公司 | Flow forwarding method and device, switch equipment and intelligent network card |
CN113765816A (en) * | 2021-08-02 | 2021-12-07 | 阿里巴巴新加坡控股有限公司 | Flow control method, system, equipment and medium based on service grid |
CN114697242A (en) * | 2022-03-21 | 2022-07-01 | 浪潮云信息技术股份公司 | Client virtual network card flow management method and system under government affair cloud scene |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101163051A (en) * | 2006-10-13 | 2008-04-16 | 鸿富锦精密工业(深圳)有限公司 | Network card transmission speed testing system and method |
CN101459618A (en) * | 2009-01-06 | 2009-06-17 | 北京航空航天大学 | Data packet forwarding method and device for virtual machine network |
US20100128605A1 (en) * | 2008-11-24 | 2010-05-27 | Emulex Design & Manufacturing Corporation | Method and system for controlling traffic over a computer network |
CN103139039A (en) * | 2013-02-25 | 2013-06-05 | 汉柏科技有限公司 | Virtual network capable of achieving flow isolation control and construction method |
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 |
-
2013
- 2013-10-30 CN CN201310526766.9A patent/CN103581042B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101163051A (en) * | 2006-10-13 | 2008-04-16 | 鸿富锦精密工业(深圳)有限公司 | Network card transmission speed testing system and method |
US20100128605A1 (en) * | 2008-11-24 | 2010-05-27 | Emulex Design & Manufacturing Corporation | Method and system for controlling traffic over a computer network |
CN101459618A (en) * | 2009-01-06 | 2009-06-17 | 北京航空航天大学 | Data packet forwarding method and device for virtual machine network |
CN103139039A (en) * | 2013-02-25 | 2013-06-05 | 汉柏科技有限公司 | Virtual network capable of achieving flow isolation control and construction method |
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 (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106101014A (en) * | 2016-06-03 | 2016-11-09 | 广东睿江云计算股份有限公司 | A kind of cloud main-machine communication queue support method based on QoS and system |
CN106101013A (en) * | 2016-06-03 | 2016-11-09 | 广东睿江云计算股份有限公司 | A kind of cloud main-machine communication queue ensuring method based on QoS and system |
CN106101013B (en) * | 2016-06-03 | 2019-05-21 | 广东睿江云计算股份有限公司 | A kind of cloud main-machine communication queue ensuring method and system based on QoS |
CN108964959A (en) * | 2017-05-27 | 2018-12-07 | 阿里巴巴集团控股有限公司 | A kind of network interface card direct communication system and data packet monitoring and managing method for virtual platform |
CN108964959B (en) * | 2017-05-27 | 2022-02-25 | 阿里巴巴集团控股有限公司 | Network card direct connection system for virtualization platform and data packet supervision method |
CN107222349B (en) * | 2017-06-23 | 2021-09-10 | 北京三快在线科技有限公司 | Method and device for configuring network card rate of virtual machine, computer equipment and storage medium |
CN107222349A (en) * | 2017-06-23 | 2017-09-29 | 北京三快在线科技有限公司 | A kind of method and device for configuring virtual machine network interface card speed |
WO2018233252A1 (en) * | 2017-06-23 | 2018-12-27 | 北京三快在线科技有限公司 | Method and apparatus for configuring virtual network card rate |
CN107317710A (en) * | 2017-06-30 | 2017-11-03 | 郑州云海信息技术有限公司 | A kind of method and apparatus for carrying out QoS configurations to Microsoft Loopback Adapter based on SDN |
CN107368178A (en) * | 2017-08-21 | 2017-11-21 | 湖南大学 | Power consumption optimization method based on DPDK processing data packets platforms |
CN111224897A (en) * | 2018-11-23 | 2020-06-02 | 北京金山云网络技术有限公司 | Flow forwarding method and device, switch equipment and intelligent network card |
CN109922003A (en) * | 2019-03-22 | 2019-06-21 | 苏州浪潮智能科技有限公司 | A kind of data transmission method for uplink, system and associated component |
CN109922003B (en) * | 2019-03-22 | 2022-12-30 | 苏州浪潮智能科技有限公司 | Data sending method, system and related components |
CN113765816A (en) * | 2021-08-02 | 2021-12-07 | 阿里巴巴新加坡控股有限公司 | Flow control method, system, equipment and medium based on service grid |
CN113765816B (en) * | 2021-08-02 | 2023-12-15 | 阿里巴巴新加坡控股有限公司 | Flow control method, system, equipment and medium based on service grid |
CN114697242A (en) * | 2022-03-21 | 2022-07-01 | 浪潮云信息技术股份公司 | Client virtual network card flow management method and system under government affair cloud scene |
Also Published As
Publication number | Publication date |
---|---|
CN103581042B (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103581042A (en) | Method and device for sending data package | |
US11805058B2 (en) | Data packet forwarding method, network adapter, host device, and computer system | |
US10148556B2 (en) | Link aggregation group (LAG) support on a software-defined network (SDN) | |
EP3176980B1 (en) | Unified server communication method, baseboard management controller and server | |
CN102932174A (en) | Method, device and physical host for managing physical network card | |
CN112671578B (en) | SRIOV virtual network configuration method and related device | |
CN103634228A (en) | Network message transmission method and equipment | |
CN104486234A (en) | Method and server for uninstalling service exchanger to physical network card | |
CN104702560A (en) | Method and device for preventing message attack | |
CN104301248A (en) | Message rate limiting method and device | |
CN103634235A (en) | Method for limiting speed of network interface of virtual machine | |
CN111371694B (en) | Shunting method, device and system, processing equipment and storage medium | |
CN112988346A (en) | Task processing method, device, equipment and storage medium | |
CN109361693B (en) | Virtual device communication method and device | |
US20190036827A1 (en) | Traffic control method and device in software defined network | |
US10567215B2 (en) | Using an out-of-band network to reconfigure a bus interface port | |
CN106708761A (en) | Service message processing method and device | |
US20220046647A1 (en) | Logical channel management in a communication system | |
CN109257806B (en) | Carrier aggregation mode setting method for communication terminal, communication terminal and medium | |
CN108833570B (en) | Cluster storage and balanced transmission system based on cloud storage | |
CN111158905A (en) | Method and device for adjusting resources | |
CN110971696B (en) | System and method for realizing virtual electronic card communication | |
CN105915286B (en) | Data distribution method and current divider | |
CN105939242B (en) | Realize the method and device of virtual system | |
CN105519055A (en) | Dynamic equilibrium method and apparatus for QoS of I/O channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170118 Termination date: 20181030 |