Ethernet port loopback test setup

Through the combination of SFP module and loopback module, the loopback test of single-fiber bidirectional and Gigabit Ethernet ports is realized, which solves the problem that traditional hardware short circuit cannot realize loopback test, and provides an effective test method for these ports.

CN114389968BActive Publication Date: 2024-10-11CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111585315.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2024-10-11
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Existing technology cannot implement loopback testing of single-fiber bidirectional Ethernet ports and Gigabit Ethernet ports through hardware because the transceiver channel occupies the same transmission channel.

Method used

The SFP module is used to convert the optical signal transmitted by the Ethernet port into an electrical signal, and the two transmission channels are simulated through the differential signal output end and input end. The loopback module is used to realize the loopback of the electrical signal, and then the looped electrical signal is Convert to optical signal output.

Benefits of technology

The loopback test of single-fiber bidirectional Ethernet ports and Gigabit Ethernet ports is realized, and the problem that traditional hardware short circuit cannot realize loopback test is solved through hardware equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114389968B_ABST
    Figure CN114389968B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a loopback test device for an Ethernet port, the device comprising: an SFP module, a power supply module connected to the SFP module for powering the SFP module, and a loopback module connected to the differential signal output end of the SFP module and the differential signal input end of the SFP module respectively; when the SFP module receives a first optical signal transmitted by the Ethernet port to be tested, the SFP module converts the first optical signal into an electrical signal, and outputs the electrical signal to the loopback module through the differential signal output end of the SFP; when the differential signal input end of the SFP module receives an electrical signal flowing through the loopback module, the SFP module converts the electrical signal into a second optical signal, and outputs the second optical signal to the Ethernet port to be tested. The embodiment of the present application can implement loopback testing for a single Ethernet port, especially for a single-fiber bidirectional Ethernet port and a Gigabit Ethernet port, and implements loopback testing through hardware.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication equipment testing, and in particular to a loopback testing device for an Ethernet port. Background Art

[0002] Loopback testing is a test in which the signal sent from a communication device is returned (looped back) to its original location. It is a way to determine whether a device is operating normally or to identify failed nodes in a network. As a commonly used communication port in communication equipment, Ethernet ports are particularly important in loopback testing.

[0003] At present, for dual-fiber Ethernet ports and 10 / 100M Ethernet ports, since their transmit and receive channels are two different transmission channels, loopback testing can be performed by simply short-circuiting the two different transmission channels through hardware. Figure 1 As shown, for the 10 / 100 Mbit Ethernet electrical port of the communication device, the RJ45 self-loop connector is connected to the 10 / 100 Mbit Ethernet electrical port, and the transceiver channel in the 10 / 100 Mbit Ethernet port is short-circuited.

[0004] However, with the development of communication networks, the circuit bandwidth has gradually increased, and the speed and form of device ports have become more and more diverse. Single-fiber bidirectional Ethernet ports and 1000-Mbit Ethernet ports have gradually appeared. The sending and receiving channels in these ports occupy the same transmission channel, so loopback testing cannot be implemented for these ports through hardware. Summary of the invention

[0005] An embodiment of the present application provides a loopback test device for an Ethernet port, so as to at least solve the technical problem in the prior art that a loopback test cannot be implemented through hardware for an Ethernet port whose transceiver channels occupy the same transmission channel.

[0006] The present application provides a loopback test device for an Ethernet port, the device comprising: an SFP (Small Form-factor Pluggables) module, a power supply module connected to the SFP module and used to power the SFP module, and a loopback module respectively connected to a differential signal output end of the SFP module and a differential signal input end of the SFP module;

[0007] In the case where the SFP module receives a first optical signal transmitted by the Ethernet port to be tested, the SFP module converts the first optical signal into an electrical signal, and outputs the electrical signal to the loopback module through the differential signal output end of the SFP;

[0008] When the differential signal input end of the SFP module receives the electrical signal flowing through the loopback module, the SFP module converts the electrical signal into a second optical signal and outputs the second optical signal to the Ethernet port to be tested.

[0009] Optionally, the differential signal output terminal includes: a signal output terminal and a signal inverting output terminal, and the differential signal input terminal includes: a signal input terminal and a signal inverting input terminal;

[0010] The loopback module includes: a first circuit for conducting the signal output terminal and the signal input terminal, and a second circuit for conducting the signal inverting output terminal and the signal inverting input terminal.

[0011] Optionally, the first circuit includes a first wire having a first end connected to the signal output end and a second end connected to the signal input end; the second circuit includes a second wire having a first end connected to the signal inverting output end and a second end connected to the signal inverting input end.

[0012] Optionally, the first circuit includes a first resistor for overvoltage protection, the first end of which is connected to the signal output end, and the second end of which is connected to the signal input end; the second circuit includes a second resistor for overvoltage protection, the first end of which is connected to the signal inverting output end, and the second end of which is connected to the signal inverting input end.

