CN108199930A - The topological test system and test method of a kind of router multi-mode - Google Patents

The topological test system and test method of a kind of router multi-mode Download PDF

Info

Publication number
CN108199930A
CN108199930A CN201810203301.2A CN201810203301A CN108199930A CN 108199930 A CN108199930 A CN 108199930A CN 201810203301 A CN201810203301 A CN 201810203301A CN 108199930 A CN108199930 A CN 108199930A
Authority
CN
China
Prior art keywords
router
measured
test machine
test
interchanger
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.)
Pending
Application number
CN201810203301.2A
Other languages
Chinese (zh)
Inventor
黄鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Feixun Information Technology Co Ltd
Original Assignee
Sichuan Feixun Information Technology Co Ltd
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 Sichuan Feixun Information Technology Co Ltd filed Critical Sichuan Feixun Information Technology Co Ltd
Priority to CN201810203301.2A priority Critical patent/CN108199930A/en
Publication of CN108199930A publication Critical patent/CN108199930A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

Topological test system and test method, method the invention discloses a kind of router multi-mode include:First test machine is connected by the first wired network adapter with interchanger, and the first test machine is also connect with the first wireless network card;Second test machine is connected by the second wired network adapter with interchanger, and the second test machine is also connect by the second wireless network card with power splitter;Third test machine is connected by third wired network adapter with interchanger;4th test machine is connected by the 4th wired network adapter with interchanger;The LAN mouths of auxiliary router and WAN mouthfuls are connect with interchanger;The LAN mouths of router to be measured and WAN mouthfuls are connect with interchanger.The present invention when being tested for different router forms, does not need to increase and decrease equipment or changes the connection relation of equipment room, by set of system, you can complete the test of a variety of router forms, save manpower and materials, further increase testing efficiency.

Description

