CN101562545B - WOL test method - Google Patents
WOL test method Download PDFInfo
- Publication number
- CN101562545B CN101562545B CN2008100915109A CN200810091510A CN101562545B CN 101562545 B CN101562545 B CN 101562545B CN 2008100915109 A CN2008100915109 A CN 2008100915109A CN 200810091510 A CN200810091510 A CN 200810091510A CN 101562545 B CN101562545 B CN 101562545B
- Authority
- CN
- China
- Prior art keywords
- address
- machine
- measured
- protocol
- hardware address
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a WOL test method applied in a test machine, testing machines which are connected with each other in the same network and at least one machine to be tested, wherein the machine to be tested at least has the WOL function and is at least provided with an unique hardware address and a protocol address in the network, and the communication transmission protocol between the machine to be tested and the testing machines at least includes an address resolution protocol (ARP protocol); when the communication request information is transmitted between the testing machines and the machine to be tested, the protocol address and the hardware address of the testing machines is extracted from the communication request information by the testing machines, and the extracted protocol address and the hardware address are stored in an address database by the address resolution protocol (ARP protocol) according to corresponding mode; and after the machine to be tested is switched off, the hardware address of the machine to be tested is correspondingly taken out from the address database by the testing machines according to the protocol address of the machine to be tested and is processed into a valid hardware address, therefore, the corresponding machine to be tested can be processed by the operation of WOL test according to the valid hardware address.
Description
Technical field
The present invention relates to a kind of method of testing, more detailed it, be method in order to calling function of network is tested.
Background technology
Now, along with the continuous development of network technology, WOL (Wake On Lan) technology is generally used in for example enterprise, Internet bar and some non-disk workstations etc., helps many computers and obtain unitized control and management on a main frame.By this technology, make the manager can start arbitrary computer in the LAN at any time, for example cooperate function such as windows remote desktop to be controlled again, very convenient.
At present, the basic input output system of the mainboard of every computer (BIOS) all has WOL (WOL) function, but realize calling function of network, to the just requirement to some extent of hardware such as network interface card, power supply, for example need use the integrated network card that arousal function is provided, and the following electric current of holding state (standby) is higher than 600 milliamperes ATX power supply etc.
As everyone knows, the computer network interface card generally is assigned the network address (IP) and media interviews control (MAC) address, and when computer shutdown the unallocated network address (IP), so must locate the step that this computer can further be realized the WOL computer by media interviews control (MAC) address of computer network interface card to be tested.The test that existing network wakes up has still followed the most traditional mode, its operating procedure is as follows: elder generation is in media interviews control (MAC) address (for example import the ipconfig instruction or import eth0 etc. in windows operating system under the linux system) to obtain this computer network interface card to be measured of input dependent instruction on the computer to be measured, and computer to be measured can show on screen as the network address (IP), media interviews control (MAC) address and other network information etc.; By modes such as for example hand-written records this media interviews control (MAC) address is noted then, should be closed by computer to be measured again; Subsequently, be in the corresponding WOL software of operation on the test machine in the same LAN with this computer to be measured, again this software is imported in media interviews control (MAC) address of the aforementioned machine of noting to be measured, just can carry out the test operation of WOL this machine to be measured.
Yet, by above testing process as seen, wherein have many weak points.At first, carry out this class testing and need external for example control switch or other test computer etc., the waste resource, secondly, the operation of whole test process is substantially by manually finishing, promptly need manually the calling function of network of BIOS etc. is for example opened in the setting of being correlated with of described machine to be measured, need the more time of cost; The loaded down with trivial details backwardness of the mode of this manual record MAC Address and be easy to make mistakes reduces testing efficiency simultaneously.
In sum, how to find a kind of WOL method of testing of convenient easy row, thereby promote operating efficiency and avoid above-mentioned various shortcoming, become present problem demanding prompt solution then.
Summary of the invention
In view of the shortcoming of above-mentioned prior art, the invention provides the method for testing that a kind of automated network wakes up, carry out the WOL test automatically by computer, need not the operations such as manual record of prior art, accelerate test speed, and promoted testing efficiency.
Another object of the present invention is the method for testing that provides a kind of automated network to wake up to need not to set up the mentioned control switch of prior art, other test computer etc., saves testing cost.
For reaching above-mentioned and other purpose, the invention provides a kind of method of testing of WOL, test machine that is applied to be connected in the consolidated network and machine to be measured, wherein, these facility to be measured have the network enabled arousal function and are assigned hardware address unique in this network and protocol address, and the communication transport protocols between this machine to be measured and this test machine comprises address resolution protocol, this method of testing may further comprise the steps: (1) is under the starting state at machine to be measured, sends to comprise the communication request information of this machine protocol address to be measured and hardware address to this test machine; (2) this test machine extracts the protocol address and the hardware address of this machine to be measured in this communication request information by this address resolution protocol; (3) this test machine is stored in the address database by corresponded manner by the protocol address and the hardware address of this address resolution protocol with the machine to be measured that this extracted; (4) close this machine to be measured; (5) protocol address of this machine to be measured of foundation correspondence in this address database captures the hardware address of machine to be measured, and this hardware address is processed into effective hardware address; And (6) send one wake up instruction to the pairing machine to be measured of this effective hardware address with this machine to be measured of startup.
In one embodiment, this step (5) be treated to word processing operation by regular expression, for example hardware address is handled and is deleted the symbol in the hardware address and keep continuous numeral and alphabetical in the mode of regular expression; This communication request information is data packet; This wakes instruction up and has the multiple instruction parameter; This hardware address is media interviews control (MAC) address, and this protocol address is the network address (IP).
With respect to prior art, the method of testing of WOL of the present invention is mainly passed through at this test machine when this machine to be measured sends communication request information, this test machine extracts the protocol address and the hardware address of this test machine in this communication request information, and both correspondences are stored in the address database, and then can in this database, extract the corresponding hardware address by the protocol address of this address resolution protocol foundation machine to be measured, and after this hardware address is treated to effective hardware address, according to this effective hardware address corresponding machine to be measured is waken up test operation, thereby needing in the prior art to avoid the drawback of Artificial Control and manual record media interviews control (MAC) address etc., promote testing efficiency.
In addition, the method for testing of WOL of the present invention need not to set up the mentioned control switch of prior art, test computer etc., so save testing cost.
Description of drawings
Fig. 1 is the applied environment schematic diagram of the method for testing of WOL of the present invention; And
Fig. 2 is the schematic flow sheet of the method for testing of WOL of the present invention.
The simple declaration of assembly label
1 machine to be measured
2 test machines
The S1-S6 steps flow chart
Embodiment
Below by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantage of the present invention and effect easily by the content that this specification disclosed.The present invention also can be implemented or be used by other different instantiation, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications and change under the spirit of the present invention not deviating from.
See also Fig. 1, show the applied environment schematic diagram of the method for testing of WOL of the present invention.As shown in the figure, the method of testing of WOL of the present invention is applied to consolidated network for example interconnective test machine 2 and at least one machine to be measured 1 in the LAN etc., wherein, but this machine 1 to be measured network enabled at least wakes (WOL) function up, and be assigned hardware address unique in this network and protocol address at least, and the communication transport protocols that this machine 1 to be measured and this test machine are 2 comprises address resolution protocol (ARP Protocol) at least.
In the present embodiment, this test machine 2 and machine to be measured 1 all can for example be equipment such as common server or desktop PC, equipment as this machine 1 to be measured has above-mentioned calling function of network, and its network card, motherboard BIOS, and power supply etc. support this calling function of network, certainly, implement all can be changed under the situation at other, but not exceed with present embodiment; And, this protocol address refers to the network address (IP), and this hardware address is media interviews control (MAC) address, when this test machine 2 and machine to be measured 1 exist together in the network, this test machine 2 and machine to be measured 1 in this network, be assigned respectively the network address that consolidated network is the network segment (IP) for example " 192.168.1.1 " reach " 192.168.1.2 " etc., and the hardware address that two machines all have separately is media interviews control (MAC) address, form is as " 00-0D-AB-BC-CA-23 " etc., because this test machine 2 and machine to be measured 1 are in the consolidated network, therefore both do not have the network address and the situation of bearing the same name occurs, and are convenient to the follow-up operation that goes out the corresponding hardware address according to protocol address resolution.
See also Fig. 2, be the flow chart of the method for testing of WOL of the present invention, this method of testing comprises:
In step S1, this test machine 2 sends a communication request information to this machine 1 to be measured.In the present embodiment, the data packet that this communication request information can be in the network service to be transmitted, the protocol address information such as (receiving the IP of the receiving terminal of this communication request information) of the general protocol address (being the IP address) that comprises this machine 1 to be measured at least, hardware address (being MAC Address), test machine 2, and, when practical operation, can for example attempt network to this machine 1 to be measured and connect, promptly be equivalent to send this communication request information in instructions such as this machine 1 input ping to be measured.Then carry out step S2.
In step S2, this test machine 2 extracts the protocol address and the hardware address of this machine 1 to be measured in this communication request information by this address resolution protocol.In the present embodiment, under the general situation, data packet in the Ethernet all includes protocol address (being the network address), hardware address (being MAC Address), and this address resolution protocol is ARP Protocol etc. for example, because relevant extractive technique is general network technology, therefore do not give unnecessary details in addition.Then carry out step S3.
In step S3, this test machine 1 is stored in the address database by corresponded manner by the protocol address and the hardware address of this address resolution protocol with the machine to be measured 2 that extracted.In the present embodiment, utilize this address resolution protocol (for example ARP Protocol) even this test machine 1 of operation principle when receiving the network requests information of machine 2 to be measured, automatically deposit protocol address (IP) in the network requests information (data packet) and hardware address (MAC) in the memory cache district according to corresponded manner, manipulate for follow-up test.Then carry out step S4.
In step S4, close this machine 1 to be measured, operate for carrying out the follow-up start that wakes up this machine 1 to be measured.Then carry out step S5.In step S5, the protocol address of this machine 1 to be measured of foundation is corresponding acquisition corresponding hardware address in this address database, and it is processed into effective hardware address.In the present embodiment, this processing operation is the word processing by the regular expression mode, as mentioned above, can be automatically the protocol address (IP) and the hardware address (MAC) of this machine to be measured be stored in address database by this address resolution protocol, i.e. buffer area for example, internal memory etc., and can hardware address (MAC) and protocol address (IP) etc. be accessed and show by input instruction (for example " arp-a " that is imported under the windows operating system etc.) by the tabulation mode is corresponding, search hardware address (MAC) according to protocol address (IP) again and corresponding character is intercepted, its form for example is 12 letters and the digital formation of " 00:0D:AB:12:34:56 " or " 00-0D-AB-12-34-56 " form, and for consolidation form, general's symbol ": " wherein by for example regular expression, "-" etc. removes, thereby obtain 12 unified effective hardware address i.e. " 000DAB123456 ", be convenient to the test operation that follow-up this effective hardware address of foundation is carried out.Then carry out step S6.
In step S6, send one wake up instruction to the pairing machine 1 to be measured of this effective hardware address with this machine 1 to be measured of startup.In the present embodiment, this wakes instruction up and can have a plurality of, the effect of triggering signal is provided,, cooperates the calling function of network of aforesaid host B IOS and power supply to wait the test operation of finishing WOL to activate the network card of the pairing machine 1 to be measured of this effective hardware address.
Need to prove, in the present embodiment, this machine 1 to be measured is a computer, owing to generally in network, all be connected with multicomputer, so when the mode of this machine 1 applying broadcasting to be measured sent communication request information, the communication request information that is sent can arrive every computer, so the computer of each this communication request information of reception all can be used as test machine 2, come this machine 1 to be measured is carried out the WOL test operation, need not to connect in addition as control switch, unnecessary computer etc.
The method of testing of WOL of the present invention is mainly passed through at this test machine when this machine to be measured sends communication request information, this test machine extracts the protocol address and the hardware address of this test machine in this communication request information, and both correspondences are stored in the address database, and then can be according to the protocol address of machine to be measured, in this database, extract the corresponding hardware address by this address resolution protocol, and after this hardware address is treated to effective hardware address, this effective hardware address of foundation is to wake test operation up to corresponding machine to be measured, thereby needing in the prior art to avoid the drawback of Artificial Control and manual record media interviews control (MAC) address etc., promote testing efficiency thus.
In addition, the method for testing of WOL of the present invention need not to set up the mentioned control switch of prior art, test computer etc., so save testing cost.
The foregoing description is illustrative principle of the present invention and effect thereof only, but not is used to limit the present invention.Any those skilled in the art all can be under spirit of the present invention and category, and the foregoing description is modified and changed.Therefore, the scope of the present invention, claim is listed as described later.
Claims (4)
1. the method for testing of a WOL, test machine that is applied to be connected in the consolidated network and machine to be measured, wherein, these facility to be measured have the network enabled arousal function and are assigned hardware address unique in this network and protocol address, and the communication transport protocols between this machine to be measured and this test machine comprises address resolution protocol, and this method of testing may further comprise the steps:
1) be under the starting state at machine to be measured, transmission comprises the communication request information of this machine protocol address to be measured and hardware address to this test machine;
2) this test machine extracts the protocol address and the hardware address of this machine to be measured in this communication request information by this address resolution protocol;
3) this test machine is stored in the address database by corresponded manner by the protocol address and the hardware address of this address resolution protocol with the machine to be measured that this extracted;
4) close this machine to be measured;
5) hardware address of the protocol address of this machine to be measured of foundation corresponding acquisition machine to be measured in this address database, and this hardware address is handled in the mode of regular expression, thereby delete the symbol in this hardware address and keep continuous numeral and alphabetical, this hardware address is processed into effective hardware address; And
6) send one wake up instruction to the pairing machine to be measured of this effective hardware address with this machine to be measured of startup.
2. the method for testing of WOL according to claim 1, wherein, this communication request information is data packet.
3. the method for testing of WOL according to claim 1, wherein, this wakes instruction up and has the multiple instruction parameter.
4. the method for testing of WOL according to claim 1, wherein, this hardware address is a media access control address, this protocol address is the network address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100915109A CN101562545B (en) | 2008-04-15 | 2008-04-15 | WOL test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100915109A CN101562545B (en) | 2008-04-15 | 2008-04-15 | WOL test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101562545A CN101562545A (en) | 2009-10-21 |
CN101562545B true CN101562545B (en) | 2011-07-13 |
Family
ID=41221177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100915109A Expired - Fee Related CN101562545B (en) | 2008-04-15 | 2008-04-15 | WOL test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101562545B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299943A (en) * | 2010-06-23 | 2011-12-28 | 苏州彭华信息技术有限公司 | Network interface device for automatically starting or awakening computer through network |
CN102404162A (en) * | 2010-09-17 | 2012-04-04 | 鸿富锦精密工业(深圳)有限公司 | Test system and method for network wakeup function of computer |
CN103166775A (en) * | 2011-12-12 | 2013-06-19 | 成都勤智数码科技有限公司 | Method for server startup-and-shut-down management at free time |
CN104731062B (en) * | 2015-02-06 | 2017-07-25 | 武汉虹信通信技术有限责任公司 | A kind of Intelligence Network Management System and method for monitoring and dispatching for meter status |
CN104954204B (en) * | 2015-07-10 | 2018-01-16 | 上海斐讯数据通信技术有限公司 | A kind of method of testing and equipment |
CN105515918A (en) * | 2016-01-13 | 2016-04-20 | 浪潮电子信息产业股份有限公司 | Network awakening test method under SUSE Linux system |
CN107864042B (en) * | 2017-10-31 | 2021-02-09 | 海信视像科技股份有限公司 | Application program awakening method and device |
CN115022215B (en) * | 2022-05-25 | 2023-06-02 | 四川九州电子科技股份有限公司 | Method and system for testing MAC address of optical network unit |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506868A (en) * | 2002-12-10 | 2004-06-23 | 联想(北京)有限公司 | Method of remote controlling computer in different area via computer network |
CN101002427A (en) * | 2004-06-30 | 2007-07-18 | 诺基亚公司 | Method and system for dynamic device address management |
-
2008
- 2008-04-15 CN CN2008100915109A patent/CN101562545B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506868A (en) * | 2002-12-10 | 2004-06-23 | 联想(北京)有限公司 | Method of remote controlling computer in different area via computer network |
CN101002427A (en) * | 2004-06-30 | 2007-07-18 | 诺基亚公司 | Method and system for dynamic device address management |
Also Published As
Publication number | Publication date |
---|---|
CN101562545A (en) | 2009-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101562545B (en) | WOL test method | |
CN101345659B (en) | Network terminal control method and network terminal control system | |
CN104199723B (en) | Camera mapping method based on virtual equipment | |
CN102143230A (en) | Method for mini-station to authenticate and log in virtual machine in cloud system and login system | |
CN101964763B (en) | Message handling method | |
CN101022346A (en) | Electronic documant coordination downloading system and method | |
US8849947B1 (en) | IT discovery of virtualized environments by scanning VM files and images | |
CN111371741A (en) | Method and device for transmitting data of external network to internal network, computer equipment and storage medium | |
CN101102259A (en) | Network access control system and its method | |
CN113254445B (en) | Real-time data storage method, device, computer equipment and storage medium | |
CN103200199A (en) | Out of band (OOB) data collection system | |
CN103198007A (en) | Multi-process log output method and system | |
CN111259022B (en) | Information synchronization method, synchronization system, computer equipment and medium | |
CN113890879B (en) | Load balancing method and device for data access, computer equipment and medium | |
CN102262541A (en) | Method for starting dynamic configuration plug-in | |
CN109240754A (en) | A kind of logical device and method, system configuring BIOS startup item | |
CN103699635A (en) | Information processing method and device | |
CN102158341B (en) | Method for waking up electronic device and network server capable of waking up electronic device | |
CN111985906A (en) | Remote office system, method, device and storage medium | |
CN104915252B (en) | A kind of process port management means and method | |
WO2020233013A1 (en) | Data processing method and device, and storage medium | |
CN103955379A (en) | Method and system for registering software | |
CN106250437A (en) | A kind of electronic monitoring front end data acquisition method and system | |
CN103793266A (en) | Plug-in management device | |
CN114124883B (en) | Data access method and device based on cloud storage address, computer equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110713 Termination date: 20170415 |
|
CF01 | Termination of patent right due to non-payment of annual fee |