Trunk optical fiber protection method and apparatus, device, and readable storage medium

By detecting and updating the status of the main and backup PON ports in the PON protection group, the main and backup switching of the backbone optical fiber is performed only when the backup PON port is available, the invalid switching and frequent switching in the backbone optical fiber protection in the prior art is solved. Improved system performance.

WO2024255578A1PCT designated stage expired Publication Date: 2024-12-19ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/095499
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-13
Filing Date
2024-05-27
Publication Date
2024-12-19

AI Technical Summary

Technical Problem

The existing backbone fiber protection methods have problems of invalid switching and frequent switching in some scenarios, resulting in waste of system resources and reduced performance.

Method used

By establishing the status information of the main and backup PON ports in the PON protection group, detecting and uplink optical signals, the main and backup switching of the main optical fiber is only performed when the backup PON port is normal, avoiding invalid switching and frequent switching.

Benefits of technology

It effectively solves the problems of invalid switching and frequent switching of backbone optical fibers, saves system resources, and improves system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024095499_19122024_PF_FP_ABST
    Figure CN2024095499_19122024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a trunk optical fiber protection method and apparatus, a device, and a readable storage medium. The trunk optical fiber protection method comprises: on the basis of a PON protection group, establishing PON port state information, wherein the PON protection group comprises at least two PON ports, the PON port state information at least comprises a main PON port state and a standby PON port state, a main PON port is a currently working PON port, and a standby PON port is a currently non-working PON port; when it is confirmed that an online ONU is present among at least one ONU corresponding to the PON protection group, on the basis of detection of uplink optical signals of the main and standby PON ports, detecting and updating the main and standby PON port states; and when the main PON port state is not normal, controlling switching of a trunk optical fiber from the main PON port to the standby PON port on the basis of the standby PON port state.
Need to check novelty before this filing date? Find Prior Art

Description

A trunk optical fiber protection method, device, equipment and readable storage medium

[0001] Cross-references

[0002] The present invention claims priority to a Chinese patent application filed with the Patent Office of China on June 13, 2023, with application number 202310699680.X and titled “A trunk optical fiber protection method, device, equipment and readable storage medium”. The entire contents of the application are incorporated herein by reference. Technical Field

[0003] The present application relates to the field of optical communications, and in particular to a trunk optical fiber protection method, device, equipment, and readable storage medium. Background Art

[0004] PON (Passive Optical Network) is a communication technology that uses a P2MP (point-to-multipoint) topology. Based on its operating mechanism, it can be divided into EPON (Ethernet Passive Optical Network), G-PON (Gigabit-capable Passive Optical Network), and other passive optical network devices with other operating mechanisms. These passive optical network devices have the same system architecture, including the central office equipment OLT (Optical Line Terminal), ODN (Optical Distribution Network), and user-end equipment ONU (Optical Network Unit). The OLT aggregates multiple ONUs through the PON port, forming a point (OLT) to multipoint (ONU) topology.

[0005] In a passive optical network (PON) network, a break in the trunk fiber connecting the PON port of the OLT and the primary optical splitter in the ODN will disrupt services for all ONUs connected to that trunk fiber. Therefore, trunk fiber protection is typically achieved through active / standby switching. However, in some scenarios, this trunk fiber protection can suffer from ineffective or frequent switching, consuming significant system resources and degrading system performance, making it a pressing technical issue in existing technologies.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide a trunk optical fiber protection method, device, equipment and readable storage medium, which can solve the problems of ineffective switching and frequent switching of trunk optical fibers and improve system performance.

[0008] In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0009] In a first aspect, a trunk optical fiber protection method is provided, comprising: establishing PON port status information based on a passive optical network (PON) protection group, wherein the PON protection group includes at least two PON ports, and the at least two PON ports are connected to at least one optical network unit (ONU) corresponding to the PON protection group through respective trunk optical fibers, and the PON port status information includes at least a primary PON port status and a backup PON port status, the primary PON port being a currently working PON port of the at least two PON ports, and the backup PON port being a currently non-working PON port of the at least two PON ports; upon confirming that an ONU is online in at least one ONU corresponding to the PON protection group, detecting and updating the status of the primary and backup PON ports based on detection of upstream optical signals of the primary and backup PON ports; and controlling execution of trunk optical fiber primary-backup switching based on the status of the backup PON port when the status of the primary PON port is abnormal.

[0010] In a second aspect, a trunk optical fiber protection device is provided, comprising: an establishment module for establishing PON port status information based on a PON protection group, wherein the PON protection group includes at least two PON ports, and the at least two PON ports are connected to at least one ONU corresponding to the PON protection group through respective trunk optical fibers, and the PON port status information includes at least a primary PON port status and a backup PON port status, the primary PON port being a currently working PON port of the at least two PON ports, and the backup PON port being a currently non-working PON port of the at least two PON ports; a detection and update module for detecting and updating the status of the primary and backup PON ports based on detection of upstream optical signals of the primary and backup PON ports when confirming that an ONU is online in the at least one ONU corresponding to the PON protection group; and a switching control module for controlling execution of trunk optical fiber primary-backup switching based on the backup PON port status when the status of the primary PON port is abnormal.

[0011] According to a third aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and the programs or instructions are executed by the processor to implement the method described in the first aspect.

[0012] In a fourth aspect, a readable storage medium is provided. When the program or instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device can execute the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0014] FIG1 is a schematic diagram of an implementation environment of a trunk optical fiber protection method provided by an embodiment of the present application;

[0015] FIG2 is a schematic flow chart of a trunk optical fiber protection method provided by an embodiment of the present application;

[0016] FIG3 is a flow chart of a trunk optical fiber protection method based on enabling two primary and backup PON ports of an OLT according to an embodiment of the present application;

[0017] FIG4 is a schematic structural diagram of a trunk optical fiber protection device provided by one embodiment of the present application;

[0018] FIG5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0019] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this document.

[0020] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects and are not used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of this application can be implemented in an order other than those illustrated or described herein. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0021] As mentioned above, PON technology can be divided into EPON, G-PON, etc. according to the working mechanism. In the embodiment of the present application, any communication system of a passive optical network adopting a P2MP topology structure in the access network is collectively referred to as an xPON system. The adoption of a P2MP topology structure is a significant feature of the xPON system. The xPON system may include a communication system that adopts a passive optical network or a similar P2MP topology structure.

