Method and apparatus for protecting a tangential ring network based on optical service unit (OSU)

By utilizing cross-connect configuration information and alarm information in the tangent ring network of the optical service unit (OSU), the receiver selection process is simplified, the reliability and complexity issues of service protection switching in the SNCP mechanism are resolved, and reliable protection switching for data transmission is achieved.

CN116320840BActive Publication Date: 2026-06-02HUAHUAN QINGYUAN (CHENGDU) TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAHUAN QINGYUAN (CHENGDU) TECH CO LTD
Filing Date
2023-02-20
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In the existing SNCP mechanism, the service receiver needs to have a highly reliable selection mechanism to ensure the reliability of service protection switching, and its implementation is also relatively complex.

Method used

By having the first and second OSU service interface boards obtain cross-connection configuration information and determine the interface status in the tangent ring network of the optical service unit (OSU), and decide whether to send OSU service data to the main control board based on alarm information, back-switch mode and recovery waiting time, the receiving end's selection process is simplified.

Benefits of technology

It improves the reliability of data transmission protection switching, simplifies the data processing complexity at the receiving end, and enhances the reliability of service protection switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320840B_ABST
    Figure CN116320840B_ABST
Patent Text Reader

Abstract

The application provides an optical service unit (OSU)-based tangent ring network protection method and device, relates to the technical field of communication, and is applied to a first device in a tangent ring network. The first device comprises a main control board, a plurality of OSU service interface boards and an Ethernet service board. The method comprises the following steps: a first OSU service interface board and a second OSU service interface board respectively acquire cross-connection configuration information of a first OSU service interface and cross-connection configuration information of a second OSU service interface; based on working interface information and protection interface information, the interface states corresponding to the first OSU service interface and the second OSU service interface are determined respectively; and based on the interface states, a back-to-normal mode, a waiting recovery time, and alarm information corresponding to the first OSU service interface and the second OSU service interface, it is determined whether to send first OSU service data to the main control board. The complexity of receiving data at a receiving end is simplified, and the reliability of data transmission protection switching is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method and apparatus for protecting a tangent ring network based on an optical service unit (OSU). Background Technology

[0002] Optical Service Unit (OSU) technology addresses the needs of customers accessing optical transport networks at different rates, while also requiring high reliability for these services.

[0003] In related technologies, Subnet Connection Protection (SNCP) is a commonly used protection method. SNCP adopts the basic principle of dual-transmit selective reception, equipping each working link with a protection link. When a working link fails, service data needs to be transmitted through the protection link. Therefore, the service receiving end needs to choose whether to receive service data from the working link or the protection link.

[0004] However, the SNCP mechanism requires a highly reliable selective receiving mechanism at the service receiving end to ensure reliable protection and switching of services, and its implementation is also quite complex. Summary of the Invention

[0005] This invention provides a tangent ring network protection method and apparatus based on Optical Service Unit (OSU) to solve the problem that the existing SNCP mechanism requires the service receiver to have a highly reliable selective receiver mechanism to ensure the reliability of service protection switching, and the implementation is also relatively complex.

[0006] This invention provides a protection method for a tangent ring network based on Optical Service Units (OSUs), applied to a first device in a tangent ring network. The first device includes a main control board, multiple OSU service interface boards, and an Ethernet service board. The method includes:

[0007] The first OSU service interface board and the second OSU service interface board respectively obtain the cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, switchback mode and waiting recovery time.

[0008] The first OSU service interface board and the second OSU service interface board determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface.

[0009] The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the waiting recovery time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively; the main control board is used to send the first OSU service data to the Ethernet service board.

[0010] According to the present invention, a tangential ring network protection method based on an Optical Service Unit (OSU) is provided, wherein the first OSU service interface board and the second OSU service interface board determine whether to send first OSU service data to the main control board based on the interface status, the back-switch mode, the recovery waiting time, and alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively, including:

[0011] When the interface state corresponding to the first OSU service interface is the working interface and the interface state corresponding to the second OSU service interface is the protection interface, and the first OSU service interface and the second OSU service interface are on different service interface boards, the first OSU service interface board and the second OSU service interface board respectively obtain the first alarm information corresponding to the first OSU service interface and the second alarm information corresponding to the second OSU service interface.

[0012] The first OSU service interface board sends the first alarm information to the second OSU service interface board;

[0013] The second OSU service interface board sends the second alarm information to the first OSU service interface board;

[0014] The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the waiting recovery time, respectively.

[0015] According to the present invention, a tangential ring network protection method based on an Optical Service Unit (OSU) is provided, wherein the first OSU service interface board determines whether to send first OSU service data to the main control board based on the first alarm information, the second alarm information, the back-off mode, and the waiting recovery time, including:

[0016] If the first alarm message occurs but the second alarm message does not occur, the first OSU service interface board stops sending the first OSU service data to the main control board;

[0017] When the first alarm message disappears and the second alarm message occurs, the first OSU service interface board resumes sending the first OSU service data to the main control board based on the back-off mode and the waiting recovery time.

[0018] According to the present invention, a tangential ring network protection method based on an Optical Service Unit (OSU) is provided, wherein the second OSU service interface board determines whether to send first OSU service data to the main control board based on the first alarm information, the second alarm information, the back-off mode, and the waiting recovery time, including:

[0019] If the first alarm message does not occur but the second alarm message occurs, the second OSU service interface board stops sending the first OSU service data to the main control board based on the switchback mode and the waiting recovery time;

