Network port compatibility testing device and method

By designing a network port compatibility testing device, using a converter to achieve simultaneous testing of multiple terminal devices, the problems of low testing efficiency and poor scalability in the prior art are solved, and efficient compatibility testing between high-speed equipment and low-speed terminals are realized.

CN119865450APending Publication Date: 2025-04-22GUANGZHOU XINDE COMMUNICATION TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411928014.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-22

Smart Images

  • Figure CN119865450A_ABST
    Figure CN119865450A_ABST
Patent Text Reader

Abstract

The invention discloses a network port compatibility testing device and method, the device comprises an upper computer, a router to be tested, a plurality of terminal devices and a converter, the upper computer is respectively connected with the router to be tested and the converter; the converter is provided with a plurality of connecting ports, the converter is respectively connected with the router and the plurality of terminal devices through the plurality of connecting ports, and on-off of signal paths of the plurality of connecting ports is controlled by the upper computer. According to the method, the compatibility test between the router network port and the multiple terminal devices is completed in an automatic execution mode, and the test efficiency and applicability are remarkably improved through one-time test, so that the urgent demand of the compatibility test of the network devices in the new era is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network port compatibility testing, and more specifically, to a network port compatibility testing device and method. Background Art

[0002] With the rapid development of network technology, the network port speed of current communication equipment has been significantly improved, and home routers and other devices have begun to be equipped with 2.5G, 5G and even 10G high-speed network ports. However, the network port speed of most network terminals, such as set-top boxes and desktop computers, is still mostly 1000M or 100M, or even 10M, which is significantly lower than that of high-speed devices. In addition, most ordinary users lack the ability to reasonably configure the network port speed and negotiation mode, which puts higher requirements on the automatic negotiation mode of the network port of communication equipment such as home routers.

[0003] Currently, most network port compatibility tests are limited to different rate negotiation tests between two network devices, and there is a lack of solutions that can test the compatibility of a device under test with multiple network ports at one time. The one-to-one testing method is not only time-consuming and inefficient, but also has obvious deficiencies in scalability, making it difficult to meet the requirements of rapid iteration of current network devices and diversified user needs. Summary of the invention

[0004] One of the purposes of the present invention is to provide a network port compatibility testing device to solve the problems of low efficiency and poor scalability in compatibility testing between high-speed equipment and low-speed terminals; the second purpose of the present invention is to provide a network port compatibility testing method.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] A first aspect of the present invention provides a network port compatibility test device, comprising a host computer, a router to be tested, a plurality of terminal devices and a converter, wherein:

[0007] The host computer is connected to the router to be tested and the converter respectively;

[0008] The converter is provided with a plurality of connection ports, and the converter is respectively connected to the router and a plurality of terminal devices through the plurality of connection ports, and the on-off of the signal paths of the plurality of connection ports is controlled by the host computer.

[0009] In the above-mentioned technical means, a converter is added to realize the on and off of the control signal path, which is realized in a manner similar to the direct connection of a network cable connector to a crystal head. It does not involve forwarding or exchanging data with other chips. It can realize simultaneous testing with multiple terminals, and different terminal devices can be freely replaced, or the number of device interfaces can be increased by adding connection ports. It has good scalability and solves the problems of low efficiency and poor scalability in compatibility testing of high-speed devices and low-speed terminals.

[0010] Furthermore, the converter also includes an interface circuit, an analog switch module, a microcontroller, a signal acquisition circuit and a host computer interface, wherein:

[0011] One end of the host computer interface is connected to the host computer, and the other end of the host computer interface is connected to the microcontroller, and a host computer signal is received or a signal is sent to the host computer through the host computer interface;

[0012] The microcontroller is connected to the analog switch module and the signal acquisition circuit respectively, and the microcontroller controls the channel switching of the analog switch module according to the received host computer signal, and the microcontroller receives the data collected by the signal acquisition circuit and sends it to the host computer through the host computer interface;