[0013] Optionally, the first circuit includes a first capacitor for overcurrent protection, the first end of which is connected to the signal output end, and the second end of which is connected to the signal input end; the second circuit includes a second capacitor for overcurrent protection, the first end of which is connected to the signal inverting output end, and the second end of which is connected to the signal inverting input end.

[0014] Optionally, the device further comprises an SFP slot for inserting the SFP module, and the SFP module is arranged in the SFP slot.

[0015] Optionally, the power supply module includes: a power plug for connecting a first external power supply, an overcurrent protection circuit connected to the power plug, an overvoltage protection circuit connected to the overcurrent protection circuit, an anti-reverse connection protection circuit connected to the overvoltage protection circuit, and a voltage stabilizing circuit connected to the anti-reverse connection protection circuit, wherein the voltage stabilizing circuit is connected to the SFP module.

[0016] Optionally, the power supply module includes a third circuit and a fourth circuit connected to a second peripheral power supply;

[0017] Wherein, the third circuit is used to filter the electric energy output by the second peripheral power supply, and output the filtered electric energy to the transmitting part power supply end of the SFP module and the receiving part power supply end of the SFP module;

[0018] The fourth circuit is used to pull up the voltage of the electric energy output by the second peripheral power supply to the target voltage, and output the electric energy at the target voltage to the transmission part error reporting terminal of the SFP module, the signal loss alarm terminal of the SFP module and the three module definition terminals.

[0019] Optionally, the third circuit includes: a power distribution switch, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, a first magnetic bead and a second magnetic bead;

[0020] Among them, the input end of the distribution switch, the enable end of the distribution switch and the first end of the third capacitor are all connected to the second external power supply; the ground end of the distribution switch, the second end of the third capacitor, the first end of the fourth capacitor, the first end of the fifth capacitor, the first end of the sixth capacitor, the first end of the seventh capacitor, and the first end of the eighth capacitor are all connected to the ground wire; the first end of the first magnetic bead, the first end of the second magnetic bead, the second end of the fourth capacitor, and the second end of the fifth capacitor are all connected to the output end of the distribution switch; the second end of the sixth capacitor, the second end of the seventh capacitor, and the second end of the first magnetic bead are all connected to the power supply end of the receiving part of the SFP module; the second end of the second magnetic bead and the second end of the eighth capacitor are all connected to the power supply end of the transmitting part of the SFP module.

[0021] Optionally, the SFP module is a Gigabit SFP optical module or a Gigabit SFP electrical module.

[0022] In an embodiment of the present application, the loopback test device of the Ethernet port can convert the first optical signal transmitted from the Ethernet port into an electrical signal through an SFP module. The differential signal output end and the differential signal input end of the SFP module are used to simulate two different transmission channels, and then the loopback module is used to realize the loopback of the electrical signal on the two transmission channels, and then the looped electrical signal is converted into a second optical signal and output to the Ethernet port, and finally the loopback test of the Ethernet port is realized. The embodiment of the present application can realize the loopback test for a single Ethernet port, especially for Ethernet ports whose transceiver channels, including single-fiber bidirectional Ethernet ports and gigabit Ethernet ports, occupy the same transmission channel, and the loopback test is realized through hardware. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0024] Figure 1 A schematic diagram of performing a loopback test on a 10 / 100M Ethernet electrical port of a communication device;

[0025] Figure 2 A schematic diagram of the architecture of a loopback test device for an Ethernet port provided in an embodiment of the present application;

[0026] Figure 3 One of the schematic diagrams of the arrangement of the first circuit and the second circuit provided in the embodiment of the present application;

[0027] Figure 4 A second schematic diagram of the arrangement of the first circuit and the second circuit provided in an embodiment of the present application;

[0028] Figure 5 A third schematic diagram of the arrangement of the first circuit and the second circuit provided in the embodiment of the present application;

[0029] Figure 6 One of the schematic diagrams of the circuit structure of the power supply module provided in the embodiment of the present application;

[0030] Figure 7 A schematic diagram of the circuit structure of a voltage stabilizing circuit provided in an embodiment of the present application;

[0031] Figure 8 The second schematic diagram of the circuit structure of the power supply module provided in the embodiment of the present application;

[0032] Fig. 9 A schematic diagram of the steps of the loopback test method provided in an embodiment of the present application;

[0033] Fig.10 A structural block diagram of a loopback test device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0035] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0036] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0037] See also Figure 2 , an embodiment of the present application provides a loopback test device for an Ethernet port, the loopback test device for the Ethernet port comprising:

[0038] The SFP module 201, a power supply module 202 connected to the SFP module 201 and used for supplying power to the SFP module 201, and a loopback module 203 connected to the differential signal output end of the SFP module 201 and the differential signal input end of the SFP module 201 respectively.

