Network system, networking protection method of network system, and optical control device

By introducing optical control equipment and optical switch arrays into the passive optical access LAN, a ring network transmission path is provided, which solves the development problems of high optical power and burst devices, and achieves the effects of reducing networking costs and improving system protection performance.

CN119341643APending Publication Date: 2025-01-21HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310884419.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-18
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the existing passive optical access local area network (POL) solution, the optical modules between OLT and ONU need to support large optical power, resulting in high cost and increased power consumption. At the same time, the reception of uplink optical signals requires burst devices, and research and development And evolution is difficult.

Method used

By introducing optical control equipment into the network system, the optical switch array is used to provide a ring network for network equipment, avoiding the use of 1:N passive optical splitters and burst devices, thereby reducing networking costs.

Benefits of technology

This eliminates the need to use high-cost and high-power optical modules and burst devices, reduces the networking cost of the network system, and improves the system's protection performance and fault recovery speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341643A_ABST
    Figure CN119341643A_ABST
Patent Text Reader

Abstract

The invention discloses a network system, a networking protection method of the network system and optical control equipment, and belongs to the technical field of communication, and the network equipment carries out networking between the optical control equipment and the network equipment, and provides a looped network for the network equipment through an optical switch array in the optical control equipment. Optical signals between network devices can be transmitted through the looped network, devices such as a 1: N passive optical splitter and a burst device do not need to be used, and therefore the networking cost of a network system is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network system, a networking protection method for the network system, and an optical control device. Background Art

[0002] With the evolution of communication network technology, passive optical network (PON) technology is deployed on a large scale on the access side of the network. Communication equipment such as switches and routers in the network system can transmit information bidirectionally with the PON access system to provide broadband services to users. Figure 1 The related technology shown provides a passive optical LAN (POL) architecture diagram based on PON technology. POL is a passive optical network with a point-to-multipoint (P2MP) structure. In POL, the optical line terminal (OLT) and optical network unit (ONU) devices in the PON network replace the access layer and aggregation layer in the traditional three-layer network architecture respectively, connect the OLT to the core layer switch, and connect the ONU to the user terminal. Passive splitters and optical fibers are used in the middle to complete the P2MP connection. The PON protocol is transmitted between the OLT device and the ONU device. Both the OLT upstream and the ONU downstream need to terminate the PON protocol to transmit the Ethernet protocol.

[0003] However, in Figure 1 In the network architecture shown, the POL solution uses a 1:N (N>1) passive optical splitter. The optical power attenuation of this passive optical splitter is relatively large, which requires the optical module between the OLT and the ONU to support a larger optical power. This optical module generally uses a high-cost and high-sensitivity avalanche photodiode (APD) for photoelectric conversion at the receiving end. In some scenarios, it is also necessary to increase the output optical power of the laser at the optical signal transmitting end, which will also increase the cost and power consumption of the laser. In addition, the uplink of the POL solution adopts time division multiplexing (TDM), that is, the ONU transmits the uplink optical signal according to the agreed time period, and the OLT side receiver must receive this section of optical signal within the specified time period. After transmitting the uplink optical signal, the ONU generally turns off the laser. In this way, the OLT side receiver must continuously receive optical signals from different ONUs, and each ONU only sends a section of optical signal (such as Figure 1OUN1-3 in the figure sends optical signals 1, 2, and 3 respectively. There is a gap between each optical signal sent by the same ONU. Therefore, the receiver on the OLT side needs to have the ability to deal with such independent optical signals (called bursts), that is, the ability to receive optical signals in bursts. Mainstream optoelectronic devices generally send and receive optical signals or continuously send and receive optical signals in a point-to-point manner, rather than the burster that sends and receives optical signals in segments. Therefore, this burst device is different from the development direction of mainstream optoelectronic devices. Burst devices need to be independently developed, and the evolution difficulty is getting higher and higher. For example, the higher the rate, the lower the tolerance of the burst device to the burst waiting time, the higher the requirement for the receiving ability of signals from different distances, and the greater the difficulty of the engineering process, which further increases the cost of network system networking. Summary of the invention

[0004] The embodiment of the present application provides a network system, a network protection method of the network system, and an optical control device, which can reduce the cost of networking the network system. The technical solution is as follows:

[0005] In a first aspect, a network system is provided, the network system comprising an optical control device, an upper layer network device (a first network device and a second network device) of the optical control device, and N lower layer network devices (i.e., a third network device) of the optical control device, wherein the second network device is a backup device of the first network device, and N is an integer greater than 1;

[0006] The optical control device includes an optical switch array, which includes (N+2) first optical switch units, the (N+2) first optical switch units are respectively connected to a first network device, a second network device and N third network devices, and the (N+2) first optical switch units are connected to form a first ring network, and the first ring network is used to: transmit a first downlink optical signal to at least one third network device, and transmit a first uplink optical signal to the first network device or the second network device, wherein the first uplink optical signal is an optical signal transmitted from the third network device connected to the first ring network to the first ring network, and the first downlink optical signal is an optical signal transmitted from the first network device or the second network device to the first ring network.

[0007] The network device networks the optical control device with the network device, and provides a ring network for the network device through the optical switch array in the optical control device, so that the optical signals between the network devices can be transmitted through the ring network, without the need to use 1:N passive optical splitters and burst devices, thereby reducing the networking cost of the network system.

[0008] In a possible implementation, the first optical switch unit includes a first light input port, a second light input port, a first light output port and a second light output port; when the first optical switch unit is in a first state, an optical signal received by the first light input port of the first optical switch unit is output through the second light output port of the first optical switch unit, and an optical signal received by the second light input port of the first optical switch unit is output through the first light output port of the first optical switch unit; when the first optical switch unit is in a second state, an optical signal received by the first light input port of the first optical switch unit is output through the first light output port of the first optical switch unit, and an optical signal received by the second light input port of the first optical switch unit is output through the second light output port of the first optical switch unit.

[0009] In a possible implementation, the first optical output port of each first optical switch unit is connected to the first optical input port of the previous first optical switch unit to form a first ring network; the second optical input port and the second optical output port of each first optical switch unit are connected to the first optical processor of the first network device, the second network device or the third network device.

[0010] In a possible implementation, the optical control device also includes a controller, which is connected to the first network device, the second network device and (N+2) first optical switch units; the controller is used to: when the first network device and / or the first main link fails, control the first main switch unit to switch to the second state, and control the first backup switch unit to switch to the first state; when the second network device and / or the first backup link fails, control the first main switch unit to switch to the first state, and control the first backup switch unit to switch to the second state, the first backup link is a link between the first optical processor of the second network device and the optical switch array, wherein the first main link is a link between the first optical processor of the first network device and the optical switch array, the first main switch unit is a first optical switch unit connected to the first network device, and the first backup switch unit is a first optical switch unit connected to the second network device.

[0011] In the event of a failure in the first network device and / or the first main link, or in the event of a failure in the second network device and / or the first backup link, a unidirectional failure occurs in the network system. In the unidirectional failure scenario, based on the above possible implementation methods, the active and standby nodes can be quickly switched by switching the state of the optical switch unit. The rapid switching of the active and standby nodes can quickly repair the failure and improve the protection performance of the system.

[0012] In a possible implementation, the second optical output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first optical input port of the previous first optical switch unit, and the first optical output port of each first optical switch unit except the first backup switch unit is connected to the first optical input port of each previous first optical switch unit to form a first ring network, and the first backup switch unit is the first optical switch unit connected to the second network device; the second optical input port and the first optical output port of the first backup switch unit are connected to the first optical processor of the second network device, and the second optical input port and the second optical output port of each first optical switch unit except the first backup switch unit are connected to the first optical processor of the first network device or the third network device.

[0013] In a possible implementation, the optical control device also includes a controller, which is connected to the first network device, the second network device and (N+2) first optical switch units; the controller is used to: when the first network device and / or the first main link fails, control the first main switch unit to switch to the second state, and control the first backup switch unit to switch to the second state; when the second network device and / or the first backup link fails, control the first main switch unit to switch to the first state, and control the first backup switch unit to switch to the first state, wherein the first main link is a link between the first optical processor of the first network device and the optical switch array, the first main switch unit is a first optical switch unit connected to the first network device, and the first backup link is a link between the first optical processor of the second network device and the optical switch array.

[0014] In the event of a failure in the first network device and / or the first main link, or in the event of a failure in the second network device and / or the first backup link, a unidirectional failure occurs in the network system. In the unidirectional failure scenario, based on the above possible implementation methods, the active and standby nodes can be quickly switched by switching the state of the optical switch unit. The rapid switching of the active and standby nodes can quickly repair the failure and improve the protection performance of the system.

[0015] In one possible implementation, the optical switch array also includes (N+2) second optical switch units, the (N+2) second optical switch units are respectively connected to the first network device, the second network device and N third network devices, and the (N+2) second optical switch units are connected to form a second ring network, and the second ring network is used to: transmit a second downlink optical signal to at least one third network device, and transmit a second uplink optical signal to the first network device or the second network device, wherein the second downlink optical signal is an optical signal transmitted by the first network device or the second network device to the second ring network, and the second uplink optical signal is an optical signal transmitted by the third network device connected to the second ring network to the second ring network.

[0016] Based on the possible implementations described above, the network system provides two optical signal transmission paths, namely the first ring network and the second ring network, for the network devices through the optical switch array, so that more optical signals can be transmitted between the network devices.

[0017] In a possible implementation, the second optical switch unit includes a first light input port, a second light input port, a first light output port, and a second light output port; when the second optical switch unit is in a first state, an optical signal received by the first light input port of the second optical switch unit is output through the second light output port of the second optical switch unit, and an optical signal received by the second light input port of the second optical switch unit is output through the first light output port of the second optical switch unit; when the second optical switch unit is in a second state, an optical signal received by the first light input port of the second optical switch unit is output through the first light output port of the second optical switch unit, and an optical signal received by the second light input port of the second optical switch unit is output through the second light output port of the second optical switch unit.

[0018] In a possible implementation, the first optical output port of each first optical switch unit is connected to the first optical input port of the previous first optical switch unit to form a first ring network, the second optical input port of each first optical switch unit is connected to the first optical processor of the first network device, the second network device or the third network device, and the second optical output port of each first optical switch unit is connected to the second optical processor of the first network device, the second network device or the third network device; the first optical output port of each second optical switch unit is connected to the first optical input port of the previous second optical switch unit to form a second ring network, the second optical input port of each second optical switch unit is connected to the second optical processor of the first network device, the second network device or the third network device, and the second optical output port of each second optical switch unit is connected to the first optical processor of the first network device, the second network device or the third network device.

[0019] In a possible implementation, the optical control device further includes a controller, which is connected to the first network device, the second network device, and (N+2) second optical switch units; the controller is used to: when a first main link and / or a second main link of the first network device fails, control the second main switch unit to switch to the second state, and control the second backup switch unit to switch to the first state, wherein the first main link is a link between a first optical processor of the first network device and an optical switch array, the second main link is a link between a second optical processor of the first network device and an optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second backup switch unit is a second optical switch unit connected to the second network device; when a first backup link and / or a second backup link of the second network device fails, control the second backup switch unit to switch to the second state, and control the second main switch unit to switch to the first state, wherein the first backup link is a link between the first optical processor of the second network device and the optical switch array, and the second backup link is a link between the second optical processor of the second network device and the optical switch array.

[0020] In the case where the optical switch array includes a first ring network and a second ring network, if the first main link and / or the second main link of the first network device fails, or the first backup link and / or the second backup link fails, that is, a unidirectional fault occurs in the bidirectional ring, in the unidirectional fault scenario of the bidirectional ring, based on the above possible implementation methods, rapid recovery of the fault is achieved by switching the state of the optical switch control unit. Compared with the switching method of the Ethernet ring network protection switching protocol, it can avoid the third network device from refreshing the local FDB table, and the fault recovery time is shorter.

[0021] In a possible implementation, the first main link or the second main link is a ring protection link. On this basis, the controller is further configured to control the second backup switch unit to switch to the second state and control the second main switch unit to switch to the first state when the second backup switch unit is in the first state and the second network device fails;

[0022] The first network device is configured to block a port of the first network device on the non-ring protection link and open a port owned by the first network device on the ring protection link of the ring protection link when a non-ring protection link in the first main link and the second main link fails;

[0023] A first neighbor device among N third network devices is used to send a first fault message through an optical switch array when a non-ring protection link failure is detected. The first neighbor device is a neighbor device of the first network device among the N third network devices. The first fault message indicates that a port of the first neighbor device corresponding to the non-ring protection link has failed.

[0024] By running the Ethernet ring protection switching protocol, the first main link or the second main link is set as a ring protection link, and the ring protection link performs protection switching. In the case of a non-ring protection link failure, the ring protection link on the first network device side cannot provide protection again. Based on the above possible implementation method, the state of the optical switch unit is controlled to enable active-standby switching to perform fault recovery, and the control of the state of the optical switch unit can also ensure that the ring network structure is intact during active-standby switching. When a failure occurs again, the switching method of the Ethernet ring protection switching protocol can be used for recovery. Compared with the solution of using the Ethernet ring protection switching protocol alone, multiple fault protection capabilities are supported.

[0025] In a possible implementation, the second light outlet of the first backup switch unit among the (N+2) first optical switch units is connected to the first light inlet of the previous first optical switch unit, and the first light outlet of each first optical switch unit except the first backup switch unit is connected to the first light inlet of the previous first optical switch unit to form a first ring network, and the first backup switch unit is the first optical switch unit connected to the second network device; the second light outlet of the second backup switch unit among the (N+2) second optical switch units is connected to the first light inlet of the previous second optical switch unit, and the first light outlet of each second optical switch unit except the second backup switch unit is connected to the first light inlet of the previous second optical switch unit to form a second ring network, and the second backup switch unit is the second optical switch unit connected to the second network device.

[0026] In a possible implementation, the second optical input port and the first optical output port of the first backup switch unit are respectively connected to the first optical processor and the second optical processor of the second network device, and the second optical input port and the second optical output port of each first optical switch unit except the first backup switch unit are respectively connected to the first optical processor and the second optical processor of a network device, and the network device is the second network device or the third network device; the first optical input port and the second optical output port of the second backup switch unit are respectively connected to the second optical processor and the first optical processor of the second network device, and the first optical input port and the second optical output port of each second optical switch unit except the second backup switch unit are respectively connected to the second optical processor and the second optical processor of the network device.

[0027] In a possible implementation, the optical control device further includes a controller, which is connected to the first network device, the second network device, and (N+2) second optical switch units; the controller is used to: when a first main link and / or a second main link of the first network device fails, control the second main switch unit to switch to a second state, and control the second standby switch unit to switch to a second state, the first main link is a link between a first optical processor of the first network device and an optical switch array, the second main link is a link between a second optical processor of the first network device and an optical switch array, and the second main switch unit is a second optical switch unit connected to the first network device;

[0028] In the event that a first backup link and / or a second backup link of the second network device fails, the second backup switch unit is controlled to switch to a first state, and the second main switch unit is controlled to switch to a first state, the first backup link is a link between a first optical processor of the second network device and an optical switch array, and the second backup link is a link between a second optical processor of the second network device and an optical switch array.

[0029] In the case where the optical switch array includes a first ring network and a second ring network, if the first main link and / or the second main link of the first network device fails, or the first backup link and / or the second backup link fails, that is, a unidirectional fault occurs in the bidirectional ring, in the unidirectional fault scenario of the bidirectional ring, based on the above possible implementation methods, rapid recovery of the fault is achieved by switching the state of the optical switch control unit. Compared with the switching method of the Taiyuan ring protection switching protocol, it can avoid the third network device from refreshing the local FDB table, and the fault recovery time is shorter.

[0030] In a possible implementation, the first main link or the second main link is a ring protection link. On this basis, the controller is further configured to control the second backup switch unit to switch to the first state and control the second main switch unit to switch to the first state when the second backup switch unit is in the second state and the second network device fails;

[0031] The first network device is used to block the port of the first network device on the non-ring protection link and open the port of the first network device on the ring protection link of the ring protection link when the non-ring protection link of the first main link and the second main link fails;

[0032] A first neighbor device among N third network devices is used to send a first fault message through an optical switch array when a non-ring protection link failure is detected. The first neighbor device is a neighbor device of the first network device among the N third network devices. The first fault message indicates that a port of the first neighbor device corresponding to the non-ring protection link has failed.

[0033] By running the Ethernet ring protection switching protocol, the first main link or the second main link is set as a ring protection link, and the ring protection link performs protection switching. In the case of a non-ring protection link failure, the ring protection link on the first network device side cannot provide protection again. Based on the above possible implementation method, the state of the optical switch unit is controlled to enable active-standby switching to perform fault recovery, and the control of the state of the optical switch unit can also ensure that the ring network structure is intact during active-standby switching. When a failure occurs again, the switching method of the Ethernet ring protection switching protocol can be used for recovery. Compared with the solution of using the Ethernet ring protection switching protocol alone, multiple fault protection capabilities are supported.

[0034] In a possible implementation, the first standby link or the second standby link is a ring protection link. On this basis, the second network device is used to block the port of the second network device on the non-ring protection link and open the ring protection link-owned port of the second network device on the ring protection link when a non-ring protection link in the first standby link and the second standby link fails;

[0035] The second neighbor device among the N third network devices is used to send a second fault message through the optical switch array when a non-ring protection link failure is detected. The second neighbor device is a neighbor device of the second network device among the N third network devices. The second fault message indicates that a port of the second neighbor device corresponding to the non-ring protection link has failed.

[0036] By running the Ethernet ring protection switching protocol, the first standby link or the second standby link is set as a ring protection link, and the ring protection link performs protection switching. In the case of a non-ring protection link failure, the ring protection link on the second network device side cannot provide protection again. Based on the above possible implementation method, the active-standby switching is achieved by controlling the state of the optical switch unit to perform fault recovery, and controlling the state of the optical switch unit can also ensure that the ring network structure is intact during the active-standby switching. When a failure occurs again, the switching method of the Ethernet ring protection switching protocol can be used for recovery. Compared with the solution of using the Ethernet ring protection switching protocol alone, multiple fault protection capabilities are supported.

[0037] In a second aspect, a networking protection method for a network system is provided. The network system is any network system provided in the first aspect. The method is executed by a controller of an optical control device, and the method includes the following steps: in the event of a failure in the first network device and / or the first main link, controlling the first main switch unit to switch to the second state, and controlling the first backup switch unit to switch to the first state; in the event of a failure in the second network device and / or the first backup link, controlling the first main switch unit to switch to the first state, and controlling the first backup switch unit to switch to the second state, wherein the first main link is a link between the first optical processor of the first network device and the optical switch array, the first main switch unit is a first optical switch unit connected to the first network device, the first backup switch unit is a first optical switch unit connected to the second network device, and the first backup link is a link between the first optical processor of the second network device and the optical switch array.

[0038] In a possible implementation, the second light output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first light input port of the previous first optical switch unit, and the first light output ports of each first optical switch unit except the first backup switch unit are connected to the first light input port of the previous first optical switch unit to form a first ring network; the method further includes the following steps:

[0039] In the event that the first network device and / or the first main link fails, controlling the first main switch unit to switch to the second state, and controlling the first backup switch unit to switch to the second state;

[0040] In the case that the second network device and / or the first backup link fails, the first main switch unit is controlled to switch to the first state, and the first backup switch unit is controlled to switch to the first state.

[0041] In a possible implementation, the first light output port of each second optical switch unit is connected to the first light input port of the previous second optical switch unit to form a second ring network, and the method further includes the following steps:

[0042] In the case that a first main link and / or a second main link of the first network device fails, the second main switch unit is controlled to switch to a second state, and the second standby switch unit is controlled to switch to a first state, the second main link is a link between a second optical processor of the first network device and an optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device;

[0043] In the event that a first backup link and / or a second backup link of the second network device fails, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state. The second backup link is a link between the second optical processor of the second network device and the optical switch array.

[0044] In a possible implementation, the first main link or the second main link is a ring protection link. On this basis, the method also includes the following steps: when the second backup switch unit is in the first state and the second network device fails, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state.

[0045] In a possible implementation, the second light output port of the second backup switch unit among the (N+2) second optical switch units is connected to the first light input port of the previous second optical switch unit, and the first light output port of each second optical switch unit except the second backup switch unit is connected to the first light input port of the previous second optical switch unit to form a second ring network; on this basis, the method further includes the following steps:

[0046] In the case that a first main link and / or a second main link of the first network device fails, the second main switch unit is controlled to switch to a second state, and the second standby switch unit is controlled to switch to a second state, the second main link is a link between the second optical processor of the first network device and the optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device;

[0047] When a first backup link and / or a second backup link of the second network device fails, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state. The second backup link is a link between the second optical processor of the second network device and the optical switch array.

[0048] In a possible implementation manner, the first main link or the second main link is a ring protection link. On this basis, the method further includes the following steps:

[0049] When the second backup switch unit is in the second state and the second network device fails, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state.

[0050] In a third aspect, a networking protection device for a network system is provided, which network system is the network system provided by the first aspect or any optional method of the first aspect above, and the device is configured as a controller of an optical control device in the network system, and the device includes a functional module for executing a networking protection method for a network system provided by the second aspect or any optional method of the second aspect above.

[0051] In a fourth aspect, a light control device of a network system is provided, where the light control device is any light control device provided in the first aspect or any optional manner of the first aspect.

[0052] In a fifth aspect, a light control device of a network system is provided, which network system is the network system provided by the first aspect or any optional method of the first aspect above, and the light control device includes a processor, which is used to execute program code so that the light control device executes to implement a networking protection method for the network system provided by the second aspect or any optional method of the second aspect above.

[0053] In a sixth aspect, a computer-readable storage medium is provided, in which at least one program code is stored. The program code is read by a processor to enable the optical control device provided in the fifth aspect to execute a network protection method for a network system provided in the second aspect or any optional method of the second aspect.

[0054] In the seventh aspect, a computer program product or a computer program is provided, which includes a program code, and the program code is stored in a computer-readable storage medium. The processor of the light control device provided in the fifth aspect reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the light control device performs the networking protection method of the network system provided in the second aspect or any optional method of the second aspect.

[0055] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a POL architecture diagram based on PON technology provided by related technologies;

[0057] Figure 2 is a state structure diagram of an optical switch unit provided in an embodiment of the present application;

[0058] Figure 3 is a schematic diagram of a network system provided in an embodiment of the present application;

[0059] Figure 4 is a schematic diagram of another network system provided in an embodiment of the present application;

[0060] Figure 5 is a schematic diagram of another network system provided in an embodiment of the present application;

[0061] Figure 6 is a schematic diagram of another network system provided in an embodiment of the present application;

[0062] Figure 7 It is a flow chart of a network protection method of a network system provided by an embodiment of the present application;

[0063] Figure 8 This is a fault scenario diagram for a unidirectional ring in a network system provided by an embodiment of the present application;

[0064] Fig. 9 This is another fault scenario diagram in a unidirectional ring situation in a network system provided by an embodiment of the present application;

[0065] Fig.10 is a flow chart of another network protection method for a network system provided in an embodiment of the present application;

[0066] Fig.11 This is a fault scenario diagram for a bidirectional ring in a network system provided by an embodiment of the present application;

[0067] Fig.12 This is a fault scenario diagram for a bidirectional ring in a network system provided by an embodiment of the present application;

[0068] Fig.13 This is a fault scenario diagram for a bidirectional ring in a network system provided by an embodiment of the present application;

[0069] Fig.14 The embodiment of the present application provides a networking protection device for a network system;

[0070] Fig.15 It is a structural schematic diagram of an optical control device of a network system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] To facilitate understanding of the implementation methods of the present application, some nouns involved in the present application are explained as follows.

