Network switching devices and switches

By introducing switching circuits and control signal management into the network switching device, adaptive negotiation and communication of various Ethernet rates are realized, and the problems of network cable waste and redundant transmission in the prior art are solved.

CN118921336BActive Publication Date: 2025-01-07ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411402411.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-07
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

In existing Ethernet applications, the network interface can only support one of the 10M, 100M or 1000M speeds, resulting in waste of network cables and redundant transmission cannot be achieved when abnormalities are found in the four cores.

Method used

Design a network switching device, including an Ethernet switching chip, a first port physical layer, a second port physical layer and a switching circuit, and connects to the network interface through a control signal control output pin to realize 10M, 100M, 1000M, and dual 100M. Adaptive negotiation and communication of dual 10M or 100M combined rates.

Benefits of technology

It realizes the adaptive negotiation and communication of multiple rates of the network, avoids waste of network cables, and provides redundant transmission functions in abnormal situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921336B_ABST
    Figure CN118921336B_ABST
Patent Text Reader

Abstract

The present application discloses a network switching device and a switch. The Ethernet switching chip of the network switching device is connected to a controller; the first port physical layer is connected to the controller and the Ethernet switching chip, the first port physical layer includes a first group of output pins and a second group of output pins, and the first group of output pins is connected to a network interface; the second port physical layer is connected to the controller and the Ethernet switching chip, and the second port physical layer includes a third group of output pins; the switching circuit is respectively connected to the controller, the second group of output pins, the third group of output pins and the network interface, and is used to control the second group of output pins or the third group of output pins to connect to the network interface based on a control signal. The network switching device of the present application can realize the rate adaptive negotiation and communication of 10M, 100M, 1000M, dual 100M, dual 10M or a combination of 100M and 10M of the network through the switching circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Ethernet negotiation, and in particular to a network switching device and a switch. Background Art

[0002] In existing Ethernet applications, a network interface can only support one of the following rates: 10M, 100M, or 1000M, depending on the hardware circuit design. For example, a 100M switch's corresponding network interface can only support 10M or 100M rates, and only a four-core network cable is needed to complete the transmission. However, the network cables used in actual engineering applications are often eight-core, which means that they support a maximum rate of 1000M. In such applications, network cables are wasted. Moreover, once one of the four cores is abnormal, the communication will be abnormal, and the redundant transmission function cannot be achieved. Summary of the invention

[0003] The present application proposes a network switching device and a switch to solve the above-mentioned problems.

[0004] In order to solve the above technical problems, a technical solution adopted in the present application is: providing a network switching device, which is applied to a switch, the switch includes a controller and a network interface, the network switching device includes an Ethernet switching chip, a first port physical layer, a second port physical layer and a switching circuit, the Ethernet switching chip is connected to the controller for forwarding and exchanging data; the first port physical layer is connected to the controller and the Ethernet switching chip, the first port physical layer includes a first group of output pins and a second group of output pins, wherein the first group of output pins is connected to the network interface; the second port physical layer is connected to the controller and the Ethernet switching chip, wherein the second port physical layer includes a third group of output pins; the switching circuit is respectively connected to the controller, the second group of output pins, the third group of output pins and the network interface, for receiving a control signal from the controller, and controlling the second group of output pins or the third group of output pins to be connected to the network interface based on the control signal.

[0005] Among them, the first group of output pins, the second group of output pins and the third group of output pins each include four output pins, and the switching circuit includes four switching sub-circuits; each switching sub-circuit is connected to the controller and the network interface, and each switching sub-circuit is connected one-to-one with each output pin in the second group of output pins and each output pin in the third group of output pins.

[0006] Among them, each switching subcircuit includes a control module and a switching module, the control module is connected to the controller, used to receive a control signal, and generate a level signal based on the control signal; the switching module is connected to the output end of the control module, the first input end of the switching module is connected to an output pin in the second group of output pins, and the second input end of the switching module is connected to an output pin in the third group of output pins; the output end of the switching module is connected to the network interface; the switching module is used to conduct the path between the first input end or the second input end and the output end based on the level signal.

[0007] The control module includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first transistor and a second transistor; wherein the first end of the first resistor receives a control signal, the second end of the first resistor is connected to the control end of the first transistor and the first end of the first capacitor, the second end of the first capacitor is grounded, the first path end of the first transistor is connected to the first end of the second resistor and the first end of the third resistor, the second path end of the first transistor is grounded, the second end of the second resistor receives a preset voltage, the second end of the third resistor is connected to the first end of the second capacitor and the control end of the second transistor, the second end of the second capacitor is grounded, the first end of the fourth resistor receives a preset voltage, the second end of the fourth resistor is connected to the first path end of the second transistor, the second path end of the second transistor is grounded, and the connection node between the second end of the fourth resistor and the first path end of the second transistor is used as the output end of the control module to output a level signal; in response to the control signal being a logic high level signal, the first transistor is turned on, the second transistor is turned off, and the output level signal is a logic high level signal; in response to the control signal being a logic low level signal, the first transistor is turned off, the second transistor is turned on, and the output level signal is a logic low level signal.