[0020] When the first alarm message occurs and the second alarm message disappears, the second OSU service interface board resumes sending the first OSU service data to the main control board.

[0021] According to the present invention, a tangential ring network protection method based on optical service units (OSUs) is provided, the method further comprising:

[0022] The main control board pre-creates a multicast group and notifies the Ethernet service board; the multicast group includes a multicast identifier.

[0023] The Ethernet service board acquires the second OSU service data and writes the multicast identifier into the second OSU service data;

[0024] The Ethernet service board forwards the second OSU service data, including the multicast identifier, to the first OSU service interface and the second OSU service interface respectively through the first Ethernet switching module interface of the main control board.

[0025] According to the present invention, a tangential ring network protection method based on optical service unit (OSU) is provided, wherein the main control board pre-creates multicast groups, including:

[0026] When the cross-connection corresponding to the created OSU service is a bidirectional cross-connection, the main control board creates the multicast group; the multicast members of the multicast group include the second Ethernet switching module interface corresponding to the first OSU service interface and the third Ethernet switching module interface corresponding to the second OSU service interface.

[0027] According to a tangent ring network protection method provided by the present invention, the main control board pre-creates multicast groups, including:

[0028] If the cross-connection corresponding to the created OSU service is a one-way cross-connection, iterate through all one-way cross-connections.

[0029] Determine whether all unidirectional cross-connections have the same first OSU service interface and second OSU service interface;

[0030] If no two unidirectional cross-connects have the same first OSU service interface and second OSU service interface, the main control board creates the multicast group; the multicast members of the multicast group include the first destination interface of the cross-connection corresponding to the created OSU service;

[0031] If all unidirectional cross-connects have the same first OSU service interface and second OSU service interface, and the second destination interfaces of all unidirectional cross-connects are different, the main control board adds the switching module interface corresponding to the first destination interface to the multicast group.

[0032] This invention also provides a tangent ring network protection device based on Optical Service Unit (OSU), applied to a first device in a tangent ring network. The first device includes a main control board, multiple OSU service interface boards, and an Ethernet service board. The device includes:

[0033] The first acquisition module is used to acquire the cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, switchback mode and waiting recovery time;

[0034] The first determining module is used to determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface.

[0035] The second determining module is used to determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the waiting recovery time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively; the main control board is used to send the first OSU service data to the Ethernet service board.

[0036] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the tangent ring network protection method based on optical service unit (OSU) as described above.

[0037] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the tangent ring network protection method based on optical service unit (OSU) as described above.

[0038] The present invention provides a tangential ring network protection method and apparatus based on Optical Service Units (OSUs). The method involves obtaining cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the second OSU service interface corresponding to the second OSU service interface board through a first OSU service interface board and a second OSU service interface board, respectively. The cross-connection configuration information includes working interface information, protection interface information, back-off mode, and recovery waiting time. The first and second OSU service interface boards then determine the interface status corresponding to the first and second OSU service interfaces based on the working interface information and the protection interface information, respectively. The interface status is either a working interface or a protection interface. The first and second OSU service interface boards then determine whether to send first OSU service data to the main control board based on the interface status, back-off mode, recovery waiting time, and alarm information corresponding to the first and second OSU service interfaces, respectively. The main control board then sends the first OSU service data to the Ethernet service board. The method provided by this invention enables the first OSU service interface board and the second OSU service interface board to forward the first OSU service data through the interface status, switchback mode, waiting recovery time and alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively. This changes the selection and reception at the receiving end in the dual-transmit selection and reception mechanism adopted by SNCP to selection and transmission between the working interface and the protection interface at the transmitting end, which can simplify the complexity of receiving data at the receiving end and thus realize the reliability of data transmission protection switching. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0040] Figure 1 This is a flowchart illustrating the phase-tangent ring network protection method based on optical service unit (OSU) provided by the present invention.

[0041] Figure 2 This is a schematic diagram of the structure of the tangent loop network provided by the present invention;

[0042] Figure 3 This is a schematic diagram of the structure of the first device in the tangent ring network provided by the present invention;

[0043] Figure 4 This is a logical flowchart of the working interface provided by the present invention;

[0044] Figure 5 This is a logic flowchart of the protection interface provided by the present invention;

[0045] Figure 6 This is a schematic diagram of the OTU interface of the device at the tangent loop cutting point provided by the present invention;

[0046] Figure 7 This is a schematic diagram of the structure of the phase-tangent ring network protection device based on optical service unit (OSU) provided by the present invention;

[0047] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0049] The following is combined Figures 1-6 This invention describes a tangential ring network protection method based on an Optical Service Unit (OSU).

[0050] Figure 1 This is a flowchart illustrating the phase-tangent ring network protection method based on Optical Service Unit (OSU) provided by the present invention, as shown below. Figure 1 As shown, a first device applied in a tangent ring network includes a main control board, multiple OSU service interface boards, and an Ethernet service board. The method includes steps 101-103; wherein,

[0051] Step 101: The first OSU service interface board and the second OSU service interface board respectively obtain the cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, switchback mode and waiting recovery time.

[0052] It should be noted that the tangent ring network protection method provided by this invention is applicable to protection scenarios of tangent ring networks. The executing entity of this method can be a tangent ring network protection device, such as an electronic device, or a control module in a tangent ring network protection device for executing the tangent ring network protection method. The electronic device can be the first device in the tangent ring network.

