WO2017076331A1 - 一种开机方法及装置 - Google Patents

一种开机方法及装置 Download PDF

Info

Publication number
WO2017076331A1
WO2017076331A1 PCT/CN2016/104605 CN2016104605W WO2017076331A1 WO 2017076331 A1 WO2017076331 A1 WO 2017076331A1 CN 2016104605 W CN2016104605 W CN 2016104605W WO 2017076331 A1 WO2017076331 A1 WO 2017076331A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
terminal
wake
instruction
broadcast receiving
Prior art date
Application number
PCT/CN2016/104605
Other languages
English (en)
French (fr)
Inventor
于维纳
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017076331A1 publication Critical patent/WO2017076331A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof

Definitions

  • the present invention relates to the field of communications, and in particular, to a booting method and apparatus.
  • the remote boot function of the terminal is controlled by the page or the control unit, which is more and more popular, convenient and fast, but in actual situations, the complexity of the network and the modification of the hardware facilities and the related configuration work are complicated.
  • the invention provides a booting method and device, and realizes a more effective and convenient remote booting method.
  • the present invention provides a booting method, the method comprising:
  • the wake-up command is an instruction to turn on the terminal to be woken up.
  • the server selects a terminal agent
  • the terminal agent generates a wake-up instruction according to the MAC address of the terminal to be woken up.
  • the receiving the sending of the wake-up instruction to the receiving address of the wake-up instruction includes:
  • the terminal agent calculates a broadcast receiving address according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, and sends the to-be-awake instruction to the broadcast receiving address;
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • the broadcast receiving address calculated by the terminal agent is obtained by the following calculation method:
  • the generating the wakeup instruction according to the MAC address of the terminal to be woken up includes:
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the receiving the sending of the wake-up instruction to the receiving address of the wake-up instruction includes:
  • the server sends the wake-up instruction to the unicast receiving address.
  • the generating the wakeup instruction according to the MAC address of the terminal to be woken up includes:
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the receiving the sending of the wake-up instruction to the receiving address of the wake-up instruction includes:
  • the server calculates a broadcast receiving address according to the IP address of the terminal to be woken up and the subnet mask of the network segment where the terminal to be woken up is located;
  • the server calculates, according to the IP address of the to-be-awakened terminal and the subnet mask of the network segment where the terminal to be woken up, the broadcast receiving address includes:
  • the broadcast receiving address calculated by the server is obtained by the following calculation method:
  • the wake-up instruction is a magic packet including a MAC address of the terminal to be woken up.
  • the apparatus also includes a designated module disposed on the server:
  • the designated module is set as a selected terminal agent
  • the first processing module is configured to generate a wake-up instruction according to a MAC address of the terminal to be woken up Specifically refers to:
  • the terminal agent generates a wake-up instruction according to a MAC address of the terminal to be woken up;
  • the first processing module is disposed in the terminal agent.
  • the terminal agent calculates a broadcast receiving address according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, and sends the to-be-awake instruction to the broadcast receiving address;
  • the second processing module is disposed in the terminal agent.
  • the first processing module is configured to generate a wakeup instruction according to the MAC address of the terminal to be woken up, which specifically refers to:
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the sending, by the second processing module, the sending of the wake-up instruction to the receiving address of the wake-up instruction specifically refers to:
  • the unicast receiving address is a static IP address of the to-be-awaken terminal; when the IP address is a dynamic IP address, the unicast receiving address is The IP address used by the terminal to be woken up last time;
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the sending, by the second processing module, the sending of the wake-up instruction to the receiving address of the wake-up instruction specifically refers to:
  • the server calculates, according to the IP address of the to-be-awakened terminal and the subnet mask of the network segment where the terminal to be woken up, the broadcast receiving address includes:
  • the IP address is a static IP address
  • the static IP address is used as the IP address of the to-be-awakened terminal
  • the IP address is a dynamic IP address
  • the terminal to be woken up is last used.
  • the IP address used is used as the IP address of the to-be-awakened terminal calculated this time;
  • the first processing module and the second processing module are disposed at the server.
  • the first processing module is configured as a wake-up instruction generated according to the MAC address of the to-be-awaken terminal; the second processing module is configured to be used according to the to-be-awaken terminal.
  • the IP address and the subnet mask of the network segment where the terminal to be woken up is calculated to obtain a broadcast receiving address; and is further configured to send the wake-up instruction to the broadcast receiving address;
  • the second processing module is configured to calculate, according to the IP address of the to-be-awakened terminal and the subnet mask of the network segment where the terminal to be woken, the broadcast receiving address specifically refers to:
  • the broadcast receiving address calculated by the server is obtained by the following calculation method: obtaining the IP address of the terminal to be woken up; when the IP address is a static IP address, using the static IP address as the current calculation Determining an IP address of the awakening terminal; when the IP address is a dynamic IP address, the IP address used by the terminal to be woken up is used as the IP address of the to-be-awake terminal calculated this time;
  • the first processing module and the second processing module are disposed at the server.
  • the device further includes a designated module disposed on the server; The specified module is set to the selected terminal agent;
  • the first processing module is configured to generate a wakeup instruction according to the MAC address of the terminal to be woken up; the second processing module is configured to calculate according to the IP address of the terminal proxy and the subnet mask of the network segment where the terminal proxy is located. Deriving a broadcast receiving address; further configured to send the to-be-awake instruction to the broadcast receiving address;
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • the broadcast receiving address calculated by the terminal agent is obtained by the following calculation method:
  • the first processing module and the second processing module are disposed at the server.
  • a processing module configured to send the wake-up instruction to the to-be-awaken terminal.
  • the wake-up instruction is a magic packet including a MAC address of the terminal to be woken up.
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • the broadcast receiving address calculated by the terminal agent is obtained by the following calculation method:
  • the sending the wake-up instruction to the receiving address of the wake-up instruction comprises: the terminal agent calculating a broadcast receiving address according to an IP address of the terminal agent and a subnet mask of a network segment where the terminal agent is located, Sending the to-be-awake instruction to the broadcast receiving address;
  • the storage medium is further arranged to store program code for performing the following steps:
  • the broadcast receiving address calculated by the server is obtained by the following calculation method: obtaining the IP address of the terminal to be woken up; when the IP address is a static IP address, using the static IP address as the current calculation Determining an IP address of the awakening terminal; when the IP address is a dynamic IP address, the IP address used by the terminal to be woken up is used as the IP address of the to-be-awake terminal calculated this time;
  • the storage medium is further arranged to store program code for performing the following steps:
  • the generating the wake-up instruction according to the MAC address of the to-be-awaken terminal includes: the server generating a wake-up instruction according to the MAC address of the to-be-awake terminal;
  • the sending the wake-up instruction to the receiving address of the wake-up instruction comprises: calculating, by the server, the broadcast receiving according to the IP address of the terminal to be woken up and the subnet mask of the network segment where the terminal to be woken up is located.
  • the server sends the wake-up instruction to the broadcast receiving address, where the server calculates a broadcast according to the IP address of the terminal to be woken up and the subnet mask of the network segment where the terminal to be woken up is located.
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • the broadcast receiving address calculated by the terminal agent is obtained by the following calculation method:
  • the above solution can effectively realize more effective and convenient remote booting, high success rate, no need to install additional hardware devices, reduce cost, and easy operation, thereby improving the user experience.
  • FIG. 1 is a flow chart of a booting method in the first embodiment
  • FIG. 3 is a schematic structural view of a booting device in the first embodiment
  • FIG. 4 is another schematic structural view of the booting device in the first embodiment.
  • the present invention provides a booting method, the method comprising:
  • Step S11 generating a wake-up instruction according to the MAC address of the terminal to be woken up;
  • the wake-up instruction is a magic packet including the MAC address of the terminal to be woken up.
  • the wake-up command is an instruction to turn on the terminal to be woken up.
  • it may be a magic packet containing FFFFFFFFFF and continuously repeating 16 MAC addresses.
  • Step S12 Send the wake-up instruction to a receiving address of the wake-up instruction
  • this embodiment may adopt one or more of the following ways:
  • the terminal proxy mode can be implemented as follows:
  • the server selects a terminal agent
  • the terminal agent calculates a broadcast receiving address according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, and sends the to-be-awake instruction to the broadcast receiving address;
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • the broadcast receiving address is obtained after a row or operation.
  • the unicast mode can be implemented as follows:
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the unicast receiving address is a static IP address of the to-be-awaken terminal; when the IP address is a dynamic IP address, the unicast receiving address is the to-be-awakened The IP address used by the terminal last time;
  • the server sends the wake-up instruction to the unicast receiving address.
  • the broadcast method can be implemented as follows:
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the server calculates a broadcast receiving address according to the IP address of the terminal to be woken up and the subnet mask of the network segment where the terminal to be woken up is located;
  • the IP address is a static IP address
  • the static IP address is used as the IP address of the to-be-awakened terminal
  • the IP address is a dynamic IP address
  • the terminal to be woken up is last used.
  • the IP address used is used as the IP address of the to-be-awakened terminal calculated this time;
  • the server calculates, according to the IP address of the to-be-awakened terminal and the subnet mask of the network segment where the terminal to be woken up, the broadcast receiving address includes:
  • the broadcast receiving address calculated by the server is obtained by the following calculation method: obtaining the IP address of the terminal to be woken up; when the IP address is a static IP address, using the static IP address as the current calculation Determining an IP address of the awakening terminal; when the IP address is a dynamic IP address, the IP address used by the terminal to be woken up is used as the IP address of the to-be-awake terminal calculated this time;
  • the IP address is ANDed with the subnet mask to obtain the network address; then the subnet mask is "inverted”, and then ORed with the network address to obtain a broadcast receiving address;
  • the IP address is 10.145.129.20
  • the mask is 255.255.248.0
  • the broadcast address is 10.145.135.255.
  • the network address is converted to decimal: 10,145,128,0
  • the mask divides the first 13 bits of the last 24 bits into subnets, and the last 11 is divided into hosts, so:
  • the broadcast address should be replaced by 1 for the host address of the network address, which is: 00001010, 10010001, 10000111, 1111111
  • the embodiment further provides a booting method, where the method includes:
  • Step 21 The terminal agent sends network address information to the server.
  • Step S22 Generate a wake-up instruction for starting the wake-up terminal according to the indication of the server;
  • the wake-up command is a magic packet containing the MAC address of the terminal to be woken up.
  • Step S23 Send the wake-up instruction to the to-be-awaken terminal.
  • the terminal agent calculates a broadcast receiving address according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, and sends the to-be-awake command to the broadcast receiving address;
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • the broadcast receiving address calculated by the terminal agent is obtained by the following calculation method:
  • the embodiment further provides a booting device, where the device includes:
  • the first processing module 11 is configured to generate a wake-up instruction according to the MAC address of the terminal to be woken up;
  • the second processing module 12 is configured to send the wake-up instruction to a receiving address of the wake-up instruction
  • the apparatus further comprises a designation module 12 disposed at the server:
  • the specifying module 12 is configured as a selected terminal agent
  • the first processing module 11 is configured to generate a wakeup instruction according to the MAC address of the terminal to be woken up, which specifically refers to:
  • the terminal agent generates a wake-up instruction according to a MAC address of the terminal to be woken up;
  • the first processing module 11 is disposed in the terminal agent.
  • the terminal agent calculates a broadcast receiving address according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, and sends the to-be-awake instruction to the broadcast receiving address;
  • the first processing module 11 is configured to generate a wakeup instruction according to the MAC address of the terminal to be woken up, which specifically refers to:
  • the server generates a wake-up instruction according to the MAC address of the to-be-awake terminal
  • the server calculates a broadcast receiving address according to the IP address of the terminal to be woken up and the subnet mask of the network segment where the terminal to be woken up is located;
  • the server calculates, according to the IP address of the to-be-awakened terminal and the subnet mask of the network segment where the terminal to be woken up, the broadcast receiving address includes:
  • the IP address is a static IP address
  • the static IP address is used as the IP address of the to-be-awakened terminal
  • the IP address is a dynamic IP address
  • the terminal to be woken up is last used.
  • the IP address used is used as the IP address of the to-be-awakened terminal calculated this time;
  • the first processing module 11 and the second processing module 12 are disposed at the server.
  • the first processing module 11 is configured to generate the MAC address according to the MAC address of the to-be-awaken terminal.
  • a wake-up instruction the second processing module 12 is configured to be based on the IP address of the terminal to be woken up and the subnet of the network segment where the terminal to be woken up is located
  • the netmask calculates a broadcast receiving address; and is further configured to send the wake-up instruction to the broadcast receiving address;
  • the second processing module 12 is configured to calculate, according to the IP address of the to-be-awakened terminal and the subnet mask of the network segment where the terminal to be woken, the broadcast receiving address specifically refers to:
  • the broadcast receiving address calculated by the server is obtained by the following calculation method: obtaining the IP address of the terminal to be woken up; when the IP address is a static IP address, using the static IP address as the current calculation Determining an IP address of the awakening terminal; when the IP address is a dynamic IP address, the IP address used by the terminal to be woken up is used as the IP address of the to-be-awake terminal calculated this time;
  • the first processing module 11 and the second processing module 12 are disposed at the server.
  • the device further includes a specifying module 13 disposed in the server;
  • the specifying module 13 is configured to select a terminal agent;
  • the first processing module 11 is configured to generate a wakeup instruction according to the MAC address of the terminal to be woken up;
  • the second processing module 12 is configured to be based on the IP address of the terminal proxy and the subnet mask of the network segment where the terminal proxy is located. Calculating a broadcast receiving address; further configured to send the to-be-awake instruction to the broadcast receiving address;
  • the broadcast receiving address calculated by the terminal agent is obtained by the following calculation method:
  • the terminal agent calculates, according to the IP address of the terminal agent and the subnet mask of the network segment where the terminal agent is located, that the broadcast receiving address includes:
  • Remote booting also known as remote wake-up technology, referred to as WOL in English, means that remote booting can be achieved through a local area network, the Internet or a communication network, no matter how far away the computer is from the user and at what location, as long as it is through the local area network, the Internet or The communication network can be started at any time.
  • the ARP cache is a buffer for storing IP addresses and MAC addresses. Its essence is an IP address --> MAC address correspondence table. Each entry in the table records the IP address and corresponding MAC address of other hosts on the network. . Each Ethernet or Token Ring network adapter has its own separate table. When the address resolution protocol is queried for the MAC address of a known IP address node, it is first viewed in the ARP cache, and if it exists, it directly returns the MAC address corresponding thereto. The address, if it does not exist, sends an ARP request to the local area network.
  • the present invention relates to a computer terminal only in terms of hardware, and does not require modification of other hardware aspects. Motherboard and network card support is required for remote wakeup. At present, almost all brands of hardware support WOL, the specific operation is as follows, different products, different interfaces.
  • the main principle of the remote wake-up of the present invention is to send a magic packet, and how to ensure that the wake-up instruction is correctly sent to the awakened terminal.
  • the present invention can be implemented in a unicast mode, a broadcast mode, and a terminal proxy mode.
  • the server may select one or more of the above manners to send the wake-up instruction, and the server may also determine according to the actual situation, and select a better manner to send the wake-up instruction.
  • the wake-up instruction may be a magic packet including FFFFFFFFFF and 16 consecutive repetitions of the terminal MAC address to be woken up.
  • the difference between the unicast mode and the broadcast mode is that the receiving address of the wake-up instruction is different. If the broadcast mode is adopted, the wake-up command can be sent to multiple terminal devices.
  • the terminal proxy mode differs from the unicast mode and the broadcast mode in that it generates a wake-up command through the terminal agent and a wake-up command through the terminal agent.
  • the device to be woken up cannot be awake. In this case, the system needs to send the system through broadcast. The broadcast package will wake up this terminal.
  • the The terminal agent sends the broadcast packet in a way.
  • the terminal agent uses the TCP protocol to communicate, and the terminal agent reports its MAC address, IP address, gateway, subnet mask and other information to the server when it is powered on, so that it can be used for query;
  • the terminal agent receives an indication from the server, instructing the terminal agent to wake up the terminal to be woken up. At this time, the terminal agent combines the wake-up instruction, calculates the receiving address, and then sends a wake-up command.
  • the invention has achieved great progress, not only can achieve the effect of remote switching, but also saves redundant hardware installation, and wakes up the remote terminal through three ways, the success rate High, low cost, easy to operate, for users to install and use, do not need to master other related skills, and the user experience improvement effect is significant, can produce beneficial economic and social benefits.
  • a wake-up instruction is generated according to a MAC address of the terminal to be woken up; the wake-up instruction is sent to a receiving address of the wake-up instruction; wherein the wake-up instruction is to enable the terminal to be woken up Instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种开机方法,所述方法包括:根据待唤醒终端的MAC地址生成唤醒指令;将所述唤醒指令发送到所述唤醒指令的接收地址;其中,所述唤醒指令为使所述待唤醒终端开机的指令。上述方案可以有效的实现更加有效便捷的远程开机,成功率高,不需要额外安装硬件设备,降低了成本,并且操作简易,提升了用户体验。