[0008] Among them, the switching module includes a diode and a relay, the output end of the control module is connected to the first control end of the relay, the second control end of the relay receives a preset voltage, the first input end of the relay is connected to one of the second group of output pins as the first input end of the switching module; the second input end of the relay is connected to one of the third group of output pins as the second input end of the switching module; the output end of the relay is connected to the network interface as the output end of the switching module; the positive pole of the diode is connected to the first control end of the relay, and the negative pole of the diode is connected to the second control end of the relay; in response to the level signal being a logic high level signal, the path between the first input end of the relay and the output end of the relay is connected; in response to the level signal being a logic low level signal, the path between the second input end of the relay and the output end of the relay is connected.

[0009] To solve the above technical problems, another technical solution adopted in the present application is: to provide a switch, which includes any one of the above-mentioned network switching devices, controllers and network interfaces, and the network interface is connected to the terminal through a network cable; the network switching device is connected to the network interface, and the controller is connected to the network switching device, wherein the controller is used to configure and manage the network switching device, and generate a control signal to send to the switching circuit to control the network switching device to achieve rate adaptive negotiation and communication of 10M, 100M, 1000M, dual 100M, dual 10M or a combination of 100M and 10M.

[0010] The switch further includes an isolation transformer, the input end of the isolation transformer is connected to the network switching device, and the output end of the isolation transformer is connected to the network interface.

[0011] Among them, in response to the network interface being connected to a terminal through an ordinary network cable, the control signal is set to a logic high level, and in response to the network interface being connected to two terminals through a Y-shaped special network cable, the control signal is set to a logic low level.

[0012] Among them, when the network interface is connected to a terminal through an ordinary network cable, if the terminal is a terminal that supports a maximum rate of 1000M, the switching circuit turns on the connection path between the second group of output pins and the network interface based on a control signal of a logic high level, and the first port physical layer sends a fast connection signal to the terminal through the first group of output pins and the second group of output pins, so that the switch and the terminal negotiate to a rate of 1000M; if the terminal is a terminal that supports a maximum rate of 1000M, the first port physical layer sends a fast connection signal to the terminal through the first group of output pins, so that the switch and the terminal negotiate to a rate of 100M or 10M.

[0013] Among them, when the network interface is connected to two terminals through a Y-shaped special network cable, the switching circuit turns on the connection path between the third group of output pins and the network interface based on a logic low level control signal, and the first port physical layer sends a fast connection signal to one of the two terminals through the first group of output pins, so that the switch and the terminal negotiate to a rate of 100M or 10M; the second port physical layer sends a fast connection signal to the other of the two terminals through the third group of output pins, so that the switch and the terminal negotiate to a rate of 100M or 10M.

[0014] The beneficial effects of the present application are as follows: Different from the prior art, the network switching device of the present application includes an Ethernet switching chip, a first port physical layer, a second port physical layer and a switching circuit, the Ethernet switching chip is connected to the controller; the first port physical layer is connected to the controller and the Ethernet switching chip, the first port physical layer includes a first group of output pins and a second group of output pins, and the first group of output pins is connected to the network interface; the second port physical layer is connected to the controller and the Ethernet switching chip, and the second port physical layer includes a third group of output pins; the switching circuit is respectively connected to the controller, the second group of output pins, the third group of output pins and the network interface, and is used to control the second group of output pins or the third group of output pins to be connected to the network interface based on the control signal. In the above manner, the network switching device of the present application can control the second group of output pins or the third group of output pins to be connected to the network interface through the switching circuit, thereby realizing the rate adaptive negotiation and communication of 10M, 100M, 1000M, dual 100M, dual 10M or a combination of 100M and 10M of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a structural schematic diagram of an embodiment of a network switching device provided by the present application;

[0016] Figure 2 is a structural schematic diagram of an embodiment of a switching circuit provided by the present application;

[0017] Figure 3 is a structural schematic diagram of an embodiment of a switching subcircuit provided by the present application;

[0018] Figure 4 It is a structural diagram of the first embodiment of the switch provided by the present application;

[0019] Figure 5 It is a structural diagram of an embodiment of a network interface provided by the present application;

[0020] Figure 6 is a schematic diagram of the structure of the second embodiment of the switch provided by the present application;

[0021] Figure 7 It is a structural schematic diagram of an embodiment of an isolation transformer provided by the present application;

[0022] Figure 8 It is a schematic diagram of the connection between the network interface provided by the present application and a terminal;

[0023] Fig. 9 It is a schematic diagram of the connection between the network interface provided by this application and two terminals through a Y-shaped special network cable. DETAILED DESCRIPTION

[0024] 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 only 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.