[0053] Figure 2 This is a schematic diagram of the structure of the tangent loop network provided by the present invention, as shown below. Figure 2 As shown, the tangent ring network includes Network Equipment 1 (NE1), NE2, NE3, NE4, NE5, NE6, and NE7. The Gigabit Ethernet (GE) access service of NE1 and the GE access service of NE6 are interconnected, and they can maintain interconnection even if any network device in the tangent ring network fails. Therefore, protection measures need to be configured at nodes NE1, NE3, and NE6. Thus, the first device can be either NE1 or NE6 in the tangent ring network.

[0054] Figure 3 This is a schematic diagram of the structure of the first device in the tangent ring network provided by the present invention, as shown below. Figure 3 As shown, the first device includes a first OSU service board 301, a second OSU service board 302, a main control board 303, and an Ethernet service board 304. The main control board 303 is connected to the first OSU service board 301, the second OSU service board 302, and the Ethernet service board 304 via a backplane 305. The main control board 303 consists of a central processing unit (CPU) and a first Ethernet switching module interface 3031, a second Ethernet switching module interface 3032, and a third Ethernet switching module interface 3033. The Ethernet switching module can forward Ethernet packets. Both the first OSU service board 301 and the second OSU service board 302 consist of a CPU and an optical transformation unit (OCR). The system consists of an OTU (Over-The-Unit) interface module and an OSU service adaptation module. Each OTU interface module's OTU interface corresponds to an Ethernet switching module interface in the main control board 303. For example, the OTU-1 interface of the OTU interface module in the first OSU service board 301 corresponds to the second Ethernet switching module interface 3032 in the main control board 303, and the OTU-2 interface of the OTU interface module in the second OSU service board 302 corresponds to the third Ethernet switching module interface 3033 in the main control board 303. Cross-connection of OSU services is ultimately achieved through the Ethernet switching module, eliminating the need for a dedicated OSU cross-connect module and unifying Ethernet packet switching and OSU cross-connection.

[0055] Specifically, the network management system configures the cross-connect configuration information through the main control board. The main control board then distributes the cross-connect configuration information to the service interface boards corresponding to the first OSU service interface (e.g., OTU-1 interface) and the second OSU service interface (e.g., OTU-2 interface). Figure 3 The first and second OSU service boards shown in the diagram, along with the main control board, also distribute cross-connect configuration information to the Ethernet service boards. This cross-connect configuration information includes working interface information, protection interface information, fallback mode (i.e., whether to fall back), and Wait to Restore (WTR) time. Therefore, the first and second OSU service interface boards can respectively obtain the cross-connect configuration information for the first and second OSU service interfaces.

[0056] In practice, when the Ethernet service board is receiving data from the OTU interface to the GE interface, it needs to select one OSU interface board from the first OSU interface board and the second OSU interface board.

[0057] Step 102: The first OSU service interface board and the second OSU service interface board determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface.

[0058] Specifically, after the first OSU service interface board obtains the cross-connection configuration information of the first OSU service interface and the second OSU service interface board obtains the cross-connection configuration information of the second OSU service interface, the first OSU service interface board and the second OSU service interface board can determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information in the cross-connection configuration information. Among them, the interface status is either a working interface or a protection interface. That is, after the OSU service interface is configured with services, the interface status corresponding to each OSU service interface can be determined as a working interface or a protection interface according to the cross-connection configuration information.

[0059] It should be noted that the interface status of the first OSU service interface can be either a working interface or a protected interface; similarly, the interface status of the second OSU service interface can also be either a working interface or a protected interface. For example, if the first OSU service interface is in a working state, the second OSU service interface is a protected interface. Conversely, if the first OSU service interface is in a protected state, the second OSU service interface is in a working state.

[0060] Step 103: The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the waiting recovery time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively.

[0061] Specifically, when the OSU service boards corresponding to the first OSU service interface and the second OSU service interface are on different interface boards (i.e., the interface board corresponding to the first OSU service interface is the first OSU service interface board, and the interface board corresponding to the second OSU service interface is the second OSU service interface board), the two interface boards (i.e., the working interface board and the protection interface board) also need to inform each other of their own OSU service alarm information. The alarm information is queried by the CPU of the OSU service board from the OSU service module periodically (e.g., every 1 millisecond (ms)). Therefore, the first OSU service interface board and the second OSU service interface board can further determine whether to send the first OSU service data to the main control board based on the interface status, switchback mode, recovery waiting time, and the alarm information corresponding to the first and second OSU service interfaces, respectively. After receiving the first OSU service data, the main control board sends the first OSU service data to the Ethernet service board, which then forwards the first OSU service data to other network devices in the tangent ring network, realizing GE service transmission based on OSU.

[0062] The present invention provides a tangential ring network protection method based on Optical Service Units (OSUs). The method involves obtaining cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the second OSU service interface corresponding to the second OSU service interface board, respectively, through a first OSU service interface board and a second OSU service interface board. The cross-connection configuration information includes working interface information, protection interface information, back-off mode, and recovery waiting time. The first and second OSU service interface boards then determine the interface status corresponding to the first and second OSU service interfaces based on the working interface information and the protection interface information, respectively. The interface status is either a working interface or a protection interface. The first and second OSU service interface boards then determine whether to send first OSU service data to the main control board based on the interface status, back-off mode, recovery waiting time, and alarm information corresponding to the first and second OSU service interfaces, respectively. The main control board then sends the first OSU service data to the Ethernet service board. The method provided by this invention enables the first OSU service interface board and the second OSU service interface board to forward the first OSU service data through the interface status, switchback mode, waiting recovery time and alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively. This changes the selection and reception at the receiving end in the dual-transmit selection and reception mechanism adopted by SNCP to selection and transmission between the working interface and the protection interface at the transmitting end, which can simplify the complexity of receiving data at the receiving end and thus realize the reliability of data transmission protection switching.

