Loopback test method, device, circuit, equipment and medium for communication equipment network port

文档序号:1159034 发布日期:2020-09-15 浏览:8次 中文

阅读说明:本技术 通信设备网口的环回测试方法、装置、电路、设备及介质 (Loopback test method, device, circuit, equipment and medium for communication equipment network port ) 是由 苏远柱 于 2020-07-09 设计创作,主要内容包括:本申请公开了一种通信设备网口的环回测试方法、装置、电路、电子设备及计算机可读存储介质,该方法应用于与开关电路模块连接的控制器,通信设备网口通过开关电路模块与PHY端口连接,方法包括:接收输入的通路模式选择指令;确定与通路模式选择指令对应的开关切换指令;将开关切换指令发送至开关电路模块,切换通信设备网口与PHY端口间的信号通路连接状态,以便进行对应模式下的环回测试。本申请利用设置在通信设备网口与PHY端口间的开关电路模块,可在无需插入光模块、光纤回环模块等情况下,低成本且高效地测试出通信设备网口的终端环回信号的真实情况,极大地便利了老化测试、样机调试、故障节点定位等操作的进行。(The application discloses a loopback test method, a device, a circuit, electronic equipment and a computer readable storage medium of a communication equipment network port, the method is applied to a controller connected with a switch circuit module, the communication equipment network port is connected with a PHY port through the switch circuit module, and the method comprises the following steps: receiving an input channel mode selection instruction; determining a switch switching instruction corresponding to the access mode selection instruction; and sending the switch switching instruction to the switch circuit module, and switching the connection state of a signal path between the network port and the PHY port of the communication equipment so as to carry out loopback test in a corresponding mode. By utilizing the switch circuit module arranged between the communication equipment network port and the PHY port, the real situation of the terminal loopback signal of the communication equipment network port can be tested with low cost and high efficiency under the condition that an optical module, an optical fiber loopback module and the like do not need to be inserted, and the operations of aging test, prototype debugging, fault node positioning and the like are greatly facilitated.)

1. A loopback test method of a communication equipment network port, wherein the communication equipment network port is connected with a PHY port through a switch circuit module, the method is applied to a controller connected with the switch circuit module, and the method comprises the following steps:

receiving an input channel mode selection instruction;

determining a switch switching instruction corresponding to the access mode selection instruction;

and sending the switch switching instruction to the switch circuit module, and switching the connection state of the signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test in a corresponding mode.

2. The loopback test method as recited in claim 1, wherein if the path mode selection instruction is a single-port self loopback mode instruction, the sending the switch switching instruction to the switch circuit module comprises:

and sending a first switch switching instruction corresponding to the single-port self-loopback mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication port, and enabling a pair of signal ends of the PHY port to be connected with each other through the switch circuit module, wherein the pair of signal ends comprises a signal sending end and a signal receiving end.

3. The loopback test method as recited in claim 1, wherein the PHY port comprises a first port and a second port, the first port comprising a first signal transmitter and a first signal receiver, the second port comprising a second signal transmitter and a second signal receiver;

if the access mode selection instruction is a multi-network-port cross loopback mode instruction, the sending the switch switching instruction to the switch circuit module includes:

and sending a second switch switching instruction corresponding to the multi-port cross loopback mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication port, and connecting the first signal sending end and the second signal receiving end through the switch circuit module so as to connect the first signal receiving end and the second signal sending end.

4. The loopback test method as recited in claim 3, wherein the disconnecting the PHY port from the device communication portal comprises:

disconnecting the first port from the first equipment communication network port, and disconnecting the second port from the second equipment communication network port;

the first device communication network port and the second device communication network port belong to different virtual local area networks.

5. The loopback test method as recited in claim 1, wherein if the path mode selection instruction is a normal communication mode instruction, the sending the switch switching instruction to the switch circuit module comprises:

and sending a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module so that the signal sending end of the PHY port is connected to the signal receiving end of the corresponding communication equipment network port through the switch circuit module, and the signal receiving end of the PHY port is connected to the signal sending end of the communication equipment network port through the switch circuit module.