[0039] Wherein, when the SFP module 201 receives the first optical signal transmitted by the Ethernet port to be tested, the SFP module 201 converts the first optical signal into an electrical signal, and outputs the electrical signal to the loopback module 203 through the differential signal output end of the SFP;

[0040] When the differential signal input end of the SFP module 201 receives the electrical signal flowing through the loopback module 203 , the SFP module 201 converts the electrical signal into a second optical signal and outputs the second optical signal to the Ethernet port to be tested.

[0041] It should be noted that the SFP module 201 is an interface device with a photoelectric conversion function, which can convert a received optical signal into an electrical signal, and can restore or convert an electrical signal into an optical signal. The Ethernet port of the communication device can be connected to the SFP module 201 through a network cable or an optical fiber jumper. The power supply module 202 is used to power the SFP module 201 so that the SFP module 201 works normally. In other words, the power supply module 202 can provide the electrical energy required for the normal operation of the SFP module 201. It can be understood that the power supply module 202 can be a device that can store electrical energy by itself, so as to provide the electrical energy stored by itself to the SFP module 201, but it is not limited to this. The power supply module 202 can also be connected to an external power supply device to provide the electrical energy of the external power supply device connected to itself to the SFP module 201.

[0042] The part of the SFP module 201 used to convert the optical signal into an electrical signal can be regarded as the receiving part of the SFP; the differential signal output end of the SFP module 201 is the signal output end of the receiving part of the SFP module 201. The part of the SFP module 201 used to convert the electrical signal into an optical signal can be regarded as the transmitting part of the SFP module 201; the differential signal input end of the SFP module 201 is the signal input end of the transmitting part of the SFP module 201. The loopback module 203 can realize the loopback of the electrical signal. In this way, when the loopback test device of the Ethernet port provided by the present application is used to perform a loopback test, the SFP module 201 in the working state can convert the first optical signal into an electrical signal through the receiving part when receiving the first optical signal transmitted by the signal interface, and then output the electrical signal to the loopback module 203 through the signal output end of the receiving part; after the electrical signal flows through the loopback module 203, it is returned to the SFP module 201 through the signal input end of the transmitting part; finally, the transmitting part reconverts the electrical signal into an optical signal, i.e., a second optical signal, and outputs the second optical signal to the signal interface.

[0043] In an embodiment of the present application, the loopback test device of the Ethernet port can convert the first optical signal transmitted from the Ethernet port into an electrical signal through the SFP module 201. The differential signal output end and the differential signal input end of the SFP module 201 are used to simulate two different transmission channels, and then the loopback of the electrical signal on the two transmission channels is realized through the loopback module 203, and then the looped electrical signal is converted into a second optical signal, and output to the Ethernet port, and finally the loopback test of the Ethernet port is realized. The embodiment of the present application can realize the loopback test for a single Ethernet port, especially for the Ethernet port whose transceiver channels, including a single-fiber bidirectional Ethernet port and a gigabit Ethernet port, occupy the same transmission channel, and the loopback test is realized through hardware equipment.

[0044] Optionally, the differential signal output terminal includes: a signal output terminal and a signal inversion output terminal, and the differential signal input terminal includes: a signal input terminal and a signal inversion input terminal.

[0045] The loopback module includes: a first circuit for connecting a signal output terminal and a signal input terminal, and a second circuit for connecting a signal inverting output terminal and a signal inverting input terminal.

[0046] It should be noted that differential transmission is a technology for transmitting signals on two wires. Signals are transmitted on both wires, and the two signals have the same amplitude and opposite phases. The differential signal is the signal transmitted during the differential transmission process. The differential signal output end of the SFP module includes the 12th pin named RD- and the 13th pin named RD+, then the 13th pin is the signal output end, and the 12th pin is the signal inversion output end. The differential signal input end of the SFP module includes the 18th pin named TD+ and the 19th pin named TD-, then the 18th pin is the signal input end, and the 19th pin is the signal inversion input end.

[0047] It can be understood that after the first circuit conducts between the signal output terminal and the signal input terminal, and the second circuit conducts between the signal inverting output terminal and the signal inverting input terminal, the electrical signal will be transmitted using differential transmission technology.

[0048] In an embodiment of the present application, the loopback module connects the signal output end and the signal input end of the SFP module through a first circuit, and connects the signal inverting output end and the signal inverting input end through a second circuit, so that the electrical signal can be looped back in a differential transmission manner.

[0049] Optionally, the first circuit includes a first wire having a first end connected to the signal output terminal and a second end connected to the signal input terminal; the second circuit includes a second wire having a first end connected to the signal inverting output terminal and a second end connected to the signal inverting input terminal.

