Systems and methods for automatically testing a network switch
Systems and methods for automatically testing a network switch are disclosed according to various embodiments. In one example, a method for automatically and simultaneously testing Power over Ethernet (PoE) ports and traffic throughput of a network switch is disclosed. A data traffic is generated by a network tester with a predetermined speed based on a configuration of the network switch. The data traffic is directed through the PoE ports of the network switch. At least one PoE tester connected to the network switch via the PoE ports of the network switch is configured, e.g. by a test application running on a test computer. A first result of testing the PoE ports is obtained by the test computer from the at least one PoE tester. A second result of testing the traffic throughput of the network switch is obtained by the test computer from the network tester.
1 . A method for automatically and simultaneously testing Power over Ethernet (POE) ports and traffic throughput of a network switch, comprising:
configuring, by a test computer, a network tester;
configuring, by the test computer, a virtual local area network (VLAN) routing method for routing data through the PoE ports of the network switch based on commands sent from the test computer to the network switch via a command line interface (CLI) connected between the test computer and the network switch;
generating, by the network tester, a data traffic with a predetermined speed based on a configuration of the network switch;
directing the data traffic through the PoE ports of the network switch;
configuring at least one PoE tester connected to the network switch via the PoE ports of the network switch;
obtaining, by a test computer, a first result of testing the PoE ports from the at least one PoE tester; and
obtaining, by the test computer, a second result of testing the traffic throughput of the network switch from the network tester.
2 . The method of claim 1 , wherein the data traffic is directed through the PoE ports of the network switch by:
routing the data traffic through each PoE port of the network switch sequentially following the VLAN routing method.
3 . The method of claim 1 , wherein the data traffic is directed through the PoE ports of the network switch by:
routing the data traffic through each PoE port of the network switch twice following the VLAN routing method.
4 . The method of claim 1 , further comprising:
determining whether the PoE ports of the network switch are connected;
upon determining that any PoE port of the network switch is disconnected, abandoning the tests of the PoE ports and the traffic throughput; and
upon determining that the PoE ports of the network switch are connected, clearing counters of the network switch and the network tester before generating the data traffic.
5 . The method of claim 1 , wherein the first result is obtained at least a predetermined time period after configuring the at least one PoE tester.
6 . The method of claim 1 , wherein:
the second result is obtained after the data traffic through the PoE ports of the network switch is stopped; and
the data traffic is stopped at least a predetermined time period after the first result is obtained.
7 . A method for automatically and simultaneously testing Power over Ethernet (POE) ports and traffic throughput of a network switch, comprising:
generating, by a network tester, a data traffic with a predetermined speed based on a configuration of the network switch;
directing the data traffic through the PoE ports of the network switch;
configuring at least one PoE tester connected to the network switch via the PoE ports of the network switch;
wherein
configuring the at least one PoE tester connected to the network switch via the PoE ports of the network switch comprises configuring a plurality of PoE testers connected to the network switch via the PoE ports of the network switch;
the plurality of PoE testers has a first quantity; and
the PoE ports of the network switch has a second quantity which is a multiple of the first quantity
obtaining, by a test computer, a first result of testing the PoE ports from the at least one PoE tester; and
obtaining, by the test computer, a second result of testing the traffic throughput of the network switch from the network tester.
8 . The method of claim 7 , wherein the data traffic is directed through the PoE ports of the network switch by:
routing the data traffic through each PoE port of the network switch sequentially following the VLAN routing method.
9 . The method of claim 8 , wherein the data traffic is directed through the PoE ports of the network switch by:
routing the data traffic through each PoE port of the network switch twice following the VLAN routing method.
10 . The method of claim 7 , further comprising:
determining whether the PoE ports of the network switch are connected;
upon determining that any PoE port of the network switch is disconnected, abandoning the tests of the PoE ports and the traffic throughput; and
upon determining that the PoE ports of the network switch are connected, clearing counters of the network switch and the network tester before generating the data traffic.
11 . The method of claim 7 , wherein the first result is obtained at least a predetermined time period after configuring the at least one PoE tester.
12 . The method of claim 7 , wherein:
the second result is obtained after the data traffic through the PoE ports of the network switch is stopped; and
the data traffic is stopped at least a predetermined time period after the first result is obtained.
13 . A system for automatically and simultaneously testing Power over Ethernet (POE) ports and traffic throughput of a network switch, comprising:
a network tester configured for generating a data traffic with a predetermined speed based on a configuration of the network switch;
an additional switch that is connected to the network switch via at least one stacking port of the network switch, wherein the at least one stacking port is separate from the PoE ports;
at least one PoE tester connected to the network switch via the PoE ports of the network switch;
a test computer configured for:
directing the data traffic through the PoE ports of the network switch,
obtaining a first result of testing the PoE ports from the at least one PoE tester, and
obtaining a second result of testing the traffic throughput of the network switch from the network tester; and
a power supply controlled by a test application on the test computer to provide an electric power to both the network switch and the additional switch.