[0072] PON: A typical passive optical network, PON uses fiber optic technology to transmit data from a single source to multiple endpoints. "Passive" refers to the use of fiber optic cables connected to unpowered splitters to transmit data from the service provider network to multiple customers. Strictly speaking, only the splitter is passive, as the source and receiving ends of the network still require power to operate.

[0073] POL: As an emerging broadband access fiber optic technology covering the last mile, it does not require node equipment at the optical branching point, and only needs to install a simple optical splitter. Therefore, it has the advantages of saving optical cable resources, sharing bandwidth resources, saving equipment room investment, high equipment security, fast network construction speed, and low comprehensive network construction cost.

[0074] OLT: Optical path termination point. OLT provides an interface between the network side and the local switch, and connects one or more optical distribution networks (ODN) to communicate with the ONU on the user side.

[0075] ODN: A network system that includes an optical line terminal, multiple optical network units, two optical networks, and a bandwidth controller. Among them, one of the two optical networks uses multiple optical network units to connect the optical line terminal, and the bandwidth controller divides the optical network units between the two optical networks, allocates a predetermined transmission bandwidth to each optical network unit, and accepts changes in transmission bandwidth.

[0076] ONU: It is a form of access node that uses optical cables to convert the transmitted optical signals into electrical signals and transmits them to each customer through coaxial cables or twisted pair copper cables. Optical network terminal (ONT) is also a type of ONU.

[0077] TDM: It is a digital multiplexing technology. TDM divides the sampling period of a channel into several time slots. The sampling values ​​of multiple signals are encoded in a certain order and occupy a certain time slot to form a multiplexed digital signal, which is transmitted independently on this channel.

[0078] Ethernet ring network: a ring topology consisting of multiple Ethernet nodes.

[0079] Ethernet ring protection switching (ERPS) is a fast ring protection protocol for Ethernet ring networks. It is a link layer-based ring protection protocol designed to provide high reliability and fast recovery capabilities. It is a link layer technology for Ethernet ring networks with high reliability and stability. ERPS is a protocol for Ethernet link layer loop breaking. When the Ethernet ring network is complete, it can prevent broadcast storms caused by data loops. When a link failure occurs in the Ethernet ring network, it can quickly restore the communication path between nodes on the ring network, and has a high convergence speed. ERPS takes the ERPS ring as the basic unit. The ERPS ring is composed of a group of interconnected Layer 2 switching devices configured with the same control virtual LAN (VLAN). The Layer 2 switching devices added to the ERPS ring are called nodes. Each node cannot have more than two ports added to the same ERPS ring. The port roles specified in the ERPS protocol mainly include three types: ring protection link owner (RPL owner) port, RPL neighbor port, and ordinary port.

[0080] RPL owner port: An ERPS ring has only one RPL owner port, which is determined by user configuration. By blocking the RPL owner port to forward user traffic, loops in the ERPS ring are prevented. When the device where the RPL owner port is located receives a fault message and learns that other nodes or links on the ERPS ring are faulty, it automatically opens the RPL owner port, which resumes receiving and sending traffic to ensure that traffic is not interrupted. The link where the RPL owner port is located is the RPL.

[0081] RPL neighbor port: refers to the port directly connected to the RPL owner port. Under normal circumstances, both the RPLowner port and the RPL neighbor port are blocked to prevent loops. When an ERPS ring fails, both the RPLowner port and the RPL neighbor port are opened. The introduction of the RPL neighbor port role can reduce the number of times the device where the RPLneighbour port is located refreshes the forwarding database (FDB) table entries, where FDB is the media access control address (MAC) address table.

[0082] Ordinary port: In an ERPS ring, all ports except the RPL owner port and the RPL neighbor port are ordinary ports. Ordinary ports are responsible for monitoring the link status of the ERPS protocol to which they are directly connected, and promptly notifying other ports of link status changes.

[0083] Optical switch array: an array consisting of multiple optical switch units integrated together.

[0084] Optical switch unit: Figure 2 Taking the optical switch unit shown as an example, the optical switch unit includes two light inlets and two light outlets. The two light inlets are located on one side of the optical switch unit, and the two light outlets are located on the other side (such as the opposite side) of the optical switch unit. For ease of description, the two light inlets are respectively referred to as the first light inlet and the second light inlet, and the light outlet corresponding to the first light inlet is referred to as the first light outlet, and the light outlet corresponding to the second light inlet is referred to as the second light outlet. Figure 2 As shown, two light input ports are arranged vertically on one side of the optical switch unit, and two light output ports are arranged vertically on the other side of the optical switch unit. The light input port on the upper layer and the light output port on the upper layer are referred to as the first light input port and the first light output port, respectively, and the light input port on the lower layer and the light output port on the lower layer are referred to as the second light input port and the second light output port, respectively. In other embodiments, the light input port on the upper layer and the light output port on the upper layer are referred to as the second light input port and the second light output port, respectively, and the light input port on the lower layer and the light output port on the lower layer are referred to as the first light input port and the first light output port, respectively. There are two working states of the optical switch unit, namely the cross-connection state and the direct connection state, as shown in FIG. Figure 2 As shown, the cross-connected state means that the optical signal received by the first optical input port is output through the second optical output port, and the optical signal received by the second optical input port is output through the first optical output port. It can also be understood that in the cross-connected state, the second optical input port of the optical switch unit is connected to the first optical output port, and the first optical input port is connected to the second optical output port. Figure 2 As shown, the direct connection state means that the optical signal received by the first optical input port can be output by the first optical output port, and the optical signal received by the second optical input port can be output by the second optical output port. It can be understood that in the direct connection state, the first optical input port and the first optical output port of the optical switch unit are connected, and the second optical input port and the second optical output port are connected. In the embodiment of the present application, the cross-connection state is also called the first state, and the direct connection state is also called the second state. The optical switch unit can be a 2*2 optical switch, or it can be composed of two 1*1 optical switches. Here, the embodiment of the present application does not limit the implementation method of the optical switch unit.

[0085] Fiber ring: A ring topology that uses optical fiber to connect Ethernet nodes.

[0086] Bidirectional ring: A ring network topology in which nodes are connected using two unidirectional optical fibers / network cables, allowing the nodes to communicate with each other.

[0087] One-way ring: Nodes are connected by a one-way optical fiber / network cable to form a ring network topology. Nodes can only communicate in one direction.

[0088] Optical processor: It is an optical module used by network devices to transmit and receive optical signals. The optical processor includes a transmit (Tx) port and a receive (Rx) port. The Tx port and the Rx port are used to send and receive optical signals, respectively. The optical processor also has a photoelectric conversion function. For example, the optical processor can convert the received optical signal into an electrical signal and send it to the network device. The network device parses the message carried by the electrical signal. The optical processor can also receive the electrical signal carrying the message from the network device and convert the received electrical signal into an optical signal for output. As an optical module of a network device, the optical processor can be integrated into the network device or plugged into the network device. The embodiment of the present application does not limit the connection method between the optical processor and the network device. In the embodiment of the present application, the optical network device has at least one of a first optical processor, a second optical processor and a third optical processor. In order to distinguish the sending port and the receiving port of the three optical processors, such as Figure 3 As shown, the receiving ports of the first optical processor, the second optical processor and the third optical processor are respectively referred to as the first receiving port (Rx_1), the second receiving port (Rx_2) and the third receiving port (Rx_3), and the transmitting ports of the first optical processor, the second optical processor and the third optical processor are respectively referred to as the first transmitting port (Tx_1), the second transmitting port (Tx_2) and the third transmitting port (Tx_3).

[0089] In order to facilitate the understanding of the technical solution provided by the present application, the implementation scheme of the present application will be further described in detail below with reference to the accompanying drawings.

[0090] Figure 3 is a schematic diagram of a network system provided in an embodiment of the present application, see Figure 3 The network system 300 includes a first network device 301, a second network device 302, a light control device 303, and N third network devices 304, where N is an integer greater than 1. Any of the first network device 301, the second network device 302, and the third network device 304 is a switch, a router, or other types of network devices, and the embodiment of the present application does not limit the device type of the network device.

[0091] The first network device 301 and the second network device 302 are upper-layer network devices of the optical control device 303. For example, the first network device 301 and the second network device 302 are in the same network layer. The first network device 301 and the second network device 302 are used to replace the convergence layer in the traditional three-layer architecture, such as Figure 1 As shown, the first network device 301 and the second network device 302 are connected to the optical processor of the core layer switch through their respective third optical processors, so that the first network device 301 and the second network device 302 can interact with the core layer switch. N third network devices 304 are at the same network layer, for example, N third network devices 304 are used to replace the access layer switch in the traditional three-layer architecture.

[0092] The first network device 301 is used to send a downlink message to the third network device 304 through the optical control device 303, where the downlink message refers to data sent to the third network device 304. Figure 3 As shown, the core layer switch receives an optical signal from the Rx_3 port of the third optical processor of the first network device 301 through the Tx_1 port of its own first optical processor, and the third optical processor of the first network device 301 parses the received optical signal and sends the parsed data to the first network device 301. If the parsed data is a downlink message, the first network device 301 sends the downlink message to the local first optical processor, and the local first optical processor performs electrical-optical conversion on the downlink message to obtain a downlink optical signal. The local first optical processor sends the downlink optical signal to the optical control device 303 through the Tx_1 port, and the optical control device 303 transmits the downlink optical signal to the third network device 304. In addition, if the first optical processor of the first network device 301 receives an uplink optical signal from the optical control device 303 through the Rx_1 port, the first optical processor performs photoelectric conversion on the uplink optical signal to obtain an uplink message, and sends the uplink message to the first network device 301. The first network device 301 sends it to the local third optical processor, which performs electrical-optical conversion on the uplink message to restore the uplink optical signal and sends the uplink optical signal to the core layer switch through the Tx_3 port. The uplink message is the data sent by the third network device 304 to the first network device 301 or the core layer switch, and the uplink optical signal is the optical signal carrying the uplink message, that is, the optical signal sent by the third network device 304 to the first network device 301 or the core layer switch.

[0093] The second network device 302 is a backup device of the first network device 301 and has the functions of the first network device 301. In addition, the first network device 301 is responsible for sending downlink optical signals to N third network devices 304 and collecting uplink optical signals sent by N third network devices 304. Figure 1As shown, the first network device 304 is also called a master node, the second network device 302 is also called a backup master node, and each third network device 304 is also called a slave node.

[0094] The optical control device 303 includes an optical switch array, which includes (N+2) first optical switch units. For example, N=3. Figure 1 The optical switch array in the embodiment includes first optical switch units 31, 33, 35, 37 and 39. The (N+2) first optical switch units are respectively connected to the first network device 301, the second network device 302 and the N third network devices 304. For the convenience of description, the first optical switch unit connected to the first network device 301 is called the first main switch unit, the first optical switch unit connected to the second network device 302 is called the first backup switch unit, and the first optical switch unit connected to the third network device 304 is called the first slave switch unit. For example, Figure 3 The first optical switch units 31 and 39 are respectively the first master switch unit and the first backup switch unit, and the first optical switch units 33, 35 and 37 are all first slave switch units.

[0095] (N+2) first optical switch units are connected to form a first ring network. For example, the ring topology formed by connecting (N+2) first optical switch units end to end is the first ring network, where end to end connection means that an optical outlet of any optical switch unit in the ring topology is connected to an optical input of the previous optical switch unit. Exemplarily, the (N+2) first switch units are connected to form a first ring network by any of the following connection modes 1 and 2. In order to distinguish the first ring networks formed by these two connection modes, the first ring network formed by connection mode 1 is recorded as R11, and the first ring network formed by connection mode 2 is recorded as R12.

[0096] Connection mode 1: The first light output port of each first optical switch unit is connected to the first light input port of the previous first optical switch unit to form a first ring network R11.

[0097] The “front” in this application refers to the direction of light transmission in the ring network formed by the optical switch unit, for example, Figure 3 The first optical switch unit 39 in the first ring network outputs an optical signal to the first optical switch unit 37, and the first optical switch unit 37 is the first optical switch unit before the first optical switch unit 39 in the first ring network.