6. The loopback test method according to any one of claims 1 to 5, wherein if the pass mode selection instruction is a BYPASS mode instruction, the sending the switch switching instruction to the switch circuit module comprises:

and sending a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication network port, and connecting a first signal sending end and a second signal sending end of the PHY port and connecting a first signal receiving end and a second signal receiving end of the PHY port through the switch circuit module.

7. A loopback test device for a communication equipment network port, wherein the communication equipment network port is connected with a PHY port through a switch circuit module, the device comprises:

the receiving module is used for receiving an input channel mode selection instruction;

a determining module, configured to determine a switch switching instruction corresponding to the access mode selection instruction;

and the sending module is used for sending the switch switching instruction to the switch circuit module and switching the connection state of a signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test in a corresponding mode.

8. A loopback test circuit of a communication equipment network port is characterized by comprising:

the switch circuit module is connected between the network port and the PHY port of the communication equipment;

and the controller is connected with the switch circuit module and used for receiving an input access mode selection instruction, determining a switch switching instruction corresponding to the access mode selection instruction, sending the switch switching instruction to the switch circuit module, and switching the signal access connection state between the communication equipment network port and the PHY port so as to perform loopback test in a corresponding mode.

9. An electronic device, comprising:

a memory for storing a computer program;

a processor for executing the computer program to implement the steps of the loopback testing method of a communication device socket according to any of claims 1 to 6.

10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, is adapted to carry out the steps of the method for loopback testing of a communication device network port according to any of claims 1 to 6.

Technical Field

The present application relates to the field of network communication technologies, and in particular, to a loopback testing method, apparatus, circuit, electronic device, and computer-readable storage medium for a network port of a communication device.

Background

Loopback Test (Loopback Test) is a debugging Test means for sending a signal from a sending port of a network element and receiving the signal from a receiving port of the network element, and is an important judgment mode for carrying out port communication maintenance, checking failure nodes in the port and judging whether equipment works normally.

However, in the related art, the hardware LOOPBACK of the communication device generally only has a LOOPBACK close to a Media Access Control (MAC) port, i.e., a MAC _ loop; and a LOOPBACK (namely PHY _ loop) close to the PHY port, where both of the two types of LOOPBACK are signal circulations completed inside the communication chip, and have a large difference from a terminal LOOPBACK of the network port of the communication device, so that the real situation of the LOOPBACK of the terminal of the network port of the communication device cannot be truly embodied, and therefore the real communication signal quality cannot be accurately obtained under the influence of impedance matching and signal integrity. Therefore, in the related art, the terminal loopback test is performed by adding the external optical module or the optical fiber loopback module, but the test cost is undoubtedly increased.

In view of the above, it is an important need for those skilled in the art to provide a solution to the above technical problems.

Disclosure of Invention

The present application aims to provide a loopback test method, device, circuit, electronic device and computer readable storage medium for communication device network port, so as to implement terminal loopback test of communication device network port with low cost and high quality and obtain signal quality of real communication signal.

In order to solve the above technical problem, in one aspect, the present application discloses a loopback test method for a communication device network port, where the communication device network port is connected to a PHY port through a switch circuit module, and the method is applied to a controller connected to the switch circuit module, and the method includes:

receiving an input channel mode selection instruction;

determining a switch switching instruction corresponding to the access mode selection instruction;

and sending the switch switching instruction to the switch circuit module, and switching the connection state of the signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test in a corresponding mode.

Optionally, if the access mode selection instruction is a single-port self-loopback mode instruction, the sending the switch switching instruction to the switch circuit module includes:

and sending a first switch switching instruction corresponding to the single-port self-loopback mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication port, and enabling a pair of signal ends of the PHY port to be connected with each other through the switch circuit module, wherein the pair of signal ends comprises a signal sending end and a signal receiving end.

Optionally, the PHY port includes a first port and a second port, where the first port includes a first signal transmitting end and a first signal receiving end, and the second port includes a second signal transmitting end and a second signal receiving end;

if the access mode selection instruction is a multi-network-port cross loopback mode instruction, the sending the switch switching instruction to the switch circuit module includes:

and sending a second switch switching instruction corresponding to the multi-port cross loopback mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication port, and connecting the first signal sending end and the second signal receiving end through the switch circuit module so as to connect the first signal receiving end and the second signal sending end.

Optionally, the disconnecting the PHY port from the device communication port includes:

disconnecting the first port from the first equipment communication network port, and disconnecting the second port from the second equipment communication network port;

the first device communication network port and the second device communication network port belong to different virtual local area networks.

Optionally, if the access mode selection instruction is a normal communication mode instruction, the sending the switch switching instruction to the switch circuit module includes:

and sending a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module so that the signal sending end of the PHY port is connected to the signal receiving end of the corresponding communication equipment network port through the switch circuit module, and the signal receiving end of the PHY port is connected to the signal sending end of the communication equipment network port through the switch circuit module.

Optionally, if the channel mode selection instruction is a BYPASS mode instruction, the sending the switch switching instruction to the switch circuit module includes:

and sending a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication network port, and connecting a first signal sending end and a second signal sending end of the PHY port and connecting a first signal receiving end and a second signal receiving end of the PHY port through the switch circuit module.

On the other hand, this application has still disclosed a loopback testing arrangement of communication equipment net gape, the communication equipment net gape passes through the switch circuit module and is connected with PHY port, the device includes:

the receiving module is used for receiving an input channel mode selection instruction;

a determining module, configured to determine a switch switching instruction corresponding to the access mode selection instruction;

and the sending module is used for sending the switch switching instruction to the switch circuit module and switching the connection state of a signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test in a corresponding mode.

In another aspect, the present application further discloses a loopback test circuit of a communication device network port, including:

the switch circuit module is connected between the network port and the PHY port of the communication equipment;

and the controller is connected with the switch circuit module and used for receiving an input access mode selection instruction, determining a switch switching instruction corresponding to the access mode selection instruction, sending the switch switching instruction to the switch circuit module, and switching the signal access connection state between the communication equipment network port and the PHY port so as to perform loopback test in a corresponding mode.

Optionally, if the access mode selection instruction is a single-port self-loopback mode instruction, the controller is specifically configured to: sending a first switch switching instruction corresponding to the single-interface self-loopback mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: after receiving the first switch switching instruction, disconnecting the PHY port from the device communication network port, and connecting a pair of signal ends of the PHY port with each other through the switch circuit module; the pair of signal terminals includes a signal transmitting terminal and a signal receiving terminal.

Optionally, the PHY port includes a first port and a second port, where the first port includes a first signal transmitting end and a first signal receiving end, and the second port includes a second signal transmitting end and a second signal receiving end;

if the access mode selection instruction is a multi-network-port cross loopback mode instruction, the controller is specifically configured to: sending a second switch switching instruction corresponding to the multi-network-port cross loopback mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: and disconnecting the PHY port from the communication network port of the equipment, and connecting the first signal sending end with the second signal receiving end through the switch circuit module so as to connect the first signal receiving end with the second signal sending end.

Optionally, the switch circuit module is specifically configured to:

disconnecting the first port from the first equipment communication network port, and disconnecting the second port from the second equipment communication network port; the first device communication network port and the second device communication network port belong to different virtual local area networks.

Optionally, if the access mode selection instruction is a normal communication mode instruction, the controller is specifically configured to: sending a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: and connecting the signal transmitting end of the PHY port to the signal receiving end of the corresponding communication equipment network port through the switch circuit module, and connecting the signal receiving end of the PHY port to the signal transmitting end of the communication equipment network port through the switch circuit module.

Optionally, if the channel mode selection instruction is a BYPASS mode instruction, the controller is specifically configured to: sending a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: and disconnecting the PHY port from the communication network port of the equipment, and connecting a first signal transmitting end and a second signal transmitting end of the PHY port through the switch circuit module, so that a first signal receiving end and a second signal receiving end of the PHY port are connected.

In a fourth aspect, the present application further discloses an electronic device, including:

a memory for storing a computer program;

a processor for executing the computer program to implement the steps of the loopback testing method of any one of the communication device ports as described above.

