Batch test method for switch boards in device

By employing test fixtures and CAN bus control in switch board testing, combined with Virtual Local Area Network (VLAN) technology, the problem of low testing efficiency of switch boards has been solved, achieving efficient and automated batch testing and fault location.

CN121842028APending Publication Date: 2026-04-10BEIJING SIFANG JIBAO ENG TECH +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing technologies for testing switching boards are inefficient. Manual operation relies on a sense of responsibility and technical skill, making it impossible to perform efficient and automated batch testing on board-level products without casings or exposed interfaces, and also making it impossible to quickly locate test problems.

Method used

The internal interconnection of the switch board ports is achieved through testing fixtures, centralized control and status monitoring are carried out using CAN bus, test paths are formed using virtual local area network (VLAN) technology, and the location of the fault is determined by the difference between the port transmit and receive count values.

Benefits of technology

It enables efficient and automated batch testing of switching boards, simplifies the test setup process, supports testing of multiple switching boards, improves testing efficiency and result accuracy, and can quickly locate the problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121842028A_ABST
    Figure CN121842028A_ABST
Patent Text Reader

Abstract

A batch test method for switch boards in a device comprises the following steps of: physically connecting ports of the switch boards with an upper computer, controlling a bidirectional switch and pairing multiple pairs of ports set by each switch board to form a plurality of virtual local area networks (VLANs), enabling a test message of the switch board to flow through all ports of the corresponding switch board to form a first test path; controlling the bidirectional switch and pairing the plurality of pairs of ports set by each switch board to form a plurality of virtual local area networks (VLANs), so that the test message of the switch board flows through the plurality of ports of the corresponding switch board to form other test paths; and for all the test paths, whether the links of the corresponding test paths are normal or not is obtained during testing, and if the links are abnormal, the fault position is judged according to the difference of the receiving and transmitting count values of the ports before and after testing of the corresponding test paths. According to the invention, all related point locations on the switch board can be covered, and the test integrity is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of switchboard testing, and particularly relates to a batch testing method for switchboards in devices. BACKGROUND

[0002] The switchboard in the device is mainly composed of MCU and a switching chip, the switching chip realizes the switching function, and the MCU realizes the management and configuration of the switching chip function. The switchboard connects other board cards in the device together through Ethernet, and is an important facility for ensuring the network communication in the device. Before the device is assembled, the switchboard needs to be tested, and each network port of each switchboard needs to be tested. Since the switchboard has multiple network ports, the testing efficiency is very low when tested manually, and the testing process completely relies on manual operation. Whether the test result is reliable mainly depends on the responsibility and technical level of the tester, and the testing quality cannot be systematically guaranteed.

[0003] Most of the current testing schemes are used for testing the whole switch. For example, the Chinese patent CN107204893A "Ethernet switch large batch whole machine testing method and system" provides a method for testing the whole switch. In this patent, the switch is configured through a serial port, for example, the switch is divided into VLAN through the serial port, then the tested switch is connected to the environment switch and communicates with the test host computer and the test software to complete the test. This testing mode requires a large number of connections, including serial port lines, network cables, etc. In general, it will inevitably reduce the testing efficiency; the switch whole machine testing scheme cannot be directly used for testing the board card level product without installing the shell and the interface not being led out. For the problems in the testing process, such as connection failure between network ports, there is no clear method for quickly locating the problem position, and the problem position cannot be quickly located when the test fails. SUMMARY

[0004] In order to solve the problems in the prior art, the present application provides a batch testing method for switchboards in devices, which realizes the internal interconnection between the ports of the tested switchboard through a testing tool, and uses CAN bus to centrally control and monitor the state of multiple switchboards, thereby realizing efficient and automated batch testing of the switchboard in the environment of the whole machine. The present application adopts the following technical scheme.