[0025] In existing Ethernet applications, a network interface can only support one of the following rates: 10M, 100M, or 1000M, depending on the hardware circuit design. For example, a 100M switch's corresponding network interface can only support 10M or 100M rates, and only a four-core network cable is needed to complete the transmission. However, the network cables used in actual engineering applications are often eight-core, which means that they support a maximum rate of 1000M. In such applications, network cables are wasted. Moreover, once one of the four cores is abnormal, the communication will be abnormal, and the redundant transmission function cannot be achieved.

[0026] In order to solve the above problems, the present application first proposes a network switching device, see Figure 1 , Figure 1 1 is a schematic diagram of the structure of an embodiment of a network switching device provided by the present application. Figure 1 As shown, in this embodiment, the network switching device 100 of this embodiment is applied to a switch, and the switch includes a controller 210 and a network interface 220. The network switching device 100 of this embodiment includes an Ethernet switching chip 10, a first port physical layer 20, a second port physical layer 30 and a switching circuit 40.

[0027] like Figure 1 As shown, the Ethernet switching chip 10 is connected to the controller 210 for forwarding and exchanging data; the first port physical layer 20 is connected to the controller 210 and the Ethernet switching chip 10, and the first port physical layer 20 includes a first group of output pins and a second group of output pins, wherein the first group of output pins is connected to the network interface 220; the second port physical layer is connected to the controller 210 and the Ethernet switching chip 10, wherein the second port physical layer 30 includes a third group of output pins; the switching circuit 40 is respectively connected to the controller 210, the second group of output pins, the third group of output pins and the network interface 220, for receiving the control signal of the controller 210, and controlling the second group of output pins or the third group of output pins to be connected to the network interface 220 based on the control signal.

[0028] Among them, in this embodiment, the main function of the Ethernet switching chip 10 is to receive, process and forward data frames to the target device at the data link layer. Its working principle is based on the destination media access control address contained in each data frame. By checking this address and searching for the corresponding port in its internal media access control address table, if a matching media access control address and port are found, the data frame will be forwarded to the corresponding port, thereby realizing data exchange. The main functions of the first port physical layer 20 and the second port physical layer 30 are responsible for sending and receiving data. The first port physical layer 20 and the second port physical layer 30 can convert the received parallel data into serial stream data, and encode the data into analog signals according to the encoding rules of the physical layer, and then send the data out; when receiving data, the first port physical layer 20 and the second port physical layer 30 can decode the received analog signal and convert it back to parallel data, and then pass it to the upper layer.

[0029] like Figure 1As shown, the first group of output pins and the second group of output pins of the first port physical layer 20 each include 4 output pins, wherein the first group of output pins are MDIA_P_A, MDIA_N_A, MDIB_P_A and MDIB_N_A respectively; the second group of output pins are MDIC_P_A_PHY1, MDIC_N_A_PHY1, MDID_P_A_PHY1 and MDID_N_A_PHY1 respectively. The third group of output pins of the second port physical layer 30 also includes 4 output pins, namely MDIA_P_A_PHY2, MDIA_N_A_PHY2, MDIB_P_A_PHY2 and MDIB_N_A_PHY2. In this embodiment, the switching circuit 40 is connected to the controller 210, the second group of output pins, the third group of output pins and the network interface 220 respectively, and can control the second group of output pins or the third group of output pins to be connected to the network interface 220 based on the control signal sent by the control. When the network switching device 100 needs to implement 10M or 100M rate adaptive negotiation and communication of the network, the network switching device 100 can implement it through the first group of output pins; when the network switching device 100 needs to implement 1000M rate adaptive negotiation and communication of the network, at this time, the switching circuit 40 can control the second group of output pins to connect with the network interface 220 based on the control signal, so that the network switching device 100 can realize the 1000M rate adaptive negotiation and communication with the terminal through the first group of output pins and the second output pin of the first port physical layer 20. When the network switching device 100 needs to implement the rate adaptive negotiation and communication of dual 100M, dual 10M or 100M and 10M combination of the network, the switching circuit 40 can control the third group of output pins to connect to the network interface 220 based on the control signal, so that the network switching device 100 can implement the rate adaptive negotiation and communication of dual 100M, dual 10M or 100M and 10M combination with the two terminals through the first group of output pins of the first port physical layer 20 and the third output pin of the second port physical layer 30. Among them, the specific circuit structure and working principle of the switching circuit 40 are described below and will not be described in detail here.

