OLT master-backup relationship management method and communication device

OLT solves the management problem after OLT communication failure in optical network by obtaining the switching information of the PON protection group, reducing system complexity and cost, and ensuring normal ONU communication.

WO2025179930A1PCT designated stage Publication Date: 2025-09-04HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/128558
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-29
Filing Date
2024-10-30
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

In an optical network, in the scenario where two OLTs negotiate the master-support relationship through interconnected fibers, the master-support relationship cannot be managed after a communication failure, resulting in increased system complexity and deployment costs.

Method used

OLT determines whether the main and standby relationship is switched by obtaining the protection switching information of multiple PON protection groups, including determining whether the main and standby relationship is faulty, and upgrading its own main and standby status if necessary.

Benefits of technology

It reduces system complexity and deployment costs, ensures that ONU is online normally, avoids additional network management system management, and improves the system's independent decision-making capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024128558_04092025_PF_FP_ABST
    Figure CN2024128558_04092025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an OLT master-backup relationship management method and a communication device, which are applied to the technical field of optical communications. A first OLT and a second OLT are master and backup OLTs corresponding to ONUs in a PON, and the specific master-backup relationship is negotiated by the first OLT and the second OLT. When the communication between the first OLT and the second OLT fails, the first OLT can obtain protection switching information of PON protection groups with online ONUs, and then on the basis of the protection switching information of the PON protection groups, decide whether to switch its own master-backup relationship. The present application provides a solution of deciding the master-backup relationship of the first OLT when the communication between the first OLT and the second OLT fails.
Need to check novelty before this filing date? Find Prior Art

Description

OLT master-slave relationship management method and communication device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on February 29, 2024, with application number 202410235239.0 and application name “OLT master-standby relationship management method and communication device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of optical communication technology, and in particular to a method for managing a master-slave relationship of an optical line terminal (OLT) and a communication device. Background Art

[0003] In passive optical networks (PONs), standards define redundant protection schemes to mitigate the risk of single-point failures between the optical transmission line (OLT) and optical network unit (ONU). In a PON deployed with redundant protection, one ONU can connect to two PON ports on one OLT, or vice versa. This provides redundant links between the ONU and the OLT.

[0004] When an ONU is connected to two OLTs, the two OLTs need to be configured in a master / slave relationship. In one implementation, this master / slave relationship can be configured by an independent network management system. In another implementation, the two OLTs can negotiate the master / slave relationship through the interconnected optical fiber.

[0005] However, in a scenario where two OLTs negotiate their primary and backup relationships through interconnected optical fibers, if a communication failure occurs between the two OLTs, causing the two OLTs to be unable to sense each other, then how to manage the primary and backup relationships of the two OLTs after communication is disconnected becomes an urgent problem to be solved.

[0006] Summary of the Invention

[0007] The present application provides an OLT master-slave relationship management method and communication device, which provides a solution for how to make a master-slave relationship decision after the communication between the two OLTs is disconnected, for a scenario where two OLTs negotiate the master-slave relationship through interconnected optical fibers.

[0008] To achieve the above objectives, this application adopts the following technical solutions:

[0009] In a first aspect, the present application provides a method for managing an active / standby relationship in an OLT. The method is applied to a first OLT and can also be applied to a module within the first OLT, such as a chip or chip system. The method may include: after a communication failure occurs between the first OLT and a second OLT, the first OLT obtains protection switching information for multiple PON protection groups. The ONUs protected by the multiple PON protection groups are online. Furthermore, the first OLT determines whether to switch the active / standby relationship of the first OLT based on the protection switching information for the multiple PON protection groups.

[0010] Based on this method, the first OLT can obtain protection switching information for multiple PON protection groups of online ONUs after determining that a communication failure has occurred between it and the second OLT. The first OLT then determines whether to switch its own primary / backup relationship based on the protection switching information for these multiple PON protection groups. This method provides the first OLT with a decision-making solution for the primary / backup relationship of the first OLT after a communication failure occurs between the first and second OLTs. Based on this, not only can the first and second OLTs independently negotiate the primary / backup relationship, but the first OLT can also independently decide whether to switch the primary / backup relationship when a communication failure occurs between the first and second OLTs. Consequently, there is no need for an additional network management system to centrally manage the primary / backup relationship between the first and second OLTs, reducing system complexity and deployment costs.

[0011] In conjunction with the first aspect, as a possible implementation, the first OLT determining whether to switch the active / standby relationship of the first OLT based on protection switching information of multiple PON protection groups may include: the first OLT determining whether a second OLT has failed based on the protection switching information of the multiple PON protection groups; and the first OLT determining whether to switch the active / standby relationship of the first OLT based on whether the second OLT has failed.

[0012] Based on this implementation, even if a communication failure occurs between the first and second OLTs, the first OLT can still use the protection switching information of the PON protection group to determine whether the second OLT on the other end has failed, and thus determine whether to switch its own active / standby relationship. Consequently, even if a communication failure occurs between the first and second OLTs, no additional network management system is required to manage these two devices, reducing system complexity and deployment costs.

[0013] In conjunction with the first aspect described above, as a possible implementation, the protection switching information of the multiple PON protection groups includes: the time at which the ONUs protected by the multiple PON protection groups last performed a protection switch, and the links used by the ONUs protected by the multiple PON protection groups after the last protection switch. The first OLT, based on the protection switching information of the multiple PON protection groups, determines whether a fault has occurred in the second OLT. This may include: the first OLT determining a proportion of first-type PON protection groups in the multiple PON protection groups based on the time at which the ONUs protected by the multiple PON protection groups last performed a protection switch, and the links used by the ONUs protected by the multiple PON protection groups after the last protection switch. If the proportion of first-type PON protection groups in the multiple PON protection groups is greater than a first proportion, the first OLT determines that a fault has occurred in the second OLT. The time difference between the time at which the ONUs protected by the first-type PON protection group last performed a protection switch and the time at which communication failure occurred between the first OLT and the second OLT is less than a first duration, and the links used by the ONUs protected by the first-type PON protection group after the last protection switch are links on the first OLT side.

