Methods and systems for PON cross-OLT protection switching
By introducing a four-state machine and multi-mechanism linkage, the problems of high misjudgment rate and low service recovery efficiency in PON cross-OLT protection switching are solved, achieving higher switching accuracy and service continuity, and improving the system's self-healing capability.
Patent Information
- Application Number
- CN202611300458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-17
AI Technical Summary
In existing PON cross-OLT protection switching solutions, the switching trigger determination criteria are singular, resulting in a high false judgment rate. The lack of a transition mechanism makes it easy for dual-send or dual-shutdown conflicts to occur. There is no self-healing mechanism when the synchronization process crashes. The configuration synchronization and switching decision are not linked, resulting in low service recovery efficiency.
By introducing a four-state machine, interconnection link detection, synchronization process protection, and configuration readiness linkage mechanism, and by setting working pending confirmation and non-working pending confirmation states, the PON port state decision and physical switching are separated. An interconnection link detection module and a protection module are added to achieve multi-dimensional judgment and state buffering, ensuring the decoupling of optical module transmission behavior.
It improves the accuracy of protection switching and the efficiency of business recovery, avoids the conflict and interruption problems under the traditional two-state model, and enhances the system's self-healing capability and business continuity.
Smart Images

Figure CN123123767A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical communication network technology, and more specifically, to a method and system for PON protection switching across OLT. Background Technology
[0002] In Passive Optical Network (PON) systems, the Type B protection switching architecture, through the collaborative operation of the primary optical line terminal (OLT) and the backup OLT, smoothly switches services to the backup link when the primary link fails, ensuring service continuity. In existing solutions, switching decisions primarily rely on the loss of signal (LOS) detection results of the local PON port and the timeout of synchronization message reception at the peer end. State switching employs a direct two-state switching model (working / protection), and configuration data synchronization runs as an independent background task, independent of the protection switching decision-making process. With the increasing reliability requirements of broadband services, the accuracy and response speed of PON protection switching solutions have become one of the core indicators for operator network construction.
[0003] However, existing Type B cross-OLT protection solutions have the following problems: The failover trigger determination relies on a single criterion; the local LOS cannot distinguish between transient false alarms and actual link failures; synchronization message timeouts also cannot differentiate between different causes such as physical disconnection of the interconnection link, process crash at the peer end, and power failure of the peer end, leading to a large number of false failovers; direct two-state switching lacks a transition mechanism, and cross-board / cross-chassis synchronization delays can easily lead to brief conflicts of double transmission or double shutdown, causing service disruption; there is no self-healing mechanism when the synchronization process crashes or deadlocks, and failover can only be performed after a timeout; configuration synchronization is an independent background task without linkage to failover decisions, and if the backup OLT takes over when critical configurations are not synchronized, ONUs will not be able to quickly come online. These deficiencies restrict the accuracy of protection failover and the efficiency of service recovery. Summary of the Invention
[0004] Based on this, it is necessary to address the above-mentioned problems. This invention provides a method and system for PON cross-OLT protection switching, which improves the accuracy of protection switching and the efficiency of service recovery by introducing multiple mechanisms such as a four-state machine, interconnection link detection, synchronization process protection, and configuration readiness linkage.
[0005] To achieve the above objectives, according to a first aspect of the present invention, a PON cross-OLT protection switching system is provided, used to switch a first PON port in the first OLT to a non-working state and a second PON port in the second OLT to a working state when the first OLT is in a working state and the second OLT is in a non-working state. The system is characterized by comprising a first switching module and a first judgment module disposed in the first OLT, and a second switching module and a second judgment module disposed in the second OLT, wherein: the first switching module is used to: switch the first PON port from a working state to a non-working pending confirmation state when a first condition is met; and switch the first PON port from a non-working state to a working state when a second condition is met. The system switches from a pending confirmation state to a non-working state; if the third condition is met, the first PON port switches from a non-working pending confirmation state to a working state; if the fourth condition is met, the first PON port switches from a working state to a non-working state; the first judgment module is used to determine whether the first to fourth conditions are met; the second switching module is used to: if the fifth condition is met, switch the second PON port from a non-working state to a working pending confirmation state; if the sixth condition is met, switch the second PON port from a working pending confirmation state to a working state; if the fourth condition is met, switch the second PON port from a non-working state to a working state; the second judgment module is used to determine whether the fourth to sixth conditions are met.
[0006] In the above implementation process, this system sets two transitional states, "working pending confirmation" and "non-working pending confirmation", to separate the PON port state decision and the physical switching of the optical module in terms of timing. This provides a buffer confirmation window for the synchronization delay between the primary and backup OLTs, effectively avoiding the "double-on" conflict and "double-off" interruption under the traditional two-state model, thereby improving the reliability of protection switching without increasing hardware costs.
[0007] Optionally, the first condition is: the first PON port receives a synchronization message sent by the second PON port, and the synchronization message indicates that the second PON port is in a non-working state or a non-working pending confirmation state, or receives a forced switchover instruction to the second PON port; the second condition is: the first PON port detects a signal loss (LOS) in the current cycle and there is no LOS identifier in the synchronization message received by the second PON port in the previous cycle, or continuously detects LOS within a preset anti-jitter timing window; the third condition is: the first PON port does not receive a synchronization message from the second PON port within a first preset time, or receives a forced switchover instruction to the first PON port; the fourth condition is: the first PON port receives a forced switchover instruction to the second PON port. The fifth condition is: the second PON port receives a synchronization message sent by the first PON port and the synchronization message indicates that the first PON port is in a working state or a working pending confirmation state, or receives an instruction to force switch to the second PON port; the sixth condition is: the second PON port does not receive a synchronization message from the first PON port within a first preset time, or receives an instruction to force switch to the second PON port, or the second PON port detects LOS in this cycle and there is no LOS identifier in the synchronization message received by the first PON port in the previous cycle, or receives a synchronization message from the first PON port in a non-working state.
[0008] Optionally, the first OLT further includes a first interconnection link detection module, and the second OLT further includes a second interconnection link detection module, wherein: the first interconnection link detection module is used to: detect whether the hardware layer physical status of the interconnection link between the second OLT and the first OLT is normal when the first PON port does not receive a synchronization message sent by the second PON port for three consecutive synchronization cycles; if not, trigger the first switching module when the first PON port has a LOS; the second interconnection link detection module is used to: detect whether the hardware layer physical status of the interconnection link between the second OLT and the first OLT is normal when the second PON port does not receive a synchronization message sent by the first PON port for three consecutive synchronization cycles; if not, trigger the second switching module when the second PON port has a LOS.
[0009] In the above implementation process, by adding an interconnection link detection module, after the synchronization message times out, it is first determined whether the physical state of the hardware layer of the interconnection link is normal, thereby distinguishing between the two different root causes of "parallel PON port failure" and "interconnection link disconnection", avoiding false triggering of switching due to physical link disconnection and improving the accuracy of switching decision.
[0010] Optionally, the first OLT further includes a first guardian module, and the second OLT further includes a second guardian module, wherein: the first guardian module is used to: send a second self-status check command to the second guardian module when triggered; and trigger a first switching module when the second guardian process module does not return the running status information of the second OLT synchronization process, and the first PON port has a LOS, and the number of online optical network units (ONUs) decreases; the second guardian module is used to: send a first self-status check command to the first guardian module when triggered; and trigger a second switching module when the first guardian process module does not return the running status information of the first OLT synchronization process, and the second PON port has a LOS, and the number of online optical network units (ONUs) decreases.
[0011] In the above implementation process, by adding a guardian module, the first OLT and the second OLT can actively explore the running status of each other's synchronization process, and combine the decrease in the number of online LOS and ONUs on the local end to make a multi-dimensional joint judgment, thereby effectively distinguishing between two fault scenarios: "power failure or restart of the peer device" and "crash or deadlock of the peer synchronization process". This avoids misjudging the link failure as a switchover due to process-level anomalies, and further improves the accuracy of protection switchover decisions and the system's self-healing capability.
[0012] Optionally, the first OLT further includes a first readiness management module, and the second OLT further includes a second readiness management module, wherein: the first readiness management module is used to: detect the configuration synchronization readiness of the first OLT before the first PON port switches to the working state, the configuration synchronization readiness being the synchronization completion percentage of the ONU's first-level key configuration, the first-level key configuration including at least ONU registration information, ranging value, and encryption key; when the configuration synchronization readiness is 100%, trigger the first switching module; when the configuration synchronization readiness is not lower than a first preset threshold but not 100%, trigger the first switching module; when the configuration synchronization readiness is lower than the first preset threshold, switch the preset anti-shake meter... The time window is reused as an emergency configuration completion time window, and the first switching module is triggered only when the configuration synchronization readiness level increases to no less than the first preset threshold. The second readiness management module is used to: detect the configuration synchronization readiness level of the second OLT before the second PON port switches to the working state; trigger the second switching module when the configuration synchronization readiness level is 100%; trigger the second switching module when the configuration synchronization readiness level is no less than the first preset threshold but has not reached 100%; and reuse the preset anti-shake timing window as an emergency configuration completion time window when the configuration synchronization readiness level increases to no less than the first preset threshold.
[0013] In the above implementation process, by adding a readiness management module, the synchronization completion rate of the first-level critical configuration of the ONU is graded and determined before the PON port switchover. Differentiated strategies are executed according to the readiness level, such as direct switchover, switchover with supplementary registration, and emergency configuration completion using the reused anti-jitter window. This avoids the backup OLT taking over hastily when the critical configuration is not ready, which would prevent the ONU from going online quickly. This improves the reliability of the switchover decision while ensuring the efficiency of service recovery.
[0014] According to a second aspect of the present invention, a method for PON protection switching across OLT is provided, applied to the system described in the present invention. The method includes, under the condition that the first, second, fifth, and sixth conditions are satisfied sequentially, performing the following switching sequentially: a first PON port switches from a working state to a non-working pending confirmation state; a second PON port switches from a non-working state to a working pending confirmation state; a first PON port switches from a non-working pending confirmation state to a non-working state; and a second PON port switches from a working pending confirmation state to a working state. Specifically, for the first PON port and the second PON port, the optical module transmission of the PON port is enabled in both the working state and the non-working pending confirmation state, and disabled in both the working pending confirmation state and the non-working state.
[0015] In the above implementation process, this method forms a strict timing chain of "first PON port retreat - second PON port preparation - first PON port complete exit - second PON port formal takeover" by successively meeting the conditions, so that the state switching of the primary and backup PON ports is executed in an orderly manner. At the same time, it clearly defines the opening and closing behavior of optical module transmission in each state, ensuring that the logical role and physical transmission behavior are decoupled during the transition state, avoiding the "double opening" conflict and "double closing" interruption problem caused by the synchronous execution of state flipping and optical module action under the traditional two-state model, thereby improving the reliability of protection switching without increasing hardware costs.
[0016] Optionally, if the fourth condition is met, the following switching is performed sequentially: the first PON port is switched from the working state to the non-working state, and the second PON port is switched from the non-working state to the working state.
[0017] Optionally, if the second PON port fails to receive a synchronization message from the first PON port for three consecutive synchronization cycles, the second OLT detects the hardware layer physical status of the interconnection link between the first OLT and the second OLT. If the hardware layer physical status is normal, the first OLT's guardian diagnostic method is executed. If the hardware layer physical status is abnormal, the second PON port is switched from the working pending confirmation state to the working state if a LOS exists on the second PON port.
[0018] In the above implementation process, the method uses a layered diagnostic mechanism to first determine the physical state of the interconnection link hardware layer after the synchronization message times out, and distinguish between two different root causes: "hardware link disconnection" and "abnormal process of peer device". If the hardware is abnormal, it combines LOS for rapid failover to restore services. If the hardware is normal, it further performs guardian diagnostics to investigate process-level faults, thereby avoiding blind failover due to physical link disconnection or peer process crash, improving the accuracy of failover decision-making while taking into account the efficiency of service recovery.
[0019] Optionally, the guardian diagnostic method of the first OLT includes: when the first OLT receives a first self-status check instruction sent by the guardian process of the second OLT, the first OLT detects the running status of its own synchronization process and returns the running status information to the guardian process of the second OLT; after returning the running status information, the first OLT performs a reset or restart operation on its own synchronization process; the first OLT sends a second self-status check instruction to the guardian process of the second OLT; if the second OLT fails to return the running status information of its own synchronization process to the guardian process of the first OLT within a preset response time, then, based on the condition that the first PON port has a LOS and the number of online optical network units (ONUs) decreases, the first PON port switches from a working pending confirmation state to a working state.
[0020] In the above implementation process, this protective diagnostic method, through a two-way interaction mechanism, enables the OLT receiving the status check command to proactively perform a reset or restart operation after returning its own synchronization process running status to the other party, achieving self-repair of process-level faults. Simultaneously, if the sender does not receive the running status information returned by the other party within a preset response time, it determines the peer's failure based on multiple factors such as the presence of LOS on the local PON port and a decrease in the number of online ONUs, triggering a switchover. This effectively distinguishes between two fault scenarios: "peer synchronization process crash / deadlock" and "peer system power failure or restart." For the former, process reset self-healing is implemented; for the latter, switchover takeover is performed, avoiding erroneous switchover triggering due to process-level anomalies, further improving the accuracy of protection switchover decisions and the system's self-healing capability.
[0021] Optionally, before the second PON port switches to the working state, the process further includes: the second OLT detecting the configuration synchronization readiness of the second OLT, wherein the configuration synchronization readiness is the synchronization completion ratio of the first-level key configuration of the optical network unit (ONU), and the first-level key configuration includes at least ONU registration information, ranging value, and encryption key; when the configuration synchronization readiness is 100%, the second PON port switches from the working pending confirmation state to the working state; when the configuration synchronization readiness is not lower than a first preset threshold but not 100%, the second PON port switches from the working pending confirmation state to the working state; when the configuration synchronization readiness is lower than the first preset threshold, configuration compression transmission is triggered, and the preset anti-jitter timing window is reused as an emergency configuration completion time window; when the configuration synchronization readiness increases to not lower than the first preset threshold, the second PON port switches from the working pending confirmation state to the working state.
[0022] In the above implementation process, before the second PON port switches to the working state, the method performs a graded judgment on the synchronization completion ratio of the first-level key configuration of the ONU: the switch is allowed when the readiness reaches 100% or is not lower than the preset threshold; when the readiness is lower than the threshold, configuration compression transmission and multiplexing anti-jitter window are triggered to urgently complete the configuration. The switch is only performed after the readiness is raised to above the threshold, thereby avoiding the ONU being unable to quickly go online due to the backup OLT taking over hastily when the key configuration is not ready. This ensures the reliability of the switch decision while taking into account the efficiency of service recovery.
[0023] In summary, this invention provides a PON cross-OLT protection switching system. By introducing two transitional states, "working pending confirmation" and "non-working pending confirmation," between the working and non-working states of the PON port, the PON port no longer jumps directly during switching. Instead, it proceeds in two steps: first, it enters the transitional state to wait for confirmation from the other end; then, the final switching is completed once the conditions are met. This provides a buffer time between logical decision-making and physical action, effectively avoiding the problem of both ends simultaneously emitting or not emitting light, which is common in traditional solutions. This improves the reliability and service continuity of protection switching without increasing hardware costs. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1This is a flowchart of the PON cross-OLT protection switching method provided in the embodiments of the present invention; Figure 2 This is a schematic diagram of the four-state machine transition provided in an embodiment of the present invention; Figure 3 A flowchart of the daemon process self-healing method provided in the embodiments of the present invention; Figure 4 A flowchart of the configuration readiness check method provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the system module composition provided in an embodiment of the present invention.
[0026] Figure 2 Explanation of the reference numerals in the attached diagram: 201: S1→S2, 202: S2→S4, 203: S2→S1, 204: S1→S4, 205: S4→S3, 206: S3→S1, 207: S4→S1, 208: The primary PON sends a synchronization message to the backup PON, 209: The backup PON sends a synchronization message to the primary PON. Detailed Implementation
[0027] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention.
[0028] In a Passive Optical Network (PON) system, the primary Optical Line Terminal (OLT) and the backup OLT are connected via an interconnect link. The PON port of the primary OLT is in an active state, responsible for normal service communication with the Optical Network Unit (ONU), and its optical module transmit is enabled. The PON port of the backup OLT is in an inactive state, its optical module transmit is disabled, and it is ready to take over the work of the primary OLT in case of failure. The primary and backup OLTs send synchronization messages to each other at a fixed period (1 second) to exchange information such as the role status of their respective PON ports, the Loss of Signal (LOS) flag, and the health of the synchronization process, in order to maintain state synchronization between the primary and backup OLTs.
[0029] It should be noted that the following embodiments are described using the example of switching from the primary OLT to the backup OLT. However, the method of the present invention is also applicable to the reverse scenario of switching from the backup OLT to the primary OLT. The two are completely symmetrical in terms of state transition logic and optical module control. Those skilled in the art can apply it to the reverse switching scenario without any doubt after reading this embodiment, so it will not be described again.
[0030] This invention employs a four-state machine as the core control mechanism for protection switching. For example... Figure 2 As shown, the four states are: working state S1, non-working pending confirmation state S2, working pending confirmation state S3, and non-working state S4. In working state S1 and non-working pending confirmation state S2, the optical module of this PON port is enabled for transmission; in working pending confirmation state S3 and non-working state S4, the optical module of this PON port is disabled for transmission. The transitions between each state are triggered independently by corresponding conditions, as detailed below: First condition (triggering S1→S2): The primary PON port receives a synchronization message sent by the backup PON port and the synchronization message indicates that the backup PON port is in a non-working state or a non-working pending confirmation state, or the primary PON port receives an instruction to force switchover to the backup PON port. Second condition (trigger S2→S4): The primary PON port detects a signal loss (LOS) in this cycle and there is no LOS identifier in the backup PON port synchronization message received in the previous cycle, or LOS is continuously detected within the preset anti-jitter timing window. The third condition (triggering S2→S1): The primary PON port does not receive a synchronization message from the backup PON port within the first preset time, or the primary PON port receives an instruction to force a switchover to the primary PON port. Fourth condition (triggering direct transfer from S1 to S4): The primary PON port receives an immediate command to force a switchover to the backup PON port. Fifth condition (triggering S4→S3): The standby PON port receives a synchronization message sent by the primary PON port and the synchronization message indicates that the primary PON port is in working state or working pending confirmation state, or the standby PON port receives an instruction to force switchover to the standby PON port. Sixth condition (triggering S3→S1): The backup PON port does not receive a synchronization message from the primary PON port within the first preset time, or the backup PON port receives a forced switchover instruction to the backup PON port, or the backup PON port detects a LOS in this cycle and there is no LOS identifier in the synchronization message received from the primary PON port in the previous cycle, or the backup PON port receives a synchronization message from the primary PON port indicating that the primary PON port is in a non-working state.
[0031] Seventh condition (triggering direct transfer from S4 to S1): The standby PON port receives an immediate command to force a switchover to the standby PON port. Based on the above four-state machine, such as Figure 1 As shown, the method of the present invention includes the following steps: Step S101: Detection Trigger. When the standby OLT detects an abnormal event, the protection switching determination process is triggered. The abnormal events include: the standby OLT's PON port detecting a LOS; the standby OLT not receiving a synchronization message from the primary OLT within three consecutive synchronization cycles; and a forced switching command issued by the operation and maintenance center.
[0032] Step S102: Fault Determination. When the triggering event is a synchronization message timeout, the backup OLT performs a two-dimensional inspection of the interconnection link between the primary OLT and the backup OLT to distinguish the fault type. The two dimensions include hardware layer inspection and software layer inspection: hardware layer inspection determines the physical connectivity of the interconnection link through Ethernet link status or optical module LOS / optical power; software layer inspection determines the software layer communication status of the interconnection link through synchronization message reception timeout and packet loss rate statistics. Based on the cross-determination of hardware layer and software layer inspection results, different scenarios such as physical faults of the interconnection link, abnormal synchronization process at the peer end, and overall faults of the peer end are distinguished.
[0033] Step S103: Synchronization Process Diagnosis. When the physical state of the interconnection link hardware layer is normal but synchronization messages are continuously lost, the backup OLT sends a self-status check command to the daemon process of the primary OLT to confirm the running status of the primary OLT's synchronization process. If the primary OLT's synchronization process crashes or deadlocks, the primary OLT's daemon process performs a reset or restart operation to achieve self-healing. If the primary OLT's daemon process itself does not respond, the primary OLT is comprehensively judged as to whether it has experienced a complete system failure, based on the backup PON port LOS status and the decrease in the number of online ONUs.
[0034] Step S104: Configuration Readiness Check. After confirming the need for protection switching, the standby OLT checks its own configuration synchronization readiness before performing a physical switch. The configuration synchronization readiness is the percentage of synchronization completion of the ONU's first-level critical configurations, which include at least ONU registration information, ranging values, and encryption keys. The standby OLT performs tiered decisions based on the configuration synchronization readiness: when the readiness is 100%, switching is allowed; when the readiness is not lower than a first preset threshold but not 100%, switching is allowed, and a configuration supplementation targeted registration process is initiated after the switching is completed; when the readiness is lower than the first preset threshold, switching is suppressed, emergency configuration compression transmission is triggered, and the preset anti-jitter timing window is reused as the time window for emergency configuration completion. Switching is only performed when the readiness increases to not lower than the first preset threshold.
[0035] Step S105: Switchover complete. The backup OLT officially takes over the service, establishes communication with the ONU, and the service is restored.
[0036] During the execution of steps S101 to S104, the primary OLT and the backup OLT drive the state machine to perform the corresponding state transitions in real time according to the aforementioned first to sixth conditions.
[0037] Specifically, the hardware layer detection in step S102 is implemented as follows: When the primary OLT and the backup OLT are interconnected via Ethernet cable or switch, the hardware layer detects the status of the Ethernet link: when the physical layer (PHY) chip reports a link interruption, the hardware layer physical status is determined to be abnormal; when the link is connected, the hardware layer physical status is determined to be normal.
[0038] When the primary OLT and the backup OLT are directly connected by optical fiber, the hardware layer detects the signal loss (LOS) or optical power of the optical module to make a judgment: when the optical module reports LOS or the received optical power is lower than a preset threshold, the physical state of the hardware layer is determined to be abnormal; otherwise, it is determined to be normal.
[0039] The software layer detection in step S102 is implemented as follows: The primary OLT and backup OLT each send synchronization messages to the peer at a fixed period (1 second), and the synchronization messages carry sequence numbers. The receiving side calculates the packet loss rate within a sliding window to distinguish between occasional packet loss and continuous packet loss. When the packet loss rate exceeds a preset threshold, or when no synchronization message is received within three consecutive synchronization periods, the software layer synchronization message status is determined to be abnormal.
[0040] The hardware layer detection results and software layer detection results are combined to form the following four combinations: The differentiated processing strategies for the above four combinations are as follows: In combination one, if the physical state of the hardware layer is normal and the synchronization messages of the software layer are received normally, the interconnection link is determined to be completely healthy, no intervention operation is performed, and the current state is maintained.
[0041] In combination two, if the physical state of the hardware layer is normal but the software layer synchronization messages are continuously lost, the root cause of the fault is determined to be an abnormality in the software layer or synchronization process of the primary OLT (such as synchronization process crash, deadlock, or blockage), rather than a physical fault in the interconnection link or a fault in the peer device. In this case, the backup OLT does not trigger PON port protection switching and proceeds to the daemon process diagnostic process in step S103.
[0042] In combination three, if the physical state of the hardware layer is abnormal but the synchronization messages of the software layer can still be received normally, it is determined that there is an abnormality in the hardware layer itself (such as false alarm of Ethernet link status or abnormal sampling of digital diagnostic monitoring of optical module), rather than a real fault in the interconnection link or the peer OLT. Only an alarm is reported, and no switching operation is triggered.
[0043] In combination four, if the physical state of the hardware layer is abnormal and the synchronization message of the software layer is lost, it is determined to be a physical fault in the interconnection link (such as a broken network cable, a broken fiber optic cable, or a power failure of the intermediate switch). In this case, a comprehensive decision is made based on whether there is a Loss of Service (LOS) on the backup PON port: if there is an LOS on the local PON port, protection switching is triggered; if there is no LOS on the local PON port, only an alarm is reported, and switching is not triggered.
[0044] like Figure 3 As shown, when the synchronization process of the peer is determined to be abnormal in the second combination of step S102, the synchronization process diagnosis process in step S103 is executed. The specific steps are as follows: Step S301: If the standby PON port fails to receive a synchronization message from the primary PON port for three consecutive synchronization cycles, the synchronization process diagnostic procedure is triggered.
[0045] Step S302: The standby OLT daemon sends a self-status check instruction to the primary OLT daemon; wherein the daemon runs independently of the synchronization process and runs with a higher scheduling priority than the synchronization process.
[0046] Step S303: The standby OLT daemon waits for a response from the primary OLT daemon.
[0047] Step S304: If the standby OLT daemon process receives the synchronization process running status information returned by the primary OLT daemon process within the preset response time, then determine the running status of the primary OLT synchronization process: if the synchronization process is running normally, then proceed to step S305; if the synchronization process crashes or deadlocks, then proceed to step S306.
[0048] Step S307: If the standby OLT daemon process does not receive a response from the primary OLT daemon process, it will retry once; if there is still no response after two retries, it will be determined that the primary OLT daemon process is unreachable, and step S308 will be executed.
[0049] Step S308: Determine whether there is a signal loss (LOS) on the backup PON port and whether the number of online optical network units (ONUs) has decreased: If yes, proceed to step S309; if no, proceed to step S310.
[0050] like Figure 4 As shown, the readiness check process configured in step S104 specifically includes the following steps: Step S401: The standby OLT checks its own configuration synchronization readiness; the configuration synchronization readiness is the percentage of ONU first-level critical configuration synchronization completion, which includes at least ONU registration information, ranging value and encryption key.
[0051] Step S402: If the configuration synchronization readiness is 100%, then proceed to step S407.
[0052] Step S403: If the configuration synchronization readiness is greater than 80% but less than 100%, then execute step S407 and start the configuration supplementary targeted registration process after the switchover is completed.
[0053] Step S404: If the configuration synchronization readiness is less than 80%, then proceed to step S405.
[0054] Step S405: Trigger emergency configuration compression transmission and reuse the preset anti-shake timing window as the time window for emergency configuration completion.
[0055] Step S406: When the configuration synchronization readiness level increases to no less than 80%, proceed to step S407.
[0056] Step S407: Switchover is allowed. The PON port of the standby OLT switches from the pending confirmation state to the working state.
[0057] To better understand the present invention, three examples are provided below for further explanation.
[0058] Example 1: Normal Protection Switching Procedure Initial state: The PON port of the working OLT is in state S1 (working PON port), the optical module transmission is enabled, and a synchronization message is sent to the peer every T1=1 second (carrying the role status as working, LOS=0, process health as normal, and sequence number N). The PON port of the standby OLT is in state S4 (non-working PON port), and the optical module transmission is disabled.
[0059] Step 1: The working OLT's PON port detects a LOS alarm (Loss of local PON fiber optic signal).
[0060] Step 2: The working OLT's PON port state machine determines: Currently in S1, a new LOS appears on the local end, and the LOS in the peer's last synchronization information is 0 (the peer did not perceive the LOS), satisfying condition ① of transition condition 1, triggering the S1→S2 transition. The optical module's transmit state remains on (transitional state), and simultaneously, the LOS flag is set to 1 in the next synchronization message and sent to the peer.
[0061] Step 3: The standby OLT receives the synchronization message from the peer, and its role status is non-working pending confirmation, triggering the S4→S3 transition (working pending confirmation). The optical module's transmission status remains closed.
[0062] Step 4: If the working OLT continuously detects LOS within the holding window (satisfying condition ② of transition condition 1), it executes the S2→S4 transition and shuts down the optical module transmission.
[0063] Step 5: The standby OLT receives the synchronization message from the peer, and the peer's status is non-working, satisfying condition ② of transition condition 2. The S3→S1 transfer is executed, the optical module transmission is started, and the protection switch is completed.
[0064] Step 6: The ONU detects the change in uplink optical power, completes the re-ranging, and the service is restored after the switchover is completed.
[0065] Example 2: Synchronization Process Fault Self-Healing Process Scenario: The Ethernet interconnect link between the working OLT and the standby OLT is physically normal, but the synchronization process (SyncAgent) of the working OLT crashes due to a memory error and fails to send synchronization messages for three consecutive synchronization cycles.
[0066] Step 1: The backup OLT's synchronization receiving module detects that it has not received a synchronization message for 3 consecutive cycles (3 seconds), triggering the fault detection process.
[0067] Step 2: Check the physical status of the interconnection link: Normal. Proceed to the daemon process detection process.
[0068] Step 3: The standby OLT sends a watchdog probe command (serial number N, timeout 500ms) to the watchdog port of the watchdog process (WatchdogAgent) of the working OLT.
[0069] Step 4: The WatchdogAgent (real-time priority, running normally) of the working OLT receives the probe command and immediately sends back the watchdog response (SyncAgent status is crashed, CPU load = 45%).
[0070] Step 5: The standby OLT receives the watchdog response, determines that SyncAgent has crashed, and sends a synchronization reset command. The reset type is reboot.
[0071] Step 6: The WatchdogAgent of the working OLT executes SyncAgent to restart. After a successful restart, a reset result is sent, which indicates success.
[0072] Step 7: After SyncAgent recovers, it sends a synchronization message, and the standby OLT resumes normal synchronization.
[0073] Step 8: No PON port protection switching was triggered throughout the process, and services were uninterrupted. The total self-healing time is approximately 1-2 seconds.
[0074] Example 3: Configuring a protection failover process linked to readiness Scenario: After system initialization, there are 128 ONUs under the working OLT, and the standby OLT has synchronized the first-level critical configuration of 100 ONUs. The readiness level is 100 / 128≈78%, which is lower than the 80% threshold.
[0075] Step 1: The working OLT experiences a hardware failure, both WatchdogAgent and SyncAgent are unresponsive, the interconnection link is interrupted, and the local PON port experiences a LOS.
[0076] Step 2: The state machine of the standby OLT detects the switchover trigger condition, queries the current readiness level and finds it to be 78% < 80%, thus determining that the readiness level is insufficient.
[0077] Step 3: Trigger emergency configuration compression transmission: Send the first-level configuration of the remaining 28 ONUs on the interconnection link with the highest priority (at this time, the interconnection link is interrupted and the transmission fails; instead, it is obtained again from the network management system or network element management system).
[0078] Step 4: Since the trigger condition is a complete machine failure (WatchdogAgent unresponsive + LOS), the system determines that it cannot wait and performs a forced switchover. At the same time, the "configuration supplement targeted registration" process is started: 100 ONUs that have been synchronized are prioritized for registration and recovery, and the remaining 28 ONUs enter the re-registration queue.
[0079] Step 5: Services were quickly restored across 100 ONUs, and the remaining 28 ONUs were restored gradually after re-registration. The overall downtime was significantly reduced compared to the full re-registration solution.
[0080] Figure 5 The PON cross-OLT protection switching system provided for embodiments of the present invention includes a module group 50 disposed on the main OLT side.
[0081] The primary OLT includes: a judgment module 501, used to determine whether the first to seventh conditions are met; a switching module 502, used to perform a switching operation between PON port states when the judgment module 501 determines that the corresponding conditions are met; a guardian module 503, used to detect the running status of the primary OLT synchronization process and return a response when the guardian process of the standby OLT sends a command to detect its own status, and to perform a reset or restart operation on the synchronization process; an interconnection link detection module 504, used to perform hardware-level physical status detection on the interconnection link between the primary OLT and the standby OLT; and a readiness management module 505, used to detect the configuration synchronization readiness of the primary PON port and perform hierarchical decisions based on the readiness level.
[0082] It should be noted that the standby OLT contains the same judgment module, switching module, interconnection link detection module, guardian module, and readiness management module as the primary OLT. The primary and standby roles are symmetrical, and will not be repeated here. All of the above modules work together to execute... Figures 1 to 4 The steps shown enable a multi-mechanism joint reliability enhancement for PON cross-OLT protection switching.
Claims
1. A system for protection switching of a Passive Optical Network (PON) across an Optical Line Terminal (OLT), used to switch the first PON port in the first OLT to a non-working state and the second PON port in the second OLT to a working state when the first OLT is in a working state and the second OLT is in a non-working state, characterized in that, It includes a first switching module and a first judgment module disposed in a first OLT, and a second switching module and a second judgment module disposed in a second OLT, wherein: The first switching module is used to: switch the first PON port from the working state to the non-working pending confirmation state when the first condition is met; switch the first PON port from the non-working pending confirmation state to the non-working state when the second condition is met; switch the first PON port from the non-working pending confirmation state to the working state when the third condition is met; and switch the first PON port from the working state to the non-working state when the fourth condition is met. The first judgment module is used to determine whether the first to fourth conditions are met; The second switching module is used to: switch the second PON port from a non-working state to a working pending confirmation state when the fifth condition is met; switch the second PON port from a working pending confirmation state to a working state when the sixth condition is met; and switch the second PON port from a non-working state to a working state when the fourth condition is met. The second judgment module is used to determine whether the fourth to sixth conditions are met.
2. The system according to claim 1, characterized in that, The first condition is: the first PON port receives a synchronization message sent by the second PON port and the synchronization message indicates that the second PON port is in a non-working state or a non-working pending confirmation state, or receives an instruction to force switch to the second PON port. The second condition is: the first PON port detects a signal loss (LOS) in the current cycle and there is no LOS identifier in the synchronization message received by the second PON port in the previous cycle, or LOS is continuously detected within the preset anti-shake timing window. The third condition is: the first PON port does not receive a synchronization message from the second PON port within a first preset time, or receives an instruction to force a switchover to the first PON port. The fourth condition is: the first PON port receives an immediate instruction to force a switchover to the second PON port, or the second PON port receives an immediate instruction to force a switchover to the second PON port. The fifth condition is: the second PON port receives a synchronization message sent by the first PON port and the synchronization message indicates that the first PON port is in a working state or a working pending confirmation state, or receives an instruction to force switchover to the second PON port. The sixth condition is: the second PON port does not receive a synchronization message from the first PON port within a first preset time, or receives an instruction to force a switchover to the second PON port, or the second PON port detects a LOS in this cycle and there is no LOS identifier in the synchronization message received from the first PON port in the previous cycle, or the second PON port is in a non-working state when it receives a synchronization message from the first PON port.
3. The system according to claim 2, characterized in that, The first OLT further includes a first interconnection link detection module, and the second OLT further includes a second interconnection link detection module, wherein: The first interconnection link detection module is used to: detect whether the hardware layer physical status of the interconnection link between the second OLT and the first OLT is normal when the first PON port does not receive a synchronization message sent by the second PON port for three consecutive synchronization cycles; if not, trigger the first switching module if there is a LOS on the first PON port. The second interconnection link detection module is used to: detect whether the hardware layer physical status of the interconnection link between the second OLT and the first OLT is normal when the second PON port does not receive a synchronization message sent by the first PON port for three consecutive synchronization cycles; if not, trigger the second switching module if there is a LOS on the second PON port.
4. The system according to claim 3, characterized in that, The first OLT further includes a first guardian module, and the second OLT further includes a second guardian module, wherein: The first guardian module is used to: send a second self-status check command to the second guardian module when triggered; and trigger the first switching module when the second guardian module fails to return the running status information of the second OLT synchronization process, the first PON port has a LOS, and the number of online optical network units (ONUs) decreases. The second guardian module is used to: send a first self-status check command to the first guardian module when triggered; and trigger the second switching module when the first guardian module fails to return the running status information of the first OLT synchronization process, the second PON port has a LOS, and the number of online optical network units (ONUs) decreases.
5. The system according to claim 3, characterized in that, The first OLT further includes a first readiness management module, and the second OLT further includes a second readiness management module, wherein: The first readiness management module is used to: detect the configuration synchronization readiness of the first OLT before the first PON port switches to the working state. The configuration synchronization readiness is the synchronization completion rate of the first-level key configuration of the ONU, which includes at least ONU registration information, ranging value and encryption key; when the configuration synchronization readiness is 100%, the first switching module is triggered; when the configuration synchronization readiness is not lower than the first preset threshold but not 100%, the first switching module is triggered; when the configuration synchronization readiness is lower than the first preset threshold, the preset anti-shake timing window is reused as the time window for emergency configuration completion, and the first switching module is triggered again when the configuration synchronization readiness is raised to not lower than the first preset threshold. The second readiness management module is used to: detect the configuration synchronization readiness of the second OLT before the second PON port switches to the working state; trigger the second switching module when the configuration synchronization readiness is 100%; trigger the second switching module when the configuration synchronization readiness is not lower than the first preset threshold but not 100%; and reuse the preset anti-shake timing window as an emergency configuration completion time window when the configuration synchronization readiness increases to not lower than the first preset threshold before triggering the second switching module.
6. A method for protection switching of a passive optical network (PON) across an optical line terminal (OLT), applied to the system described in claim 1 or 2, characterized in that, The method includes, in sequence, switching as follows when the first, second, fifth, and sixth conditions are met: The first PON port switches from working state to non-working pending confirmation state, the second PON port switches from non-working state to working pending confirmation state, the first PON port switches from non-working pending confirmation state to non-working state, and the second PON port switches from working pending confirmation state to working state. Specifically, for the first PON port and the second PON port, the optical module transmission of this PON port is turned on in the working state and in the non-working pending confirmation state, and the optical module transmission of this PON port is turned off in the working pending confirmation state and the non-working state.
7. The method according to claim 6, characterized in that, Also includes: If the fourth condition is met, the following switching will be performed sequentially: the first PON port will switch from the working state to the non-working state, and the second PON port will switch from the non-working state to the working state.
8. The method according to claim 6 or 7, characterized in that, The method, applied to the system of claim 3, further includes: when the second PON port fails to receive a synchronization message from the first PON port for three consecutive synchronization cycles, the second OLT detects the hardware layer physical status of the interconnection link between the first OLT and the second OLT; if the hardware layer physical status is normal, the first OLT's guardian diagnostic method is executed; if the hardware layer physical status is abnormal, the second PON port is switched from the working pending confirmation state to the working state if a LOS exists on the second PON port.
9. The method according to claim 8, characterized in that, The method, applied to the system of claim 4, further includes: a guardian diagnostic method for the first OLT comprising: when the first OLT receives a first self-status check instruction sent by the guardian process of the second OLT, the first OLT detects the running status of its own synchronization process and returns the running status information to the guardian process of the second OLT; after returning the running status information, the first OLT performs a reset or restart operation on its own synchronization process; the first OLT sends a second self-status check instruction to the guardian process of the second OLT; if the second OLT fails to return the running status information of its own synchronization process to the guardian process of the first OLT within a preset response time, then, based on the condition that the first PON port has a LOS and the number of online optical network units (ONUs) decreases, the first PON port switches from a working pending confirmation state to a working state.
10. The method according to claim 8, characterized in that, The method, applied to the system of claim 5, further includes: before the second PON port switches to the working state, the second OLT detects the configuration synchronization readiness of the second OLT, the configuration synchronization readiness being the synchronization completion ratio of the first-level critical configuration of the optical network unit (ONU), the first-level critical configuration including at least ONU registration information, ranging value, and encryption key; when the configuration synchronization readiness is 100%, the second PON port switches from the working pending confirmation state to the working state; when the configuration synchronization readiness is not lower than a first preset threshold but not 100%, the second PON port switches from the working pending confirmation state to the working state; when the configuration synchronization readiness is lower than the first preset threshold, configuration compression transmission is triggered, and the preset anti-jitter timing window is reused as an emergency configuration completion time window; when the configuration synchronization readiness increases to not lower than the first preset threshold, the second PON port switches from the working pending confirmation state to the working state.