Description

一种开机方法及装置 技术领域
本发明涉及通信领域,具体涉及一种开机方法及装置。
背景技术
随着信息化时代的高速发展,在应用虚拟化中,把分散在各个不同区域位置的服务器通过远程技术进行统一管理,如此可以分散工作,统一管理。这个应用很广泛,无论是在餐饮,医疗,学校,军队,政府机关方面等,当然远程开机也是其中必不可少的一项。
由页面或者控制单元来控制终端的远程开机功能,越来越受到人们的青睐,方便快捷,但是在实际情况中,由于网络的复杂性及对于硬件设施的改造及相关的配置工作比较繁杂。
现阶段的几种远程开机技术,存在以下几个问题:1、需要一定的硬件装置配合,成本高,布置复杂,某些领域不支持如此改造;2、
需要一定的路由器或者交换机的配置,操作繁琐,某些领域不支持如此配置;3、与其它功能共用,引起一些不必要的开机操作,误操作率高;4、需要一定的电话或者手机,且需要话费支持,操作繁琐,不支持批量操作。
发明内容
本发明提供一种开机方法及装置,实现了一种更加有效便捷的远程开机方法。
为解决上述技术问题,本发明提供一种开机方法,所述方法包括:
根据待唤醒终端的MAC地址生成唤醒指令;
将所述唤醒指令发送到所述唤醒指令的接收地址;
其中,所述唤醒指令为使所述待唤醒终端开机的指令。
优选地,
所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
优选地,
所述根据待唤醒终端的MAC地址生成唤醒指令包括:
所述服务器选定终端代理;
所述终端代理根据待唤醒终端的MAC地址生成唤醒指令。
优选地,
所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
优选地,
所述根据待唤醒终端的MAC地址生成唤醒指令包括:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:
所述服务器获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为所述待唤醒终端上一次使用的IP地址;
所述服务器将所述唤醒指令发送到所述单播接收地址。
优选地,
所述根据待唤醒终端的MAC地址生成唤醒指令包括:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:
所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;
所述服务器将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:
获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
优选地,
如果所述待唤醒终端的动态IP地址已过老化时间或者交换机网关侧的地址解析协议ARP信息已过老化时间,则将所述服务器根据所述待唤醒终端的MAC地址生成的唤醒指令,所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;所述服务器将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
优选地,
如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则所述服务器选定终端代理;所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,所述终端代理将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
本发明还提供一种开机方法,所述方法包括:
终端代理向服务器发送网络地址信息;
根据所述服务器的指示生成用于对待唤醒终端开机的唤醒指令;
将所述唤醒指令发送至所述待唤醒终端。
优选地,
所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
优选地,
所述将所述唤醒指令发送至所述待唤醒终端包括:
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
本发明还提供一种开机装置,所述装置包括:
第一处理模块,设置为根据待唤醒终端的MAC地址生成唤醒指令;
第二处理模块,设置为将所述唤醒指令发送到所述唤醒指令的接收地址;
其中,所述唤醒指令为使所述待唤醒终端开机的指令。
优选地,
所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
优选地,
所述装置还包括设置于服务器的指定模块:
所述指定模块设置为选定终端代理;
所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令 具体是指:
所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;
其中,所述第一处理模块设置于所述终端代理。
优选地,
所述第二处理模块设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第二处理模块设置于所述终端代理。
优选地,
所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述第二处理模块设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为 所述待唤醒终端上一次使用的IP地址;
将所述唤醒指令发送到所述单播接收地址;
所述第一处理模块和所述第二处理模块设置于所述服务器。
优选地,
所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述第二处理模块设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;
将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:
获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第一处理模块和所述第二处理模块设置于所述服务器。
优选地,
如果所述待唤醒终端的动态IP地址已过老化时间或者交换机网关侧 的地址解析协议ARP信息已过老化时间,则所述第一处理模块设置为根据所述待唤醒终端的MAC地址生成的唤醒指令;所述第二处理模块设置为根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;还设置为将所述唤醒指令发送到所述广播接收地址;
其中,所述第二处理模块设置为根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址具体是指:
所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第一处理模块和所述第二处理模块设置于所述服务器。
优选地,
如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则所述装置还包括设置于服务器的指定模块;所述指定模块设置为选定终端代理;
所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令;所述第二处理模块设置为根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址;还设置为将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第一处理模块和所述第二处理模块设置于所述服务器。
本发明还提供一种开机装置,设置于终端代理,所述装置包括:
连接模块,设置为向服务器发送网络地址信息;
生成模块,设置为根据所述服务器的指示生成用于对待唤醒终端开机的唤醒指令;
处理模块,设置为将所述唤醒指令发送至所述待唤醒终端。
优选地,
所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
优选地,
所述处理模块设置为将所述唤醒指令发送至所述待唤醒终端具体是指:
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:
根据待唤醒终端的MAC地址生成唤醒指令;将所述唤醒指令发送到所述唤醒指令的接收地址;其中,所述唤醒指令为使所述待唤醒终端开机的指令。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
所述服务器选定终端代理;所述终端代理根据待唤醒终端的MAC地址生成唤醒指令。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:所述终端代理计算得出的广播接收地址按照以下计算方法得出:将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
所述根据待唤醒终端的MAC地址生成唤醒指令包括:所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:所述服务器获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为所述待唤醒终端上一次使用的IP地址;所述服务器将所述唤醒指令发送到所述单播接收地址。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
如果所述待唤醒终端的动态IP地址已过老化时间或者交换机网关侧的地址解析协议ARP信息已过老化时间,则将所述服务器根据所述待唤醒终端的MAC地址生成的唤醒指令,所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;所述服务器将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
所述根据待唤醒终端的MAC地址生成唤醒指令包括:所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;所述服务器将所述唤醒指令发送到所述广播接收地址;其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址; 将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则所述服务器选定终端代理;所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,所述终端代理将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
上述方案可以有效的实现更加有效便捷的远程开机,成功率高,不需要额外安装硬件设备,降低了成本,并且操作简易,提升了用户体验。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为实施例一中的开机方法的流程图;
图2为实施例一中的开机方法的另一流程图;
图3为实施例一中的开机装置的结构示意图;
图4为实施例一中的开机装置的另一结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一
如图1所示,本发明提供一种开机方法,所述方法包括:
步骤S11:根据待唤醒终端的MAC地址生成唤醒指令;
在本实施例中,唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。唤醒指令为使所述待唤醒终端开机的指令。
例如,可以是包含FFFFFFFFFFFF和连续重复16次MAC地址的魔术包。
步骤S12:将所述唤醒指令发送到所述唤醒指令的接收地址;
具体的,本实施例可以采用以下方式中的一种或多种:
终端代理方式、单播方式、广播方式。
1)终端代理方式可以按照如下方式实现:
所述服务器选定终端代理;
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进 行或运算后得出所述广播接收地址。
2)单播方式可以按照如下方式实现:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述服务器获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为所述待唤醒终端上一次使用的IP地址;
所述服务器将所述唤醒指令发送到所述单播接收地址。
3)广播方式可以按照如下方式实现:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;
所述服务器将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:
获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
优选地,如果所述待唤醒终端的动态IP地址已过老化时间或者交换 机网关侧的地址解析协议ARP信息已过老化时间,则按照广播方式发送唤醒指令,具体如下:将所述服务器根据所述待唤醒终端的MAC地址生成的唤醒指令,所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;所述服务器将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
优选地,如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则按照终端代理方式发送唤醒指令,具体如下:所述服务器选定终端代理;所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,所述终端代理将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进 行或运算后得出所述广播接收地址。
下面以广播接收地址为例说明接收地址的计算方法:
首先IP地址与子网掩码进行“与”运算,得到网络地址;然后子网掩码“取反”运算,然后与网络地址进行“或”运算,得到广播接收地址;
例如,IP地址10.145.129.20,掩码255.255.248.0,则广播地址10.145.135.255,过程如下:
IP转换成二进制:00001010 10010001 10000001 00010010
掩码转换成二进制:11111111 11111111 11111000 00000000
IP与掩码相与得网络地址(全1为1,见0为0):00001010 10010001 10000000 00000000
子网掩码取反运算:00000000 00000000 00000111 11111111
子网掩码取反与网络地址进行“或运算”得广播地址(全0为0,见1为1):
00001010 10010001 10000111 11111111
广播地址转换成十进制为:10,145,135,255
通俗来讲:
网络地址转换成十进制为:10,145,128,0
掩码把后24位的前13为划成了子网,后11为划成了主机,故:
广播地址则要把网络地址的主机位全换成1,得:00001010,10010001,10000111,1111111
广播地址转换成十进制为:10,145,135,255
如图2所示,本实施例还提供一种开机方法,所述方法包括:
步骤21:终端代理向服务器发送网络地址信息;
步骤S22:根据所述服务器的指示生成用于对待唤醒终端开机的唤醒指令;
唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
步骤S23:将所述唤醒指令发送至所述待唤醒终端。
具体的,终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
如图3所示,本实施例还提供一种开机装置,所述装置包括:
第一处理模块11,设置为根据待唤醒终端的MAC地址生成唤醒指令;
第二处理模块12,设置为将所述唤醒指令发送到所述唤醒指令的接收地址;
其中,所述唤醒指令为使所述待唤醒终端开机的指令。
优选地,所述装置还包括设置于服务器的指定模块12:
所述指定模块12设置为选定终端代理;
所述第一处理模块11设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;
其中,所述第一处理模块11设置于所述终端代理。
优选地,
所述第二处理模块12设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第二处理模块12设置于所述终端代理。
优选地,
所述第一处理模块11设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述第二处理模块12设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为所述待唤醒终端上一次使用的IP地址;
将所述唤醒指令发送到所述单播接收地址;
所述第一处理模块11和所述第二处理模块12设置于所述服务器。
优选地,
所述第一处理模块11设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
所述第二处理模块12设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;
将所述唤醒指令发送到所述广播接收地址;
其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
所述服务器计算得出的广播接收地址按照以下计算方法得出:
获取所述待唤醒终端的IP地址;
当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第一处理模块11和所述第二处理模块12设置于所述服务器。
优选地,
如果所述待唤醒终端的动态IP地址已过老化时间或者交换机网关侧的地址解析协议ARP信息已过老化时间,则所述第一处理模块11设置为根据所述待唤醒终端的MAC地址生成的唤醒指令;所述第二处理模块12设置为根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子 网掩码计算得出广播接收地址;还设置为将所述唤醒指令发送到所述广播接收地址;
其中,所述第二处理模块12设置为根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址具体是指:
所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第一处理模块11和所述第二处理模块12设置于所述服务器。
优选地,
如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则所述装置还包括设置于服务器的指定模块13;所述指定模块13设置为选定终端代理;
所述第一处理模块11设置为根据待唤醒终端的MAC地址生成唤醒指令;所述第二处理模块12设置为根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址;还设置为将所述待唤醒指令发送到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行 与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
所述第一处理模块11和所述第二处理模块12设置于所述服务器。
如图4所示,本实施例还提供一种开机装置,设置于终端代理,所述装置包括:
连接模块21,设置为向服务器发送网络地址信息;
生成模块22,设置为根据所述服务器的指示生成用于对待唤醒终端开机的唤醒指令;所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
处理模块23,设置为将所述唤醒指令发送至所述待唤醒终端。
优选地,
所述处理模块23设置为将所述唤醒指令发送至所述待唤醒终端具体是指:
所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发到所述广播接收地址;
其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
所述终端代理计算得出的广播接收地址按照以下计算方法得出:
将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
实施例二
在说明那个书本发明技术方案之前,先对本发明涉及的相关技术术语进行简要的介绍。
1、远程开机
远程开机,又可以被称为远程唤醒技术,英文简称WOL,是指可以通过局域网、互联网或者通讯网实现远程开机,无论被访问的计算机离用户有多远、处于什么位置,只要通过局域网、互联网或者通讯网,就都能够被随时启动。
原理:局域网中的计算机处于关机状态,但它的网卡处于监控状态,等待网络开机的数据包。一旦收到该数据包,网卡就能打开主机电源实现开机。要唤醒某一台电脑必须知道该电脑的编号,在没有开机的状态下我们不可能通过IP或主机名来区分计算机,但每一块网卡都有惟一的MAC地址,通过管理系统向该网卡发出“Wake up”的数据包(一个包含FFFFFFFFFFFF和连续重复16次MAC地址如AAAAAAAAAAAA的Magic Packet),该机虽然处于关机状态,但网卡上的芯片可以通过三芯连接线获得电源,从而处理数据包中的地址信息确定是否开机,如果确认就通过三芯连接线向计算机发出开机信号。
2、ARP:
地址解析协议,即ARP(Address Resolution Protocol),是根据IP地址获取物理地址的一个TCP/IP协议。主机发送信息时将包含目标IP地址的ARP请求广播到网络上的所有主机,并接收返回消息,以此确定目标的物理地址;收到返回消息后将该IP地址和物理地址存入本机ARP缓存中并保留一定时间,下次请求时直接查询ARP缓存以节约资源。
ARP缓存是个用来储存IP地址和MAC地址的缓冲区,其本质就是一个IP地址-->MAC地址的对应表,表中每一个条目分别记录了网络上其他主机的IP地址和对应的MAC地址。每一个以太网或令牌环网络适配器都有自己单独的表。当地址解析协议被询问一个已知IP地址节点的MAC地址时,先在ARP缓存中查看,若存在,就直接返回与之对应的MAC地 址,若不存在,才发送ARP请求向局域网查询。
为使广播量最小,ARP维护IP地址到MAC地址映射的缓存以便将来使用。ARP缓存可以包含动态和静态项目。动态项目随时间推移自动添加和删除。每个动态ARP缓存项的潜在生命周期是10分钟。新加到缓存中的项目带有时间戳,如果某个项目添加后2分钟内没有再使用,则此项目过期并从ARP缓存中删除;如果某个项目已在使用,则又收到2分钟的生命周期;如果某个项目始终在使用,则会另外收到2分钟的生命周期,一直到10分钟的最长生命周期。静态项目一直保留在缓存中,直到重新启动计算机为止。
3、子网掩码NETMASK:
子网掩码(subnet mask)又叫网络掩码、地址掩码、子网络遮罩,它是一种用来指明一个IP地址的哪些位标识的是主机所在的子网,以及哪些位标识的是主机的位掩码。子网掩码不能单独存在,它必须结合IP地址一起使用。子网掩码只有一个作用,就是将某个IP地址划分成网络地址和主机地址两部分。子网掩码是一个32位地址,用于屏蔽IP地址的一部分以区别网络标识和主机标识,并说明该IP地址是在局域网上,还是在远程网上。
4、本发明在硬件方面唯一涉及计算机终端,无需其他硬件方面的改造。在进行远程唤醒时需要主板和网卡的支持。目前几乎所有品牌的硬件都支持WOL,具体操作如下,不同的产品,界面不同。
1)网卡
网卡是实现远程开机的一个最重要的元素,不是所有网卡都支持远程开机。几乎所有品牌都支持远程开机。购买网卡时我们可以向经销商咨询。一般来说,支持远程开机的网卡都有三针的WOL接口,并赠送一根三芯连接线,以便和主板相连接,同时也要注意一下产品说明书。
网卡WOL启动:进入windows后,进入设备管理器,选择要用于WOL的网卡,进入属性窗口选择“高级”标签,在列表里能找到“Wake  up Capabilities(唤醒功能)”设置值为“Magic Packet”或”Both”
2)主板
主板不支持远程开机也是不行的。支持该功能的主板上一般都在PCI插槽附近有一个三芯插座用三芯连接线把网卡和主板连接起来。
要实现远程开机必须给网卡电源,由于计算机处于关机状态,一般不能通过PCI插槽给网卡供电,所以必须通过三芯连接线给网卡电流。而有些最新的主板(PCI2.2标准)在关机状态下能够给PCI电源,所以这种主板就没有必要设三芯插座了。
主板WOL启动:开机按下Delete键进入CMOS设置界面,找到“Power Management Setup”电源管理菜单,回车进入子菜单,找到“Wake up Events”,回车后找到“Wake up on LAN/Ring”选项或“Resume by LAN”,将“Disabled”改为“Enabled”或“On”。保存退出CMOS设置。说明:不同产品操作不同,字段值不同。
能进行如上的操作,就说明硬件是支持WOL的,启用这些功能后就可以通过局域网来唤醒了。这是网络唤醒功能实现的前提,也是目前市面上所有软件或者硬件支持唤醒功能的必要条件。
要注意,如果电脑非正常关机(比如按Power键来强制关机)还是无法WOL的,只有正常关机后,网卡仍会处于活动状态可以接收网络数据。
下面对本发明的技术方案做进一步的说明。
本发明在进行远程唤醒的主要的原理是发送魔术包,如何确保将唤醒指令正确发送到被唤醒的终端上,本发明可以通过单播方式,广播方式以及终端代理方式。服务器其可以选择上述方式中的一种或多种来发送唤醒指令,服务器也可以根据实际的情况进行判断,选择较优的方式发送唤醒指令。
可以由服务器生成唤醒指令并将该指令发送至待唤醒终端,也可以是服务器指定终端代理,由终端代理生成唤醒指令和该指令的接收地址,然后终端代理将唤醒指令发送至接收地址,从而控制待唤醒终端开机。在本发明中,可以被指定为终端代理的设备可以是计算机设备。
在本发明中,唤醒指令可以是包含FFFFFFFFFFFF和连续重复16次待唤醒终端MAC地址的魔术包。单播方式和广播方式的区别在于唤醒指令的接收地址不同,如果采用广播方式时,唤醒指令可以发送至多个终端设备。终端代理方式与单播方式及广播方式的区别在于其是通过终端代理生成唤醒指令以及通过终端代理发送唤醒指令。
如果待唤醒终端的地址非静态地址或者交换机网关侧的ARP(Address Resolution Protocol,地址解析协议)信息已过老化时间,则不能通过单播方式唤醒待唤醒终端,此时需要通过广播方式本系统发送的广播包会将此终端唤醒。
如果待唤醒终端的地址与控制系统不在同一个局域网内,且路由器也不允许转发广播包,或者现实场景中不允许修改路由器或者交换机的相关配置,或者修改相关配置较为复杂,此时,可通过终端代理的方式来发送广播包。
在本发明中,终端代理使用TCP协议进行通信,终端代理在开机时会将自身的MAC地址、IP地址,网关,子网掩码等信息上报给服务器,以便查询时使用;
终端代理接收到服务器的指示,指示终端代理唤醒待唤醒终端,此时终端代理组合唤醒指令,计算接收地址,然后发送唤醒指令。
需要说明的是,成为终端代理的前提是此终端在此局域网中是开机状态,否则此终端并不会收到管理系统所发送的开机指令,并且终端代理,已安装本方案所提出的相应软件服务,可以实现,当收到服务器发送的指示后,能够生成唤醒指令发给相应终端,当开机后,其MAC地址、IP地址,网关,子网掩码等信息上报服务器。在本发明中,终端代 理不唯一,任意一台开机终端如果满足条件都可成为终端代理。
此外,在本发明中,待唤醒终端在关机状态也会收到唤醒指令,其网卡检测到广播包中包含自己MAC地址,就会被唤醒。如果采用广播方式时,其它终端也会收到此唤醒指令,而收到后只会将此唤醒指令丢弃。如果采用单播方式,则其它终端不会收到唤醒指令。
采用本发明所述的方案,与现有技术相比,取得了很大的进步,不仅能够达到远程开关机的效果,而且节省了多余的硬件安装,通过三种方式来唤醒远程终端,成功率高,降低了成本,操作简易,对于用户安装使用来说,无须掌握其它相关的技能,且对用户体验提升效果显著,可产生有益的经济效益和社会效益。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/模块可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。
工业实用性
在本发明实施例的开机过程中,根据待唤醒终端的MAC地址生成唤醒指令;将所述唤醒指令发送到所述唤醒指令的接收地址;其中,所述唤醒指令为使所述待唤醒终端开机的指令。上述方案可以有效的实现更加有效便捷的远程开机,成功率高,不需要额外安装硬件设备,降低了成本,并且操作简易,提升了用户体验。