In still another aspect, the present application further discloses a computer-readable storage medium, in which a computer program is stored, and the computer program is used to implement the steps of any one of the above described loopback testing methods for a communication device network interface when executed by a processor.

The loopback test method of the communication equipment network port provided by the application is applied to a controller connected with a switch circuit module, the communication equipment network port is connected with a PHY port through the switch circuit module, and the method comprises the following steps: receiving an input channel mode selection instruction; determining a switch switching instruction corresponding to the access mode selection instruction; and sending the switch switching instruction to the switch circuit module, and switching the connection state of the signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test in a corresponding mode.

Therefore, the switching circuit module arranged between the communication equipment network port and the PHY port can be used for switching the signal path connection state between the communication equipment network port and the PHY port according to the path mode selection instruction selected by a user, and particularly, the signal path adjustment is carried out on one side, close to the communication equipment network port, of the switching circuit module, so that the real situation of a terminal loopback signal of the communication equipment network port can be tested at low cost and high efficiency under the condition that an optical module, an optical fiber loopback module and the like are not required to be inserted, and the operations of aging test, prototype debugging, fault node positioning and the like are greatly facilitated. The loopback test device, the circuit, the electronic equipment and the computer readable storage medium of the communication equipment network port have the advantages.

Drawings

In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings that are needed to be used in the description of the prior art and the embodiments of the present application will be briefly described below. For those skilled in the art, without creative efforts, other drawings can be obtained according to the provided drawings, and the obtained other drawings also belong to the protection scope of the present application.

Fig. 1 is an application scenario diagram of a loopback test method for a network port of a communication device disclosed in an embodiment of the present application;

fig. 2 is a flowchart of a loopback test method of an internet access of a communication device disclosed in the embodiment of the present application;

fig. 3 is a schematic diagram of a signal path in a single-port self-loopback mode disclosed in an embodiment of the present application;

fig. 4 is a schematic diagram of a signal path in a multi-port cross loopback mode disclosed in the embodiment of the present application;

fig. 5 is a schematic signal path diagram in another multi-port cross loopback mode disclosed in the embodiment of the present application;

fig. 6 is a schematic diagram of a signal path in a normal communication mode according to an embodiment of the present application;

fig. 7 is a schematic diagram of a signal path in BYPASS mode according to an embodiment of the present application;

fig. 8 is a block diagram of a loopback test device of a communication device network port disclosed in the embodiment of the present application;

fig. 9 is a block diagram of an electronic device according to an embodiment of the present disclosure.

Detailed Description

The core of the application is to provide a loopback test method, a device, a circuit, electronic equipment and a computer readable storage medium for the communication equipment network port, so as to realize the terminal loopback test of the communication equipment network port with low cost and high quality and obtain the signal quality of a real communication signal.

In order to more clearly and completely describe the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Loopback Test (Loopback Test) is a debugging Test means for sending a signal from a sending port of a network element and receiving the signal from a receiving port of the network element, and is an important judgment mode for carrying out port communication maintenance, checking failure nodes in the port and judging whether equipment works normally.

However, in the related art, the hardware LOOPBACK of the communication device generally only has a LOOPBACK close to a Media Access Control (MAC) port, i.e., a MAC _ loop; and a LOOPBACK (i.e. PHY _ loop) close to a PHY (Physical layer) port, where both of the two types of LOOPBACK are signal circulations completed inside a communication chip, and have a large difference from a terminal side LOOPBACK of a network port of a communication device, so that a real situation of the terminal LOOPBACK of the network port of the communication device cannot be truly embodied, and therefore, a real communication signal quality under the influence of impedance matching and signal integrity cannot be accurately obtained. Therefore, in the related art, the terminal loopback test is performed by adding the external optical module or the optical fiber loopback module, but the test cost is undoubtedly increased. In view of this, the present application provides a loopback test scheme for a network port of a communication device, which can effectively solve the above problems.

Referring to fig. 1, fig. 1 is an application scenario diagram of a loopback test method for an internet access of a communication device disclosed in an embodiment of the present application.