[0022] In related technologies, a common xPON system networking structure usually consists of an EMS (network management server), an OLT, an ODN, and several ONUs. Among them, the OLT, as a central office device, connects and aggregates multiple ONUs through the ODN using PON ports as units. The ONU realizes the access of user services, thereby realizing functions such as data services and configuration management.

[0023] In a passive optical network, multiple ONUs are connected using PON ports as units, thus achieving a P2MP topology. A "point" refers to the PON port of the central office equipment (OLT), and a "multipoint" refers to the multiple ONUs connected to that PON port. Typically, the number of ONUs connected to a PON port ranges from 1 to 128. In this P2MP topology, the ODN (Optical Node Network) that connects the OLT's PON port to the ONUs typically uses optical splitters to aggregate multiple ONU connections. Depending on the network configuration, optical splitters are typically cascaded to achieve multi-level splitting. The optical splitter directly connected to the OLT's PON port is called a primary optical splitter, and these are hereinafter referred to as secondary optical splitters, tertiary optical splitters, and so on. The optical link connecting the OLT's PON port and the primary optical splitter in the ODN is called a trunk fiber / optical path, and the remaining optical links are called branch fibers / optical paths.

[0024] Based on the xPON system's networking structure, a trunk fiber interruption will disrupt services for all ONUs connected to that trunk fiber. Therefore, trunk fiber protection is essential. The original first-level optical splitter can be changed from 1:N to 2:N, where 1 and 2 refer to the number of trunk fibers in the first-level optical splitter. This means that there are two trunk fibers, each operating in a primary-backup mode. Accordingly, two PON ports are connected to the trunk fiber, each serving as a primary and backup. The currently active PON port is called the primary PON port, while the currently inactive PON port is called the backup PON port. The trunk fiber connected to the primary PON port is called the primary trunk fiber, while the trunk fiber connected to the backup PON port is called the backup trunk fiber. Typically, ONUs are connected to the primary PON port of the OLT via the primary trunk fiber. When the primary trunk fiber experiences an anomaly—that is, when the OLT detects a PON loss of optical signal (LOS) on the primary trunk fiber—the OLT controls the ONU service to switch to the backup trunk fiber. The ONU is then connected to the OLT's backup PON port via the backup trunk fiber. This protection mechanism is known as trunk fiber protection, also known as PON trunk protection or PON Type B protection. Trunk fiber protection is currently the primary method for protecting optical links under PON ports. It protects ONU services based on PON LOS detection on both the primary and backup PON ports. PON LOS typically occurs when a PON port fails to detect a valid upstream optical signal for four consecutive frames.

[0025] As mentioned above, the xPON system will initiate a trunk fiber master-slave switch based on the PON LOS. During the invention process, the applicant discovered that the business scenarios that cause the central office device OLT to detect the PON LOS can be distinguished based on the ONU status under the PON port, including but not limited to the following business scenario examples:

[0026] Scenario 1: PON cell power outage (or power failure): All ONUs under the PON port are powered off (usually a power outage in a centralized area). In this case, a PON LOS alarm will be detected on the corresponding PON port side, but it is not related to a trunk fiber fault.

[0027] Scenario 2: The last ONU connected to the PON port is powered off: When the last ONU connected to the PON port is powered off (DGi), a PON LOS alarm is detected on the PON port side.

[0028] Scenario 3: The PON port is configured with only one ONU and is powered off (DGi). Alternatively, the PON port is configured with multiple ONUs, but only one ONU is online and powered off (DGi). In these two cases, a PON LOS alarm will be detected on the corresponding PON port side.

[0029] Scenario 4: The last ONU connected to the PON port goes offline: When the last ONU connected to the PON port goes offline (LOSi), a PON LOS alarm is detected on the PON port side.

[0030] Scenario 5: The PON port is configured with only one ONU, which is offline (LOSi); or the PON port is configured with multiple ONUs, but only one ONU is online and offline (LOSi). In these two cases, the corresponding PON port side will detect a PON LOS alarm.

[0031] Scenario 6: All ONUs have never been online: The system is initially configured with offline ONUs. In this case, the PON port will detect a PON LOS alarm.

[0032] Scenario 7: The trunk fiber is broken.

[0033] The causes of Scenarios 1 to 6 and 7 are different. In Scenarios 1 to 3, the PON LOS is caused by an ONU power outage. In Scenarios 4 and 5, the PON LOS may be caused by a trunk fiber break or a branch fiber break. In Scenarios 6, it is unclear whether the PON LOS is caused by a trunk fiber break.

[0034] The ONU status involved includes:

[0035] ONU LOSi: The OLT detects that a single ONU has not detected a valid upstream optical signal for four consecutive frames.

[0036] ONU DGi: This is the power-off alarm reported when the ONU is powered off through the discharge of its capacitor.

[0037] The aforementioned backbone fiber protection mechanism (PON backbone protection or PON Type B protection) can protect ONU services on the PON port based on PON LOS. That is, if a PON LOS occurs on the currently active PON port, the ONU services can be switched to the backup PON port. However, the following problems may exist:

[0038] Problem 1: Invalid switching: If the backup link in the PON protection group is abnormal, or the above scenarios 1 to 3 (ONU power failure), or the above scenarios 4 to 5 and the non-trunk fiber is broken, or the above scenario 6 occurs, the OLT initiates the main and backup switching of the trunk fiber. The ONU service will not be restored on the backup PON port, which is an invalid switching.

[0039] Problem 2: Frequent switching: The trunk fiber protection mechanism is based on PON LOS to initiate active-standby switching. When PON LOS occurs on both the primary and standby links, such as when both the primary and standby trunk fibers are broken in scenarios 1 to 3 and scenario 6, and when branch fibers are broken in scenarios 4 and 5, frequent switching will occur.

[0040] In practice, if the backup PON port's trunk fiber breaks, or if a PON loss of service (LOS) occurs in certain scenarios, the aforementioned trunk fiber protection will result in ineffective switching, meaning that service cannot be restored after the switchover. This, in turn, will lead to frequent switching between the primary and backup PON ports. This ineffective and frequent switching not only increases the system's workload but also generates a large number of invalid switching alarms or notification messages, adversely impacting system stability and maintenance. These issues exist in xPON systems that utilize passive optical networks or similar P2MP topologies. To date, no effective solutions have been found in the relevant technologies.