[0063] Optionally, the specific implementation of step 103 above includes:

[0064] 1) When the interface state corresponding to the first OSU service interface is the working interface and the interface state corresponding to the second OSU service interface is the protection interface, and the first OSU service interface and the second OSU service interface are on different service interface boards, the first OSU service interface board and the second OSU service interface board respectively obtain the first alarm information corresponding to the first OSU service interface and the second alarm information corresponding to the second OSU service interface.

[0065] Specifically, when the interface state corresponding to the first OSU service interface is a working interface and the interface state corresponding to the second OSU service interface is a protected interface, and the first OSU service interface and the second OSU service interface are on different service interface boards, the first alarm information corresponding to the first OSU service interface is obtained by the CPU of the first OSU service board periodically querying the OSU service module of the first OSU service board, and the second alarm information corresponding to the second OSU service interface is obtained by the CPU of the second OSU service board periodically querying the OSU service module of the second OSU service board.

[0066] 2) The first OSU service interface board sends the first alarm information to the second OSU service interface board.

[0067] Specifically, when the first OSU service interface and the second OSU service interface are on different service interface boards, the two service interface boards must also notify each other of the alarm status of their own OSU services. When there is an OSU alarm on the working interface, the first OSU service interface board sends the first alarm information corresponding to the first OSU service interface to the second OSU service interface board.

[0068] 3) The second OSU service interface board sends the second alarm information to the first OSU service interface board.

[0069] Specifically, when there is an OSU alarm on the protection interface, the second OSU service interface board sends the second alarm information corresponding to the second OSU service interface to the first OSU service interface board.

[0070] 4) The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the back-off mode and the waiting recovery time, respectively.

[0071] Specifically, the first OSU service interface board and the second OSU service interface board can further determine whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the waiting recovery time, respectively.

[0072] Optionally, the first OSU service interface board determines whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the recovery waiting time, including:

[0073] If the first alarm message occurs but the second alarm message does not occur, the first OSU service interface board stops sending the first OSU service data to the main control board; if the first alarm message disappears but the second alarm message occurs, the first OSU service interface board resumes sending the first OSU service data to the main control board based on the switchback mode and the waiting recovery time.

[0074] Specifically, when the first alarm information corresponding to the first OSU service interface (working interface) occurs and the second alarm information corresponding to the second OSU service interface (protection interface) does not occur, the CPU of the first OSU service board corresponding to the first OSU service interface controls the OSU service module of the first OSU service board to stop sending the first OSU service data to the main control board. At the same time, after receiving the second alarm information corresponding to the first OSU service board, the second OSU service board corresponding to the second OSU service interface immediately sends the first OSU service data to the main control board, realizing the protection switching from the working link to the protection link.

[0075] When the first alarm message disappears and the second alarm message occurs, the first OSU service interface board decides whether to resume sending the first OSU service data to the main control board based on the switchback mode and the recovery waiting time. At the same time, the second OSU service interface makes a corresponding judgment on whether to stop sending the first OSU service data. When the switchback mode is switchback and the recovery waiting time has expired, the first OSU service interface resumes sending the first OSU service data to the main control board, and the second OSU service interface stops sending the first OSU service data.

[0076] Figure 4 This is a logical flowchart of the working interface provided by the present invention, such as... Figure 4 As shown, steps 401-411 are included; wherein,

[0077] Step 401: The first OSU service interface board reads the first alarm information corresponding to the first OSU service interface, obtains the second alarm information corresponding to the second OSU service interface, and updates the alarm information corresponding to the second OSU service interface.

[0078] Step 402: The first OSU service interface board notifies the second OSU service interface board of the first alarm information;

[0079] Step 403: Determine whether a first alarm message has been generated. If a first alarm message has been generated, proceed to step 404; if no first alarm message has been generated, proceed to step 406.

[0080] Step 404: Determine whether the first OSU service interface is working and whether the second OSU service interface has not generated the second alarm information. If the first OSU service interface is working and the second OSU service interface has not generated the second alarm information, proceed to step 405; if the first OSU service interface is not working and the second OSU service interface has generated the second alarm information, proceed to step 410.

[0081] Step 405: The first OSU service interface board stops sending the first OSU service data to the main control board;

[0082] Step 406: Determine whether the second OSU service interface is working and has generated a second alarm message. If the second OSU service interface is working and has generated a second alarm message, proceed to step 407; if the second OSU service interface is working but has not generated a second alarm message, proceed to step 408.

[0083] Step 407: Determine whether the fallback mode and recovery waiting time corresponding to the first OSU service interface have expired. If the fallback mode corresponding to the first OSU service interface is fallback and the recovery waiting time has expired, proceed to step 409; if the fallback mode corresponding to the first OSU service interface is no fallback and the recovery waiting time has not expired, proceed to step 410.

[0084] Step 408: The first OSU service interface board sends the first OSU service data to the main control board;

[0085] Step 409: The first OSU service interface board begins to resume sending the first OSU service data to the main control board;

[0086] Step 410: Update the interface status corresponding to the first OSU service interface and the second OSU service interface respectively.