An Ethernet (Ethernet) MAC port, PHY port, switching circuit module, communication device port, and controller are shown in fig. 1. Under the condition of normal communication of the system, the Ethernet MAC port, the PHY port, the switch circuit module and the communication equipment network port are connected in sequence to form a normal signal circulation path. In the drawings related to the present application, TX denotes a signal transmitting end, and RX denotes a signal receiving end.

The controller is connected with the control end of the switch circuit module and is used for controlling the on-off state of each switch in the switch circuit module. The loopback test method for the network port of the communication equipment disclosed by the embodiment of the application can be particularly applied to the controller.

Referring to fig. 2, an embodiment of the present application discloses a loopback test method for a communication device network port, where the communication device network port is connected to a PHY port through a switch circuit module, and the method is applied to a controller connected to the switch circuit module, and mainly includes:

s101: an input access mode selection command is received.

S102: a switch switching command corresponding to the pass mode selection command is determined.

S103: and sending the switch switching instruction to the switch circuit module, and switching the connection state of a signal path between the network port and the PHY port of the communication equipment so as to carry out loopback test in a corresponding mode.

Specifically, the loopback test method for the network port of the communication device provided in the embodiment of the present application is implemented based on the switch circuit module disposed between the network port of the communication device and the PHY port. As the name implies, the switch circuit module is a switch circuit in which a plurality of switches are provided, and the switch circuit module can form a plurality of different switch-on states by adjusting the on-off states of the respective switches.

The controller is connected with the switch circuit module and is used for controlling the on-off of each switch in the switch circuit module. The switch circuit module is specifically connected between the communication equipment network port and the PHY port, so that the connection state of the signal path between the communication equipment network port and the PHY port can be switched by changing the state of the switch path inside the switch circuit module, so as to carry out loopback test under the signal path of a corresponding mode.

When the switch path state inside the switch circuit module is changed so as to switch the signal path connection state between the communication device network port and the PHY port, if the signal path is specifically adjusted at a side close to the communication device network port inside the switch circuit module, the terminal network port loopback test can be implemented; if the signal path is adjusted on the side of the switch circuit module close to the PHY port, the loopback test of the PHY port can be realized.

Furthermore, when the signal path adjustment is performed on one side of the switch circuit module close to the network port of the communication device, different signal paths can be specifically selected, so as to realize the loopback test in different path modes. Therefore, the controller can control the switch circuit module to enter a corresponding signal path connection state according to the received path mode selection instruction and the corresponding switch switching instruction, so that the loopback test of the corresponding mode is carried out in the signal path connection state.

Moreover, it is easily understood that the setting of the switch circuit module and the controller in the present application does not affect the MAC _ loop and the PHY _ loop, that is, the present application not only can normally implement the MAC _ loop and the PHY _ loop in the related art, but also can implement the terminal loop for the network port of the communication device.

In addition, still need explain that the switch circuit module in this application can be based on basic components and parts such as relay, switch tube and build the realization, has low cost's advantage.

The loopback test method for the network port of the communication equipment provided by the embodiment of the application is applied to a controller connected with the switch circuit module, the switch circuit module is connected between the network port of the communication equipment and the PHY port, and the method comprises the following steps: receiving an input channel mode selection instruction; determining a switch switching instruction corresponding to the access mode selection instruction; and sending the switch switching instruction to the switch circuit module, and switching the connection state of the signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test in a corresponding mode.

Therefore, the switching circuit module arranged between the communication equipment network port and the PHY port can be used for switching the signal path connection state between the communication equipment network port and the PHY port according to the path mode selection instruction selected by a user, and particularly, the signal path adjustment is carried out on one side, close to the communication equipment network port, of the switching circuit module, so that the real situation of a terminal loopback signal of the communication equipment network port can be tested at low cost and high efficiency under the condition that an optical module, an optical fiber loopback module and the like are not required to be inserted, and the operations of aging test, prototype debugging, fault node positioning and the like are greatly facilitated.

As a specific embodiment, the loopback test method for an internet access of a communication device provided in the embodiment of the present application, based on the above, if the access mode selection instruction is a single-internet-access self-loopback mode instruction, then sending the switch switching instruction to the switch circuit module, includes:

and sending a first switch switching instruction corresponding to the single-port self-loopback mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication port, and enabling a pair of signal ends of the PHY port to be connected with each other through the switch circuit module, wherein the pair of signal ends comprises a signal sending end and a signal receiving end.

Referring to fig. 3, fig. 3 is a schematic diagram of a signal path in a single-port self-loopback mode disclosed in the embodiment of the present application.

Specifically, in a single-port SELF-LOOPBACK mode (i.e., LOOPBACK _ SELF mode), a signal link between the switch circuit module and the communication device port is disconnected, and a signal transmitting end and a signal receiving end of the PHY port are connected to each other inside the switch circuit module on a side close to the communication device port, thereby implementing LOOPBACK. At the moment, the link breakpoint is close to the port of the communication equipment, so that the loopback signal is very close to the signal when the port of the communication equipment is short-circuited, and the method can be used for realizing aging test, prototype debugging, fault node positioning and the like aiming at the port of the communication equipment.

It is easy to understand that, in this embodiment, the signal transmitting end and the signal receiving end connected to each other in the PHY port are a pair of signal ends belonging to the same PHY port.

As a specific embodiment, in the loopback test method for an internet port of a communication device provided in the embodiment of the present application, on the basis of the foregoing, the PHY port includes a first port and a second port, the first port includes a first signal transmitting end and a first signal receiving end, and the second port includes a second signal transmitting end and a second signal receiving end;

if the access mode selection instruction is a multi-network-port cross loopback mode instruction, the sending the switch switching instruction to the switch circuit module includes:

and sending a second switch switching instruction corresponding to the multi-port cross loopback mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication port, and connecting the first signal sending end and the second signal receiving end through the switch circuit module so as to connect the first signal receiving end and the second signal sending end.

Referring to fig. 4, fig. 4 is a schematic diagram of a signal path in a multi-network-port cross loopback mode disclosed in the embodiment of the present application.

It should be noted that, in the embodiments of the present application and the following description, the first port and the second port refer to two different PHY ports participating in the cross loop, and do not refer to a specific two PHY ports. And in general, the first port and the second port participating in the cross-loopback may be embodied as two adjacent PHY ports.

Specifically, in the multi-port CROSS LOOPBACK mode (i.e., the LOOPBACK _ CROSS mode), the signal link between the switch circuit module and the communication device port is disconnected, and, at a side inside the switch circuit module close to the communication device port, the signal transmitting end of the PHY first port and the signal receiving end of the second port are connected to each other, and the signal receiving end of the PHY first port and the signal transmitting end of the second port are connected to each other, thereby realizing CROSS LOOPBACK between the first port and the second port.

Referring to fig. 5, fig. 5 is a schematic diagram of a signal path in another multi-port cross loopback mode disclosed in the embodiment of the present application.

Further, the loopback test method for an internet access of a communication device provided in the embodiment of the present application, based on the above contents, the disconnecting the PHY port from the communication internet access of the device includes:

disconnecting the first port from the first equipment communication network port, and disconnecting the second port from the second equipment communication network port;

the first device communication network port and the second device communication network port belong to different virtual local area networks.

The circuit is specifically described by taking a part of the circuit in fig. 5 as an example. Under normal communication conditions, a first port of the PHY port corresponds to the communication device port 1, and a second port of the PHY port corresponds to the communication device port 2. Under the multi-network-port cross loopback mode, the first port is disconnected with the communication equipment network port 1, and the second port is disconnected with the communication equipment network port 2; and the signal transmitting end of the first port is connected with the signal receiving end of the second port, and the signal receiving end of the first port is connected with the signal transmitting end of the second port.

By matching with a Virtual Local Area Network (VLAN) setting and packet receiving and sending test instrument for each communication equipment Network port, monitoring and testing of full communication flow of the whole board can be realized, and aging test, prototype debugging, fault node positioning and the like can be carried out.