[0041] In view of this, the embodiment of the present application aims to provide a trunk optical fiber protection method, which is applicable to any xPON system of a passive optical network adopting a P2MP topology in an optical access network, and can realize automatic detection of trunk optical fiber protection reversal, thereby solving the problem of invalid switching and frequent switching of the trunk optical fiber, and improving system performance. In the embodiment of the present application, it first involves the detection and synchronization of the status of the main and backup PON ports, and further updates the status of the main and backup PON ports according to different business scenarios of PON LOS; secondly, it involves the control of the main and backup switching of the trunk optical fiber. When the status of the backup PON port (non-working PON port) is abnormal (that is, the backup PON port is unavailable), the main and backup switching is not performed. Further, in this case, the acceleration of the status update of the backup PON port is achieved by controlling the detection and synchronization of the status of the backup PON port.

[0042] The implementation environment of the trunk optical fiber protection method provided in the embodiment of the present application is shown in FIG1 . The xPON system includes an EMS 101 , an OLT 102 , an ODN 103 , and an ONU 104 , wherein:

[0043] EMS 101 is responsible for the configuration, management, and maintenance of OLT 102 and its ONUs 104. It also manages historical information, alarms, and notifications about OLT 102 and ONU 104. Based on alarms or notifications related to backbone fiber primary / backup switchover reported by OLT 102, EMS 101 can dynamically maintain the network and prompt manual intervention.

[0044] OLT 102 implements ONU registration and maintenance based on PON ports. To protect the backbone fiber, at least two PON ports are enabled on the OLT. These at least two PON ports can be configured as one primary and multiple backup ports. The currently working PON port is the primary PON port, and the currently inactive PON port is the backup PON port. Typically, both primary and backup PON ports can be enabled on the OLT, and the corresponding ONUs can be linked via a 2:N optical splitter. When one link is interrupted, the OLT automatically switches the corresponding ONU to the backup link to maintain normal service. Figure 1 only uses the example of enabling both primary and backup PON ports on the OLT for schematic illustration. In practice, more PON ports can be enabled on the OLT based on networking requirements.

[0045] The ODN 103 is used to connect different numbers of ONUs 104 under the OLT 102 and serves as a direct physical connection channel between the OLT 102 and the ONUs 104. The ODN 103 may be composed of multiple physical components, including but not limited to:

[0046] The trunk optical fiber / optical path (primary and backup) is used to connect the first-level optical splitter and the PON port corresponding to the OLT. Generally, a single PON port is used. When the trunk optical fiber protection mechanism is adopted, two primary and backup PON ports will be enabled, or even three or more PON ports will be enabled. When three or more PON ports are enabled, each PON port adopts a one-primary and multiple-backup form.

[0047] Optical splitters (one or more levels) are typically combined to achieve a splitting ratio based on ODN network planning and construction. The maximum splitting ratio is typically 1:128 or 1:256. Because splitters introduce optical attenuation, the number of cascaded splitters typically does not exceed three. The splitter directly connected to the OLT PON port is a first-level splitter, while the other cascaded splitters are referred to as second-level or third-level splitters (referred to as n-level splitters).

[0048] Branch optical fibers connect the optical paths between multi-stage optical splitters and directly connect to the ONU.

[0049] ONU 104 is a terminal device for accessing home users and is managed by OLT 102. During the registration process, it accepts the link identifier assigned by OLT 102 to complete ONU registration; and uploads data in the time slot window uniformly allocated by OLT 102 to complete service forwarding.

[0050] The trunk optical fiber protection detection method provided in the embodiment of the present application can be executed by the OLT in the xPON system or by software installed in the OLT, or can be executed by the network management server in the xPON system or by software installed in the network management server.

[0051] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.

[0052] Please refer to FIG2 , which is a flowchart of a trunk optical fiber protection method provided in one embodiment of the present application. The method may include:

[0053] S201: Establish PON port status information based on a PON protection group.

[0054] The PON protection group is a logical aggregation concept, including at least two physical PON ports enabled on the same OLT. If there are two PON ports, a one-master-one-backup mode can be adopted. If there are three or more PON ports, a one-master-multiple-backup mode can be adopted. The at least two PON ports included in the PON protection group can be distinguished by the names of the master PON port and the backup PON port. Generally, the PON port with an ONU online is the currently working PON port (referred to as the working port), that is, the master PON port; otherwise, it is the currently non-working PON port (referred to as the non-working port), that is, the backup PON port. All ONUs attached to the PON protection group belong to the PON protection group, and the at least one ONU corresponding to the PON protection group refers to all ONUs attached to the PON protection group. At least two PON ports in the PON protection group are connected to the at least one ONU corresponding to the PON protection group through their respective trunk optical fibers.

[0055] PON port status information can be established based on the currently working PON port and the currently inactive PON port in the PON protection group. The PON port status information includes at least the following field types: active PON port status and standby PON port status. Optionally, the PON port status information may also include at least one of the following field types: PON protection group index, currently working PON port identifier, and switching indication information. To facilitate identification, the PON protection group has an index value, and each PON port in the PON protection group corresponds to a unique identifier value. In the newly established PON port status information, the field contents of the PON protection group index and currently working PON port identifier can be set based on the actual index value and identifier value, while the field contents of the active PON port status, standby PON port status, and switching indication information are generally initially set to "empty." Subsequently, based on the detection of the uplink optical signals of the active and standby PON ports, the corresponding PON port status is detected and updated, and the switching flag information is set.

[0056] S202: When it is confirmed that an ONU in at least one ONU corresponding to the PON protection group is online, the status of the primary and backup PON ports are detected and updated based on the detection of upstream optical signals of the primary and backup PON ports.

[0057] In a specific implementation, the steps of detecting the upstream optical signals of the primary and backup PON ports and detecting and updating the status of the primary and backup PON ports are performed only when an ONU in at least one ONU corresponding to the PON protection group is online. If no ONU in at least one ONU corresponding to the PON protection group is online, the steps of detecting the upstream optical signals of the primary and backup PON ports and detecting and updating the status of the primary and backup PON ports are not performed, thereby avoiding invalid switching and frequent switching caused by a scenario where the ONU has never been online.

[0058] In the PON port status information, the primary PON port status indicates whether the optical signal of the corresponding primary PON port is normal, that is, whether the primary PON port is available; the backup PON port status indicates whether the optical signal of the corresponding backup PON port is normal, that is, whether the backup PON port is available. It can be understood that when there are multiple backup PON ports, each backup PON port corresponds to a corresponding status. By detecting the upstream optical signal of the PON port, the status of the corresponding PON port (including the primary PON port and the backup PON port) can be detected, thereby setting the PON port status to normal or abnormal.