[0005] The first aspect of the present application provides a batch testing method for switchboards in devices, the switchboard has a plurality of ports with bidirectional switches, comprising: all the switch boards are installed on the test fixture, and each two switch boards are physically connected through ports, and the first and last switch boards are physically connected with the Ethernet interface of the host computer through ports, the unconnected ports of each switch board are divided into groups, each group has two ports, the two ports of each group are physically connected, and the ports physically connected with the ports with bidirectional switches also have bidirectional switches; and the CAN bus of all the switch boards and the host computer are connected together; The host computer issues a test command of a first test path through the CAN bus, controls all the bidirectional switches to make the two physically connected ports with bidirectional switches be physically connected through the first branch, and pairs the multiple pairs of ports set by each switch board to form multiple virtual local area networks (VLANs), so that the test messages of the switch board flow through all the ports of the corresponding switch board to form the first test path. The host computer issues a test command of a next test path through the CAN bus, controls all the bidirectional switches to make the two physically connected ports with bidirectional switches be physically connected through the second branch, and pairs the multiple pairs of ports set by each switch board to form multiple virtual local area networks (VLANs), so that the test messages of the switch board flow through the input port, the output port and all the ports with bidirectional switches of the corresponding switch board to form the second test path. For all the test paths, whether the corresponding test path link is normal is obtained during the test, and if the link is not normal, the fault position is determined according to the difference between the transmit and receive count values of each port before and after the test of the corresponding test path.

[0006] Preferably, the physical connection of each two switch boards through ports and the physical connection of the first and last switch boards with the Ethernet interface of the host computer through ports are specifically as follows: One port of each switch board is set as an input port of the corresponding switch board, and the other port is set as an output port; one Ethernet interface of the host computer is connected with the input port of the first switch board, and the output port of each switch board is connected with the input port of the next switch board; and the output port of the last switch board is connected with the other Ethernet interface of the host computer. Preferably, before the host computer issues a test command of a first test path through the CAN bus, the host computer sends a set message to the switch board from the CAN bus to call the software version information of the MCU of all the switch boards and the unique ID of the switch chip; if the software version information of the switch board is not the current set version, the host computer automatically upgrades the program of the MCU of the switch board through the CAN bus; and the host computer obtains the number of switch boards on the current test fixture according to the response information of each switch board.

[0007] Preferably, the flowing of the test messages of the switch board through all the ports of the corresponding switch board to form the first test path is specifically as follows: Each switch board's input port is paired with one port in the first group of ports with physical connections to form a virtual local area network (VLAN). The other port in each group of ports with physical connections is paired with one port in the next group of ports to form a virtual local area network (VLAN). The other port in the last group of ports with physical connections is paired with the corresponding switch board's output port to form a virtual local area network (VLAN).

[0008] Preferably, the step of causing the test message of the switch board to flow through the corresponding input port, output port, and all ports with bidirectional switches of the switch board to form a second test path is specifically as follows: Each switch board's input port is paired with a port with a bidirectional switch to form a Virtual Local Area Network (VLAN). This pairing process is repeated. The repeated pairing process involves pairing a port physically connected to the currently paired port with a port that is currently unable to receive information and has a bidirectional switch to form a VLAN. The port that is currently unable to receive information is either the corresponding port or a port physically connected to the corresponding port, and neither is paired. If there is no port with a bidirectional switch that is currently unable to receive information, the repeated pairing process is stopped. The port physically connected to the currently paired port is then paired with the output port of the corresponding switch board to form a VLAN.

[0009] Preferably, obtaining whether the corresponding test path link is normal specifically involves: For the first test path, after pairing the two pairs of ports configured on each switch board to form two virtual local area networks (VLANs), and after a set delay, n test packets are sent from one Ethernet interface of the host computer. If the other Ethernet interface receives the sent n test packets, the link of the first test path is considered to be normal. For the second test path, after pairing multiple pairs of ports configured on each switch board to form multiple virtual local area networks (VLANs), and after a set delay, n test packets are sent from one Ethernet interface of the host computer. If the other Ethernet interface receives the sent n test packets, the corresponding test path link is considered to be normal.

[0010] Preferably, the transmit / receive count values ​​of each port before and after the test are specifically as follows: For the first test path, the transmit / receive count value before the test is the transmit / receive count value of each port of the switch board after pairing multiple pairs of ports configured on each switch board to form multiple virtual local area networks (VLANs); the transmit / receive count value after the test is the transmit / receive count value of each port of the switch board after the host computer sends the test command for the second test path through the CAN bus. For the second test path, the transmit / receive count value before the test is the transmit / receive count value of each port of the switch board after pairing multiple pairs of ports of each switch board to form multiple virtual local area networks (VLANs); the transmit / receive count value after the test is the transmit / receive count value of each port of the switch board after the host computer sends the test completion command through the CAN bus.