[0030] Through the above method, different from the prior art, the network switching device 100 of the present application includes an Ethernet switching chip 10, a first port physical layer 20, a second port physical layer 30 and a switching circuit 40, and the Ethernet switching chip 10 is connected to the controller 210; the first port physical layer 20 is connected to the controller 210 and the Ethernet switching chip 10, the first port physical layer 20 includes a first group of output pins and a second group of output pins, and the first group of output pins is connected to the network interface 220; the second port physical layer 30 is connected to the controller 210 and the Ethernet switching chip 10, and the second port physical layer 30 includes a third group of output pins; the switching circuit 40 is respectively connected to the controller 210, the second group of output pins, the third group of output pins and the network interface 220, and is used to control the second group of output pins or the third group of output pins to be connected to the network interface 220 based on the control signal. Through the above method, the network switching device 100 of the present application can control the second group of output pins or the third group of output pins to be connected to the network interface 220 through the switching circuit 40, thereby realizing the network's 10M, 100M, 1000M, dual 100M, dual 10M or 100M and 10M combination rate adaptive negotiation and communication.

[0031] Optionally, see Figure 2 , Figure 2 1 is a schematic diagram of the structure of an embodiment of a switching circuit provided by the present application. Figure 1 and Figure 2 As shown, based on the foregoing, in this embodiment, the first group of output pins, the second group of output pins and the third group of output pins each include four output pins, and the switching circuit 40 includes four switching sub-circuits; each switching sub-circuit is connected to the controller 210 and the network interface 220, and each switching sub-circuit is connected one-to-one with each output pin in the second group of output pins and each output pin in the third group of output pins.

[0032] As described above, the four output pins of the first group of output pins are MDIA_P_A, MDIA_N_A, MDIB_P_A and MDIB_N_A; the four output pins of the second group of output pins are MDIC_P_A_PHY1, MDIC_N_A_PHY1, MDID_P_A_PHY1 and MDID_N_A_PHY1. The four output pins of the third group of output pins are MDIA_P_A_PHY2, MDIA_N_A_PHY2, MDIB_P_A_PHY2 and MDIB_N_A_PHY2. The four switching subcircuits of the switching circuit 40 are the first switching subcircuit 41, the second switching subcircuit 42, the third switching subcircuit 43 and the fourth switching subcircuit 44. The control signals sent by the controller 210 to the switching circuit 40 also include four, namely GPIO1, GPIO2, GPIO3 and GPIO4, and these four control signals are at the same logic level when sent.

[0033] like Figure 2As shown, the first switching sub-circuit 41 is connected to the controller 210 and the network interface 220, receives the control signal GPIO1 of the controller 210, and the first switching sub-circuit 41 is connected to MDIC_P_A_PHY1 in the second group of output pins and MDIA_P_A_PHY2 in the third group of output pins, and is used to switch the output pin MDIC_P_A_PHY1 or the output pin MDIA_P_A_PHY2 to be connected to the network interface 220 based on the control signal GPIO1; the second switching sub-circuit 42 is connected to the controller 210 and the network interface 220, receives the control signal GPIO2 of the controller 210, and the second switching sub-circuit 42 is connected to MDIC_N_A_PHY1 in the second group of output pins and MDIA_N_A_PHY2 in the third group of output pins, and is used to switch the output pin MDIC_N_A_PHY1 or the output pin MDIA_N_A_PHY2 to be connected to the network interface 220 based on the control signal GPIO2. The third switching sub-circuit 43 is connected to the controller 210 and the network interface 220, receives the control signal GPIO3 of the controller 210, and the third switching sub-circuit 43 is connected to MDID_P_A_PHY1 in the second group of output pins and MDIB_P_A_PHY2 in the third group of output pins, and is used to switch the output pin MDID_P_A_PHY1 or the output pin MDIB_P_A_PHY2 to be connected to the network interface 220 based on the control signal GPIO3; the fourth switching sub-circuit 44 is connected to the controller 210 and the network interface 220, receives the control signal GPIO4 of the controller 210, and the fourth switching sub-circuit 44 is connected to MDID_N_A_PHY1 in the second group of output pins and MDIB_N_A_PHY2 in the third group of output pins, and is used to switch the output pin MDID_N_A_PHY1 or the output pin MDIB_N_A_PHY2 to be connected to the network interface 220 based on the control signal GPIO4.

[0034] Optionally, see Figure 3 , Figure 3 1 is a schematic diagram of the structure of an embodiment of a switching subcircuit provided by the present application. Figure 3 As shown, in this embodiment, each switching subcircuit includes a control module and a switching module, that is, the first switching subcircuit 41, the second switching subcircuit 42, the third switching subcircuit 43 and the fourth switching subcircuit 44 all include a control module 50 and a switching module 60. Taking the first switching subcircuit 41 as an example, Figure 2 and Figure 3As shown, the control module 50 is connected to the controller 210, and is used to receive the control signal GPIO1 and generate a level signal based on the control signal GPIO1; the switching module 60 is connected to the output end of the control module 50, the first input end of the switching module 60 is connected to an output pin MDIC_P_A_PHY1 in the second group of output pins, and the second input end of the switching module 60 is connected to an output pin MDIA_P_A_PHY2 in the third group of output pins; the output end of the switching module 60 is connected to the network interface 220; the switching module 60 is used to conduct the path between the first input end or the second input end and the output end based on the level signal.