[0098] Still Figure 3For example, assuming that the upper light input port, the upper light output port, the lower light input port and the lower light output port of the first optical switch unit are respectively: the first light input port, the first light output port, the second light input port and the second light output port, the upper light output port of the first optical switch unit 39 is connected to the upper light input port of the first optical switch unit 37, the upper light output port of the first optical switch unit 37 is connected to the upper light input port of the first optical switch unit 35, the upper light output port of the first optical switch unit 35 is connected to the upper light input port of the first optical switch unit 33, the upper light output port of the first optical switch unit 33 is connected to the upper light input port of the first optical switch unit 31, and the upper light output port of the first optical switch unit 31 is connected to the upper light input port of the first optical switch unit 39, so that the first optical switch units 31, 33, 35, 37 and 39 are connected end to end to form a first ring network R11.

[0099] When the first ring network R11 is formed according to connection mode 1, the second optical input port and the second optical output port of each first optical switch unit are connected to the first optical processor of the first network device 301, the second network device 302 or the third network device 304, so that (N+2) first optical switch units are respectively connected to the first network device 301, the second network device 302 and N third network devices 304. Figure 3 As shown, the lower optical input port and the lower optical output port of any first switch unit are respectively connected to the Tx_1 port and the Rx_1 port of the first optical processor of the same network device (the first network device 301, the second network device 302 or the third network device 304).

[0100] In connection mode 1, for any first optical switch unit in the first ring network R11, when the first optical switch unit is in the first state (i.e., cross-connection state), the network device connected to the first optical switch unit is connected (i.e., joined) to the first ring network R11, and the network device is in the connected state. When the first optical switch unit is in the second state (i.e., direct connection state), the network device connected to the first optical switch unit is not connected to the first ring network R11, and the network device is in the bypass state relative to the first ring network R11. Figure 3 For example, the Tx_1 port of the master node is connected to the lower optical input port of the first optical switch unit 39. When the first optical switch unit 39 is in the first state, the lower optical input port of the first optical switch unit 39 is connected to the upper optical output port of the first optical switch unit 39. Since the lower optical input port of the first optical switch unit 39 is located in the first ring network R11, the master node is connected to the first ring network R11. At this time, the master node can send a downlink optical signal to any third network device 304 through the first ring network R11. Similarly, Figure 3The first slave switch units connected to each slave node in the first state are all in the first state, and each slave node is connected to the first ring network R11. The Tx_1 port and the Rx_1 port of the standby master node are respectively connected to the lower optical input port and the lower optical output port of the first optical switch unit 31. When the first optical switch unit 31 is in the second state, the lower optical input port and the lower optical output port of the first optical switch unit 31 are connected, so that the standby master node and the first optical switch unit 31 form a closed loop. At this time, the standby master node is in a self-loop state, and the standby master node is not connected to the first ring network R11. For the first ring network R11, the standby master node is in a bypass state.

[0101] The first ring network is used to transmit a first downlink optical signal to at least one third network device 304, and to transmit a first uplink optical signal to the first network device 301 or the second network device 302, wherein the first downlink optical signal is an optical signal transmitted by the first network device 301 or the second network device 302 to the first ring network, and the first uplink optical signal is an optical signal transmitted by the third network device 304 connected to the first ring network to the first ring network.

[0102] When any one of the first network device 301 or the second network device 302 is connected to the first ring network, the any one of the network devices may send a first downlink optical signal to one or more third network devices 304 through the first ring network.

[0103] Next, combine Figure 3 The transmission process of the first downlink optical signal sent by the master node in the first ring network R11 is introduced as follows:

[0104] The first optical processor of the master node sends the first downstream optical signal through the Tx_1 port, and the first downstream optical signal is transmitted to the Rx_1 port of the slave node 3 through the Tx_1 port of the master node, the lower optical input port of the first optical switch unit 39, the upper optical output port of the first optical switch unit 39, the upper optical input port of the first optical switch unit 37, and the lower optical output port of the first optical switch unit 37 in sequence. After receiving the first downstream optical signal at the Rx_1 port of the slave node 3, the slave node 3 determines whether it is the destination network device of the first downstream optical signal. If the slave node 3 is the destination network device, the slave node 3 performs subsequent processing on the downstream message (referred to as the first downstream message) in the first downstream optical signal, and the transmission of the first downstream optical signal in the first ring network R11 ends. If slave node 3 is not the destination network device, slave node 3 sends the first downstream optical signal through the Tx_1 port of slave node 3, and the first downstream optical signal is transmitted to the Rx_1 port of slave node 2 through the Tx_1 port of slave node 3, the lower optical input port of the first optical switch unit 37, the upper optical output port of the first optical switch unit 37, and the upper optical input port of the first optical switch unit 35 in sequence. After receiving the first downstream optical signal at the Rx_1 port of slave node 2, slave node 2 determines whether it is the destination network device of the first downstream optical signal. If slave node 2 is the destination network device, slave node 2 performs subsequent processing on the first downstream message in the first downstream optical signal, and the first downstream optical signal is transmitted in the first ring network R11. If slave node 2 is not the destination network device, slave node 2 sends the first downstream optical signal through the Tx_1 port of slave node 2, so that the first downstream optical signal continues to be transmitted in the first ring network R11, and so on, until the first downstream optical signal is transmitted in the first ring network R11.

[0105] When the standby master node is in the first state, the standby master node can also send a first downstream optical signal to one or more third network devices 304 through the first ring network R11. This process can refer to the process of the master node sending the first downstream optical signal through the first ring network R11, and will not be repeated here.

[0106] Recombination Figure 3 Taking the first uplink optical signal sent from the slave node to the master node or the backup master node through the first ring network R11 as an example, the transmission process of the first uplink optical signal in the first ring network R11 is introduced as follows:

[0107] Taking slave node 2 as an example, the first optical processor of slave node 2 sends the first uplink optical signal through the Tx_1 port, and the first uplink optical signal is transmitted to the Rx_1 port of slave node 1 through the Tx_1 port of slave node 2, the lower optical input port of the first optical switch unit 35, the upper optical output port of the first optical switch unit 35, the upper optical input port of the first optical switch unit 33, and the lower optical output port of the first optical switch unit 33 in sequence. After receiving the first uplink optical signal at the Rx_1 port of slave node 1, slave node 1 determines whether it is the destination network device of the first uplink optical signal. If slave node 1 is the destination network device, slave node 1 performs subsequent processing on the uplink message (called the first uplink message) in the first uplink optical signal, and the transmission of the first uplink optical signal in the first ring network R11 ends. If slave node 1 is not the destination network device, slave node 1 sends the first uplink optical signal through the Tx_1 port of slave node 1, and the first uplink optical signal passes through the Tx_1 port of slave node 1, the lower optical input port of the first optical switch unit 33, and the upper optical output port of the first optical switch unit 33 in sequence, and is transmitted to the upper optical input port of the first optical switch unit 31. If the first optical switch unit 31 is in the second state, the first uplink optical signal passes through the upper optical input port of the first optical switch unit 31, the upper optical output port of the first optical switch unit 31, the upper optical input port of the first optical switch unit 39, and the lower optical output port of the first optical switch unit 39 in sequence, and is transmitted to the Rx_1 port of the master node, thereby transmitting the first uplink optical signal to the master node. If the first optical switch unit 31 is in the first state, the first uplink optical signal is transmitted to the Rx_1 port of the backup master node through the upper optical input port and the lower optical output port of the first optical switch unit 31 in sequence, thereby transmitting the first uplink optical signal to the backup master node.

[0108] Among them, for any network device among the first network device 301, the second network device 302 and the third network device 304, when the Rx_1 port of any optical signal processor of the network device (such as the first optical signal processor, the second optical signal processor or the third optical signal processor) receives any optical signal (uplink optical signal or downlink optical signal), the optical signal processor performs photoelectric conversion on the optical signal to obtain a message carried by the optical signal (such as an uplink message or a downlink message), and sends the message to the network device to which it belongs. The network device queries whether the destination MAC address in the message is its own MAC address. If it is its own MAC address, the network device is the destination network device of the optical signal (or the message) and performs subsequent processing on the message. If it is not its own MAC address, the network device returns the message to the optical signal processor by the original route, and the optical signal processor performs electrical-optical conversion on the message to restore the optical signal, and sends the optical signal through the local Tx port. Alternatively, the network device does not return the message to the optical signal processor, but sends the message to other optical signal processors of the network device, which perform electrical-optical conversion on the message to restore the optical signal and send the optical signal through the local Tx port.

[0109] Combine the following Figure 4 The network system 3A shown introduces the connection mode 2, wherein the difference between the network system 3A and the network system 300 lies in the form of the first ring network and the connection mode between the second network device 302 and the first backup switch unit, and the other contents are similar.

[0110] Connection mode 2: the second light output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first light input port of the previous first optical switch unit, and the first light output port of each first optical switch unit except the first backup switch unit is connected to the first light input port of the previous first optical switch unit to form a first ring network.

[0111] by Figure 4For example, assuming that the upper light input port, the upper light output port, the lower light input port and the lower light output port of the first optical switch unit are respectively: the first light input port, the first light output port, the second light input port and the second light output port, the upper light output port of the first optical switch unit 39 is connected to the upper light input port of the first optical switch unit 37, the upper light output port of the first optical switch unit 37 is connected to the upper light input port of the first optical switch unit 35, the upper light output port of the first optical switch unit 35 is connected to the upper light input port of the first optical switch unit 33, the upper light output port of the first optical switch unit 33 is connected to the upper light input port of the first optical switch unit 31, and the lower light output port of the first optical switch unit 31 is connected to the upper light input port of the first optical switch unit 39, so that the first optical switch units 31, 33, 35, 37 and 39 are connected end to end to form a first ring network R12.

[0112] When the first ring network R12 is formed according to connection mode 2, the second optical input port and the first optical output port of the first standby switch unit are connected to the first optical processor of the second network device 302, and the second optical input port and the second optical output port of each first optical switch unit except the first standby switch unit are connected to the first optical processor of the first network device 301 or the third network device 304, so that (N+2) first optical switch units are respectively connected to the first network device 301, the second network device 302 and N third network devices 304. Figure 4 As shown, the Tx_1 port and Rx_1 port of each slave node are respectively connected to the lower optical input port and lower optical output port of a first slave switch unit (33, 35 or 37), the Tx_1 port and Rx_1 port of the master node are connected to the lower optical input port and lower optical output port of the first master switch unit 39, and the Tx_1 port and Rx_1 port of the backup master node are connected to the lower optical input port and upper optical output port of the first backup switch unit 31.

[0113] In connection mode 2, similar to the first ring network R11, for the first main switch unit in the first ring network R12 and any first switch unit in each first slave switch unit, when the first optical switch unit is in the first state, the network device connected to the first optical switch unit is connected to the first ring network R12 and is in the connected state. At this time, the network device connected to the first optical switch unit can receive and receive optical signals in the first ring network R12. When the first optical switch unit is in the second state, the network device connected to the first optical switch unit is not connected to the first ring network R12. Relative to the first ring network R12 being in the bypass state, the first optical switch unit forms a loop with the network device. At this time, the network device is in the self-loop state, and the first optical switch unit cannot transmit optical signals to the first ring network R12. Since the optical outlet of the first backup switch unit connected to the second network device 302 has changed, it is different from connection mode 1 in that, Figure 4As shown, when the first backup switch unit 31 in connection mode 2 is in the first state, the lower optical input port of the first backup switch unit 31 is connected to the upper optical input port. Since the lower optical input port and the upper optical input port of the first backup switch unit 31 are respectively connected to the Tx_1 port and the Rx_1 port of the second network device 302, the first backup switch unit 31 and the second network device 302 form a closed loop. The first backup switch unit 31 is in a self-loop state and is in a bypass state relative to the first ring network R12. At this time, the first optical switch unit cannot transmit optical signals to the first ring network R12. When the first backup switch unit 31 in connection mode 2 is in the second state, the Tx_1 port of the second network device 302 is connected to the lower optical output port of the first backup switch unit 31 through the lower optical input port of the first backup switch unit 31, so that the second network device 302 is connected to the first ring network R12 and is in an access state. At this time, the second network device 302 can send and receive optical signals to the first ring network R12.

[0114] The transmission mode of the first uplink optical signal in the first ring network R12 is similar to that of the first ring network R11, except that, in the first ring network R12, when the first standby switch unit is in the first state, the first uplink optical signal sequentially passes through the first optical input port and the second optical output port of the first standby switch unit, and is transmitted to the first optical input port of the previous first optical switch unit (such as the first main switch unit). In the first ring network R12, when the first standby switch unit is in the second state, the first uplink optical signal sequentially passes through the first optical input port and the first optical output port of the first standby switch unit, and is transmitted to the Rx_1 port of the second network device.

[0115] The transmission mode of the first downlink optical signal in the first ring network R12 is the same as that of the first ring network R11, except that, in the first ring network R12, when the first standby switch unit is in the first state, if the first downlink optical signal sent by the first network device 301 is transmitted to the first optical input port of the first standby switch unit, the first downlink optical signal passes through the first optical input port and the second optical output port of the first standby switch unit in sequence, and is transmitted to the first optical input port of the previous first optical switch unit of the first standby switch unit. In the first ring network R12, when the first standby switch unit is in the second state, the first downlink optical signal sent by the Tx_1 port of the second network device 302 passes through the second optical input port and the second optical output port of the first standby switch unit in sequence, and is transmitted to the first optical input port of the previous first optical switch unit of the first standby switch unit.

[0116] The first processor of the first network device 301 is connected to the first main switch unit through an optical fiber, the first optical processor of the second network device 302 is connected to the first slave switch unit through an optical fiber, the first optical processor of the third network device 304 is connected to the first slave switch unit through an optical fiber, and the first optical switch units in the first ring network are connected through optical fibers so that the optical signal can be Figure 3 or Figure 4 In the network system shown in the figure, the first ring network is a fiber optic ring. Since the optical signal in the first ring network has only one transmission direction, the first ring network is also a unidirectional ring.

[0117] It should be understood that the above Figure 3 and Figure 4 The first main switch unit and the first backup switch unit are adjacent to each other in the first ring network. In other embodiments, the first main switch unit and the first backup switch unit may not be adjacent to each other in the first ring network. Figure 3 The first switch unit 37 is connected to the first network device 302 as the first main switch unit, and the first optical switch unit 39 is connected to the slave node 3 as the first slave switch unit. Here, the embodiment of the present application does not limit the positional relationship between the first optical switch unit, the first backup switch unit and the first slave switch unit in the first ring network.

[0118] The above-mentioned network system 300 or network system 3A, by networking the optical control device with the network device, provides a ring network for the network device through the optical switch array in the optical control device, so that the optical signals between the network devices can be transmitted through the ring network, without the need to use 1:N passive splitters and burst devices and other devices, thereby reducing the networking cost of the network system.

[0119] The optical switch array described above is described by taking the first optical switch unit as an example. In another possible implementation, the optical switch array further includes a second optical switch unit, for example Figure 5 In the network system 3B shown, compared with the network systems 300 and 3A, the optical switch array in the optical control device 303 in the network system 3B further includes (N+2) second optical switch units. Taking N=3 as an example, Figure 5 The optical switch array in the embodiment further includes second optical switch units 32, 34, 36, 38 and 310. The (N+2) second optical switch units are respectively connected to the first network device 301, the second network device 302 and the N third network devices 304. For ease of description, the second optical switch unit connected to the first network device 301 is referred to as a second main switch unit, the second optical switch unit connected to the second network device 302 is referred to as a second backup switch unit, and the second optical switch unit connected to the third network device 304 is referred to as a second slave switch unit. For example, Figure 5The second optical switch units 32 and 310 are respectively the second master switch unit and the second backup switch unit, and the second optical switch units 34, 36 and 38 are all second slave switch units.

[0120] The (N+2) second optical switch units are connected to form a second ring network. For example, the (N+2) second optical switch units are connected end to end to form a ring topology as the second ring network. Exemplarily, the (N+2) second switch units are connected to form a second ring network by any of the following connection modes 3 and 4. In order to distinguish the second ring networks formed by these two connection modes, the second ring network formed by the connection mode 3 is recorded as R21, and the second ring network formed by the connection mode 4 is recorded as R22.

[0121] Connection mode 3: The first light output port of each second optical switch unit is connected to the first light input port of the previous second optical switch unit to form a second ring network R11.

[0122] Still Figure 5 For example, assuming N=3, the three third network devices 304 are slave nodes 1-3 respectively, the first network device 301 is the master node, the second network device 302 is the backup master node, and the upper optical input port, upper optical output port, lower optical input port and lower optical output port of each second optical switch unit are respectively: the respective first optical input port, first optical output port, second optical input port and second optical output port. The upper light outlet of the second optical switch unit 310 is connected to the upper light inlet of the second optical switch unit 32, the upper light outlet of the second optical switch unit 32 is connected to the upper light inlet of the second optical switch unit 34, the upper light outlet of the second optical switch unit 34 is connected to the upper light inlet of the second optical switch unit 36, the upper light outlet of the second optical switch unit 36 ​​is connected to the upper light inlet of the second optical switch unit 38, and the upper light outlet of the second optical switch unit 38 is connected to the upper light inlet of the second optical switch unit 310, so as to realize the end-to-end connection of the second optical switch units 32, 34, 36, 38 and 310 to form a second ring network R21.

[0123] When the second ring network R21 is formed according to connection mode 3, (N+2) first optical switch units can also be connected to form a second ring network R11 according to connection mode 1. Figure 5As shown, it is assumed that the upper light input port, upper light output port, lower light input port and lower light output port of each first optical switch unit are respectively: the respective first light input port, first light output port, second light input port and second light output port, the upper light output port of the first optical switch unit 39 is connected to the upper light input port of the first optical switch unit 37, the upper light output port of the first optical switch unit 37 is connected to the upper light input port of the first optical switch unit 35, the upper light output port of the first optical switch unit 35 is connected to the upper light input port of the first optical switch unit 33, the upper light output port of the first optical switch unit 33 is connected to the upper light input port of the first optical switch unit 31, and the upper light output port of the first optical switch unit 31 is connected to the upper light input port of the first optical switch unit 39, so as to realize the end-to-end connection of the first optical switch units 31, 33, 35, 37 and 39 to form the first ring network R11.

[0124] Compared with network systems 300 and 3A, the first network device 101, the second network device 102 and the third network device 103 in the network system 3B also include a second optical processor, the second optical output port and the second optical input port of each optical switch unit in the optical switch array are connected to different optical processors of the same network device, the first optical processor of each network device in the first network device 101, the second network device 102 and the third network device 304 is connected to two optical switch units, and the first optical processor of each network device is connected to two optical switch units.