[0050] It should be noted that the first wire and the second wire are both conductive wires, so that the electrical signal output from the signal output terminal can be transmitted to the signal input terminal, and the electrical signal output from the signal inverting output terminal can be transmitted to the signal inverting input terminal. Preferably, the first wire and the second wire meet the requirements of differential routing, that is, two wires of equal length, equal width, close proximity, and at the same level. Specifically, two equal-length wires can be cut from the same wire as the first wire and the second wire, and when arranging the first wire and the second wire, they are arranged at the same level and close to each other. Figure 3 As shown, it is one of the layout schematic diagrams of the first circuit and the second circuit, wherein the two ends of the first wire 301 are respectively connected to the 13th pin named RD+ and the 18th pin named TD+, and the two ends of the second wire 302 are respectively connected to the 12th pin named RD- and the 19th pin named TD-.

[0051] In the embodiment of the present application, the signal output terminal is directly connected to the signal input terminal through a wire, and the signal inverting output terminal is connected to the signal inverting input terminal, which can greatly simplify the first circuit and the second circuit.

[0052] Optionally, the first circuit includes a first resistor for overvoltage protection, the first end of which is connected to the signal output terminal and the second end of which is connected to the signal input terminal; the second circuit includes a second resistor for overvoltage protection, the first end of which is connected to the signal inverting output terminal and the second end of which is connected to the signal inverting input terminal.

[0053] It should be noted that when the signal output terminal and the signal input terminal are connected, and the signal inverting output terminal and the signal inverting input terminal are connected, the SFP module may have an overvoltage condition. The overvoltage of the SFP module may undoubtedly cause many problems, and in severe cases, may even damage the SFP module. Therefore, when the signal output terminal and the signal input terminal are connected, and the signal inverting output terminal and the signal inverting input terminal are connected, overvoltage protection for the SFP module can be achieved through the first circuit and the second circuit. Specifically, two resistors are connected in series in the first circuit and the second circuit, respectively, so that the two resistors play the function of overvoltage protection, thereby protecting the SFP module from overvoltage. Figure 4 FIG. 2 is a second schematic diagram of the arrangement of the first circuit and the second circuit, wherein the two ends of the first resistor R1 are respectively connected to the 13th pin named RD+ and the 18th pin named TD+, and the two ends of the second resistor R2 are respectively connected to the 12th pin named RD- and the 19th pin named TD-. Preferably, the resistance values ​​of the first resistor R1 and the second resistor R2 are equal.

[0054] In the embodiment of the present application, the signal output terminal is connected to the signal input terminal through a resistor, and the signal inverting output terminal is connected to the signal inverting input terminal. While simplifying the first circuit and the second circuit, overvoltage protection for the SFP module can be further achieved.

[0055] Optionally, the first circuit includes a first capacitor for overcurrent protection, whose first end is connected to the signal output end and whose second end is connected to the signal input end; the second circuit includes a second capacitor for overcurrent protection, whose first end is connected to the signal inverting output end and whose second end is connected to the signal inverting input end.

[0056] It should be noted that when the signal output terminal and the signal input terminal are connected, and the signal inverting output terminal and the signal inverting input terminal are connected, the SFP module may have an overcurrent condition. The overcurrent condition of the SFP module may undoubtedly cause many problems, and may even damage the SFP module in severe cases. Therefore, when the signal output terminal and the signal input terminal are connected, and the signal inverting output terminal and the signal inverting input terminal are connected, multi-current protection for the SFP module can be implemented through the first circuit and the second circuit. Specifically, two capacitors are connected in series in the first circuit and the second circuit, respectively, so that the two capacitors play the function of overcurrent protection, thereby protecting the SFP module from overcurrent. Figure 5 FIG. 3 is a schematic diagram of the arrangement of the first circuit and the second circuit, wherein the two ends of the first capacitor C1 are respectively connected to the 13th pin named RD+ and the 18th pin named TD+, and the two ends of the second capacitor RC2 are respectively connected to the 12th pin named RD- and the 19th pin named TD-. Preferably, the capacitance values ​​of the first capacitor C1 and the second capacitor C2 are equal.

[0057] In the embodiment of the present application, the signal output terminal is connected to the signal input terminal through a capacitor, and the signal inverting output terminal is connected to the signal inverting input terminal. While simplifying the first circuit and the second circuit, overcurrent protection for the SFP module can be further achieved.

[0058] Optionally, the device further comprises an SFP slot for inserting an SFP module, and the SFP module is arranged in the SFP slot.

[0059] It should be noted that the shape of the SFP slot is adapted to the SFP module, so that the SFP module can be plugged in and out of the SFP slot. If the SFP module in the loopback test device of the Ethernet port is damaged, it can be directly unplugged, and then a normal SFP module can be re-plugged to achieve a separate replacement of the SFP module. Preferably, each pin of the SFP slot corresponding to the SFP module is provided with a connection end, and the power supply module and the loopback module are connected to the SFP module through the connection end in the SFP slot.

[0060] In the embodiment of the present application, an SFP slot is provided so that an SFP module can be plugged in and out thereon, thereby facilitating individual replacement of the SFP module.

