A method and system for supporting wake-on-LAN (WOL) in a team of network interface cards (NICs) in a computing device is disclosed. One embodiment of the present invention sets forth a method, which includes the steps of programming each of the NICs on the team with a team Media access control (MAC) address after having backed up the NIC MAC addresses of the NICs but before the computing device enters a low power state, and causing modification of address resolution protocol (arp) caches associated with a plurality of client devices coupled to the team of NICs to use the team MAC address.
|
1. A method for supporting wake-on-LAN (WOL) in a team of network interface cards (NICs) in a computing device, the method comprises:
before the computing device enters a low power state, programming each of the NICs on the team with a team Media access control (MAC) address after having backed up the NIC MAC addresses of the NICs;
causing modification of address resolution protocol (arp) caches associated with a plurality of client devices coupled to the team of NICs to use the team MAC address;
after the computing device exists the low power state, programming each of the NICs on the team with the respective backup NIC MAC address; and
reinitiating an arp steering process by:
in response to an arp request packet from a first client device out of the plurality of client devices, intercepting a first arp response packet including the team MAC address;
replacing the team MAC address with the NIC MAC address of one of the NICs on the team to form a second arp response packet; and
transmitting the second arp response packet to the first client device to cause the arp cache associated with the first client device to be modified to use the NIC MAC address included in the second arp response packet.
11. A computing device, comprising:
system memory, including an operating system and a software driver,
a team of network interface cards (NICs) configured to support wake-on-LAN (WOL) protocol, and
a processor configured to:
before the computing device enters a low power state, program each of the NICs on the team with a team Media access control (MAC) address after having backed up the NIC MAC addresses of the NICs;
cause modification of address resolution protocol (arp) caches associated with a plurality of client devices coupled to the team of NICs to use the team MAC address;
after the computing device exists the low power state, program each of the NICs on the team with the respective backup NIC MAC address; and
reinitiate an arp steering process by:
in response to an arp request packet from a first client device out of the plurality of client devices, intercepting a first arp response packet including the team MAC address;
replacing the team MAC address with the NIC MAC address of one of the NICs on the team to form a second arp response packet; and
transmitting the second arp response packet to the first client device to cause the arp cache associated with the first client device to be modified to use the NIC MAC address included in the second arp response packet.
6. A non-transitory computer-readable storage medium containing a sequence of instructions for a software driver, which when executed by a processor in a computing device, causes the processor to:
before the computing device enters a low power state, program each network interface card (NIC) on a team that supports wake-on-LAN (WOL) protocol with a team Media access control (MAC) address after having backed up the NIC MAC addresses of the NICs;
cause modification of address resolution protocol (arp) caches associated with a plurality of client devices coupled to the team of NICs to use the team MAC address;
after the computing device exists the low power state, program each of the NICs on the team with the respective backup NIC MAC address; and
reinitiate an arp steering process by:
in response to an arp request packet from a first client device out of the plurality of client devices, intercepting a first arp response packet including the team MAC address;
replacing the team MAC address with the NIC MAC address of one of the NICs on the team to form a second arp response packet; and
transmitting the second arp response packet to the first client device to cause the arp cache associated with the first client device to be modified to use the NIC MAC address included in the second arp response packet.
2. The method of
3. The method of
4. The method of
5. The method of
7. The non-transitory computer-readable storage medium of
8. The non-transitory computer-readable storage medium of
9. The non-transitory computer-readable storage medium of
10. The non-transitory computer-readable storage medium of
12. The computing device of
13. The computing device of
14. The computing device of
|
1. Field of the Invention
Embodiments of the present invention relate generally to network communications and more specifically to a method and system for performing wake-on-LAN functionality in a load balanced environment.
2. Description of the Related Art
Unless otherwise indicated herein, the approaches described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.
Performance and reliability are key requirements for modern computer networks. One approach is to create a “team” of network interface cards (“NICs”) to handle the networking needs of a computing device. The team operates in a load-balanced environment to avoid overloading of any one specific NIC on the team and also employs techniques such as “failover” to redirect network traffic from one unreliable NIC to other reliable NICs on the team. These NICs are transparent to the operating system of the computing device, since the operating system only recognizes a single Transmission Control Protocol/Internet Protocol (TCP/IP) binding to the team.
However, problems arise when the Wake-on-LAN (WOL) protocol needs to be performed through the team configuration. To illustrate,
One problem occurs if the NIC 118 is in failover (due to a faulty NIC or a down link in the team 104) before or after the computing device 100 enters the low power state. The other NICs in the team 104 do not recognize any of the WOL packets (e.g., magic packets or pattern match packets), because the other NICs only match the WOL packets with their own MAC Addresses, resulting in the computing device 100 continuing to stay in the low power state. Another problem occurs if the NIC 118 is the only NIC with the broadcast filter enabled in the team 104 and the NIC 118 again is in failover after the computing device 100 enters the low power state. Without the normal failover operation, the other NICs in the team 104 ignore any broadcast WOL packet to wake up the computing device 100, and the computing device 100 remains stuck in the low power state.
As the foregoing illustrates, what is needed is a method and system for implementing the WOL protocol in a load balanced environment to address at least the problems set forth above.
A method and system for supporting Wake-on-LAN (WOL) in a team of network interface cards (NICs) in a computing device is disclosed. One embodiment of the present invention sets forth a method, which includes the steps of programming each of the NICs on the team with a team Media Access Control (MAC) address after having backed up the NIC MAC addresses of the NICs but before the computing device enters a low power state, and causing modification of address resolution protocol (ARP) caches associated with a plurality of client devices coupled to the team of NICs to use the team MAC address.
One advantage of the disclosed method and system is to address the potential problems of not waking up a computing device under certain failover conditions in a team of network interface cards.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
The memory controller 204 is coupled to the main memory 202 and to the microprocessor 206, and the I/O controller 208 is coupled to the microprocessor 206 and the NICs 210, 216, and 222 in the team 230. In one embodiment of the invention, the microprocessor 206 transmits commands or data to the NICs by writing commands or data into the I/O controller 208. Once such commands or data are written into the I/O controller 208, the I/O controller 208 optionally translates the commands or data into a format that the target NIC may understand and communicates the commands or data to the target NIC. Similarly, the NICs 210, 216, and 222 transmit commands or data to the microprocessor 206 by writing commands or data into the I/O controller 208, and the I/O controller 208 optionally translates the commands or data into a format that the microprocessor 206 may understand and communicates the commands or data to the microprocessor 206. The aforementioned couplings may be implemented as memory busses or I/O busses, such as PCI™ busses, or any combination thereof, or may otherwise be implemented in any other technical feasible manner.
As shown in more detail in
The software driver 252 also includes additional logic to configure the team 230 to handle WOL packets before the computing device 200 enters the low power state. In one implementation, some or all of this logic is provided by the LBFO module 254.
The ARP protocol includes ARP Request packets and ARP Response packets. To determine the MAC address of a system using this protocol, an ARP Request packet (as a broadcast packet) is sent with the IP address of the system. The true owner of this IP address typically responds with the ARP Response packet directed back to the machine that sent the ARP Request packet. The ARP Response packet includes the MAC address of the system. According to the ARP protocol, if any machine with an ARP cache entry receives another ARP Request packet from a sender that has the same IP address as the one in the cache entry, then the machine should refresh the MAC address in the cache entry. Here, the aforementioned ARP poison packet is like an ARP Request packet with the IP address and the MAC address of the sender as the Team IP address and the Team MAC address, respectively.
To illustrate, suppose the MAC addresses for the NIC 210, 216, and 222 are M1, M2, and M3, respectively, and the MAC address for the team 230 is M3. Following the steps shown in
More particularly,
The LBFO module 254 intercepts the ARP response packet sent from the operating system 250 in step 374 and decodes the intercepted first ARP response packet into components in step 376. After the LBFO module 254 selects the MAC address of the NIC on the team 230, it replaces the MAC address selected by the operating system 250, in the decoded first ARP response packet, with the newly selected MAC address. In step 380, the LBFO module 254 encodes the selected MAC address and the remaining components of the decoded first ARP response packet to form a second ARP response packet. In step 382, the LBFO module 254 transmits the second ARP response packet to the client device. In one embodiment, the second ARP response packet is transmitted through the NIC on the team 320 that corresponds to the selected MAC address.
While the forgoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof. For example, aspects of the present invention may be implemented in hardware or software or in a combination of hardware and software. One embodiment of the invention may be implemented as a program product for use with a computer system. The program(s) of the program product define functions of the embodiments (including the methods described herein) and can be contained on a variety of computer-readable storage media. Illustrative computer-readable storage media include, but are not limited to: (i) non-writable storage media (e.g., read-only memory devices within a computer such as CD-ROM disks readable by a CD-ROM drive, flash memory, ROM chips or any type of solid-state non-volatile semiconductor memory) on which information is permanently stored; and (ii) writable storage media (e.g., floppy disks within a diskette drive or hard-disk drive or any type of solid-state random-access semiconductor memory) on which alterable information is stored. Such computer-readable storage media, when carrying computer-readable instructions that direct the functions of the present invention, are embodiments of the present invention. Therefore, the above examples, embodiments, and drawings should not be deemed to be the only embodiments, and are presented to illustrate the flexibility and advantages of the present invention as defined by the following claims.
Patent | Priority | Assignee | Title |
10126797, | May 20 2009 | Renesas Electronics Corporation | Method of controlling electronic controller units |
10359823, | May 20 2009 | Renesas Electronics Corporation | Method of controlling electronic controller units |
10516645, | Apr 27 2017 | Pure Storage, Inc.; Pure Storage, Inc | Address resolution broadcasting in a networked device |
11165666, | Jan 18 2014 | Intel Corporation | Provisioning persistent, dynamic and secure cloud services |
11722455, | Apr 27 2017 | Pure Storage, Inc. | Storage cluster address resolution |
11902112, | Jan 18 2014 | Intel Corporation | Provisioning persistent, dynamic and secure cloud services |
8284782, | Nov 15 2005 | Nvidia Corporation | System and method for avoiding ARP cache pollution |
8284783, | Nov 15 2005 | Nvidia Corporation | System and method for avoiding neighbor cache pollution |
8321617, | May 18 2011 | Hitachi, Ltd.; Hitachi, LTD | Method and apparatus of server I/O migration management |
8799633, | Feb 11 2011 | Microchip Technology Incorporated | MAC filtering on ethernet PHY for wake-on-LAN |
9575525, | May 20 2009 | Renesas Electronics Corporation | Semiconductor integrated circuit device |
9804658, | May 20 2009 | Renesas Electronics Corporation | Semiconductor integrated circuit device |
Patent | Priority | Assignee | Title |
5661719, | Oct 19 1995 | RPX Corporation | Method for activating a backup network management station in a network management system |
6052733, | Oct 01 1997 | Hewlett Packard Enterprise Development LP | Method of detecting errors in a network |
6874147, | Nov 18 1999 | Intel Corporation | Apparatus and method for networking driver protocol enhancement |
20020078213, | |||
20020112051, | |||
20060126619, | |||
20070025253, | |||
20090133040, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Nov 30 2007 | Nvidia Corporation | (assignment on the face of the patent) | / | |||
Nov 30 2007 | ABDULLA, AYAZ | Nvidia Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 020557 | /0309 | |
Feb 20 2008 | NANDA, SAMEER | Nvidia Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 020557 | /0309 |
Date | Maintenance Fee Events |
Apr 23 2014 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Apr 19 2018 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Apr 21 2022 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Nov 23 2013 | 4 years fee payment window open |
May 23 2014 | 6 months grace period start (w surcharge) |
Nov 23 2014 | patent expiry (for year 4) |
Nov 23 2016 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 23 2017 | 8 years fee payment window open |
May 23 2018 | 6 months grace period start (w surcharge) |
Nov 23 2018 | patent expiry (for year 8) |
Nov 23 2020 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 23 2021 | 12 years fee payment window open |
May 23 2022 | 6 months grace period start (w surcharge) |
Nov 23 2022 | patent expiry (for year 12) |
Nov 23 2024 | 2 years to revive unintentionally abandoned end. (for year 12) |