[0059] In an optional implementation, the method for detecting the status of the main PON port is implemented by detecting the uplink optical signal of the main PON port, and specifically may include: detecting the uplink optical signal of the main PON port, and when no valid uplink optical signal is detected at the main PON port for a set number of consecutive frames (for example, 4 frames), determining that the main PON port has generated a PON LOS, and setting the status of the main PON port to abnormal; otherwise, setting the status of the main PON port to normal.

[0060] In an optional implementation, the method for detecting the status of the standby PON port is implemented by detecting the uplink optical signal of the standby PON port, and specifically may include: detecting the uplink optical signal of the standby PON port, and setting the status of the standby PON port to normal when the standby PON port detects a specific uplink optical signal; otherwise, setting the status of the standby PON port to abnormal, and generating an alarm message indicating that the trunk optical fiber of the standby PON port is broken.

[0061] In a specific implementation, the specific uplink optical signal can be an SD (Signal Detect) signal. The presence of an SD signal can be periodically detected at the backup PON port according to a set first detection period (T1). The first detection period is generally less than a set service recovery time threshold (SLArecover). SLArecover is a set time threshold that indicates the service recovery time required by the user and can be flexibly set according to user needs. The SD signal is an indication signal sent by an ONU, indicating that the ONU can transmit data. In addition to the SD signal, the specific uplink optical signal can also be the uplink optical power of the backup PON port, thereby realizing the detection of the status of the backup PON port.

[0062] It should be noted that the above method for detecting the status of a standby PON port is applicable to any standby PON port, and the status corresponding to each standby PON port can be obtained respectively through signal detection.

[0063] If the PON port status information also includes switching indication information, the field content of the switching indication information can be further set based on the standby PON port status. When the status of at least one standby PON port is normal, the switching indication information is set to switchable. When the status of all standby PON ports is abnormal, the switching indication information is set to non-switchable. In this way, the execution of the main and standby switching of the trunk optical fiber can be controlled based on the switching indication information, thereby improving the switching efficiency.

[0064] S203 : When the status of the primary PON port is abnormal, control the execution of the primary-backup switching of the trunk optical fiber based on the status of the backup PON port.

[0065] In an optional implementation, S203 may specifically include:

[0066] S2031. When the status of all standby PON ports is abnormal, the main optical fiber master-slave switchover is not initiated, and an alarm message of abnormality of the PON protection group is generated.

[0067] S2032: When at least one backup PON port is in a normal state, control the execution of the main optical fiber active / standby switching according to the service scenario information corresponding to the PON LOS generated by the main PON port.

[0068] It can be understood that if the PON port status information also includes switching indication information, accordingly, when the switching indication information is non-switchable, the main optical fiber master-slave switching is not initiated, and an alarm message of PON protection group abnormality is generated. When the switching indication information is switchable, the execution of the main optical fiber master-slave switching is controlled according to the business scenario information corresponding to the PON LOS generated by the main PON port. The business scenario information may include the business scenario judgment time and the business scenario type.

[0069] In a specific implementation, there is generally one primary PON port, and there can be one or more backup PON ports (including two). In the case of one backup PON port, if the backup PON port is in normal status, or in the case of multiple backup PON ports, if there is at least one backup PON port in normal status, it means that there is an available backup PON port. Then, the execution of the main fiber primary-backup switching can be controlled based on the service scenario information corresponding to the PON LOS generated by the primary PON port. If the status of all backup PON ports is abnormal, it means that there is no available backup PON port, and the main fiber primary-backup switching is not initiated, thereby avoiding invalid switching and frequent switching.

[0070] In the specific implementation of S2031, after the alarm message of the abnormality of the PON protection group is generated, it is possible to further periodically detect whether a specific upstream optical signal exists at the backup PON port according to the set second detection period (T2), wherein the specific upstream optical signal may include an SD signal, and the second detection period T2 needs to be less than the first detection period T1; when the backup PON port detects the specific upstream optical signal, the status of the backup PON port is updated to normal, and the switching indication information can also be synchronously updated to switchable. At this time, if a backup PON port with a normal status already exists, step S2032 can be executed, that is, the execution of the main and backup switching of the trunk optical fiber is controlled according to the business scenario information corresponding to the PON LOS generated by the main PON port.

[0071] In the specific implementation of S2032, the following steps may be included:

[0072] S2032a. Determine the service scenario judgment time and service scenario type corresponding to the PON LOS generated by the primary PON port, wherein the service scenario judgment time is used to indicate the time it takes for the ONU to come back online. Exemplarily, the average time from when the ONU goes offline to when it comes back online can be statistically calculated as the service scenario judgment time.

[0073] S2032b: When the service scenario judgment time is less than or equal to the set service recovery time threshold SLArecover, control the execution of the main optical fiber active / standby switching according to the service scenario type corresponding to the PON LOS generated by the primary PON port.

[0074] S2032c. When the service scenario judgment time is greater than the set service recovery time threshold SLArecover, initiate a trunk optical fiber master-slave switchover, and switch the original standby PON port in normal status to the currently working PON port, which becomes the new active PON port after the switchover; and detect the status of the new active PON port after the switchover, and generate a corresponding alarm message according to the status of the new active PON port and the service scenario type corresponding to the PON LOS generated by the original active PON port.

[0075] As mentioned above, in the embodiment of the present application, the service scenario types corresponding to the PON LOS generated by the primary PON port are divided into: ONU power off (corresponding to scenarios 1 to 3), the last or only ONU offline (corresponding to scenarios 4 to 5), etc.

[0076] Accordingly, in the specific implementation of S2032b, the execution of the main fiber primary-backup switching can be controlled according to the service scenario type corresponding to the PON LOS generated by the primary PON port. Specifically:

[0077] In the case of an ONU power outage, the main fiber master-slave switchover is not initiated, and the update of the main and backup PON port status is suspended until the main PON port status returns to normal.

[0078] When the service scenario type is that the last or only ONU is offline, the main optical fiber master-slave switch is initiated, and the original backup PON port in normal status is switched to the currently working PON port, which becomes the new main PON port after the switch; and the status of the new main PON port after the switch is detected, and a corresponding alarm message is generated according to the status of the new main PON port.

[0079] For example, when the status of the new main PON port is normal, an alarm message of the trunk fiber break of the original main PON port is generated; when the status of the new main PON port is abnormal, the PON LOS alarm of the original main PON port is restored, and an alarm message of the corresponding ONU LOSi or branch fiber break is generated. In order to avoid frequent switching, the main fiber master-slave switching is stopped when the set switching number threshold is reached, and the updating of the status of the main and backup PON ports is stopped.