[0011] Preferably, determining the fault location specifically involves: Determine whether each port is normal based on the difference between the transmit and receive counts before and after the test and the ideal count value. If, on a certain switching board, according to the port order of the test packet flow, the first 'a' ports of the corresponding switching board are normal, while the ports after the corresponding switching board and all ports of all subsequent switching boards are abnormal, then it is determined whether the (a+1)th port is the port physically connected to the next switching board. If so, it indicates that there is a problem with the connection between the corresponding switching board and the next switching board; if not, it is determined that there is a problem with the link between the (a+1)th port and the (a+2)th port. The link problem includes a fault in the (a+1)th port or the (a+2)th port and a physical connection fault between the two ports. If the (a+1)th port or the (a+2)th port is a port with a bidirectional switch, then the link problem also includes a bidirectional switch fault.

[0012] Preferably, the step of determining whether each port is normal based on the difference between the transmit and receive counts before and after the test and the ideal count value specifically involves: For all test paths, all ports alternately receive and send data according to the port order of the test message flow. The ideal count value for receiving and sending data is n. The test difference is obtained by subtracting the corresponding ideal count value from the difference between the receive and send count values ​​before and after the test for the corresponding port. If the test difference is greater than or equal to the set difference threshold, the corresponding port is considered to be normal.

[0013] The beneficial effects of this invention are that, compared with the prior art, this invention interconnects the ports of the switching board in pairs through internal physical connections, which greatly simplifies the test setup process and supports testing of multiple switching boards, making it particularly suitable for rapid batch testing on the production line. This invention can check and update the switch board under test before testing, improving the efficiency of firmware updates; and by summoning and saving the unique ID of the board, this invention also ensures the correctness and accuracy of the correspondence between the test results and the switch board.

[0014] By changing the test path through pairing, this invention ensures coverage of all relevant points on the switching board, guaranteeing the integrity of the test. The recorded transmit / receive counts for each port during the test process also allow for quick location of problems, further improving testing efficiency. Attached Figure Description

[0015] Figure 1 This is a diagram of the overall structure after the physical connection is performed using the method of the present invention. Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this invention. The embodiments described in this application are merely some embodiments of this invention, and not all embodiments. Based on the spirit of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of this invention.

[0017] Embodiment 1 of the present invention proposes a batch testing method for a switching board within a device, wherein the switching board has several ports with bidirectional switches, including: It should be noted that the switching board was designed with configurable switches added to some ports to accommodate various situations. Therefore, testing requires covering different locations of these switches; specifically, for example... Figure 1 As shown, the total number of ports with bidirectional switches in this embodiment is 2; it should be noted that in most cases there are only two ports with bidirectional switches. Install all the switching boards onto the test fixture, and physically connect every two switching boards through the ports. Connect the first and last switching boards to the Ethernet interface of the host computer through the ports. Divide the unconnected ports of each switching board into multiple groups, each group having two ports. Physically connect the two ports of each group. Ports physically connected to ports with bidirectional switches also have bidirectional switches. Connect all the switching boards and the CAN bus on the host computer together. It should be noted that the connector between the switching board and the test fixture includes multiple Ethernet, CAN bus, power, slot marking, and other signal lines.

[0018] The host computer sends the test command for the first test path through the CAN bus, controls all bidirectional switches to make two ports with bidirectional switches that have physical connections physically connected through the first branch, and pairs the multiple pairs of ports set by each switch board to form multiple virtual local area networks (VLANs), so that the test packets of the switch board flow through all ports of the corresponding switch board to form the first test path. The host computer sends the test command for the next test path through the CAN bus, controls all bidirectional switches to make two physically connected ports with bidirectional switches physically connected through the second branch; and pairs the multiple pairs of ports set for each switch board to form multiple virtual local area networks (VLANs), so that the test packets of the switch board flow through the corresponding input ports, output ports and all ports with bidirectional switches to form the second test path. For all test paths, during testing, the link status of the corresponding test path is obtained. If the link is abnormal, the fault location is determined by the difference between the transmit and receive counts of each port before and after the test of the corresponding test path.

[0019] In this preferred embodiment, the step of physically connecting every two switching boards via ports, and physically connecting the first and last switching boards to the Ethernet interface of the host computer via ports, specifically involves: Configure one port of each switch board as its input port and the other port as its output port; connect one Ethernet interface of the host computer to the input port of the first switch board, connect the output port of each switch board to the input port of the next switch board, and connect the output port of the last switch board to another Ethernet interface of the host computer. Neither the input port nor the output port is a port with a bidirectional switch.