[0035] Based on the above embodiment, optionally, Figure 2 and Figure 3 As shown, in this embodiment, taking the first switching subcircuit 41 as an example, the control module 50 includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first capacitor C1, a second capacitor C2, a first transistor Q1 and a second transistor Q2; wherein, a first end of the first resistor R1 receives a control signal GPIO1, a second end of the first resistor R1 is connected to the control end of the first transistor Q1 and the first end of the first capacitor C1, a second end of the first capacitor C1 is grounded, a first channel end of the first transistor Q1 is connected to the first end of the second resistor R2 and the first end of the third resistor R3, a second channel end of the first transistor Q1 is grounded, a second end of the second resistor R2 receives a preset voltage, a second end of the third resistor R3 is connected to the first end of the second capacitor C2 and the control end of the second transistor Q2, a second end of the second capacitor C2 is grounded, a first end of the fourth resistor R4 receives a preset voltage, a second end of the fourth resistor R4 is connected to the first channel end of the second transistor Q2, a second channel end of the second transistor Q2 is grounded, and a connection node between the second end of the fourth resistor R4 and the first channel end of the second transistor Q2 serves as an output end of the control module 50 to output a level signal.

[0036] Among them, in this embodiment, the preset voltage can be set to 5V. When the control signal GPIO1 is a logic high level signal, the first transistor Q1 is turned on, the second transistor Q2 is turned off, and the output level signal is a logic high level signal. When the control signal GPIO1 is a logic low level signal, the first transistor Q1 is turned off, the second transistor Q2 is turned on, and the output level signal is a logic low level signal.

[0037] Based on the above embodiment, optionally, Figure 2 and Figure 3As shown, taking the first switching sub-circuit 41 as an example, in this embodiment, the switching module 60 includes a diode D and a relay 61, the output end of the control module 50 is connected to the first control end of the relay 61, the second control end of the relay 61 receives a preset voltage, the first input end of the relay 61 is connected to an output pin MDIC_P_A_PHY1 in the second group of output pins as the first input end of the switching module 60; the second input end of the relay 61 is connected to an output pin MDIA_P_A_PHY2 in the third group of output pins as the second input end of the switching module 60; the output end of the relay 61 is connected to the network interface 220 as the output end of the switching module 60; the positive pole of the diode D is connected to the first control end of the relay 61, and the negative pole of the diode D is connected to the second control end of the relay 61.

[0038] In this embodiment, the preset voltage can also be set to 5 V. When the level signal output by the control module 50 is a logic high level signal, the path between the first input end of the relay 61 and the output end of the relay 61 is connected, and the connection path between the output pin MDIC_P_A_PHY1 in the second group of output pins and the network interface 220 is connected; when the level signal output by the control module 50 is a logic low level signal, the path between the second input end of the relay 61 and the output end of the relay 61 is connected, and the connection path between the output pin MDIA_P_A_PHY2 in the third group of output pins and the network interface 220 is connected.

[0039] In addition, the second switching sub-circuit 42, the third switching sub-circuit 43 and the fourth switching sub-circuit 44 of the present application have the same specific circuit structure and working principle as the first sub-switching circuit described above, which will not be repeated here. That is, when the controller 210 configures the control signals GPIO1, GPIO2, GPIO3 and GPIO4 to a logic high level, the second group of output pins MDIC_P_A_PHY1, MDIC_N_A_PHY1, MDID_P_A_PHY1 and MDID_N_A_PHY1 of the first port physical layer 20 are Y1 is connected to the network interface 220 through the switching circuit 40, and the third group of output pins is in a floating state; when the controller 210 configures the control signals GPIO1, GPIO2, GPIO3 and GPIO4 to a logic low level, the third group of output pins MDIA_P_A_PHY2, MDIA_N_A_PHY2, MDIB_P_A_PHY2 and MDIB_N_A_PHY2 of the second port physical layer 30 are connected to the network interface 220 through the switching circuit 40; the second group of output pins is in a floating state.

[0040] Optionally, the present application further proposes a switch, see Figure 4 , Figure 4is a schematic diagram of the structure of the first embodiment of the switch provided by the present application, such as Figure 4 As shown, the switch 200 of this embodiment includes the network switching device 100 in any of the above embodiments, a controller 210 and a network interface 220 .

[0041] Among them, the network interface 220 is connected to the terminal through a network cable; the network switching device 100 is connected to the network interface 220, and the controller 210 is connected to the network switching device 100, wherein the controller 210 is used to configure and manage the network switching device 100, and generate a control signal to send to the switching circuit 40 to control the network switching device to achieve 10M, 100M, 1000M, dual 100M, dual 10M or 100M and 10M combination rate adaptive negotiation and communication.

[0042] In this embodiment, the controller 210 performs relevant logic detection for the functions of the entire switch 200, and mainly manages the network switching device 100 through a serial interface to control the network switching device 100 to achieve rate adaptive negotiation and communication of 10M, 100M, 1000M, dual 100M, dual 10M or a combination of 100M and 10M. The network interface 220 is a physical port for communication connection.

