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

By detecting and updating the status of the main and backup PON ports in the PON protection group, state detection is performed only when the ONU is online, avoiding invalid switching and frequent switching, solving the problem of invalid switching and frequent switching in the backbone optical fiber protection, and improving System performance.

CN119136084APending Publication Date: 2024-12-13ZTE CORP

Patent Information

Application Number
CN202310699680.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-13
Publication Date
2024-12-13

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 status information for the main and backup PON ports in the PON protection group, based on uplink optical signal detection and update, state detection is performed only when the ONU is online, avoiding invalid switching and frequent switching, and abnormal state in the main PON port. At the same time, the main and backup switching of the main fiber is controlled according to the backup PON port status.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136084A_ABST
    Figure CN119136084A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a trunk optical fiber protection method, device and equipment and a readable storage medium, which can solve the problems of invalid switching and frequent switching of a trunk optical fiber and improve the system performance. The trunk optical fiber protection method comprises the steps that PON port state information is established based on a PON protection group, 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, the main PON port is a currently working PON port, and the standby PON port is a currently non-working PON port; detecting and updating the states of the main PON port and the standby PON port based on the detection of the uplink optical signals of the main PON port and the standby PON port when the ONU in the at least one ONU corresponding to the PON protection group is confirmed to be online; and under the condition that the state of the main PON port is abnormal, controlling the execution of main and standby switching of the main optical fiber based on the state of the standby PON port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] PON (Passive Optical Network) is a communication technology that uses a P2MP (point-to-multipoint) topology. According to the working 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 working mechanisms. These passive optical network devices have the same system architecture, including central office equipment OLT (Optical Line Terminal), ODN (optical distribution network) and user-side equipment ONU (Optical Network Unit). Among them, OLT completes the aggregation of multiple ONUs through the PON port, forming a point (OLT) to multipoint (ONU) topology.

[0003] In a passive optical network, if the trunk fiber connecting the PON port of the OLT and the primary optical splitter in the ODN is interrupted, all ONU services under the trunk fiber will be interrupted. Therefore, the trunk fiber is usually protected by active-standby switching. However, in some scenarios, trunk fiber protection has problems such as invalid switching and frequent switching, which consumes a lot of system resources and reduces system performance, becoming one of the technical problems that need to be solved in the existing technology. Summary of the invention

[0004] 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 problem of ineffective switching and frequent switching of trunk optical fibers and improve system performance.

[0005] In order to achieve the above objectives, the present application embodiment adopts the following technical solutions:

[0006] In a first aspect, a trunk optical fiber protection method is provided, comprising:

[0007] 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;

[0008] 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;

[0009] 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.

[0010] In a second aspect, a trunk optical fiber protection device is provided, comprising:

[0011] 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;

[0012] 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;

[0013] 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.

[0014] According to a third aspect, an electronic device is provided, comprising 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 method described in the first aspect.

[0015] In a fourth aspect, a readable storage medium is provided. When the program or instruction in the readable storage medium is executed by a processor of an electronic device, the electronic device can execute the method described in the first aspect.

[0016] The trunk optical fiber protection solution provided by the embodiment of the present application establishes PON port status information based on the PON protection group, and the PON port status information includes the main PON port status and the standby PON port status. When an ONU is online in at least one ONU corresponding to the PON protection group, the detection and update of the main and standby PON port status are realized by detecting the upstream optical signal of the PON port. Since the PON port status is detected only when an ONU is online in the PON protection group, invalid switching and frequent switching caused by the scenario that the ONU has never been online can be avoided. When it is detected that the main PON port status is abnormal, the execution of the main and standby switching of the trunk optical fiber is controlled according to the standby PON port status. By synchronously monitoring the main and standby PON port statuses, when the main PON port status is abnormal, the standby PON port status is referred to, and the execution of the main and standby switching is controlled based on the standby PON port status, thereby avoiding invalid switching and frequent switching when the standby PON port is unavailable. This solution effectively solves the problems of invalid switching and frequent switching that may exist in trunk optical fiber protection, and can save system resources and improve system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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:

[0018] Figure 1 A schematic diagram of an implementation environment of a trunk optical fiber protection method provided for an embodiment of the present application;

[0019] Figure 2 A schematic diagram of a process flow of a trunk optical fiber protection method provided for one embodiment of the present application;

[0020] Figure 3 A flowchart of a trunk optical fiber protection method based on enabling two primary and standby PON ports of an OLT is provided for one embodiment of the present application;

[0021] Figure 4 A schematic structural diagram of a trunk optical fiber protection device provided in one embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of this application clearer, the technical solution of this application will be clearly and completely described below in combination with the specific embodiments of this application and the corresponding drawings. Obviously, the described embodiments 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 creative work should fall within the scope of protection of this document.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0025] As mentioned above, PON technology can be divided into EPON, G-PON, etc. according to the working mechanism. In the embodiments 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 networked structure similar to a P2MP topology structure.

[0026] In the related technology, a common xPON system networking structure is usually composed of EMS (network management server), OLT, ODN and several ONUs. Among them, OLT, as a local end device, connects and aggregates multiple ONUs through ODN based on PON ports. ONU realizes the access of user services, thereby realizing functions such as data services and configuration management.

[0027] In the passive optical network, multiple ONUs are accessed in units of PON ports, thereby realizing a P2MP topology structure, where "point" refers to the PON port of the central office device OLT, and "multipoint" refers to multiple ONUs connected to the PON port. Usually, the number of ONUs connected to the PON port is 1 to 128. In the P2MP topology structure, in the ODN that realizes the connection between the PON port of the OLT and the ONU, the convergence of multiple ONU connections is generally realized by an optical splitter. According to the networking, multi-level splitting is generally realized by cascading optical splitters. The optical splitter directly connected to the PON port of the OLT is called a primary optical splitter, which is hereinafter referred to as a secondary optical splitter, a tertiary optical splitter, etc. In which, the optical link connecting the PON port of the OLT and the primary optical splitter in the ODN is called a trunk optical fiber / optical path, and other optical links are called branch optical fibers / optical paths.

[0028] Based on the networking structure of the xPON system, if the trunk fiber is interrupted, all ONU services under the trunk fiber will be interrupted. Therefore, it is necessary to protect the trunk fiber. The original primary optical splitter can be changed from 1:N to 2:N, where 1 and 2 refer to the number of trunk fibers in the primary optical splitter, that is, the trunk fiber becomes two, and the two fibers are in the main and standby working mode. Correspondingly, the PON port connected to the trunk fiber is also set to two, and the two PON ports are mutually main and standby. The currently working PON port of the two PON ports can be called the main PON port, and the currently non-working PON port can be called the standby PON port. The trunk fiber connected to the main PON port can be called the main trunk fiber, and the trunk fiber connected to the standby PON port can be called the standby trunk fiber. Usually, the ONU is connected to the main PON port of the OLT through the main trunk fiber. When the main trunk fiber is abnormal, that is, when the OLT detects that the main trunk fiber has a PON LOS, the OLT controls the ONU service to switch to the backup trunk fiber, and the ONU is connected to the backup PON port of the OLT through the backup trunk fiber. The above protection mechanism is called trunk fiber protection, which can also be called PON trunk protection or PON TYPEB protection. Trunk fiber protection is currently the main optical link protection method under the PON port, which protects the ONU service based on the PON LOS detection of the main and backup PON ports. Among them, PON LOS usually means that when the PON port does not detect a valid upstream optical signal for 4 consecutive frames, it is considered that the PON port has generated a PON LOS.

[0029] As described above, the xPON system will initiate a trunk optical fiber master-slave switch according to the PON LOS. The inventors found during the invention process that the business scenarios that cause the central office device OLT to detect the PON LOS can be distinguished according to the ONU status under the PON port, including but not limited to the following business scenario examples:

[0030] Scenario 1: PON cell power failure (or power outage): that is, all ONUs under the PON port are powered off (generally a power outage in a centralized area), then the corresponding PON port side will detect a PON LOS alarm, but it has nothing to do with the trunk fiber failure;