Claims (22)

  1. 一种开机方法,所述方法包括:
    根据待唤醒终端的MAC地址生成唤醒指令;
    将所述唤醒指令发送到所述唤醒指令的接收地址;
    其中,所述唤醒指令为使所述待唤醒终端开机的指令。
  2. 如权利要求1所述的方法,其中:
    所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
  3. 如权利要求1所述的方法,其中:
    所述根据待唤醒终端的MAC地址生成唤醒指令包括:
    所述服务器选定终端代理;
    所述终端代理根据待唤醒终端的MAC地址生成唤醒指令。
  4. 如权利要求3所述的方法,其中:
    所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:
    所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
    其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
    所述终端代理计算得出的广播接收地址按照以下计算方法得出:
    将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络 地址进行或运算后得出所述广播接收地址。
  5. 如权利要求1所述的方法,其中:
    所述根据待唤醒终端的MAC地址生成唤醒指令包括:
    所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
    所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:
    所述服务器获取所述待唤醒终端的IP地址;
    当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为所述待唤醒终端上一次使用的IP地址;
    所述服务器将所述唤醒指令发送到所述单播接收地址。
  6. 如权利要求1所述的方法,其中:
    所述根据待唤醒终端的MAC地址生成唤醒指令包括:
    所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
    所述将所述唤醒指令发送到所述唤醒指令的接收地址包括:
    所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;
    所述服务器将所述唤醒指令发送到所述广播接收地址;
    其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
    所述服务器计算得出的广播接收地址按照以下计算方法得出:
    获取所述待唤醒终端的IP地址;
    当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
    将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
  7. 如权利要求1至7任一所述的方法,其中:
    如果所述待唤醒终端的动态IP地址已过老化时间或者交换机网关侧的地址解析协议ARP信息已过老化时间,则将所述服务器根据所述待唤醒终端的MAC地址生成的唤醒指令,所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;所述服务器将所述唤醒指令发送到所述广播接收地址;
    其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
    所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
    将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运 算后与所述网络地址进行或运算后得出所述广播接收地址。
  8. 如权利要求1至7任一所述的方法,其中:
    如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则所述服务器选定终端代理;所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,所述终端代理将所述待唤醒指令发送到所述广播接收地址;
    其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
    所述终端代理计算得出的广播接收地址按照以下计算方法得出:
    将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
  9. 一种开机方法,所述方法包括:
    终端代理向服务器发送网络地址信息;
    根据所述服务器的指示生成用于对待唤醒终端开机的唤醒指令;
    将所述唤醒指令发送至所述待唤醒终端。
  10. 如权利要求9所述的方法,其中:
    所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
  11. 如权利要求10所述的方法,其中:
    所述将所述唤醒指令发送至所述待唤醒终端包括:
    所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发到所述广播接收地址;
    其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
    所述终端代理计算得出的广播接收地址按照以下计算方法得出:
    将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
  12. 一种开机装置,所述装置包括:
    第一处理模块,设置为根据待唤醒终端的MAC地址生成唤醒指令;
    第二处理模块,设置为将所述唤醒指令发送到所述唤醒指令的接收地址;
    其中,所述唤醒指令为使所述待唤醒终端开机的指令。
  13. 如权利要求12所述的装置,其中:
    所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
  14. 如权利要求12所述的装置,其中,所述装置还包括设置于服务器的指定模块:
    所述指定模块设置为选定终端代理;
    所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
    所述终端代理根据待唤醒终端的MAC地址生成唤醒指令;
    其中,所述第一处理模块设置于所述终端代理。
  15. 如权利要求14所述的装置,其中:
    所述第二处理模块设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
    所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发送到所述广播接收地址;
    其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
    所述终端代理计算得出的广播接收地址按照以下计算方法得出:
    将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
    所述第二处理模块设置于所述终端代理。
  16. 如权利要求12所述的装置,其中:
    所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
    所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
    所述第二处理模块设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
    获取所述待唤醒终端的IP地址;
    当所述IP地址为静态IP地址时,所述单播接收地址为所述待唤醒终端的静态IP地址;当所述IP地址为动态IP地址时,所述单播接收地址为所述待唤醒终端上一次使用的IP地址;
    将所述唤醒指令发送到所述单播接收地址;
    所述第一处理模块和所述第二处理模块设置于所述服务器。
  17. 如权利要求12所述的装置,其中:
    所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令具体是指:
    所述服务器根据所述待唤醒终端的MAC地址生成唤醒指令;
    所述第二处理模块设置为将所述唤醒指令发送到所述唤醒指令的接收地址具体是指:
    所述服务器根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;
    将所述唤醒指令发送到所述广播接收地址;
    其中,所述服务器根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址包括:
    所述服务器计算得出的广播接收地址按照以下计算方法得出:
    获取所述待唤醒终端的IP地址;
    当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
    将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
    所述第一处理模块和所述第二处理模块设置于所述服务器。
  18. 如权利要求12至17任一所述的装置,其中:
    如果所述待唤醒终端的动态IP地址已过老化时间或者交换机网关侧的地址解析协议ARP信息已过老化时间,则所述第一处理模块设置为根据所述待唤醒终端的MAC地址生成的唤醒指令;所述第二处理模块设置为根据所述待唤醒作终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址;还设置为将所述唤醒指令发送到所述广播接收地址;
    其中,所述第二处理模块设置为根据所述待唤醒终端的IP地址和所述待唤醒终端所在网段的子网掩码计算得出广播接收地址具体是指:
    所述服务器计算得出的广播接收地址按照以下计算方法得出:获取所述待唤醒终端的IP地址;当所述IP地址为静态IP地址时,将所述静态IP地址作为本次计算的所述待唤醒终端的IP地址;当所述IP地址为动态IP地址时,将所述待唤醒终端上一次使用的IP地址作为本次计算的所述待唤醒终端的IP地址;
    将所述本次计算的待唤醒终端的IP地址与所述待唤醒终端所在 网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
    所述第一处理模块和所述第二处理模块设置于所述服务器。
  19. 如权利要求12至17任一所述的装置,其中:
    如果所述待唤醒终端与所述服务器不在同一局域网并且路由器不允许向广播接收地址发送数据包,或者不允许修改路由器/交换机的配置信息,则所述装置还包括设置于服务器的指定模块;所述指定模块设置为选定终端代理;
    所述第一处理模块设置为根据待唤醒终端的MAC地址生成唤醒指令;所述第二处理模块设置为根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址;还设置为将所述待唤醒指令发送到所述广播接收地址;
    其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
    所述终端代理计算得出的广播接收地址按照以下计算方法得出:
    将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址;
    所述第一处理模块和所述第二处理模块设置于所述服务器。
  20. 一种开机装置,设置于终端代理,所述装置包括:
    连接模块,设置为向服务器发送网络地址信息;
    生成模块,设置为根据所述服务器的指示生成用于对待唤醒终端 开机的唤醒指令;
    处理模块,设置为将所述唤醒指令发送至所述待唤醒终端。
  21. 如权利要求20所述的装置,其中:
    所述唤醒指令为包含所述待唤醒终端的MAC地址的魔术包。
  22. 如权利要求21所述的装置,其中:
    所述处理模块设置为将所述唤醒指令发送至所述待唤醒终端具体是指:
    所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址,将所述待唤醒指令发到所述广播接收地址;
    其中,所述终端代理根据所述终端代理的IP地址和所述终端代理所在网段的子网掩码计算得出广播接收地址包括:
    所述终端代理计算得出的广播接收地址按照以下计算方法得出:
    将所述终端代理的IP地址与所述终端代理所在网段的子网掩码进行与运算后得出网络地址;将所述子网掩码取反运算后与所述网络地址进行或运算后得出所述广播接收地址。
