CN111669255B - Communication equipment network port loopback test method, device, circuit, equipment and medium - Google Patents

Communication equipment network port loopback test method, device, circuit, equipment and medium Download PDF

Info

Publication number
CN111669255B
CN111669255B CN202010656600.9A CN202010656600A CN111669255B CN 111669255 B CN111669255 B CN 111669255B CN 202010656600 A CN202010656600 A CN 202010656600A CN 111669255 B CN111669255 B CN 111669255B
Authority
CN
China
Prior art keywords
port
circuit module
switch circuit
network port
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010656600.9A
Other languages
Chinese (zh)
Other versions
CN111669255A (en
Inventor
苏远柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sundray Technologies Co ltd
Original Assignee
Shenzhen Sundray Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sundray Technologies Co ltd filed Critical Shenzhen Sundray Technologies Co ltd
Priority to CN202010656600.9A priority Critical patent/CN111669255B/en
Publication of CN111669255A publication Critical patent/CN111669255A/en
Application granted granted Critical
Publication of CN111669255B publication Critical patent/CN111669255B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation
    • H04L1/242Testing correct operation by comparing a transmitted test signal with a locally generated replica
    • H04L1/243Testing correct operation by comparing a transmitted test signal with a locally generated replica at the transmitter, using a loop-back
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The application discloses a loopback test method, a device, a circuit, an electronic device and a computer readable storage medium of a communication device network port, wherein the method is applied to a controller connected with a switch circuit module, and the communication device 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 a switch switching instruction to the switch circuit module, and switching the connection state of the signal path between the network port and the PHY port of the communication equipment so as to carry out loopback test under a corresponding mode. The switching circuit module arranged between the network port and the PHY port of the communication equipment can test the real situation of the terminal loop-back signal of the network port of the communication equipment with low cost and high efficiency under the condition that an optical module, an optical fiber loop-back module and the like are not needed to be inserted, so that the operation of aging test, prototype debugging, fault node positioning and the like is greatly facilitated.

Description

Communication equipment network port loopback test method, device, circuit, equipment and medium
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a method, an apparatus, a circuit, an electronic device, and a computer readable storage medium for loop testing of a network port of a communication device.
Background
The loop back Test (LoopBack Test) is a debugging Test means for sending out signals from a sending port of a network element and receiving the signals from a receiving port of the network element, and is an important judging mode for carrying out port communication maintenance, checking failure nodes in the ports and judging whether equipment works normally.
However, in the related art, the hardware loop back to the communication device generally has only a loop back near the MAC (Media Access Control ) port, i.e., mac_loop; and loop-back (namely PHY_LOOPBACK) close to the PHY port, wherein the loop-back and the loop-back are signal circulation completed in the communication chip, have larger difference with the terminal loop-back of the network port of the communication equipment, and cannot truly represent the real condition of the terminal loop-back of the network port of the communication equipment, so that the real communication signal quality under the influence of the blocking impedance matching and the signal integrity cannot be accurately obtained. Therefore, in the related art, the terminal loop test is performed by adopting a mode of adding an external optical module or an optical fiber loop module, but the test cost is increased undoubtedly.
In view of this, it has been a great need for a person skilled in the art to provide a solution to the above-mentioned technical problems.
Disclosure of Invention
The purpose of the application is to provide a loopback test method, a device, a circuit, an electronic device and a computer readable storage medium of a communication equipment network port, so as to realize 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 solve the technical problem, in one aspect, the application discloses 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 under the 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-network port self-loop mode instruction to the switch circuit module so as to disconnect 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, wherein the pair of signal ends comprise a signal sending end and a signal receiving end.
Optionally, 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-portal cross loop back 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 loop back mode instruction to the switch circuit module so as to disconnect the PHY port from the equipment communication network port, 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 disconnecting the PHY port from the device communication network port includes:
disconnecting the first port from the first device communication network port, and disconnecting the second port from the second device communication network port;
the first equipment communication network port and the second equipment communication network port belong to different virtual local area networks.
Optionally, if the path mode selection instruction is a normal communication mode instruction, the sending the switch switching instruction to the switch circuit module includes:
and transmitting a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module, so that the signal transmitting 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 transmitting end of the communication equipment network port through the switch circuit module.
Optionally, if the path 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 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 as to connect a first signal receiving end and a second signal receiving end of the PHY port.
On the other hand, the application also discloses a loopback test device of the communication equipment network port, the communication equipment network port is connected with the PHY port through the switch circuit module, and the device comprises:
the receiving module is used for receiving an input channel mode selection instruction;
the determining module is used for determining 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 the signal path between the network port of the communication equipment and the PHY port so as to carry out loopback test under the corresponding mode.
In yet another aspect, the present application further discloses a loopback test circuit of a network port of a communication device, 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 is 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 network port of the communication equipment and the PHY port so as to perform loopback test under a corresponding mode.
Optionally, if the access mode selection instruction is a single-port self-loopback mode instruction, the controller is specifically configured to: a first switch switching instruction corresponding to the single-network port self-loopback mode instruction is sent to the switch circuit module;
the switch circuit module is specifically used for: 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, 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 path mode selection instruction is a multi-portal cross loop back mode instruction, the controller is specifically configured to: transmitting a second switch switching instruction corresponding to the multi-network crossing loopback mode instruction to the switch circuit module;
the switch circuit module is specifically used for: and disconnecting the PHY port from the device communication network port, and connecting the first signal transmitting end with the second signal receiving end through the switch circuit module, so that the first signal receiving end is connected with the second signal transmitting end.
Optionally, the switch circuit module is specifically configured to:
disconnecting the first port from the first device communication network port, and disconnecting the second port from the second device communication network port; the first equipment communication network port and the second equipment 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: transmitting a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module;
the switch circuit module is specifically used for: the signal transmitting 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 transmitting end of the communication equipment network port through the switch circuit module.
Optionally, if the path mode selection instruction is a BYPASS mode instruction, the controller is specifically configured to: transmitting a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module;
the switch circuit module is specifically used for: and disconnecting the PHY port from the device communication network port, 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 also discloses an electronic device, including:
a memory for storing a computer program;
and a processor for executing the computer program to implement the steps of any of the loopback testing methods of the communication device portal as described above.
In yet another aspect, the present application further discloses a computer readable storage medium having stored therein a computer program which when executed by a processor is configured to implement the steps of any of the communication device portal loop-back test methods described above.
The loopback test method of the communication equipment network port 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 under the corresponding mode.
Therefore, the switching circuit module arranged between the network port of the communication equipment and the PHY port can be used for switching the signal path connection state between the network port of the communication equipment 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 network port of the communication equipment, of the switching circuit module, so that the real condition of the terminal loop back signal of the network port of the communication equipment can be tested at low cost and high efficiency under the condition that an optical module, an optical fiber loop back module and the like are not needed to be inserted, and the operation of aging test, model machine debugging, fault node positioning and the like is greatly facilitated. The loopback testing device, the circuit, the electronic equipment and the computer readable storage medium of the communication equipment network port have the beneficial effects.
Drawings
In order to more clearly illustrate the prior art and the technical solutions in the embodiments of the present application, the following will briefly describe the drawings that need to be used in the description of the prior art and the embodiments of the present application. It will be apparent to those skilled in the art that other figures can be obtained from the provided figures without inventive effort and still fall within the scope of the present application.
Fig. 1 is an application scenario diagram of a loopback testing method of a communication device network port according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a loopback testing method of a communication device network port according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a signal path in a single-port self-loopback mode according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a signal path in a multi-portal cross-loop mode according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a signal path in a multi-portal cross-loop mode according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a signal path in a normal communication mode according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a signal path in BYPASS mode according to embodiments of the present application;
fig. 8 is a structural block diagram of a loopback testing device of a communication device network port according to an embodiment of the present disclosure;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present application.
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 of a communication equipment network port, so as to realize 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 will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The loop back Test (LoopBack Test) is a debugging Test means for sending out signals from a sending port of a network element and receiving the signals from a receiving port of the network element, and is an important judging mode for carrying out port communication maintenance, checking failure nodes in the ports and judging whether equipment works normally.
However, in the related art, the hardware loop back to the communication device generally has only a loop back near the MAC (Media Access Control ) port, i.e., mac_loop; and loop back (namely PHY_LOOPBACK) near PHY (Physical) port, the loop back is the signal circulation completed in the communication chip, and has larger difference with the loop back at the terminal side of the communication equipment network port, the real condition of the loop back at the terminal of the communication equipment network port cannot be shown by a real entity, and therefore, the real communication signal quality under the influence of the blocking impedance matching and the signal integrity cannot be accurately obtained. Therefore, in the related art, the terminal loop test is performed by adopting a mode of adding an external optical module or an optical fiber loop module, but the test cost is increased undoubtedly. In view of this, the present application provides a loop-back test scheme for a network port of a communication device, which can effectively solve the above-mentioned problems.
Referring to fig. 1, fig. 1 is an application scenario diagram of a loopback testing method of a network port of a communication device according to an embodiment of the present application.
An Ethernet MAC port, a PHY port, a switching circuit module, a communication device port, and a controller are shown in fig. 1. Under the normal communication condition of the system, the Ethernet MAC port, the PHY port, the switch circuit module and the communication equipment network port are sequentially connected to form a normal signal circulation path. In the drawings related to the present application, TX represents a signal transmitting end, and RX represents a signal receiving end.
The controller is connected with the control end of the switch circuit module and used for controlling the on-off state of each switch in the switch circuit module. The loopback test method of the communication equipment network port disclosed by the embodiment of the application is particularly applicable to the controller.
Referring to fig. 2, an embodiment of the application discloses a loopback test method of a communication device network port, where the communication device network port is connected with a PHY port through a switch circuit module, and the method is applied to a controller connected with the switch circuit module, and mainly includes:
s101: and receiving an input channel mode selection instruction.
S102: a switch changeover instruction corresponding to the passage mode selection instruction is determined.
S103: and sending a switch switching instruction to the switch circuit module, and switching the connection state of the signal path between the network port and the PHY port of the communication equipment so as to carry out loopback test under a corresponding mode.
Specifically, the loopback test method of the communication equipment network port provided by the embodiment of the application is realized based on the switch circuit module arranged between the communication equipment network port and the PHY port. As the name implies, the switching circuit module is a switching circuit, in which a plurality of switches are disposed, and by adjusting the on-off states of the respective switches, the switching circuit module can form a plurality of different switching path states.
The controller is connected with the switch circuit module and used for controlling the on-off of each switch in the switch circuit module. The switch circuit module is specifically connected between the network port and the PHY port of the communication equipment, so that the connection state of the signal path between the network port and the PHY port of the communication equipment can be switched by changing the state of the switch path in the switch circuit module, and the loop-back test can be carried out under the signal path of the corresponding mode.
When the state of the switch access in the switch circuit module is changed so as to switch the connection state of the signal access between the communication equipment network port and the PHY port, if the signal access is specifically adjusted at one side of the switch circuit module close to the communication equipment network port, the loop-back test of the terminal network port can be realized; if the signal path is specifically adjusted on the side of the switch circuit module close to the PHY port, the loop-back test of the PHY port can be implemented.
Further, when the signal path is adjusted on the side, close to the network port of the communication device, in the switch circuit module, different signal paths can be specifically selected, so that loopback tests under different path modes can be realized. 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 by a corresponding switch switching instruction, so that the loop-back test of the corresponding mode is carried out in the signal path connection state.
Moreover, it is easy to understand that the arrangement of the switch circuit module and the controller in the present application does not affect the mac_lock and the phy_lock, that is, the present application not only can normally implement the mac_lock and the phy_lock in the related art, but also can implement the termination loop for the network port of the communication device.
In addition, it is also to be noted that the switch circuit module in the application can be built based on basic components such as a relay, a switch tube and the like, and has the advantage of low cost.
The loopback test method of the communication equipment network port provided by the embodiment of the application is applied to a controller connected with the switch circuit module, wherein the switch circuit module is connected between the communication equipment network port 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 under the corresponding mode.
Therefore, the switching circuit module arranged between the network port of the communication equipment and the PHY port can be used for switching the signal path connection state between the network port of the communication equipment 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 network port of the communication equipment, of the switching circuit module, so that the real condition of the terminal loop back signal of the network port of the communication equipment can be tested at low cost and high efficiency under the condition that an optical module, an optical fiber loop back module and the like are not needed to be inserted, and the operation of aging test, model machine debugging, fault node positioning and the like is greatly facilitated.
As a specific embodiment, in the method for testing loopback of a communication device network port according to the embodiment of the present application, if the access mode selection instruction is a single-network 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-network port self-loop mode instruction to the switch circuit module so as to disconnect 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, wherein the pair of signal ends comprise 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 according to an embodiment of the present disclosure.
Specifically, in the single-port SELF-LOOPBACK mode (i.e., the loop_self mode), the signal link between the switch circuit module and the communication device port is disconnected, and the signal transmitting end and the signal receiving end of the PHY port are connected with each other at one side, close to the communication device port, inside the switch circuit module, so that LOOPBACK is realized. At this time, the breakpoint of the link is close to the network port of the communication equipment, so that the looped-back signal is very close to the signal when the network 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 network port of the communication equipment.
It is to be understood that, in this embodiment, the signal transmitting end and the signal receiving end which are 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 method for testing loopback of a network port of a communication device according to the embodiment of the present application, based on the above content, 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-portal cross loop back 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 loop back mode instruction to the switch circuit module so as to disconnect the PHY port from the equipment communication network port, 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.
Referring to fig. 4, fig. 4 is a schematic diagram of a signal path in a multi-portal cross loop mode according to an embodiment of the present disclosure.
It should be noted that, in the embodiments of the present application and the first port and the second port mentioned below, two different PHY ports participating in cross loop are meant, and not specifically meant to be two PHY ports. And in general, the first port and the second port participating in the cross-loop may be embodied as two adjacent PHY ports.
Specifically, in the multi-port CROSS-loop mode (i.e., the loop_cross mode), the signal link between the switch circuit module and the communication device port is disconnected, and the signal transmitting end of the PHY first port and the signal receiving end of the second port are connected to each other at a side of the switch circuit module near the communication device port, 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-loop between the first port and the second port.
Referring to fig. 5, fig. 5 is a schematic diagram of a signal path in a multi-portal cross-loop mode according to an embodiment of the present disclosure.
Further, in the method for testing loopback of a communication device port according to the embodiment of the present application, on the basis of the foregoing, the disconnecting the PHY port from the device communication port includes:
disconnecting the first port from the first device communication network port, and disconnecting the second port from the second device communication network port;
the first equipment communication network port and the second equipment communication network port belong to different virtual local area networks.
The partial circuit in fig. 5 is specifically described as an example. Under normal communication conditions, a first port of the PHY port corresponds to the communication device network port 1, and a second port of the PHY port corresponds to the communication device network port 2. In a multi-port cross loop-back mode, the first port is disconnected with the communication equipment port 1, and the second port is disconnected with the communication equipment port 2; 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.
The monitoring and testing of the full communication flow of the whole board can be realized by matching with VLAN (Virtual Local Area Network ) setting and receiving and transmitting packet testing instruments for the network ports of all communication equipment, and aging test, prototype debugging, fault node positioning and the like can be performed.
It should be noted that, in order to avoid the occurrence of the broadcast storm and other problems, in this embodiment, two communication device ports participating in the cross loop are respectively in different VLANs. For example, communication device portal 1 is in VLAN1 and communication device portal 2 is in VLAN 2.
Furthermore, in order to avoid communication blocking and traffic cannot circulate, in this embodiment, two communication device ports that do not participate in cross-loop are commonly disposed in the same VLAN. For example, the communication device portal 2 and the communication device portal 3 that do not participate in cross-loop are both in VLAN 2.
As a specific embodiment, in the method for testing loopback of a network port of a communication device according to the embodiment of the present application, if a path mode selection instruction is a normal communication mode instruction, a switch switching instruction is sent to a switch circuit module, where the method includes:
and transmitting a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module, so that the signal transmitting 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 transmitting 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 according to an 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, and the related circuits in the switch circuit module will not affect the communication signal.
As a specific embodiment, in the method for testing loopback of a communication device network port according to the embodiment of the present application, if the access mode selection instruction is a BYPASS mode instruction, the method sends a switch switching instruction to the switch circuit module, including:
and sending a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module so as to disconnect the PHY port from the device 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 as to connect a first signal receiving end and a second signal receiving end of the PHY port.
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 is a network port BYPASS technology, specifically, after a communication device triggers a preset condition (typically, the device is powered off or fails significantly), the relevant ports are directly and physically connected, so that signals connected to the communication device are mutually conducted, and interruption of data transmission is avoided.
Specifically, in the BYPASS mode (i.e., bypass_en mode), the signal link between the switch circuit module and the communication device network port is disconnected, the signal transmitting ends of two different PHY ports are connected to each other, and the signal receiving ends of two different PHY ports are connected to each other. Thus, signals of other communication devices connected in series to the communication device can still circulate normally, so that the network of the user can still be used.
Referring to fig. 8, an embodiment of the application discloses a loopback testing device of a communication device network port, where the communication device network port is connected with a PHY port through a switch circuit module, and the device 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 path mode selection instruction;
and the sending module 203 is configured to send a 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.
Therefore, the loop-back testing device for the communication equipment network port disclosed by the embodiment of the application can switch the signal path connection state between the communication equipment network port and the PHY port according to the path mode selection instruction selected by the user by using the switch circuit module arranged between the communication equipment network port and the PHY port, and particularly, the signal path adjustment is carried out on one side, close to the communication equipment network port, of the switch circuit module, so that the real condition of the loop-back signal of the terminal end 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 loop-back module and the like are not needed to be inserted, and the operation of aging test, sample debugging, fault node positioning and the like is greatly facilitated.
For the specific content of the device for testing the loopback of the network port of the communication device, reference may be made to the detailed description of the method for testing the loopback of the network port of the communication device, which is not repeated here.
The embodiment of the application also discloses a loopback test circuit of the communication equipment network port, specifically referring to fig. 1, including:
the switching circuit module is connected between the network port and the PHY port of the communication equipment;
and the controller is connected with the switching circuit module and is used for receiving the input access mode selection instruction, determining a switching instruction corresponding to the access mode selection instruction, sending the switching instruction to the switching circuit module, and switching the signal access connection state between the network port and the PHY port of the communication equipment so as to perform loopback test under the corresponding mode.
Therefore, the loop-back test circuit for the communication equipment network port disclosed by the embodiment of the application can switch 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 by using the switch circuit module arranged between the communication equipment network port and the PHY port, and particularly, the signal path adjustment is carried out on one side, close to the communication equipment network port, of the switch circuit module, so that the real condition of the loop-back signal of the terminal end 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 loop-back module and the like are not needed to be inserted, and the operation of aging test, sample debugging, fault node positioning and the like is greatly facilitated.
As a specific embodiment, in the loop-back test circuit of a communication device network port provided in the embodiment of the present application, if the access mode selection instruction is a single-network port self-loop-back mode instruction, the controller is specifically configured to: a first switch switching instruction corresponding to the single-network port self-loop mode instruction is sent to a switch circuit module;
the switch circuit module is specifically used for: after receiving a 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 a 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 the communication device network port provided in the embodiment of the present application, based on the above content, 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-portal cross loop back mode instruction, the controller is specifically configured to: transmitting a second switch switching instruction corresponding to the multi-network crossing loop-back mode instruction to the switch circuit module;
the switch circuit module is specifically used for: and disconnecting the PHY port from the device communication network port, and connecting the first signal transmitting end with the second signal receiving end through the switch circuit module to connect the first signal receiving end with the second signal transmitting end.
As a specific embodiment, the loop-back test circuit of the communication device network port provided in the embodiment of the present application is based on the above, and the switch circuit module is specifically configured to:
disconnecting the first port from the first device communication network port, and disconnecting the second port from the second device communication network 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 loop-back test circuit of the communication device portal 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: transmitting a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module;
the switch circuit module is specifically used for: the signal transmitting 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 transmitting end of the communication equipment network port through the switch circuit module.
As a specific embodiment, in the loop-back test circuit of the communication device portal provided in the embodiment of the present application, if the access mode selection instruction is a BYPASS mode instruction, the controller is specifically configured to: transmitting a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module;
the switch circuit module is specifically used for: and disconnecting the PHY port from the device communication network port, and connecting the first signal transmitting end and the second signal transmitting end of the PHY port through the switch circuit module, so that the first signal receiving end and the 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 of the loop-back test methods of the communication device portal as described above.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is used for realizing the steps of any loop-back test method of the communication equipment network port when being executed by a processor.
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 testing method related to the network port of the communication device, which is not repeated here.
In this application, each embodiment is described in a progressive manner, and each embodiment focuses on a difference from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the apparatus disclosed in the examples, since it corresponds to the method disclosed in the examples, the description is relatively simple, and the relevant points are referred to in the description of the method section.
It should also be noted that in 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The technical scheme provided by the application is described in detail. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the present application.

Claims (9)

1. A loopback test method of a communication device network port, wherein the communication device network port is connected with a PHY port through a switch circuit module, the method being applied to a controller connected with the switch circuit module, the method comprising:
receiving an input channel mode selection instruction;
determining a switch switching instruction corresponding to the access mode selection instruction;
the switch switching instruction is sent to the switch circuit module, and the connection state of the signal path between the network port of the communication equipment and the PHY port is switched so as to carry out loopback test under a corresponding mode;
if the path 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 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 as to connect a first signal receiving end and a second signal receiving end of the PHY port.
2. The loop-back test method of claim 1, wherein if the path mode selection instruction is a single-port self-loop-back 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-network port self-loop mode instruction to the switch circuit module so as to disconnect 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, wherein the pair of signal ends comprise a signal sending end and a signal receiving end.
3. The loopback testing method of claim 1, wherein the PHY port comprises a first port and a second port, the first port comprising a first signal transmitting end and a first signal receiving end, the second port comprising a second signal transmitting end and a second signal receiving end;
if the access mode selection instruction is a multi-portal cross loop back 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 loop back mode instruction to the switch circuit module so as to disconnect the PHY port from the equipment communication network port, 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.
4. The loopback testing method as recited in claim 3, wherein said disconnecting said PHY port from said device communication network port comprises:
disconnecting the first port from the first device communication network port, and disconnecting the second port from the second device communication network port;
the first equipment communication network port and the second equipment communication network port belong to different virtual local area networks.
5. The loop-back test method of 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 transmitting a third switch switching instruction corresponding to the normal communication mode instruction to the switch circuit module, so that the signal transmitting 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 transmitting end of the communication equipment network port through the switch circuit module.
6. A loopback testing device for a communication device network port, wherein the communication device network port is connected with a PHY port through a switch circuit module, the device comprising:
the receiving module is used for receiving an input channel mode selection instruction;
the determining module is used for determining a switch switching instruction corresponding to the access mode selection instruction;
the sending module is used for sending the switch switching instruction to the switch circuit module and switching the signal path connection state between the communication equipment network port and the PHY port so as to carry out loopback test under a corresponding mode; and if the access mode selection instruction is a BYPASS mode instruction, the sending module is configured to send a fourth switch switching instruction corresponding to the BYPASS mode instruction to the switch circuit module, so as to disconnect the PHY port from the device communication network port, and connect, through the switch circuit module, the first signal sending end and the second signal sending end of the PHY port, and connect the first signal receiving end and the second signal receiving end of the PHY port.
7. A loopback test circuit for a communication device portal, comprising:
the switch circuit module is connected between the network port and the PHY port of the communication equipment;
the controller is connected with the switch circuit module and is 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 network port of the communication equipment and the PHY port so as to perform loopback test under a corresponding mode; if the path 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 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 as to connect a first signal receiving end and a second signal receiving end of the PHY port.
8. 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 portal according to any one of claims 1 to 5.
9. A computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, which computer program, when being executed by a processor, is adapted to carry out the steps of the loopback test method of a communication device portal according to any one of claims 1 to 5.
CN202010656600.9A 2020-07-09 2020-07-09 Communication equipment network port loopback test method, device, circuit, equipment and medium Active CN111669255B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010656600.9A CN111669255B (en) 2020-07-09 2020-07-09 Communication equipment network port loopback test method, device, circuit, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010656600.9A CN111669255B (en) 2020-07-09 2020-07-09 Communication equipment network port loopback test method, device, circuit, equipment and medium

Publications (2)

Publication Number Publication Date
CN111669255A CN111669255A (en) 2020-09-15
CN111669255B true CN111669255B (en) 2023-05-12

Family

ID=72391723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010656600.9A Active CN111669255B (en) 2020-07-09 2020-07-09 Communication equipment network port loopback test method, device, circuit, equipment and medium

Country Status (1)

Country Link
CN (1) CN111669255B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112448867B (en) * 2020-11-26 2022-06-21 海光信息技术股份有限公司 Signal delay testing method and device, computer readable storage medium and electronic equipment
CN113055247B (en) * 2021-03-11 2022-05-13 中国人民解放军国防科技大学 Loopback test method and device for multi-channel high-speed transceiver of FPGA
CN114039877B (en) * 2021-10-12 2023-06-30 深圳市紫光同创电子有限公司 Loop-back test circuit, parallel-serial and serial-parallel converter and loop-back test method
CN114185724B (en) * 2021-11-10 2023-03-14 成都申威科技有限责任公司 Fault positioning system and method for FC-AE communication board card
CN115296693A (en) * 2022-08-03 2022-11-04 国核自仪系统工程有限公司 Communication transceiver and communication transceiving system
CN115866341B (en) * 2022-12-05 2024-05-28 武汉凌久微电子有限公司 Method and device for HDMIPHY loop-back test based on FPGA

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472932A (en) * 2002-07-29 2004-02-04 旺宏电子股份有限公司 Monochip Ethernet exchange and its testing method
CN102412901A (en) * 2011-12-31 2012-04-11 杭州迪普科技有限公司 Optical signal transmission method and device in optical network
CN104865958A (en) * 2015-05-04 2015-08-26 株洲南车时代电气股份有限公司 Matrix switch device, system and method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1115851C (en) * 1999-11-01 2003-07-23 陈杰 Four-line loop testing method and device for communication channel
JP3952719B2 (en) * 2001-10-01 2007-08-01 横河電機株式会社 LAN connection system and loopback test method thereof
JP2003198549A (en) * 2001-12-25 2003-07-11 Kyushu Ando Denki Kk Network system and test method therefor
US7187653B2 (en) * 2002-12-13 2007-03-06 Bellsouth Intellectual Property Corporation Method and system for performing a logical loopback test
CN100388692C (en) * 2004-06-22 2008-05-14 中兴通讯股份有限公司 Multi-mouth switching device and testing method for network exchanger
CN100449966C (en) * 2005-08-01 2009-01-07 中兴通讯股份有限公司 Optical switch reversing device for test of multiple light jaws equipment
US7729264B2 (en) * 2005-12-15 2010-06-01 Emulex Design & Manufacturing Corporation System method and software for user customizable device insertion
CN101373205B (en) * 2007-08-21 2011-03-16 上海摩波彼克半导体有限公司 Returning ring test structure of IC chip interface module
CN101534223A (en) * 2008-03-11 2009-09-16 中兴通讯股份有限公司 Device and method for testing network switching equipment
CN105959068B (en) * 2016-04-25 2018-06-01 浙江工业大学 A kind of system and test method for digital transceiver radio frequency testing
CN107995068B (en) * 2017-12-20 2020-04-07 北京百度网讯科技有限公司 Network port testing method, equipment and computer readable storage medium
CN111064553B (en) * 2019-12-12 2022-07-05 苏州浪潮智能科技有限公司 Switch and loopback diagnosis method, device and storage medium of management network port thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472932A (en) * 2002-07-29 2004-02-04 旺宏电子股份有限公司 Monochip Ethernet exchange and its testing method
CN102412901A (en) * 2011-12-31 2012-04-11 杭州迪普科技有限公司 Optical signal transmission method and device in optical network
CN104865958A (en) * 2015-05-04 2015-08-26 株洲南车时代电气股份有限公司 Matrix switch device, system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
D.C. Keezer等.Multi-GHz loopback testing using MEMs switches and SiGe logic.《2007 IEEE International Test Conference》.2008,全文. *
曹中凯.多功能手持通信测试仪设计与实现.《中国优秀硕士学位论文全文数据库》.2015,全文. *

Also Published As

Publication number Publication date
CN111669255A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN111669255B (en) Communication equipment network port loopback test method, device, circuit, equipment and medium
US7936685B2 (en) Intelligent fast switch-over network tap system and methods
US6973600B2 (en) Bit error rate tester
US7502328B2 (en) Method of monitoring link performance and diagnosing active link state in Ethernet passive optical network
US6209039B1 (en) Method and apparatus for providing an interface between a plurality of frame relay networks
US8798456B2 (en) Diagnostic port for inter-switch link testing in electrical, optical and remote loopback modes
JP5213854B2 (en) Connectivity fault management (CFM) in networks with link aggregation group connections
US20150103673A1 (en) Frame transmission apparatus and method for checking normality
CN106452942B (en) The vehicle-mounted Ethernet exchanging software performance test system and method for track transportation industry
JPWO2013077249A1 (en) PON protection system self-diagnosis method and PON protection system
CN107453956B (en) Communication network system, shunt device and method for quickly accessing network
US20070022331A1 (en) Single-ended ethernet management system and method
CN100388692C (en) Multi-mouth switching device and testing method for network exchanger
CN105553885A (en) FC switch priority testing method
CN107749798B (en) Communication network system, shunt device and method for accessing bidirectional transmission network
CN108270482B (en) Port test method and system
US6657966B1 (en) Test access system and method for digital cross connect communication networks
CN106375209B (en) Building broadband node self-switching device adopting network quality analysis technology
CA2559565A1 (en) Fault management in a ethernet based communication system
CN113014451A (en) System and method for testing redundancy reliability of dual-core local area network
JP2016518745A (en) System and method for testing a radio frequency multiplexed input / output data packet transceiver while forcing data stream reduction
CN107579770B (en) Communication network system, shunt device and method for accessing unidirectional transmission network
CN113595818B (en) Test method for detecting flow of frame type cable clamp plate
CN1996817A (en) A method and device for testing the high-speed channel of the communication products
CN203933664U (en) A kind of test macro of PTN equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant