Disclosure of Invention
The technical problem to be solved by the invention is to provide a router function testing system to realize the test of various router functions in a testing hardware environment.
In order to solve the above technical problem, the present application provides a router function testing system, which includes: the system comprises a switch, a first terminal device, a second terminal device, a third terminal device, at least one mobile terminal, a test router and a router to be tested;
wherein the first end device is connected to a first port of the switch; the second terminal device is connected to a second port of the switch; the third terminal device is connected to a third port of the switch; the LAN port of the test router is connected to the fourth port of the switch, and the WAN port is connected to the fifth port of the switch; the LAN port of the router to be tested is connected to the sixth port of the switch, and the WAN port of the router to be tested is connected to the seventh port of the switch; the first terminal equipment is also connected to a mobile terminal; the mobile terminal is connected to a wireless network of the router to be tested;
each port of the switch divides a virtual local area network according to the test content; the first terminal equipment controls the mobile terminal to configure the connection function of the router to be tested according to the test content; testing based on the connection relationship among the devices, wherein the test content comprises: the mobile terminal carries out communication test through the router to be tested, the switch or the router to be tested, the test router and the switch and the second terminal equipment or the third terminal equipment in different connection modes so as to test the connection function of the router to be tested.
Optionally, the router function test system includes two mobile terminals; the first mobile terminal runs a first operating system, and the second mobile terminal runs a second operating system.
Optionally, the second port and the sixth port of the switch are divided into the same virtual local area network, and the first terminal device controls the mobile terminal to configure the router to be tested into an access point mode;
the test content specifically comprises: the mobile terminal performs communication test with the second terminal equipment through the router to be tested and the switch so as to verify whether the access point mode of the router to be tested is normal; and the router to be tested communicates with the switch by using the LAN port.
Optionally, the second port and the sixth port of the switch are divided into the same virtual local area network, and the first terminal device controls the mobile terminal to configure the router to be tested into a routing mode;
the test content specifically comprises: the mobile terminal performs communication test with the second terminal equipment through the router to be tested and the switch so as to verify whether the function of the routing mode of the router to be tested is normal or not; and the router to be tested communicates with the switch by using the LAN port.
Optionally, a third port and a seventh port of the switch are divided into the same virtual local area network, and the first terminal device controls the mobile terminal to configure the router to be tested into a routing mode;
the test content specifically comprises: the mobile terminal performs communication test with the third terminal equipment through the router to be tested and the switch to verify whether the function of the routing mode of the router to be tested is normal; the router to be tested communicates with the switch through a WAN port, a dialing server is arranged on the third terminal device, and the router to be tested establishes communication connection with the third terminal through dialing.
Optionally, the second port and the fourth port of the switch are divided into the same virtual local area network, and the first terminal device controls the mobile terminal to configure the router to be tested into a bridge mode;
the test content specifically comprises: the mobile terminal performs communication test with the second terminal device through the router to be tested, the test router and the switch to verify whether the function of the bridge mode of the router to be tested is normal; the testing router communicates with the switch through the LAN port, the router to be tested is in wireless bridging connection with the testing router, and the mobile terminal is connected to a wireless network generated after the router to be tested is in bridging connection.
Optionally, the third port and the fifth port of the switch are divided into the same virtual local area network, and the first terminal device controls the mobile terminal to configure the router to be tested into a bridge mode;
the test content specifically comprises: the mobile terminal performs communication test with the third terminal equipment through the router to be tested, the test router and the switch to verify whether the function of the bridge mode of the router to be tested is normal; the testing router communicates with the switch by using a WAN port, a dial-up server is arranged on the third terminal equipment, and the testing router establishes communication connection with the third terminal through dial-up; the router to be tested is in wireless bridging connection with the test router, and the mobile terminal is connected to a wireless network generated after the router to be tested is in bridging connection.
Optionally, the test router is a dual-frequency router; and during testing, the two frequency bands of the router to be tested are respectively tested.
Optionally, the communication test includes: check whether the communication is normal through Ping command.
Optionally, the first terminal device controls the switch through a serial port, so that each port of the switch divides the virtual local area network according to the test content.
The application relates to a switch, a first terminal device, a second terminal device, a third terminal device, at least one mobile terminal, a test router and a router to be tested, and has the following connection relation: the first terminal device is connected to a first port of the switch; the second terminal device is connected to a second port of the switch; the third terminal device is connected to a third port of the switch; the LAN port of the test router is connected to the fourth port of the switch, and the WAN port is connected to the fifth port of the switch; the LAN port of the router to be tested is connected to the sixth port of the switch, and the WAN port of the router to be tested is connected to the seventh port of the switch; the first terminal equipment is also connected to a mobile terminal; the mobile terminal is connected to a wireless network of the router to be tested; each port of the switch divides a virtual local area network according to the test content; the first terminal equipment controls the mobile terminal to configure the connection function of the router to be tested according to the test content; and testing based on the connection relationship among the devices, wherein the test content comprises: the mobile terminal carries out communication test through the router to be tested, the switch or the router to be tested, the test router and the switch and the second terminal equipment or the third terminal equipment in different connection modes so as to test the connection function of the router to be tested. The method and the device realize the test of various router functions in one test environment, save test resources and realize coherent and easy-to-operate automatic test.
Detailed Description
The following are specific embodiments of the present invention and are further described with reference to the drawings, but the present invention is not limited to these embodiments.
It should also be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
The embodiment of the application relates to a switch, a first terminal device, a second terminal device, a third terminal device, at least one mobile terminal, a test router and a router to be tested.
The router to be tested can be configured to be in an access point mode, a routing mode and a bridging mode. In the access point mode, the router only needs to configure the wireless SSID and the security policy, and the LAN port is directly connected with the network cable. In the routing mode, the WAN port of the router is used for connecting with an ADSL Modem or a cell wired broadband, and can automatically log in to enter Internet access provided by an ISP (Internet service provider) by using a PPPoE (Point-to-Point protocol over Ethernet) protocol, and in the mode, a wireless SSID (service set identifier), a wireless security policy and a WAN port connection mode need to be configured. In the bridging mode, the router firstly establishes wireless connection with a front-end wireless network, then sends a wireless signal to form a new wireless coverage range, and can effectively solve the wireless coverage problems of signal weakness, signal blind spots and the like. The configuration can be specifically performed according to actual needs, and details are not described here.
The first terminal device, the second terminal device and the third terminal device may be computer devices, operating systems such as Windows and Mac OS may be run on the computer devices, and automation control software may be installed on the computer devices.
The mobile terminal may be a smart phone or a tablet computer, and the operating system running on the smart phone may be a common operating system, such as Android and IOS. The router to be tested can be set in function through the router APP on the mobile terminal.
The test router can be a dual-frequency router and supports wireless networks of two frequency bands, such as 2.4G WiFi and 5G WiFi. During testing, two frequency bands can be used for respective testing.
FIG. 1 is a schematic block diagram illustrating a router functionality test system in accordance with an exemplary embodiment. As shown in the drawings, in this embodiment of the present application, the router function testing system includes:
the system comprises a switch 18, a first terminal device 11, a second terminal device 12, a third terminal device 13, at least one mobile terminal (14, 15), a test router 17 and a router under test 16.
The router function test system has the following hardware connection relationship: the first terminal device 11 is connected to a first port of the switch 18; the second end device 12 is connected to a second port of the switch 18; said third terminal device 13 is connected to a third port of said switch 18; the LAN port of the test router 17 is connected to the fourth port of the switch 18, and the WAN port is connected to the fifth port of the switch 18; the LAN port of the router 16 to be tested is connected to the sixth port of the switch 18, and the WAN port is connected to the seventh port of the switch 18; the first terminal device 11 is also connected to a mobile terminal (14, 15); the mobile terminals (14, 15) are connected to a wireless network of a router under test 16;
each port of the switch 18 divides a virtual local area network according to the test content; the first terminal equipment 11 controls the mobile terminals (14, 15) to configure the connection function of the router 16 to be tested according to the test content; testing based on the connection relationship among the devices, wherein the test content comprises: the mobile terminals (14, 15) perform communication test with the second terminal device 12 or the third terminal device 13 in different connection modes through the router 16 to be tested, the switch 18 or the router 16 to be tested, the test router 17 and the switch 18 to test the connection function of the router 16 to be tested.
In an embodiment of the present application, the connection function at least includes: access point mode, routing mode, bridging mode. The hardware connection scheme related to the application can cover various functions of the router, and further realizes the test of the functions, such as power test and throughput test.
In the embodiment of the present application, the switch 18 includes: the switch 18 has a function of dividing Virtual Local Area Networks (VLANs), so that various network models can be conveniently established.
In this embodiment of the application, the first terminal device 11 controls the switch 18 through a serial port, so that each port of the switch 18 divides a virtual local area network according to test contents.
In the embodiment of the application, the mobile terminals (14, 15) are provided with the router APP, and the router 16 to be tested is configured through the router APP.
Optionally, the first terminal device 11 is connected to the mobile terminal (14, 15) through a USB interface, and further controls the router APP thereon to configure the router to be tested.
In the embodiment of the present application, the test router 17 is configured to provide a wireless network for testing the bridge mode of the router under test 16.
In the embodiment of the present application, a dial server is provided on the third terminal device 13, and the test router 17 and the router under test 16 may be connected to the third terminal device 13 by dial-up.
In this embodiment, the second terminal device 12 and the third terminal device 13 may be used for simulating a wide area network, so that the second terminal device 12 and the third terminal device 13 may be connected to each other.
In the embodiment of the application, the router function testing system comprises two mobile terminals; the first mobile terminal runs a first operating system, and the second mobile terminal runs a second operating system. The first mobile terminal and the second mobile terminal can be devices such as a smart phone and a tablet computer; the first operating system and the second operating system can be Android, IOS and other operating systems, and the specific operating system and the mobile terminal are not limited in the application and can be determined according to actual needs.
In an embodiment of the present application, the communication test includes: check whether the communication is normal through Ping command. The Ping command may be used to see if normal communication between the devices is possible.
Whether normal communication can be carried out between the mobile terminals (14, 15) and the second terminal equipment 12 and the third terminal equipment 13 is checked through the ping command so as to judge whether the functions of the router are normally operated.
The mobile terminals (14, 15) and the second terminal device 12 and the third terminal device 13 may be connected in different ways, and may be configured to correspond to different configurations of routers.
Specifically, each port of the switch 18 divides a virtual local area network according to test contents; the first terminal equipment 11 controls the mobile terminals (14, 15) to configure the connection function of the router 16 to be tested according to the test content; testing based on the connection relationship among the devices, wherein the test content comprises: the mobile terminals (14, 15) perform communication test with the second terminal device 12 or the third terminal device 13 in different connection modes through the router 16 to be tested, the switch 18 or the router 16 to be tested, the test router 17 and the switch 18 to test the connection function of the router 16 to be tested. The test content can be determined according to actual conditions, the test content is a test of various connection functions, a virtual local area network is flexibly divided through a switch, both a LAN port and a WAN port of the router can be connected to the second terminal device 12 and the third terminal device 13, the router can also be bridged to the test router 17, and different connection functions of the router to be tested 16 can be correspondingly tested through connection in different modes.
In addition, the test router 17 may be a dual-band router supporting wireless networks of two frequency bands, such as 2.4G WiFi and 5G WiFi. During testing, two frequency bands can be used for respective testing.
The router function testing system provided by the application can be used for testing various router functions, such as various working modes (access point mode, routing mode and bridging mode), throughput testing, power testing, stability testing and the like. The method and the device realize the test of various router functions in one test environment, save test resources and realize coherent and easy-to-operate automatic test.
Fig. 2 is a schematic block diagram illustrating one test of a router function test system in accordance with an illustrative embodiment. On the basis of the corresponding embodiment of fig. 1, a specific test content of the router function test system is shown. Relating to a mobile terminal 21, a router 22 to be tested, a switch 23, a second terminal device 24.
In this embodiment, the second port and the sixth port of the switch 23 are divided into the same virtual local area network, and the first terminal device controls the mobile terminal 21 to configure the router 22 to be tested into the access point mode;
the test content specifically comprises: the mobile terminal 21 performs a communication test with the second terminal device 24 through the router 22 to be tested and the switch 23 to verify whether the function of the access point mode of the router 22 to be tested is normal; where the router under test 22 communicates with the switch using a LAN port.
In the present embodiment, the connection relation involved is based on the hardware connection in the embodiment shown in fig. 1. The specific hardware connections are as follows: the mobile terminal 21 is connected to a wireless network of the router 22 to be tested; the LAN port of the router under test 22 is connected to the sixth port of the switch; a second port of the switch 23 is connected to a second terminal device 24.
In this embodiment, the second terminal device 24 may be used to emulate providing a web connection.
In this embodiment, the communication test includes: check whether the communication is normal through Ping command.
In the present embodiment, it is verified whether the access point mode of the router under test 22 can be used normally by verifying whether the mobile terminal 21 and the second terminal device 24 can communicate normally using the above connection relationship. The present embodiment provides a specific test of the router function test system, which is used to test whether the access point mode of the router is normal.
Fig. 3 is a schematic block diagram illustrating one test of a router functionality test system in accordance with an exemplary embodiment. On the basis of the corresponding embodiment of fig. 1, a specific test content of the router function test system is shown. To the mobile terminal 31, the router under test 32, the switch 33, the second terminal device 34.
In this embodiment, the second port and the sixth port of the switch 33 are divided into the same virtual local area network, and the first terminal device controls the mobile terminal 31 to configure the router to be tested 32 into the routing mode;
the test content specifically comprises: the mobile terminal 31 performs a communication test with the second terminal device 34 through the router to be tested 32 and the switch 33 to verify whether the function of the routing mode of the router to be tested 32 is normal; the router under test 32 communicates with the switch using a LAN port.
In the present embodiment, the connection relation involved is based on the hardware connection in the embodiment shown in fig. 1. The specific hardware connections are as follows: the mobile terminal 31 is connected to a wireless network of the router to be tested 32; the LAN port of the router under test 32 is connected to the sixth port of the switch; a second port of the switch 33 is connected to a second end device 34.
In this embodiment, the second terminal device 34 may be used to emulate providing a web connection.
In this embodiment, the communication test includes: check whether the communication is normal through Ping command.
In the present embodiment, it is verified whether the routing mode of the router under test 32 can be used normally by verifying whether the mobile terminal 31 and the second terminal device 34 can communicate normally using the above-described connection relationship. The embodiment provides a specific test of the router function test system, which is used for testing whether the routing mode of the router is normal.
Fig. 4 is a schematic block diagram illustrating one test of a router function test system in accordance with an exemplary embodiment. On the basis of the corresponding embodiment of fig. 1, a specific test content of the router function test system is shown. To a mobile terminal 41, a router under test 42, a switch 43, a third terminal device 44.
In this embodiment, the third port and the seventh port of the switch 43 are divided into the same virtual local area network, and the first terminal device controls the mobile terminal 41 to configure the router to be tested 42 into the routing mode;
the test content specifically comprises: the mobile terminal 41 performs a communication test with the third terminal device 44 through the router 42 to be tested and the switch 43 to verify whether the function of the routing mode of the router 42 to be tested is normal; the router 42 to be tested communicates with the switch 43 through a WAN port, a dial-up server is provided on the third terminal device 44, and the router 42 to be tested establishes communication connection with the third terminal device 44 through dial-up.
In the present embodiment, the connection relation involved is based on the hardware connection in the embodiment shown in fig. 1. The specific hardware connections are as follows: the mobile terminal 41 is connected to a wireless network of the router to be tested 42; the WAN port of the router to be tested 42 is connected to the seventh port of the switch; the third port of the switch 43 is connected to a third terminal device 44.
In this embodiment, the third terminal device 44 may be used to simulate providing a world wide web connection, and a dial-up server is provided at the third terminal device 44 for dial-up connection of the router under test 42.
In the present embodiment, it is verified whether the routing mode of the router under test 42 can be used normally by verifying whether the mobile terminal 41 and the third terminal device 44 can communicate normally using the above-described connection relationship. The embodiment provides a specific test of the router function test system, which is used for testing whether the routing mode of the router is normal.
Fig. 5 is a schematic block diagram illustrating one test of a router functionality testing system in accordance with an exemplary embodiment. On the basis of the corresponding embodiment of fig. 1, a specific test content of the router function test system is shown. To a mobile terminal 51, a router under test 52, a test router 53, a switch 54, a second terminal device 55.
In this embodiment, the second port and the fourth port of the switch 54 are divided into the same virtual local area network, and the first terminal device controls the mobile terminal 51 to configure the router to be tested 52 in the bridge mode.
In this embodiment, the test content specifically includes: the mobile terminal 51 performs a communication test with the second terminal device 55 through the router to be tested 52, the test router 53, and the switch 54 to verify whether the function of the bridge mode of the router to be tested 52 is normal; the test router 53 communicates with the switch 54 through a LAN port, the router 52 to be tested is wirelessly bridged to the test router 53, and the mobile terminal 51 is connected to a wireless network generated after the router 52 to be tested is bridged.
In the present embodiment, the connection relation involved is based on the hardware connection in the embodiment shown in fig. 1. The specific hardware connections are as follows: the mobile terminal 51 is connected to a wireless network of the router to be tested 52; the router to be tested 52 bridges a wireless network to the test router 53; the LAN port of the test router 53 is connected to the fourth port of the switch 54; a second port of the switch 54 is connected to a second end device 55.
In this embodiment, the second terminal device 55 may be used to emulate providing a web connection.
In addition, the test router 53 may be a dual-band router supporting wireless networks of two frequency bands, such as 2.4G WiFi and 5G WiFi. During testing, two frequency bands can be used for respective testing.
In the present embodiment, it is verified whether the mobile terminal 51 and the second terminal device 54 can normally communicate by using the connection relationship described above, and whether the bridge mode of the router under test 52 can be normally used is verified. The embodiment provides a specific test of the router function testing system, which is used to test whether the bridge mode of the router 52 to be tested is normal.
Fig. 6 is a schematic block diagram illustrating one test of a router function test system in accordance with an illustrative embodiment. On the basis of the corresponding embodiment of fig. 1, a specific test content of the router function test system is shown. To a mobile terminal 61, a router to be tested 62, a test router 63, a switch 64, a third terminal device 65.
In this embodiment, the third port and the fifth port of the switch 62 are divided into the same virtual local area network, and the first terminal device controls the mobile terminal 62 to configure the router 62 to be tested into the bridge mode;
the test content specifically comprises: the mobile terminal 61 performs a communication test with the third terminal device 65 through the router to be tested 62, the test router 63, and the switch 64 to verify whether the function of the bridge mode of the router to be tested 62 is normal; the test router 63 communicates with the switch 64 through a WAN port, a dial-up server is provided on the third terminal device 65, and the test router 63 establishes communication connection with the third terminal device 65 through dial-up; the router to be tested 62 is in wireless bridging connection with the test router 63, and the mobile terminal 61 is connected to a wireless network generated after the router to be tested 62 is in bridging connection.
In the present embodiment, the connection relation involved is based on the hardware connection in the embodiment shown in fig. 1. The specific hardware connections are as follows: the mobile terminal 61 is connected to a wireless network of the router to be tested 62; the router to be tested 62 bridges the wireless network to the test router 63; the WAN port of the test router 63 is connected to the fifth port of the switch 64; the third port of the switch 64 is connected to a third terminal device 65.
In this embodiment, the third terminal device 65 may be configured to simulate the provision of a world wide web connection, and a dial-up server is provided at the third terminal device 65 for testing the router 63 for dial-up connections.
In addition, the test router 63 may be a dual-band router supporting wireless networks of two frequency bands, such as 2.4G WiFi and 5G WiFi. During testing, two frequency bands can be used for respective testing.
In the present embodiment, it is verified whether the bridge mode of the router under test 62 can be used normally by verifying whether the mobile terminal 61 and the third terminal device 65 can communicate normally using the above-described connection relationship. The embodiment provides a specific test of the router function test system for testing whether the bridge mode of the router 62 under test is normal.
In the embodiments provided in this application, it should be understood that the methods and systems described are illustrative and that variations may be made in the actual implementation by adaptation.
In addition, specific names of the functional units or modules are only used for distinguishing one functional unit from another, and are not used for the protection scope of the present invention.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.