[0013] The analog switch module is connected to the multiple connection ports through the interface circuit, and the analog switch module is used to realize the on and off of the signal paths of the multiple connection ports;

[0014] The signal acquisition circuit is connected to the multiple connection ports through the interface circuit, and the signal acquisition circuit acquires electrical signals from the multiple connection ports.

[0015] Furthermore, the host computer interface is a USB interface.

[0016] Furthermore, the multiple connection ports provided on the converter are RJ45 interfaces.

[0017] A second aspect of the present invention provides a network port compatibility testing method, which is applied to the network port compatibility testing device, and comprises the following steps:

[0018] S1: Obtain the network port capability set of the router under test through the converter;

[0019] S2: Select a number of terminal devices to obtain the current test terminal device;

[0020] S3: Obtain the network port capability set of the current test terminal device through the converter;

[0021] S4: Obtaining a current test rate and a test duplex mode according to the network port capability set of the router to be tested and the network port capability set of the current test terminal device;

[0022] S5: Connecting the router to be tested and the current test terminal device through a converter;

[0023] S6: The host computer obtains the status of the router to be tested;

[0024] S7: Obtaining a negotiation result between the router to be tested and the current test terminal device according to the state of the router to be tested;

[0025] S8: Record the current test rate, test duplex mode and negotiation result;

[0026] S9: Select another terminal device as a new current test terminal device, and return to S3 until all terminal devices are tested, and enter S10;

[0027] S10: End of test.

[0028] Furthermore, before step S1, the following steps are also included:

[0029] The network ports of the router and terminal device to be tested are set to automatic mode.

[0030] Further, in S4, according to the network port capability set of the router to be tested and the network port capability set of the current test terminal device, the current test rate and test duplex mode are obtained, including:

[0031] The network port capability set of the router to be tested includes the rate and duplex mode supported by the router to be tested;

[0032] The network port capability set of the current test terminal device includes the rate and duplex mode supported by the current test terminal device;

[0033] Compare the network port capability set of the router to be tested and the network port capability set of the current test terminal device, select the rate supported by both the router to be tested and the current test terminal device as the test rate, and select the duplex mode supported by both the router to be tested and the current test terminal device as the test duplex mode.

[0034] Further, the step of connecting the router to be tested and the current test terminal device through a converter in S5 includes:

[0035] The converter connects the connection ports to which the router to be tested and the current test terminal device are respectively connected through the analog switch module.

[0036] Further, in S7, obtaining the negotiation result between the router to be tested and the current test terminal device according to the state of the router to be tested includes:

[0037] If the state of the router to be tested is down, the negotiation fails;

[0038] If the state of the router to be tested is up, it is determined whether the port rate of the router to be tested is consistent with the test rate and whether the duplex mode of the router to be tested is consistent with the test duplex mode. If they are consistent, the negotiation succeeds; if they are not completely consistent, the negotiation fails.

[0039] Furthermore, the method further comprises step S11:

[0040] All recorded negotiation results and the corresponding current test rate and test duplex mode are displayed visually.

[0041] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0042] The network port compatibility test method and device provided by the present invention complete the compatibility test between the router network port and multiple terminal devices in an automated manner, and significantly improve the test efficiency and applicability through a one-time test to meet the urgent needs of network device compatibility testing in the new era. The present invention can freely replace different terminal devices, or increase the number of device interfaces by adding RJ45 ports and analog switches, and has good scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the structure of a network port compatibility testing device provided by an embodiment of the present invention;

[0044] Figure 2 A schematic diagram of the structure of a converter provided by an embodiment of the present invention;

[0045] Figure 3 A flowchart of a network port compatibility testing method provided by an embodiment of the present invention;

[0046] Figure 4 A specific connection diagram of the network port compatibility test provided by an embodiment of the present invention;

[0047] Figure 5 A specific flow chart of the network port compatibility test provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0049] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0050] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0051] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0052] Example 1