[0031] Scenario 2: The last ONU under the PON port is powered off: When the last ONU under the PON port is powered off (DGi), the PON port side will detect a PON LOS alarm in this case;

[0032] Scenario 3: Only one ONU is configured on the PON port and it is powered off (DGi); or, multiple ONUs are configured on the PON port, but only one ONU is online and it is powered off (DGi). In these two cases, the PON port side will detect a PON LOS alarm.

[0033] Scenario 4: The last ONU under the PON port is offline: When the last ONU under the PON port is offline (LOSi), the PON port side will detect a PON LOS alarm in this case;

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

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

[0036] Scenario 7: The trunk optical fiber is broken.

[0037] Among them, the causes of the above scenarios 1 to 6 and scenario 7 are different. The cause of PON LOS in scenarios 1 to 3 is ONU power failure, and the cause of PON LOS in scenarios 4 to 5 may be trunk fiber breakage or branch fiber breakage; in scenario 6, it is impossible to determine whether the cause of PON LOS is trunk fiber breakage.

[0038] The ONU status involved includes:

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

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

[0041] The above-mentioned trunk fiber protection (PON trunk protection or PON TYPEB protection) mechanism can protect the ONU services under the PON port based on PON LOS, that is, when the current working main PON port generates PON LOS, the ONU services can be switched to the backup PON port. However, there may be the following problems:

[0042] 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, the OLT initiates the main and backup switching of the trunk fiber, and the ONU service will not be restored on the backup PON port, which is an invalid switching.

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

[0044] In actual applications, if the trunk fiber of the backup PON port is broken, or certain scenarios of PON LOS occur, the above trunk fiber protection will cause invalid switching, that is, the service cannot be restored after the switching, and further frequent switching between the main and backup PON ports will occur. This invalid switching and frequent switching will increase the workload of the system on the one hand, and generate a large number of invalid switching alarms or notification messages on the other hand, which will have an adverse impact on the stable operation and operation and maintenance of the system. The above problems exist in xPON systems that use passive optical networks or similar P2MP topology structures. Up to now, no effective solutions have been provided in the relevant technologies.

[0045] 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 using a P2MP topology structure 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, firstly, it 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 detection and synchronization of the status of the backup PON port is controlled to accelerate the update of the status of the backup PON port.

[0046] For the implementation environment of the trunk optical fiber protection method provided in the embodiment of the present application, please refer to Figure 1 , the xPON system includes EMS 101, OLT 102, ODN 103, and ONU 104, wherein:

[0047] EMS101 is responsible for the configuration, management, and maintenance of OLT102 and its ONU104, and manages the historical information of OLT102 and ONU104 as well as related alarms and notification messages. It can also dynamically maintain the related network and remind manual intervention according to the alarms or notification messages related to the main fiber primary and standby switching reported by OLT102.

[0048] OLT102 implements ONU registration and maintenance based on PON ports. At the same time, for trunk optical fiber protection, at least two PON ports are enabled on the OLT. The at least two PON ports can adopt a one-master-multiple-standby mode. The currently working PON port is the main PON port, and the currently non-working PON port is the standby PON port. Normally, two main and standby PON ports can be enabled on the OLT, and the corresponding ONUs can be linked through a 2:N optical splitter. When one of the links is interrupted, the OLT can automatically switch the ONU to the standby link to keep the service normal. Figure 1 In the above, only enabling two PON ports, active and standby, on the OLT is used as an example for schematic illustration. In specific implementation, more PON ports may be enabled on the OLT according to networking requirements.

[0049] ODN 103 is used to connect different numbers of ONUs 104 under OLT 102, and serves as a direct physical connection channel between OLT 102 and ONU 104. It may be composed of a plurality of physical devices, including but not limited to:

[0050] The trunk optical fiber / optical path (primary and backup) is used to connect the first-level 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 the form of one primary and multiple backups.

[0051] Optical splitter (one or more levels), generally according to ODN network planning and networking construction, one or more optical splitters are combined to achieve the splitting ratio, generally the maximum splitting ratio is 1:128 or 1:256. Since the optical splitter will introduce optical attenuation, the cascade of optical splitters generally does not exceed three levels. Among them, the optical splitter directly connected to the OLT PON port is a primary optical splitter, and the other cascaded optical splitters are called secondary optical splitters or tertiary optical splitters (referred to as n-level optical splitters).