[0061] Optionally, the power supply module includes: a power plug for connecting a first peripheral power supply, an overcurrent protection circuit connected to the power plug, an overvoltage protection circuit connected to the overcurrent protection circuit, an anti-reverse connection protection circuit connected to the overvoltage protection circuit, and a voltage stabilizing circuit connected to the anti-reverse connection protection circuit, wherein the voltage stabilizing circuit is connected to the SFP module.

[0062] It should be noted that the power plug can be connected to the first peripheral power supply, that is, connected to the electric energy provided by the first peripheral power supply. Preferably, the power plug includes three male connectors, and the three male connectors are respectively connected to the neutral wire, the live wire and the ground wire of the first peripheral power supply. The overcurrent protection circuit is used to cut off the power supply of the first peripheral power supply to the power supply module when the current in the power supply module is too large, thereby avoiding excessive current in the power supply module. Similarly, the overvoltage protection circuit is used to avoid excessive voltage in the power supply module; the anti-reverse connection protection circuit is used to avoid damage to the power supply module caused by reverse connection of the power plug; the voltage stabilizing circuit is used to stabilize the received electric energy to a target voltage value with a very small voltage value floating range, so that the voltage stabilizing circuit will output a stable voltage signal and provide it to the SFP module to enable the SFP module to work normally.

[0063] The following is a specific circuit structure to illustrate the power plug, overcurrent protection circuit, overvoltage protection circuit, anti-reverse connection circuit and voltage stabilization circuit in the power supply module. Figure 6 and Figure 7 As shown, it is a schematic diagram of the circuit structure of the power supply module. Figure 6 The power supply module includes: a power plug U1, a voltage stabilizing circuit U2, a fuse F1, a MOS tube (Metal-Oxide-Semiconductor Field-Effect Transistor) Q1, a discharge tube D1, a first light-emitting diode D2, a third resistor R3, a fourth resistor R4, a ninth capacitor C9, a tenth capacitor C10, an eleventh capacitor C11, a twelfth capacitor C12, a thirteenth capacitor C13, and a fourteenth capacitor C14;

[0064] Among them, the first pin (DC pin) of the power plug U1 is connected to the first end of the fuse F1; the two ground pins of the power plug U1, the first end of the ninth capacitor, the first end of the tenth capacitor C10, the first end of the eleventh capacitor C11, the first end of the twelfth capacitor C12, the first end of the thirteenth capacitor C13, the first end of the fourteenth capacitor C14, the first end of the discharge tube D1, the first end of the first light-emitting diode D2, and the first end of the third resistor R3 are all connected to the ground line; the fifth pin, the sixth pin, the seventh pin, the eighth pin of the MOS tube Q1, the second end of the ninth capacitor, the second end of the tenth capacitor C10, the first end of the ten ... The second end of the first capacitor C11 and the second end of the discharge tube D1 are connected to the second end of the fuse F1; the second pin and the fourth pin of the MOS tube Q1 are connected to the second end of the third resistor R3; the first pin and the third pin of the MOS tube Q1, the EN (enable) pin and the VIN (voltage input) pin of the voltage stabilizing circuit U2 are connected to the second end of the twelfth capacitor C12; the VOUT (voltage output) pin of the voltage stabilizing circuit U2, the second end of the thirteenth capacitor C13, and the second end of the fourteenth capacitor C14 are connected to the first end of the fourth resistor R4; the second end of the fourth resistor R4 is connected to the second end of the first light-emitting diode D2.

[0065] It can be understood that the fuse F1 can be used as an overcurrent protection circuit for overcurrent protection; the discharge tube D1 can be used as an overvoltage protection circuit for overvoltage protection; the MOS tube Q1 can be used as an anti-reverse connection protection circuit for anti-reverse connection protection; the voltage stabilizing circuit U2 is used to stabilize the voltage; and the first light-emitting diode D2 is used as a power indicator. The remaining capacitors and resistors in the power supply module are used to cooperate with each circuit to realize the protection function of each circuit.

[0066] against Figure 6 The specific circuit structure of the voltage stabilizing circuit U2 can be found in Figure 7 The voltage stabilizing circuit includes: a voltage stabilizing chip U3, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a step-down inductor I1, a fifteenth capacitor C15, a sixteenth capacitor C16, a seventeenth capacitor C17, an eighteenth capacitor C18, a nineteenth capacitor C19, and a twentieth capacitor C20.

