Remote Boot Details _ application Tips

Source: Internet
Author: User
Tags port number
Chapter1: Basic conditions for remote wake-up

Wake on LAN (WOL), commonly known as remote wake-up, is now supported by many network card functions. and the realization of remote awakening, mainly to the target host to send a special form of data packets, AMD produced by the Magic Packet this software to generate network wake-up required special data packets, commonly known as the Magic Bag (Magic Packet). Magic packet format is only developed by AMD technology, not universally recognized standards, but is still supported by many network card manufacturers, so many network wake-enabled NIC can be compatible with.
Boeing, IBM, Cisco, United States Army, Canada Customs and Revenue Agency, Intel Corp, Compaq, Lucent, Microsoft Ltd, Dell Computer Corporation, Hewlett-Packard, Siemens, Walt Disney World Co., Compuware Corp., AMD (ISN ' t that ironic), Nortel Networks, Macromedia Inc., British Telecommunications plc, ebay and so on are using WOL technology.

Hardware settings are also required to enable remote wake-up:

The motherboard and network card must both support remote wake-up capabilities. Generally, the current motherboard support this feature (2002 after the Board are available), supported motherboards usually have a dedicated 3-pin socket, in order to power the network card when the shutdown. However, not all network adapters support this feature (especially for some inexpensive low-end network cards), the way to determine whether the NIC supports remote wake-up is simple, with a 3-pin WOL interface and a 3-core remote wake-up cable on the network card that supports remote wake-up, by determining if the NIC has a WOL interface ( Some newer network adapters may not have a WOL interface to support remote wake-up. This is because the current popular motherboard supports PCI2. 2 Standard, while PCI 2. The 2 standard does not require a dedicated WOL interface to power the NIC, allowing the motherboard to provide standby power to the NIC directly through the PCI slot.

1. Hardware connection

After the NIC is installed, plug one end of the remote wake cable into the WOL interface of the NIC, and the other end is connected with the motherboard's 3-pin WOL Remote Wake interface (the interface is usually marked with Wol_con, of course, if the motherboard and NIC support PCI2. The 2 standard is not required to do this).

To be explained, some motherboards have been integrated with the network wake-up function of the NIC, as long as the "Wake on PCI card" function can be, there is no three-pin socket, but also do not need a dedicated three-core connection.

2. CMOS settings

Turning on the CMOS remote wake feature is simple, as long as you set the "Wake up on LAN" or "Resume by LAN" entry for the "Power Management Setup" in the CMOS settings to "Enable" or "on".

ATX Power Supply

The ATX power supply must be used, and its +5v standby current must be relatively large, and it needs to be above 600mA according to Intel's recommendations. The current size can be found in the +5VSB (or +5AUX,5VSB) column in the external identification of the power supply. (Most of the network cards can be awakened below 0.7A)

If the remote computer shuts down for the last time it is an abnormal shutdown (a sudden power outage or shutdown, etc.), the wake-up may fail. In a Windows 2000/XP system, if you use hibernation when you turn off your computer, it can also cause a wakeup failure. This is because some network adapters need to reset a tag, which only happens when the operating system shuts down properly.

The implementation of the software, in fact, through the socket to the target machine to send Magic Packet (Magic Package), the format of the Magic package, contains a continuous 6 bytes of "FF" and a continuous repeat 16 times the MAC address. You can use the agreement to make a magic Packet using the protocol by filling in any protocol packets (such as TCP/IP, IPX packages) with a "ffffffffffff" + repeated 16 consecutive MAC addresses. Whenever a NIC detects such a fragment anywhere in the packet, it wakes up the computer.

Assuming that the computer's MAC address is 01:02:03:04:05:06 (6 bytes), then the machine's NIC will wake the computer by discovering the following clips within the data frame.

Code:
FFFFFFFFFFFF010203040506010203040506010203040506010203040506
010203040506010203040506010203040506010203040506010203040506
010203040506010203040506010203040506010203040506010203040506
010203040506010203040506


Precisely because this magic packet can be encapsulated in any protocol packet, it can be transferred between various router and switch without affecting the function of magic Packet wakeup. That is, regardless of whether the magic packet is from a LAN or WAN, it can wake up if the NIC detects magic packet. The most commonly used is the UDP broadcast packet, do not need the port number, as long as you know the MAC address of the computer being charged.

Note: UDP broadcast is divided into two kinds, one is directed broadcast, such as your network segment is 192.168.0.X, you go to 192.168.0.255 hair on it. The other is limited broadcast, the broadcast address is 255.255.255.255

To learn more, see "Magic Packet?" Technical Documentation "

Http://www.amd.com.cn/chcn/ConnectivitySolutions/TechnicalResources/0,,50_2334_2481_2494,00.html

Chapter2: Remote Wake Up LAN

Please be sure to understand the Chapter1 of the things explained in the beginning to see Chapter2.

First of all, it is stated that the client that installs any remote control software on your machine can not realize remote wake-up, the remote control software such as PCAnywhere or remote Administrator is impossible to work under the condition of shutdown, and the remote wake-up of SMS is also Arabian Nights. Remote wake-up can only be done based on the hardware of your computer.

Now assume that a, B two machines are located in the same LAN, to use the master computer A machine remote wake-up controlled computer B.

All you have to do is set up two places in the CMOS settings of the B-machine (someone likes to call the BIOS setup):

1. Turn on the "Wake on the PCI card" function, without this setting, it may be to plug the remote wake-up cable;
The purpose of this step is to "power the NIC when the computer is turned off"

2. Turn on the "Wake Up LAN" or "Resume by LAN" function;

The purpose of this step is to "let the motherboard accept the wake-up signal sent by the NIC"
After you set it up, save the exit.
In a machine you want to download the small LAN wake-up software, below I recommend two for everyone to use it.

PCnet Magic Packet UTILITY--AMD products, English interface, need to install to be able to use, the function is more powerful
Http://dl.pconline.com.cn/html_2/1/59/id=1885&pn=0.html
Netwaker for Windows Simplified Chinese version
Http://www.j66.net/lbmagic/doc1.htm

The following AMD Magic Packet for example, in a machine download installed. The software is installed by default in the C:\PCNET\MAGIC_PKT directory, because no shortcuts are added to the program items or the desktop, so to run the software, The user must go to the installed directory to perform Magpac.exe, and it is easier to create a shortcut on the desktop by himself.

Run Magpac.exe, and on the Magic Packets menu, click Power on one host (start a host) and display the "send a Magic Packet to one host" (send wake-up packets to hosts) dialog box (shown in the figure). In the "Destination Ethernet address" (Destination Ethernet), enter the NIC MAC address of B machine and click the Send button. The B machine will start automatically.

Of course, Magic Packet can also remotely wake more than one computer in the LAN, leave you to grope for it.
Below I provide a text version Magic Packet Tutorial link for you to learn it:
Http://www.codefans.com/ArticleView/Article_1174.html

Chapter3: Remote Wake for WAN


1, wide-area network to achieve remote wake-up, in fact, is not much more difficult than the remote LAN wake-up. The controlled computer can only add a device (such as a router, a firewall) that can obtain the public network IP address and set the port mapping.

Now the mainstream broadband Internet access is only ADSL and cable (that is, video broadband, cable TV network) Two, can use broadband routing to achieve sharing of the Internet, the following simple talk about the two ways under the Internet router How to set up to get to the public network IP address.

ADSL is divided into two kinds, a fixed IP adsl, in the router to select fixed IP address online way, fill in the telecommunications assigned to your public network IP address can; another is the dynamic IP ADSL, in the router set PPPoE dial-up, fill in your username, password, After the success of the dial-up router will automatically obtain a public network IP address;

Cable, as long as the router set "automatic access to IP" Internet access, routers will automatically obtain a public network IP address;
After the router is properly set up, the public IP address can be viewed directly in the connection state of the router.

2, set up in the router to allow "Subnet directed broadcasts (subnet directed broadcast)", and set the port mapping, the router to the end of a port map to the computer on the arbitrary ports

3, as long as the router is energized, the master computer can send magic Packet to the router through the Internet, and the router and the controlled computer are connected through the network cable, so the magic Packet can be sent to the network card of the controlled computer smoothly. Routers actually play the role of intermediate bridges.

Attach a Web page that can send Magic packet wake on Lan over the Internet
Http://www.depicus.com/wake-on-lan/woli.aspx

Netmask is a more noteworthy place, if you fill in the wrong, the target IP address will be wrong.

Let me use an example to briefly describe the process of remote wake in WAN

Suppose the master computer is a machine and the computer is a B-machine.

B Machine's local area network environment is as follows: An ADSL connects to the 4-port router R1, R1 4 ports respectively connect the S1,S2,S3,S4 four switches. b machine is connected to one of the ports of the S3 switch.

R1 after dialing automatically acquired IP for the 12.34.56.78,b machine in the LAN IP for the 192.168.1.167,MAC address for BB:BB:BB:BB:BB:BB.
Set the port mapping entry in R1 as follows: 12.34.56.78:9-->192.168.1.255:168
Here 192.168.1.255 is the directed broadcast address of the network where the 192.168.1.167 resides.

Why not map directly to 192.168.1.167? Because when the B machine, 192.168.1.167 this IP no longer with the R1 communication, R1 on the 192.168.1.167 of the ARP entries will soon disappear, all with 192.168.1.167 this IP traffic packets will be discarded.

1.A machine to 12.34.56.78 (255.255.255.251) This target IP Port 9th to send a FFFFFFFFFFFF and 16 consecutive repeat BBBBBBBBBBBB Magic packet of the unicast packet, the middle through the N routes, The unicast packet enters the R1 smoothly;

2. When R1 detects that the packet port number is 9, the destination IP and port number of the packet is modified to 192.168.1.255:168 according to the port mapping entry, at which point the packet is R1 recognized as a directed broadcast packet because R1 has been set to allow subnet directed broadcasts, so the packet was not discarded;

3.R1 the broadcast packet to 4-port broadcast, S1,S2,S3,S4 all the ports are received this broadcast packet, even if the B machine is in the shutdown state will receive the broadcast packet;

The NIC of the B machine detects the Magic Packet with its own MAC address information in the broadcast packet, and it is awakened, and the other machine will only discard the packet when it is received.

4. In practice, the master computer is not recommended to communicate with the router via IP address, because once the router has retrieved the IP address, the remote wake-up will fail. As long as the router supports dynamic Domain name resolution (DDNS) features, you can set the route to IP address changes automatically to the DDNS provider to re-register the IP address, the DDNS provider will be based on your account for the domain name you are applying for domain resolution. After a successful setting, you can communicate with the router through a fixed domain name, and wake up the computer directly attached to the router.


For more information about DDNS (dynamic Domain name resolution Service), see here:
Http://publish.it168.com/2005/0519/20050519002902.shtml?cChanNel=no&cPositi

Chapter4:

Network remote wake-up can also use the modem, as long as the motherboard supports wake-up on Internal Modem (WOM), then the phone can be used anywhere can use WOM to achieve remote wake-up. A normal built-in modem is not able to get +5VSB standby current directly through a PCI slot, and we need a "WOM" connector to plug into the WOM slot of the built-in modem and motherboard. This problem does not exist when using an external modem, because the operating voltage is provided by a separate power transformer for an external modem.

Make sure that the host and modem are powered on and that the phone line is plugged in, and locate the modem ring resume or the power on in by MANAGEMENT Setup to either on or enabled. As long as the modem is in the open state, take another phone call modem connected to the phone number can be realized by WOM remote wake up. Remote wake-up with Wom don't worry about the phone bill, because the modem can start the machine if it detects that the phone ring does not need to answer the phone (so we can call the international long-distance to wake up the computer in another country without spending a penny).

Then Wom has a disadvantage, all the phone calls will immediately wake up, and this phone call is probably not you enter. The computer is on the power of the natural power, of course, you can set up a computer in idle time after the automatic shutdown, so you can save a lot of electricity. But if a phone call is made all day, it is estimated that the computer that is being charged will soon be dead.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.