[0052] Branch optical fiber, the optical path connecting the multi-stage splitters and the optical path directly connected to the ONU is called branch optical fiber.

[0053] 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 assigned by OLT 102 to complete service forwarding.

[0054] 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.

[0055] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0056] Please refer to Figure 2 , is a schematic flow chart of a trunk optical fiber protection method provided by an embodiment of the present application, the method may include:

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

[0058] 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, one master and one backup can be used. If there are three or more PON ports, one master and multiple backups can be used. For the at least two PON ports included in the PON protection group, they 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 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 at least one ONU corresponding to the PON protection group through their respective trunk optical fibers.

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

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

[0061] In a specific implementation, when there is an ONU online in at least one ONU corresponding to the PON protection group, the steps of detecting the upstream optical signal based on the main and standby PON ports and detecting and updating the status of the main and standby PON ports are performed. When there is no ONU online in at least one ONU corresponding to the PON protection group, the steps of detecting the upstream optical signal based on the main and standby PON ports and detecting and updating the status of the main and standby PON ports are not performed, thereby avoiding invalid switching and frequent switching caused by the scenario where the ONU has never been online.

[0062] In the PON port status information, the main PON port status is used to indicate whether the optical signal of the corresponding main PON port is normal, that is, whether the main PON port is available; the standby PON port status is used to indicate whether the optical signal of the corresponding standby PON port is normal, that is, whether the standby PON port is available. It can be understood that in the case of multiple standby PON ports, each standby PON port corresponds to its own status. Through the detection of the uplink optical signal of the PON port, the status of the corresponding PON port (including the main PON port and the standby PON port) can be detected, so that the PON port status can be set to normal or abnormal.

[0063] In an optional implementation, the method for detecting the state 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 the main PON port fails to detect a valid uplink optical signal for a set number of frames (e.g., 4 frames) continuously, 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;

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

[0065] In a specific implementation, the specific uplink optical signal may be an SD (Signal Detect) signal, and the presence of an SD signal may be periodically detected at the standby PON port according to a set first detection period (T1), and the first detection period is generally less than a set service recovery time threshold (SLArecover). SLArecover is a set time threshold, indicating 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 perform data transmission. In addition to the SD signal, the specific uplink optical signal may also be the uplink optical power of the standby PON port, thereby realizing the detection of the status of the standby PON port.

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

[0067] 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.

[0068] S203: When the state of the active PON port is abnormal, control the execution of active / standby switching of the trunk optical fiber based on the state of the standby PON port.

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

[0070] S2031. When all the backup PON ports are in abnormal status, the main fiber master-slave switching is not initiated, and an alarm message of abnormal PON protection group is generated;

[0071] S2032. When at least one backup PON port is in a normal state, control the execution of the main optical fiber master-slave switching according to the service scenario information corresponding to the PONLOS generated by the main PON port.

[0072] 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.

[0073] In a specific implementation, there is generally one main PON port, and there may be one or more backup PON ports (including two). In the case of one backup PON port, if the status of the backup PON port is normal, in the case of multiple backup PON ports, if there is at least one backup PON port in a normal state, it means that there is an available backup PON port, and the execution of the main optical fiber main-backup switching can be further controlled according to the service scenario information corresponding to the PON LOS generated by the main 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 optical fiber main-backup switching is not initiated, thereby avoiding invalid switching and frequent switching.

[0074] 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 there is a specific upstream optical signal at the standby 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 smaller than the first detection period T1; when the standby PON port detects the specific upstream optical signal, the state of the standby PON port is updated to be normal, and the switching indication information can also be synchronously updated to be switchable. At this time, if there is already a standby PON port in a normal state, step S2032 can be executed, that is, according to the business scenario information corresponding to the PON LOS generated by the main PON port, the execution of the main and standby switching of the trunk optical fiber is controlled.

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