[0125] Exemplarily, the second optical input port of each first optical switch unit is connected to the first optical processor of the first network device 301, the second network device 302 or the third network device 304, and the second optical output port of each first optical switch unit is connected to the second optical processor of the first network device 301, the second network device 302 or the third network device 304. The second optical input port of each second optical switch unit is connected to the second optical processor of the first network device 301, the second network device 302 or the third network device 304, and the second optical output port of each second optical switch unit is connected to the first optical processor of the first network device 301, the second network device 302 or the third network device 304.

[0126] by Figure 5For example, the Tx_1 port and Rx_1 port of the first optical processor of the master node are respectively connected to the lower optical input port of the first optical switch unit 39 and the lower optical output port of the second optical switch unit 310, and the Tx_2 port and Rx_2 port of the second optical processor of the master node are respectively connected to the lower optical input port of the second optical switch unit 310 and the lower optical output port of the first optical switch unit 39, so as to connect the master node to the first optical switch unit 39 and the second optical switch unit 310, so that the first optical switch unit 39 and the second optical switch unit 310 become the first main switch unit and the second main switch unit, respectively. The Tx_1 port and Rx_1 port of the first optical processor of the standby master node are connected to the lower optical input port of the first optical switch unit 31 and the lower optical output port of the second optical switch unit 32, respectively, and the Tx_2 port and Rx_2 port of the second optical processor of the standby master node are connected to the lower optical input port of the second optical switch unit 32 and the lower optical output port of the first optical switch unit 31, respectively, so as to connect the standby master node to the first optical switch unit 31 and the second optical switch unit 32, so that the first optical switch unit 31 and the second optical switch unit 32 become the first standby switch unit and the second standby switch unit, respectively. For each third network device 304, taking node 1 as an example, the Tx_1 port and Rx_1 port of the first optical processor of node 1 are respectively connected to the lower optical input port of the first optical switch unit 33 and the lower optical output port of the second optical switch unit 34, and the Tx_2 port and Rx_2 port of the second optical processor of node 1 are respectively connected to the lower optical input port of the second optical switch unit 34 and the lower optical output port of the first optical switch unit 33, so as to connect node 1 to the first optical switch unit 33 and the second optical switch unit 34, so that the first optical switch unit 33 and the second optical switch unit 34 become the first slave switch unit and the second slave switch unit, respectively.

[0127] Next, combine Figure 5 The manner in which the first optical switch unit in the first ring network R11 controls whether the network device is connected to the first ring network R11 is introduced as follows.

[0128] For the first optical switch unit 39 connected to the master node in the first ring network R11, if the first optical switch unit 39 is in the first state, the lower optical input port and the upper optical output port of the optical switch unit 39 are connected to connect the Tx_1 port of the master node to the first ring network R11, and the upper optical input port and the lower optical output port of the first optical switch unit 39 are connected to connect the Rx_2 port of the master node to the first ring network R11, so that the master node is connected to the first ring network R11. For the first ring network R11, the master node is in the access state at this time. If the first optical switch unit 39 is in the second state, the lower optical input port and the lower optical output port of the first optical switch unit 39 are connected to connect the Tx_1 port of the master node to the Rx_2 port of the master node, and the master node forms a ring network through the Tx_1 port, the Rx_2 port, and the lower optical input port and the lower optical output port of the first optical switch unit 39. At this time, the master node is in the self-loop state, and for the first ring network R11, the master node is in the bypass state.

[0129] For the first optical switch unit 31 connected to the backup node in the first ring network R11, if the first optical switch unit 31 is in the first state, the lower optical input port and the upper optical output port of the first optical switch unit 31 are connected to connect the Tx_1 port of the backup master node to the first ring network R11, and the upper optical input port and the lower optical output port of the first optical switch unit 31 are connected to connect the Rx_2 port of the backup master node to the first ring network R11, thereby connecting the backup master node to the first ring network R11. For the first ring network R11, the backup master node is in the connected state at this time. If the first optical switch unit 31 is in the second state, the lower optical input port and the lower optical output port of the first optical switch unit 31 are connected to connect the Tx_1 port of the standby master node to the Rx_2 port of the standby master node, and the standby master node forms a ring network through the Tx_1 port, the Rx_2 port and the lower optical input port and the lower optical output port of the first optical switch unit 31. At this time, the standby master node is in a self-loop state, and for the first ring network R11, the standby master node is in a bypass state.

[0130] For each first optical switch unit connected to the slave node in the first ring network R11, taking the first optical switch unit 33 as an example, if the first optical switch unit 33 is in the first state, the lower optical input port and the upper optical output port of the first optical switch unit 33 are connected to connect the Tx_1 port of the slave node 1 to the first ring network R11, and the upper optical input port and the lower optical output port of the first optical switch unit 33 are connected to connect the Rx_2 port of the slave node 1 to the first ring network R11, thereby connecting the slave node 1 to the first ring network R11. For the first ring network R11, the slave node 1 is in the connected state at this time. If the first optical switch unit 33 is in the second state, the lower optical input port and the lower optical output port of the first optical switch unit 33 are connected to connect the Tx_1 port of slave node 1 to the Rx_2 port of slave node 1, and slave node 1 forms a ring network through the Tx_1 port, Rx_2 port and the lower optical input port and the lower optical output port of the first optical switch unit 33. At this time, slave node 1 is in a self-loop state, and for the first ring network R11, slave node 1 is in a bypass state. Since the way in which each slave node is connected to the first optical switch unit is similar, whether other slave nodes are connected to the first ring network is also determined by the state of the first optical switch unit to which they are connected, and no further details are given here.

[0131] Next, combine Figure 5 The manner in which the second optical switch unit in the second ring network R21 controls whether the network device is connected to the second ring network R21 is introduced as follows.

[0132] For the second optical switch unit 310 connected to the main node in the second ring network R21, if the second optical switch unit 310 is in the first state, the lower optical input port and the upper optical output port of the second optical switch unit 310 are connected to connect the Tx_2 port of the main node to the second ring network R21, and the upper optical input port and the lower optical output port of the second optical switch unit 310 are connected to connect the Rx_1 port of the main node to the second ring network R21, thereby connecting the main node to the second ring network R21. For the second ring network R21, the main node is in the connected state at this time. If the second optical switch unit 310 is in the second state, the lower optical input port and the lower optical output port of the second optical switch unit 310 are connected to connect the Tx_2 port of the master node to the Rx_1 port of the master node. The master node forms a ring network through the Tx_2 port, the Rx_1 port and the lower optical input port and the lower optical output port of the second optical switch unit 310. At this time, the master node is in a self-loop state. At this time, for the second ring network R21, the master node is in a bypass state.

[0133] For the second optical switch unit 32 connected to the backup master node in the second ring network R21, if the second optical switch unit 32 is in the first state, the lower optical input port and the upper optical output port of the second optical switch unit 32 are connected to connect the Tx_2 port of the backup master node to the second ring network R21, and the upper optical input port and the lower optical output port of the second optical switch unit 32 are connected to connect the Rx_1 port of the backup master node to the second ring network R21, thereby connecting the backup master node to the second ring network R21. For the second ring network R21, the backup master node is in the connected state at this time. If the second optical switch unit 32 is in the second state, the lower optical input port and the lower optical output port of the second optical switch unit 32 are connected to connect the Tx_2 port of the standby master node to the Rx_1 port of the standby master node, and the standby master node forms a ring network through the Tx_2 port, the Rx_1 port and the lower optical input port and the lower optical output port of the second optical switch unit 32. At this time, the standby master node is in a self-loop state, and for the second ring network R21, the standby master node is in a bypass state.

[0134] For the second optical switch unit 32 connected to the slave node in the second ring network R21, taking the second optical switch unit 34 as an example, if the second optical switch unit 34 is in the first state, the lower optical input port and the upper optical output port of the second optical switch unit 34 are connected to connect the Tx_2 port of the slave node 1 to the second ring network R21, and the upper optical input port and the lower optical output port of the second optical switch unit 34 are connected to connect the Rx_1 port of the slave node 1 to the second ring network R21, thereby connecting the slave node 1 to the second ring network R21. For the second ring network R21, the slave node 1 is in the connected state at this time. If the second optical switch unit 34 is in the second state, the lower optical input port and the lower optical output port of the second optical switch unit 34 are connected to connect the Tx_2 port of the slave node 4 to the Rx_1 port of the slave node 1. The slave node 1 forms a ring network through the Tx_2 port, the Rx_1 port and the lower optical input port and the lower optical output port of the second optical switch unit 34. At this time, the slave node 1 is in the self-loop state. For the second ring network R21, the slave node 1 is in the bypass state. Since the way each slave node is connected to the second optical switch unit is similar, whether other slave nodes are connected to the second ring network R21 is also determined by the state of the second optical switch unit to which they are connected, which will not be repeated here.

[0135] The second ring network is used to transmit a second downlink optical signal to at least one third network device 304, and to transmit a second uplink optical signal to the first network device 301 or the second network device 302. The second uplink optical signal is an optical signal transmitted from the third network device 302 connected to the second ring network to the second ring network, and the second downlink optical signal is an optical signal transmitted from the first network device 301 or the second network device 302 to the second ring network.

[0136] When any one of the first network device 301 or the second network device 302 is connected to the first ring network, the any one of the network devices can send a first downlink optical signal to one or more third network devices 304 through the first ring network and receive a first uplink optical signal through the first ring network. When any one of the first network device 301 or the second network device 302 is connected to the second ring network, the any one of the network devices can send a second downlink optical signal to one or more third network devices 304 through the second ring network or receive a second uplink optical signal through the second ring network.

[0137] Next, combine Figure 5 , taking the first optical switch unit 31 in the first ring network R11 being in the second state and the other first optical switch units being in the first state as an example, the process of the master node sending the first downlink optical signal through the first ring network R11, taking the second optical switch unit 32 in the second ring network R21 being in the second state and the other second optical switch units being in the first state as an example, the process of the master node sending the first downlink optical signal through the second ring network R22 is described as follows:

[0138] like Figure 5 As shown, the first optical processor of the master node sends the first downlink optical signal through the Tx_1 port, and the first downlink optical signal is transmitted to the Rx_2 port of the second optical processor of the slave node 3 through the Tx_1 port of the master node, the lower optical input port of the first optical switch unit 39, the upper optical output port of the first optical switch unit 39, the upper optical input port of the first optical switch unit 37, and the lower optical output port of the first optical switch unit 37 in sequence. If the slave node 3 is the destination network device of the first downlink optical signal, the slave node 3 performs subsequent processing on the first downlink message in the first downlink optical signal. After processing, the first downstream optical signal is transmitted in the first ring network R11. If the slave node 3 is not the destination network device of the first downstream optical signal, the slave node 3 sends the first downstream optical signal through the Tx_1 port of the slave node 3. The first downstream optical signal is transmitted to the upper optical output port of the first optical switch unit 37 through the Tx_1 port of the slave node 3 in sequence, so that the first downstream optical signal continues to be transmitted in the first ring network R11, and so on, until the first downstream optical signal is transmitted in the first ring network R11.

[0139] Alternatively, the second optical processor of the master node sends a second downstream optical signal through the Tx_2 port, and the second downstream optical signal passes through the Tx_2 port of the master node, the lower optical input port of the second optical switch unit 310, the upper optical output port of the second optical switch unit 310, the upper optical input port of the second optical switch unit 32, the upper optical output port of the second optical switch unit 32, the upper optical input port of the second optical switch unit 34, and the lower optical output port of the second optical switch unit 34 in sequence, and is transmitted to the Rx_1 port of the first optical processor of the slave node 1. If the slave node 1 is the destination network device of the first downstream optical signal, the slave node 1 sends the first downstream optical signal to the first optical processor of the slave node 1. The first downstream message in the downstream optical signal is subsequently processed, and the first downstream optical signal is transmitted in the second ring network R21. If the slave node 1 is not the destination network device of the first downstream optical signal, the slave node 1 sends the first downstream optical signal through the Tx_2 port of the slave node 1. The first downstream optical signal is transmitted to the upper optical output port of the second optical switch unit 34 through the Tx_2 port of the slave node 1 and the lower optical input port of the second optical switch unit 34 in sequence, so that the first downstream optical signal continues to be transmitted in the second ring network R21, and so on, until the first downstream optical signal is transmitted in the second ring network R21.

[0140] Next, combine Figure 5 , the process of the slave node sending the first uplink optical signal to the master node through the first ring network R11, or sending the second uplink optical signal to the master node through the second ring network R21 is introduced as follows:

[0141] Taking slave node 2 as an example, slave node 2 sends a first uplink optical signal through the Tx_1 port of the first optical processor of slave node 2. The first uplink optical signal is transmitted to the Rx_2 port of the second optical processor of slave node 1 through the Tx_1 port of slave node 2, the lower optical input port of the first optical switch unit 35, the upper optical output port of the first optical switch unit 35, the upper optical input port of the first optical switch unit 33, and the lower optical output port of the first optical switch unit 33 in sequence. If slave node 1 is the destination network device of the first uplink optical signal, slave node 1 performs subsequent processing on the first uplink message in the first uplink optical signal. The transmission of the first uplink optical signal in the first ring network R11 ends. If slave node 1 is not It is the destination network device of the first uplink optical signal. The slave node 1 sends the first uplink optical signal through the Tx_1 port of the slave node 1. The first uplink optical signal passes through the Tx_1 port of the slave node 1, the lower optical input port of the first optical switch unit 33, the upper optical output port of the first optical switch unit 33, the upper optical input port of the first optical switch unit 31, the upper optical output port of the first optical switch unit 31, the upper optical input port of the first optical switch unit 39, and the lower optical input port of the first optical switch unit 39 in sequence, and is transmitted to the Rx_2 port of the second optical processor of the master node. The master node obtains the first uplink message from the first uplink optical signal. At this point, the transmission of the first uplink optical signal in the first ring network R11 is completed.

[0142] Alternatively, slave node 2 sends a second uplink optical signal through the Tx_2 port of the second optical processor of slave node 2, and the second uplink optical signal is transmitted to the Rx_1 port of the first optical processor of slave node 3 through the Tx_2 port of slave node 2, the lower optical input port of the second optical switch unit 36, the upper optical output port of the second optical switch unit 36, the upper optical input port of the second optical switch unit 38, and the lower optical output port of the second optical switch unit 38 in sequence. If slave node 3 is the destination network device of the first uplink optical signal, slave node 3 performs subsequent processing on the first uplink message in the second uplink optical signal, and the second uplink optical signal is transmitted to the second ring network R21. The transmission is completed. If slave node 3 is not the destination network device of the second uplink optical signal, slave node 3 sends the second uplink optical signal through the Tx_2 port of slave node 3. The second uplink optical signal is transmitted to the Rx_1 port of the first optical processor in sequence through the Tx_2 port of slave node 3, the lower optical input port of the second optical switch unit 38, the upper optical output port of the second optical switch unit 38, the upper optical input port of the second optical switch unit 310, and the lower optical output port of the second optical switch unit 310. The master node obtains the second uplink message from the second uplink optical signal. At this point, the transmission of the second uplink optical signal in the second ring network R21 is completed.

[0143] In another possible manner, for the second ring network R21 formed based on the connection mode 3 and the first ring network R11 formed based on the connection mode 1, the first backup switch unit and at least one first slave switch unit in the first ring network R11 are in the first state, and the first main switch unit is in the second state. At this time, the second network device 302 is connected to the first ring network R11, and the first network device 301 is in the bypass state. Then, the second network device 302 sends a first downlink optical signal to the third network device 304 through the first ring network R11. This process is the same as Figure 5 Similarly, the process in which the master node sends the first downlink optical signal through the first ring network R11 is similar. The third network device 304 connected to the first ring network R11 can also send the first uplink optical signal to the second network device 302. Figure 5 The process of sending the first uplink optical signal from the slave node 2 through the first ring network R11 is similar. In another possible manner, the second backup switch unit and at least one second slave switch unit in the second ring network R21 are in the first state, and the second main switch unit is in the second state. At this time, the second network device 304 is connected to the second ring network R21, and the first network device 301 is in the bypass state. Then the second network device 302 sends the second downlink optical signal to the third network device 304 through the second ring network R21. This process is similar to Figure 5Similarly, the process in which the master node sends the second downlink optical signal through the second ring network R21, the third network device 304 connected to the second ring network R21 can also send the second uplink optical signal to the second network device 302, and the process is the same as Figure 5 The process of sending the second uplink optical signal from the slave node through the second ring network R21 is similar.

[0144] Combine the following Figure 6 The network system 3C shown introduces the connection method 4, wherein the difference between the network system 3C and the network system 3B lies in the form of the first ring network, the form of the second ring network, and the connection method between the second network device 302 and the first backup switch unit and the second backup switch unit, and the other contents are similar.

[0145] Connection mode 4: the second light output port of the second backup switch unit among the (N+2) second optical switch units is connected to the first light input port of the previous second optical switch unit, and the first light output port of each second optical switch unit except the second backup switch unit is connected to the first light input port of the previous second optical switch unit, forming a second ring network R22.

[0146] by Figure 6 For example, assuming that the upper optical input port, the upper optical output port, the lower optical input port, and the lower optical output port of the second optical switch unit are respectively: the first optical input port, the first optical output port, the second optical input port, and the second optical output port. The upper optical output port of the second optical switch unit 32 is connected to the upper optical input port of the second optical switch unit 34, the upper optical output port of the second optical switch unit 34 is connected to the upper optical input port of the second optical switch unit 36, the upper optical output port of the second optical switch unit 36 ​​is connected to the upper optical input port of the second optical switch unit 38, the upper optical output port of the second optical switch unit 38 is connected to the upper optical input port of the second optical switch unit 310, and the upper optical output port of the second optical switch unit 310 is connected to the lower optical output port of the second optical switch unit 32, so as to realize the head-to-tail connection of the second optical switch units 32, 34, 36, 38, and 310, and form the second ring network R22.