[0080] Accordingly, in the specific implementation of S2032c, when the status of the new main PON port is normal and the business scenario type corresponding to the PON LOS generated by the original main PON port is the last or only ONU offline, an alarm message of the trunk fiber break of the original main PON port is generated; when the status of the new main PON port is abnormal and the business scenario type corresponding to the PON LOS generated by the original main PON port is the last or only ONU offline, the PON LOS alarm of the original main PON port is restored, and an alarm message of the corresponding ONU LOSi or branch fiber break is generated. In order to avoid frequent switching, the main fiber master-slave switching is stopped when the set switching number threshold is reached, and the updating of the status of the main and backup PON ports is stopped.

[0081] In an optional implementation, after stopping the main optical fiber master-slave switching and stopping the updating of the main and backup PON port statuses, when it is confirmed that an ONU in at least one ONU corresponding to the PON protection group is back online, the process proceeds to executing S202, i.e., the step of detecting and updating the main and backup PON port statuses based on the detection of the uplink optical signals of the main and backup PON ports.

[0082] The trunk optical fiber protection method provided by the embodiment of the present application establishes PON port status information based on a PON protection group. The PON port status information includes the status of the primary PON port and the status of the backup PON port. When an ONU in at least one ONU corresponding to the PON protection group comes online, the status of the primary and backup PON ports are detected and updated by detecting the upstream optical signal of the PON port. Since the PON port status is only detected when an ONU in the PON protection group comes online, frequent switching and frequent switching caused by scenarios where the ONU has never been online can be avoided. When the status of the primary PON port is detected to be abnormal, the execution of the primary and backup switching of the trunk optical fiber is controlled according to the status of the backup PON port. By synchronously monitoring the status of the primary and backup PON ports, when the status of the primary PON port is abnormal, the execution of the primary and backup switching is controlled based on the status of the backup PON port with reference to the status of the backup PON port. This can avoid ineffective switching and frequent switching when the backup PON port is unavailable. This solution effectively solves the problems of ineffective switching and frequent switching that may exist in trunk optical fiber protection, can save system resources and improve system performance.

[0083] Furthermore, when the status of the main PON port is abnormal, if the status of all the backup PON ports is abnormal, the main and backup switching of the trunk optical fiber will not be initiated. If there is a backup PON port in normal status, the execution of the main and backup switching of the trunk optical fiber will be controlled accordingly in combination with the business scenario information corresponding to the PON LOS generated by the main PON port. The business scenario information includes the business scenario judgment time and the business scenario type. Through scenario identification, invalid switching and frequent switching in certain scenarios can be effectively avoided.

[0084] Below, taking the activation of two active and standby PON ports in an OLT as an example, the trunk optical fiber protection method provided by the embodiment of the present application is described in detail. The method can be applied to the OLT and includes the following steps:

[0085] S301. The OLT establishes PON status information based on the PON protection group. The PON status information may be stored in the form of a master / slave PON port status table (hereinafter referred to as the status table). Specifically, the status table is established based on the currently working PON port and the currently non-working PON port in the PON protection group. The status table includes, but is not limited to, the following fields: PON protection group index, currently working PON port identifier, master PON port (working port) status, backup PON port (non-working port) status, and switching indication information. The switching indication information may be in the form of a switching flag.

[0086] A PON protection group is a logical aggregation concept. In this embodiment, it includes two physical PON ports, which serve as the primary and backup ports for each other. In the newly established status table, the PON protection group index and the currently active PON port identifier fields are set based on the actual index and identifier values. The fields for the active PON port status, backup PON port status, and switch flag are generally initialized to "empty." Subsequently, based on the detection of upstream optical signals from the primary and backup PON ports, the corresponding PON port status is detected and updated, and the switch flag is set.

[0087] S302. If an ONU is online at any PON port (primary PON port or backup PON port) in the PON protection group, execute step S303 to start detecting and updating the status of the relevant PON port;

[0088] If no ONU has ever been online under any PON port in the PON protection group (corresponding to scenario 6, never online), the detection and update of the relevant PON port status will not be performed.

[0089] S303 : The OLT detects and updates the status of the primary and backup PON ports based on the detection of the upstream optical signals of the PON ports in the PON protection group, and sets a switching flag.

[0090] The following describes a method for the OLT to detect an upstream optical signal of a PON port and determine the corresponding PON port status.

[0091] The method for detecting the status of the main PON port is implemented by detecting the upstream optical signal of the main PON port of the PON protection group. If no valid upstream optical signal is detected at the main PON port for a set number of consecutive frames (for example, 4 frames), it is determined that a PON LOS has occurred at the main PON port, and the status of the main PON port is set to Abnormal. Otherwise, the status of the main PON port is set to Normal.

[0092] The backup PON port status is detected by monitoring the upstream optical signals of the backup PON port in the PON protection group. This includes, but is not limited to, detecting specific upstream optical signals such as the SD signal and upstream optical power. If a specific upstream optical signal is detected on the backup PON port, the backup PON port status is set to Normal. Otherwise, the backup PON port status is set to Abnormal, and the "Backup PON port trunk fiber broken" alarm is reported.

[0093] Furthermore, the switching flag Flag can be set according to a certain strategy. When the status of the standby PON port in the PON protection group (i.e., the currently non-working PON port in the PON protection group) is Normal, the switching flag Flag is set to enable (i.e., switching is possible); otherwise, the switching flag Flag is set to disable (i.e., switching is not possible).

[0094] Furthermore, the OLT sets and maintains a timer T1 (T1 is less than a set service recovery time threshold SLArecover), periodically detects the status of the standby PON port (the currently non-working PON port) according to T1, and synchronizes it to the corresponding status table.

[0095] S304: When a PON LOS occurs on the primary PON port, the primary PON port status in the status table is Abnormal. Furthermore, different active / standby switching strategies are executed based on the current switching flag. In this embodiment, the active / standby switching of the trunk fiber is referred to as active / standby switching.

[0096] When the switching flag Flag=enable, step S305 is executed.

[0097] When the switching flag Flag=disable, step S308 is executed, that is, the active / standby switching is not initiated, and an alarm "PON protection group abnormality" is reported.

[0098] Further, when the switching flag bit Flag = disable, the standby PON port status is detected and synchronized according to the detection period T2 (T2 < T1). If the standby PON port is available, for example, the SD signal is detected on the standby PON port within T2, the status of the standby PON port in the status table is updated to Normal, and the switching flag bit Flag = enable is synchronously updated, then directly go to step S305, that is, control the main - standby switching according to the service scenario information corresponding to the PON LOS generated by the primary PON port. It should be noted that during the period when the standby PON port is unavailable, there is enough time to determine the service scenario information corresponding to the PON LOS generated by the primary PON port.