The topological test system and test method of a kind of router multi-mode
Technical field
The present invention relates to router detection field, more particularly to a kind of topological test system of router multi-mode and survey Method for testing.
Background technology
Nowadays, the function of router is further abundant, other than original routing function, has had that there are many other functions With communication form, to be suitable for client's needs under different situations.Such as in hotel, the ap mode for being normally applied router meets It is connected to the guest in not chummery in existing network;Or in the larger family of floor space, router is made It is used for wireless repeater, to expand the distribution of original signal, in a disguised form enhances signal strength;And in the nothing of present newer type Circuit can be provided with multiple SSID simultaneously in, so that user needs.
The function of router is more, and it is more that required physical topological structure type is detected to it.Road of the prior art By device test topology, can only often be tested for a kind of router feature.If the test of another function is carried out, often The line for rearranging the topological structure of test, re-starting each test equipment is needed, a large amount of time is needed to change and set Topological structure, operation are also very inconvenient.
Invention content
The present invention provides the topological test systems and test method of a kind of router multi-mode, and the purpose is to pass through to establish A set of test topology and test method can meet the test of router various modes.Without being directed to every suit routing Device pattern all re-establishes physical topology, saves the testing time, simple to operate.
Technical solution provided by the invention is as follows:
A kind of topological test system of router multi-mode, including:Router to be measured, the first test machine, the second test machine, Third test machine, the 4th test machine, the first wired network adapter, the second wired network adapter, third wired network adapter, the 4th wired network adapter, One wireless network card, the second wireless network card, interchanger, power splitter and auxiliary router, first test machine pass through described first Wired network adapter is connected with the interchanger, meanwhile, first test machine is also connect with first wireless network card;Described second Test machine is connected by second wired network adapter with the interchanger, meanwhile, second test machine also passes through described second Wireless network card is connect with the power splitter;The third test machine is connected by the third wired network adapter with the interchanger; 4th test machine is connected by the 4th wired network adapter with the interchanger;The LAN mouths and WAN of the auxiliary router Mouth is connect with the interchanger;The LAN mouths of the router to be measured and WAN mouthfuls are connect with the interchanger.
Further, the interchanger has from first interface to eight ports of the 8th interface, wherein:The first interface Connect first wired network adapter;The second interface connects second wired network adapter;Third interface connection described the Three wired network adapters;4th interface connects the 4th wired network adapter;5th interface connects the auxiliary router LAN mouthfuls;6th interface connects the WAN mouths of the auxiliary router;7th interface connects the router to be measured LAN mouthfuls;8th interface connects the WAN mouths of the router to be measured.
The present invention passes through the connection relation of above equipment and equipment room, you can at least four router modes of test are not required to Increase and decrease equipment, it is not required that change the connection relation of equipment room.
The present invention also provides a kind of test method of router multi-mode, applied to a kind of router multi-mode Topological test system, the test method include at least:
L1, the test router ap mode method;
L2, test router route pattern method;
L3, test router repeater mode method;
L4, test router more SSID patterns method.
Further, L1, test router ap mode method, include the following steps:
Step L11, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided in a virtual LAN;
Step L12, first wired network adapter and second wired network adapter are disabled;
Step L13, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet, detects single interactive function of wireless client and whether the interactive function of more wireless clients is normally realized;If so, into Enter step L15, otherwise, enter step L16;
Step L14, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script controls first test machine by first wireless network card and the router wireless connection to be measured, and examines Second test machine is tested whether by the router to be measured and first test machine formation access;If so, it enters step Otherwise L15, enters step L16;
Step L15, judge that the ap mode function of the router to be measured is normal;
Step L16, judge the ap mode dysfunction of the router to be measured.
The present invention can reach the test router ap mode to be measured by the subelement in this test topology Purpose.In the method for testing the router ap mode to be measured, at described router LAN mouthful to be measured controllably and LAN mouthfuls can not In the case of control, the 4th test machine is selected to be connected with first test machine respectively and controls the router to be measured, with Existing network environment in ap mode is simulated, by the router to be measured and can be held by the test machine for detecting cooperation test Test machine originally of traveling far and wide forms access, and then judge whether the ap mode function of the router to be measured is normal.
Further, the interaction of the interactive function and more wireless clients of single wireless client is detected in the step L13 Whether function, which is normally realized, specifically includes following steps:
Step L131, when the interactive function of the single wireless client of test, first test machine is controlled by described the One wireless network card and the router wireless connection to be measured;Enter step L132;
Step L132, first test machine is examined whether to be formed by router to be measured with the 4th test machine logical Road;If so, entering step L15, otherwise, L16 is entered step;
Step L133, when the interactive function for testing more wireless clients, first test machine is controlled by described the One wireless network card and the router wireless connection to be measured;And control second test machine by second wireless network card, Power splitter and the router wireless connection to be measured;Enter step L134;
Step L134, examine whether first test machine is formed by the router to be measured and the 4th test machine Access, meanwhile, whether second test machine is detected by the router to be measured and the 4th test machine formation access;If It is to enter step L15, otherwise, enters step L16.
When the router to be measured can be controlled by itself LAN mouthfuls, it is only necessary to only choose first test machine Router to be measured described in wireless connection or select simultaneously is treated described in first test machine and the second test machine wireless connection Survey router, you can test single interactive function of wireless client and the interactive function of more wireless clients respectively.It does not need to change Become original topological structure, you can complete the simulation and test of various situations.Test method is convenient and efficient.
Further, L2, test router route pattern method, include the following steps:
Step L21, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided to a virtual LAN, and the WAN mouths of the third test machine and the router to be measured are divided to separately One virtual LAN;
Step L22, the third test machine is set as dialup server and dialled;
Step L23, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet, after the third test machine dial-up success, examine the third test machine whether by the router to be measured with 4th test machine forms access;If so, enter step L26;Otherwise, L27 is entered step;
Step L24, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script, after the third test machine dial-up success, control first test machine by first wireless network card with The router wireless connection to be measured;Enter step L25;
Step L25, examine whether the third test machine is formed by the router to be measured and first test machine Access;If so, enter step L26;Otherwise, L27 is entered step;
Step L26, judge that the route pattern function of the router to be measured is normal;
Step L27, judge the route pattern dysfunction of the router to be measured.
The present invention, can be with the route pattern of test router.In this test, the third test machine is set as dialling Server, therefore, the WAN mouths of the third test machine and the router to be measured are divided to a virtual LAN, simulate Outer network environment;Then, it is controllable and uncontrollable two kinds in itself LAN mouthfuls of the router to be measured, select respectively described in 4th test machine and the first test machine perform script connect the third test machine by the router to be measured, examine Whether the 4th test machine and first test machine with third test machine form access, you can judge the router to be measured Route pattern function it is whether normal.
The method of the route pattern of test router with respect to the method for the ap mode of test router, is not made any The change of topological structure still continues to use original system architecture and completes test, convenient and efficient, and it is a kind of to eliminate previous often test Pattern is required for a kind of the drawbacks of new topological structure.
Further, L3, test router repeater mode method, include the following steps:
Step L31, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided to a virtual LAN, and the LAN mouths of the third test machine and the auxiliary router are divided to separately One virtual LAN;
Step L32, first wired network adapter and second wired network adapter are disabled;
Step L33, the wireless connection of first test machine and the router to be measured and second test machine are established With the wireless connection of the auxiliary router;
Step L34, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet controls the router delays to be measured whether to examine first test machine by described to the auxiliary router Router to be measured, auxiliary router and second test machine form access;If so, enter step L36;Otherwise it enters step L37;
Step L35, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script controls the router delays to be measured whether to detect first test machine by treating to the auxiliary router It surveys between router, auxiliary router and second test machine and forms access;If so, entering step L36, otherwise enter step L37;
Step L36, judge that the repeater mode function of the router to be measured is normal;
Step L37, judge the repeater mode dysfunction of the router to be measured.
The present invention, can be with the repeater mode of test router.In this test, according to the router to be measured itself Whether LAN mouthfuls controllable, chooses the 4th test machine or first test machine performs test script, make the router to be measured The auxiliary router is relayed to, then by whether detecting first test machine by the router to be measured, auxiliary route By forming access between device and second test machine, so as to judge whether the repeater mode function of the router to be measured is normal.
In the relay function for testing router to be measured, the present invention does not change the topological structure of original test topology yet, Complete the test of relay function.
Further, L4, test router more SSID patterns method, include the following steps:
Step L41, the interchanger is configured, the LAN mouths of the 4th test machine and the router to be measured are divided to One virtual LAN;
Step L42, first wired network adapter and second wired network adapter are disabled;
Step L43, test script, the control router generation at least two to be measured are performed by the 4th test machine Different SSID;
Step L44, first test machine is controlled to be associated with the one of the router to be measured by first wireless network card A SSID, and control second test machine is associated with another of the router to be measured by second wireless network card SSID;
Step L45, first test machine is detected whether after a SSID of the router to be measured is associated with, and passes through institute It states router to be measured and forms access with the 4th test machine;And whether detection second test machine is being associated with the road to be measured After a SSID of device, access is formed by the router to be measured and the 4th test machine;If so, L46 is entered step, Otherwise L47 is entered step;
Step L46;Judge that more SSID mode capabilities of the router to be measured are normal;
Step L47, judge that more SSID mode capabilities of the router to be measured are abnormal.
The present invention, can be with more SSID patterns of test router.In this test, by controlling first test machine Two different SSID of the router to be measured are associated with second test machine, and detect whether second test machine leads to It crosses the router to be measured and forms access with the 4th test machine, so as to judge more SSID patterns work(of the router to be measured Can whether normal.
Further, L5, test router bridge mode method, include the following steps:
Step L51, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided to a virtual LAN, and the LAN mouths of the third test machine and the auxiliary router are divided to separately One virtual LAN;
Step L52, first wired network adapter and second wired network adapter are disabled;
Step L53, the wireless connection of first test machine and the router to be measured and second test machine are established With the wireless connection of the auxiliary router;
Step L54, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet controls the route bridge to be measured to be connected to the auxiliary router, whether detects first test machine by described Router to be measured, auxiliary router and second test machine form access;If so, enter step L56;Otherwise it enters step L58;
Step L55, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script controls the route bridge to be measured to be connected to the auxiliary router, whether detects first test machine by treating It surveys between router, auxiliary router and second test machine and forms access;If so, entering step L56, otherwise enter step L58;
Step L56, it detects the auxiliary router and whether the SSID of the router to be measured is identical;If so, enter step Rapid L58, otherwise enters step L57;
Step L57, judge that the bridge mode function of the router to be measured is normal;
Step L58, judge the bridge mode dysfunction of the router to be measured.
The present invention, can be with test router bridge mode.In this test, according to the router to be measured itself Whether LAN mouthfuls controllable, chooses the 4th test machine or first test machine performs test script, make the router to be measured The auxiliary router is bridged to, then by whether detecting first test machine by the router to be measured, auxiliary route By forming access between device and second test machine, so as to judge whether the bridge mode function of the router to be measured is normal.
Further, tested in the step L14 second test machine whether by the router to be measured with it is described First test machine forms access and includes the following steps:
Step L141, it controls the router to be measured that second test machine is set as blacklist, examines described second Whether test machine can be associated with the router to be measured;If so, entering step L144, otherwise, L142 is entered step;
Step L142, it controls the router to be measured that second test machine is set as white list, examines described second Whether test machine can be associated with the router to be measured;If so, entering step L143, otherwise, L144 is entered step;
Step L143, described second test machine forms access by the router to be measured and first test machine;
Step L144, described second test machine does not form access by the router to be measured and first test machine.
The present invention, can be by setting black and white lists, between verification test machine whether the formation of access.The method is not limited to To in the detection of router ap mode, every detection being related to access, this method is all applicable in.
Compared with prior art, the present invention provides a kind of topological test system and test method of router multi-mode, until A kind of following technique effect is brought less:
1st, it for the test of router various modes, does not need to set up multiple test topologies, so as to save manpower and materials.
2nd, due to not needing to set up multiple test topologies, also greatly reduce test router various modes when Between, improve testing efficiency.
3rd, composition instrument easily obtains needed for test topology, it is desirable that and it is not high, it is all common instrument, it is of low cost.
Description of the drawings
Below by a manner of clearly understandable, preferred embodiment is described with reference to the drawings, to a kind of router multi-mode Characteristic, technical characteristic, advantage and its realization method of topological test system and test method are further described.
Fig. 1 is a kind of structure chart of the topological test system of router multi-mode of the present invention;
Fig. 2 be the present invention a kind of router multi-mode test method in router ap mode test flow chart;
Fig. 3 is the flow chart for the interactive function that single wireless client is tested in the ap mode test of router;
Fig. 4 is the flow chart for the interactive function that more wireless clients are tested in the ap mode test of router;
Fig. 5 be the present invention a kind of router multi-mode test method in router route pattern testing process Figure;
Fig. 6 be the present invention a kind of router multi-mode test method in router repeater mode testing process Figure;
Fig. 7 is a kind of testing process of more SSID patterns of the router of the test method of router multi-mode of the present invention Figure;
Fig. 8 is a kind of testing process of the bridge mode of the router of the test method of router multi-mode of the present invention Figure;
Fig. 9 is whether to test the second test machine by router to be measured and the first test machine in the ap mode test of router Form the flow chart of access.
Specific embodiment
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, control is illustrated below The specific embodiment of the present invention.It should be evident that the accompanying drawings in the following description is only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, so that simplified form is easy to understand, there is identical structure or function in some figures Component only symbolically depicts one of those or has only marked one of those.Herein, "one" is not only represented " only this " can also represent the situation of " more than one ".
With reference to shown in Fig. 1, the present invention provides a kind of embodiment of the topological test system of router multi-mode, including:
A kind of topological test system of router multi-mode, including:Router to be measured, the first test machine, the second test machine, Third test machine, the 4th test machine, the first wired network adapter, the second wired network adapter, third wired network adapter, the 4th wired network adapter, One wireless network card, the second wireless network card, interchanger, power splitter and auxiliary router, first test machine pass through described first Wired network adapter is connected with the interchanger, meanwhile, first test machine is also connect with first wireless network card;Described second Test machine is connected by second wired network adapter with the interchanger, meanwhile, second test machine also passes through described second Wireless network card is connect with the power splitter;The third test machine is connected by the third wired network adapter with the interchanger; 4th test machine is connected by the 4th wired network adapter with the interchanger;The LAN mouths and WAN of the auxiliary router Mouth is connect with the interchanger;The LAN mouths of the router to be measured and WAN mouthfuls are connect with the interchanger.
Specifically, in the present embodiment, the wireless signal that the second wireless network card is sent out can be divided into two strands by power splitter, be passed through The power splitter can allow the second wireless network card wireless with auxiliary router and router to be measured respectively according to test needs Connection.First wired network adapter, the second wired network adapter, third wired network adapter and the 4th wired network adapter disabling whether respectively by first Test machine, the second test machine, third test machine, the control of the 4th test machine, in the test of different mode, optionally to control not With wired break-make of test machine and interchanger.A kind of topological test system of router multi-mode proposed by the present invention, only relies on The test of router various modes can be completed in a set of topology, without complicated dismounts connection circuit, increases and decreases dependence test Equipment.
Another test topology of the present invention, on the basis of above-mentioned test topology structure, the interchanger has from first Eight ports of the 8th interface are interfaced to, wherein:The first interface connects first wired network adapter;The second interface connection Second wired network adapter;The third interface connects the third wired network adapter;The 4th interface connection the described 4th has Gauze card;5th interface connects the LAN mouths of the auxiliary router;6th interface connects the auxiliary router WAN mouthfuls;7th interface connects the LAN mouths of the router to be measured;8th interface connects the router to be measured WAN mouthfuls.
In the present embodiment, the quantity of each device used can meet a variety of router form test topologies of the present invention Build;But according to the difference for the pattern that the router of selection is tested, the quantity of each device used may regard concrete condition and increase and decrease, But as long as meeting the basic structure of the test topology of router various modes of the present invention, scope of the invention is just still fallen within It is interior.
The connection relation that the present invention passes through above equipment and equipment room, you can at least four router modes of test are not required to Increase and decrease equipment, it is not required that change the connection relation of equipment room.
Preferably, in any of the above-described test topology, first wired network adapter, the second wired network adapter, third wired network Card, the 4th wired network adapter are Gigabit Ethernet.
Specifically, the present invention accelerates signal transmission speed by the way that all wired network adapters are set as Gigabit Ethernet, so as to The response time for each device for participating in test is reduced, promotes testing efficiency.But also can be optionally --- if cost limits, determine to make With the network interface card of other rates.
The present invention also provides a kind of test methods of router multi-mode, and one kind described in any of the above-described embodiment can be used The topological test system of router multi-mode carries out the test of router various modes, specifically, with reference to shown in figure 2- Fig. 7, institute Test method is stated to include at least:
L1, the test router ap mode method;
L2, test router route pattern method;
L3, test router repeater mode method;
L4, test router more SSID patterns method.
The present invention does not need to increase and decrease equipment and changes the connection relation of equipment room, you can at least four router moulds of test Formula.
Wherein, L1, the test router ap mode method, refering to what is shown in Fig. 2, it includes the following steps:
Step L11, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided in a virtual LAN;
Step L12, first wired network adapter and second wired network adapter are disabled;
Step L13, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet, detects single interactive function of wireless client and whether the interactive function of more wireless clients is normally realized;If so, into Enter step L15, otherwise, enter step L16;
Step L14, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script controls first test machine by first wireless network card and the router wireless connection to be measured, and examines Second test machine is tested whether by the router to be measured and first test machine formation access;If so, it enters step Otherwise L15, enters step L16;
Step L15, judge that the ap mode function of the router to be measured is normal;
Step L16, judge the ap mode dysfunction of the router to be measured.
Specifically, in the method for testing the router ap mode to be measured, described router LAN mouthful to be measured it is controllable with In the case of LAN mouthfuls uncontrollable, the 4th test machine is selected to be connected with first test machine respectively and is controlled described to be measured Can router, by described to be measured by the test machine for detecting cooperation test to simulate network environment existing in ap mode Router and the test machine of perform script form access, and then judge whether the ap mode function of the router to be measured is normal.
The interactive function of single wireless client and more is detected preferably, in above method embodiment, in the step L13 Whether the interactive function of wireless client, which is normally realized, specifically includes:
A, the interactive function of single wireless client is tested, as shown in figure 3, including:
Step L131, when the interactive function of the single wireless client of test, first test machine is controlled by described the One wireless network card and the router wireless connection to be measured;Enter step L132;
Step L132, first test machine is examined whether to be formed by router to be measured with the 4th test machine logical Road;If so, entering step L15, otherwise, L16 is entered step;
Step L15, judge that the ap mode function of the router to be measured is normal;
Step L16, judge the ap mode dysfunction of the router to be measured.
B, the interactive function of more wireless clients is tested, as shown in figure 4, including:
Step L133, when the interactive function for testing more wireless clients, first test machine is controlled by described the One wireless network card and the router wireless connection to be measured;And control second test machine by second wireless network card, Power splitter and the router wireless connection to be measured;Enter step L134;
Step L134, examine whether first test machine is formed by the router to be measured and the 4th test machine Access, meanwhile, whether second test machine is detected by the router to be measured and the 4th test machine formation access;If It is to enter step L15, otherwise, enters step L16;
Step L15, judge that the ap mode function of the router to be measured is normal;
Step L16, judge the ap mode dysfunction of the router to be measured.
Specifically, when the router to be measured can be controlled by itself LAN mouthfuls, it is only necessary to only choose described first Router to be measured described in test machine wireless connection selects first test machine and the second test machine wireless connection simultaneously The router to be measured, you can test single interactive function of wireless client and the interactive function of more wireless clients respectively.No It needs to change original topological structure, you can complete the simulation and test of various situations.Test method is convenient and efficient.
L2, test router route pattern method, with reference to shown in Fig. 5, include the following steps:
Step L21, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided to a virtual LAN, and the WAN mouths of the third test machine and the router to be measured are divided to separately One virtual LAN;
Step L22, the third test machine is set as dialup server and dialled;
Step L23, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet, after the third test machine dial-up success, examine the third test machine whether by the router to be measured with 4th test machine forms access;If so, enter step L26;Otherwise, L27 is entered step;
Step L24, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script, after the third test machine dial-up success, control first test machine by first wireless network card with The router wireless connection to be measured;Enter step L25;
Step L25, examine whether the third test machine is formed by the router to be measured and first test machine Access;If so, enter step L26;Otherwise, L27 is entered step;
Step L26, judge that the route pattern function of the router to be measured is normal;
Step L27, judge the route pattern dysfunction of the router to be measured.
Specifically, in this test, the third test machine is set as dialup server, therefore, the third test machine A virtual LAN is divided to the WAN mouths of the router to be measured, simulates outer network environment;Then, on the road to be measured By LAN mouthfuls of device itself it is controllable and uncontrollable two kinds in the case of, select the 4th test machine and first test machine respectively Perform script connects the third test machine by the router to be measured, the 4th test machine and described first is examined to survey Test-run a machine whether with third test machine formed access, you can judge whether the route pattern function of the router to be measured normal.
The method of the route pattern of test router with respect to the method for the ap mode of test router, is not made any The change of topological structure still continues to use original system architecture and completes test, convenient and efficient, and it is a kind of to eliminate previous often test Pattern is required for a kind of the drawbacks of new topological structure.
L3, test router repeater mode method, with reference to shown in Fig. 6, include the following steps:
Step L31, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided to a virtual LAN, and the LAN mouths of the third test machine and the auxiliary router are divided to separately One virtual LAN;
Step L32, first wired network adapter and second wired network adapter are disabled;
Step L33, the wireless connection of first test machine and the router to be measured and second test machine are established With the wireless connection of the auxiliary router;
Step L34, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet controls the router delays to be measured whether to examine first test machine by described to the auxiliary router Router to be measured, auxiliary router and second test machine form access;If so, enter step L36;Otherwise it enters step L37;
Step L35, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script controls the router delays to be measured whether to detect first test machine by treating to the auxiliary router It surveys between router, auxiliary router and second test machine and forms access;If so, entering step L36, otherwise enter step L37;
Step L36, judge that the repeater mode function of the router to be measured is normal;
Step L37, judge the repeater mode dysfunction of the router to be measured.
Specifically, in this test, it is whether controllable according to itself LAN mouthfuls of the router to be measured, choose the described 4th Test machine or first test machine perform test script, make the router delays to be measured to the auxiliary router, then By whether detecting first test machine by being formed between the router to be measured, auxiliary router and second test machine Access, so as to judge whether the repeater mode function of the router to be measured is normal.In step L32, the first wired network adapter and institute If stating the second wired network adapter not disable, the first test machine and the second test machine can form wired loop, can not complete to test.
In the relay function for testing router to be measured, the present invention does not change the topological structure of original test topology yet, Complete the test of relay function.
L4, test router more SSID patterns method, with reference to shown in Fig. 7, include the following steps:
Step L41, the interchanger is configured, the LAN mouths of the 4th test machine and the router to be measured are divided to One virtual LAN;
Step L42, first wired network adapter and second wired network adapter are disabled;
Step L43, test script, the control router generation at least two to be measured are performed by the 4th test machine Different SSID;
Step L44, first test machine is controlled to be associated with the one of the router to be measured by first wireless network card A SSID, and control second test machine is associated with another of the router to be measured by second wireless network card SSID;
Step L45, first test machine is detected whether after a SSID of the router to be measured is associated with, and passes through institute It states router to be measured and forms access with the 4th test machine;And whether detection second test machine is being associated with the road to be measured After another SSID of device, access is formed by the router to be measured and the 4th test machine;If so, it enters step Otherwise L46 enters step L47;
Step L46;Judge that more SSID mode capabilities of the router to be measured are normal;
Step L47, judge that more SSID mode capabilities of the router to be measured are abnormal.
It is described to be measured by the way that first test machine is controlled to be associated with second test machine specifically, in this test Two different SSID of router, and detect whether second test machine is surveyed by the router to be measured and the described 4th Test-run a machine forms access, so as to judge whether more SSID mode capabilities of the router to be measured are normal.
Another embodiment of the test method of router multi-mode of the present invention on the basis of any of the above-described embodiment, increases The test of the bridge mode of router is added, specifically, the test method of the router multi-mode further includes:
The method of L5, test router bridge mode with reference to shown in Fig. 8, include the following steps:
Step L51, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouths be divided to a virtual LAN, and the LAN mouths of the third test machine and the auxiliary router are divided to separately One virtual LAN;
Step L52, first wired network adapter and second wired network adapter are disabled;
Step L53, the wireless connection of first test machine and the router to be measured and second test machine are established With the wireless connection of the auxiliary router;
Step L54, when the router to be measured is controlled by itself LAN mouthfuls, survey is performed in the 4th test machine Training sheet controls the route bridge to be measured to be connected to the auxiliary router, whether detects first test machine by described Router to be measured, auxiliary router and second test machine form access;If so, enter step L56;Otherwise it enters step L58;
Step L55, it when the router to be measured is not controlled by itself LAN mouthfuls, is performed in first test machine Test script controls the route bridge to be measured to be connected to the auxiliary router, whether detects first test machine by treating It surveys between router, auxiliary router and second test machine and forms access;If so, entering step L56, otherwise enter step L58;
Step L56, it detects the auxiliary router and whether the SSID of the router to be measured is identical;If so, enter step Rapid L58, otherwise enters step L57;
Step L57, judge that the bridge mode function of the router to be measured is normal;
Step L58, judge the bridge mode dysfunction of the router to be measured.
Specifically, in this test, it is whether controllable according to itself LAN mouthfuls of the router to be measured, choose the described 4th Test machine or first test machine perform test script, the route bridge to be measured are made to be connected to the auxiliary router, then By whether detecting first test machine by being formed between the router to be measured, auxiliary router and second test machine Access, so as to judge whether the bridge mode function of the router to be measured is normal.
Preferably, in any of the above-described embodiment in the test of router bridge mode, in the step L14 described in test Whether the second test machine is by the router to be measured and first test machine formation access, with reference to shown in Fig. 9, including following Step:
Step L141, it controls the router to be measured that second test machine is set as blacklist, examines described second Whether test machine can be associated with the router to be measured;If so, entering step L144, otherwise, L142 is entered step;
Step L142, it controls the router to be measured that second test machine is set as white list, examines described second Whether test machine can be associated with the router to be measured;If so, entering step L143, otherwise, L144 is entered step;
Step L143, described second test machine forms access by the router to be measured and first test machine;
Step L144, described second test machine does not form access by the router to be measured and first test machine.
Specifically, the present invention can be by setting black and white lists, between verification test machine whether the formation of access.The method is not It is confined in the detection to router ap mode, every detection being related to access, this method is all applicable in.And this detection is not limited to In being detected by way of setting black and white lists, can also pass through:Test is by control terminal (selected test machine) to be measured The SSID set in router is either with or without coming into force, test being turned on and off whether coming into force, testing children's online duration for DHCP The methods of whether coming into force completes the test whether the second test machine forms access by router to be measured and the first test machine.
Likewise, the test thought that access should be carried out by black and white lists or other modes is also applied for the routing of router The test of the functions such as pattern, repeater mode, bridge mode, more SSID patterns is repeated to reduce, and is no longer repeated one by one herein specific Each pattern under path testing flow.
The topological test system and test method of a kind of router multi-mode proposed by the present invention, for different routers When form is tested, increase and decrease equipment is not needed to, only relies on set of system, you can complete the test of a variety of router forms.Section Manpower and materials have been saved, have further increased testing efficiency.
It should be noted that above-described embodiment can be freely combined as needed.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention Under, several improvements and modifications can also be made, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of topological test system of router multi-mode, which is characterized in that including:Router to be measured, the first test machine, Two test machines, third test machine, the 4th test machine, the first wired network adapter, the second wired network adapter, third wired network adapter, the 4th have Gauze card, the first wireless network card, the second wireless network card, interchanger, power splitter and auxiliary router;Wherein:
First test machine is connected by first wired network adapter with the interchanger, meanwhile, first test machine is also It is connect by first wireless network card with auxiliary router;
Second test machine is connected by second wired network adapter with the interchanger, meanwhile, second test machine is also It is connect respectively with router to be measured and auxiliary router by second wireless network card, the power splitter;
The third test machine is connected by the third wired network adapter with the interchanger;
4th test machine is connected by the 4th wired network adapter with the interchanger;
The LAN mouths of the auxiliary router and WAN mouthfuls are connect with the interchanger;
The LAN mouths of the router to be measured and WAN mouthfuls are connect with the interchanger.
A kind of 2. topological test system of router multi-mode according to claim 1, which is characterized in that the interchanger With from first interface to eight ports of the 8th interface;Wherein:
The first interface connects first wired network adapter;
The second interface connects second wired network adapter;
The third interface connects the third wired network adapter;
4th interface connects the 4th wired network adapter;
5th interface connects the LAN mouths of the auxiliary router;
6th interface connects the WAN mouths of the auxiliary router;
7th interface connects the LAN mouths of the router to be measured;
8th interface connects the WAN mouths of the router to be measured.
3. a kind of topological test method of router multi-mode, which is characterized in that applied to claims 1 or 2 any one institute A kind of topological test system for the router multi-mode stated, the test method include at least:
L1, test router ap mode method;
L2, test router route pattern method;
L3, test router repeater mode method;
L4, test router more SSID patterns method.
4. the test method of router various modes according to claim 3, which is characterized in that the L1 test routers Ap mode method, include the following steps:
Step L11, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouthfuls are divided in a virtual LAN;
Step L12, first wired network adapter and second wired network adapter are disabled;
Step L13, when the router to be measured is controlled by itself LAN mouthfuls, test foot is performed in the 4th test machine This, detects single interactive function of wireless client and whether the interactive function of more wireless clients is normally realized;If so, enter step Otherwise rapid L15, enters step L16;
Step L14, when the router to be measured is not controlled by itself LAN mouthfuls, test is performed in first test machine Script controls first test machine by first wireless network card and the router wireless connection to be measured, and inspection institute The second test machine is stated whether by the router to be measured and first test machine formation access;If so, L15 is entered step, Otherwise, L16 is entered step;
Step L15, judge that the ap mode function of the router to be measured is normal;
Step L16, judge the ap mode dysfunction of the router to be measured.
5. the test method of a kind of router multi-mode according to claim 4, which is characterized in that in the step L13 Whether the interactive function of the single wireless client of detection and the interactive function of more wireless clients are normally realized and specifically include following step Suddenly:
Step L131, when the interactive function of the single wireless client of test, first test machine is controlled to pass through first nothing Gauze card and the router wireless connection to be measured;Enter step L132;
Step L132, whether first test machine is examined by router to be measured and the 4th test machine formation access;If It is to enter step L15, otherwise, enters step L16;
Step L133, when the interactive function for testing more wireless clients, first test machine is controlled to pass through first nothing Gauze card and the router wireless connection to be measured;And control second test machine passes through second wireless network card, work(point Device and the router wireless connection to be measured;Enter step L134;
Step L134, first test machine is examined whether to be formed by the router to be measured with the 4th test machine logical Road, meanwhile, whether second test machine is detected by the router to be measured and the 4th test machine formation access;If It is to enter step L15, otherwise, enters step L16.
6. the test method of router various modes according to claim 3, which is characterized in that the L2 test routers Route pattern method, include the following steps:
Step L21, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouthfuls are divided to a virtual LAN, and the WAN mouths of the third test machine and the router to be measured are divided to another A virtual LAN;
Step L22, the third test machine is set as dialup server and dialled;
Step L23, when the router to be measured is controlled by itself LAN mouthfuls, test foot is performed in the 4th test machine This, after the third test machine dial-up success, examine the third test machine whether by the router to be measured with it is described 4th test machine forms access;If so, enter step L26;Otherwise, L27 is entered step;
Step L24, when the router to be measured is not controlled by itself LAN mouthfuls, test is performed in first test machine Script, after the third test machine dial-up success, control first test machine by first wireless network card with it is described Router wireless connection to be measured;Enter step L25;
L25, whether the third test machine is examined by the router to be measured and first test machine formation access;If It is to enter step L26;Otherwise, L27 is entered step;
Step L26, judge that the route pattern function of the router to be measured is normal;
Step L27, judge the route pattern dysfunction of the router to be measured.
7. the test method of router various modes according to claim 3, which is characterized in that
The method of the repeater mode of the L3 test routers, includes the following steps:
Step L31, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouthfuls are divided to a virtual LAN, and the LAN mouths of the third test machine and the auxiliary router are divided to another A virtual LAN;
Step L32, first wired network adapter and second wired network adapter are disabled;
Step L33, the wireless connection of first test machine and the router to be measured and second test machine and institute are established State the wireless connection of auxiliary router;
Step L34, when the router to be measured is controlled by itself LAN mouthfuls, test foot is performed in the 4th test machine This, controls the router delays to be measured whether to examine first test machine by described to be measured to the auxiliary router Router, auxiliary router and second test machine form access;If so, enter step L36;Otherwise L37 is entered step;
Step L35, when the router to be measured is not controlled by itself LAN mouthfuls, test is performed in first test machine Script controls the router delays to be measured to detect whether first test machine passes through road to be measured to the auxiliary router By forming access between device, auxiliary router and second test machine;If so, entering step L36, L37 is otherwise entered step;
Step L36, judge that the repeater mode function of the router to be measured is normal;
Step L37, judge the repeater mode dysfunction of the router to be measured.
8. the test method of router various modes according to claim 3, which is characterized in that
The method of more SSID patterns of the L4 test routers, includes the following steps:
Step L41, the interchanger is configured, the LAN mouths of the 4th test machine and the router to be measured are divided to one Virtual LAN;
Step L42, first wired network adapter and second wired network adapter are disabled;
Step L43, test script is performed by the 4th test machine, the control router generation at least two to be measured is different SSID;
Step L44, first test machine is controlled by one of first wireless network card association router to be measured SSID, and control another SSID of second test machine by second wireless network card association router to be measured;
Step L45, first test machine is detected after a SSID of the router to be measured is associated with, if is treated by described It surveys router and forms access with the 4th test machine;And detection second test machine is being associated with the another of the router to be measured After one SSID, if form access by the router to be measured and the 4th test machine;If so, L46 is entered step, it is no Then enter step L47;
Step L46;Judge that more SSID mode capabilities of the router to be measured are normal;
Step L47, judge that more SSID mode capabilities of the router to be measured are abnormal.
9. the test method of router various modes according to claim 3, which is characterized in that further include:
The method of L5, test router bridge mode, include the following steps:
Step L51, the interchanger is configured, by the interchanger by the 4th test machine and the router to be measured LAN mouthfuls are divided to a virtual LAN, and the LAN mouths of the third test machine and the auxiliary router are divided to another A virtual LAN;
Step L52, first wired network adapter and second wired network adapter are disabled;
Step L53, the wireless connection of first test machine and the router to be measured and second test machine and institute are established State the wireless connection of auxiliary router;
Step L54, when the router to be measured is controlled by itself LAN mouthfuls, test foot is performed in the 4th test machine This, controls the route bridge to be measured to be connected to the auxiliary router, whether detects first test machine by described to be measured Router, auxiliary router and second test machine form access;If so, enter step L56;Otherwise L58 is entered step;
Step L55, when the router to be measured is not controlled by itself LAN mouthfuls, test is performed in first test machine Script controls the route bridge to be measured to be connected to the auxiliary router, detects whether first test machine passes through road to be measured By forming access between device, auxiliary router and second test machine;If so, entering step L56, L58 is otherwise entered step;
Step L56, it detects the auxiliary router and whether the SSID of the router to be measured is identical;If so, it enters step Otherwise L58 enters step L57;
Step L57, judge that the bridge mode function of the router to be measured is normal;
Step L58, judge the bridge mode dysfunction of the router to be measured.
10. according to the test method of claim 3-9 any one of them router various modes, which is characterized in that the step Tested in rapid L14 second test machine whether by the router to be measured and first test machine formed access include with Lower step:
Step L141, it controls the router to be measured that second test machine is set as blacklist, examines second test Whether machine can be associated with the router to be measured;If so, entering step L144, otherwise, L142 is entered step;
Step L142, it controls the router to be measured that second test machine is set as white list, examines second test Whether machine can be associated with the router to be measured;If so, entering step L143, otherwise, L144 is entered step;
Step L143, described second test machine forms access by the router to be measured and first test machine;
Step L144, described second test machine does not form access by the router to be measured and first test machine.
CN201810203301.2A 2018-03-13 2018-03-13 The topological test system and test method of a kind of router multi-mode Pending CN108199930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810203301.2A CN108199930A (en) 2018-03-13 2018-03-13 The topological test system and test method of a kind of router multi-mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810203301.2A CN108199930A (en) 2018-03-13 2018-03-13 The topological test system and test method of a kind of router multi-mode

Publications (1)

Publication Number Publication Date
CN108199930A true CN108199930A (en) 2018-06-22

Family

ID=62595137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810203301.2A Pending CN108199930A (en) 2018-03-13 2018-03-13 The topological test system and test method of a kind of router multi-mode

Country Status (1)

Country Link
CN (1) CN108199930A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667693A (en) * 2018-07-24 2018-10-16 成都西加云杉科技有限公司 Testing throughput system and method
CN108924009A (en) * 2018-07-12 2018-11-30 深圳市极致汇仪科技有限公司 A kind of test method and test macro of high-throughput
CN109104329A (en) * 2018-07-02 2018-12-28 四川斐讯信息技术有限公司 A kind of system of test router and network interface card compatibility
CN110808870A (en) * 2019-09-30 2020-02-18 深圳市九洲电器有限公司 Router testing method and related product
CN110808882A (en) * 2019-11-06 2020-02-18 武汉联影医疗科技有限公司 Test system and method
CN110896366A (en) * 2019-05-14 2020-03-20 研祥智能科技股份有限公司 Network card function testing method and device of multi-network card equipment and storage medium
CN111343661A (en) * 2020-03-16 2020-06-26 深圳市吉祥腾达科技有限公司 Method and device for testing blacklist function and computer readable storage medium
CN113660135A (en) * 2021-08-05 2021-11-16 深圳市共进电子股份有限公司 Communication electronic product test system and communication electronic product test method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100124177A1 (en) * 2008-11-20 2010-05-20 Fujitsu Limited Method for specifying input edge router
CN104753743A (en) * 2015-04-27 2015-07-01 太仓市同维电子有限公司 Automatic testing method based on automatic testing tool router function
CN106533823A (en) * 2016-10-14 2017-03-22 上海斐讯数据通信技术有限公司 Automated testing system, method and recyclable sending device
CN106612213A (en) * 2015-10-26 2017-05-03 中国移动通信集团公司 An equipment test method and apparatus
CN107579880A (en) * 2017-10-12 2018-01-12 上海斐讯数据通信技术有限公司 A kind of network-building method and system of test router various flow rate model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100124177A1 (en) * 2008-11-20 2010-05-20 Fujitsu Limited Method for specifying input edge router
CN104753743A (en) * 2015-04-27 2015-07-01 太仓市同维电子有限公司 Automatic testing method based on automatic testing tool router function
CN106612213A (en) * 2015-10-26 2017-05-03 中国移动通信集团公司 An equipment test method and apparatus
CN106533823A (en) * 2016-10-14 2017-03-22 上海斐讯数据通信技术有限公司 Automated testing system, method and recyclable sending device
CN107579880A (en) * 2017-10-12 2018-01-12 上海斐讯数据通信技术有限公司 A kind of network-building method and system of test router various flow rate model

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104329A (en) * 2018-07-02 2018-12-28 四川斐讯信息技术有限公司 A kind of system of test router and network interface card compatibility
CN109104329B (en) * 2018-07-02 2023-11-07 深圳市速速优科技有限公司 System for testing compatibility of router and network card
CN108924009A (en) * 2018-07-12 2018-11-30 深圳市极致汇仪科技有限公司 A kind of test method and test macro of high-throughput
CN108924009B (en) * 2018-07-12 2020-08-25 深圳市极致汇仪科技有限公司 High-throughput testing method and system
CN108667693B (en) * 2018-07-24 2020-10-09 成都西加云杉科技有限公司 Throughput testing system and method
CN108667693A (en) * 2018-07-24 2018-10-16 成都西加云杉科技有限公司 Testing throughput system and method
CN110896366A (en) * 2019-05-14 2020-03-20 研祥智能科技股份有限公司 Network card function testing method and device of multi-network card equipment and storage medium
CN110896366B (en) * 2019-05-14 2021-08-13 研祥智能科技股份有限公司 Network card function testing method and device of multi-network card equipment and storage medium
CN110808870A (en) * 2019-09-30 2020-02-18 深圳市九洲电器有限公司 Router testing method and related product
CN110808882B (en) * 2019-11-06 2022-01-28 武汉联影医疗科技有限公司 Test system and method
CN110808882A (en) * 2019-11-06 2020-02-18 武汉联影医疗科技有限公司 Test system and method
CN111343661A (en) * 2020-03-16 2020-06-26 深圳市吉祥腾达科技有限公司 Method and device for testing blacklist function and computer readable storage medium
CN113660135A (en) * 2021-08-05 2021-11-16 深圳市共进电子股份有限公司 Communication electronic product test system and communication electronic product test method

Similar Documents

Publication Publication Date Title
CN108199930A (en) The topological test system and test method of a kind of router multi-mode
CN106487558B (en) A kind of method and apparatus for realizing the scalable appearance of access device
CN105406992B (en) A kind of business demand conversion and dispositions method towards SDN
CN104853001B (en) A kind of processing method and equipment of ARP message
CN103166826A (en) Methods and apparatus for implementing a fibre channel zone policy
CN108924768A (en) The ad hoc network method and system and smart machine of a kind of smart machine
CN107104897A (en) Data transmission method and system based on path
CN110233746A (en) A kind of home intranet method and home intranet AP
CN109462529A (en) Distribution method, apparatus and household appliance based on Mesh network
CN106209430A (en) The method of a kind of wireless network extension and wireless router
CN107094091B (en) A kind of intelligent substation station level network configuration method of calibration and system
CN104486174B (en) The network-building method and device of a kind of intelligent terminal
CN106656663A (en) Bit flip fault injection method and system for CAN (Controller Area Network) bus data link layer
Wang et al. NCTUns network simulation and emulation for wireless resource management
CN105933236A (en) Method and device for updating SDN (Software Defined Network) flow table
CN103813350B (en) Agricultural internet of things cloud communication system performance simulation platform
CN106656667B (en) Test method, system and the control device of interchanger forwarding performance
CN108667668A (en) The access method for routing of base is connected under a kind of urban road scene based on car networking
CN107241283A (en) A kind of East and West direction network traffics mirror image acquisition method across main frame tenant
CN106034071A (en) Data message transmission method and edge routing bridge equipment
CN106301446A (en) Tactical radio set networking debugging and training platform
CN106713164A (en) System, method and apparatus for balancing flow between switch ports
CN108961727A (en) Parallel meter register method and device
CN107508645A (en) A kind of water sound sensor network analog detection method and its platform
CN107087265A (en) A kind of communicator and method for connecting multiple WiFi Direct groups

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180622

WD01 Invention patent application deemed withdrawn after publication