[0014] This implementation uses the protection switching status of the ONU to determine whether the peer OLT is faulty. Therefore, even if communication between the first and second OLTs fails, the first OLT can still infer the fault status of the second OLT. Consequently, even if communication between the first and second OLTs fails, an additional network management system is not required to manage both devices, reducing system complexity and deployment costs.

[0015] In conjunction with the first aspect described above, as a possible implementation, the first OLT determining whether to switch the primary / backup relationship of the first OLT based on whether the second OLT has failed may include: if the second OLT has not failed, determining that the primary / backup relationship of the first OLT remains unchanged; if the second OLT has failed and the first OLT is the active OLT, determining that the primary / backup relationship of the first OLT remains unchanged; and if the second OLT has failed and the first OLT is the backup OLT, determining that the first OLT is upgraded from the backup OLT to the active OLT.

[0016] This implementation provides a specific master / backup relationship decision solution for the first OLT, which enables the first OLT to make a correct master / backup relationship decision after a communication failure occurs between the first OLT and the second OLT, ensuring that multiple ONUs are online normally.

[0017] In combination with the first aspect described above, as a possible implementation manner, after a communication failure occurs between the first OLT and the second OLT, the first OLT obtains protection switching information of multiple PON protection groups. This may include: the first OLT obtains the protection switching information of the multiple PON protection groups a second time period after the moment when the communication failure occurs between the first OLT and the second OLT.

[0018] Based on this implementation, after a communication failure occurs between the first OLT and the second OLT, the first OLT can wait for the second period of time before obtaining protection switching information of multiple PON protection groups, ensuring that the obtained protection switching information is the latest information.

[0019] In conjunction with the first aspect, as a possible implementation, the multiple PON protection groups are PON protection groups in which ONUs are online in the PON protection groups locally configured by the first OLT. Before a communication failure occurs between the first OLT and the second OLT, the PON protection groups locally configured by the first OLT and the PON protection groups locally configured by the second OLT are synchronized in real time.

[0020] In a second aspect, a communication device is provided, comprising: a transceiver module and a processing module; the communication device can be the network management device in the first aspect above, the transceiver module can be used to execute the transceiver behavior in the OLT master-standby relationship management method described in any one of the first aspects above, and the processing module can be used to execute the processing behavior in the OLT master-standby relationship management method described in any one of the first aspects above.

[0021] In a third aspect, a communication device is provided, comprising: a processor; the processor is configured to be coupled to a memory, and after reading instructions in the memory, execute the OLT active / standby relationship management method as described in any one of the first aspects above according to the instructions.

[0022] In a possible implementation, the communication device further includes a memory; the memory is used to store computer instructions.

[0023] In one possible implementation, the communication device further includes a communication interface, which is used for the communication device to communicate with other devices. Exemplarily, the communication interface is a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin, or a related circuit.

[0024] In a possible implementation, the communication device may be a chip or a chip system. When the communication device is a chip system, the communication device may be composed of a chip or may include a chip and other discrete devices.

[0025] In one possible implementation, when the communication device is a chip or a chip system, the communication interface may be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin, or a related circuit on the chip or chip system. The processor may also be embodied as a processing circuit or a logic circuit.

[0026] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the computer-readable storage medium is executed on a computer, the computer executes the OLT active-standby relationship management method described in any one of the first aspects.

[0027] Among them, the technical effects brought about by any design method in the second to fourth aspects can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] FIG1 is a schematic diagram of the structure of a PON provided in an embodiment of the present application;

[0029] FIG2 is a schematic diagram of the structure of a PON type A protection architecture / PON type B single-homing protection architecture provided in an embodiment of the present application;

[0030] FIG3 is a schematic diagram of the structure of a PON type B dual-homing protection architecture provided in an embodiment of the present application;

[0031] FIG4 is a schematic diagram of the structure of a PON type C single-homing protection architecture / PON type D single-homing protection architecture provided in an embodiment of the present application;

[0032] FIG5 is a schematic structural diagram of a PON type C dual-homing protection architecture / PON type D dual-homing protection architecture provided in an embodiment of the present application;

[0033] FIG6 is a schematic diagram of a campus network deployed using a dual-homing redundant protection architecture according to an embodiment of the present application;

[0034] FIG7 is a schematic diagram of another campus network deployed using a dual-homing redundant protection architecture according to an embodiment of the present application;

[0035] FIG8 is a flow chart of a method for managing an active / standby relationship of an OLT according to an embodiment of the present application;

[0036] FIG9 is a schematic diagram of a master-slave relationship decision process performed by a first OLT according to an embodiment of the present application;

[0037] FIG10 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0038] FIG11 is a schematic structural diagram of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] To facilitate understanding, first, a brief introduction to the relevant technologies and technical terms involved in this application is given.

[0040] A PON refers to a passive optical fiber network, from the central office optical terminal (OLT) to the user-side optical network units (ONUs). A PON typically consists of three components: the OLT, the optical distribution network (ODN), and the ONUs. The network transmission channel between the OLT and ONUs is called the ODN. The ODN primarily consists of optical fibers and optical splitters, employing a tree-like structure for optical splitting. Depending on deployment requirements, single-stage or multi-stage splitting can be used, but generally no more than two stages are required.

