Switch – Why WakeOnLAN frames are sent to broadcast

ethernetswitchwake-on-lan

I'm trying to figure out why wake on lan frames, in the simplest form, are designeted to the ethernet broadcast address (FF:FF:FF:FF:FF:FF) and not to the address of the machine to be powered on.

Does it has to do with the network switch internal table that assings a mac address to ports?

Best Answer

According to AMD's spec the destination doesn't have to be the all-ones address. It can also be the receiving station's address or a multicast address. The payload is a different story. It must be the sequence ff:ff:ff:ff:ff:ff followed by the receiving station's MAC address repeated 16 times.

The presence of absence of the station's entry in the switch's CAM table shouldn't matter in this case. If the entry isn't present the packet should be forwarded out all ports.