[0087] Optionally, the second OSU service interface board determines whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the recovery waiting time, including:

[0088] If the first alarm message does not occur but the second alarm message occurs, the second OSU service interface board stops sending the first OSU service data to the main control board based on the switchback mode and the waiting recovery time; if the first alarm message occurs and the second alarm message disappears, the second OSU service interface board resumes sending the first OSU service data to the main control board.

[0089] Specifically, if the first alarm information corresponding to the first OSU service interface (working interface) does not occur but the second alarm information corresponding to the second OSU service interface (protection interface) occurs, the second OSU service interface board decides whether to stop sending the first OSU service data to the main control board based on the back-off mode and the waiting recovery time. At the same time, the first OSU service interface board makes a corresponding judgment on whether to stop sending the first OSU service data. If the back-off mode is back-off and the waiting recovery time has expired, the second OSU service interface board stops sending the first OSU service data to the main control board. At the same time, after receiving the first alarm information corresponding to the first OSU service interface, the first OSU service board corresponding to the first OSU service interface immediately sends the first OSU service data to the main control board, realizing the protection switch from the protection link to the working link.

[0090] When the first alarm message occurs and the second alarm message disappears, the CPU of the first OSU service board corresponding to the first OSU service interface controls the OSU service module of the first OSU service board to stop sending the first OSU service data to the main control board. At the same time, after the second OSU service board corresponding to the second OSU service interface receives the second alarm message corresponding to the first OSU service board, the second OSU service interface board starts to resume sending the first OSU service data to the main control board.

[0091] Figure 5 This is a logic flowchart of the protection interface provided by the present invention, such as... Figure 5 As shown, steps 501-511 are included; wherein,

[0092] Step 501: The second OSU service interface board reads the second alarm information corresponding to the second OSU service interface, obtains the first alarm information corresponding to the first OSU service interface, and updates the alarm information corresponding to the first OSU service interface.

[0093] Step 502: The second OSU service interface board notifies the first OSU service interface board of the second alarm information;

[0094] Step 503: Determine whether a second alarm message has been generated. If a second alarm message has been generated, proceed to step 504; if no second alarm message has been generated, proceed to step 508.

[0095] Step 504: Determine whether the second OSU service interface is working and whether the first OSU service interface has not generated a second alarm message. If the second OSU service interface is working and the first OSU service interface has not generated a second alarm message, proceed to step 505; if the second OSU service interface is not working and the first OSU service interface has generated a second alarm message, proceed to step 507.

[0096] Step 505: Determine whether the fallback mode and recovery waiting time corresponding to the second OSU service interface have expired. If the fallback mode corresponding to the second OSU service interface is fallback and the recovery waiting time has expired, proceed to step 506; if the fallback mode corresponding to the second OSU service interface is no fallback and the recovery waiting time has not expired, proceed to step 507.

[0097] Step 506: The second OSU service interface board stops sending the first OSU service data to the main control board;

[0098] Step 507: The second OSU service interface board sends the first OSU service data to the main control board;

[0099] Step 508: Determine whether the first OSU service interface is working and has generated the first alarm message. If the first OSU service interface is working and has generated the first alarm message, proceed to step 509; if the first OSU service interface is not working and has not generated the first alarm message, proceed to step 510.

[0100] Step 509: The second OSU service interface board sends the first OSU service data to the main control board;

[0101] Step 510: The first OSU service interface board sends the first OSU service data to the main control board;

[0102] Step 511: Update the interface status corresponding to the first OSU service interface and the second OSU service interface respectively.

[0103] Optionally, the method further includes:

[0104] a) The main control board pre-creates a multicast group and notifies the Ethernet service board; the multicast group includes a multicast identifier.

[0105] Specifically, from the GE interface corresponding to the Ethernet service board to the OTU interface corresponding to the OSU service board, the GE access service corresponding to the Ethernet service board needs to be forwarded to both the OTU-1 interface (working interface) and the OTU-2 interface (protection interface) simultaneously, thus achieving dual transmission of the GE access service to the OTU interface. When configuring the GE access service of the cross-connection, the main control board simultaneously creates a multicast group in advance, records this multicast identifier (multicast ID), and notifies the Ethernet service board; the multicast group includes a multicast identifier, which is used to identify the multicast group.

[0106] b) The Ethernet service board acquires the second OSU service data and writes the multicast identifier into the second OSU service data.

[0107] Specifically, the Ethernet service board acquires the second OSU service data and sends the second OSU service data to the main control board. The Ethernet service board writes the multicast identifier into the header of the data packet corresponding to the second OSU service data sent to the main control board, thereby obtaining the second OSU service data including the multicast identifier.

[0108] c) The Ethernet service board forwards the second OSU service data, including the multicast identifier, to the first OSU service interface and the second OSU service interface respectively through the first Ethernet switching module interface of the main control board.

[0109] Specifically, the Ethernet service board sends the second OSU service data, including the multicast identifier, to the main control board. The first Ethernet switching module interface of the main control board distributes the second OSU service data, including the multicast identifier, to the second Ethernet switching module interface and the third Ethernet switching module interface of the main control board. The second Ethernet switching module interface and the third Ethernet switching module interface of the main control board forward the second OSU service data to the first OSU service board and the second OSU service board, respectively. Then, the OSU service adaptation modules of the first OSU service board and the second OSU service board send the data to the corresponding first OSU service interface (e.g., OTU-1 interface) and second OSU service interface (e.g., OTU-2 interface), respectively, thereby enabling the dual transmission of GE access services to the two OTU service interfaces.

[0110] Optionally, the main control board pre-creates multicast groups, including:

[0111] When the cross-connection corresponding to the created OSU service is a bidirectional cross-connection, the main control board creates the multicast group; the multicast members of the multicast group include the second Ethernet switching module interface corresponding to the first OSU service interface and the third Ethernet switching module interface corresponding to the second OSU service interface.

[0112] Specifically, when creating a protected OSU service cross-connection, it is first necessary to determine whether the created OSU service is a bidirectional cross-connection service. If the cross-connection corresponding to the created OSU service is a bidirectional cross-connection, that is, if the configured OSU service is a bidirectional cross-connection service, the main control board needs to create a multicast group from the GE interface to the two mutually protected OTU interfaces. The multicast members of the multicast group include the second Ethernet switching module interface corresponding to the first OSU service interface and the third Ethernet switching module interface corresponding to the second OSU service interface.

[0113] Optionally, the main control board pre-creates multicast groups, including:

[0114] 1) If the cross-connection corresponding to the created OSU service is a one-way cross-connection, traverse all one-way cross-connections.

[0115] Specifically, when the cross-connection corresponding to the created OSU service is a unidirectional cross-connection, that is, when configuring a service with a unidirectional cross-connection, the main control board also needs to create a multicast group. In this case, it is necessary to traverse all unidirectional cross-connections.

[0116] 2) Determine whether all unidirectional cross-connections have the same first OSU service interface and second OSU service interface.

[0117] Specifically, it determines whether all unidirectional cross-connects have the same first OSU service interface and second OSU service interface, that is, whether all unidirectional cross-connects have the same working interface and protection interface.

[0118] 3) If no identical first OSU service interface and second OSU service interface exist in any of the unidirectional cross-connections, the main control board creates the multicast group; the multicast members of the multicast group include the first destination interface of the cross-connection corresponding to the created OSU service.

[0119] Specifically, if none of the unidirectional cross-connects have the same first OSU service interface and second OSU service interface, that is, if none of the unidirectional cross-connects have the same working interface and protection interface, the main control board should create a multicast group. The multicast members of the multicast group include the first destination interface of the cross-connection corresponding to the created OSU service, that is, the multicast members of the multicast group only have the destination interface.

[0120] 4) If all unidirectional cross-connects have the same first OSU service interface and second OSU service interface, and the second destination interfaces of all unidirectional cross-connects are different, the main control board adds the switching module interface corresponding to the first destination interface to the multicast group.

[0121] It should be noted that each unidirectional cross-connection corresponds to a multicast identifier. For example, if there are N unidirectional cross-connections, where N is a positive integer, the number of corresponding multicast identifiers is not N. For instance, the number of multicast identifiers is less than N.

[0122] Specifically, the unidirectional cross-connection corresponding to the created OSU service is compared with N unidirectional cross-connections to determine whether all unidirectional cross-connections have the same first OSU service interface and second OSU service interface. If all unidirectional cross-connections have the same first OSU service interface and second OSU service interface, and the second destination interfaces of all unidirectional cross-connections are different, then the main control board needs to add the switching module corresponding to the first destination interface of the cross-connection corresponding to the created OSU service to the already created multicast group.

[0123] To further illustrate the multicast group in detail, an NE3 device in a tangent ring network will be used as an example.

[0124] Figure 6 This is a schematic diagram of the OTU interface of the device at the tangent loop cutting point provided by the present invention, as shown below. Figure 6As shown, the device (e.g., NE3) includes four OTU interfaces. Each OTU interface needs to be protected in each direction. Therefore, four unidirectional cross-connections need to be configured, for example: 1) a unidirectional cross-connection from OTU-1 to OTU-3, where OTU-2 is the protection interface; 2) a unidirectional cross-connection from OTU-1 to OTU-4, where OTU-2 is the protection interface; 3) a unidirectional cross-connection from OTU-3 to OTU-1, where OTU-4 is the protection interface; 4) a unidirectional cross-connection from OTU-3 to OTU-2, where OTU-4 is the protection interface.

[0125] Based on the four unidirectional cross-connections configured above, unidirectional cross-connections 1) and 2) have the same working and protection interfaces, but different destination interfaces. That is, either OTU-1 or OTU-2 needs to forward data to OTU-3 and OTU-4. Therefore, the switching module interfaces corresponding to destination interfaces OTU-3 and OTU-4 are grouped into a multicast group. Similarly, unidirectional cross-connections 3) and 4) have the same working and protection interfaces, but different destination interfaces. Therefore, the switching module interfaces corresponding to destination interfaces OTU-1 and OTU-2 are grouped into a multicast group.

[0126] Furthermore, in Figure 2 In the illustrated tangent ring network, NE1 and NE6 each have a bidirectional cross-connect with bidirectional protection on their corresponding GE interfaces. At the tangent point NE3, four unidirectional cross-connects with unidirectional protection are configured. Furthermore, NE1->NE2->NE3->NE5->NE6 is configured as the working link, and NE1->NE4->NE3->NE7->NE6 is configured as the protection link. This ensures that even if a fault occurs between NE1 and NE3, or between NE3 and NE6, the GE access service between NE1 and NE6 nodes can still be maintained.

[0127] The following describes the tangent ring network protection device based on optical service unit (OSU) provided by the present invention. The tangent ring network protection device based on optical service unit (OSU) described below can be referred to in correspondence with the tangent ring network protection method based on optical service unit (OSU) described above.