[0041] For example, Figure 1 is a schematic diagram of the structure of a PON provided in this application. The PON may include an OLT 101, an optical splitter 102, and multiple ONUs 103. As shown in Figure 1, the OLT 101 may be connected to a port on a first side of the optical splitter 102 via an optical fiber, and the multiple ONUs 103 may be connected to multiple ports on a second side of the optical splitter 102 via multiple optical fibers. The optical fibers connecting the OLT 101 and the ONUs 103 and the optical splitter 102 constitute the ODN.

[0042] As the types of services carried by PONs increase, a protection link between the ONUs and the OLT in the PON is required to ensure service stability in engineering applications and to address service interruptions caused by various communication failures. When a failure occurs in the working link between the ONU and OLT, rapid failover to the protection link is achieved, enabling service recovery in the shortest possible time. This reduces the impact of link failures on service transmission and improves user experience.

[0043] Currently, PON standards define four types of redundant protection architectures: Type A, Type B, Type C, and Type D. These four redundant protection architectures can be categorized as single-homing or dual-homing, depending on the connection method. PON Type A is a single-homing architecture, while PON Type B, PON Type C, and PON Type D all offer both single-homing and dual-homing options.

[0044] The fiber connection relationships for the PON Type A protection architecture and the PON Type B single-homing protection architecture are identical. For example, Figure 2 illustrates the structure of the PON Type A protection architecture and the PON Type B single-homing protection architecture. As shown in Figure 2, each of the multiple ONUs can be connected to the branching side of an optical splitter via optical fiber, and the combining side of the optical splitter can be connected to the OLT via optical fiber. The optical fiber connecting the optical splitter and the OLT includes two fibers, each of which is connected to two different PON ports on the OLT.

[0045] Based on the structure shown in Figure 2, when the ONU communicates with the OLT, the optical splitter can select two different optical fibers to establish a communication connection between the OLT and the ONU. This link provides redundant protection. The two optical fibers connecting the splitter and the OLT form a protection group, with one fiber serving as the primary communication link and the other as the backup communication link.

[0046] The difference between the PON Type A protection architecture and the PON Type B single-homing protection architecture is that in the PON Type A protection architecture, the two PON ports on the OLT connected to the optical splitter share the same PON media access control (MAC) chip. In the PON Type B single-homing protection architecture, the two PON ports on the OLT connected to the optical splitter each use a separate PON MAC chip. This is explained here.

[0047] FIG3 shows a schematic structural diagram of a PON type B dual-homing protection architecture. As shown in FIG3 , each of the multiple ONUs can be connected to the branching side of an optical splitter via an optical fiber, and the combining side of the optical splitter can be connected to OLT1 and OLT2 respectively via optical fibers.

[0048] It should be understood that both OLT1 and OLT2 can be used to manage these multiple ONUs, and OLT1 and OLT2 are equivalent to these multiple ONUs. Therefore, based on the structure shown in Figure 3, when the ONU communicates with the OLT, two different optical fibers can be selected between the optical splitter and the OLT to establish a communication connection. This link has redundant protection capabilities. The optical fiber between the optical splitter and OLT1 and the optical fiber between the optical splitter and OLT2 can form a protection group, with one fiber serving as the primary communication link and the other as the backup communication link. Furthermore, compared to the PON Type B single-homed protection architecture shown in Figure 2, the optical splitters in Figure 3 connect to different OLTs, so this architecture also has remote disaster recovery capabilities.

[0049] The fiber connection relationship between the PON Type C single-homing protection architecture and the PON Type D single-homing protection architecture is the same. For example, Figure 4 shows a schematic diagram of the PON Type C single-homing protection architecture / PON Type D single-homing protection architecture. As shown in Figure 4, each of the multiple ONUs can be connected to the branching side of optical splitter 1 and optical splitter 2 respectively via optical fiber. The combining side of optical splitter 1 and optical splitter 2 can be connected to the same OLT via optical fiber. Optical splitter 1 and optical splitter 2 are connected to different PON ports of the same OLT.

[0050] Based on this architecture, when the ONU communicates with the OLT, the ONU can select two optical splitters to establish a communication connection with the OLT, so there is redundant protection capability between the ONU and the OLT.

[0051] The fiber connection relationship between the PON Type C dual-homing protection architecture and the PON Type D dual-homing protection architecture is the same. For example, Figure 5 shows a schematic diagram of the PON Type C dual-homing protection architecture / PON Type D dual-homing protection architecture. As shown in Figure 5, each of the multiple ONUs can be connected to the branching side of optical splitter 1 and optical splitter 2, respectively, via optical fiber. The combining side of optical splitter 1 can be connected to OLT 1 ​​via optical fiber, and the combining side of optical splitter 2 can be connected to OLT 2 via optical fiber.

[0052] It should be understood that both OLT1 and OLT2 can be used to manage the multiple ONUs, and OLT1 and OLT2 are equivalent to the multiple ONUs. Therefore, based on the structure shown in Figure 5, when the ONUs communicate with the OLT, the ONUs can connect to different OLTs via different optical splitters, and the communication links between the ONUs and the OLTs have redundant protection capabilities. In addition, because the ONUs can connect to different OLTs, this architecture also provides remote disaster recovery capabilities.

[0053] Regardless of whether the architecture is single-homed or dual-homed, the difference between the PON Type C and PON Type D protection architectures is that in the PON Type C architecture, the two ports on the ONU connected to different optical splitters share the same PON MAC chip. In the PON Type D architecture, the two ports on the ONU connected to different optical splitters each use a separate PON MAC chip. This is explained here.

[0054] Since the dual-homing structure can have remote disaster recovery capabilities and better security, most of the PON protection architectures currently used in this field are dual-homing redundant protection architectures, such as the above-mentioned Type B dual-homing redundant protection architecture, Type C dual-homing redundant protection architecture, and Type D dual-homing redundant protection architecture.