[0076] S2032a, determining the service scenario judgment time and service scenario type corresponding to the PON LOS generated by the main PON port, wherein the service scenario judgment time is used to indicate the time when the ONU comes back online; illustratively, 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;

[0077] 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 master-slave switching according to the service scenario type corresponding to the PON LOS generated by the main PON port;

[0078] S2032c. When the service scenario judgment time is greater than the set service recovery time threshold SLArecover, initiate a main optical fiber master-slave switch, and 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 and the service scenario type corresponding to the PON LOS generated by the original main PON port.

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

[0080] Accordingly, in the specific implementation of S2032b, the execution of the main optical fiber master-slave switching can be controlled according to the service scenario type corresponding to the PON LOS generated by the main PON port, specifically:

[0081] When the service scenario type is ONU power failure, the main optical 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.

[0082] When the service scenario type is that the last or only ONU is offline, initiate the main optical fiber master-slave switching, 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 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.

[0083] Exemplarily, when the status of the new main PON port is normal, an alarm message of trunk fiber breakage 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 corresponding ONU LOSi or branch fiber breakage is generated. In order to further 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 standby PON ports is stopped.

[0084] Correspondingly, in the specific implementation of S2032c, when the state 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 state 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 standby PON ports is stopped.

[0085] In an optional implementation, 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 process goes to execute S202, i.e., based on the detection of the upstream optical signals of the main and backup PON ports, the step of detecting and updating the status of the main and backup PON ports is performed.

[0086] The trunk optical fiber protection method provided by the embodiment of the present application establishes PON port status information based on the PON protection group, and the PON port status information includes the main PON port status and the standby PON port status. When an ONU is online in at least one ONU corresponding to the PON protection group, the detection and update of the main and standby PON port status are realized by detecting the upstream optical signal of the PON port. Since the PON port status is detected only when an ONU is online in the PON protection group, frequent switching and frequent switching caused by the scenario that the ONU has never been online can be avoided. When it is detected that the main PON port status is abnormal, the execution of the main and standby switching of the trunk optical fiber is controlled according to the standby PON port status. By synchronously monitoring the main and standby PON port statuses, when the main PON port status is abnormal, the standby PON port status is referred to, and the execution of the main and standby switching is controlled based on the standby PON port status, thereby avoiding invalid switching and frequent switching when the standby PON port is unavailable. This solution effectively solves the problems of invalid switching and frequent switching that may exist in trunk optical fiber protection, and can save system resources and improve system performance.

[0087] Furthermore, when the status of the main PON port is abnormal, if the status of the backup PON ports are all abnormal, the main optical fiber master-slave switching will not be initiated. If there is a backup PON port in normal status, it will be combined with the business scenario information corresponding to the PONLOS generated by the main PON port to control the execution of the main optical fiber master-slave switching accordingly. 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.

[0088] Below, taking the enabling of two active and standby PON ports in the 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:

[0089] S301. The OLT establishes PON status information based on the PON protection group. The PON status information can 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, standby PON port (non-working port) status, switching indication information. The switching indication information can be in the form of a switching flag.

[0090] The PON protection group is a logical aggregation concept, and in this embodiment, it includes two physical PON ports, which are mutually active and standby. In the newly established state table, the field contents of the PON protection group index and the current working PON port identifier can be set according to the actual index value and the identifier value, while the field contents of the active PON port status, the standby PON port status, and the switching flag Flag are generally initialized to "empty". Subsequently, based on the detection of the upstream optical signals of the active and standby PON ports, the corresponding PON port status is detected and updated, and the switching flag Flag is set.

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

[0092] 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 status of the relevant PON port will not be performed.

[0093] S303 . The OLT detects and updates the status of the main and standby 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.

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

[0095] The detection method of the main PON port state is realized by detecting the uplink optical signal of the main PON port of the PON protection group. If no valid uplink optical signal is detected at the main PON port for a set number of frames (for example, 4 frames) continuously, it is determined that the main PON port generates PON LOS, and the state of the main PON port is set to Abnormal. Otherwise, the state of the main PON port is set to Normal.

