The content of the invention
In view of this, it is an object of the invention to provide a kind of method of testing and system of WIFI routers load-carrying properties, energy
Both having ensured the test result of WIFI router load-carrying properties has higher accuracy, and testing efficiency, reduction can be effectively improved again
Testing cost.
In order to achieve the above object, the invention provides a kind of method of testing of WIFI routers load-carrying properties, include:
Step 1: selecting one is used to testing the Wireless simulators of WIFI routers, and by the Wireless simulator selected
Wireless repeater mode is configured to, and the WIFI hot spot of its wireless relay and WIFI routers to be tested are arranged to same focus name
Claim, then start the Wireless simulator;
Step 2: after Wireless simulator is activated, it is to be tested to find according to the WIFI hot spot title of its wireless relay
WIFI routers, then wireless relay is on WIFI routers to be tested;
Step 3: Wireless simulator passes through the WIFI routers to be tested relayed, Working mould is sent to test server
The request message of formula, and the mode of operation returned according to test server, configure corresponding test script, then perform test pin
This downloads respective resources from test server, and the average speed for itself resource being downloaded from test server is calculated after download terminates
Degree, finally downloads itself from test server the WIFI to be tested of the average speed, own MAC address and relaying of resource
The MAC Address of router is sent to test server;
Step 4: what test server was sent according to all Wireless simulators for being relayed to same WIFI routers to be tested
The average speed of resource is downloaded from test server, judges whether the load-carrying properties index of WIFI routers to be tested reaches one
Limiting value, if it is, the average speed that resource is downloaded from test server sent according to all Wireless simulators, calculating is treated
Test the load-carrying properties desired value of WIFI routers;If it is not, then continuing to increase wireless relay on WIFI routers to be tested
Wireless simulator, turn to step one.
In order to achieve the above object, present invention also offers a kind of test system of WIFI routers load-carrying properties, including
There are test server, WIFI routers to be tested and several Wireless simulators, wherein:
Wireless simulator, for being configured to wireless repeater mode, and by the WIFI hot spot of its wireless relay and to be tested
WIFI routers are arranged to same hotspot name, upon actuation, to be measured to find according to the WIFI hot spot title of its wireless relay
WIFI routers are tried, then wireless relay passes through the WIFI routers to be tested relayed on WIFI routers to be tested, to
Test server sends the request message of mode of operation, and the mode of operation returned according to test server, configures corresponding survey
Training sheet, performs test script and downloads respective resources from test server, itself is calculated after download terminates from test server
Download the average speed of resource, finally by itself from test server download the average speed of resource, own MAC address and
The MAC Address of the WIFI routers to be tested of relaying is sent to test server;
Test server, for receiving the average speed that resource is downloaded from test server that all Wireless simulators are sent
Degree, judge wireless relay to the load-carrying properties indexs of WIFI routers to be tested whether reach a limiting value, if it is,
The average speed that resource is downloaded from test server sent according to all Wireless simulators, calculates WIFI routers to be tested
Load-carrying properties desired value;If it is not, then continuing to increase the Wireless simulator of wireless relay on WIFI routers to be tested;
WIFI routers to be tested, for providing the radio communication between Wireless simulator and test server.
Compared with prior art, the beneficial effects of the invention are as follows:It is low that the present invention only needs to a tester, many prices
Honest and clean Wireless simulator can be just tested WIFI router load-carrying properties, so as to effectively reduce the manpower that test expends
And material resources, drastically increase testing efficiency;Modification Wireless simulator, the hotspot name of WIFI routers to be tested are only needed to,
The band machine amount limit, the bandwidth limit equivalent-load performance of any WIFI routers can just be tested, the present invention has very strong
Ease for use and scalability;The present invention simulates the operation behavior of multiple users using multiple Wireless simulators, can accurately obtain
The actual bandwidth for obtaining bandwidth occupancy situation and each Wireless simulator of each WIFI routers in the case of different bearer takes
Situation, test result has high accuracy.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, further is made to the present invention below in conjunction with the accompanying drawings
Detailed description.
As shown in figure 1, a kind of method of testing of WIFI routers load-carrying properties of the invention, includes:
Step 1: selecting one is used to testing the Wireless simulators of WIFI routers, and by the Wireless simulator selected
Wireless repeater mode is configured to, and the WIFI hot spot of its wireless relay and WIFI routers to be tested are arranged to same focus name
Claim, then start the Wireless simulator;
The Wireless simulator can use some cheap routing devices, such as using ar9331 chip flashs
Openwrt increases income firmware, so as to save testing cost, it is only necessary to set the WIFI hot spot title of its wireless relay, you can realize
Performance test of multiple Wireless simulators to any WIFI routers;
Step 2: after Wireless simulator is activated, it is to be tested to find according to the WIFI hot spot title of its wireless relay
WIFI routers, then wireless relay is on WIFI routers to be tested;
Wireless simulator searches for the WIFI hot spot of surrounding first when starting, WIFI roads to be tested are then relayed to after searching for successfully
On device;
Step 3: Wireless simulator passes through the WIFI routers to be tested relayed, Working mould is sent to test server
The request message of formula, and the mode of operation returned according to test server, configure corresponding test script, then perform test pin
This downloads respective resources from test server, and the average speed for itself resource being downloaded from test server is calculated after download terminates
Degree, finally downloads itself from test server the WIFI to be tested of the average speed, own MAC address and relaying of resource
The MAC Address of router is sent to test server;
WIFI routers to be tested need to be connected in the network with test server UNICOM, so as to ensure Wireless simulator energy
With test server proper communication;
Step 4: what test server was sent according to all Wireless simulators for being relayed to same WIFI routers to be tested
The average speed of resource is downloaded from test server, judges whether the load-carrying properties index of WIFI routers to be tested reaches one
Limiting valueIf it is, the average speed that resource is downloaded from test server sent according to all Wireless simulators, calculating is treated
Test the load-carrying properties desired value of WIFI routers;If it is not, then continuing to increase wireless relay on WIFI routers to be tested
Wireless simulator, turn to step one, wherein, the limiting value of load-carrying properties index can be set according to actual conditions, for example
The lowest-bandwidth of each user is set as 200KB/S, so, when all Wireless simulators for being relayed to WIFI routers to be tested
When the average value that the average speed of resource is downloaded from test server is less than 200KB/S, then the band machine of WIFI routers to be tested
Amount reaches the band machine amount limit.
In step one, when Wireless simulator is configured into wireless repeater mode, it can also include:Close wireless simulation
The spontaneous WIFI signal of device, so as to reduce the pressure of Wireless simulator.
In step 3, the mode of operation that Wireless simulator can be returned according to test server is come the difference behaviour of analog subscriber
Make behavior, the mode of operation can include but is not limited to:Webpage is browsed, message, viewing video is sent and downloads file, this
Sample, test server is by changing configuration file, it is possible to achieve to the flexible configuration of the mode of operation of all Wireless simulators, from
And guarantee to obtain precisely and the performance data of real WIFI routers to be tested.Wherein, when mode of operation is to browse webpage
When, the test script that Wireless simulator is configured can download several picture files and text from test server;
When mode of operation is viewing video, the test script that Wireless simulator is configured can receive test server transmission to come
Video flowing;When mode of operation is to send message, the test script that Wireless simulator is configured can be passed with test server
Defeated socket message;When mode of operation is to download file, the test script that Wireless simulator is configured can be and test clothes
Business device transmits big file.So, by different Wireless simulators come the different operating behavior of analog subscriber, all wireless simulations
Device can simulate the various complex scenes of a large number of users simultaneously and concurrently on-line operation, so as to realize to WIFI routers to be tested
Performance test.
Because user is not simple by under some web cache when browsing webpage, but download while delaying
Deposit, and download file and there is the features such as many total many, small documents, download burst, in order to which true analog subscriber browses the behaviour of webpage
Make behavior, a file sequence being made up of the mutually different file of several sizes first can be set in test server
Number of files in row, the file sequence is not less than a minimum number of files threshold value (such as 300) pre-set, file sequence
Middle minimum file size is 1MB, and maximum file size is in units of MB, so, in step 3, when test server is returned
Mode of operation be that Wireless simulator performs test script and downloads respective resources from test server when browsing webpage, can be with
Further comprise having:
Wireless simulator selects several files by certain algorithm from the file sequence of test server, then by institute
The file of selection is locally downloading by certain precedence, with analog subscriber it is lasting browse webpage behavior.
Test server be able to can also be included with the mode of operation of each Wireless simulator of dynamic control, the present invention:
Wireless simulator timing sends the request message of mode of operation to test server, and judges that test server is returned
Newest mode of operation it is whether consistent with currently performed mode of operationIf it is, continuing executing with current test script
Respective resources are downloaded from test server;If it is not, then stopping performing current test script, then returned according to test server
The newest mode of operation returned, reconfigures newest test script, finally performs newest test script under test server
Carry respective resources.
In step 4, test server can collect the number sent from WIFI routers to be tested and each Wireless simulator
According to test data being shown after being handled through integration on the page, and carry out real-time update.Wherein, WIFI routers to be tested are held
Carry performance indications and may further include the band machine amount limit, bandwidth limit equivalence.As shown in Fig. 2 step 4 can be wrapped further
Include:
Step 41, test server download resource according to what received Wireless simulator was sent from test server
Average speed, all Wireless simulators that statistics is relayed to same WIFI routers to be tested download resource from test server
Less than a lowest-bandwidth threshold value (for example whether the average value of average speed, then judge counted average value:200KB/
S)If it is, calculating all Wireless simulator numbers for being relayed to WIFI routers to be tested, the band of WIFI routers to be tested
The machine amount limit is all Wireless simulator numbers for being relayed to WIFI routers to be tested, then turns to step 42;If it is not, then
Show that WIFI routers to be tested do not reach the band machine amount limit also, continue to increase wireless relay on WIFI routers to be tested
Wireless simulator, turns to step one;
Step 42, test server judge whether to receive the port flow speed that WIFI routers to be tested are sentSuch as
Fruit is then therefrom to read the port flow speed of WIFI routers to be tested, and the bandwidth limit of WIFI routers to be tested is
The port flow speed;If it is not, then all Wireless simulators that statistics is relayed to WIFI routers to be tested take from test
The average speed sum for device download resource of being engaged in, the bandwidth limit of WIFI routers to be tested is to be relayed to WIFI routes to be tested
All Wireless simulators of device download the average speed sum of resource from test server.
WIFI routers to be tested in the present invention can be customizable or not customizable software WIFI routers, this
Sample, when WIFI routers to be tested are the WIFI routers of customizable software, WIFI routers to be tested can be regularly to survey
Examination server reports its port flow speed, and test server reaches port flow speed during with the machine amount limit according to it to count
Calculate its bandwidth limit;When WIFI routers to be tested are the WIFI routers of not customizable software, test server is according to it
Reach that all Wireless simulators during with the machine amount limit download the average speed of resource to calculate its bandwidth limit.
As shown in figure 3, a kind of test system of WIFI routers load-carrying properties of the invention, includes test server, treats
WIFI routers and several Wireless simulators are tested, wherein:
Wireless simulator, for being configured to wireless repeater mode, and by the WIFI hot spot of its wireless relay and to be tested
WIFI routers are arranged to same hotspot name, upon actuation, to be measured to find according to the WIFI hot spot title of its wireless relay
WIFI routers are tried, then wireless relay passes through the WIFI routers to be tested relayed on WIFI routers to be tested, to
Test server sends the request message of mode of operation, and the mode of operation returned according to test server, configures corresponding survey
Training sheet, performs test script and downloads respective resources from test server, itself is calculated after download terminates from test server
Download the average speed of resource, finally by itself from test server download the average speed of resource, own MAC address and
The MAC Address of the WIFI routers to be tested of relaying is sent to test server, and the Wireless simulator can use some valencys
The cheap routing device of lattice, for example, increased income firmware using ar9331 chip flashs openwrt, so as to save testing cost;
Test server, for receiving the average speed that resource is downloaded from test server that all Wireless simulators are sent
Degree, judge wireless relay to the load-carrying properties indexs of WIFI routers to be tested whether reach a limiting value, if it is,
The average speed that resource is downloaded from test server sent according to all Wireless simulators, calculates WIFI routers to be tested
Load-carrying properties desired value;If it is not, then continuing to increase the Wireless simulator of wireless relay on WIFI routers to be tested;
WIFI routers to be tested, for providing the radio communication between Wireless simulator and test server.
When Wireless simulator is configured into wireless repeater mode, while its spontaneous WIFI signal can also be closed, so as to subtract
The pressure of few Wireless simulator.
The mode of operation that Wireless simulator can be returned according to test server is come the different operating behavior of analog subscriber, institute
Stating mode of operation can include but is not limited to:Webpage is browsed, message, viewing video is sent and downloads file, so, testing service
Device is by changing configuration file, it is possible to achieve to the flexible configuration of the mode of operation of all Wireless simulators, so as to guarantee to obtain
Obtain precisely and the performance data of real WIFI routers to be tested.As shown in figure 4, Wireless simulator can further include
Have:
Webpage working cell is browsed, for downloading several picture files and text from test server;
Video working cell is watched, the video flowing for receiving test server transmission;
Message working cell is sent, for transmitting socket message with test server;
Paper work unit is downloaded, for transmitting big file with test server.
Because user is not simple by under some web cache when browsing webpage, but download while delaying
Deposit, and download file and there is the features such as many total many, small documents, download burst, in order to which true analog subscriber browses the behaviour of webpage
Make behavior, a file sequence being made up of the mutually different file of several sizes can also be set in test server
Number of files in row, the file sequence is not less than a number of files minimum threshold (such as 300) pre-set, file sequence
Middle minimum file size is 1MB, and maximum file size is in units of MB, so, and browsing webpage working cell can also enter
One step includes:
Webpage analog component is browsed, for selecting several texts from the file sequence of test server by certain algorithm
Part, it is then that selected file is locally downloading by certain precedence, with analog subscriber it is lasting browse webpage behavior.
Test server be able to can also be included with the mode of operation of each Wireless simulator of dynamic control, Wireless simulator
Have:
Mode of operation control unit, the request message of mode of operation is sent for timing to test server, and judges to survey
Whether the newest mode of operation for trying server return is consistent with currently performed mode of operation, works as if it is, continuing executing with
Preceding test script downloads respective resources from test server;If it is not, then stop performing current test script, then basis
Test server return newest mode of operation, reconfigure newest test script, finally perform newest test script from
Test server downloads respective resources.
Test server can collect the data sent from WIFI routers to be tested and each Wireless simulator, through integrating
Test data is shown after processing on the page, and carries out real-time update.Wherein, the load-carrying properties index of WIFI routers to be tested
The band machine amount limit, bandwidth limit can be included equivalent.As shown in figure 5, test server can further include:
Band machine amount limit test unit, is downloaded for what is sent according to received Wireless simulator from test server
The average speed of resource, all Wireless simulators that statistics is relayed to same WIFI routers to be tested are downloaded from test server
Less than a lowest-bandwidth threshold value (for example whether the average value of the average speed of resource, then judge counted average value:
200KB/S), if it is, calculating all Wireless simulator numbers for being relayed to WIFI routers to be tested, WIFI routes to be tested
Device is all Wireless simulator numbers for being relayed to WIFI routers to be tested with the machine amount limit;If it is not, then continuing treating
Testing increases the Wireless simulator of wireless relay on WIFI routers;
Bandwidth limit test cell, for being less than one when the average value counted with machine amount limit test unit judges
During lowest-bandwidth threshold value, continue to determine whether to receive the port flow speed that WIFI routers to be tested are sent, if it is,
The port flow speed of WIFI routers to be tested is therefrom read, the bandwidth limit of WIFI routers to be tested is the port
Flow rate;If it is not, then all Wireless simulators that statistics is relayed to WIFI routers to be tested are downloaded from test server
The average speed sum of resource, the bandwidth limit of WIFI routers to be tested is to be relayed to owning for WIFI routers to be tested
Wireless simulator downloads the average speed sum of resource from test server.
WIFI routers to be tested in the present invention can be customizable or not customizable software WIFI routers, this
Sample, when WIFI routers to be tested are the WIFI routers of customizable software, WIFI routers to be tested can also timing to
Test server reports its port flow speed, test server according to its reach port flow speed during with the machine amount limit come
Calculate its bandwidth limit;When WIFI routers to be tested are the WIFI routers of not customizable software, test server according to
It reaches that all Wireless simulators during with the machine amount limit download the average speed of resource to calculate its bandwidth limit.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.