[0043] See also Figure 5 , Figure 5 Schematic diagram of the structure of an embodiment of a network interface provided by the present application. Figure 1 , Figure 2 and Figure 5 As shown, in this embodiment, the network interface 220 of this embodiment is set to RJ45, having 8 input pins, the input pin MDIA_P is connected to MDIA_P_A in the first group of output pins of the first port physical layer 20, the input pin MDIA_N is connected to MDIA_N_A in the first group of output pins of the first port physical layer 20, the input pin MDIB_P is connected to MDIB_P_A in the first group of output pins of the first port physical layer 20, the input pin MDIB_N is connected to MDIB_N_A in the first group of output pins of the first port physical layer 20; the input pin MDIC_P is connected to the output end of the first switching sub-circuit 41; the input pin MDIC_P is connected to the output end of the second switching sub-circuit 42, the input pin MDID_P is connected to the output end of the third switching sub-circuit 43, and the input pin MDID_N is connected to the output end of the fourth switching sub-circuit 44.

[0044] Optionally, see Figure 6 , Figure 6In this embodiment, the switch 200 of this embodiment further includes an isolation transformer 230 , the input end of the isolation transformer 230 is connected to the network switching device 100 , and the output end of the isolation transformer 230 is connected to the network interface 220 .

[0045] In this embodiment, the isolation transformer 230 plays a role in high voltage isolation. Figure 7 , Figure 7 Schematic diagram of the structure of an isolation transformer according to an embodiment of the present application. Figure 7 As shown, the isolation transformer 230 of this embodiment has 8 input pins and 8 output pins, the output pins are pins 2, 3, 5, 6, 8, 9, 11, 12, and the input pins are pins 13, 14, 16, 17, 19, 20, 22, 23, wherein pins 23, 22, 20, 19 are connected to the four output pins MDIA_P_A, MDIA_N_A, MDIB_P_A and MDIB_N_A in the first group of output pins in a one-to-one correspondence, and pins 17, 16, 14, 13 are respectively connected to the output ends of the first switching sub-circuit 41, the second switching sub-circuit 42, the third switching sub-circuit 43 and the fourth switching sub-circuit 44, and the output pins of the isolation transformer 230 are pins 2, 3, 5, 6, 8, 9, 11, 12 which are connected one-to-one with the input pins MDIA_P, MDIA_N, MDIB_P, MDIB_N, MDIC_P, MDIC_N, MDIA_D, MDID_N corresponding to the network interface 220.

[0046] Optionally, based on the above embodiments, in response to the network interface 220 being connected to a terminal through an ordinary network cable, the control signals GPIO1, GPIO2, GPIO3 and GPIO4 are set to a logic high level; in response to the network interface 220 being connected to two terminals through a Y-type special network cable, the control signals GPIO1, GPIO2, GPIO3 and GPIO4 are set to a logic low level.

[0047] Optionally, when the network interface 220 is connected to a terminal via a common network cable, if the terminal is a terminal that supports a maximum rate of 1000M, the switching circuit 40 turns on the connection path between the second group of output pins and the network interface 220 based on a control signal of a logic high level, and the first port physical layer 20 sends a quick connection signal to the terminal via the first group of output pins and the second group of output pins, so that the switch and the terminal negotiate to a rate of 1000M; if the terminal is a terminal that supports a maximum rate of 1000M, the first port physical layer 20 sends a quick connection signal to the terminal via the first group of output pins, so that the switch 200 and the terminal negotiate to a rate of 100M or 10M.

[0048] In one application scenario, see Figure 8 , Figure 8 This is a schematic diagram of the connection between the network interface provided by this application and a terminal. Figure 6 and Figure 8 As shown, when the network interface 220 is connected to a terminal through a common network cable, when the switch 200 is powered on, the controller 210 can read the chip ID numbers of the Ethernet switch chip 10, the first port physical layer 20, and the second port physical layer 30 in the network switching device 100 through the serial interface, and read the registers A1, A2, and A3 corresponding to the Ethernet switch chip 10, the first port physical layer 20, and the second port physical layer 30. When the values ​​in the registers A1, A2, and A3 are equal to the agreed values, the Ethernet switch chip 10, the first port physical layer 20, and the second port physical layer 30 are configured for related initialization to ensure that the Ethernet switch chip 10, the first port physical layer 20, and the second port physical layer 30 can work normally.

[0049] At this time, the controller 210 can set the control signals GPIO1, GPIO2, GPIO3 and GPIO4 to logic high level. The second group of output pins of the first port physical layer 20 will be connected to the isolation transformer 230 and the network interface 220, and the third group of output pins of the second port physical layer 30 is in a floating state.

