以太网 Magic packet 帧唤醒

MAC控制器在休眠模式下,可以通过Magicpacket检测来唤醒处于下电模式的节点。只有配置为睡眠模式时,此功能才支持。当检测到Magicpacket,EIR[WAKEUP]标志会被设置,然后清除ENETn_ECR[SLEEP]以恢复正常操作。Magicpacket由6个连续的0xFF字节和16个目标节点的MAC地址组成,用于远程唤醒网络设备。
摘要由CSDN通过智能技术生成

最近看MAC控制器手册时,文档上提到休眠模式下MAC能够被 Magic packet唤醒功能。手册中内容如下:

Magic packet detection wakes(唤醒) a node that is put in power-down mode(下电模式) by the node management agent.

Magic packet detection is supported only if the MAC is configured in sleep mode.

1、Sleep mode
To put the MAC in Sleep mode, set ENETn_ECR[SLEEP].

At the same time ENETn_ECR[MAGICEN] should also be set to enable magic packet detection.
In addition, if ENET is enabled, write 1 to ENETn_ECR[SLEEP] before entering into low power mode.

When the MAC is in Sleep mode:
• The transmit logic is disabled.
• The FIFO receive/transmit functions are disabled.
• The receive logic is kept in Normal mode, but it ignores all traffic from the line except magic packets.

They are detected so that a remote agent can wake the node.

2、Magic packet detection
The core is designed to detect magic packets (see Magic packets) with the destination address set to:
• Any multicast address
• The broadcast address
• The unicast address programmed in PADDR1/2
When a magic packet is detected, EIR[WAKEUP] is set and none of the statistic registers are incremented.

3、Wakeup
When a magic packet is detected, indicated by ENETn_EIR[WAKEUP],ENETn_ECR[SLEEP] should be cleared to resume normal operation of the MAC.
Clearing the SLEEP bit automatically masks ENETn_ECR[MAGICEN], disabling magic packet detection.

4、Magic packets

A magic packet is a unicast, multicast, or broadcast packet, which carries a defined sequence in the payload section.

Magic packets are received and inspected only under specific conditions as described in Magic packet detection.

The defined sequence to decode a magic packet is formed with a synchronization stream which consists of

six consecutive 0xFF bytes(6个连续的0XFF字节), and is followed by sequence of sixteen consecutive unicast MAC addresses of the node to be awakened.

This sequence can be located anywhere in the magic packet payload.

The magic packet is formed with a standard Ethernet header, optional padding, and CRC.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
PCnet Magic Packet(TM) Utility 1.00, September 9, 1997 ------------------------------------------------------- INTRODUCTION ~~~~~~~~~~~~ This is the release notice for the PCnet Magic Packet(TM) Utility Revision 1.00 software. All files are in DOS FAT format. AMD抯 Magic Packet utility is a convenient tool for system administrators for remotely powering up groups of workstations at preset times. The utility provides the following two basic functions: ?Creates a table of IP and hardware addresses for all hosts in a local area network. ?Associates each group of workstations/hosts to an alarm clock, and power on each group when the time comes. This utility supports the Microsoft Windows NT 4.0 and Windows 95 operating system environments. CONTENTS ~~~~~~~~~~~~~ The Rev 1.00 files are distributed as follows: Directory 1 - release.txt : the file you are viewing currently. - magpac.exe - magpac.hlp - conspawn.exe - magpac.cnt Directory 2 - msvcrt.dll - mfc42.dll - magpacbg.bmp Documents - mpuser.doc : Microsoft Word 6.0 document that describes the usage of the utility - testrept.doc : Test Report in Microsoft Word 6.0 format. DOCUMENTATION ~~~~~~~~~~~~~ This release contains version 1.0 of AMD's PCnet Magic Packet Utility User's Guide (MPuser.doc) and a test report (TestRept.Doc) describing the scope and content of tests that were conducted with this release of the utility. These documents are available in the distribution media. INSTALLATION INSTRUCTIONS ~~~~~~~~~~~~~~~~~~~~~~~~~ These instructions apply for both Windows 95 and Windows NT 4.0. 1. Open a DOS window 2. Create a directory such as c:\mputil 3. Copy all files contained in Directory 1 to the c:\mputil directory 4. For Windows 95, change to the windows system directory (default is c:\windows) directory For Windows NT, change to the Windows NT system32 sub-directory (default is c:\winnt\system32) Copy the *.dll files in Direc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值