It should be noted that, in order to avoid the occurrence of broadcast storm and other problems, in this embodiment, the two communication device ports participating in the cross loopback are respectively in different VLANs. For example, communication device portal 1 is in VLAN1, while communication device portal 2 is in VLAN 2.

Furthermore, in order to avoid communication congestion and traffic congestion, in this embodiment, the two communication device ports that do not participate in the cross loopback are commonly arranged in the same VLAN. For example, communication device portal 2 and communication device portal 3 that do not participate in the cross-loopback are both in VLAN 2.

As a specific embodiment, the loopback test method for a network port of a communication device provided in the embodiment of the present application, based on the above contents, sends a switch switching instruction to a switch circuit module if the path mode selection instruction is a normal communication mode instruction, and includes:

and sending a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module so that the signal sending end of the PHY port is connected to the signal receiving end of the corresponding communication equipment network port through the switch circuit module, and the signal receiving end of the PHY port is connected to the signal sending end of the communication equipment network port through the switch circuit module.

Referring to fig. 6, fig. 6 is a schematic diagram of a signal path in a normal communication mode disclosed in the embodiment of the present application.

Specifically, in the NORMAL communication mode (i.e., BYPASS _ DIS or NORMAL mode), the signal link between the switch circuit module and the network port of the communication device is normally connected, i.e., there is no substantial difference from the NORMAL communication device at this time, and the related circuits in the switch circuit module do not affect the communication signal.

As a specific embodiment, the loopback test method for a network port of a communication device provided in the embodiment of the present application, based on the above contents, sends a switch switching instruction to a switch circuit module if the path mode selection instruction is a BYPASS mode instruction, and includes:

and sending a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module so as to disconnect the connection between the PHY port and the equipment communication network port, and connecting the first signal sending end and the second signal sending end of the PHY port and connecting the first signal receiving end and the second signal receiving end of the PHY port through the switch circuit module.

Referring to fig. 7, fig. 7 is a schematic diagram of a signal path in BYPASS mode according to an embodiment of the present application.

The BYPASS technology is specifically that after a preset condition is triggered by a communication device (generally, the device is powered off or has a major fault), related ports are directly and physically connected to each other, so that signals connected to the communication device are conducted with each other, and data transmission interruption is avoided.

Specifically, in the BYPASS mode (i.e., BYPASS _ EN mode), the signal link between the switch circuit module and the network port of the communication device is disconnected, the signal transmitting terminals of two different PHY ports are connected to each other, and the signal receiving terminals of two different PHY ports are connected to each other. Therefore, signals of other communication devices connected in series on the communication device can still flow normally, so that the network of the user can still be used.

Referring to fig. 8, an embodiment of the present application discloses a loopback test apparatus for a communication device network port, where the communication device network port is connected to a PHY port through a switch circuit module, and the apparatus includes:

a receiving module 201, configured to receive an input channel mode selection instruction;

a determining module 202, configured to determine a switch switching instruction corresponding to the access mode selection instruction;

the sending module 203 is configured to send the switch switching instruction to the switch circuit module, and switch a connection state of a signal path between the network port and the PHY port of the communication device, so as to perform a loopback test in a corresponding mode.

It can be seen that, the loopback testing device for a communication device network port disclosed in the embodiment of the present application, using the switch circuit module disposed between the communication device network port and the PHY port, can switch the connection state of the signal path between the communication device network port and the PHY port according to the path mode selection instruction selected by the user, and particularly, by adjusting the signal path at the side of the switch circuit module close to the communication device network port, the real situation of the terminal loopback signal of the communication device network port can be tested at low cost and high efficiency without inserting an optical module, an optical fiber loopback module, and the like, thereby greatly facilitating the operations of aging testing, prototype debugging, fault node positioning, and the like.

For the specific content of the loopback test device for the network port of the communication device, reference may be made to the foregoing detailed description of the loopback test method for the network port of the communication device, and details thereof are not repeated here.

The embodiment of the present application further discloses a loopback test circuit of a communication device network port, which specifically refers to fig. 1, and includes:

the switch circuit module is connected between the network port and the PHY port of the communication equipment;