[0053] This embodiment provides a network port compatibility testing device, such as Figure 1 As shown, it includes a host computer, a router to be tested, several terminal devices and converters, among which:

[0054] The host computer is connected to the router to be tested and the converter respectively;

[0055] The converter is provided with a plurality of connection ports, and the converter is respectively connected to the router and a plurality of terminal devices through the plurality of connection ports, and the on-off of the signal paths of the plurality of connection ports is controlled by the host computer.

[0056] In a further embodiment, the converter is Figure 2 As shown, it also includes an interface circuit, an analog switch module, a microcontroller, a signal acquisition circuit and a host computer interface, wherein:

[0057] One end of the host computer interface is connected to the host computer, and the other end of the host computer interface is connected to the microcontroller, and a host computer signal is received or a signal is sent to the host computer through the host computer interface;

[0058] The microcontroller is connected to the analog switch module and the signal acquisition circuit respectively, and the microcontroller controls the channel switching of the analog switch module according to the received host computer signal, and the microcontroller receives the data collected by the signal acquisition circuit and sends it to the host computer through the host computer interface;

[0059] The analog switch module is connected to the multiple connection ports through the interface circuit, and the analog switch module is used to realize the on and off of the signal paths of the multiple connection ports, and realize the physical connection or disconnection between the connection ports without involving data forwarding or exchange;

[0060] The signal acquisition circuit is connected to the multiple connection ports through the interface circuit. The signal acquisition circuit acquires electrical signals from the multiple connection ports and converts analog signals into digital signals through operations such as amplification, filtering and comparator comparison.

[0061] In a further embodiment, the host computer interface is a USB interface for program debugging and test information output.

[0062] In a further embodiment, the multiple connection ports provided on the converter are RJ45 interfaces.

[0063] The embodiment of the present invention realizes acquisition of network port capability values ​​and calculation of expected port negotiation rate and duplex mode through an adapter, without manual input, thus reducing labor costs.

[0064] The embodiment of the present invention adds an adapter and controls the on and off of the signal path through the analog switch module of the adapter, so as to achieve a similar way of connecting a network cable connector to a crystal head, without involving other chips to forward or exchange data. The analog switch adapter with multiple channels can be selected to achieve simultaneous testing with multiple terminals.

[0065] The device of this embodiment can freely replace different terminal devices, or increase the number of device interfaces by adding RJ45 ports and analog switches, and has good expandability.

[0066] Example 2

[0067] This embodiment provides a network port compatibility testing method, such as Figure 3 As shown, the test method is applied to the network port compatibility test device described in Example 1, and includes the following steps:

[0068] S1: Obtain the network port capability set of the router under test through the converter;

[0069] S2: Select a number of terminal devices to obtain the current test terminal device;

[0070] S3: Obtain the network port capability set of the current test terminal device through the converter;

[0071] S4: Obtaining a current test rate and a test duplex mode according to the network port capability set of the router to be tested and the network port capability set of the current test terminal device;

[0072] S5: Connecting the router to be tested and the current test terminal device through a converter;

[0073] S6: The host computer obtains the status of the router to be tested;

[0074] S7: Obtaining a negotiation result between the router to be tested and the current test terminal device according to the state of the router to be tested;

[0075] S8: Record the current test rate, test duplex mode and negotiation result;

[0076] S9: Select another terminal device as a new current test terminal device, and return to S3 until all terminal devices are tested, and enter S10;

[0077] S10: End of test.

[0078] In a further embodiment, the step S1 further includes the following steps:

[0079] The network ports of the router and terminal device to be tested are set to automatic mode.

[0080] In a further embodiment, the step S4 obtains the current test rate and the test duplex mode according to the network port capability set of the router to be tested and the network port capability set of the current test terminal device, including:

[0081] The network port capability set of the router to be tested includes the rate and duplex mode supported by the router to be tested;

[0082] The network port capability set of the current test terminal device includes the rate and duplex mode supported by the current test terminal device;

