Applying policies to schedule network bandwidth among virtual machines
First Claim
1. One or more computer storage memory having computer-executable instructions embodied thereon that, when executed, perform a method for metering various data flows of packets originating from a plurality of virtual machines (VMs) instantiated on a single physical node, the method comprising:
- reading one or more first policies contained within a first service agreement, wherein the contract first service agreement governs allocation of network resources to a first client;
allocating a first amount of network bandwidth to a first VM, of the plurality of VMs, associated with the first client based on the one or more first policies of the first service agreement, wherein a size of the first amount of network bandwidth is based, at least in part, upon a first weighting associated with the first VM relative to, at least, a second weighting associated with a second VM of the plurality of VMs, and wherein the first weighting and the second weighting are specified by the first service agreement and a second service agreement, respectively;
detecting that the first VM is in an active state based on a depletion of the first amount of network bandwidth, wherein the first amount of network bandwidth diminishes as a function of a rate of the data flow from the first VM; and
allocating a second amount of network bandwidth to the first VM based, at least in part, on the one or more first policies and a remaining portion of the first amount of network bandwidth.
2 Assignments
0 Petitions
Accused Products
Abstract
Computerized methods, systems, and computer-storage media for allowing virtual machines (VMs) residing on a common physical node to fairly share network bandwidth are provided. Restrictions on resource consumption are implemented to ameliorate stressing the network bandwidth or adversely affecting the quality of service (QoS) guaranteed to tenants of the physical node. The restrictions involves providing a scheduler that dynamically controls networking bandwidth allocated to each of the VMs as a function of QoS policies. These QoS policies are enforced by controlling a volume of traffic being sent from the VMs. Controlling traffic includes depositing tokens into token-bucket queues assigned to the VMs, respectively. The tokens are consumed as packets pass through the token-bucket queues. Upon consumption, packets are held until sufficient tokens are reloaded to the token-bucket queues.
-
Citations
14 Claims
-
1. One or more computer storage memory having computer-executable instructions embodied thereon that, when executed, perform a method for metering various data flows of packets originating from a plurality of virtual machines (VMs) instantiated on a single physical node, the method comprising:
-
reading one or more first policies contained within a first service agreement, wherein the contract first service agreement governs allocation of network resources to a first client; allocating a first amount of network bandwidth to a first VM, of the plurality of VMs, associated with the first client based on the one or more first policies of the first service agreement, wherein a size of the first amount of network bandwidth is based, at least in part, upon a first weighting associated with the first VM relative to, at least, a second weighting associated with a second VM of the plurality of VMs, and wherein the first weighting and the second weighting are specified by the first service agreement and a second service agreement, respectively; detecting that the first VM is in an active state based on a depletion of the first amount of network bandwidth, wherein the first amount of network bandwidth diminishes as a function of a rate of the data flow from the first VM; and allocating a second amount of network bandwidth to the first VM based, at least in part, on the one or more first policies and a remaining portion of the first amount of network bandwidth. - View Dependent Claims (2)
-
-
3. A computer system capable of metering a rate at which packets from a virtual machine are injected into a network utilizing one or more policies specified by tenants of a data center, the computer system comprising a computer storage medium having a plurality of computer software components embodied thereon, the computer software components comprising:
-
a first VM instantiated on a physical node, the first VM associated with a first client; a second VM instantiated on the physical node, the second VM associated with a second client; a first queue associated with the first VM; a second queue associated with the second VM; and a scheduler that reads a first service agreement and a second service agreement associated with the first client and the second client, respectively, that allocates a first amount of bandwidth to the first VM as a function of one or more first policies contained within the first service agreement, and that allocates a second amount of bandwidth to the second VM as a function of one or more second policies within the second service agreement, wherein the first VM transmits a first data flow of packets to the first queue prior to the packets of the first data flow being released from the physical node, wherein the second VM transmits a second data flow of packets to the second queue prior to the packets of the second data flow being released from the physical node, wherein, upon receiving the first data flow, the first queue reduces the first amount of bandwidth by a prescribed amount for each packet within the first data flow, wherein, upon receiving the second data flow, the second queue reduces the second amount of bandwidth by a prescribed amount for each packet within the second data flow. - View Dependent Claims (4, 5, 6, 7)
-
-
8. A computerized method for imposing a limit on a rate of data flowing from a subject virtual machine (VM), the method comprising:
-
accepting a current allocation of bandwidth from a scheduler, wherein an amount of bandwidth provided within the current allocation is based at least in part on a service agreement associated with the subject VM and whether the subject VM is in an active state or an idle state, and wherein determining whether the subject VM is in an active state is based on a depletion of a previous allocation of bandwidth and determining whether the subject VM is in an idle state is based on a lack of usage of the previous allocation of bandwidth, dynamically metering a data-flow rate of the subject VM, wherein metering includes; (a) forwarding, to a network interface component, packets transmitted by the subject VM that are received prior to the current allocation of bandwidth being substantially depleted; (b) enqueueing packets transmitted by the subject VM that are received subsequent to the current allocation of bandwidth being substantially depleted; and (c) forwarding the enqueued packets to the network interface component upon accepting another allocation of bandwidth from the scheduler. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification