Energy efficient management of datalinks
A system including a first physical network interface card (NIC) include a number of rings, where at least one of the rings is an active ring. The system further includes a host, operatively connected to the first NIC, and including Media Access Control (MAC) layer. The MAC layer is configured to obtain a power management policy, obtain a load associated with the active ring, determine, using the power management policy and the load, that the state associated with at least one of the rings must be changed, and change, in response to the determining, the state of at least one of the of rings.
1. A system comprising:
a first physical network interface card (NIC) comprising a plurality of rings,
wherein at least one of the plurality of rings is an active ring and wherein each ring is a portion of memory in the NIC configured to temporarily store packets; and
a host, operatively connected to the first NIC, comprising a Media Access Control (MAC) layer configured to:
obtain a power management policy, wherein the power management policy specifies a maximum rate of dropped packets by the first NIC;
obtain a load associated with the active ring;
determine, using the power management policy and the load, that the state associated with at least one of the plurality of rings must be changed; and
change, in response to the determining, the state of at least one of the plurality of rings.
2. The system of claim 1 , further comprising:
a second NIC comprising a plurality of rings.
3. The system of claim 1 , wherein obtaining a load associated with the active ring comprises determining a rate at which packets are serviced by the active ring.
4. The system of claim 1 , wherein each of the plurality of rings is one selected from a group consisting of an active ring and an inactive ring.
5. The system of claim 1 , wherein changing the state of at least one of the plurality of rings comprises one selected from a group consisting of deactivating an active ring to obtain an inactive ring and activating an inactive ring to obtain an active ring.
6. The system of claim 1 , wherein the first NIC is one of a plurality of NICs in a NIC group.
7. A non-transitory computer readable medium comprising software instructions for managing datalinks, wherein the software instructions, when executed, perform a method, the method comprising:
obtaining, by a Media Access Control (MAC) layer executing on a host, a power management policy, wherein the power management policy specifies a maximum rate of dropped packets by a physical network interface card (NIC);
obtaining, by the MAC layer, a load associated with an active ring residing on the NIC, wherein the NIC comprises a plurality of rings and wherein each ring is a portion of memory in the NIC configured to temporarily store packets;
determining, using the power management policy and the load, that the state associated with at least one of the plurality of rings must be changed; and
changing, in response to the determining, the state of at least one of the plurality of rings.
8. The non-transitory computer readable medium of claim 7 , wherein each of the plurality of rings is one selected from a group consisting of an active ring and an inactive ring.
9. The non-transitory computer readable medium of claim 7 , wherein changing the state of at least one of the plurality of rings comprises one selected from a group consisting of deactivating an active ring to obtain an inactive ring and activating an inactive ring to obtain an active ring.
10. The non-transitory computer readable medium of claim 7 , wherein the NIC is one of a plurality of NICs in a NIC group.
11. A method for managing datalinks, comprising:
obtaining, by a Media Access Control (MAC) layer executing on a host, a power management policy, wherein the power management policy specifies a maximum rate of dropped packets by a physical network interface card (NIC);
obtaining, by the MAC layer, a load associated with an active ring residing on the NIC, wherein the NIC comprises a plurality of rings, and wherein the NIC is operatively connected to the host and wherein each ring is a portion of memory in the NIC configured to temporarily store packets;
determining, using the power management policy and the load, that the state associated with at least one of the plurality of rings must be changed; and
changing, in response to the determining, the state of at least one of the plurality of rings.
12. The method of claim 11 , wherein each of the plurality of rings is one selected from a group consisting of an active ring and an inactive ring.
13. The method of claim 11 , wherein changing the state of at least one of the plurality of rings comprises one selected from a group consisting of deactivating an active ring to obtain an inactive ring and activating an inactive ring to obtain an active ring.
14. The method of claim 11 , wherein the NIC is one of a plurality of NICs in a NIC group.