PCT/CN2016/104605 2015-11-04 2016-11-04 一种开机方法及装置 WO2017076331A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510740999.8 2015-11-04
CN201510740999.8A CN106656521A (zh) 2015-11-04 2015-11-04 一种开机方法及装置

Publications (1)

Publication Number Publication Date
WO2017076331A1 true WO2017076331A1 (zh) 2017-05-11

Family

ID=58662404

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104605 WO2017076331A1 (zh) 2015-11-04 2016-11-04 一种开机方法及装置

Country Status (2)

Country Link
CN (1) CN106656521A (zh)
WO (1) WO2017076331A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049651A (zh) * 2019-12-30 2020-04-21 上海博泰悦臻网络技术服务有限公司 一种车载智能计算装置、云端服务器以及唤醒方法
CN111880454A (zh) * 2020-08-03 2020-11-03 深圳市杰和科技发展有限公司 集群管理设备远程开关机的控制方法及装置
CN112839101A (zh) * 2021-02-02 2021-05-25 西藏宁算科技集团有限公司 一种设备远程开关机控制系统及控制方法
CN113542882B (zh) * 2021-07-14 2023-08-08 海信视像科技股份有限公司 一种唤醒待机显示设备的方法、显示设备及终端
CN113923191B (zh) * 2021-10-09 2024-01-12 天翼物联科技有限公司 Ip地址的存储方法、装置、nb终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506868A (zh) * 2002-12-10 2004-06-23 联想(北京)有限公司 利用计算机网络远程控制异地计算机的方法
CN103686364A (zh) * 2013-12-06 2014-03-26 乐视致新电子科技(天津)有限公司 智能电视及其远程唤醒方法
US20150095680A1 (en) * 2013-09-30 2015-04-02 Sonos, Inc. Media Playback System Using Standby Mode in a Mesh Network
CN104618452A (zh) * 2015-01-06 2015-05-13 北京卓越信通电子股份有限公司 一种基于pis系统的远程唤醒方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506868A (zh) * 2002-12-10 2004-06-23 联想(北京)有限公司 利用计算机网络远程控制异地计算机的方法
US20150095680A1 (en) * 2013-09-30 2015-04-02 Sonos, Inc. Media Playback System Using Standby Mode in a Mesh Network
CN103686364A (zh) * 2013-12-06 2014-03-26 乐视致新电子科技(天津)有限公司 智能电视及其远程唤醒方法
CN104618452A (zh) * 2015-01-06 2015-05-13 北京卓越信通电子股份有限公司 一种基于pis系统的远程唤醒方法