[0099] S305. Control the execution of the main - standby switching according to the service scenario information corresponding to the PON LOS generated by the primary PON port:

[0100] When the service scenario judgment time corresponding to the PON LOS generated by the primary PON port ≤ SLA recover, determine whether to perform the main - standby switching according to the service scenario type corresponding to the PON LOS, that is, go to step S306.

[0101] When the service scenario judgment time corresponding to the PON LOS generated by the primary PON port > SLA recover, first initiate the main - standby switching, and then process according to the status of the new primary PON port (ONU online situation) after the switching and the service scenario type corresponding to the PON LOS generated by the original primary PON port, that is, go to step S307.

[0102] S306. Control the execution of the main - standby switching according to the service scenario type corresponding to the PON LOS generated by the primary PON port. Specifically: <00002                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                &​​​​​​​Furthermore, the master-slave switching can be stopped according to a certain strategy or stopped after switching back to the original master PON port. For example, the master-slave switching is stopped when the set switching number threshold is reached to avoid frequent switching between the master and standby PON ports when both the master and standby PON ports are LOS, and at the same time stop the master and standby PON port status synchronization.

[0106] Furthermore, when an ONU is back online at any PON port (ie, the primary PON port or the backup PON port) in the PON protection group, the process goes to step S303 to start detecting and updating the status of the relevant PON port.

[0107] S307: The OLT first initiates a master-slave switchover, and then processes the service scenario type corresponding to the PON LOS generated by the original master PON port based on the status of the new master PON port after the switchover (ONU online status) and the PON LOS generated by the original master PON port. Specifically:

[0108] 7.1 If the status of the new primary PON port after the switch is Normal (that is, the relevant ONU is online), and the service scenario type corresponding to the PON LOS generated by the original primary PON port is the last / only ONU offline (corresponding to scenarios 4 to 5), an alarm is generated as "The trunk fiber of the original primary PON port is broken."

[0109] 7.2 If the status of the new primary PON port after the switch is Abnormal (that is, the relevant ONU is not online), and the service scenario type corresponding to the PON LOS generated by the original primary PON port is the last / only ONU offline (corresponding to scenarios 4 to 5), the PON LOS service scenario alarm of the original primary PON port is restored, and the reported alarm is "corresponding ONU LOSi or branch fiber is broken".

[0110] 7.3 Furthermore, when the status of the new active PON port after switching is Abnormal (i.e., the related ONU is not online), the active-standby switching is stopped according to a certain strategy, or the active-standby switching is stopped after switching back to the original active PON port, so as to avoid frequent switching between the active and standby PON ports when both the active and standby PON ports are LOS, and at the same time, the status update of the active and standby PON ports is stopped.

[0111] 7.4 Furthermore, when an ONU is back online at any PON port (ie, the primary PON port or the backup PON port) in the PON protection group, the process goes to step S303 to start detecting and updating the status of the relevant PON port.

[0112] The above-mentioned trunk optical fiber protection method applied to OLT effectively solves the problems of ineffective switching and frequent switching that may exist in trunk optical fiber protection, thereby saving system resources and improving system performance.

[0113] In addition, corresponding to the trunk fiber protection method shown in FIG2 above, an embodiment of the present application also provides a trunk fiber protection device, which can be installed in an OLT, EMS, or other equipment of an xPON system. An embodiment of the present application provides a trunk fiber protection device 400, as shown in FIG4, comprising:

[0114] Establishing module 401 is configured to establish PON port status information based on a PON protection group, wherein the PON protection group includes at least two PON ports, and the at least two PON ports are connected to at least one ONU corresponding to the PON protection group via respective trunk optical fibers. The PON port status information includes at least a primary PON port status and a backup PON port status, wherein the primary PON port is a currently working PON port among the at least two PON ports, and the backup PON port is a currently non-working PON port among the at least two PON ports.

[0115] The detection and update module 402 is configured to detect and update the status of the primary and backup PON ports based on the detection of upstream optical signals of the primary and backup PON ports when confirming that an ONU in at least one ONU corresponding to the PON protection group is online.

[0116] The switching control module 403 is configured to control the execution of the main optical fiber main-backup switching based on the backup PON port status when the main PON port status is abnormal.

[0117] In a specific implementation, the PON port status information may further include at least one of the following: a PON protection group index, a currently working PON port identifier, and switching indication information; wherein, when the status of at least one standby PON port is normal, the switching indication information is set to switchable, and when the status of all standby PON ports is abnormal, the switching indication information is set to non-switchable.

[0118] In an optional implementation, the optional structure of the detection and update module 402 may include:

[0119] The master detection submodule 421 is used to detect the uplink optical signal of the master PON port. If the master PON port fails to detect a valid uplink optical signal for a set number of consecutive frames, it is determined that the master PON port has generated a PON LOS and the state of the master PON port is set to abnormal. Otherwise, the state of the master PON port is set to normal.

[0120] The first standby detection submodule 422 is configured to detect an uplink optical signal of a standby PON port. If a specific uplink optical signal is detected at the standby PON port, the standby PON port status is set to normal. Otherwise, the standby PON port status is set to abnormal, and an alarm message indicating a trunk optical fiber break at the corresponding standby PON port is generated.

[0121] In a specific implementation, the first standby detection submodule 422 is specifically used to periodically detect whether there is a specific uplink optical signal at the standby PON port according to a set first detection period, wherein the specific uplink optical signal includes an SD indication signal, and the first detection period is less than the set service recovery time threshold SLArecover.

[0122] In an optional implementation, the optional structure of the switching control module 403 may include:

[0123] The first control submodule 431 is used to not initiate the main optical fiber master-slave switching and generate an alarm message of PON protection group abnormality when the status of the main PON port is abnormal and the status of all backup PON ports are abnormal; the second control submodule 432 is used to control the execution of the main optical fiber master-slave switching according to the business scenario information corresponding to the PON LOS generated by the main PON port when the status of the main PON port is abnormal and the status of at least one backup PON port is normal.