[0067] Among them, the sixth pin, the seventh pin, the eighth pin, the fifteenth pin and the sixteenth pin of the voltage stabilizing chip U3, the first end of the fifteenth capacitor C15, the first end of the sixteenth capacitor C16, the first end of the seventeenth capacitor C17, the first end of the eighteenth capacitor C18, the first end of the nineteenth capacitor C19, and the first end of the twentieth capacitor C20 are all connected to the ground line; the first end of the fifth resistor R5 is connected to the second end of the fifteenth capacitor C15, and they jointly serve as the VOUT pin of the voltage stabilizing circuit; the second end of the fifth resistor R5, the first end of the sixth resistor R6, the first end of the seventh resistor R7, and the first end of the step-down inductor I1 are all connected to the fourteenth pin of the voltage stabilizing chip U3; the second end of the sixth resistor R6 is connected to the The fourth pin is connected and serves as the PGOOD pin of the voltage stabilizing circuit; the first pin, the second pin, and the third pin of the voltage stabilizing chip U3 are all connected to the second end of the step-down inductor I1; the second end of the seventh resistor R7, the second end of the eighth resistor R8, and the second end of the ninth resistor R9 are all connected to the fifth pin of the voltage stabilizing chip U3; the thirteenth pin of the voltage stabilizing chip U3 serves as the EN pin of the voltage stabilizing circuit; the second end of the seventeenth capacitor C17 and the second end of the eighteenth capacitor C18 are all connected to the ninth pin of the voltage stabilizing chip U3; the tenth pin, the eleventh pin and the twelfth pin of the voltage stabilizing chip U3, and the second end of the nineteenth capacitor C19 are all connected to the second end of the twentieth capacitor C20, and serve as the VIN pin of the voltage stabilizing circuit. It can be understood that the fifth resistor R5 to the ninth resistor R9, as voltage stabilizing feedback resistors, can be used to control a stable output power supply; the sixteenth capacitor C16 and the twentieth capacitor C20 serve as power stabilizing capacitors. TPS62130 can be used as the voltage regulator chip U3, which ensures high power conversion efficiency while ensuring voltage stability, low heat generation, and long-term stable operation.

[0068] In the embodiment of the present application, the power supply module can provide power to the SFP module while also realizing circuit protection for the power supply module and stabilizing the output power of the SFP module.

[0069] Optionally, the power supply module includes a third circuit and a fourth circuit connected to the second peripheral power supply;

[0070] The third circuit is used to filter the electric energy output by the second peripheral power supply, and output the filtered electric energy to the transmitting part power supply end of the SFP module and the receiving part power supply end of the SFP module;

[0071] The fourth circuit is used to pull up the voltage of the electric energy output by the second peripheral power supply to the target voltage, and output the electric energy at the target voltage to the transmitting part error reporting terminal of the SFP module, the signal loss alarm terminal of the SFP module and the three module definition terminals.

[0072] It should be noted that the second external power supply is an external power supply. Preferably, the third circuit can be connected to Figure 6 The power supply end of the transmitting part of the SFP module is the sixteenth pin named VccT, and the power supply end of the receiving part of the SFP module is the fifteenth pin named VccR.

[0073] After the fourth circuit pulls the voltage up to the target voltage, it clamps the voltage at the target voltage. The transmission part error reporting terminal of the SFP module is the second pin named TXFault, the signal loss alarm terminal of the SFP module is the eighth pin named LOS, and the three module definition terminals are the sixth pin, the fifth pin, and the fourth pin named MOD-DEF(0), MOD-DEF(1), and MOD-DEF(2) respectively. Specifically, Figure 8 As shown, the function of the fourth circuit is realized by a group of pull-up resistors. That is, the fourth circuit includes: a tenth resistor R10, an eleventh resistor R11, a twelfth resistor R12, a thirteenth resistor R13, and a fourteenth resistor R14, which are respectively connected to the second pin, the fourth pin, the fifth pin, the sixth pin, and the eighth pin of the SFP module, and the thirteenth resistor R13 is also connected in series with a second light-emitting diode D3. Among them, the second light-emitting diode D3 can be used as a working indicator light of the SFP module. Preferably, Figure 8 The resistance values ​​of the resistors are the same, which may be 4700 ohms, but is not limited thereto.

[0074] In the embodiment of the present application, by processing the third circuit and the fourth circuit, the same voltage can be used to ensure the normal operation of the SFP module, and the power supply energy can be filtered to reduce the impact of ripples.

[0075] Continue to see Figure 8 , Optionally, the third circuit includes: a power distribution switch U4, a third capacitor C3, a fourth capacitor C4, a fifth capacitor C5, a sixth capacitor C6, a seventh capacitor C7, an eighth capacitor C8, a first magnetic bead B1 and a second magnetic bead B2;

[0076] Among them, the input end of the distribution switch U4, the enable end of the distribution switch U4 and the first end of the third capacitor C3 are all connected to the second external power supply; the ground end of the distribution switch U4, the second end of the third capacitor C3, the first end of the fourth capacitor C4, the first end of the fifth capacitor C5, the first end of the sixth capacitor C6, the first end of the seventh capacitor C7, and the first end of the eighth capacitor C8 are all connected to the ground line; the first end of the first magnetic bead B1, the first end of the second magnetic bead B2, the second end of the fourth capacitor C4, and the second end of the fifth capacitor C5 are all connected to the output end of the distribution switch U4; the second end of the sixth capacitor C6, the second end of the seventh capacitor C7, and the second end of the first magnetic bead B1 are all connected to the power supply end of the receiving part of the SFP module; the second end of the second magnetic bead B2 and the second end of the eighth capacitor C8 are all connected to the power supply end of the transmitting part of the SFP module.