[0128] Figure 7 This is a schematic diagram of the structure of the phase-tangent ring network protection device based on optical service unit (OSU) provided by the present invention, as shown below. Figure 7 As shown, a first device applied in a tangent ring network includes a main control board, multiple OSU service interface boards, and an Ethernet service board. The tangent ring network protection device 700 includes: a first acquisition module 701, a first determination module 702, and a second determination module 703; wherein,

[0129] The first acquisition module 701 is used to acquire the cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, switchback mode and waiting recovery time.

[0130] The first determining module 702 is used to determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface.

[0131] The second determining module 703 is used to determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the waiting recovery time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively; the main control board is used to send the first OSU service data to the Ethernet service board.

[0132] The present invention provides a tangential ring network protection device based on Optical Service Units (OSUs). This device acquires cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the second OSU service interface corresponding to the second OSU service interface board. The cross-connection configuration information includes working interface information, protection interface information, back-off mode, and recovery waiting time. Based on the working interface information and the protection interface information, the device determines the interface status of the first and second OSU service interfaces, respectively. The interface status is either a working interface or a protection interface. Then, based on the interface status, back-off mode, recovery waiting time, and alarm information corresponding to the first and second OSU service interfaces, the device determines whether to send first OSU service data to the main control board. The main control board then sends the first OSU service data to the Ethernet service board. The device provided by the present invention realizes the forwarding of the first OSU service data through the interface status, switchback mode, waiting recovery time and alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively. It changes the selection and reception at the receiving end in the dual transmission and reception mechanism adopted by SNCP to the selection and transmission between the working interface and the protection interface at the transmitting end, which can simplify the complexity of receiving data at the receiving end and thus realize the reliability of data transmission protection switching.

[0133] Optionally, the second determining module 703 is specifically used for:

[0134] When the interface state corresponding to the first OSU service interface is the working interface and the interface state corresponding to the second OSU service interface is the protection interface, and the first OSU service interface and the second OSU service interface are on different service interface boards, the first alarm information corresponding to the first OSU service interface and the second alarm information corresponding to the second OSU service interface are obtained respectively.

[0135] Send the first alarm information to the second OSU service interface board;

[0136] Send the second alarm information to the first OSU service interface board;

[0137] Based on the first alarm information, the second alarm information, the switchback mode, and the waiting recovery time, it is determined whether to send the first OSU service data to the main control board.

[0138] Optionally, the second determining module 703 is specifically used for:

[0139] If the first alarm message occurs but the second alarm message does not occur, stop sending the first OSU service data to the main control board;

[0140] If the first alarm message disappears and the second alarm message occurs, the first OSU service data is resumed to be sent to the main control board based on the switchback mode and the waiting recovery time.

[0141] Optionally, the second determining module 703 is specifically used for:

[0142] If the first alarm message does not occur but the second alarm message occurs, based on the switchback mode and the waiting recovery time, the transmission of the first OSU service data to the main control board shall be stopped;

[0143] If the first alarm message occurs and the second alarm message disappears, the transmission of the first OSU service data to the main control board is resumed.

[0144] Optionally, the tangent loop network protection device 700 further includes:

[0145] A creation module is used to pre-create multicast groups and notify the Ethernet service board; the multicast group includes a multicast identifier;

[0146] The second acquisition module is used to acquire the second OSU service data and write the multicast identifier into the second OSU service data;

[0147] The forwarding module is used to forward the second OSU service data, including the multicast identifier, to the first OSU service interface and the second OSU service interface respectively through the first Ethernet switching module interface of the main control board.

[0148] Optionally, the creation module is specifically used for:

[0149] When the cross-connection corresponding to the created OSU service is a bidirectional cross-connection, the multicast group is created; the multicast members of the multicast group include the second Ethernet switching module interface corresponding to the first OSU service interface and the third Ethernet switching module interface corresponding to the second OSU service interface.

[0150] Optionally, the creation module is specifically used for:

[0151] If the cross-connection corresponding to the created OSU service is a one-way cross-connection, iterate through all one-way cross-connections.

[0152] Determine whether all unidirectional cross-connections have the same first OSU service interface and second OSU service interface;

[0153] If no two unidirectional cross-connects have the same first OSU service interface and second OSU service interface, the multicast group is created; the multicast members of the multicast group include the first destination interface of the cross-connection corresponding to the created OSU service.

[0154] If all unidirectional cross-connects have the same first OSU service interface and second OSU service interface, and the second destination interfaces of all unidirectional cross-connects are different, the third switching module interface corresponding to the first destination interface is added to the multicast group.

[0155] Figure 8 This is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as... Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call logical instructions in the memory 830 to execute a tangential ring network protection method based on Optical Service Units (OSUs). This method includes: a first OSU service interface board and a second OSU service interface board respectively acquiring cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, back-off mode, and recovery waiting time; the first OSU service interface board and the second OSU service interface board respectively determine the interface status corresponding to the first OSU service interface and the second OSU service interface based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface; the first OSU service interface board and the second OSU service interface board respectively determine whether to send first OSU service data to the main control board based on the interface status, the back-off mode, the recovery waiting time, and alarm information corresponding to the first OSU service interface and the second OSU service interface; the main control board is used to send the first OSU service data to the Ethernet service board.