and the controller is connected with the switch circuit module and used for receiving the input access mode selection instruction, determining a switch switching instruction corresponding to the access mode selection instruction, sending the switch switching instruction to the switch circuit module, and switching the signal access connection state between the network port and the PHY port of the communication equipment so as to carry out loopback test in a corresponding mode.

It can be seen that, the loopback test circuit of the communication device network port disclosed in the embodiment of the present application, using the switch circuit module disposed between the communication device network port and the PHY port, can switch the signal path connection state between the communication device network port and the PHY port according to the path mode selection instruction selected by the user, and particularly, by adjusting the signal path at the side of the switch circuit module close to the communication device network port, the real condition of the terminal loopback signal of the communication device network port can be tested at low cost and high efficiency without inserting an optical module, an optical fiber loopback module, etc., thereby greatly facilitating the operations of aging test, prototype debugging, fault node positioning, etc.

As a specific embodiment, in the loopback test circuit of an internet access of a communication device provided in the embodiment of the present application, on the basis of the foregoing, if the access mode selection instruction is a single-internet-access self-loopback mode instruction, the controller is specifically configured to: sending a first switch switching instruction corresponding to the single-interface self-loopback mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: after receiving a first switch switching instruction, disconnecting the PHY port from the equipment communication network port, and connecting a pair of signal ends of the PHY port with each other through the switch circuit module; the pair of signal terminals includes a signal transmitting terminal and a signal receiving terminal.

As a specific embodiment, in the loopback test circuit of an internet port of a communication device provided in the embodiment of the present application, on the basis of the above contents, the PHY port includes a first port and a second port, the first port includes a first signal transmitting end and a first signal receiving end, and the second port includes a second signal transmitting end and a second signal receiving end;

if the access mode selection instruction is a multi-network-port cross loopback mode instruction, the controller is specifically configured to: sending a second switch switching instruction corresponding to the multi-network-port cross loopback mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: and disconnecting the PHY port from the equipment communication network port, and connecting the first signal sending end with the second signal receiving end and connecting the first signal receiving end with the second signal sending end through the switch circuit module.

As a specific embodiment, in the loopback test circuit of the network port of the communication device provided in the embodiment of the present application, on the basis of the foregoing content, the switch circuit module is specifically configured to:

disconnecting the first port from the first equipment communication port, and disconnecting the second port from the second equipment communication port; the first device communication network port and the second device communication network port belong to different virtual local area networks.

As a specific embodiment, in the loopback test circuit of an internet port of a communication device provided in the embodiment of the present application, on the basis of the foregoing, if the access mode selection instruction is a normal communication mode instruction, the controller is specifically configured to: sending a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: and the signal receiving end of the PHY port is connected to the signal sending end of the communication equipment network port through the switch circuit module.

As a specific embodiment, in the loopback test circuit of a network interface of a communication device provided in the embodiment of the present application, on the basis of the foregoing content, if the channel mode selection instruction is a BYPASS mode instruction, the controller is specifically configured to: sending a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module;

the switching circuit module is specifically configured to: and disconnecting the PHY port from the equipment communication network port, and connecting a first signal sending end and a second signal sending end of the PHY port through the switch circuit module, so that a first signal receiving end and a second signal receiving end of the PHY port are connected.

Referring to fig. 9, an embodiment of the present application discloses an electronic device, including:

a memory 301 for storing a computer program;

a processor 302 for executing the computer program to implement the steps of any one of the above described loopback testing methods for a communication device network port.

Further, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored, and the computer program is used, when being executed by a processor, to implement the steps of any one of the above-mentioned loopback testing methods for a network interface of a communication device.

For the details of the electronic device and the computer-readable storage medium, reference may be made to the foregoing detailed description of the loopback test method for the network interface of the communication device, and details thereof are not repeated here.

The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the equipment disclosed by the embodiment, the description is relatively simple because the equipment corresponds to the method disclosed by the embodiment, and the relevant parts can be referred to the method part for description.

It is further noted that, throughout this document, relational terms such as "first" and "second" are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The technical solutions provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall into the protection scope of the present application.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种被用于无线通信的用户设备、基站中的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类