[0124] In a specific implementation, the detection update module 402 may further include a second standby detection submodule 423, wherein: the first control submodule 431 is further used to trigger the second standby detection submodule 423 after generating an alarm message of an abnormality in the PON protection group; the second standby detection submodule 423 is used to periodically detect whether there is a specific upstream optical signal at the standby PON port according to a set second detection period, wherein the specific upstream optical signal includes an SD indication signal, and the second detection period is less than the first detection period; when the standby PON port detects a specific upstream optical signal, the state of the standby PON port is updated to be normal, and the second control submodule 432 is triggered.

[0125] In a specific implementation, the second control submodule 432 is specifically used to: determine the service scenario judgment time and service scenario type corresponding to the PON LOS generated by the primary PON port, wherein the service scenario judgment time is used to indicate the time when the ONU comes back online; when the service scenario judgment time is less than or equal to the set service recovery time threshold SLArecover, control the execution of the main and backup switching of the trunk optical fiber according to the service scenario type corresponding to the PON LOS generated by the primary PON port; when the service scenario judgment time is greater than the set service recovery time threshold SLArecover, initiate the main and backup switching of the trunk optical fiber, and switch the original backup PON port in normal status to the currently working PON port, which becomes the new main PON port after the switching; and detect the status of the new main PON port after the switching, and generate a corresponding alarm message according to the status of the new main PON port and the service scenario type corresponding to the PON LOS generated by the original main PON port.

[0126] Among them, the second control submodule 432, in the process of controlling the execution of the main and standby switching of the trunk optical fiber according to the business scenario type corresponding to the PON LOS generated by the main PON port, is specifically used to: when the business scenario type is ONU power off, not initiate the main and standby switching of the trunk optical fiber, and suspend the update of the status of the main and standby PON ports until the status of the main PON port is restored to normal; when the business scenario type is the last or only ONU offline, initiate the main and standby switching of the trunk optical fiber, and switch the original standby PON port with a normal status to the currently working PON port, which becomes the new main PON port after the switch; and, detect the status of the new main PON port after the switch, and generate a corresponding alarm message according to the status of the new main PON port.

[0127] The second control submodule 432, in the process of detecting the status of the new active PON port after the switching and generating a corresponding alarm message according to the status of the new active PON port, is specifically used to: when the status of the new active PON port is normal, generate an alarm message indicating that the trunk fiber of the original active PON port is broken; when the status of the new active PON port is abnormal, restore the PON LOS alarm of the original active PON port, generate an alarm message indicating that the corresponding ONU LOSi or branch fiber is broken, stop the active-standby switching of the trunk fiber when the set switching number threshold is reached, and stop updating the status of the active and standby PON ports.

[0128] In the process of generating corresponding alarm messages based on the status of the new active PON port and the service scenario type corresponding to the PON LOS generated by the original active PON port, the second control submodule 432 is specifically used to: when the status of the new active PON port is normal and the service scenario type corresponding to the PON LOS generated by the original active PON port is the last or only ONU offline, generate an alarm message indicating that the trunk fiber of the original active PON port is broken; when the status of the new active PON port is abnormal and the service scenario type corresponding to the PON LOS generated by the original active PON port is the last or only ONU offline, restore the PON LOS alarm of the original active PON port, generate an alarm message indicating that the corresponding ONU LOSi or branch fiber is broken, stop the active-standby switching of the trunk fiber when the set switching number threshold is reached, and stop updating the status of the active and standby PON ports.

[0129] In an optional implementation, the detection and update module 402 is further used to, after stopping the main optical fiber master-slave switching and stopping the updating of the main and backup PON port statuses, confirm that an ONU in at least one ONU corresponding to the PON protection group is back online, and then proceed to execute the step of detecting and updating the main and backup PON port statuses based on the detection of the uplink optical signals of the main and backup PON ports.

[0130] In an optional implementation, the detection and update module 402 is further configured to not perform the step of detecting and updating the status of the main and backup PON ports based on the detection of the upstream optical signals of the main and backup PON ports when no ONU is online in at least one ONU corresponding to the PON protection group.

[0131] Obviously, the trunk optical fiber protection device of the embodiment of the present application can be used as the execution subject of the trunk optical fiber protection method shown in Figure 2, and thus the method can realize the functions realized in Figure 2. Since the principles are the same, they will not be repeated here.

[0132] The trunk optical fiber protection device provided in the embodiment of the present application detects the PON port status only when an ONU in the PON protection group is online, thereby avoiding useless switching and frequent switching caused by scenarios where the ONU has never been online. By synchronizing the status of the primary and backup PON ports, the status of the backup PON port is monitored, avoiding invalid switching and frequent switching when the backup PON port is unavailable. Furthermore, based on the business scenarios that lead to PON LOS, scenario identification is performed to effectively avoid invalid switching and frequent switching in certain scenarios.

[0133] Optionally, as shown in Figure 5, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, and the memory 502 stores a program or instruction that can be run on the processor 501. When the program or instruction is executed by the processor 501, the various steps of the above-mentioned trunk optical fiber protection method are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0134] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.

[0135] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned trunk optical fiber protection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0136] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0137] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned trunk optical fiber protection method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0138] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0139] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned trunk optical fiber protection method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0140] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0142] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A trunk optical fiber protection method, in, include: Based on a passive optical network PON protection group, PON port status information is established, wherein the PON protection group includes at least two PON ports, and the at least two PON ports are connected to at least one optical network unit ONU corresponding to the PON protection group through respective trunk optical fibers, and the PON port status information includes at least a main PON port status and a backup PON port status, the main PON port is a currently working PON port among the at least two PON ports, and the backup PON port is a currently non-working PON port among the at least two PON ports; When it is confirmed that an ONU is online in at least one ONU corresponding to the PON protection group, based on the detection of the upstream optical signals of the main and backup PON ports, the status of the main and backup PON ports is detected and updated; When the state of the active PON port is abnormal, the execution of the active / standby switching of the trunk optical fiber is controlled based on the state of the standby PON port.

2. The method according to claim 1, in, The detecting and updating of the status of the main and standby PON ports based on the detection of the uplink optical signals of the main and standby PON ports includes: Detecting an uplink optical signal of a main PON port, and if no valid uplink optical signal is detected at the main PON port for a set number of consecutive frames, determining that the main PON port generates a PON LOS, and setting the state of the main PON port to abnormal; otherwise, setting the state of the main PON port to normal; Detect an uplink optical signal of a standby PON port, and when the standby PON port detects a specific uplink optical signal, set the state of the standby PON port to normal; otherwise, set the state of the standby PON port to abnormal, and generate an alarm message that the trunk optical fiber of the standby PON port is broken.