[0050] When the switch 200 negotiates with a terminal, the first port physical layer 20 will send out a fast connection signal from time to time, and the fast connection signal contains its own link capability information, including the supported rate capability, duplex capability, flow control capability, etc. The first port physical layer 20 can support a maximum rate of 1000M at this time. When a terminal that supports a maximum rate of 1000M is connected, the first port physical layer 20 will send a fast connection signal through the first group of output pins and the second group of output pins, and the two parties will negotiate to a rate of 1000M; when a terminal that supports a maximum rate of 100M is connected, the first port physical layer 20 will send a fast connection signal through the first group of output pins, and the two parties will first negotiate to a rate of 100M; when a terminal that supports a maximum rate of 10M is connected, the first port physical layer 20 will send a fast connection signal through the first group of output pins, and the two parties will first negotiate to a rate of 100M.

[0051] Optionally, when the network interface 220 is connected to two terminals via a Y-type special network cable, the switching circuit 40 turns on the connection path between the third group of output pins and the network interface 220 based on a logic low level control signal, and the first port physical layer 20 sends a fast connection signal to one of the two terminals via the first group of output pins, so that the switch 200 negotiates with the terminal to a rate of 100M or 10M; the second port physical layer 30 sends a fast connection signal to the other of the two terminals via the third group of output pins, so that the switch 200 negotiates with the terminal to a rate of 100M or 10M.

[0052] In one application scenario, see Fig. 9 , Fig. 9 This is a schematic diagram of the connection between the network interface provided by this application and two terminals through a Y-shaped special network cable. Figure 6 and Fig. 9 As shown, as described above, the controller 210 performs relevant initialization configuration on the Ethernet switch chip 10, the first port physical layer 20 and the second port physical layer 30 to ensure that the Ethernet switch chip 10, the first port physical layer 20 and the second port physical layer 30 can work normally.

[0053] At this time, the controller 210 can set the control signals GPIO1, GPIO2, GPIO3 and GPIO4 to logic low. The third group of output pins of the second port physical layer 30 will be connected to the isolation transformer 230 and the network interface 220, and the second group of output pins of the first port physical layer 20 is in a floating state.

[0054] At this time, both the first port physical layer 20 and the second port physical layer 30 can support a maximum rate of 100M. When accessing the terminal 1 that supports a maximum rate of 100M, the first port physical layer 20 will send a fast connection signal through the first group of output pins, and the two parties will first negotiate to a rate of 100M; or when accessing the terminal 1 that supports a maximum rate of 10M, the first port physical layer 20 will send a fast connection signal through the first group of output pins, and the two parties will first negotiate to a rate of 10M. In addition, when accessing the terminal 2 that supports a maximum rate of 100M again, the second port physical layer 30 will send a fast connection signal through the third group of output pins, and the two parties will still negotiate to a rate of 100M; or when accessing the terminal 2 that supports a maximum rate of 10M again, the second port physical layer 30 will send a fast connection signal through the third group of output pins, and the two parties will still negotiate to a rate of 10M.

[0055] In particular, in this embodiment, the network switching device 100 has at least two media access control modules inside, and can support mutual forwarding.

[0056] After the switch 200 establishes a negotiation process with the terminal, the controller 210 in the switch 200 reads the register of the network switching device 100 through the serial interface to determine whether two terminals or one terminal are negotiated, so that another register of the network switching device can be reconfigured to adapt to the number of terminals and forward data.

[0057] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A network switching device, characterized in that: Applied to a switch, the switch includes a controller and a network interface, and the network switching device includes: An Ethernet switching chip, connected to the controller, for forwarding and exchanging data; A first port physical layer is connected to the controller and the Ethernet switch chip, the first port physical layer includes a first group of output pins and a second group of output pins, wherein the first group of output pins is connected to the network interface; A second port physical layer connected to the controller and the Ethernet switch chip, wherein the second port physical layer includes a third group of output pins; a switching circuit, connected to the controller, the second group of output pins, the third group of output pins and the network interface respectively, for receiving a control signal from the controller and controlling the second group of output pins or the third group of output pins to be connected to the network interface based on the control signal; When the network switching device needs to implement 1000M rate adaptive negotiation and communication of the network, the switching circuit controls the second group of output pins to be connected to the network interface based on the control signal, so that the network switching device implements 1000M rate adaptive negotiation and communication with the terminal through the first group of output pins and the second group of output pins; when the network switching device needs to implement dual 100M, dual 10M or 100M and 10M combination rate adaptive negotiation and communication of the network, the switching circuit controls the third group of output pins to be connected to the network interface based on the control signal, so that the network switching device implements dual 100M, dual 10M or 100M and 10M combination rate adaptive negotiation and communication with two terminals through the first group of output pins and the third group of output pins respectively; The network switching device is connected to the network interface, and the network switching device is connected to an external network cable through the network interface.

