Summary of the invention
To solve the problems of the prior art, the present invention provides a kind of Homeplug dormancy wake-up testing system, additionally provides
A kind of test method based on the system.
Homeplug dormancy wake-up testing system of the present invention includes client, the first interchanger, Multi-netmouth client, the second friendship
It changes planes, power on/off switching on and shutting down, the client is equipped with network interface card, and the network interface card is connected with the input terminal of the first interchanger, and described the
The output end of one interchanger is connected with second switch, and first interchanger and second switch are equipped with multipair VLAN,
In, the input port of the first interchanger sets up different VLAN, second switch every two port composition from other ports respectively
A pair of of VLAN, the two of them port connection of each pair of Homeplug to be measured two pair VLANs adjacent with second switch respectively, institute
State power on/off switching on and shutting down control second switch power on/off, the input terminal of the Multi-netmouth client and the output of second switch
End is connected, and the client is connected by the first interchanger, second switch, Homeplug to be measured with Multi-netmouth client.
The present invention is further improved, the multiple IP address of the network card configuration of the client, and the Multi-netmouth client is every
The IP address of a port configuration different segment, the IP address network segment of the Multi-netmouth client and the client NIC are wherein
One IP address network segment is identical.
The present invention is further improved, and the port 1 of first interchanger is input port, other ports are belonging respectively to not
With the port of VLAN, port 1 can send and receive the information of other each ports.
The present invention is further improved, and the first interchanger and second switch are respectively 24 mouthfuls for supporting 802.1Q VLAN
Interchanger.
The present invention is further improved, and the quantity of Homeplug to be measured depends on second switch and Multi-netmouth client
Port number tests four ports and a port of Multi-netmouth client that each pair of Homeplug needs second switch.
The present invention is further improved, and the quantity of the Homeplug is 3 pairs.
The present invention also provides a kind of test methods based on the system, include the following steps:
S1: when setting testing time, the conduction time of power on/off switching on and shutting down and power-off time, Homeplug enter dormant state
Between;
S2: client continues to send ping packet toward Multi-netmouth client by network interface card;
S3: statistics ping packet continuously transmits unsuccessful number;
S4: whether within the allowable range judgement continuously transmits unsuccessful number, if so, Homeplug is waken up, if
No, Homeplug wakes up failure.
The present invention is further improved, and further includes step S5 after step S4 execution: counting in the testing time of setting the
Power-off number, the Homeplug of two interchangers wake up the number of failure, and the number and second switch of failure are waken up according to Homeplug
Power-off number calculate wake up failure rate.
The present invention is further improved, and in step sl, conduction time is set as 80s, and power-off time is set as 10s, electricity
Power cat 8s is without being operated into dormant state.
The present invention is further improved, and in step s 4, allowed band is within 15 times.
Compared with prior art, the beneficial effects of the present invention are: automatically powering off and being powered by control interchanger, is simulated
It plugs the operation of Homeplug LAN mouthfuls of cable manually to activate Homeplug to work normally, and passes through time of statistics client PING packet
Number is to identify whether Homeplug is waken up, to reach the personnel's investment reduced in this test item.The present invention only needs surveying
Power on/off switching on and shutting down are set before examination, is electrically connected computer client on Homeplug, probability is calculated after the completion of test, always
Time less than 20 minutes, substantially reduces the testing time, and working efficiency significantly improves, and reduces human cost;The present invention is led automatically
Test record out, test total degree calculate automatically, accurate clear, and can very easily calculate wake-up probability of failure;This
Invention supports multipair Homeplug to test simultaneously, the testing time can be made to shorten at double, greatly improve testing efficiency.
Specific embodiment
The present invention is described in further details with reference to the accompanying drawings and examples.
As shown in Figure 1, Homeplug dormancy wake-up testing system of the invention is for testing at least a pair of Homeplug to be measured
5, including client 1, the first interchanger 2, Multi-netmouth client 3, second switch 4, power on/off switching on and shutting down 6, the client 1
Equipped with network interface card, the network interface card is connected with the input terminal of the first interchanger 2, and the output end of first interchanger 2 is exchanged with second
Machine 4 is connected, and first interchanger 2 and second switch 4 are equipped with multipair VLAN, wherein the input port of the first interchanger 2 with
Other ports separately constitute different VLAN, and 4 every two port of second switch partners VLAN, each pair of Homeplug to be measured
The two of them port of 5 two pair VLANs adjacent with second switch 4 respectively is connect, second exchange of the control of power on/off switching on and shutting down 6
The input terminal of 4 power on/off of machine, the Multi-netmouth client 3 is connected with the output end of second switch 4, in short, this example client 1
It is connected by the first interchanger 2, second switch 4, Homeplug 5 with Multi-netmouth client 3, that is to say, that the client 1 of this example
The message of transmission can reach Multi-netmouth client 3 by the transmission of the first interchanger 2, second switch 4, Homeplug 5.This example
Homeplug 5 to be measured is a pair, including the first Homeplug 51 and the second Homeplug 52 connected by power line.
Multi-netmouth client 3 needs satisfaction of this example has multiple network interfaces, and be configurable to different IP addresses the two
Condition, this example are wireless controller (abbreviation AC equipment).
The multiple IP address of network card configuration of the client 1 of this example, each port of the wireless controller 3 configure different segment
IP address, the IP address network segment of the wireless controller and one of IP address network segment of the client NIC are identical.
The port 1 of first interchanger 2 of this example is input port, other ports are belonging respectively to the port of different VLAN, is held
Mouth 1 can send and receive the information of other each ports.The quantity of this example Homeplug to be measured depend on second switch and
The port number of Multi-netmouth client tests four ports and Multi-netmouth client that each pair of Homeplug needs second switch
A port.This example can support 1-8 to be tested to Homeplug, and the quantity of the preferably described Homeplug is 3 pairs, reduce each to electricity
Interference between power cat.Multipair Homeplug 5 can be tested simultaneously, shorten the testing time at double, greatly improve
Testing efficiency.
As one embodiment of the present of invention, the first interchanger of this example 2 and second switch 4 are respectively to support 802.1Q
24 mouth switchs of VLAN.Wherein, lower left is port 1, and it is port 3, left side below the secondary series of left side that upper left side, which is port 2,
It is port 4 ... ... above secondary series, lower right is port 23, and upper right side is port 24.
First interchanger 2 does following setting: number 21 and port 2 in 1 figure of port are added to VID, and (virtual LAN is compiled
Number) in 2 VLAN (virtual LAN);Port 1 and 3 is added in the VLAN that VID is 3, and it is 4 that port 1 and 4, which is added to VID,
VLAN in ..., each port of the first interchanger 2 and port 1 are in the same VLAN, but port 2~24 belongs to different VLAN.
Second switch 4 does following setting: port 1 (figure label 41) and port 2 (figure label 42) are added to
In the VLAN that VID is 2;Port 3 and 4 is added in the VLAN that VID is 3;Port 5 and 6 is added to the VLAN that VID is 4
In ..., interchanger every two port is in same VLAN.Two of each perpendicular column of this example are in same VLAN.
This example is mainly in view of using AC equipment 3 can provide multiple ports, and each port can be set to different segment
IP address.AC equipment does following setting: it is 10.10.10.10/8 that port 1, which configures IP address,;Port 2 configures IP address
20.20.20.20/8;It is 30.30.30.30/8 ... that port 3, which configures IP address, the IP address of each port configuration different segment.
The PC configuration 1 of client 1 is thrown the net card, and multiple IP address: 10.10.10.11/8,20.20.20.21/8 are configured,
30.30.30.31/8 ..., the IP address section of configuration corresponds to each port IP address of AC equipment, but host number is not identical.
Power on/off switching on and shutting down 6 are used to control the available machine time of second switch 4, and according to Homeplug dormancy time, this example is set
It is set to energization 80 seconds, powers off 10 seconds.Two Homeplugs 51,52 set up private network, and are respectively provided with 8 seconds nothings and are operated into dormant state.
After being provided with, the port 2 of the first interchanger 2 and the port 1 of second switch 4 are connected using cable;Connection the
The port 3 of two interchangers 4 and the port 1 of AC equipment 3;LAN (local area network, the local area network) mouth of Homeplug 52 connects
It is connected to the port 2 of second switch 4, the LAN mouth of Homeplug 51 is connected to the port 4 of second switch 4.
The overlap joint that this example is carried out by taking a pair of (two) Homeplug 5 as an example is only needed if you need to increase multipair Homeplug while testing
After Homeplug is matched by power line, it is connected on the adjacent port of second switch 4.If it is multipair electric power
Cat is similar to the line of first pair of Homeplug, it is only necessary to connect the first interchanger 2, AC equipment 3 and second using cable
On other different ports of interchanger, then other are connected to the other port of second switch 4 to Homeplug, with such
It pushes away.For example, if it is two pairs of Homeplugs, then the port 3 of the first interchanger 2 and the port 5 of second switch 4 are connected with cable,
Then the port 6 and port 8 of second switch 4 are separately connected second pair of two Homeplugs, and the port 7 of second switch 4 connects
Connect second port of AC equipment 3.
As shown in Fig. 2, including the following steps: the present invention also provides a kind of test method based on the system
S1: when setting testing time, the conduction time of power on/off switching on and shutting down and power-off time, Homeplug enter dormant state
Between.This example conduction time is set as 80s, and power-off time is set as 10s, and Homeplug 8s is without being operated into dormant state.
S2: client continues to send ping packet toward AC equipment by network interface card, destination address for AC equipment 3 port IP
Location, and record ping packet is sent the result in text file in real time.
This example ping packet is by path: 2 interchanger of port 1- > first of the interchanger of the PC- of client 1 > first, 2 port 2- >
4 port 1- of second switch > 4 port 2- of second switch > 52LAN mouthfuls of Homeplug -> power line -> 51LAN mouthfuls of Homeplug -> the
Two interchangers, 4 port 4- > 4 port 3- > AC equipment of second switch, 3 port 1.
The working principle of this example are as follows: when power on/off switching on and shutting down 6 are changed into off-state, second switch 4 by energized state
Port power-off, client 1 are unable to the LAN mouth IP address that ping leads to AC equipment 3, and power-off time is more than after 8 seconds, and Homeplug 5 enters
Dormant state;After power on/off switching on and shutting down 6 are changed into energized state by off-state, the port of second switch 4 is powered on, activation
Homeplug 5 is changed into normal operating conditions, the PC machine of client 1 can normal ping lead to the LAN mouth IP address of AC equipment 3.
S3: statistics ping packet continuously transmits unsuccessful number, using in automatized script tool statistics text file
The number of ping packet continuous " request timed out " judges whether Homeplug is waken up.
S4: whether within the allowable range judgement continuously transmits unsuccessful number, if so, Homeplug is waken up, if
No, Homeplug wakes up failure, and Homeplug wakes up the frequency of failure and adds 1 on the basis of original numerical value.
This example allowed band is within 15 times, that is to say, that the number of ping packet continuous " request timed out " in text file
Within 15 times, illustrate that Homeplug is waken up success;Continuously " request timed out " more than 15 times explanations are not waken up.
S5: power-off number, the Homeplug for counting second switch 4 in the testing time of setting wake up the number of failure, root
Failure rate is waken up according to the power-off number calculating that Homeplug wakes up the number and second switch 4 of failure.
The present invention being automatically powered off and being powered by control interchanger, simulates the behaviour of manually Homeplug LAN mouthfuls of cable of plug
Make to activate Homeplug to work normally, and identifies whether Homeplug is waken up by the number of statistics client PING packet, from
And reach the personnel's investment reduced in this test item.The present invention only needs that power on/off switching on and shutting down, electric power are arranged before test
It is electrically connected computer client on cat, probability is calculated after the completion of test, total time less than 20 minutes, substantially reduces survey
The time is tried, working efficiency significantly improves, and reduces human cost;The present invention is derived automatically from test record, and test total degree is calculated automatically
Out, accurate clear, and can very easily calculate wake-up probability of failure;The present invention supports multipair Homeplug to test simultaneously,
The testing time can be made to shorten at double, greatly improve testing efficiency.
The specific embodiment of the above is better embodiment of the invention, is not limited with this of the invention specific
Practical range, the scope of the present invention includes being not limited to present embodiment, all equal according to equivalence changes made by the present invention
Within the scope of the present invention.