Biplane switch port control method and system and biplane switch
By switching cross-connect units and register control, identifying port control modes, and automatically or manually adjusting the plane affiliation of ports, the problem of low port utilization in dual-plane switches is solved, enabling flexible port adjustment and secure operation and maintenance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- STATE GRID FUJIAN POWER ELECTRIC CO ECONOMIC RESEARCH INSTITUTE
- Filing Date
- 2025-12-30
- Publication Date
- 2026-05-01
AI Technical Summary
The fixed port allocation in existing dual-plane switches leads to low utilization and lacks flexibility, resulting in insufficient ports on one plane while ports on the other plane are idle, and also makes operation and maintenance inconvenient.
By switching cross-connect units and register control, the port control mode is identified, the plane affiliation of the port is automatically or manually adjusted, the port affiliation is determined according to the service message type, and the port can be flexibly connected and disconnected by switching cross-connect units.
It improves the port utilization of dual-plane switches, enables flexible port adjustment and automatic control, improves operation and maintenance efficiency, and ensures the security of power communication networks.
Smart Images

Figure CN121967353A_ABST
Abstract
Description
A method, system, and dual-plane switch for port control. Technical Field
[0001] This invention relates to the field of dual-plane switch technology, and in particular to a dual-plane switch port control method, system, and dual-plane switch. Background Technology
[0002] There are two types of business in the power sector: industrial control business related to production and information collection business. These two types of business are physically isolated from a security perspective. In order to achieve the goal of unified transmission, dual-plane switches have become a trend.
[0003] However, the port allocation for each plane in current dual-plane switches is fixed. For example, a dual-plane switch has a total of 8 ports and two planes, with 4 ports for each plane. But in the application environment, plane 1 may have more services and may need 6 ports, while plane 2 may only need 1 port. This results in a situation where one plane has insufficient ports while the other plane has idle ports. Because the ports cannot be flexibly allocated, the existing fixed port allocation cannot effectively meet the usage requirements, which in turn leads to low port utilization of the dual-plane switch. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide a dual-plane switch port control method, system and dual-plane switch, which can effectively improve the port utilization of dual-plane switches.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: a dual-plane switch port control method, comprising the steps of: reading a register value from a register and identifying the control mode of a port in the dual-plane switch according to the register value; if the control mode is an automatic control mode, obtaining the switch state change information of the port; determining whether the switch state change information changes from a closed state to an open state, and if so, obtaining the service packets received by the port, and selecting any plane from the dual-plane switch as a first target plane, and controlling the port to connect to the first target plane based on a switching cross unit; receiving first port affiliation information sent by the first target plane, wherein the first port affiliation information is information on whether the port belongs to the first target plane as determined by the first target plane according to the type of the service packet; determining whether the first port affiliation information is affiliation, and if so, maintaining the connection between the port and the first target plane, and if not, selecting another plane in the dual-plane switch other than the first target plane as a second target plane, and controlling the port to connect to the second target plane based on the switching cross unit.
[0006] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows: a dual-plane switch port control system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: reading a register value from a register and identifying the control mode of a port in the dual-plane switch according to the register value; if the control mode is an automatic control mode, acquiring the switch state change information of the port; determining whether the switch state change information has changed from a closed state to an open state; if so, acquiring the service message received by the port, and selecting any plane from the dual-plane switch as a first target plane, controlling the port to connect to the first target plane based on the switching cross unit; receiving first port affiliation information sent by the first target plane, the first port affiliation information being information on whether the port belongs to the first target plane as determined by the first target plane based on the type of the service message; determining whether the first port affiliation information is affiliation; if so, maintaining the connection between the port and the first target plane; if not, selecting another plane in the dual-plane switch other than the first target plane as a second target plane, controlling the port to connect to the second target plane based on the switching cross unit.
[0007] To address the aforementioned technical problems, another technical solution adopted by the present invention is as follows: a dual-plane switch using the aforementioned dual-plane switch port control method, comprising a first plane, a second plane, a switching cross-connect unit, a controller, and multiple ports; the controller is used to send control signals to the switching cross-connect unit to control the multiple ports to connect to the first plane or the second plane through the switching cross-connect unit; each port is used to receive service packets and transmit the service packets to the plane connected to the port; the switching cross-connect unit is used to switch the plane connected to the port; the first plane and the second plane are used to determine whether the connected port belongs to themselves based on the type of the service packet, and to receive the service packets sent by the port belonging to themselves.
[0008] The beneficial effects of this invention are as follows: When the control mode of a port in a dual-plane switch is identified as automatic control mode based on the register value read from the register, the switch status change information of the port is obtained. If the port changes from off to on, the service packets received by the port are obtained, and any plane from the dual-plane switch is selected as the first target plane. The port is connected to the first target plane based on the switching cross-connect unit. The first port affiliation information sent by the first target plane is received. If the first port affiliation information indicates affiliation, the connection between the port and the first target plane is maintained. Otherwise, another plane other than the first target plane is selected as the second target plane, and the port is connected to the second target plane based on the switching cross-connect unit. Thus, when the port receives service packets, it is first connected to any one of the planes based on the switching cross-connect unit. The plane determines whether the port belongs to itself based on the service packets. Based on the port affiliation information sent by the plane, it decides whether to maintain the connection between the port and the plane or switch the port affiliation to another plane based on the switching cross-connect unit. This realizes the automatic control of the ports of the dual-plane switch and can flexibly adjust the dual-plane affiliation of the port based on the service packets using the switching cross-connect unit, thereby effectively improving the port utilization rate of the dual-plane switch. Attached Figure Description
[0009] Figure 1 is a flowchart of a dual-plane switch port control method according to an embodiment of the present invention; Figure 2 is a schematic diagram of a dual-plane switch port control system according to an embodiment of the present invention; Figure 3 is a port control flowchart in a dual-plane switch port control method according to an embodiment of the present invention; Figure 4 is a schematic diagram of switching port affixing in a dual-plane switch port control method according to an embodiment of the present invention; Figure 5 is a schematic diagram of a manual control port in a dual-plane switch port control method according to an embodiment of the present invention; Figure 6 is a schematic diagram of the overall structure of a dual-plane switch according to an embodiment of the present invention; Figure 7 is a schematic diagram of the detailed structure of a dual-plane switch according to an embodiment of the present invention. Detailed Implementation
[0010] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.
[0011] Before detailing the embodiments of this application, some related concepts will be explained first: (1) Dual-plane switch: A switch with two planes that are isolated from each other; (2) Switching cross switch: A switch used to switch the port affiliation.
[0012] In existing technologies, the port allocation for each plane in a dual-plane switch is fixed. For example, a dual-plane switch has a total of 8 ports and two planes, with each plane corresponding to 4 ports. However, in the application environment, plane 1 may have more services and may require 6 ports, while plane 2 may only need 1 port. This results in a situation where one plane has insufficient ports while the other plane has idle ports. Because the ports cannot be flexibly allocated, the existing fixed port allocation cannot effectively meet the usage requirements, leading to low port utilization of the dual-plane switch. Furthermore, if the plane services are connected incorrectly during construction or the port assignment is temporarily adjusted, staff need to go to the site to make corrections, which is inconvenient for operation and maintenance.
[0013] To at least address the aforementioned issues, referring to Figure 1, this embodiment of the invention provides a dual-plane switch port control method, comprising the following steps: reading a register value from a register and identifying the control mode of a port in the dual-plane switch based on the register value; if the control mode is an automatic control mode, acquiring the port's switch state change information; determining whether the switch state change information changes from an off state to an on state; if so, acquiring the service packets received by the port and selecting any plane from the dual-plane switch as a first target plane, controlling the port to connect to the first target plane based on a switching cross-connect unit; receiving first port affiliation information sent by the first target plane, wherein the first port affiliation information is information determined by the first target plane based on the type of the service packet to determine whether the port belongs to the first target plane; determining whether the first port affiliation information is affiliation; if so, maintaining the connection between the port and the first target plane; if not, selecting another plane in the dual-plane switch other than the first target plane as a second target plane, controlling the port to connect to the second target plane based on the switching cross-connect unit.
[0014] As described above, the beneficial effects of this invention are as follows: When the control mode of a port in a dual-plane switch is identified as automatic control mode based on the register value read from the register, the switch status change information of the port is obtained. If the port changes from off to on, the service packets received by the port are obtained, and any plane from the dual-plane switch is selected as the first target plane. The port is connected to the first target plane based on the switching cross-connect unit, and the first port affiliation information sent by the first target plane is received. If the first port affiliation information indicates affiliation, the connection between the port and the first target plane is maintained; otherwise, another plane other than the first target plane is selected as the second target plane, and the port is connected to the second target plane based on the switching cross-connect unit. In this way, when a port receives a service packet, it is first connected to any one of the planes based on the switching cross-connect unit. The plane determines whether the port belongs to itself based on the service packet, and decides whether to maintain the connection between the port and the plane or switch the port affiliation to another plane based on the port affiliation information sent by the plane. This realizes the automatic control of the ports of the dual-plane switch, and can flexibly adjust the dual-plane affiliation of the port based on the service packet using the switching cross-connect unit, thereby effectively improving the port utilization rate of the dual-plane switch.
[0015] Further, controlling the port to connect to the first target plane based on the switching cross unit includes: generating a first control signal corresponding to the first target plane; sending the first control signal to the switching cross unit, so that the switching cross unit switches the switching cross switch corresponding to the port to the first target plane according to the first control signal; controlling the port to connect to the second target plane based on the switching cross unit includes: generating a second control signal corresponding to the second target plane; sending the second control signal to the switching cross unit, so that the switching cross unit switches the switching cross switch corresponding to the port to the second target plane according to the second control signal.
[0016] As described above, during the process of connecting the control port of the switching cross unit to the plane, a control signal corresponding to the target plane is generated and sent to the switching cross unit so that the switching cross unit switches the switching cross switch corresponding to the port to the target plane according to the control signal. The switching cross switch in the switching cross unit can flexibly and easily realize the channel connection between the port and the plane.
[0017] Furthermore, after controlling the port to connect to the second target plane based on the switching cross unit, the method further includes: receiving second port affiliation information sent by the second target plane, wherein the second port affiliation information is information on whether the port belongs to the second target plane as determined by the second target plane based on the type of the service message; determining whether the second port affiliation information indicates affiliation, and if so, maintaining the connection between the port and the second target plane; otherwise, controlling the port not to connect to any plane based on the switching cross unit, and outputting alarm information.
[0018] As described above, after the port is connected to the second target plane, it receives the second port ownership information sent by the second target plane. If the second port ownership information is owned, the connection between the port and the second target plane is maintained. Otherwise, it indicates that the port has been illegally accessed and the channel connection between the port and any plane needs to be disconnected. Therefore, based on the switching cross unit control port not being connected to any plane and outputting alarm information to notify the staff in a timely manner, the security of the power communication network is effectively guaranteed.
[0019] Furthermore, controlling the port not to be connected to any plane based on the switching cross unit includes: generating a third control signal; sending the third control signal to the switching cross unit so that the switching cross unit disconnects the switching cross switch between the port and the second target plane according to the third control signal.
[0020] As described above, after the third control signal is generated and the switching cross unit receives the third control signal, it can disconnect the switching cross switch between the port and the second target plane according to the third control signal. By sending the third control signal to the switching cross unit, the channel connection between the port and any plane can be avoided in a timely and effective manner.
[0021] Furthermore, the register includes a port control mode register; reading the register value from the register and identifying the control mode of the port in the dual-plane switch based on the register value includes: reading a first register value from the port control mode register and identifying the control mode of the port in the dual-plane switch based on the first register value.
[0022] As described above, the port control mode register allows for flexible configuration of the control modes of the ports on a dual-plane switch. These control modes can include manual and automatic control modes, thus improving the flexibility of port control.
[0023] Furthermore, the register also includes a port home register; and further includes: if the control mode is manual control mode, reading a second register value from the port home register; selecting the plane to which the port belongs based on the second register value; and controlling the port to connect to the plane to which the port belongs based on the switching cross unit.
[0024] As described above, in the existing technology, if the plane service is connected incorrectly during construction, or the port assignment is temporarily adjusted, staff need to go to the site to make corrections, which is not convenient for operation and maintenance. Therefore, a port assignment register can be set up. When the control mode is manual control mode, the value of the second register is read from the port assignment register. Based on the value of the second register, the control port is connected to the plane to which the port is assigned based on the switching cross unit. In this way, the port assignment register can be used to flexibly configure the plane to which the port is assigned in manual control mode, which improves the operation and maintenance efficiency of dual-plane switches.
[0025] Referring to Figure 2, another embodiment of the present invention provides a dual-plane switch port control system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the various steps in the dual-plane switch port control method described above.
[0026] Referring to Figure 6, another embodiment of the present invention provides a dual-plane switch using the above-described dual-plane switch port control method, including a first plane, a second plane, a switching cross-connect unit, a controller, and multiple ports; the controller is used to send control signals to the switching cross-connect unit to control the multiple ports to connect to the first plane or the second plane through the switching cross-connect unit; each port is used to receive service packets and transmit the service packets to the plane connected to the port; the switching cross-connect unit is used to switch the plane connected to the port; the first plane and the second plane are used to determine whether the connected port belongs to themselves according to the type of the service packet, and to receive the service packets sent by the port belonging to themselves.
[0027] As described above, by setting up a switching cross unit, the dual-plane affiliation of ports can be flexibly adjusted, thereby effectively improving the port utilization of the dual-plane switch.
[0028] Furthermore, the switching cross unit includes multiple switching cross switches, each of which corresponds to one of the ports.
[0029] As described above, each switching cross switch in the switching cross unit corresponds to one port, which can accurately and flexibly control the assignment of each port. Moreover, using the switching cross switch to adjust the port assignment is less prone to errors and is more convenient and reliable.
[0030] Furthermore, it also includes a physical layer device; the physical layer device is disposed between the port and the first plane or the second plane, and is used to realize signal conversion between the first plane or the second plane and the port.
[0031] As described above, the physical layer device is located between the port and the first plane or the second plane to realize signal conversion between the first plane or the second plane and the port, ensuring that the channel properties at both ends of the switching cross unit are the same, and realizing effective data transmission.
[0032] The present invention provides a dual-plane switch port control method, system, and dual-plane switch, which are applicable to power communication scenarios. The following is a description of specific implementation methods: Referring to Figure 1, one embodiment of the present invention is: a dual-plane switch port control method, including the steps of: S1, reading register values from a register and identifying the control mode of the port in the dual-plane switch based on the register values.
[0033] The registers include a port control mode register and a port ownership register. There are multiple port control mode registers and multiple port ownership registers, each corresponding to a port.
[0034] Specifically, the first register value is read from the port control mode register, and the control mode of the port in the dual-plane switch is identified based on the first register value.
[0035] In one alternative implementation, the first register value is 0 or 1. For example, 1 represents manual control mode and 0 represents automatic control mode, as shown in Table 1.
[0036] Table 1 Port Control Mode Register
[0037] Assuming the first register value read from the control mode register of port 1 is 0, then the control mode of the port in the dual-plane switch is determined to be automatic control mode.
[0038] S2. If the control mode is automatic control mode, then obtain the switch state change information of the port, as shown in Figure 3.
[0039] For example, it can acquire changes in the port's link up / down status, including changes from link up (equivalent to an on state) to link down (equivalent to an off state), changes from link down to link up, or no change. Link up indicates that the port has detected a physical signal and the connection is normal, while link down indicates that the port has not detected a signal and the connection is broken.
[0040] S3. Determine whether the switch state change information has changed from the off state to the on state. If so, obtain the service message received by the port, select any plane from the dual-plane switch as the first target plane, and control the port to connect to the first target plane based on the switching cross unit.
[0041] For example, if the switch status change information indicates a change, the service message received by the port is obtained, plane 1 is selected from the dual-plane switch as the first target plane, and the port is connected to plane 1 based on the switching cross unit, as shown in Figure 3.
[0042] The method of controlling the port to connect to the first target plane based on the switching cross unit includes: generating a first control signal corresponding to the first target plane; sending the first control signal to the switching cross unit so that the switching cross unit switches the switching cross switch corresponding to the port to the first target plane according to the first control signal.
[0043] In one optional implementation, the first control signal is a low-level signal. For example, a low-level signal corresponding to plane 1 is generated and sent to the switching cross unit, which can then switch the switching cross switch corresponding to the port to plane 1 based on the low-level signal.
[0044] S4. Receive the first port attribution information sent by the first target plane. The first port attribution information is the information of whether the port belongs to the first target plane according to the type of the service message, as shown in Figure 3.
[0045] In another optional implementation, the first port affiliation information is information on whether the port belongs to the first target plane as determined by the first target plane according to a preset handshake protocol.
[0046] S5. Determine whether the first port affiliation information is affiliation. If yes, maintain the connection between the port and the first target plane. If no, select another plane in the dual-plane switch other than the first target plane as the second target plane, and control the port to connect to the second target plane based on the switching cross unit, as shown in Figure 3.
[0047] For example, if the first port's ownership information is "owned", then the port is maintained in connection with plane 1. If the first port's ownership information is not "owned", then plane 2 is selected as the second target plane, and the port is connected to plane 2 based on the switching cross unit control.
[0048] The method of controlling the port to connect to the second target plane based on the switching cross unit includes: generating a second control signal corresponding to the second target plane; and sending the second control signal to the switching cross unit so that the switching cross unit switches the switching cross switch corresponding to the port to the second target plane according to the second control signal.
[0049] In one optional implementation, the second control signal is a high-level signal. For example, a high-level signal corresponding to plane 2 is generated and sent to the switching cross unit, which can then switch the switching cross switch corresponding to the port to plane 2 based on the high-level signal.
[0050] S6. Receive the second port attribution information sent by the second target plane. The second port attribution information is information on whether the port belongs to the second target plane based on the type of the service message, as determined by the second target plane.
[0051] S7. Determine whether the second port affiliation information is affiliation. If yes, maintain the connection between the port and the second target plane. If no, control the port not to connect with any plane based on the switching cross unit and output alarm information, as shown in Figure 3.
[0052] The method of controlling the port to not be connected to any plane based on the switching cross unit includes: generating a third control signal; sending the third control signal to the switching cross unit so that the switching cross unit disconnects the switching cross switch between the port and the second target plane according to the third control signal.
[0053] In one optional implementation, the third control signal is a high-impedance signal. For example, a high-impedance signal is generated and sent to the switching cross unit. The switching cross unit disconnects the switching cross switch between the port and plane 2 based on the high-impedance signal, thus ensuring that the port is not connected to any plane.
[0054] S8. If the control mode is manual control mode, then read the value of the second register from the port home register, as shown in Figure 5.
[0055] The value of the second register is 0, 1, or 2, as shown in Table 2.
[0056] Table 2 Port Ownership Register
[0057] S9. Select the plane to which the port belongs based on the value of the second register.
[0058] For example, if the value of the second register read is 1, then the plane to which the port belongs is plane 1; if the value of the second register read is 2, then the plane to which the port belongs is plane 2; if the value of the second register read is 0, then the port does not belong to any plane.
[0059] S10. Based on the switching cross unit, control the port to connect to the plane to which the port belongs.
[0060] Specifically, a control signal corresponding to the plane to which the port belongs is generated; the control signal is sent to the switching cross unit so that the switching cross unit switches the switching cross switch corresponding to the port to the plane to which the port belongs according to the control signal.
[0061] For example, if the port belongs to plane 2, a high-level signal is generated and sent to the switching cross unit. The switching cross unit switches the switching cross switch corresponding to the port to plane 2 according to the high-level signal.
[0062] In addition, when the plane needs to output signals from the port, the port is first connected to the plane, the plane sends a test message, and obtains the response message returned by the port for the test message. The plane determines whether the port belongs to itself based on the type of the response message.
[0063] As shown in Figure 4, each port contains multiple signal lines. The crossbar switch corresponding to each port consists of multiple switches, with one switch corresponding to one signal line. Assuming a port has 8 signal lines (1-8 on the left side of Figure 4), the crossbar switch corresponding to that port consists of 8 switches. For example, if the service message type is an Ethernet MDI (Media Dependent Interface) signal, then the port needs to use 8 signal lines, and these 8 signal lines need to be connected to the same plane. Assuming that this type of service message is pre-configured to be processed by plane 1, then plane 1 determines that the port belongs to itself, and the 8 signal lines inside the port are connected to plane 1. If the service message type is an optical port or a SerDes signal (Serializer / Deserializer) converted by a PHY (Physical Layer Device), then the port can use only 4 signal lines, and these 4 signal lines need to be connected to the same plane. In summary, the dual-plane switch port control method of the present invention, when a port receives service packets, first connects the port to either plane based on a switching cross-connect unit. The plane then determines whether the port belongs to it based on the service packets. Based on the port affiliation information sent by the plane, it decides whether to maintain the connection between the port and that plane, or switch the port's affiliation to another plane based on the switching cross-connect unit. This achieves automatic port control of the dual-plane switch, enabling flexible adjustment of the port's dual-plane affiliation according to the service packets using the switching cross-connect unit, thereby effectively improving the port utilization of the dual-plane switch. Furthermore, after the port is connected to the second target plane, it receives second port affiliation information sent by the second target plane. If the second port affiliation information indicates a belonging port, the connection between the port and the second target plane is maintained; otherwise, the connection is switched. If an unauthorized access is detected to the port, the connection between the port and any plane must be disconnected. Therefore, based on the switching cross-connect unit, the port is controlled to not connect to any plane and an alarm message is output to promptly notify staff, effectively ensuring the security of the power communication network. Furthermore, the port control mode register allows for flexible configuration of the control mode of the dual-plane switch ports. The control mode can include manual control mode and automatic control mode, improving the flexibility of port control. A port home register is set. When the control mode is manual, the value of the second register is read from the port home register. Based on the value of the second register, the port is controlled to connect to the plane to which the port belongs based on the switching cross-connect unit. Thus, in manual control mode, the port home register is used to flexibly configure the plane to which the port belongs, improving the operation and maintenance efficiency of the dual-plane switch.
[0064] According to another aspect of the present invention, FIG2 is a schematic diagram illustrating a dual-plane switch port control system according to an embodiment of the present invention. The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the various steps of the aforementioned dual-plane switch port control method.
[0065] According to another aspect of the present invention, FIG6 is a schematic diagram illustrating a dual-plane switch using the above-described dual-plane switch port control method according to an embodiment of the present invention. The dual-plane switch includes a first plane (i.e., plane 1), a second plane (i.e., plane 2), a switching cross-connect unit, a controller, and multiple ports; the controller is configured to send control signals to the switching cross-connect unit to control the multiple ports to connect to the first plane or the second plane through the switching cross-connect unit; each port is configured to receive service packets and transmit the service packets to the plane connected to the port; the switching cross-connect unit is configured to switch the plane connected to the port; the first plane and the second plane are configured to determine whether the connected port belongs to themselves based on the type of the service packet, and to receive the service packets sent by the port belonging to themselves.
[0066] In one optional implementation, as shown in FIG7, the switching cross unit includes a plurality of switching cross switches, each of the switching cross switches corresponding to one of the ports.
[0067] In one alternative implementation, each of the switching cross switches includes a switch that corresponds one-to-one with the signal line of the port.
[0068] In one optional embodiment, the switching cross switch is a 1 to 2 switch (a device that switches or assigns one input channel to two output channels). In another optional embodiment, the multiple switching cross switches are matrix switches. In yet another optional embodiment, the switching cross switches are devices with other names that have the above-mentioned switching functions, such as retimer, redriver, mux / demuxer, FPGA (Field Programmable Gate Array), etc.
[0069] In an optional implementation, as shown in Figures 6 and 7, a physical layer device is further included; the physical layer device is disposed between the port and the first plane or the second plane, and is used to realize signal conversion between the first plane or the second plane and the port.
[0070] For example, physical layer devices can be positioned between a port and a switching cross unit, or between a switching cross unit and a plane. Signals input to a port can be converted into SerDes signals by the physical layer devices, in which case the switching cross unit switches the SerDes channel. Alternatively, signals can be converted into MDI signals by the physical layer devices, in which case the switching cross unit switches the MDI channel.
[0071] In one optional implementation, the first plane and the second plane are provided with a CPU, a MAC layer processing entity, a processor, a physical layer device, or an FPGA. In another optional implementation, the controller is a CPLD (Complex Programmable Logic Device), an FPGA, an MCU (Microcontroller), or a CPU.
[0072] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for controlling ports of a dual-plane switch, characterized in that, The steps include: reading a register value from a register and identifying the control mode of a port in a dual-plane switch based on the register value; if the control mode is an automatic control mode, obtaining the port's on / off state change information; determining whether the on / off state change information has changed from off to on; if so, obtaining the service packets received by the port and selecting any plane from the dual-plane switch as the first target plane, controlling the port to connect to the first target plane based on the switching cross-connect unit; receiving first port affiliation information sent by the first target plane, the first port affiliation information being information determined by the first target plane based on the type of the service packet to determine whether the port belongs to the first target plane; determining whether the first port affiliation information is affiliation; if so, maintaining the connection between the port and the first target plane; if not, selecting another plane in the dual-plane switch other than the first target plane as the second target plane, controlling the port to connect to the second target plane based on the switching cross-connect unit.
2. The dual-plane switch port control method according to claim 1, characterized in that, Controlling the port to connect to the first target plane based on the switching cross unit includes: generating a first control signal corresponding to the first target plane; sending the first control signal to the switching cross unit, so that the switching cross unit switches the switching cross switch corresponding to the port to the first target plane according to the first control signal; controlling the port to connect to the second target plane based on the switching cross unit includes: generating a second control signal corresponding to the second target plane; sending the second control signal to the switching cross unit, so that the switching cross unit switches the switching cross switch corresponding to the port to the second target plane according to the second control signal.
3. The dual-plane switch port control method according to claim 2, characterized in that, After controlling the port to connect to the second target plane based on the switching cross unit, the method further includes: receiving second port affiliation information sent by the second target plane, wherein the second port affiliation information is information on whether the port belongs to the second target plane as determined by the second target plane based on the type of the service message; determining whether the second port affiliation information indicates affiliation, and if so, maintaining the connection between the port and the second target plane; otherwise, controlling the port not to connect to any plane based on the switching cross unit, and outputting alarm information.
4. The dual-plane switch port control method according to claim 3, characterized in that, Controlling the port to not be connected to any plane based on the switching cross unit includes: generating a third control signal; sending the third control signal to the switching cross unit so that the switching cross unit disconnects the switching cross switch between the port and the second target plane according to the third control signal.
5. The dual-plane switch port control method according to claim 1, characterized in that, The register includes a port control mode register; reading the register value from the register and identifying the control mode of the port in the dual-plane switch based on the register value includes: reading a first register value from the port control mode register and identifying the control mode of the port in the dual-plane switch based on the first register value.
6. The dual-plane switch port control method according to claim 5, characterized in that, The register also includes a port home register; and further includes: if the control mode is manual control mode, reading a second register value from the port home register; selecting the plane to which the port belongs based on the second register value; and controlling the port to connect to the plane to which the port belongs based on the switching cross unit.
7. A dual-plane switch port control system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements each step of the dual-plane switch port control method according to any one of claims 1 to 6.
8. A dual-plane switch using the dual-plane switch port control method according to any one of claims 1 to 6, characterized in that, The system includes a first plane, a second plane, a switching cross-connect unit, a controller, and multiple ports. The controller is used to send control signals to the switching cross-connect unit to control the multiple ports to connect to the first plane or the second plane through the switching cross-connect unit. Each port is used to receive service packets and transmit the service packets to the plane connected to the port. The switching cross-connect unit is used to switch the plane connected to the port. The first plane and the second plane are used to determine whether the connected port belongs to themselves based on the type of the service packet, and to receive the service packets sent by the port belonging to themselves.
9. A dual-plane switch according to claim 8, characterized in that, The switching cross unit includes multiple switching cross switches, and each switching cross switch corresponds to one of the ports.
10. A dual-plane switch according to claim 8, characterized in that, It also includes physical layer devices; the physical layer devices are disposed between the port and the first plane or the second plane, and are used to realize signal conversion between the first plane or the second plane and the port.