[0055] In one implementation, when deploying a network using the aforementioned dual-homing redundant protection architecture, a network management system is generally required to configure the primary and backup relationships of the dual-homed OLTs. For example, Figure 6 illustrates a campus network deployed using the dual-homing redundant protection architecture. Multiple ONUs in this campus network can be connected to two OLTs using the dual-homing redundant protection architecture shown in Figures 3, 4, or 5. These two OLTs can each be connected to a higher-layer network outside the campus network. Furthermore, the campus network may also include a network management system connected to the two OLTs to manage and configure them.

[0056] However, the deployment cost of a network management system is high, and it is generally unaffordable for customers of campus networks. Therefore, in another implementation, the OLTs can be deployed in a stacked manner, that is, the two OLTs can be connected via optical fiber. In this implementation, the two OLTs can negotiate the master-slave relationship independently, eliminating the need to deploy a network management system and saving costs. For example, Figure 7 is a schematic diagram of another campus network deployed using a dual-home redundant protection architecture. Multiple ONUs in this campus network can be connected to two OLTs using the dual-home redundant protection architecture shown in Figures 3, 4, or 5. These two OLTs can each be connected to an upper-layer network outside the campus network. In addition, the two OLTs can be connected via optical fiber.

[0057] However, in stacked OLT deployments, if communication between two OLTs fails, the two OLTs lose awareness of each other. Managing the primary and backup OLT relationships after a communication failure presents a pressing challenge. For example, if a communication failure between two OLTs is caused by the master device going offline, and the backup device is unaware of this and unable to promptly take over management of the ONUs, the ONUs will become unmanageable. Another example is if a communication failure between two OLTs is caused by a fiber disconnect, and the backup OLT automatically becomes the primary OLT, two active OLTs will become active simultaneously, leading to management conflicts.

[0058] In view of this, embodiments of the present application provide a method for managing the active / standby relationship of OLTs, which can be used in OLT stacking deployment scenarios. After a communication failure occurs between a first OLT and a second OLT, the first OLT can determine whether a communication failure has occurred between the second OLT and the ONU based on the protection switching status of the PON protection group, and then determine whether to switch its own active / standby relationship.

[0059] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity or execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being preferred or advantageous over other embodiments or design. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner to facilitate understanding. In addition, the network architecture and service scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation of the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0060] The OLT active / standby relationship management method provided in the embodiments of the present application can be applied to the OLT stacking deployment scenario shown in FIG7 . The two OLTs in the stacked deployment in FIG7 can be the first OLT and the second OLT in the OLT active / standby relationship management method of the present application, respectively. These two OLTs can execute the OLT active / standby relationship management method provided in the present application. The specific implementation is described in the method embodiments below and will not be detailed here.

[0061] It should be understood that the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0062] For example, the connection method between the ONU and the OLT shown in Figure 7 is only an example. In fact, it can be implemented using at least one of the PON type B dual-home protection architecture, the PON type C dual-home protection architecture, or the PON type D dual-home protection architecture. This application does not impose any restrictions on this.

[0063] The following describes the OLT active / standby relationship management method provided by an embodiment of the present application in conjunction with the communication system shown in FIG7 . The actions, terms, and other aspects of the various embodiments of the present application may be cross-referenced without limitation. The message names and parameter names in the embodiments of the present application are merely examples; other names may be used in specific implementations without limitation.

[0064] FIG8 is a flow chart of a method for managing an active / standby relationship of an OLT provided in an embodiment of the present application. As shown in FIG8 , the method may include the following steps:

[0065] S801: After a communication failure occurs between a first OLT and a second OLT, the first OLT obtains protection switching information of multiple PON protection groups, wherein the ONUs protected by the multiple PON protection groups are in an online state.

[0066] Optionally, the communication link between the first OLT and the second OLT can be kept alive by a heartbeat message. If a communication failure occurs between the first OLT and the second OLT, the transmission of the heartbeat message will be abnormal, so that the first OLT can also be informed that the communication failure occurs between the first OLT and the second OLT.

[0067] The OLT master / standby relationship management method provided in this application can be applied to the scenario shown in Figure 7 , where the first and second OLTs are the master and standby OLTs managing multiple ONUs. The first OLT is the master OLT, and the second OLT is the standby OLT. Alternatively, the first OLT is the standby OLT, and the second OLT is the master OLT. This application does not impose any restrictions on this scenario.

[0068] The first OLT and the second OLT can be configured with a PON protection group corresponding to each ONU, and the ONU is the protection object of the PON protection group. The PON protection group can include the main link and the backup link used by the protected ONU for communication. The main link can also be called the working side link (work-side link), and the backup link can also be called the protection side link (protect-side link), which are explained uniformly here. In the initial case, the ONU will use the main link to communicate with the OLT side. When the main link fails, the ONU can switch to the backup link to communicate with the OLT side to avoid service interruption. After the main link failure is resolved, the ONU can also switch back to the main link. The switching of the ONU between the main link and the backup link can be called protection switching, which is explained uniformly here.

[0069] It should be understood that the network architecture used in the OLT active-standby relationship management method provided in this application is a dual-homed protection architecture. Therefore, the primary link and backup link in the PON protection group corresponding to the ONU correspond to the first OLT and the second OLT, respectively. For example, the ONU's primary link is established between the ONU and the first OLT, and the ONU's backup link is established between the ONU and the second OLT. Alternatively, the ONU's primary link is established between the ONU and the second OLT, and the ONU's backup link is established between the ONU and the first OLT. Based on this, the ONU's protection switching is to switch the communication link from the first OLT to the second OLT, or vice versa.