[0096] The detection method of the standby PON port status is implemented by detecting the upstream optical signal of the standby PON port of the PON protection group, including but not limited to detecting specific upstream optical signals such as SD signal and upstream optical power. If a specific upstream 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 the alarm "backbone optical fiber of the standby PON port is broken" is reported.

[0097] 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., non-switchable);

[0098] 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 a standby PON port (a currently non-working PON port) according to T1, and synchronizes it to a corresponding status table.

[0099] S304, when the PON LOS occurs at the primary PON port, the status of the primary PON port in the status table is Abnormal, and further, different active-standby switching strategies are respectively executed according to the current switching flag Flag. In this embodiment, the active-standby switching of the trunk optical fiber is referred to as active-standby switching;

[0100] When the switching flag Flag=enable, execute step S305;

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

[0102] 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 active 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 active PON port.

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

[0104] When the service scenario judgment time corresponding to the PON LOS generated by the active 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;

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

[0106] S306. Control the execution of the main - standby switching according to the service scenario type corresponding to the PON LOS generated by the active PON port. Specifically:

[0107] If the service scenario type corresponding to the PON LOS generated by the active PON port is ONU power - off (corresponding to scenarios 1 to 3), do not initiate the main - standby switching, and abort the update of the status of the main and standby PON ports until the active PON port is restored;

[0108] If the service scenario type corresponding to the PON LOS generated by the active PON port is the last / only ONU offline (corresponding to scenarios 4 to 5), initiate the main - standby switching, and detect the status of the new active PON port after the switching. If the status of the new active PON port after the switching is Normal (including but not limited to ONU online, or an effective upstream optical signal is detected on the new active PON port), report the alarm as "the backbone optical fiber of the original active PON port is broken"; if the status of the new active PON port after the switching is Abnormal, restore the PON LOS service scenario alarm of the original active PON port, and report the alarm as "the corresponding ONU LOSi or branch optical fiber is broken".

[0109] 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 state synchronization of the master and standby PON ports.

