Sunday, April 17, 2016

The Wake-on-LAN "magic packet" format

Wake-on-LAN is a feature that allows network cards to wake their computer from sleep upon receipt of a special packet. That packet can actually be in any format; network cards scan the entire payload for the special sequence so that they don't have to parse UDP or any other protocol.

A run of six FF bytes starts the magic sequence. It is then followed by sixteen instances of the card's six-byte MAC address.

Wikipedia says that the sequence is usually delivered over UDP or in a raw frame with EtherType 0x0842.

No comments:

Post a Comment