[0020] Specifically, the input port of the present invention is port 9, the output port is port 8, ports 7 and 6 are physically connected, ports 5 and 4 are physically connected, ports 3 and 2 are physically connected, and ports 1 and 0 are physically connected. In this preferred embodiment, before the host computer issues the test command for the first test path via the CAN bus, the host computer sends a predefined message to the switching board via the CAN bus, summoning the software version information of the MCUs on all switching boards and the unique ID of the switching chip. If the software version information of any switching board is not the currently set version, the host computer automatically upgrades the program of the MCU on the switching board via the CAN bus. The host computer also obtains the number of switching boards currently on the test fixture based on the response information of each switching board. Furthermore, the unique ID of each switching board under test is saved to the system as content for subsequent test report output. Once the software versions of all boards under test are correct, subsequent tests begin.

[0021] In this preferred embodiment, the step of causing the test packets of the switching board to flow through all ports of the corresponding switching board to form the first test path specifically involves: Each switch board's input port is paired with one port in the first group of ports with physical connections to form a virtual local area network (VLAN). The other port in each group of ports with physical connections is paired with one port in the next group of ports to form a virtual local area network (VLAN). The other port in the last group of ports with physical connections is paired with the corresponding switch board's output port to form a virtual local area network (VLAN).

[0022] Specifically, in this embodiment, port 9 is paired with port 7, port 6 is paired with port 5, port 4 is paired with port 3, port 2 is paired with port 1, and port 0 is paired with port 8. After VLAN segmentation, the path for test data flow on each switch board is as follows: => Port 9 -> Port 7 => Port 6 -> Port 5 => Port 4 -> Branch A of Port 3 => Branch A of Port 2 -> Port 1 => Port 0 -> Port 8 => Where: "=>" indicates a physical connection, and "->" indicates internal logic forwarding within the switching chip. In this preferred embodiment, the step of causing the test message of the switch board to flow through the corresponding input port, output port, and all ports with bidirectional switches to form a second test path is specifically as follows: Each switch board's input port is paired with a port with a bidirectional switch to form a Virtual Local Area Network (VLAN). This pairing process is repeated. The repeated pairing process involves pairing a port physically connected to the currently paired port with a port that is currently unable to receive information and has a bidirectional switch to form a VLAN. The port that is currently unable to receive information is either the corresponding port or a port physically connected to the corresponding port, and neither is paired. If there is no port with a bidirectional switch that is currently unable to receive information, the repeated pairing process is stopped. The port physically connected to the currently paired port is then paired with the output port of the corresponding switch board to form a VLAN.

[0023] Specifically, in this embodiment, port 9 is paired with port 3, and port 2 is paired with port 8.

[0024] After VLAN segmentation, the path for test data flow on each switch board is as follows: => Port 9 -> Branch B of Port 3 => Branch B of Port 2 -> Port 8 => Where: "=>" indicates a physical connection, and "->" indicates internal logic forwarding within the switching chip. In this preferred embodiment, obtaining whether the corresponding test path link is normal specifically involves: For the first test path, after pairing the two pairs of ports configured on each switch board to form two virtual local area networks (VLANs), and after a set delay, n test packets are sent from one Ethernet interface of the host computer. If the other Ethernet interface receives the sent n test packets, the link of the first test path is considered to be normal. For the second test path, after pairing multiple pairs of ports configured on each switch board to form multiple virtual local area networks (VLANs), and after a set delay, n test packets are sent from one Ethernet interface of the host computer. If the other Ethernet interface receives the sent n test packets, the corresponding test path link is considered to be normal.

[0025] In this embodiment, the transmit / receive count values ​​of each port before and after the test are preferably as follows: For the first test path, the transmit / receive count value before the test is the transmit / receive count value of each port of the switch board after pairing multiple pairs of ports configured on each switch board to form multiple virtual local area networks (VLANs); the transmit / receive count value after the test is the transmit / receive count value of each port of the switch board after the host computer sends the test command for the second test path through the CAN bus. For the second test path, the transmit / receive count value before the test is the transmit / receive count value of each port of the switch board after pairing multiple pairs of ports of each switch board to form multiple virtual local area networks (VLANs); the transmit / receive count value after the test is the transmit / receive count value of each port of the switch board after the host computer sends the test completion command through the CAN bus.