[0070] Optionally, in addition to the information about the primary link and the backup link in the PON protection group, the first OLT and the second OLT may further record information about the most recent protection switching of the ONUs protected by the PON protection group. For example, the protection switching information of multiple PON protection groups may further include: the time when the ONUs protected by the multiple PON protection groups most recently performed protection switching, and the links used by the ONUs protected by the multiple PON protection groups after the most recent protection switching, etc.

[0071] Optionally, the first OLT obtaining protection switching information for multiple PON protection groups may include: the first OLT obtaining PON protection groups whose ONUs are online from among the locally configured PON protection groups. Some of the PON protection groups locally configured by the first OLT may have ONUs protected by some PON protection groups that are offline, and these PON protection groups are not considered in this application.

[0072] Optionally, before a communication failure occurs between the first OLT and the second OLT, the PON protection group information locally configured in the first OLT and the PON protection group information locally configured in the second OLT are synchronized in real time. This prevents the first OLT from being unable to obtain updated information about the PON protection group corresponding to the ONU when the first OLT serves as a backup OLT.

[0073] Optionally, after a communication failure occurs between the first OLT and the second OLT, the first OLT obtaining protection switching information for multiple PON protection groups may include: obtaining the protection switching information for the multiple PON protection groups by the first OLT after a second duration has elapsed since the communication failure occurred between the first OLT and the second OLT. The second duration is a redundant duration reserved for refreshing the local PON protection group information of the first OLT to ensure that the protection switching information for the multiple PON protection groups obtained by the first OLT is up to date. The second duration may be preconfigured based on PON performance, for example, 1 second.

[0074] S802: The first OLT determines whether the active / standby relationship of the first OLT is switched based on protection switching information of multiple PON protection groups.

[0075] As an implementation manner, the first OLT determines whether to switch the active / standby relationship of the first OLT based on the protection switching information of the multiple PON protection groups, which may specifically include the following steps S8021-S8022:

[0076] S8021. The first OLT determines whether a fault occurs in the second OLT based on protection switching information of multiple PON protection groups.

[0077] For example, the first OLT determines a proportion of first-category PON protection groups among the multiple PON protection groups based on the time at which the ONUs protected by the multiple PON protection groups last performed protection switching, and the links used by the ONUs protected by the multiple PON protection groups after the last protection switching. If the proportion of first-category PON protection groups among the multiple PON protection groups is greater than the first proportion, the first OLT determines that a fault has occurred in the second OLT. Conversely, if the proportion of first-category PON protection groups among the multiple PON protection groups is less than or equal to the first proportion, the first OLT determines that a fault has not occurred in the second OLT.

[0078] The time difference between the last protection switching of the ONU protected by the first type PON protection group and the time when the communication failure between the first OLT and the second OLT occurred is less than the first duration. In this embodiment of the present application, the first duration is generally short, for example, 1 second. In other words, the last protection switching of the ONU protected by the first type PON protection group is relatively close to the time when the communication failure between the first OLT and the second OLT occurred.

[0079] Furthermore, the link used by the ONU protected by the first type PON protection group after the most recent protection switch is the link on the first OLT side. In other words, the most recent protection switch for the ONU protected by the first type PON protection group was a link switch from the second OLT side to the first OLT side. It should be understood that the ONU protection switch is caused by a communication failure between the ONU and the OLT. Therefore, the most recent protection switch for the ONU protected by the first type PON protection group was a link switch from the second OLT side to the first OLT side, indicating that a communication failure has occurred between the ONU protected by the first type PON protection group and the second OLT.

[0080] Based on the analysis of the first two sections, it can be seen that around the time when the communication failure occurs between the first OLT and the second OLT, the communication between the ONU protected by the first type PON protection group and the second OLT also fails.

[0081] In the embodiment of the present application, the first ratio is a relatively large ratio, such as 80% or 90%. The fact that the ratio of the first type of PON protection group in the plurality of PON protection groups is greater than the first ratio indicates that, near the time when the communication failure between the first OLT and the second OLT occurs, a large number of ONUs also experience communication failures with the second OLT. It should be understood that if, within a very short period of time, both the communication between the second OLT and the first OLT and the communication between the second OLT and a large number of ONUs fail, then the second OLT can be considered to have failed.

[0082] As an implementation manner, the first duration and the first ratio may be preconfigured.

[0083] S8022: The first OLT determines whether to switch the primary / backup relationship of the first OLT based on whether a fault occurs in the second OLT.

[0084] As an implementation manner, if the second OLT does not fail, it is determined that the master-slave relationship of the first OLT remains unchanged.

[0085] As an implementation, if the second OLT fails and the first OLT is the active OLT, the active / standby relationship of the first OLT remains unchanged. It should be understood that the fact that the first OLT is the active OLT means that the second OLT is the standby OLT. A failure of the standby OLT does not affect the active OLT (i.e., the first OLT)'s management of multiple ONUs. Therefore, the active / standby relationship of the first OLT does not need to be changed.

[0086] As an implementation method, if the second OLT fails and the first OLT is a backup OLT, the first OLT is determined to be upgraded from the backup OLT to the active OLT. It should be understood that the first OLT being the backup OLT means that the second OLT is the active OLT. After the active OLT (i.e., the second OLT) fails, the backup OLT (i.e., the first OLT) needs to be upgraded to the active OLT to take over multiple ONUs to prevent multiple ONUs from being disconnected.

[0087] Based on the above-described OLT active / standby relationship management method, a first OLT can obtain protection switching information for multiple PON protection groups of online ONUs after determining that a communication failure has occurred between it and a second OLT. The first OLT then determines whether a failure has occurred in the second OLT based on this protection switching information. Furthermore, the first OLT determines whether to switch its own active / standby relationship based on the failure of the second OLT. This method provides a decision-making solution for the first OLT regarding its active / standby relationship after a communication failure between the first and second OLTs occurs.