2. The network switching device according to claim 1, characterized in that: The first group of output pins, the second group of output pins and the third group of output pins each include four output pins, and the switching circuit includes four switching sub-circuits; Each of the switching sub-circuits is connected to the controller and the network interface, and each of the switching sub-circuits is connected to each output pin in the second group of output pins and each output pin in the third group of output pins in a one-to-one correspondence.

3. The network switching device according to claim 2, characterized in that: Each of the switching sub-circuits comprises: A control module, the control module is connected to the controller, and is used to receive the control signal and generate a level signal based on the control signal; A switching module is connected to the output end of the control module, a first input end of the switching module is connected to an output pin in the second group of output pins, and a second input end of the switching module is connected to an output pin in the third group of output pins; an output end of the switching module is connected to the network interface; and the switching module is used to conduct a path between the first input end or the second input end and the output end based on the level signal.

4. The network switching device according to claim 3, characterized in that: The control module includes a first resistor, a second resistor, a third resistor, a fourth resistor, a first capacitor, a second capacitor, a first transistor and a second transistor; Wherein, the first end of the first resistor receives the control signal, the second end of the first resistor is connected to the control end of the first transistor and the first end of the first capacitor, the second end of the first capacitor is grounded, the first path end of the first transistor is connected to the first end of the second resistor and the first end of the third resistor, the second path end of the first transistor is grounded, the second end of the second resistor receives a preset voltage, the second end of the third resistor is connected to the first end of the second capacitor and the control end of the second transistor, the second end of the second capacitor is grounded, the first end of the fourth resistor receives the preset voltage, the second end of the fourth resistor is connected to the first path end of the second transistor, the second path end of the second transistor is grounded, and the connection node between the second end of the fourth resistor and the first path end of the second transistor serves as the output end of the control module to output the level signal; in response to the control signal being a logic high level signal, the first transistor is turned on, the second transistor is turned off, and the output level signal is a logic high level signal; in response to the control signal being a logic low level signal, the first transistor is turned off, the second transistor is turned on, and the output level signal is a logic low level signal.

5. The network switching device according to claim 3, characterized in that: The switching module includes a diode and a relay, the output end of the control module is connected to the first control end of the relay, the second control end of the relay receives a preset voltage, the first input end of the relay is connected to one of the second group of output pins as the first input end of the switching module; the second input end of the relay is connected to one of the third group of output pins as the second input end of the switching module; the output end of the relay is connected to the network interface as the output end of the switching module; the positive electrode of the diode is connected to the first control end of the relay, and the negative electrode of the diode is connected to the second control end of the relay; in response to the level signal being a logic high level signal, the path between the first input end of the relay and the output end of the relay is connected; in response to the level signal being a logic low level signal, the path between the second input end of the relay and the output end of the relay is connected.

6. A switch, characterized in that: It comprises the network switching device, controller and network interface as described in any one of claims 1 to 5, wherein the network interface is connected to the terminal via a network cable; the network switching device is connected to the network interface, and the controller is connected to the network switching device, wherein the controller is used to configure and manage the network switching device, and generate a control signal to send to the switching circuit to control the network switching device to achieve rate adaptive negotiation and communication of 10M, 100M, 1000M, dual 100M, dual 10M or a combination of 100M and 10M.

7. The switch according to claim 6, characterized in that: It also includes an isolation transformer, the input end of the isolation transformer is connected to the network switching device, and the output end of the isolation transformer is connected to the network interface.

8. The switch according to claim 6, characterized in that: In response to the network interface being connected to a terminal via a common network cable, the control signal is set to a logic high level, and in response to the network interface being connected to two terminals via a Y-shaped special network cable, the control signal is set to a logic low level.

9. The switch according to claim 8, characterized in that: When the network interface is connected to a terminal through an ordinary network cable, if the terminal is a terminal that supports a maximum rate of 1000M, the switching circuit turns on the connection path between the second group of output pins and the network interface based on the control signal of a logic high level, and the first port physical layer sends a fast connection signal to the terminal through the first group of output pins and the second group of output pins, so that the switch and the terminal negotiate to a rate of 1000M; if the terminal is a terminal that supports a maximum rate of 1000M, the first port physical layer sends the fast connection signal to the terminal through the first group of output pins, so that the switch and the terminal negotiate to a rate of 100M or 10M.

10. The switch according to claim 8, characterized in that: When the network interface is connected to two terminals through a Y-shaped special network cable, the switching circuit turns on the connection path between the third group of output pins and the network interface based on the control signal of a logic low level, and the first port physical layer sends a fast connection signal to one of the two terminals through the first group of output pins, so that the switch and the terminal negotiate to a rate of 100M or 10M; the second port physical layer sends the fast connection signal to the other of the two terminals through the third group of output pins, so that the switch and the terminal negotiate to a rate of 100M or 10M.

Citation Information

Patent Citations

  • Gigabit Ethernet switch, control method thereof, and network system using the switch

    CN103428116A

  • Ethernet auto-negotiation method and device, and storage medium

    CN114338449A