[0026] In this preferred embodiment, determining the fault location specifically involves: Determine whether each port is normal based on the difference between the transmit and receive counts before and after the test and the ideal count value. If, on a certain switching board, according to the port order of the test packet flow, the first 'a' ports of the corresponding switching board are normal, while the ports after the corresponding switching board and all ports of all subsequent switching boards are abnormal, then it is determined whether the (a+1)th port is the port physically connected to the next switching board. If so, it indicates that there is a problem with the connection between the corresponding switching board and the next switching board; if not, it is determined that there is a problem with the link between the (a+1)th port and the (a+2)th port. The link problem includes a fault in the (a+1)th port or the (a+2)th port and a physical connection fault between the two ports. If the (a+1)th port or the (a+2)th port is a port with a bidirectional switch, then the link problem also includes a bidirectional switch fault.

[0027] In this preferred embodiment, the step of determining whether each port is normal based on the difference between the transmit and receive counts of each port before and after the test and the ideal count value specifically involves: For all test paths, all ports alternately receive and send data according to the port order of the test message flow. The ideal count value for receiving and sending data is n. The test difference is obtained by subtracting the corresponding ideal count value from the difference between the receive and send count values ​​before and after the test for the corresponding port. If the test difference is greater than or equal to the set difference threshold, the corresponding port is considered to be normal.

[0028] It should be noted that because the PC operating system may send some messages itself, as long as the test difference is greater than or equal to the set difference threshold, the corresponding port is considered to be normal.

[0029] For example, in this embodiment, a test is performed on the bidirectional switch failure of port 2 of a switching board. Specifically, the bidirectional switch is always in position B and cannot be switched to position A. For test path one in this embodiment, the ideal count values ​​for each port are shown in Table 1. Table 1 Ideal count values ​​for each port of test path 1

[0030] The difference between the transmit and receive counts of the corresponding switching board before and after the test is shown in Table 2. Table 2 shows the difference in transmit and receive counts before and after the test of the switching board.

[0031] The count changes on the subsequent exchange boards are all 0.

[0032] A problem was detected in the link from port 3 to port 2.

[0033] Furthermore, this embodiment also includes a test to check for faults in the soldering or connectors between port 8 of switch board one and port 9 of switch board two. The difference in transmit and receive counts before and after the test for switch board one is shown in Table 3.

[0034] Table 3 shows the difference in transmit and receive counts before and after the test for Switchboard 1.

[0035] The count changes on the subsequent exchange boards are all 0.

[0036] A connection problem was detected between switchboard 1 and switchboard 2.

[0037] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.

Claims

1. A batch testing method for a switching board within a device, wherein the switching board has an even multiple of ports with bidirectional switches, characterized in that, include: Install all the switching boards onto the test fixture, and physically connect every two switching boards through the ports. Connect the first and last switching boards to the Ethernet interface of the host computer through the ports. Divide the unconnected ports of each switching board into multiple groups, each group having two ports. Physically connect the two ports of each group. Ports physically connected to ports with bidirectional switches also have bidirectional switches. Connect all the switching boards and the CAN bus on the host computer together. The host computer sends the test command for the first test path through the CAN bus, controls all bidirectional switches to make two ports with bidirectional switches that have physical connections physically connected through the first branch, and pairs the multiple pairs of ports set by each switch board to form multiple virtual local area networks (VLANs), so that the test packets of the switch board flow through all ports of the corresponding switch board to form the first test path. The host computer sends the test command for the next test path through the CAN bus, controls all bidirectional switches to make two physically connected ports with bidirectional switches physically connected through the second branch; and pairs the multiple pairs of ports set for each switch board to form multiple virtual local area networks (VLANs), so that the test packets of the switch board flow through the corresponding input ports, output ports and all ports with bidirectional switches to form the second test path. For all test paths, during testing, the link status of the corresponding test path is obtained. If the link is abnormal, the fault location is determined by the difference between the transmit and receive counts of each port before and after the test of the corresponding test path.

2. The batch testing method for a switching board within a device according to claim 1, characterized in that: The process of physically connecting every two switching boards via ports, and physically connecting the first and last switching boards to the Ethernet interface of the host computer via ports, specifically involves: Configure one port of each switch board as its input port and the other port as its output port. Connect one Ethernet interface of the host computer to the input port of the first switch board, connect the output port of each switch board to the input port of the next switch board, and connect the output port of the last switch board to another Ethernet interface of the host computer.

3. The batch testing method for a switching board within a device according to claim 1, characterized in that: Before the host computer sends the test command for the first test path via the CAN bus, the host computer sends a set message to the switching board via the CAN bus to summon the software version information of the MCUs of all switching boards and the unique ID of the switching chip; if the software version information of a switching board is not the currently set version, the host computer automatically upgrades the program of the MCU of the switching board via the CAN bus; and the host computer obtains the number of switching boards on the current test fixture based on the response information of each switching board.