[0083] Compare the network port capability set of the router to be tested and the network port capability set of the current test terminal device, select the rate supported by both the router to be tested and the current test terminal device as the test rate, and select the duplex mode supported by both the router to be tested and the current test terminal device as the test duplex mode.

[0084] In a further embodiment, the step of connecting the router to be tested and the current test terminal device through a converter in S5 includes:

[0085] The converter connects the connection ports to which the router to be tested and the current test terminal device are respectively connected through the analog switch module.

[0086] In a further embodiment, obtaining the negotiation result between the router to be tested and the current test terminal device according to the state of the router to be tested in S7 includes:

[0087] If the state of the router to be tested is down, the negotiation fails;

[0088] If the state of the router to be tested is up, determine whether the port rate of the router to be tested is consistent with the test rate and whether the duplex mode of the router to be tested is consistent with the test duplex mode. If they are consistent, the negotiation succeeds; if they are not completely consistent, the negotiation fails.

[0089] In a further embodiment, step S11 is further included:

[0090] All recorded negotiation results and the corresponding current test rate and test duplex mode are displayed visually.

[0091] Example 3

[0092] In a specific embodiment, the test network is as follows: Figure 4As shown, the host computer is a computer, which is connected to the LAN 1 port of the router to be tested through the network port, and the computer is connected to the host computer interface of the converter through the USB interface. The port 0 of the converter is connected to the LAN 2 port of the router to be tested, and the ports 1, 2, and 3 of the converter are connected to different low-speed terminal devices respectively.

[0093] The router to be tested is initially configured as follows: the LAN interface of the router to be tested is in auto mode, and the DHCP server function is enabled.

[0094] Test process reference Figure 5 As shown:

[0095] After the test starts, the converter reads the network port capability sets of port0 and port1 through signal acquisition, obtains the network port capability sets of the router to be tested and the low-speed terminal device connected to port1, and then compares the capability sets of both parties to select the highest rate and full-duplex mode supported by both parties as the preset values;

[0096] Then control the connection between port0 and port1 of the converter, and then access the router management interface on the computer to check the status of the LAN2 port of the tested router;

[0097] If the LAN2 port of the tested router is in down state, it means that the tested terminal device connected to the port1 port of the tested router has failed to negotiate with the network port of the tested router, and the computer records the test result. Then the computer will control the next port of the adapter to connect to port0 and restart the test;

[0098] If the LAN2 of the router under test is in the up state, the computer should compare the negotiated connection rate and duplex mode results of the LAN2 port of the router under test with the expected values ​​to determine whether the negotiation is successful.

[0099] If the connection rate and duplex mode results negotiated by the LAN2 port of the router under test are consistent with the expected values, the negotiation is successful; if the connection rate and duplex mode results negotiated by the LAN2 port of the router under test are inconsistent with the expected values, the negotiation is unsuccessful;

[0100] If the negotiation fails, the computer needs to record the connection rate and duplex mode of the LAN2 port of the router to be tested, the expected value, and the conclusion of the negotiation failure. Then the computer will control the next port of the adapter to connect to port0 and restart the test;

[0101] If the negotiation is successful, the computer should record that the negotiation result of port 1 of the router under test is in line with expectations.

[0102] The computer will then connect the next port of the control adapter to port0 and restart the test.

[0103] Repeat the above process until all ports of the connector have been tested.

[0104] The same or similar reference numerals correspond to the same or similar components;

[0105] The terms used in the drawings to describe positional relationships are only used for illustrative purposes and should not be construed as limiting this patent;

[0106] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A network port compatibility testing device, characterized in that: It includes a host computer, a router to be tested, several terminal devices and converters, among which: The host computer is connected to the router to be tested and the converter respectively; The converter is provided with a plurality of connection ports, and the converter is respectively connected to the router and a plurality of terminal devices through the plurality of connection ports, and the on-off of the signal paths of the plurality of connection ports is controlled by the host computer.