[0088] Furthermore, this solution allows the first and second OLTs to negotiate their primary and backup roles. Furthermore, if a communication failure occurs between the first and second OLTs, the first OLT can also independently decide whether to switch to a primary / backup role. This eliminates the need for a separate network management system to centrally manage the primary / backup relationship between the first and second OLTs, reducing system complexity and deployment costs.

[0089] Based on the above-mentioned OLT active / standby relationship management method, after a communication failure occurs between the first OLT and the second OLT, the active / standby relationship decision process executed by the first OLT may be as shown in FIG9 . Referring to FIG9 , the decision process may include the following steps:

[0090] S901. Obtain protection switching information of multiple PON protection groups of online ONUs.

[0091] S902: Determine whether the proportion of the first type of PON protection groups in the multiple PON protection groups is greater than a first proportion. If the proportion of the first type of PON protection groups in the multiple PON protection groups is less than the first proportion, the decision process jumps to S903. If the proportion of the first type of PON protection groups in the multiple PON protection groups is greater than the first proportion, the decision process jumps to S904.

[0092] S903: Maintain the current master-slave relationship.

[0093] S904: Determine whether the first OLT is the active OLT. If the first OLT is the active OLT, the decision process jumps to S905. If the first OLT is not the active OLT, the decision process jumps to S906.

[0094] S905: Maintain the current master-slave relationship.

[0095] S906, upgrade to the main OLT.

[0096] Optionally, an embodiment of the present application further provides a communication device, which is used to implement the various methods described above. The communication device can also be the first OLT in the above method embodiment, or a device including the above first OLT, or a component that can be used for the first OLT. It can be understood that in order to implement the above functions, the communication device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0097] In the embodiment of the present application, the functional modules of the communication device can be divided according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0098] Figure 10 shows a schematic diagram of the structure of a communication device provided in this application. Referring to Figure 10 , the communication device 100 may include a transceiver module 1001 and a processing module 1002. The communication device 100 may be applied to the first OLT described above. The transceiver module 1001 is configured to obtain protection switching information for multiple PON protection groups after a communication failure occurs between the first OLT and a second OLT. The ONUs protected by the multiple PON protection groups are online. The processing module 1002 is configured to determine whether the primary / backup relationship of the first OLT should be switched based on the protection switching information for the multiple PON protection groups.

[0099] Optionally, the processing module 1002 is configured to determine whether the active / standby relationship of the first OLT is switched based on the protection switching information of the multiple PON protection groups. Specifically, the processing module 1002 may be configured to determine whether the second OLT has failed based on the protection switching information of the multiple PON protection groups. Furthermore, the processing module 1002 may be configured to determine whether the active / standby relationship of the first OLT is switched based on whether the second OLT has failed.

[0100] Optionally, the protection switching information of the multiple PON protection groups includes: the time at which the ONUs protected by the multiple PON protection groups last underwent protection switching, and the links used by the ONUs protected by the multiple PON protection groups after the last protection switching. Processing module 1002 is configured to determine whether a fault has occurred in the second OLT based on the protection switching information of the multiple PON protection groups. Specifically, processing module 1002 is configured to determine a proportion of first-category PON protection groups in the multiple PON protection groups based on the time at which the ONUs protected by the multiple PON protection groups last underwent protection switching, and the links used by the ONUs protected by the multiple PON protection groups after the last protection switching. The time difference between the time at which the ONUs protected by the first-category PON protection groups last underwent protection switching and the time at which communication failure occurred between the first OLT and the second OLT is less than a first duration, and the links used by the ONUs protected by the first-category PON protection groups after the last protection switching are links on the first OLT side. Furthermore, the processing module 1002 is configured to determine that a fault occurs in the second OLT when the proportion of the first type of PON protection groups in the plurality of PON protection groups is greater than a first proportion.

[0101] Optionally, the processing module 1002 is configured to determine whether to switch the primary / backup relationship of the first OLT based on whether the second OLT has failed. Specifically, the processing module 1002 may be configured to determine that the primary / backup relationship of the first OLT remains unchanged if the second OLT has not failed. The processing module 1002 may be configured to determine that the primary / backup relationship of the first OLT remains unchanged if the second OLT has failed and the first OLT is the active OLT. The processing module 1002 may be configured to determine that the first OLT is upgraded from the backup OLT to the active OLT if the second OLT has failed and the first OLT is the backup OLT.

[0102] Optionally, the transceiver module 1001 is configured to obtain protection switching information of multiple PON protection groups after a communication failure occurs between the first OLT and the second OLT. Specifically, the transceiver module 1001 is configured to obtain protection switching information of multiple PON protection groups a second time period after the moment when the communication failure occurs between the first OLT and the second OLT.

[0103] It should be noted that all relevant content of each step involved in the above method embodiment can be referenced to the functional description of the corresponding functional module and will not be repeated here. Since the communication device 100 provided in this embodiment can execute the above OLT active-standby relationship management method, the technical effects it can achieve can be referred to the above method embodiment and will not be repeated here.

[0104] It should be understood that the module division in the embodiments of the present application is illustrative and merely represents a logical functional division. In actual implementation, other division methods may be employed. For example, two or more functions may be integrated into a single processing module. Furthermore, the integrated modules may be implemented in either hardware or software functional modules, and this application does not impose any limitations thereon.

[0105] In this embodiment, the communication device 100 is presented in the form of various functional modules divided in an integrated manner. "Module" here can refer to a specific ASIC, circuit, processor and memory executing one or more software or firmware programs, integrated logic circuit, and / or other devices that can provide the aforementioned functions. In a simple embodiment, those skilled in the art will appreciate that the communication device 100 can take the form of the communication device 110 shown in Figure 11.