4. A batch testing method for a switching board within a device according to claim 2, characterized in that: The process of making the test packets of the switch board flow through all ports of the corresponding switch board to form the first test path is as follows: Each switch board's input port is paired with one port in the first group of ports with physical connections to form a virtual local area network (VLAN). The other port in each group of ports with physical connections is paired with one port in the next group of ports to form a virtual local area network (VLAN). The other port in the last group of ports with physical connections is paired with the corresponding switch board's output port to form a virtual local area network (VLAN).

5. A batch testing method for a switching board within a device according to claim 2, characterized in that: The process of causing the test message of the switch board to flow through the corresponding input port, output port, and all ports with bidirectional switches to form a second test path is as follows: Each switch board's input port is paired with a port with a bidirectional switch to form a Virtual Local Area Network (VLAN). This pairing process is repeated. The repeated pairing process involves pairing a port physically connected to the currently paired port with a port that is currently unable to receive information and has a bidirectional switch to form a VLAN. The port that is currently unable to receive information is either the corresponding port or a port physically connected to the corresponding port, and neither is paired. If there is no port with a bidirectional switch that is currently unable to receive information, the repeated pairing process is stopped. The port physically connected to the currently paired port is then paired with the output port of the corresponding switch board to form a VLAN.

6. A batch testing method for a switching board within a device according to claim 1, characterized in that: The process of determining whether the corresponding test path link is normal specifically involves: For the first test path, after pairing the two pairs of ports configured on each switch board to form two virtual local area networks (VLANs), and after a set delay, n test packets are sent from one Ethernet interface of the host computer. If the other Ethernet interface receives the sent n test packets, the link of the first test path is considered to be normal. For the second test path, after pairing multiple pairs of ports configured on each switch board to form multiple virtual local area networks (VLANs), and after a set delay, n test packets are sent from one Ethernet interface of the host computer. If the other Ethernet interface receives the sent n test packets, the corresponding test path link is considered to be normal.

7. A batch testing method for a switching board within a device according to claim 6, characterized in that: The transmit / receive count values ​​of each port before and after the test are as follows: For the first test path, the transmit / receive count value before the test is the transmit / receive count value of each port of the switch board after pairing multiple pairs of ports configured on each switch board to form multiple virtual local area networks (VLANs); the transmit / receive count value after the test is the transmit / receive count value of each port of the switch board after the host computer sends the test command for the second test path through the CAN bus. For the second test path, the transmit / receive count value before the test is the transmit / receive count value of each port of the switch board after pairing multiple pairs of ports of each switch board to form multiple virtual local area networks (VLANs); the transmit / receive count value after the test is the transmit / receive count value of each port of the switch board after the host computer sends the test completion command through the CAN bus.

8. A batch testing method for a switching board within a device according to claim 7, characterized in that: The determination of the fault location specifically involves: Determine whether each port is normal based on the difference between the transmit and receive counts before and after the test and the ideal count value. If, on a certain switching board, according to the port order of the test packet flow, the first 'a' ports of the corresponding switching board are normal, while the ports after the corresponding switching board and all ports of all subsequent switching boards are abnormal, then it is determined whether the (a+1)th port is the port physically connected to the next switching board. If so, it indicates that there is a problem with the connection between the corresponding switching board and the next switching board; if not, it is determined that there is a problem with the link between the (a+1)th port and the (a+2)th port. The link problem includes a fault in the (a+1)th port or the (a+2)th port and a physical connection fault between the two ports. If the (a+1)th port or the (a+2)th port is a port with a bidirectional switch, then the link problem also includes a bidirectional switch fault.

9. A batch testing method for a switching board within a device according to claim 8, characterized in that: The method of determining whether each port is normal based on the difference between the transmit and receive counts before and after the test and the ideal count value is as follows: For all test paths, all ports alternately receive and send data according to the port order of the test message flow. The ideal count value for receiving and sending data is n. The test difference is obtained by subtracting the corresponding ideal count value from the difference between the receive and send count values ​​before and after the test for the corresponding port. If the test difference is greater than or equal to the set difference threshold, the corresponding port is considered to be normal.

Citation Information

Patent Citations

  • Ethernet switch batch whole machine test method and system

    CN107204893A