[0077] It should be noted that the first magnetic bead B1 and the second magnetic bead B2 are used as power supply magnetic beads to reduce ripple. The third capacitor C3, the fourth capacitor C4, the fifth capacitor C5, the sixth capacitor C6, the seventh capacitor C7, and the eighth capacitor C8 are all power supply stabilization capacitors. The first pin of the power distribution switch U4 is the output terminal, the second pin is the ground terminal, the fourth pin is the enable terminal, and the fifth pin is the input terminal. Preferably, Figure 8 The VCC terminal in the Figure 6 The VCC terminal connection in further improves the performance of the power supply module.

[0078] In the embodiment of the present application, the ripple in the circuit is reduced by two magnetic beads, thereby achieving a filtering function, and the voltage is further stabilized based on each capacitor.

[0079] Optionally, the SFP module is a Gigabit SFP optical module or a Gigabit SFP electrical module.

[0080] It should be noted that the SFP module can also be any one of a 10Mbit SFP optical module, a 100Mbit SFP optical module, a 10Mbit SFP electrical module, and a 100Mbit SFP electrical module. In other words, by setting different types of SFP modules, a single-fiber bidirectional Ethernet port and a Gigabit Ethernet port can be connected to implement loopback testing of different Ethernet ports.

[0081] In the embodiment of the present application, a Gigabit SFP optical module and a Gigabit SFP electrical module can be used to perform loopback testing on a Gigabit Ethernet port and a single-fiber bidirectional Ethernet port.

[0082] Optionally, the loopback test device for the Ethernet port further includes a housing, and a PCB (Printed Circuit Board) disposed in the housing; the SFP module, the power supply module and the loopback module are all disposed on the PCB.

[0083] It should be noted that the SFP module can extend out of the housing to facilitate replacement.

[0084] In the embodiment of the present application, PCB is used to realize the connection of each module, so that the overall volume of the loopback test device of the Ethernet port is small and easy to carry.

[0085] like Fig. 9 As shown, an embodiment of the present application provides a loopback test method, which is applied to the loopback test device of the Ethernet port provided by the above-mentioned embodiments of the invention, and the method includes:

[0086] Step 901: When an SFP module receives a first optical signal transmitted by an Ethernet port, the first optical signal is converted into an electrical signal.

[0087] In this step, the receiving part in the SFP module can be used to convert the optical signal into an electrical signal.

[0088] Step 902: Output the electrical signal to the loopback module through the differential signal output terminal of the SFP module.

[0089] Step 903: Receive the electrical signal flowing through the loopback module through the differential signal input terminal of the SFP module.

[0090] Step 904: Convert the electrical signal into a second optical signal, and transmit the second optical signal to the Ethernet port.

[0091] In this step, the transmission part in the SFP module can be used to realize the conversion of electrical signals into optical signals.

[0092] In an embodiment of the present application, the first optical signal transmitted from the Ethernet port can be converted into an electrical signal. The differential signal output end and the differential signal input end of the SFP module are used to simulate two different transmission channels, and then the loopback module is used to realize the loopback of the electrical signal on the two transmission channels, and then the looped electrical signal is converted into a second optical signal and output to the Ethernet port, and finally the loopback test of the Ethernet port is realized. The embodiment of the present application can realize the loopback test for a single Ethernet port, especially for Ethernet ports whose transceiver channels, including single-fiber bidirectional Ethernet ports and gigabit Ethernet ports, occupy the same transmission channel, and the loopback test is realized through hardware.

[0093] See also Fig.10 , the embodiment of the present application also provides a loopback test device, the device comprising:

[0094] The first conversion module 1001 is configured to convert the first optical signal transmitted by the Ethernet port into an electrical signal when the SFP module receives the first optical signal.

[0095] The output module 1002 is used to output the electrical signal to the loopback module through the differential signal output end of the SFP module.

[0096] The receiving module 1003 is used to receive the electrical signal flowing through the loopback module through the differential signal input end of the SFP module.

[0097] The second conversion module 1004 is used to convert the electrical signal into a second optical signal, and transmit the second optical signal to the Ethernet port.

[0098] The loopback test device provided in the embodiment of the present application can achieve Fig. 9 In order to avoid repetition, the various processes implemented by the loopback test method in the method embodiment are not repeated here.