[0110] Further, when an ONU is back online under any PON port (ie, the main 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.

[0111] S307, OLT first initiates the active / standby switching, and then processes the service scenario type corresponding to the PON LOS generated by the original active PON port according to the status of the new active PON port after the switching (ONU online status), specifically:

[0112] 7.1 If the status of the new active PON port after the switch is Normal (i.e. the relevant ONU is online), and the service scenario type corresponding to the PON LOS generated by the original active PON port is the last / only ONU offline (corresponding to scenarios 4 to 5), then the alarm "the trunk fiber of the original active PON port is broken" is generated;

[0113] 7.2 If the status of the new main 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 main PON port is the last / only ONU offline (corresponding to scenarios 4 to 5), the PON LOS service scenario alarm of the original main PON port is restored, and the reported alarm is "corresponding ONU LOSi or branch fiber is broken".

[0114] 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 stop updating the status of the active and standby PON ports.

[0115] 7.4 Further, when an ONU is back online under any PON port (ie, the main 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.

[0116] The above-mentioned trunk optical fiber protection method applied to OLT effectively solves the problems of invalid switching and frequent switching that may exist in trunk optical fiber protection, can save system resources and improve system performance.

[0117] In addition, Figure 2Corresponding to the trunk optical fiber protection method shown in the figure, the embodiment of the present application also provides a trunk optical fiber protection device, which can be set in an OLT, EMS and other equipment of the xPON system. An embodiment of the present application provides a trunk optical fiber protection device 400, such as Figure 4 As shown, including:

[0118] Establishing module 401, used 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 through respective trunk optical fibers, and the PON port status information at least includes 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;

[0119] The detection and updating module 402 is used 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 there is an ONU online in at least one ONU corresponding to the PON protection group;

[0120] The switching control module 403 is used to control the execution of the main optical fiber main and standby switching based on the standby PON port status when the main PON port status is abnormal.

[0121] In a specific implementation, the PON port status information may also 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.

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

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

[0124] The first standby detection submodule 422 is used to detect the uplink optical signal of the standby PON port. When the standby PON port detects a specific uplink optical signal, the standby PON port state is set to normal; otherwise, the standby PON port state is set to abnormal, and an alarm message of trunk optical fiber breakage of the corresponding standby PON port is generated.

[0125] 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 a set service recovery time threshold SLArecover.

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

[0127] The first control submodule 431 is used for not initiating the main fiber master-slave switchover and generating an alarm message of PON protection group abnormality when the main PON port status is abnormal and all the backup PON port statuses are abnormal;

[0128] The second control submodule 432 is used to 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 when the main PON port status is abnormal and at least one backup PON port status is normal.

[0129] In a specific implementation, the detection and updating module 402 may further include a second standby detection submodule 423, wherein:

[0130] The first control submodule 431 is further configured to trigger the second standby detection submodule 423 after generating an alarm message indicating an abnormality of the PON protection group;

[0131] 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 smaller 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.

[0132] In a specific implementation, the second control submodule 432 is specifically used to:

[0133] 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;

[0134] When the service scenario judgment time is less than or equal to the set service recovery time threshold SLArecover, 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;

[0135] When the service scenario judgment time is greater than the set service recovery time threshold SLArecover, initiate the main optical fiber master-slave switching, and 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 and the service scenario type corresponding to the PON LOS generated by the original main PON port.

[0136] The second control submodule 432 is specifically used to 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 main PON port:

[0137] 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;

[0138] 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.

[0139] The second control submodule 432 is specifically used in the process of detecting the state of the new active PON port after the switching and generating a corresponding alarm message according to the state of the new active PON port:

[0140] 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;

[0141] 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.

[0142] The second control submodule 432 is specifically used to generate 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:

[0143] 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;

[0144] When the state of the new main PON port is abnormal and the service 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 ONULOSi or branch fiber break is generated. When the set switching number threshold is reached, the main fiber master-slave switching is stopped, and the updating of the state of the main and standby PON ports is stopped.

[0145] In an optional implementation, the detection and update module 402 is also used to, after stopping the main optical fiber master-slave switching and stopping the updating of the main and backup PON port status, 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 status based on the detection of the upstream optical signal of the main and backup PON ports.

[0146] In an optional implementation, the detection and update module 402 is also used 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.

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

[0148] The trunk optical fiber protection device provided in the embodiment of the present application detects the PON port status only when an ONU is online in the PON protection group, thereby avoiding useless switching and frequent switching caused by the scenario that the ONU has never been online; by synchronizing the status of the main and standby PON ports, the status of the standby PON port is monitored to avoid invalid switching and frequent switching when the standby PON port is unavailable; further, in combination with the business scenario that causes PON LOS, the invalid switching and frequent switching in certain scenarios are effectively avoided through scenario recognition.

[0149] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores programs or instructions that can be executed on the processor 501, and when the program or instructions are 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, they are not repeated here.

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

[0151] 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.

[0152] 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.

[0153] 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, each process of the above-mentioned trunk optical fiber protection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0154] 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.

[0155] 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.

[0156] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out 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 reverse 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.

[0157] 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0158] 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A trunk optical fiber protection method, characterized in that: 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that: The controlling the execution of the main optical fiber master-slave switching according to the service scenario information corresponding to the PONLOS 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; When the service scenario judgment time is greater than the set service recovery time threshold, initiate a main optical fiber master-slave switching, and switch the original standby 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.

7. The method according to claim 6, characterized in that 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, characterized in that 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, characterized in that 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 main PON port is abnormal and the service 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. When the set switching number threshold is reached, the main fiber master-slave switching is stopped, and the updating of the state of the main and standby PON ports is stopped.

10. The method according to claim 8 or 9, characterized in that: 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, characterized in that: 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, characterized in that: 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, characterized in that: 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, characterized in that: 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, characterized in that: 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

  • Device for realizing protection switching in wavelength division multiplexing passive optical network (WDM PON), system and method therefor

    CN101667865A

  • 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

  • Service protection method, optical transport network device and storage medium

    WO2022105560A1

Cited By

  • Data transmission method and device, electronic equipment and FTTR network system

    CN119603586A

  • Method, apparatus, electronic device, and FTTR network system for data transmission

    CN119603586B

  • Redundant system and method for optical fiber connection from valve control equipment to thyristor

    CN119853788A