[0106] Figure 11 is a schematic diagram of the structure of another communication device provided in an embodiment of the present application. As shown in Figure 11, the communication device 110 includes one or more processors 1101, a communication line 1102, and at least one communication interface (Figure 11 is only exemplary and takes the communication interface 1103 and one processor 1101 as an example for explanation). Optionally, a memory 1104 may also be included. The processor 1101 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. The communication line 1102 may include a path for communication between different components. The communication interface 1103 may be a transceiver module for communicating with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc. For example, the transceiver module may be a device such as a transceiver or a transceiver. Optionally, the communication interface 1103 may also be a transceiver circuit located in the processor 1101 to realize signal input and signal output of the processor. The memory 1104 may be a device having a storage function. For example, it may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processor via a communication line 1102. The memory may also be integrated with the processor. Among them, the memory 1104 is used to store computer-executable instructions for executing the solution of the present application, and is controlled by the processor 1101 for execution. The processor 1101 is configured to execute computer-executable instructions stored in the memory 1104 , thereby implementing the OLT active / standby relationship management method provided in the embodiment of the present application.Alternatively, in the embodiment of the present application, the processor 1101 performs processing-related functions in the OLT active / standby relationship management method provided in the following embodiment of the present application, and the communication interface 1103 is responsible for communicating with other devices or communication networks, which is not specifically limited in the embodiment of the present application. The computer-executable instructions in the embodiment of the present application may also be referred to as application code, which is not specifically limited in the embodiment of the present application. As an embodiment, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in Figure 11.

[0107] As an embodiment, the communication device 110 may include multiple processors, such as the processor 1101 and the processor 1107 in FIG11 . Each of these processors may be a single-core processor or a multi-core processor. The processors here may include, but are not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, etc., and each computing device may include one or more cores for executing software instructions to perform calculations or processing.

[0108] As an embodiment, the communication device 110 may further include an output device 1105 and an input device 1106. The output device 1105 communicates with the processor 1101 and can display information in a variety of ways. For example, the output device 1105 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 1106 communicates with the processor 1101 and can receive user input in a variety of ways. For example, the input device 1106 can be a mouse, a keyboard, a touch screen device, or a sensor device.

[0109] The communication device 110 may also be referred to as a communication device, which may be a general-purpose device or a dedicated device. For example, the communication device 110 may be a controller in a network or a device having a similar structure as shown in FIG11. The embodiment of the present application does not limit the type of the communication device 110.

[0110] The processor 1101 in the communication device 110 shown in FIG11 can invoke computer-executable instructions stored in the memory 1104 to cause the communication device 110 to execute the OLT active / standby relationship management method described in the above-described method embodiment. Since the communication device 110 provided in this embodiment can execute the above-described OLT active / standby relationship management method, the technical effects achieved can be referenced to the above-described method embodiment and will not be further described here.

[0111] In the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. Those skilled in the art will clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units described is merely a logical functional division. In actual implementation, other divisions may be employed. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through interfaces, or indirect coupling or communication connection between devices or units, which may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in a single location or distributed across multiple network units. Some or all of these units may be selected to achieve the objectives of the present embodiments as needed. Furthermore, the functional units in the various embodiments of the present application may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. In the above embodiments, all or part of the implementation may be achieved through software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the implementation may be in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)).

[0112] As used in this application, the terms "component", "module", "system" and the like are intended to refer to a computer-related entity, which can be hardware, firmware, a combination of hardware and software, software or software in operation. For example, a component can be, but is not limited to: a process running on a processor, a processor, an object, an executable file, a thread in execution, a program and / or a computer. As an example, both an application running on a computing device and the computing device can be a component. One or more components can exist in a process and / or thread in execution, and a component can be located in a computer and / or distributed between two or more computers. In addition, these components can be executed from various computer-readable media with various data structures thereon. These components can communicate in the form of local and / or remote processes, such as based on signals having one or more data packets (e.g., data from a component that interacts with another component in a local system, a distributed system and / or interacts with other systems in the form of signals over a network such as the Internet). This application presents various aspects, embodiments or features around a system that can include multiple devices, components, modules, etc. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc. and / or may not include all of the devices, components, modules, etc. discussed in connection with the figures. Furthermore, combinations of these aspects may also be used.

[0113] In addition, in the embodiments of the present application, the word "exemplary" is used to indicate an example, illustration or explanation. Any embodiment or design described in the present application as an "example" should not be interpreted as being more preferred or more advantageous than other embodiments or design. Specifically, the use of the word "exemplary" is intended to present the concept in a concrete way. In the embodiments of the present application, information, signal, message, and channel are sometimes used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. "of", "corresponding, relevant" and "corresponding" are sometimes used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. "System" and "network" are sometimes used interchangeably. When the distinction between them is not emphasized, the meanings to be expressed are consistent. For example, "communication network" also refers to "communication system". The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0114] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for managing the active / standby relationship of an optical line terminal (OLT), characterized in that: The method comprises: After a communication failure occurs between a first OLT and a second OLT, the first OLT obtains protection switching information of a plurality of passive optical network (PON) protection groups; wherein the optical network units (ONUs) protected by the plurality of PON protection groups are in an online state; The first OLT determines whether the master / slave relationship of the first OLT is switched according to the protection switching information of the multiple PON protection groups.

2. The method according to claim 1, characterized in that The first OLT determines, according to the protection switching information of the multiple PON protection groups, whether the master / slave relationship of the first OLT is switched, including: The first OLT determines whether a fault occurs in the second OLT according to the protection switching information of the multiple PON protection groups; The first OLT determines whether to switch the master / slave relationship of the first OLT according to whether a fault occurs in the second OLT.