[0099] In an embodiment of the present application, the first optical signal transmitted from the Ethernet port can be converted into an electrical signal. The differential signal output end and the differential signal input end of the SFP module are used to simulate two different transmission channels, and then the loopback module is used to realize the loopback of the electrical signal on the two transmission channels, and then the looped electrical signal is converted into a second optical signal and output to the Ethernet port, and finally the loopback test of the Ethernet port is realized. The embodiment of the present application can realize the loopback test for a single Ethernet port, especially for Ethernet ports whose transceiver channels, including single-fiber bidirectional Ethernet ports and gigabit Ethernet ports, occupy the same transmission channel, and the loopback test is realized through hardware.

[0100] On the other hand, an embodiment of the present application further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the loopback test method provided in the above-mentioned embodiments of the application is implemented.

[0101] On the other hand, an embodiment of the present application further provides a readable storage medium. When the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device can execute the loopback test method provided in the above application embodiments.

[0102] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0103] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A loopback test device for an Ethernet port, characterized in that: The device comprises: a small pluggable SFP module, a power supply module connected to the SFP module and used to power the SFP module, and a loopback module respectively connected to a differential signal output end of the SFP module and a differential signal input end of the SFP module; In the case where the SFP module receives a first optical signal transmitted by the Ethernet port to be tested, the SFP module converts the first optical signal into an electrical signal, and outputs the electrical signal to the loopback module through the differential signal output end of the SFP; When the differential signal input end of the SFP module receives the electrical signal flowing through the loopback module, the SFP module converts the electrical signal into a second optical signal and outputs the second optical signal to the Ethernet port to be tested; The power supply module includes a third circuit and a fourth circuit connected to a second peripheral power supply; Wherein, the third circuit is used to filter the electric energy output by the second peripheral power supply, and output the filtered electric energy to the transmitting part power supply end of the SFP module and the receiving part power supply end of the SFP module; The fourth circuit is used to pull up the voltage of the electric energy output by the second peripheral power supply to the target voltage, and output the electric energy at the target voltage to the transmitting part error reporting terminal of the SFP module, the signal loss alarm terminal of the SFP module and the three module definition terminals; The third circuit includes: a power distribution switch, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, a first magnetic bead and a second magnetic bead; Among them, the input end of the distribution switch, the enable end of the distribution switch and the first end of the third capacitor are all connected to the second external power supply; the ground end of the distribution switch, the second end of the third capacitor, the first end of the fourth capacitor, the first end of the fifth capacitor, the first end of the sixth capacitor, the first end of the seventh capacitor, and the first end of the eighth capacitor are all connected to the ground wire; the first end of the first magnetic bead, the first end of the second magnetic bead, the second end of the fourth capacitor, and the second end of the fifth capacitor are all connected to the output end of the distribution switch; the second end of the sixth capacitor, the second end of the seventh capacitor, and the second end of the first magnetic bead are all connected to the power supply end of the receiving part of the SFP module; the second end of the second magnetic bead and the second end of the eighth capacitor are all connected to the power supply end of the transmitting part of the SFP module.

2. The device according to claim 1, characterized in that The differential signal output terminal includes: a signal output terminal and a signal inverting output terminal, and the differential signal input terminal includes: a signal input terminal and a signal inverting input terminal; The loopback module includes: a first circuit for conducting the signal output terminal and the signal input terminal, and a second circuit for conducting the signal inverting output terminal and the signal inverting input terminal.

3. The device according to claim 2, characterized in that The first circuit includes a first wire having a first end connected to the signal output end and a second end connected to the signal input end; the second circuit includes a second wire having a first end connected to the signal inverting output end and a second end connected to the signal inverting input end.

4. The device according to claim 2, characterized in that The first circuit includes a first resistor for overvoltage protection, the first end of which is connected to the signal output end, and the second end of which is connected to the signal input end; the second circuit includes a second resistor for overvoltage protection, the first end of which is connected to the signal inverting output end, and the second end of which is connected to the signal inverting input end.

5. The device according to claim 2, characterized in that The first circuit includes a first capacitor for overcurrent protection, the first end of which is connected to the signal output end, and the second end of which is connected to the signal input end; the second circuit includes a second capacitor for overcurrent protection, the first end of which is connected to the signal inverting output end, and the second end of which is connected to the signal inverting input end.

6. The device according to claim 1, characterized in that The device also includes an SFP slot for inserting the SFP module, and the SFP module is arranged in the SFP slot.

7. The device according to claim 1, characterized in that The power supply module includes: a power plug for connecting a first external power supply, an overcurrent protection circuit connected to the power plug, an overvoltage protection circuit connected to the overcurrent protection circuit, an anti-reverse connection protection circuit connected to the overvoltage protection circuit, and a voltage stabilizing circuit connected to the anti-reverse connection protection circuit, wherein the voltage stabilizing circuit is connected to the SFP module.

8. The device according to claim 1, characterized in that The SFP module is a Gigabit SFP optical module or a Gigabit SFP electrical module.