3. The method according to claim 2, in, The detecting of the uplink optical signal of the standby PON port comprises: According to a set first detection period, periodically detect whether there is a specific upstream optical signal at the standby PON port, wherein the specific upstream optical signal includes a signal detection SD signal, and the first detection period is less than a set service recovery time threshold.

4. The method according to claim 3, in, When the state of the main PON port is abnormal, controlling the execution of the main optical fiber main-standby switching based on the state of the standby PON port includes: When the state of the main PON port is abnormal and the states of all standby PON ports are abnormal, the main optical fiber main-standby switching is not initiated, and an alarm message of abnormality of the PON protection group is generated; When the state of the active PON port is abnormal and the state of at least one standby PON port is normal, the execution of the active-standby switching of the trunk optical fiber is controlled according to the service scenario information corresponding to the PON LOS generated by the active PON port.

5. The method according to claim 4, in, The method further comprises: After generating an alarm message of an abnormality of the PON protection group, periodically detecting whether there is a specific upstream optical signal at the standby PON port according to a set second detection period, wherein the specific upstream optical signal includes a signal detection SD signal, and the second detection period is less than the first detection period; When the standby PON port detects a specific uplink optical signal, the state of the standby PON port is updated and set to normal, and the execution of the main optical fiber active-standby switching is controlled according to the service scenario information corresponding to the PON LOS generated by the active PON port.

6. The method according to claim 4 or 5, in, The controlling the execution of the main optical fiber master-slave switching according to the service scenario information corresponding to the PON LOS generated by the main PON port includes: Determine the service scenario judgment time and service scenario type corresponding to the PON LOS generated by the primary PON port, wherein the service scenario judgment time is used to indicate the time when the ONU goes back online; When the service scenario judgment time is less than or equal to the set service recovery time threshold, controlling the execution of the main optical fiber master-slave switching according to the service scenario type corresponding to the PON LOS generated by the main PON port; In the case where the service scenario judgment time is greater than the set service recovery time threshold, initiating a trunk optical fiber active-standby switching, switching the original standby PON port in a normal state to the currently working PON port, which becomes the new active PON port after the switching; and detecting the state of the new active PON port after the switching, and determining the corresponding active-standby PON port according to the state of the new active PON port and the PON LOS generated by the original active PON port. The business scenario type generates corresponding warning messages.

7. The method according to claim 6, in, The controlling the execution of the main optical fiber master-slave switching according to the service scenario type corresponding to the PON LOS generated by the main PON port includes: When the service scenario type is ONU power failure, the main fiber master-slave switchover is not initiated, and the update of the main and standby PON port status is suspended until the main PON port status returns to normal; When the service scenario type is that the last or only ONU is offline, initiate a main optical fiber master-slave switch, switch the original standby PON port in normal status to the currently working PON port, which becomes the new main PON port after the switch; and detect the status of the new main PON port after the switch, and generate a corresponding alarm message according to the status of the new main PON port.

8. The method according to claim 7, in, The detecting the state of the new main PON port after the switching, and generating a corresponding alarm message according to the state of the new main PON port, includes: When the state of the new main PON port is normal, generating an alarm message of trunk optical fiber breakage of the original main PON port; When the state of the new active PON port is abnormal, the PON LOS alarm of the original active PON port is restored, and an alarm message of the corresponding ONU LOSi or branch fiber break is generated. When the set switching number threshold is reached, the main fiber active-standby switching is stopped, and the updating of the state of the active and standby PON ports is stopped.

9. The method according to claim 6, in, The generating a corresponding alarm message according to the state of the new main PON port and the service scenario type corresponding to the PON LOS generated by the original main PON port includes: When the state of the new active PON port is normal and the service scenario type corresponding to the PON LOS generated by the original active PON port is that the last or only ONU is offline, an alarm message of trunk fiber breakage of the original active PON port is generated; When the state of the new active PON port is abnormal and the service scenario type corresponding to the PON LOS generated by the original active PON port is the last or only ONU offline, restore the original active PON port The PON LOS alarm is generated, and the corresponding ONU LOSi or branch fiber break alarm message is generated. When the set switching number threshold is reached, the main fiber active-standby switching is stopped, and the update of the main and standby PON port status is stopped.

10. The method according to claim 8 or 9, in, The method further comprises: After stopping the main optical fiber master-slave switching and stopping the updating of the status of the main and backup PON ports, when it is confirmed that an ONU in at least one ONU corresponding to the PON protection group is back online, the step of detecting and updating the status of the main and backup PON ports based on the detection of the upstream optical signals of the main and backup PON ports is executed.

11. The method according to claim 1, in, The method further comprises: When no ONU goes online in at least one ONU corresponding to the PON protection group, the step of detecting and updating the status of the main and standby PON ports based on detecting the upstream optical signals of the main and standby PON ports is not performed.

12. The method according to claim 2, in, The PON port status information also includes at least one of the following: a PON protection group index, a currently working PON port identifier, and switching indication information; When the state of at least one standby PON port is normal, the switching indication information is set to be switchable, and when the states of all standby PON ports are abnormal, the switching indication information is set to be non-switchable.

13. A trunk optical fiber protection device, in, include: An establishing module, configured to establish PON port status information based on a PON protection group, wherein the PON protection group includes at least two PON ports, the at least two PON ports are connected to at least one ONU corresponding to the PON protection group through respective trunk optical fibers, the PON port status information includes at least a main PON port status and a backup PON port status, the main PON port is a currently working PON port among the at least two PON ports, and the backup PON port is a currently non-working PON port among the at least two PON ports; A detection and update module, configured to detect and update the status of the main and standby PON ports based on the detection of the upstream optical signals of the main and standby PON ports when confirming that an ONU is online in at least one ONU corresponding to the PON protection group; The switching control module is used to control the execution of the main optical fiber main and standby switching based on the state of the standby PON port when the state of the main PON port is abnormal.

14. An electronic device, in, The invention comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and the program or instruction is executed by the processor to implement the trunk optical fiber protection method according to any one of claims 1 to 12.

15. A readable storage medium, in, When the program or instruction in the readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to execute the trunk optical fiber protection method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Optical fiber protection inverse device, method and passive optical network system with the device

    CN101237254A

  • Method and device for realizing backbone optical fiber protection in Ethernet passive optical network

    CN101888268A

  • Method and device for rapid protection switching of passive optical network (PON) ports in any slot position in 10 Gbit / s Ethernet PON (10G-EPON) system

    CN102064885A

  • Techniques for protecting passive optical networks

    US20100166419A1