[0156] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0157] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the phase-tangent ring network protection method based on optical service units (OSUs) provided by the above methods. The method includes: a first OSU service interface board and a second OSU service interface board respectively acquiring cross-connection configuration information of a first OSU service interface corresponding to the first OSU service interface board and cross-connection configuration information of a second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, back-off mode, and recovery waiting time; the first OSU service interface board... The service interface board and the second OSU service interface board determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface; the first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the recovery waiting time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface respectively; the main control board is used to send the first OSU service data to the Ethernet service board.

[0158] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0159] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A tangent-loop network protection method based on Optical Service Unit (OSU), characterized in that, A first device applied in a tangent ring network, the first device comprising a main control board, multiple OSU service interface boards, and an Ethernet service board, the method comprising: The first OSU service interface board and the second OSU service interface board respectively obtain the cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, switchback mode and waiting recovery time. The first OSU service interface board and the second OSU service interface board determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface. The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the waiting recovery time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively; the main control board is used to send the first OSU service data to the Ethernet service board.

2. The method for protecting a tangent-loop network based on an optical service unit (OSU) according to claim 1, characterized in that, The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the recovery waiting time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively, including: When the interface state corresponding to the first OSU service interface is the working interface and the interface state corresponding to the second OSU service interface is the protection interface, and the first OSU service interface and the second OSU service interface are on different service interface boards, the first OSU service interface board and the second OSU service interface board respectively obtain the first alarm information corresponding to the first OSU service interface and the second alarm information corresponding to the second OSU service interface. The first OSU service interface board sends the first alarm information to the second OSU service interface board; The second OSU service interface board sends the second alarm information to the first OSU service interface board; The first OSU service interface board and the second OSU service interface board determine whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the waiting recovery time, respectively.

3. The method for protecting a tangent-loop network based on an optical service unit (OSU) according to claim 2, characterized in that, The first OSU service interface board determines whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the recovery waiting time, including: If the first alarm message occurs but the second alarm message does not occur, the first OSU service interface board stops sending the first OSU service data to the main control board; When the first alarm message disappears and the second alarm message occurs, the first OSU service interface board resumes sending the first OSU service data to the main control board based on the back-off mode and the waiting recovery time.

4. The method for protecting a tangent-loop network based on an optical service unit (OSU) according to claim 2, characterized in that, The second OSU service interface board determines whether to send the first OSU service data to the main control board based on the first alarm information, the second alarm information, the switchback mode, and the recovery waiting time, including: If the first alarm message does not occur but the second alarm message occurs, the second OSU service interface board stops sending the first OSU service data to the main control board based on the switchback mode and the waiting recovery time; When the first alarm message occurs and the second alarm message disappears, the second OSU service interface board resumes sending the first OSU service data to the main control board.

5. The method for protecting a tangent-loop network based on an Optical Service Unit (OSU) according to any one of claims 2-4, characterized in that, The method further includes: The main control board pre-creates a multicast group and notifies the Ethernet service board; the multicast group includes a multicast identifier. The Ethernet service board acquires the second OSU service data and writes the multicast identifier into the second OSU service data; The Ethernet service board forwards the second OSU service data, including the multicast identifier, to the first OSU service interface and the second OSU service interface respectively through the first Ethernet switching module interface of the main control board.

6. The method for protecting a tangent-loop network based on an optical service unit (OSU) according to claim 5, characterized in that, The main control board pre-creates multicast groups, including: When the cross-connection corresponding to the created OSU service is a bidirectional cross-connection, the main control board creates the multicast group; the multicast members of the multicast group include the second Ethernet switching module interface corresponding to the first OSU service interface and the third Ethernet switching module interface corresponding to the second OSU service interface.

7. The method for protecting a tangent-loop network based on an optical service unit (OSU) according to claim 5, characterized in that, The main control board pre-creates multicast groups, including: If the cross-connection corresponding to the created OSU service is a one-way cross-connection, iterate through all one-way cross-connections. Determine whether all unidirectional cross-connections have the same first OSU service interface and second OSU service interface; If no two unidirectional cross-connects have the same first OSU service interface and second OSU service interface, the main control board creates the multicast group; the multicast members of the multicast group include the first destination interface of the cross-connection corresponding to the created OSU service; If all unidirectional cross-connects have the same first OSU service interface and second OSU service interface, and the second destination interfaces of all unidirectional cross-connects are different, the main control board adds the switching module interface corresponding to the first destination interface to the multicast group.

8. A tangent ring network protection device based on an optical service unit (OSU), characterized in that, A first device applied in a tangent ring network, the first device comprising a main control board, multiple OSU service interface boards, and an Ethernet service board, the device comprising: The first acquisition module is used to acquire the cross-connection configuration information of the first OSU service interface corresponding to the first OSU service interface board and the cross-connection configuration information of the second OSU service interface corresponding to the second OSU service interface board; the cross-connection configuration information includes working interface information, protection interface information, switchback mode and waiting recovery time; The first determining module is used to determine the interface status corresponding to the first OSU service interface and the second OSU service interface respectively based on the working interface information and the protection interface information; the interface status is either a working interface or a protection interface. The second determining module is used to determine whether to send the first OSU service data to the main control board based on the interface status, the switchback mode, the waiting recovery time, and the alarm information corresponding to the first OSU service interface and the second OSU service interface, respectively; the main control board is used to send the first OSU service data to the Ethernet service board.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the tangent ring network protection method based on optical service unit (OSU) as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the tangent ring network protection method based on optical service unit (OSU) as described in any one of claims 1 to 7.