3. The method according to claim 2, characterized in that The protection switching information of the multiple PON protection groups includes: the time when the ONUs protected by the multiple PON protection groups performed the most recent protection switching, and the links used by the ONUs protected by the multiple PON protection groups after the most recent protection switching; The first OLT determines whether a fault occurs in the second OLT according to the protection switching information of the multiple PON protection groups, including: The first OLT determines a proportion of first-type PON protection groups among the multiple PON protection groups based on the time when the ONUs protected by the multiple PON protection groups last performed protection switching and the links used by the ONUs protected by the multiple PON protection groups after the last protection switching; wherein a time difference between the time when the ONUs protected by the first-type PON protection group last performed protection switching and the time when a communication failure occurs between the first OLT and the second OLT is less than a first duration, and the link used by the ONUs protected by the first-type PON protection group after the last protection switching is a link on the first OLT side; If the proportion of the first type of PON protection groups in the plurality of PON protection groups is greater than a first proportion, the first OLT determines that a fault occurs in the second OLT.

4. The method according to claim 2 or 3, characterized in that The first OLT determines whether to switch the primary / backup relationship of the first OLT according to whether a fault occurs in the second OLT, including: If the second OLT does not fail, determining that the master / slave relationship of the first OLT remains unchanged; If the second OLT fails and the first OLT is the active OLT, determining that the active-standby relationship of the first OLT remains unchanged; If the second OLT fails and the first OLT is a backup OLT, it is determined that the first OLT is upgraded from the backup OLT to the active OLT.

5. The method according to any one of claims 1 to 4, characterized in that After a communication failure occurs between a first OLT and a second OLT, the first OLT obtains protection switching information of a plurality of PON protection groups, including: A second time period after a communication failure occurs between the first OLT and the second OLT, the first OLT obtains protection switching information of the plurality of PON protection groups.

6. The method according to any one of claims 1 to 5, characterized in that The multiple PON protection groups are PON protection groups in which ONUs are online in the PON protection groups locally configured by the first OLT; Before a communication failure occurs between the first OLT and the second OLT, the PON protection group locally configured by the first OLT and the PON protection group locally configured by the second OLT are synchronized in real time.

7. A communication device, characterized in that: The communication device is applied to a first optical line terminal OLT, and the communication device includes a transceiver module and a processing module; The transceiver module is used to obtain protection switching information of multiple passive optical network PON protection groups after a communication failure occurs between the first OLT and the second OLT; wherein the optical network units ONU protected by the multiple PON protection groups are in an online state; The processing module is configured to determine whether the primary / backup relationship of the first OLT is switched according to the protection switching information of the multiple PON protection groups.

8. The device according to claim 7, characterized in that The processing module is configured to determine whether the primary / backup relationship of the first OLT is switched based on the protection switching information of the multiple PON protection groups, including: The processing module is configured to determine whether a fault occurs in the second OLT based on the protection switching information of the multiple PON protection groups; Furthermore, the processing module is configured to determine whether the primary / backup relationship of the first OLT should be switched according to whether a fault occurs in the second OLT.

9. The device according to claim 8, characterized in that The protection switching information of the multiple PON protection groups includes: the time when the ONUs protected by the multiple PON protection groups performed the most recent protection switching, and the links used by the ONUs protected by the multiple PON protection groups after the most recent protection switching; The processing module is configured to determine whether a fault occurs in the second OLT based on the protection switching information of the multiple PON protection groups, including: The processing module is configured to determine a proportion of first-type PON protection groups among the multiple PON protection groups based on a time when the ONUs protected by the multiple PON protection groups last performed protection switching, and a link used by the ONUs protected by the multiple PON protection groups after the last protection switching; wherein a time difference between a time when the ONUs protected by the first-type PON protection group last performed protection switching and a time when a communication failure occurs between the first OLT and the second OLT is less than a first duration, and a link used by the ONUs protected by the first-type PON protection group after the last protection switching is a link on the first OLT side; Furthermore, the processing module is configured to determine that a fault occurs in the second OLT when a proportion of the first type of PON protection groups in the plurality of PON protection groups is greater than a first proportion.

10. The device according to claim 8 or 9, characterized in that The processing module is configured to determine whether to switch the primary / backup relationship of the first OLT according to whether a fault occurs in the second OLT, including: The processing module is configured to determine that the master / slave relationship of the first OLT remains unchanged when no failure occurs in the second OLT; The processing module is configured to, when the second OLT fails and the first OLT is the active OLT, determine that the active / standby relationship of the first OLT remains unchanged; The processing module is configured to determine that the first OLT is upgraded from a backup OLT to an active OLT when the second OLT fails and the first OLT is a backup OLT.

11. The device according to any one of claims 7 to 10, characterized in that: The transceiver module is used to obtain protection switching information of multiple PON protection groups after a communication failure occurs between the first OLT and the second OLT, including: The transceiver module is configured to obtain protection switching information of the plurality of PON protection groups a second time period after a communication failure occurs between the first OLT and the second OLT.

12. The device according to any one of claims 7 to 11, characterized in that: The multiple PON protection groups are PON protection groups in which ONUs are online in the PON protection groups locally configured by the first OLT; Before a communication failure occurs between the first OLT and the second OLT, the PON protection group locally configured by the first OLT and the PON protection group locally configured by the second OLT are synchronized in real time.

13. A communication device, characterized in that: The communication device includes: a processor and a memory; The memory is used to store computer-executable instructions. When the processor executes the computer-executable instructions, the communication device is caused to perform the method according to any one of claims 1 to 6.

14. A computer-readable storage medium, characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Data transmission method, device and system used in optical access network

    CN101651912A

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

    CN101667865A

  • Primary / standby switchover control method, and related device and system

    CN108432157A

  • OLT (Optical Line Terminal) state switching method and system for dual-homing PON (Passive Optical Network) protection system and OLT

    CN115250388A

  • Method for protection switching of passive optical network (PON) and PON system for same

    KR1020140031648A