Also Published As

Publication number Publication date
CN106656521A (zh) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2017076331A1 (zh) 一种开机方法及装置
US9152195B2 (en) Wake on cloud
US20090133040A1 (en) Systems and Methods for Providing Wake On LAN (WoL) Support
US10602448B2 (en) Remote wakeup method, connection server, and networking apparatus having sleep mode
TWI382712B (zh) 用以提供網路裝置的群組電力管理的裝置、方法、系統和電腦可讀媒體
WO2016197866A1 (zh) 网络唤醒方法、远程服务器和网络交换设备
CN107968713B (zh) 远程唤醒方法、装置及系统
WO2015143871A1 (zh) 一种待机方法、家庭智能设备及待机系统
US11895364B2 (en) Bluetooth connection method and television
TWI577154B (zh) 保持遠端連線方法、電子裝置與伺服器
EP4033332A1 (en) Power management method and device
WO2015078217A1 (zh) Ras配置的设置方法及装置
US20140115313A1 (en) Electronic device and start-up method thereof
CN110012527B (zh) 唤醒方法及电子设备
CN109451354B (zh) 一种唤醒终端的方法及终端
CN113726581B (zh) 一种恢复网络设备的出厂配置的方法、装置及网络设备
CN100508468C (zh) 分布式节点动态管理数据自适应交换方法
JP2012073894A (ja) 通信機器管理装置、ユーザ機器及びサービス機器
CN113840358A (zh) 报文过滤方法、移动终端及计算机可读存储介质
CN105915637A (zh) 一种基于存储系统服务器的远程自动待机及唤醒方法
TWI469053B (zh) 電子裝置及其啟動方法
CN103986588A (zh) 电脑系统及电脑装置的远端遥控方法
KR20090078545A (ko) 무선 광역 통신 네트워크와 통신하기 위한 통신 장치의전원 제어 방법 및 그 장치
US20180219692A1 (en) Communication apparatus, method for controlling communication apparatus, and storage medium
JP6044225B2 (ja) ブレードサーバおよびブレードサーバの制御方式

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16861599

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16861599

Country of ref document: EP

Kind code of ref document: A1