[0147] When the second optical switch unit in the optical switch array forms the second ring network R22, the first optical input port and the second optical output port of the second standby switch unit are respectively connected to the second optical processor and the first optical processor of the second network device 302, so that the second standby switch unit is connected to the second network device 302, and the first optical input port and the second optical output port of each second optical switch unit except the second standby switch unit are respectively connected to the second optical processor and the second optical processor of the network device (the first network device 301 or the second network device 304), so that the second optical switch unit is connected to one network device. Figure 6As shown, the Tx_2 port and Rx_1 port of each slave node are respectively connected to the lower optical input port and lower optical output port of a second slave switch unit (34, 36 or 38), the Tx_2 port and Rx_1 port of the master node are connected to the lower optical input port and lower optical output port of the second master switch unit 310, and the Tx_2 port and Rx_1 port of the backup master node are connected to the upper optical input port and lower optical output port of the second backup switch unit 31.

[0148] When the second ring network R22 is formed according to connection mode 4, (N+2) first optical switch units can also be connected to form a second ring network R21 according to connection mode 2. Figure 6 As shown, it is assumed that the upper light input port, upper light output port, lower light input port and lower light output port of each first optical switch unit are respectively: the respective first light input port, first light output port, second light input port and second light output port, the upper light output port of the first optical switch unit 39 is connected to the upper light input port of the first optical switch unit 37, the upper light output port of the first optical switch unit 37 is connected to the upper light input port of the first optical switch unit 35, the upper light output port of the first optical switch unit 35 is connected to the upper light input port of the first optical switch unit 33, the upper light output port of the first optical switch unit 33 is connected to the upper light input port of the first optical switch unit 31, and the lower light output port of the first optical switch unit 31 is connected to the upper light input port of the first optical switch unit 39, so as to realize the head-to-tail connection of the first optical switch units 31, 33, 35, 37 and 39 to form the first ring network R12.

[0149] When the first optical switch units in the optical switch array form the first ring network R12 and the second optical switch units form the second ring network R22, the second optical input port and the first optical output port of the first standby switch unit are respectively connected to the first optical processor and the second optical processor of the second network device 302, so that the first standby switch unit is connected to the second network device 302, and the second optical input port and the second optical output port of each first optical switch unit except the first standby switch unit are respectively connected to the first optical processor and the second optical processor of a network device (such as the first network device 301 or the third network device 304), so that the first optical switch unit is connected to a network device. Figure 6 As shown, the Tx_1 port and Rx_2 port of each slave node are respectively connected to the lower optical input port and the upper optical output port of a first slave switch unit (33, 35 or 37), the Tx_1 port and Rx_2 port of the master node are connected to the lower optical input port and the upper optical output port of the first master switch unit 39, and the Tx_1 port and Rx_2 port of the standby master node are connected to the upper optical input port and the upper optical output port of the first standby switch unit 31.

[0150] Next, combine Figure 6The manner in which the first optical switch unit in the first ring network R12 controls whether the network device is connected to the first ring network is introduced as follows.

[0151] like Figure 6 As shown, for the first optical switch unit 31 connected to the backup master node in the first ring network R12, if the first optical switch unit 31 is in the first state, the lower optical input port and the upper optical output port of the first optical switch unit 31 are connected to connect the Tx_1 port of the backup master node to the Rx_2 port of the backup master node, so that the backup master node forms a ring network through the Tx_1 port, the Rx_2 port and the lower optical input port and the upper optical output port of the first optical switch unit 31. At this time, the backup master node is in a self-loop state, and for the first ring network R12, the backup master node is in a bypass state. If the first optical switch unit 31 is in the second state, the lower optical input port and the lower optical output port of the first optical switch unit 31 are connected to connect the Tx_1 port of the standby master node to the first ring network R12, and the upper optical input port and the upper optical output port of the first optical switch unit 31 are connected to connect the Rx_2 port of the standby master node to the first ring network R12, thereby connecting the standby master node to the first ring network R12. For the first ring network R12, the standby master node is in the connected state at this time.

[0152] exist Figure 5 and Figure 6 In the same manner, the master node is connected to the first master switch unit 39 through the first optical processor and the second optical processor. Figure 6 The influence of the state of the first main switch unit 39 on whether the master node is connected to the first ring network R12 is not described in detail. Figure 5 and Figure 6 In the same manner, the slave node is connected to the first slave switch unit (such as the first optical switch unit 33, 35, 37) through the first optical processor and the second optical processor. Figure 6 The influence of the state of the first slave switch unit on whether the slave node is connected to the first ring network R12 is not described in detail.

[0153] Next, combine Figure 6 The manner in which the second optical switch unit in the second ring network R22 controls whether the network device is connected to the second ring network R22 is introduced as follows.

[0154] like Figure 6As shown, for the second optical switch unit 32 connected to the backup master node in the second ring network R22, if the second optical switch unit 32 is in the first state, the lower optical input port and the upper optical output port of the second optical switch unit 32 are connected to connect the Tx_2 port of the backup master node to the Rx_1 port of the backup master node, so that the backup master node forms a ring network through the Tx_2 port, the Rx_1 port and the lower optical input port and the upper optical output port of the second optical switch unit 32. At this time, the backup master node is in a self-loop state. At this time, for the second ring network R22, the backup master node is in a bypass state. If the second optical switch unit 32 is in the second state, the lower optical input port and the lower optical output port of the second optical switch unit 32 are connected to connect the Tx_2 port of the standby master node to the second ring network R22, and the upper optical input port and the upper optical output port of the second optical switch unit 32 are connected to connect the Rx_1 port of the standby master node to the second ring network R22, thereby connecting the standby master node to the second ring network R22. For the second ring network R22, the standby master node is in the connected state at this time.

[0155] exist Figure 5 and Figure 6 In the embodiment, the master node is connected to the second master switch unit 310 through the first optical processor and the second optical processor in the same manner, and the slave node is connected to the second slave switch unit (such as the second optical switch unit 34, 36, 38) through the first optical processor and the second optical processor in the same manner. Figure 6 The influence of the state of the second optical switch unit 310 on whether the master node is connected to the second ring network R22 will not be described in detail. Figure 6 The influence of the state of the second optical switch unit on whether the slave node is connected to the second ring network R22 will not be described in detail.

[0156] Next, combine Figure 6 , taking the example that each first optical switch unit in the first ring network R12 is in the first state and each second optical switch unit in the second ring network R22 is in the first state, the process of the master node sending the first downlink optical signal through the first ring network and the process of sending the first downlink optical signal through the second ring network R22 are described as follows:

[0157] Figure 6 The process in which the master node sends the first downlink optical signal through the first ring network R12 and the first downlink optical signal is transmitted in the first ring network R12 is similar to Figure 5 Similarly, here, Figure 6 The process in will not be described in detail. Figure 6 The process in which the master node sends the second downlink optical signal through the second ring network R22 and the second downlink optical signal is transmitted in the second ring network R22 is similar to Figure 5 Similarly, the difference is that in Figure 6In the embodiment, after the second downlink optical signal is transmitted to the upper optical output port of the second optical switch unit 310, the second downlink optical signal is transmitted to the lower optical input port of the second optical switch unit 32 through the upper optical output port of the optical switch unit 310, and then transmitted to the upper optical output port of the second optical switch unit 32 through the lower optical input port of the second optical switch unit 32.

[0158] When all first optical switch units in the first ring network R12 are in the first state and all second optical switch units in the second ring network R22 are in the first state, Figure 6 The process in which each slave node sends the first uplink optical signal to the master node through the first ring network R12 and the first uplink optical signal is transmitted in the first ring network R12. Figure 5 Similarly, the difference is that in Figure 6 In the figure, after the first uplink optical signal is transmitted to the upper optical output port of the first optical switch unit 31, the first uplink optical signal is transmitted to the lower optical input port of the first optical switch unit 31 through the upper optical output port of the first optical switch unit 31, and then transmitted to the upper optical input port of the first optical switch unit 39 through the lower optical input port of the first optical switch unit 31. Figure 6 The process in which the slave node sends the second uplink optical signal to the master node through the second ring network R22 and the second uplink optical signal is transmitted in the second ring network R22 is similar to Figure 5 Similarly, here, Figure 6 The process in will not be described in detail.

[0159] In another possible manner, at least one first slave switch unit in the first ring network R12 shown in the network system 3C is in the first state, and the first backup switch unit and the first main switch unit are both in the second state. At this time, the second network device 302 is connected to the first ring network R12, and the first network device 301 is in the bypass state. Then, the second network device 302 sends a first downlink optical signal to the third network device 302 through the first ring network R12. This process is the same as Figure 6 Similarly, the process in which the master node sends the first downlink optical signal through the first ring network R12, the third network device 304 connected to the first ring network R12 can also send the first uplink optical signal to the second network device 302, and the process is the same as Figure 6 The process of sending the first uplink optical signal from the node through the first ring network R12 is similar.

[0160] In another possible manner, for the second ring network R22 shown in the network system 3C, at least one second slave switch unit in the second ring network R22 is in the first state, and the second backup switch unit and the first main switch unit are both in the second state. At this time, the second network device 302 is connected to the second ring network R22, and the first network device 301 is in the bypass state. Then, the second network device 302 sends a second downlink optical signal to the third network device 304 through the second ring network R22. This process is the same as Figure 6 Similarly, the process in which the master node sends the second downlink optical signal through the second ring network R22, the third network device 304 connected to the second ring network R22 can also send the second uplink optical signal to the second network device 302, and the process is the same as Figure 6 The process of sending the second uplink optical signal from the slave node through the second ring network R22 is similar.

[0161] In network systems 3B and 3C, the first optical processor and the second optical processor of each network device are connected to the optical switch unit in the optical switch array through optical fiber, the first optical switch units in the first ring network are connected through optical fiber, and the second optical switch units in the second ring network are connected through optical fiber, so that the optical signal can be transmitted in network systems 3B and 3C. The second ring network is also a fiber optic ring. Since the optical signal in the second ring network has only one transmission direction, the second ring network is also a unidirectional ring. The first ring network and the second ring network provide a bidirectional ring for the network system, providing two optical signal transmission paths for the network devices in the network system, so that more optical signals can be transmitted between the network devices.

[0162] It should be understood that the above Figure 5 and Figure 6 The second main switch unit and the second backup switch unit are adjacent to each other in the second ring network. In other embodiments, the second main switch unit and the second backup switch unit may not be adjacent to each other in the second ring network. Figure 5 The second switch unit 38 is connected to the first network device 302 as the second main switch unit, and the second optical switch unit 310 is connected to the slave node 3 as the first slave switch unit. Here, the embodiment of the present application does not limit the positional relationship between the second optical switch unit, the second backup switch unit and the second slave switch unit in the second ring network.

[0163] The above-mentioned network system 3B or network system 3C, by networking the optical control device with the network device, provides a ring network for the network device through the optical switch array in the optical control device, so that the optical signals between the network devices can be transmitted through the ring network, without the need to use 1:N passive splitters and burst devices and other devices, thereby reducing the networking cost of the network system.

[0164] In one possible implementation, Figure 3-Figure 6 Any optical control device 303 described in the above, the optical control device 303 further includes a controller 305, which is connected to each optical switch unit in the optical switch array. The controller 305 is a control module (such as a chip) that can control each optical switch unit in the optical switch array. The controller 305 is used to control each optical switch unit connected thereto to switch between a first state and a second state, so as to connect the network device connected to each optical switch unit to the first ring network or the second ring network, or to set the network device connected to each optical switch unit to a bypass state.

[0165] Next, taking the optical switch array including the first ring network as an example, Figure 7 The process of the controller 305 controlling the first optical switch unit to switch between the first state and the second state is described as follows:

[0166] Figure 7 is a flowchart of a network protection method for a network system provided in an embodiment of the present application, wherein the network system is Figure 3 or Figure 4 In any network system shown, the method is executed by a controller in a light control device in the network system.

[0167] 701. A controller performs fault detection on a first network device and / or a first main link.

[0168] The first main link is a link between the first optical processor of the first network device and the optical switch array, illustratively, as Figure 8 and Fig. 9 As shown, the first main link includes a first optical processor of a first network device and a link between the first optical processor and a first main switch unit, wherein: Figure 8 and Fig. 9 They are respectively a fault scenario diagram of a unidirectional ring in a network system provided by an embodiment of the present application, Figure 8 yes Figure 3 The failure scenario of the network system 300 shown in FIG. Fig. 9 yes Figure 4 The failure scenario of the network system 3A is shown.

[0169] In a possible implementation, each first optical switch unit in the first ring network is provided with a first optical splitter at its optical input port for connecting to the network device. Figure 3 and Figure 4As shown, the optical control device also includes (N+2) first photodetectors (PD), the (N+2) first PDs respectively correspond to a first optical switch unit, the (N+2) first PDs are respectively arranged on the reflection optical path of the first optical splitter corresponding to the first optical switch unit, and the (N+2) first PDs are all connected to the controller 305 (the connection relationship is not shown in the figure). For any network device among the first network device 301, the second network device 302 and the N third network devices 304, when the network device passes through the local When the first optical processor transmits an optical signal to the optical input port of the first optical switch unit connected to it, the optical signal is split by the first optical splitter set at the optical input port, and the optical signal is divided into a first optical signal and a second optical signal, wherein the first optical signal is transmitted through the first optical splitter and continues to be transmitted in the first optical switch unit, and the second optical signal is reflected by the first optical splitter to the corresponding first PD. It should be understood that the first optical signal is most of the light of the optical signal, and the second optical signal is a small part of the light of the optical signal, that is, separating the second optical signal from the optical signal will not change the information carried by the remaining optical signal.

[0170] The first PD detects the second optical signal and sends the detection electrical signal to the controller. The controller determines the light intensity of the second optical signal based on the detection electrical signal. If the light intensity is greater than or equal to the light intensity threshold, it is determined that there is no fault in the link between the network device corresponding to the first PD and the optical input port of the first optical switch unit, wherein the network device corresponding to the first PD refers to the network device connected to the first optical switch unit corresponding to the first PD. In other embodiments, if the light intensity is greater than or equal to the light intensity threshold, the controller may also determine that the network device corresponding to the first PD is faulty.

[0171] 702. If the first ring network satisfies the above connection mode 1, when a failure occurs in the first network device and / or the first main link, the controller controls the first main switch unit to switch to the second state, and controls the first backup switch unit to switch to the first state.

[0172] Still Figure 8For example, assuming that a failure is detected in the master node at ① and / or the first main link at ②, the controller sends a first state switching instruction to the first optical switch unit 31 connected to the backup master node (i.e., the second network device), and sends a second state switching instruction to the first optical switch unit 39 connected to the master node (i.e., the first network device), wherein the first state switching instruction indicates that the working state of the optical switch unit is switched to the first state, and the second state switching instruction indicates that the state of the optical switch unit is switched to the second state. After receiving the first state switching instruction, the first optical switch unit 31 switches its working state to the first state according to the first state switching instruction, so that the backup master node is connected to the first ring network R11, and then the backup master node can receive and send optical signals through the first ring network R11. After receiving the second state switching instruction, the first optical switch unit 39 switches its working state to the second state according to the second state switching instruction, so that the master node is in a bypass state relative to the first ring network R11.

[0173] 703. If the first ring network satisfies the above connection mode 2, when a failure occurs in the first network device and / or the first main link, the controller controls the first main switch unit to switch to the second state, and controls the first backup switch unit to switch to the second state.

[0174] by Fig. 9 For example, assuming that a failure is detected in the master node at ① and / or the first main link at ②, the controller sends a second state switching instruction to the first optical switch unit 31 and the first optical switch unit 39 respectively. After receiving the second state switching instruction, the first optical switch unit 31 switches its working state to the second state according to the second state switching instruction, so that the backup master node is connected to the first ring network R12, and then the backup master node can receive and send optical signals through the first ring network R12. After receiving the second state switching instruction, the first optical switch unit 39 switches its working state to the second state according to the second state switching instruction, so that the master node is in a bypass state relative to the first ring network R12.

[0175] 704. The controller performs fault detection on the second network device and / or the first backup link.

[0176] The first backup link is a link between the second network device and the optical switch array, illustratively, as Figure 8 and Fig. 9 As shown, the first backup link includes the first optical processor of the second network device and the optical signal transmission link between the second optical processor and the first slave switch unit. This step 704 is similar to step 701, and is not described again.

[0177] 705. If the first ring network satisfies the above connection mode 1, when the second network device and / or the first backup link fails, the controller controls the first slave switch unit to switch to the first state, and controls the first master switch unit to switch to the second state.

[0178] Still Figure 8 For example, when the standby master node switches to the second state, assuming that a fault is detected in the standby node and / or the first standby link, the controller sends a second state switching instruction to the first optical switch unit 31, and sends a first state switching instruction to the first optical switch unit 39. After receiving the second state switching instruction, the first optical switch unit 31 switches its working state to the second state according to the second state switching instruction, so that the standby master node is in a bypass state relative to the first ring network R11. After receiving the first state switching instruction, the first optical switch unit 39 switches its working state to the first state according to the first state switching instruction, so that the master node is connected to the first ring network. When there is no fault in the master node and the first main link, the master node receives and sends optical signals through the first ring network R11, and the controller jumps to execute the above step 701.

[0179] 706. If the first ring network satisfies the above connection mode 2, when the second network device and / or the first backup link fails, the controller controls the first main switch unit to switch to the first state, and controls the first backup switch unit to switch to the first state.

[0180] Still Fig. 9 For example, when the standby master node switches to the first state, assuming that a fault is detected in the standby node and / or the first standby link, the controller sends a first state switching instruction to the first optical switch unit 31 and the first optical switch unit 39 respectively. After receiving the first state switching instruction, the first optical switch unit 31 switches its working state to the first state according to the first state switching instruction, so that the standby master node is in a bypass state relative to the first ring network R12. After receiving the first state switching instruction, the first optical switch unit 39 switches its working state to the first state according to the first state switching instruction, so that the master node is connected to the first ring network R12. When there is no fault in the master node and the first main link, the master node receives and sends optical signals through the first ring network R12, and the controller jumps to execute the above step 701.

[0181] In network system 300 or network system 3A, if the first network device and / or the first main link fails, or the second network device and / or the first backup link fails, that is, a unidirectional failure occurs in the unidirectional ring, in the unidirectional failure scenario of the unidirectional ring, the method provided in the embodiment of the present application enables the active and standby nodes to switch quickly by switching the state of the optical switch unit. The rapid switching of the active and standby nodes can quickly repair the fault and improve the protection performance of the system.

[0182] Next, taking the optical switch array including the first ring network and the second ring network as an example, Fig.10 , the process of the controller controlling the second optical switch unit in the optical switch array to switch between the first state and the second state is introduced as follows:

[0183] Fig.10 is a flowchart of another network protection method of a network system provided by an embodiment of the present application, wherein the network system is Figure 5 or Figure 6 In any network system shown, the method is executed by a controller in a light control device in the network system.

[0184] 1001. A controller performs fault detection on a first main link and a second main link of a first network device.

[0185] The first main link is a link between the first optical processor of the first network device and the optical switch array, illustratively, as Figure 11-13 As shown, the first main link includes the first optical processor of the first network device, the link between the first optical processor and the first main switch unit, and the link between the first optical processor and the second main switch unit. The second main link is the link between the second optical processor of the first network device and the optical switch array, exemplarily, as Figure 11-13 As shown, the second main link includes the second optical processor of the first network device, the link between the second optical processor and the first main switch unit, and the link between the second optical processor and the second main switch unit, wherein, Figure 11-13 They are respectively fault scenario diagrams in a bidirectional ring situation in a network system provided by an embodiment of the present application, wherein: Fig.11 yes Figure 5 The failure scenario of the network system 3B shown, Fig.12 and Fig.13 yes Figure 6 The failure scenario of the network system 3C is shown.

[0186] like Fig.11 As shown, if the optical switch array forms the first ring network R11 based on connection mode 1 and forms the second ring network R21 based on connection mode 3, when the optical switch array is powered on, the first slave switch unit and the second slave switch unit on the optical switch array are both in the second state, and the remaining optical switch units are all in the first state, so that the first network device is connected to the first ring network R11 and the second ring network R21, so that the first network device receives and receives optical signals through the first ring network R11 and / or the second ring network R21. Fig.12 and Fig.13As shown, if the optical switch array forms a first ring network R12 based on connection mode 2 and forms a second ring network R22 based on connection mode 4, when the optical switch array is powered on, each slave switch unit on the optical switch array is in a first state, so that the first network device is connected to the first ring network R12 and the second ring network R22, so that the first network device receives and sends optical signals through the first ring network R12 and / or the second ring network R22. In the process of the first network device receiving and sending optical signals through the first ring network R12 and / or the second ring network R22, the controller performs fault detection on the first main link and the second main link of the first network device.

[0187] In a possible implementation, each first optical switch unit in the first ring network is provided with a first optical splitter at its optical input port for connecting to the network device, and each second optical switch unit in the second ring network is provided with a second optical splitter at its optical input port for connecting to the network device. Figure 5 and Figure 6 As shown, the light control device also includes (N+2) first PDs and (N+2) second PDs. The configuration of the (N+2) first PDs can refer to the above Figure 3 and Figure 4 , no further details are given here. The (N+2) second PDs correspond to a second optical switch unit respectively, and the (N+2) second PDs are respectively arranged on the reflection optical path of the second optical splitter corresponding to the second optical switch unit, and the (N+2) second PDs are all connected to the controller. For any network device among the first network device, the second network device and the N third network devices, when the network device transmits an optical signal to the optical input port of the second optical switch unit connected thereto through the local second optical processor, the optical signal is split by the second optical splitter arranged at the optical input port, and the optical signal is divided into a third optical signal and a fourth optical signal, wherein the third optical signal is transmitted through the second optical splitter and continues to be transmitted in the second optical switch unit, and the fourth optical signal is reflected by the second optical splitter to the corresponding second PD. It should be understood that the third optical signal is most of the light of the optical signal, and the fourth optical signal is a small part of the light of the optical signal, that is, separating the fourth optical signal from the optical signal will not change the information carried by the remaining optical signal (i.e., the third optical signal).

[0188] The second PD detects the fourth optical signal and sends the detection electrical signal to the controller. The controller determines the light intensity of the fourth optical signal based on the detection electrical signal. If the light intensity is greater than or equal to the light intensity threshold, it is determined that there is no fault in the link between the network device corresponding to the second PD and the light input port of the second optical switch unit. If the light intensity is less than the light intensity threshold, it is determined that there is a fault in the link between the network device corresponding to the second PD and the light input port of the second optical switch unit.

[0189] The process of performing fault detection on the first main link may refer to the above step 701, and the process of detecting whether a fault occurs on the first main link will not be described in detail herein.

[0190] 1002. If the second ring network satisfies the above connection mode 3, when the first main link and / or the second main link of the first network device fails, the controller controls the second main switch unit to switch to the second state, and controls the second backup switch unit to switch to the first state.

[0191] In a possible implementation, when a first main link or a second main link of a first network device fails, the controller controls the second main switch unit to switch to the second state, and controls the second backup switch unit to switch to the first state. Alternatively, when it is detected that both the first main link and the second main link of the first network device fail, the controller determines that the first network device fails, and then controls the second main switch unit to switch to the second state, and controls the second backup switch unit to switch to the first state.

[0192] Still Fig.11 For example, assuming that a failure is detected in the master node at ① and / or the second master link at ②, the controller sends a first state switching instruction to the first backup switch unit 31 and the second backup switch unit 32, and sends a second state switching instruction to the first main switch unit 39 and the second main switch unit 310. After receiving the first state switching instruction, the first backup switch unit 31 and the second backup switch unit 32 switch their respective working states to the first state according to the first state switching instruction, so that the backup master node is connected to the first ring network R11 and the second ring network R21, and then the backup master node can receive and send optical signals through the first ring network R11 and / or the second ring network R21. After receiving the second state switching instruction, the first main switch unit 39 and the second main switch unit 310 switch their respective working states to the second state according to the second state switching instruction, so that the master node is in a bypass state relative to the first ring network R11 and the second ring network R21.

[0193] In another possible implementation, when the first network device is running, the ERPS protocol is run, and the port of the first network device on the first main link or the second main link is set to the RPL owner port, so that the main link where the RPL owner port is located is set to RPL, and the links other than RPL in the first main link or the second main link are non-RPL. Fig.11 For example, the ports on the first main link (such as Rx-1 and Tx-1) are set to RPL owner ports, and the ports on the second main link (such as Rx-2 and Tx-2) are set to non-RPL owner ports, so that the first main link is set to RPL and the second main link is set to non-RPL.

[0194] The first network device blocks the RPL owner port, does not send and receive optical signals through RPL, opens the non-RPL owner port, and receives and receives optical signals through non-RPL to break the link loop. Therefore, whether the RPL fails will not affect the message forwarding. If the non-RPL fails, it will affect the service forwarding and the failure needs to be quickly restored. Based on this, if the first main link is RPL and the second main link is non-RPL, when the first main link is detected to have a failure, the controller does not need to execute this step 1002. When the second main link is detected to have a failure, the controller executes this step 1002 to quickly switch to the second network device for optical signal transmission and reception. Accordingly, if the second main link is RPL and the first main link is non-RPL, when the second main link is detected to have a failure, the controller does not need to execute this step 1002. When the first main link is detected to have a failure, the controller executes this step 1002.

[0195] 1003. If the second ring network satisfies the above connection mode 4, when the first main link and / or the second main link of the first network device fails, the controller controls the second main switch unit to switch to the second state, and controls the second backup switch unit to switch to the second state.

[0196] In a possible implementation, when a first main link or a second main link of a first network device fails, the controller controls the second main switch unit to switch to the second state, and controls the second backup switch unit to switch to the second state. Alternatively, when it is detected that both the first main link and the second main link of the first network device fail, the controller determines that the first network device fails, and then controls the second main switch unit to switch to the second state, and controls the second backup switch unit to switch to the second state.

[0197] Still Fig.12For example, assuming that the second main link at ① and the first main link at ③ are detected to be faulty, and it is determined that the main node at ② (i.e., the first network device) is faulty, the controller sends a second state switching instruction to the first backup switch unit 31 and the second backup switch unit 32, and sends a second state switching instruction to the first main switch unit 39 and the second main switch unit 310. After the first backup switch unit 31 and the second backup switch unit 32 receive the second state switching instruction, they switch their respective working states to the second state according to the second state switching instruction, so that the backup main node is connected to the first ring network R12 and the second ring network R22, and then the backup main node can receive and send optical signals through the first ring network R12 and / or the second ring network R22. If the first main switch unit 39 and the second main switch unit 31 receive the second state switching instruction, they switch their respective working states to the second state according to the second state switching instruction, so that the main node is in a bypass state relative to the first ring network R12 and the second ring network R22.

[0198] In another possible implementation, if the first main link is RPL and the second main link is non-RPL, when a fault is detected in the first main link, the controller does not need to execute step 1003. When a fault is detected in the second main link, the controller executes step 1003 to quickly switch to the second network device for optical signal transmission and reception. Accordingly, if the second main link is RP and the first main link is non-RPL, when a fault is detected in the second main link, the controller does not need to execute step 1003. When a fault is detected in the first main link, the controller executes step 1003.

[0199] 1004. The controller performs fault detection on a first backup link and a second backup link of a second network device.

[0200] The first backup link is a link between the first optical processor of the second network device and the optical switch array, illustratively, as Figure 11-13 As shown, the first backup link includes the first optical processor of the second network device, the link between the first optical processor and the first slave switch unit, and the link between the first optical processor and the second slave switch unit. The second backup link is the link between the second optical processor of the second network device and the optical switch array. For example, Figure 11-13 As shown, the second backup link includes the second optical processor of the second network device, the link between the second optical processor and the first slave switch unit, and the link between the second optical processor and the second slave switch unit. This step 1004 is similar to step 1001, and is not described in detail here.

[0201] 1005. If the second ring network satisfies the above connection mode 3, when the first backup link and / or the second backup link of the second network device fails, the controller controls the second backup switch unit to switch to the second state, and controls the second main switch unit to switch to the first state.

[0202] In a possible implementation, after switching to the second network device for operation, the first backup switch unit and the second backup switch unit are in the first state, and then, in the case that the first backup link or the second backup link of the second network device fails, the controller controls the second backup switch unit to switch to the second state, and controls the second main switch unit to switch to the first state. Alternatively, in the case that both the first backup link and the second backup link of the second network device fail, the controller determines that the second network device fails, and then controls the second backup switch unit to switch to the second state, and controls the second backup switch unit to switch to the first state.

[0203] Still Fig.11 For example, assuming that a fault is detected in the second backup link at ③ and / or the backup node at ④, the controller sends a second state switching instruction to the backup first backup switch unit 31 and the second backup switch unit 32, and sends a first state switching instruction to the first main switch unit 39 and the second main switch unit 310. After receiving the second state switching instruction, the first backup switch unit 31 and the second backup switch unit 32 switch their respective working states to the second state according to the second state switching instruction, so that the backup main node is in a bypass state relative to the first ring network R11 and the second ring network R21. After receiving the first state switching instruction, the first main switch unit 39 and the second main switch unit 310 switch their respective working states to the first state according to the first state switching instruction, so that the main node is connected to the first ring network R11 and the second ring network R21, and then the main node can receive and receive optical signals through the first ring network R111 and / or the second ring network R21.

[0204] In another possible implementation, when the second network device is running, the ERPS protocol is run, and the port on the first backup link or the second backup link is set to the RPL owner port, so that the backup link where the RPL owner port is located is set to RPL, and the link other than RPL in the first backup link or the second backup link is non-RPL, so that Fig.11 For example, the ports on the first backup link (such as Rx-1 and Tx-1) are set as RPL owner ports, and the ports on the second backup link (such as Rx-2 and Tx-2) are set as non-RPL owner ports, so that the first backup link is set to RPL and the second backup link is set to non-RPL.

[0205] If the first backup link is RPL and the second backup link is non-RPL, when the first backup link is detected to have a fault, the controller does not need to execute step 1005. When the second backup link is detected to have a fault, the controller executes step 1005 to quickly switch to the first network device for optical signal transmission and reception. Accordingly, if the second backup link is RPL and the first backup link is non-RPL, when the second backup link is detected to have a fault, the controller does not need to execute step 1005. When the first backup link is detected to have a fault, the controller executes step 1005.

[0206] In another possible implementation, after switching to the second network device, if a non-RPL fault occurs in the second backup link and the first backup link, the controller does not take any action, and the second network device opens the RPL owner port to send and receive optical signals through RPL to perform fault recovery. Next, the fault recovery process is introduced as follows through the following steps A1 and A2.

[0207] Step A1: In case of a non-RPL failure in the first backup link and the second backup link, the second network device blocks the port of the second network device on the non-RPL and opens the RPL owner port of the second network device on the RPL.

[0208] Among them, the port on non-RPL is the non-RPL owner port.

[0209] by Fig.11 For example, assuming that the second standby link is non-RPL and the first standby link is RPL, after the second network device is connected to the first ring network R11 and the second ring network R21, the second standby link is detected for fault. If the second standby link fault at ③ is detected, the non-RPL owner port of the second standby link is blocked, the RPL owner port in the first standby link is opened, the entry of the non-RPL owner port in the local FDB table is deleted, and the RPL owner port in the first standby link is added to the local FDB table to update the local FDB table. In this way, the subsequent second network device will not select the non-RPL owner port when receiving and sending optical signals, and can use the open RPL owner port to receive and send optical signals from the optical switch array through the first standby link, such as sending a first downlink optical signal through the first ring network R11 and receiving a second uplink optical signal through the second ring network R21, thereby recovering from the fault.

[0210] For ease of description, the neighbor device of the first network device among the N third network devices is called the first neighbor device, and the neighbor device of the second network device among the N third network devices is called the second neighbor device, wherein the first neighbor device is the third network device connected to the first optical switch unit before the first main switch unit, and the second neighbor device is the third network device connected to the second optical switch unit before the second main switch unit. Fig.11 For example, slave node 1 is the second neighbor device, and slave node 3 is the first neighbor device.

[0211] Step A2: When the second neighbor device detects the non-RPL fault, the second neighbor device sends a second fault message through the optical switch array, where the second fault message indicates that a port corresponding to the non-RPL fault of the second neighbor device fails.

[0212] Among them, in order to distinguish it from the fault message sent by the first neighbor device below, the fault message sent by the first neighbor device is called the first fault message, and the fault message sent by the second neighbor device is called the second fault message. In order to distinguish it from the port corresponding to the non-RPL fault of the first neighbor device below, the port corresponding to the non-RPL fault of the first neighbor device is called the first port, and the port corresponding to the non-RPL fault of the second neighbor device is called the second port.

[0213] The second port is a receiving port for receiving the downlink optical signal sent by the non-RPL. Fig.11 For example, assuming that the second backup link is non-RPL, the backup master node sends a second downstream optical signal to the second ring network R21 through the local Tx_2 port on the second backup link. After the second downstream optical signal is transmitted to the upper optical input port of the second slave switch unit 34, it passes through the upper optical input port of the second slave switch unit 34 and the lower optical input port of the second slave switch unit 34 in sequence, and is transmitted to the Rx_1 port of the first optical processor of slave node 1. Then, the Rx_1 port of slave node 1 is the second port of slave node 1.

[0214] The second neighbor device performs fault detection on the second port, for example, detects whether the second port receives a downlink optical signal within a first time period. If the second port does not receive a downlink optical signal within the first time period, it is determined that a second backup link corresponding to the second port on the second network device side fails. The second neighbor device blocks the second port, deletes the entry where the second port is located in the local FDB table, updates the local FDB table, generates a second fault message, and sends the second fault message to the target optical processor of the second neighbor device. The target optical processor converts the second fault message into an optical signal, and sends the optical signal to the optical switch unit connected to the sending port of the target optical processor, so that the optical signal is transmitted in the ring network where the optical switch unit is located. In order to separate it from the target optical processor of the first neighbor device hereinafter, the target optical processor of the first neighbor device is referred to as the first target optical processor, and the target optical processor of the second neighbor device is referred to as the second target optical processor. The second target optical processor is the optical processor of the first optical processor and the second optical processor of the second neighbor device that does not include the second port. For example Fig.11 In the example, the Rx_1 port of the first optical processor from node 1 is the second port, and the second optical processor from node 1 is the second target optical processor.

[0215] During the transmission of the optical signal carrying the second fault message in the ring network (the first ring network or the second ring network), each third network device among the N third network devices except the second neighbor network device obtains the optical signal from the ring network, obtains the second fault message carried by the optical signal, and deletes the entry where the second port is located in the local FDB table according to the indication of the second fault message to update the local FDB table, and continues to send the second fault message to the ring network until each third network device has updated its own local FDB table.

[0216] Since the second network device opens the RPL owner port of the second network device on the RPL, in order to enable the second network device to receive and transmit optical signals from the optical switch array through the RPL, the second neighbor network device accordingly opens the RPL on the RPL neighbor port of the second neighbor network device according to the second fault message, and adds the entry where the RPLneighbour port is located in the local FDB table to update the local FDB table. The RPL neighbor port of the second neighbor network device is the port in the second neighbor network device corresponding to the RPL link.

[0217] After switching to the second network device for operation, the second network device runs ERPS to set the first backup link or the second backup link as a ring protection link, and RPL will perform protection switching. In the case of a non-RPL failure of the second network device, a complex fault scenario occurs in the network system. For this complex fault scenario, the RPL on the second network device side cannot provide protection again. Based on the above steps A1-A2, the state of the optical switch unit is controlled to enable active-standby switching for fault recovery. Controlling the state of the optical switch unit can also ensure the integrity of the ring network structure during active-standby switching. In the event of another failure, the ERPS switching method can be used for recovery. Compared with the solution of using ERPS alone, it supports multiple fault protection capabilities.

[0218] In another possible implementation, after switching to the second network device for operation, if the second network device fails, the following steps B1-B3 are performed to recover from the failure.

[0219] Step B1: When the second backup switch unit is in the first state and the second network device fails, the controller controls the second backup switch unit to switch to the second state and controls the second main switch unit to switch to the first state.

[0220] Still Fig.11 For example, after switching to the second network device for operation, the second standby switch unit is in a state. If the controller detects that the second network device fails, the controller sends a second state switching instruction to the first standby switch unit 31 and the first standby switch unit 32, and sends a second state switching instruction to the first main switch unit 39 and the second main switch unit 310. After receiving the second state switching instruction, the first standby switch unit 31 and the first standby switch unit 32 switch their respective working states to the second state, so that the standby master node is in a self-loop state relative to the first ring network R11 and the second ring network R21. After receiving the first state switching instruction, the first main switch unit 39 and the second main switch unit 310 switch their respective working states to the first state, so that the master node is connected to the first ring network R11 and the second ring network R21. After that, the master node can receive and send optical signals through the first ring network R11 and / or the second ring network R21.

[0221] In the case where one of the first main link and the second main link is RPL, after the first network device accesses the first ring network R11 and the second ring network R21 for the non-first time, fault detection is performed on the first main link and the second main link. If a fault is detected in the non-RPL of the first main link and the second main link, the following step B2 is executed.

[0222] Step B2: When a non-RPL fault occurs in the first primary link and the second primary link, the first network device blocks the port of the first network device on the non-RPL and opens the RPL owner port of the first network device on the RPL.

[0223] by Fig.11 For example, assuming that the second main link is non-RPL and the first main link is RPL, after the first network device is connected to the first ring network R11 and the second ring network R21, if the second main link failure at ② is detected, the non-RPL owner port of the second main link is blocked, the RPL owner port in the first main link is opened, the entry where the non-RPLowner port is located in the local FDB table is deleted, and the RPL owner port in the first main link is added to the local FDB table to update the local FDB table. In this way, the first network device will not select the non-RPL owner port when receiving and sending optical signals subsequently, and can use the open RPL owner port to receive and send optical signals from the optical switch array through the first main link, such as sending a first downlink optical signal through the first ring network R11 and receiving a second uplink optical signal through the second ring network R21, thereby recovering from the failure.

[0224] Step B3: When the first neighbor device detects the non-RPL fault, the first neighbor device sends a first fault message through the optical switch array, where the first fault message indicates that a port corresponding to the non-RPL of the first neighbor device fails.

[0225] The port of the first neighbor device corresponding to the non-RPL, that is, the first port, is a receiving port for receiving the downlink optical signal sent by the non-RPL. Fig.11 For example, assuming that the second main link is non-RPL, the master node sends a second downstream optical signal to the second ring network R21 through the local Tx_2 port on the second main link. After the second downstream optical signal is transmitted to the lower optical input port of the second optical switch unit 310, it passes through the lower optical input port of the second optical switch unit 310 and the upper optical output port of the second optical switch unit 310 in sequence, and is transmitted to the second ring network R21. When the second downstream optical signal is transmitted to the upper optical input port of the second optical switch unit 310 through the second ring network R21, it passes through the upper optical input port of the second optical switch unit 310 and the lower optical output port of the second optical switch unit 310 to the Rx_1 port of the first optical processor of the slave node 3, then the Rx_1 port of the slave node 3 is the first port of the slave node 3.

[0226] The first neighbor device performs fault detection on the first port, for example, detects whether the first port receives a downstream optical signal within a second time period. If the first port does not receive a downstream optical signal within the second time period, it is determined that a second main link corresponding to the first port on the first network device side fails. The first neighbor device blocks the first port, deletes the entry where the first port is located in the local FDB table, updates the local FDB table, generates a first fault message, and sends a second fault message to the first target optical processor of the first neighbor device. The first target optical processor converts the first fault message into an optical signal, and sends the optical signal to the optical switch unit connected to the sending port of the first target optical processor, so that the optical signal is transmitted in the ring network where the optical switch unit is located. The first target optical processor is an optical processor that does not include the first port between the first optical processor and the second optical processor of the first neighbor device, for example Fig.11 In the example, the Rx_1 port of the first optical processor of the slave node 3 is the first port, and the second optical processor of the slave node 3 is the first target optical processor.

[0227] During the transmission of the optical signal carrying the first fault message in the ring network (the first ring network or the second ring network), each third network device among the N third network devices except the first neighbor network device obtains the optical signal from the ring network, obtains the first fault message carried by the optical signal, and deletes the entry where the first port is located in the local FDB table according to the instruction of the first fault message to update the local FDB table, and continues to send the second fault message to the ring network until each third network device has updated its own local FDB table.

[0228] Since the first network device opens the RPL owner port of the first network device on the RPL, in order to enable the first network device to receive and transmit optical signals from the optical switch array through the RPL, the first neighbor network device accordingly opens the RPL on the RPL neighbor port of the first neighbor network device according to the second fault message, and adds the entry where the RPLneighbour port is located in the local FDB table to update the local FDB table. The RPL neighbor port of the first neighbor network device is the port in the first neighbor network device corresponding to the RPL link.

[0229] After switching to the second network device for operation, the second network device runs ERPS to set the first backup link or the second backup link as the ring protection link, and RPL will perform protection switching. In the event of a failure of the second network device, another complex failure scenario occurs in the network system. For this complex failure scenario, the RPL on the second network device side cannot provide protection again. Based on the above steps B1-B2, the state of the optical switch unit is controlled to enable the active-standby switching for fault recovery. Controlling the state of the optical switch unit can also ensure the integrity of the ring network structure during the active-standby switching. In the event of another failure, the ERPS switching method can be used for recovery. Compared with the solution of using ERPS alone, it supports multiple fault protection capabilities.

[0230] 1006. If the second ring network satisfies the above connection mode 4, when the first backup link and / or the second backup link of the second network device fails, the controller controls the second backup switch unit to switch to the first state, and controls the second main switch unit to switch to the first state.

[0231] In a possible implementation, after switching to the second network device for operation, the first backup switch unit and the second backup switch unit are in the second state, and then, in the case that the first backup link or the second backup link of the second network device fails, the controller controls the second backup switch unit to switch to the first state, and controls the second main switch unit to switch to the first state. Alternatively, in the case that both the first backup link and the second backup link of the second network device are detected to have failed, the controller determines that the second network device has failed, and then controls the second backup switch unit to switch to the first state, and controls the second backup switch unit to switch to the first state.

[0232] by Fig.12 For example, assuming that the detected first backup link or the second backup link fails, the controller sends a first state switching instruction to the first backup switch unit 31 and the second backup switch unit 32, and sends a first state switching instruction to the first main switch unit 39 and the second main switch unit 310. After receiving the first state switching instruction, the first backup switch unit 31 and the second backup switch unit 32 switch their respective working states to the first state according to the first state switching instruction, so that the backup master node is in a bypass state relative to the first ring network R12 and the second ring network R22. The first main switch unit 39 and the second main switch unit 310 receive the first state switching instruction, and switch their respective working states to the first state according to the first state switching instruction, so that the master node is connected to the first ring network R12 and the second ring network R22. After that, the master node can receive and send optical signals through R12 and / or the second ring network R22.

[0233] In another possible implementation, if the first backup link is RPL and the second backup link is non-RPL, when the first backup link is detected to have a fault, the controller does not need to execute step 1006. When the second backup link is detected to have a fault, the controller executes step 1006 to quickly switch to the first network device for optical signal transmission and reception. Accordingly, if the second backup link is RPL and the first backup link is non-RPL, when the second backup link is detected to have a fault, the controller does not need to execute step 1006. When the first backup link is detected to have a fault, the controller executes step 1006.

[0234] In another possible implementation, after switching to the second network device, if a non-RPL fault occurs in the second backup link and the first backup link, the controller does not take any action, and the second network device opens the RPL owner port to send and receive optical signals through RPL to perform fault recovery. Next, the fault recovery process is introduced as follows through the following steps C1 and C2.

[0235] Step C1: in case of a non-RPL failure in the first backup link and the second backup link, the second network device blocks the port of the second network device on the non-RPL and opens the RPL owner port of the second network device on the RPL.

[0236] Among them, the port on non-RPL is the non-RPL owner port.

[0237] by Fig.13 For example, assuming that the second standby link is non-RPL and the first standby link is RPL, after the second network device is connected to the first ring network R11 and the second ring network R21, the second standby link is detected for fault. If the second standby link fault at ③ is detected, the non-RPL owner port of the second standby link is blocked, the RPL owner port in the first standby link is opened, the entry of the non-RPL owner port in the local FDB table is deleted, and the RPL owner port in the first standby link is added to the local FDB table to update the local FDB table. In this way, the subsequent second network device will not select the non-RPL owner port when receiving and sending optical signals, and can use the open RPL owner port to receive and send optical signals from the optical switch array through the first standby link, such as sending a first downlink optical signal through the first ring network R11 and receiving a second uplink optical signal through the second ring network R21, thereby recovering from the fault.

[0238] Step C2: When the second neighbor device detects the non-RPL fault, the second neighbor device sends a second fault message through the optical switch array, where the second fault message indicates that a port of the second neighbor device corresponding to the non-RPL fault has a fault.

[0239] Among them, this step C2 is the same as step A2 and will not be repeated here.

[0240] After switching to the first network device for operation, the first network device runs ERPS to set the first main link or the second main link as a ring protection link, and RPL will perform protection switching. In the case of a non-RPL failure of the first network device, a complex fault scenario occurs in the network system. For this complex fault scenario, the RPL on the first network device side cannot provide protection again. Based on the above steps C1-C2, the state of the optical switch unit is controlled to enable active-standby switching for fault recovery. Controlling the state of the optical switch unit can also ensure that the ring network structure is intact during active-standby switching. In the event of another failure, the ERPS switching method can be used for recovery. Compared with the solution of using ERPS alone, it supports multiple fault protection capabilities.

[0241] In another possible implementation, after switching to the second network device for operation, if the second network device fails, the following steps D1-D3 are used to perform failure recovery.

[0242] Step D1: When the second backup switch unit is in the second state and the second network device fails, the controller controls the second backup switch unit to switch to the first state and controls the second main switch unit to switch to the first state.

[0243] Still Fig.13 For example, after switching to the second network device for operation, the second standby switch unit is in the second state. If the controller detects that the standby master node at ④ fails, the controller sends a first state switching instruction to the first standby switch unit 31 and the first standby switch unit 32, and sends a first state switching instruction to the first main switch unit 39 and the second main switch unit 310. After receiving the first state switching instruction, the first standby switch unit 31 and the first standby switch unit 32 switch their respective working states to the first state, so that the standby master node is in a self-loop state relative to the first ring network R12 and the second ring network R22. After receiving the first state switching instruction, the first main switch unit 39 and the second main switch unit 310 switch their respective working states to the first state, so that the master node is connected to the first ring network R11 and the second ring network R21. After that, the master node can receive and receive optical signals through the first ring network R12 and / or the second ring network R22.

[0244] In the case where one of the first main link and the second main link is RPL, after the first network device accesses the first ring network R12 and the second ring network R22 for the non-first time, fault detection is performed on the first main link and the second main link. If a fault is detected in the non-RPL of the first main link and the second main link, the following step D2 is executed.

[0245] Step D2: When a non-RPL fault occurs in the first primary link and the second primary link, the first network device blocks the port of the first network device on the non-RPL and opens the RPL owner port of the first network device on the RPL.

[0246] Among them, step D2 is the same as step B2 and will not be repeated here.

[0247] Step D3: When the first neighbor device detects the non-RPL fault, the first neighbor device sends a first fault message through the optical switch array, where the first fault message indicates that a port corresponding to the non-RPL of the first neighbor device fails.

[0248] Among them, this step D3 is the same as step B3 and will not be repeated here.

[0249] After switching to the first network device for operation, the first network device runs ERPS to set the first main link or the second main link as a ring protection link, and RPL will perform protection switching. In the event of a failure of the first network device, another complex failure scenario occurs in the network system. For this complex failure scenario, the RPL on the first network device side cannot provide protection again. Based on the above steps D1-D2, the state of the optical switch unit is controlled to enable active-standby switching for fault recovery. Controlling the state of the optical switch unit can also ensure the integrity of the ring network structure during active-standby switching. In the event of another failure, the ERPS switching method can be used for recovery. Compared with the solution of using ERPS alone, it supports multiple fault protection capabilities.

[0250] In the network system 3B or the network system 3C, if the first network device and / or the first main link fails, or the second network device and / or the first backup link fails, that is, a unidirectional failure occurs in the bidirectional ring, in the unidirectional failure scenario of the bidirectional ring, according to Fig.10The method provided by the embodiment of the present application shown achieves rapid recovery from faults by switching the state of the optical switch control unit. Compared with the switching method of the ERPS protocol, it can avoid the third network device from refreshing the local FDB table, and the fault recovery time is shorter. For complex fault scenarios, since EPRS has already performed protection switching and cannot provide protection again, the present application can ensure the integrity of the ring network structure during the master-slave switching by switching the state of the optical switch control unit. When a fault occurs again, the ERPS switching method can be used for recovery. Compared with the solution of using EPRS alone, it supports multiple fault protection capabilities.

[0251] The above embodiments are all explained by taking the example of the controller controlling the first network device or the second network device to access the ring network. In other embodiments, the controller can also switch the state of the slave switch unit (the first slave switch unit or the second slave switch unit) to connect the third network device connected to the slave switch unit to the ring network or not to the ring network. For example, the controller detects through the PD (the first PD or the second PD) corresponding to any slave switch unit that the third network device connected to the slave switch unit fails or the link between the third network device and the first slave switch unit fails, then the controller controls the slave switch unit to switch to the second state, so that the third network device is in the bypass state. If the fault is restored, the controller controls the slave switch unit to switch to the first state, so that the third network device is in the connected state, so as to ensure the security of the network system.

[0252] The above are all explained by taking the example of the controller performing fault detection through the first PD or the second PD. In other embodiments, the optical control device does not include the first PD and the second PD, and a fault detection device is provided in the network system. The fault detection device is used to detect whether each network device in the network system fails and whether a link between the network device and the switch array fails. When a network device fails or a link fails, a fault message is sent to the controller, and the controller controls the state of the optical switch unit connected to the network device according to the fault message.

[0253] Fig.14 The embodiment of the present application provides a network protection device for a network system, wherein the network system is any of the network systems described above. Fig.14 The device 1400 shown is configured as the controller 305 in the light control device 303, and the device 1400 is used to execute the network protection method of the network system executed by the controller. The device 1400 includes:

[0254] The first control module 1401 is used to control the first main switch unit to switch to the second state and the first standby switch unit to switch to the first state when a first network device and / or a first main link fails, the first main link is a link between the first optical processor of the first network device and the optical switch array, the first main switch unit is a first optical switch unit connected to the first network device, and the first standby switch unit is a first optical switch unit connected to the second network device;

[0255] The second control module 1402 is used to control the first main switch unit to switch to the first state and the first backup switch unit to switch to the second state when a failure occurs in the second network device and / or the first backup link. The first backup link is a link between the first optical processor of the second network device and the optical switch array.

[0256] In a possible implementation, the second optical output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first optical input port of the previous first optical switch unit, and the first optical output port of each first optical switch unit except the first backup switch unit is connected to the first optical input port of the previous first optical switch unit, so as to form a first ring network;

[0257] The first control module 1401 is further configured to control the first main switch unit to switch to the second state and the first standby switch unit to switch to the second state when a failure occurs in the first network device and / or the first main link;

[0258] The second control module 1402 is further configured to control the first main switch unit to switch to the first state and control the first backup switch unit to switch to the first state when a failure occurs in the second network device and / or the first backup link.

[0259] In a possible implementation, the first light output port of each second optical switch unit is connected to the first light input port of the previous second optical switch unit to form a second ring network;

[0260] The first control module 1401 is further configured to control the second main switch unit to switch to the second state and control the second standby switch unit to switch to the first state when a first main link and / or a second main link of the first network device fails, the second main link being a link between the second optical processor of the first network device and the optical switch array, the second main switch unit being a second optical switch unit connected to the first network device, and the second standby switch unit being a second optical switch unit connected to the second network device;

[0261] The second control module 1402 is also used to control the second backup switch unit to switch to the second state and control the second main switch unit to switch to the first state when the first backup link and / or the second backup link of the second network device fails. The second backup link is a link between the second optical processor of the second network device and the optical switch array.

[0262] In a possible implementation manner, the first main link or the second main link is a ring protection link; and the second control module 1402 is further configured to:

[0263] When the second backup switch unit is in the first state and the second network device fails, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state.

[0264] In a possible implementation, the second light output port of the second backup switch unit among the (N+2) second optical switch units is connected to the first light input port of the previous second optical switch unit, and the first light output port of each second optical switch unit except the second backup switch unit is connected to the first light input port of the previous second optical switch unit, so as to form a second ring network;

[0265] The first control module 1401 is further configured to control the second main switch unit to switch to the second state and control the second standby switch unit to switch to the second state when a first main link and / or a second main link of the first network device fails, the second main link being a link between the second optical processor of the first network device and the optical switch array, the second main switch unit being a second optical switch unit connected to the first network device, and the second standby switch unit being a second optical switch unit connected to the second network device;

[0266] The second control module 1402 is also used to control the second backup switch unit to switch to the first state and the second main switch unit to switch to the first state when the first backup link and / or the second backup link of the second network device fails. The second backup link is a link between the second optical processor of the second network device and the optical switch array.

[0267] In a possible implementation manner, the first main link or the second main link is a ring protection link, and the second control module 1402 is further configured to:

[0268] When the second backup switch unit is in the second state and the second network device fails, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state.

[0269] It should be understood that device 1400 corresponds to the controller in the above-mentioned method embodiment, and the various modules in device 1400 and the above-mentioned other operations and / or functions are respectively for implementing the various steps and methods implemented by the controller in the method embodiment. The specific details can be found in the above-mentioned method embodiment. For the sake of brevity, they will not be repeated here.