2. The network port compatibility testing device according to claim 1, characterized in that: The converter also includes an interface circuit, an analog switch module, a microcontroller, a signal acquisition circuit and a host computer interface, wherein: One end of the host computer interface is connected to the host computer, and the other end of the host computer interface is connected to the microcontroller, and a host computer signal is received or a signal is sent to the host computer through the host computer interface; The microcontroller is connected to the analog switch module and the signal acquisition circuit respectively, and the microcontroller controls the channel switching of the analog switch module according to the received host computer signal, and the microcontroller receives the data collected by the signal acquisition circuit and sends it to the host computer through the host computer interface; The analog switch module is connected to the multiple connection ports through the interface circuit, and the analog switch module is used to realize the on and off of the signal paths of the multiple connection ports; The signal acquisition circuit is connected to the multiple connection ports through the interface circuit, and the signal acquisition circuit acquires electrical signals from the multiple connection ports.

3. The network port compatibility testing device according to claim 2, characterized in that: The host computer interface is a USB interface.

4. The network port compatibility testing device according to claim 2, characterized in that: The multiple connection ports provided on the converter are RJ45 interfaces.

5. A network port compatibility testing method, characterized in that: The testing method is applied to the network port compatibility testing device according to any one of claims 1 to 4, comprising the following steps: S1: Obtain the network port capability set of the router under test through the converter; S2: Select a number of terminal devices to obtain the current test terminal device; S3: Obtain the network port capability set of the current test terminal device through the converter; S4: Obtaining a current test rate and a test duplex mode according to the network port capability set of the router to be tested and the network port capability set of the current test terminal device; S5: Connecting the router to be tested and the current test terminal device through a converter; S6: The host computer obtains the status of the router to be tested; S7: Obtaining a negotiation result between the router to be tested and the current test terminal device according to the state of the router to be tested; S8: Record the current test rate, test duplex mode and negotiation result; S9: Select another terminal device as a new current test terminal device, and return to S3 until all terminal devices are tested, and enter S10; S10: End of test.

6. The network port compatibility testing method according to claim 5, characterized in that: Before step S1, the method further includes the following steps: The network ports of the router and terminal device to be tested are set to automatic mode.

7. The network port compatibility testing method according to claim 5, characterized in that: The step S4 obtains the current test rate and test duplex mode according to the network port capability set of the router to be tested and the network port capability set of the current test terminal device, including: The network port capability set of the router to be tested includes the rate and duplex mode supported by the router to be tested; The network port capability set of the current test terminal device includes the rate and duplex mode supported by the current test terminal device; Compare the network port capability set of the router to be tested and the network port capability set of the current test terminal device, select the rate supported by both the router to be tested and the current test terminal device as the test rate, and select the duplex mode supported by both the router to be tested and the current test terminal device as the test duplex mode.

8. The network port compatibility testing method according to claim 5, characterized in that: The step S5 connects the router to be tested and the current test terminal device through a converter, including: The converter connects the connection ports to which the router to be tested and the current test terminal device are respectively connected through the analog switch module.

9. The network port compatibility testing method according to claim 5, characterized in that: The step S7 obtains the negotiation result between the router to be tested and the current test terminal device according to the state of the router to be tested, including: If the state of the router to be tested is down, the negotiation fails; If the state of the router to be tested is up, it is determined whether the port rate of the router to be tested is consistent with the test rate and whether the duplex mode of the router to be tested is consistent with the test duplex mode. If they are consistent, the negotiation succeeds; if they are not completely consistent, the negotiation fails.

10. The network port compatibility testing method according to claim 5, characterized in that: The step S11 is also included: All recorded negotiation results and the corresponding current test rate and test duplex mode are displayed visually.

Citation Information

Patent Citations

  • Network equipment test method and device

    CN109428783A

  • Compatibility testing device, compatibility testing method and compatibility testing system

    CN113419911A

  • PCIE signal testing device and method and storage medium thereof

    CN114167173A