[0270] It should be understood that when the device 1400 performs networking protection on the network system, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device 1400 is divided into different functional modules to complete all or part of the functions described above. In addition, the device 1400 provided in the above embodiment and the above method embodiment belong to the same concept, and the specific implementation process is detailed in the above method embodiment, which will not be repeated here.

[0271] Fig.15 1 is a schematic diagram of a structure of an optical control device of a network system provided in an embodiment of the present application. The network system is any of the network systems described above. The optical control device 1500 is configured as any of the optical control devices 303 described above. The optical control device 1500 includes any of the optical switch arrays described above (not shown in FIG. Fig.15 ), the light control device 1500 also includes one or more processors 1501 and one or more memories 1502. The one or more memories 1502 are coupled to the one or more processors 1501, and the one or more memories 1502 are used to store at least one program code. When the one or more processors 1501 execute the at least one program code, the control device 1500 executes the networking method of the network system in the above-mentioned embodiment. It should be understood that when the one or more processors 1501 read and execute at least one program code, they can implement the function of the controller of the light control device in the above-mentioned method embodiment. Alternatively, the one or more processors 1501 can also be configured as the controller introduced above, or the one or more processors 150 and the memory 1502 are configured as the controller introduced above.

[0272] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a program code, and the program code can be executed by a processor of the optical control device to complete the networking protection method of the network system in the above embodiment. For example, the computer-readable storage medium is a non-temporary computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0273] An embodiment of the present application also provides a computer program product or a computer program, which includes a program code. The computer instructions are stored in a computer-readable storage medium. The processor of the above-mentioned light control device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the above-mentioned light control device executes the networking protection method of the above-mentioned network system.

[0274] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.

[0275] In this application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the words "exemplary" or "for example" is intended to present the related concepts in a concrete way.

[0276] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the optical signals or messages involved in this application are obtained with full authorization.

[0277] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.

[0278] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A network system, characterized in that: The system comprises a first network device, a second network device, an optical control device and N third network devices, wherein the second network device is a backup device of the first network device, the first network device and the second network device are upper network devices of the optical control device, and the N third network devices are lower network devices of the optical control device, wherein N is an integer greater than 1; The optical control device includes an optical switch array, the optical switch array includes (N+2) first optical switch units, and the (N+2) first optical switch units are respectively connected to the first network device, the second network device, and the N third network devices; The (N+2) first optical switch units are connected to form a first ring network, and the first ring network is used for: Transmitting a first downlink optical signal to at least one third network device, where the first downlink optical signal is an optical signal transmitted by the first network device or the second network device to the first ring network; A first uplink optical signal is transmitted to the first network device or the second network device, where the first uplink optical signal is an optical signal transmitted from the third network device connected to the first ring network to the first ring network.

2. The system according to claim 1, characterized in that The first optical switch unit comprises a first light inlet, a second light inlet, a first light outlet and a second light outlet; When the first optical switch unit is in the first state, an optical signal received by the first light input port of the first optical switch unit is output through the second light output port of the first optical switch unit, and an optical signal received by the second light input port of the first optical switch unit is output through the first light output port of the first optical switch unit; When the first optical switch unit is in the second state, an optical signal received by the first light input port of the first optical switch unit is output through the first light output port of the first optical switch unit, and an optical signal received by the second light input port of the first optical switch unit is output through the second light output port of the first optical switch unit.

3. The system according to claim 2, characterized in that The first light output port of each of the first optical switch units is connected to the first light input port of the previous first optical switch unit to form the first ring network; The second optical input port and the second optical output port of each of the first optical switch units are connected to the first optical processor of the first network device, the second network device or the third network device.

4. The system according to claim 3, characterized in that The optical control device further includes a controller, which is connected to the first network device, the second network device and the (N+2) first optical switch units; the controller is used to: In the case that the first network device and / or the first main link fails, the first main switch unit is controlled to switch to the second state, and the first backup switch unit is controlled to switch to the first state, the first main link is a link between the first optical processor of the first network device and the optical switch array, the first main switch unit is a first optical switch unit connected to the first network device, and the first backup switch unit is a first optical switch unit connected to the second network device; In the event that the second network device and / or the first backup link fails, the first main switch unit is controlled to switch to the first state, and the first backup switch unit is controlled to switch to the second state, wherein the first backup link is a link between the first optical processor of the second network device and the optical switch array.

5. The system according to claim 2, characterized in that The second optical output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first optical input port of the previous first optical switch unit, and the first optical output port of each first optical switch unit except the first backup switch unit is connected to the first optical input port of the previous first optical switch unit to form the first ring network, and the first backup switch unit is the first optical switch unit connected to the second network device; The second optical input port and the first optical output port of the first backup switch unit are connected to the first optical processor of the second network device, and the second optical input port and the second optical output port of each of the first optical switch units except the first backup switch unit are connected to the first optical processor of the first network device or the third network device.

6. The system according to claim 5, characterized in that The optical control device further includes a controller, which is connected to the first network device, the second network device and the (N+2) first optical switch units; the controller is used to: In the case that the first network device and / or the first main link fails, controlling the first main switch unit to switch to the second state, and controlling the first standby switch unit to switch to the second state, wherein the first main link is a link between the first optical processor of the first network device and the optical switch array, and the first main switch unit is a first optical switch unit connected to the first network device; In the event that the second network device and / or the first backup link fails, the first main switch unit is controlled to switch to the first state, and the first backup switch unit is controlled to switch to the first state, wherein the first backup link is a link between the first optical processor of the second network device and the optical switch array.

7. The system according to claim 2, characterized in that The optical switch array further includes (N+2) second optical switch units, and the (N+2) second optical switch units are respectively connected to the first network device, the second network device and the N third network devices; The (N+2) second optical switch units are connected to form a second ring network, and the second ring network is used for: Transmitting a second downlink optical signal to at least one third network device, where the second downlink optical signal is an optical signal transmitted by the first network device or the second network device to the second ring network; A second uplink optical signal is transmitted to the first network device or the second network device, where the second uplink optical signal is an optical signal transmitted from the third network device connected to the second ring network to the second ring network.

8. The system according to claim 7, characterized in that The second optical switch unit comprises a first light inlet, a second light inlet, a first light outlet and a second light outlet; When the second optical switch unit is in the first state, an optical signal received by the first light input port of the second optical switch unit is output through the second light output port of the second optical switch unit, and an optical signal received by the second light input port of the second optical switch unit is output through the first light output port of the second optical switch unit; When the second optical switch unit is in the second state, the optical signal received by the first light input port of the second optical switch unit is output through the first light output port of the second optical switch unit, and the optical signal received by the second light input port of the second optical switch unit is output through the second light output port of the second optical switch unit.

9. The system according to claim 8, characterized in that The first optical output port of each of the first optical switch units is connected to the first optical input port of the previous first optical switch unit to form the first ring network, the second optical input port of each of the first optical switch units is connected to the first optical processor of the first network device, the second network device or the third network device, and the second optical output port of each of the first optical switch units is connected to the second optical processor of the first network device, the second network device or the third network device; The first optical output port of each second optical switch unit is connected to the first optical input port of the previous second optical switch unit to form the second ring network, the second optical input port of each second optical switch unit is connected to the second optical processor of the first network device, the second network device or the third network device, and the second optical output port of each second optical switch unit is connected to the first optical processor of the first network device, the second network device or the third network device.

10. The system according to claim 9, characterized in that The optical control device further includes a controller, which is connected to the first network device, the second network device and the (N+2) second optical switch units; the controller is used to: In the case that a first main link and / or a second main link of the first network device fails, the second main switch unit is controlled to switch to the second state, and the second standby switch unit is controlled to switch to the first state, wherein the first main link is a link between the first optical processor of the first network device and the optical switch array, the second main link is a link between the second optical processor of the first network device and the optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device; In the event that a first backup link and / or a second backup link of the second network device fails, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state, wherein the first backup link is a link between the first optical processor of the second network device and the optical switch array, and the second backup link is a link between the second optical processor of the second network device and the optical switch array.

11. The system according to claim 10, characterized in that The first main link or the second main link is a ring protection link; The controller is further configured to control the second backup switch unit to switch to the second state and control the second main switch unit to switch to the first state when the second backup switch unit is in the first state and the second network device fails; The first network device is configured to block a port of the first network device on the non-ring protection link and open a port owned by the first network device on the ring protection link of the ring protection link when a non-ring protection link of the first main link and the second main link fails; The first neighbor device among the N third network devices is used to send a first fault message through the optical switch array when a fault of the non-ring protection link is detected. The first neighbor device is a neighbor device of the first network device among the N third network devices. The first fault message indicates that a port of the first neighbor device corresponding to the non-ring protection link has a fault.

12. The system according to claim 8, characterized in that The second optical output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first optical input port of the previous first optical switch unit, and the first optical output port of each first optical switch unit except the first backup switch unit is connected to the first optical input port of the previous first optical switch unit to form the first ring network, and the first backup switch unit is the first optical switch unit connected to the second network device; The second light output port of the second backup switch unit among the (N+2) second optical switch units is connected to the first light input port of the previous second optical switch unit, and the first light output port of each second optical switch unit except the second backup switch unit is connected to the first light input port of the previous second optical switch unit to form the second ring network. The second backup switch unit is a second optical switch unit connected to the second network device.

13. The system according to claim 12, characterized in that The second optical input port and the first optical output port of the first standby switch unit are respectively connected to the first optical processor and the second optical processor of the second network device, and the second optical input port and the second optical output port of each of the first optical switch units except the first standby switch unit are respectively connected to the first optical processor and the second optical processor of a network device, and the network device is the second network device or the third network device; The first optical input port and the second optical output port of the second backup switch unit are respectively connected to the second optical processor and the first optical processor of the second network device, and the first optical input port and the second optical output port of each second optical switch unit except the second backup switch unit are respectively connected to the second optical processor and the second optical processor of the network device.

14. The system according to claim 13, characterized in that The optical control device further includes a controller, which is connected to the first network device, the second network device and the (N+2) second optical switch units; the controller is used to: In the case that a first main link and / or a second main link of the first network device fails, controlling the second main switch unit to switch to the second state, and controlling the second standby switch unit to switch to the second state, the first main link is a link between the first optical processor of the first network device and the optical switch array, the second main link is a link between the second optical processor of the first network device and the optical switch array, and the second main switch unit is a second optical switch unit connected to the first network device; In the event that a first backup link and / or a second backup link of the second network device fails, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state, wherein the first backup link is a link between the first optical processor of the second network device and the optical switch array, and the second backup link is a link between the second optical processor of the second network device and the optical switch array.

15. The system according to claim 14, characterized in that The first main link or the second main link is a ring protection link; The controller is further configured to control the second backup switch unit to switch to the first state and control the second main switch unit to switch to the first state when the second backup switch unit is in the second state and the second network device fails; The first network device is configured to block a port of the first network device on the non-ring protection link and open a port owned by the first network device on the ring protection link of the ring protection link when a non-ring protection link of the first main link and the second main link fails; The first neighbor device among the N third network devices is used to send a first fault message through the optical switch array when a fault of the non-ring protection link is detected. The first neighbor device is a neighbor device of the first network device among the N third network devices. The first fault message indicates that a port of the first neighbor device corresponding to the non-ring protection link has a fault.

16. The system according to claim 10 or 14, characterized in that The first standby link or the second standby link is a ring protection link; The second network device is configured to block a port of the second network device on the non-ring protection link and open a port owned by the second network device on the ring protection link when a non-ring protection link in the first backup link and the second backup link fails; The second neighbor device among the N third network devices is used to send a second fault message through the optical switch array when a fault of the non-ring protection link is detected. The second neighbor device is a neighbor device of the second network device among the N third network devices. The second fault message indicates that a port of the second neighbor device corresponding to the non-ring protection link has failed.

17. A network protection method for a network system, characterized in that: The network system is the network system according to any one of claims 1 to 16, the method is executed by a controller of the light control device, and the method comprises: In the case that the first network device and / or the first main link fails, the first main switch unit is controlled to switch to the second state, and the first backup switch unit is controlled to switch to the first state, the first main link is a link between the first optical processor of the first network device and the optical switch array, the first main switch unit is a first optical switch unit connected to the first network device, and the first backup switch unit is a first optical switch unit connected to the second network device; In the event that the second network device and / or the first backup link fails, the first main switch unit is controlled to switch to the first state, and the first backup switch unit is controlled to switch to the second state, wherein the first backup link is a link between the first optical processor of the second network device and the optical switch array.

18. The method according to claim 17, characterized in that The second light output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first light input port of the previous first optical switch unit, and the first light output port of each first optical switch unit except the first backup switch unit is connected to the first light input port of the previous first optical switch unit, so as to form the first ring network; The method further comprises: When the first network device and / or the first main link fails, control the first main switch unit to switch to the second state, and control the first backup switch unit to switch to the second state; In the event that the second network device and / or the first backup link fails, the first main switch unit is controlled to switch to the first state, and the first backup switch unit is controlled to switch to the first state.

19. The method according to claim 17, characterized in that The first light output port of each second optical switch unit is connected to the first light input port of the previous second optical switch unit to form the second ring network, and the method further includes: In the case that the first main link and / or the second main link of the first network device fails, controlling the second main switch unit to switch to the second state, and controlling the second standby switch unit to switch to the first state, the second main link is a link between the second optical processor of the first network device and the optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device; In the event that the first backup link and / or the second backup link of the second network device fails, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state, where the second backup link is a link between the second optical processor of the second network device and the optical switch array.

20. The method according to claim 19, characterized in that The first main link or the second main link is a ring protection link; the method further includes: When the second backup switch unit is in the first state and a fault occurs in the second network device, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state.

21. The method according to claim 17, characterized in that The second light output port of the second backup switch unit in the (N+2) second optical switch units is connected to the first light input port of the previous second optical switch unit, and the first light output port of each second optical switch unit except the second backup switch unit is connected to the first light input port of the previous second optical switch unit, so as to form the second ring network; the method further includes: In the case that the first main link and / or the second main link of the first network device fails, controlling the second main switch unit to switch to the second state, and controlling the second standby switch unit to switch to the second state, the second main link is a link between the second optical processor of the first network device and the optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device; In the event that the first backup link and / or the second backup link of the second network device fails, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state, where the second backup link is a link between the second optical processor of the second network device and the optical switch array.

22. The method according to claim 21, characterized in that The first main link or the second main link is a ring protection link, and the method further includes: When the second backup switch unit is in the second state and a fault occurs in the second network device, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state.

23. A networking protection device for a network system, the network system being the network system according to any one of claims 1 to 16, the networking protection device being configured as a controller in the light control device, the device comprising: a first control module, configured to control the first main switch unit to switch to the second state and control the first backup switch unit to switch to the first state when the first network device and / or the first main link fails, the first main link being a link between the first optical processor of the first network device and the optical switch array, the first main switch unit being a first optical switch unit connected to the first network device, and the first backup switch unit being a first optical switch unit connected to the second network device; The second control module is used to control the first main switch unit to switch to the first state and control the first backup switch unit to switch to the second state when the second network device and / or the first backup link fails, and the first backup link is a link between the first optical processor of the second network device and the optical switch array.

24. The device according to claim 23, characterized in that The second light output port of the first backup switch unit among the (N+2) first optical switch units is connected to the first light input port of the previous first optical switch unit, and the first light output port of each first optical switch unit except the first backup switch unit is connected to the first light input port of the previous first optical switch unit, so as to form the first ring network; The first control module is further configured to control the first main switch unit to switch to the second state and control the first backup switch unit to switch to the second state when the first network device and / or the first main link fails; The second control module is further configured to control the first main switch unit to switch to the first state and control the first backup switch unit to switch to the first state when a failure occurs in the second network device and / or the first backup link.

25. The device according to claim 23, characterized in that The first light output port of each second optical switch unit is connected to the first light input port of the previous second optical switch unit to form the second ring network; The first control module is further configured to control the second main switch unit to switch to the second state and control the second standby switch unit to switch to the first state when the first main link and / or the second main link of the first network device fails, wherein the second main link is a link between the second optical processor of the first network device and the optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device; The second control module is further used to control the second backup switch unit to switch to the second state and control the second main switch unit to switch to the first state when the first backup link and / or the second backup link of the second network device fails, and the second backup link is a link between the second optical processor of the second network device and the optical switch array.

26. The device according to claim 25, characterized in that The first main link or the second main link is a ring protection link; and the second control module is further used for: When the second backup switch unit is in the first state and a fault occurs in the second network device, the second backup switch unit is controlled to switch to the second state, and the second main switch unit is controlled to switch to the first state.

27. The device according to claim 23, characterized in that The second light output port of the second backup switch unit in the (N+2) second optical switch units is connected to the first light input port of the previous second optical switch unit, and the first light output port of each second optical switch unit except the second backup switch unit is connected to the first light input port of the previous second optical switch unit, so as to form the second ring network; The first control module is further configured to control the second main switch unit to switch to the second state and control the second standby switch unit to switch to the second state when the first main link and / or the second main link of the first network device fails, wherein the second main link is a link between the second optical processor of the first network device and the optical switch array, the second main switch unit is a second optical switch unit connected to the first network device, and the second standby switch unit is a second optical switch unit connected to the second network device; The second control module is further used to control the second backup switch unit to switch to the first state and control the second main switch unit to switch to the first state when the first backup link and / or the second backup link of the second network device fails, and the second backup link is a link between the second optical processor of the second network device and the optical switch array.

28. The device according to claim 27, characterized in that The first main link or the second main link is a ring protection link, and the second control module is further used for: When the second backup switch unit is in the second state and a fault occurs in the second network device, the second backup switch unit is controlled to switch to the first state, and the second main switch unit is controlled to switch to the first state.

29. A light control device for a network system, characterized in that: The light control device is the light control device involved in any one of claims 1 to 16.

30. A light control device for a network system, characterized in that: The light control device comprises a processor, and the processor is used to execute program code so that the light control device performs the method according to any one of claims 17 to 22.

31. A computer-readable storage medium, characterized in that: At least one program code is stored in the storage medium, and the at least one program code is read by the processor to enable the light control device to execute the method according to any one of claims 17 to 22.

Citation Information

Cited By

  • Multi-path switchable optical fiber loop communication system and method

    CN120512173A