CN111093125A - Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal - Google Patents

Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal Download PDF

Info

Publication number
CN111093125A
CN111093125A CN201911377973.6A CN201911377973A CN111093125A CN 111093125 A CN111093125 A CN 111093125A CN 201911377973 A CN201911377973 A CN 201911377973A CN 111093125 A CN111093125 A CN 111093125A
Authority
CN
China
Prior art keywords
state
pon port
standby
main
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911377973.6A
Other languages
Chinese (zh)
Other versions
CN111093125B (en
Inventor
刘育华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201911377973.6A priority Critical patent/CN111093125B/en
Publication of CN111093125A publication Critical patent/CN111093125A/en
Application granted granted Critical
Publication of CN111093125B publication Critical patent/CN111093125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)
  • Optical Communication System (AREA)

Abstract

The invention discloses a method, a device and a storage medium for realizing trunk optical fiber protection of an optical line terminal, and relates to the technical field of communication equipment. The method comprises the following steps: for any protection group, when a preset event for the protection group is received, determining the current state of a state machine of the protection group, wherein the members of the protection group comprise a main Passive Optical Network (PON) port and a standby PON port; determining an action to be executed according to the current state of the state machine and the preset event; and executing the action to be executed to complete the state switching of the protection group. Therefore, the switching of the main and standby ports of the PON can be realized by switching the states between the state machines, the state definition of the state machines is clear, the realization is simple, the operation stability is good, and the problems of complex processing flow and poor operation stability of a control software module on a CPU of a main control processor can be solved.

Description

Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal
Technical Field
The present disclosure relates to the field of communications devices, and in particular, to a method, an apparatus, and a storage medium for implementing protection of a trunk optical fiber in an optical line terminal.
Background
With the rapid development of networks, a PON (Passive Optical Network) is a pure medium Network, which can avoid the electromagnetic interference and lightning effect of external devices, reduce the failure rate of lines and external devices, improve the reliability of the system, and save the maintenance cost, and is a technology expected for a long time in the communication industry.
In order to improve the reliability of the PON, in the prior art, there are methods related to implementing PON port protection switching in an optical line terminal, but the factors for triggering switching by these methods are many, which results in complex implementation of the processing flow of a control software module on a CPU of a main control processor, poor expandability, and poor operation stability, and therefore, a new method is urgently needed to solve the above problems.
Disclosure of Invention
The present disclosure aims to provide a method, an apparatus, and a storage medium for an optical line terminal to implement protection of a main optical fiber, so as to solve the problems of complex implementation of a processing flow of a control software module on a CPU of a main control processor, poor expandability, and poor operation stability.
In a first aspect, the present disclosure provides a method for implementing protection of a trunk optical fiber by an optical line terminal, where the optical line terminal at least includes one protection group, and the method includes:
for any protection group, when a preset event for the protection group is received, determining the current state of a state machine of the protection group, wherein the members of the protection group comprise a main Passive Optical Network (PON) port and a standby PON port;
determining an action to be executed according to the current state of the state machine and the preset event;
and executing the action to be executed to complete the state switching of the protection group.
In one embodiment, a state machine of the protection group is established, and a trigger condition when switching between different states of the protection group and an execution action required by state switching are predefined in the state machine;
determining an action to be executed according to the current state of the state machine and the preset event, wherein the action to be executed comprises the following steps:
based on the state machine, determining a target state meeting a trigger condition according to the current state and the preset event; the target state is one of the states to which the current state can be switched;
determining an action to be performed required to switch from the current state to the target state.
In one embodiment, the protected group includes one of the following management states: an enable state and a disable state, wherein the enable state is a state in which a state machine of the protected group is enabled;
the disabled state is a state in which a state machine of the protected group is disabled.
In one embodiment, the management state of the state machine is set to be an enabling state when an enabling command triggered by user operation is responded;
and setting the management state of the state machine to be a prohibition state when responding to a prohibition command triggered by user operation.
In one embodiment, the state of the state machine includes at least one of the following information: the device comprises respective running states of the main PON port and the standby PON port, respective link states of the main PON port and the standby PON port, ONU registration indication information of an optical network unit, and indication information of whether the protection group can perform main/standby switching, wherein the ONU registration indication information is used for indicating the registration states of the ONU registration information on the main PON port and/or the standby PON port.
In one embodiment, the operational states include an on state, a standby state, an off state, and a fault state, wherein:
the open state indicates that a chip of the PON port allows the ONU to register online, and the transmitting and receiving optical channels of the PON optical module are all in the open state so that the PON port has the light emitting capacity and the light receiving capacity;
the standby state indicates that a chip of a PON port prohibits the ONU from registering online, a light receiving channel of the PON optical module is opened and a light emitting channel is closed, so that the PON port does not have the capability of emitting light but has the capability of receiving light;
the closed state indicates that a light receiving channel and a light emitting channel of a PON optical module are both in a closed state, so that the PON port does not have the light receiving capacity and the light emitting capacity;
the fault state indicates that a chip of the PON port has a fault and/or a board card where the PON port is located has a fault.
In one embodiment, the link states include a link open state, a link closed state, a link failure state, wherein:
the link opening state indicates that a main optical fiber link connected with a PON port is normal;
the link closing state indicates that a main optical fiber link connected with the PON port is interrupted or no ONU is registered online under the PON port;
and the link fault state represents that the quality of an optical fiber link connected with the PON port is poor, so that the uplink error rate is out of limit.
In one embodiment, the ONU registration indication information comprises one of the following information: the ONU registration information on the main PON port needs to be synchronized to a standby PON port, the ONU registration information on the main PON port does not need to be synchronized to the standby PON port, the ONU registration information on the standby PON port needs to be synchronized to the main PON port, the ONU registration information on the standby PON port does not need to be synchronized to the main PON port, the main PON port and the standby PON port do not have the ONU registration information, the ONU can only be registered on the main PON port, and the ONU can only be registered on the standby PON port.
In one embodiment, the states of the state machine include:
a first state, where the first state includes that an operation state of the main PON port is an open state, and a link state of the main PON port is a link open state; the operation state of the standby PON port is a standby state, the link state of the standby PON port is a link open state or a link close state, and the ONU registration information on the main PON port needs to be synchronized to the standby PON port;
a second state, where the second state includes that the operation state of the standby PON port is an open state, and a link state of the standby PON port is a link open state; the operation state of the main PON port is a standby state, the link state of the main PON port is a link open state or a link close state, and the ONU registration information on the standby PON port needs to be synchronized to the main PON port;
a third state, where the third state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fourth state, where the fourth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fifth state, where the fifth state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a closed state, the ONU can only register on the main PON port, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
a sixth state, where the sixth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a closed state, the ONU can only register on the standby PON port, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a seventh state, where the seventh state includes that the operating state of the main PON port is an open state, the standby PON port is a failure state, the protection group cannot perform main/standby switching, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
an eighth state, where the eighth state includes that the operation state of the standby PON port is an open state; the main PON port is in a fault state, the protection group cannot carry out main/standby switching, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a ninth state, where the operation states of the main PON port and the standby PON port are both in any one of the following states: fault state, off state.
In one embodiment, the state switchable from the first state comprises at least one of: a second state, a fifth state, a sixth state, a seventh state, an eighth state, and a ninth state; wherein:
the trigger condition satisfied by switching from the first state to the second state comprises: an optical signal loss event of the main PON port and/or an optical signal degradation event of the main PON port occur;
the optical signal loss event of the main PON port is that the main PON port does not receive an uplink optical signal and an optical link connected to the main PON port fails, where the optical link failure includes a fiber break of a connected trunk optical fiber and/or a failure of an optical module of the main PON port;
the optical signal degradation event of the main PON port is that the main PON port receives an uplink optical signal abnormity so that the error rate of data received by the main PON port is too high;
the trigger condition satisfied by switching from the first state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the first state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the first state to the seventh state includes: a chip exception event of the standby PON port and/or a board exception event of the standby PON port occur, where switching from the first state to the eighth state satisfies a trigger condition including: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the first state to the ninth state includes: obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state;
in one embodiment, the state switchable from the second state comprises at least one of: a first state, a sixth state, a fifth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the second state to the first state includes one of the following conditions:
an optical signal loss event of a standby PON port occurs, where the optical signal loss event of the standby PON port is that the standby PON port does not receive an uplink optical signal and an optical link connected to the standby PON port fails, and the optical link failure connected to the standby PON port includes that a connected trunk optical fiber is broken or an optical module of the standby PON port fails;
an optical signal degradation event of a standby PON port occurs, wherein the optical signal degradation event of the standby PON port is that the standby PON port receives an uplink optical signal abnormity so that the error rate of data received by the standby PON port is too high;
an optical signal recovery event of a main PON port occurs, wherein the optical signal recovery event of the main PON port is that an optical link connected with the main PON port is recovered to be normal;
acquiring a forced switching instruction triggered by user operation, wherein the forced switching instruction is an instruction for forced switching between the first state and the second state;
the trigger condition satisfied by switching from the second state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the second state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the second state to the eighth state includes: chip abnormal events of the main PON port and/or board card abnormal events of the main PON port occur;
the trigger condition satisfied by switching from the second state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the second state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state switchable from the third state comprises at least one of: a first state, a fourth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the third state to the first state includes: an optical signal recovery event of the main PON port occurs;
the triggering condition satisfied by switching from the third state to the fourth state includes: a first timer timing overtime event occurs;
the trigger condition satisfied by switching from the third state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the third state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the third state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state to which to switch from the fourth state comprises at least one of: a second state, a third state, a seventh state, an eighth state, and a ninth state; wherein:
the triggering condition satisfied by switching from the fourth state to the second state includes: an optical signal recovery event of the standby PON port occurs;
the triggering condition satisfied by switching from the fourth state to the third state includes: a first timer timing overtime event occurs;
the triggering condition satisfied by switching from the fourth state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the triggering condition satisfied by switching from the fourth state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the triggering condition satisfied by switching from the fourth state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state to which to switch from the fifth state comprises at least one of: a first state and a fourth state; wherein:
the triggering condition satisfied by switching from the fifth state to the first state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link opening state;
the triggering condition satisfied by switching from the fifth state to the fourth state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link closing state or a link failure state.
In one embodiment, the state to which to switch from the sixth state comprises at least one of: a second state and a third state; wherein:
the trigger condition satisfied by switching from the sixth state to the second state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link opening state;
the trigger condition satisfied by switching from the sixth state to the third state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link closing state or a link failure state.
In one embodiment, the state switched to from the seventh state comprises at least one of: a first state, a third state, a ninth state; wherein:
the trigger condition satisfied by switching from the seventh state to the first state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the main PON port link state is a link open state, where the chip exception recovery event of the standby PON port is an operation in which a chip of the standby PON port recovers to respond to a main control CPU;
the board card exception recovery event of the standby PON port is the operation of the board card of the standby PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the seventh state to the third state includes: at least one of a chip abnormal recovery event of the standby PON port and a board card abnormal recovery event of the standby PON port occurs, and the link state of the main PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the seventh state to the ninth state includes: and generating a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port.
In one embodiment, the state to which to switch from the eighth state comprises at least one of: a second state, a fourth state, a ninth state; wherein:
the trigger condition satisfied by switching from the eighth state to the second state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the link state of the standby PON port is a link open state, wherein the chip exception recovery event of the main PON port is an operation of a chip recovery response main control CPU of the main PON port;
the board card exception recovery event of the main PON port is the operation of the board card of the main PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the eighth state to the fourth state includes: at least one of a chip abnormal recovery event of the main PON port and a board card abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the eighth state to the ninth state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
in one embodiment, the state to which to switch from the ninth state comprises at least one of: a third state, a seventh state, and an eighth state; wherein:
the trigger condition satisfied by the switch from the ninth state to the third state includes: acquiring an enabling command triggered by user operation, wherein link states of the main PON port and the standby PON port are link closing states;
the trigger condition satisfied by switching from the ninth state to the seventh state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the state of the protection group is an enabling state;
the trigger condition satisfied by switching from the ninth state to the eighth state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the state of the protection group is an enabled state.
In one embodiment, the first timeout duration is set in response to a first setting command triggered by a user operation.
In one embodiment, when the protection group receives an optical signal recovery event of the main PON port, the automatic back-off timer is started to time, and a second timeout duration is set;
and when the timing duration of the automatic switching-back timer exceeds the second timeout duration, switching the protection group from the second state to the first state.
In one embodiment, the second timeout duration is set in response to a second setting command triggered by user operation.
In one embodiment, it is determined that an automatic cut-back function that switches from the second state to the first state is in an enabled state.
In a second aspect, the present disclosure provides an apparatus for implementing protection of a trunk optical fiber by an optical line terminal, where the optical line terminal at least includes a protection group, and the apparatus includes:
a current state determining module, configured to determine, for any protection group, a current state of a state machine of the protection group when a preset event for the protection group is received, where members of the protection group include a primary Passive Optical Network (PON) port and a standby PON port;
the to-be-executed action determining module is used for determining to-be-executed actions according to the current state of the state machine and the preset event;
and the state switching module is used for executing the action to be executed so as to complete the state switching of the protection group.
In one embodiment, the apparatus further comprises:
a state machine establishing module, configured to establish a state machine of the protection group before the current state determining module determines the current operating state of the state machine of the protection group, where a trigger condition for switching between different states of the protection group and an execution action required by state switching are predefined in the state machine;
the to-be-executed action determining module is configured to:
based on the state machine, determining a target state meeting a trigger condition according to the current state and the preset event; the target state is one of the states to which the current state can be switched;
determining an action to be performed required to switch from the current state to the target state.
In one embodiment, the protected group includes one of the following management states: an enable state and a disable state, wherein the enable state is a state in which a state machine of the protected group is enabled;
the disabled state is a state in which a state machine of the protected group is disabled.
In one embodiment, the apparatus further comprises:
the enabling state setting module is used for setting the management state of the state machine to be an enabling state when responding to an enabling command triggered by user operation;
and the prohibition state setting module is used for setting the management state of the state machine to be a prohibition state when responding to a prohibition command triggered by user operation.
In one embodiment, the state of the state machine includes at least one of the following information: the device comprises respective running states of the main PON port and the standby PON port, respective link states of the main PON port and the standby PON port, ONU registration indication information of an optical network unit, and indication information of whether the protection group can perform main/standby switching, wherein the ONU registration indication information is used for indicating the registration states of the ONU registration information on the main PON port and/or the standby PON port.
In one embodiment, the operational states include an on state, a standby state, an off state, and a fault state, wherein:
the open state indicates that a chip of the PON port allows the ONU to register online, and the transmitting and receiving optical channels of the PON optical module are all in the open state so that the PON port has the light emitting capacity and the light receiving capacity;
the standby state indicates that a chip of a PON port prohibits the ONU from registering online, a light receiving channel of the PON optical module is opened and a light emitting channel is closed, so that the PON port does not have the capability of emitting light but has the capability of receiving light;
the closed state indicates that a light receiving channel and a light emitting channel of a PON optical module are both in a closed state, so that the PON port does not have the light receiving capacity and the light emitting capacity;
the fault state indicates that a chip of the PON port has a fault and/or a board card where the PON port is located has a fault.
In one embodiment, the link states include a link open state, a link closed state, a link failure state, wherein:
the link opening state indicates that a main optical fiber link connected with a PON port is normal;
the link closing state indicates that a main optical fiber link connected with the PON port is interrupted or no ONU is registered online under the PON port;
and the link fault state represents that the quality of an optical fiber link connected with the PON port is poor, so that the uplink error rate is out of limit.
In one embodiment, the ONU registration indication information comprises one of the following information: the ONU registration information on the main PON port needs to be synchronized to a standby PON port, the ONU registration information on the main PON port does not need to be synchronized to the standby PON port, the ONU registration information on the standby PON port needs to be synchronized to the main PON port, the ONU registration information on the standby PON port does not need to be synchronized to the main PON port, the main PON port and the standby PON port do not have the ONU registration information, the ONU can only be registered on the main PON port, and the ONU can only be registered on the standby PON port.
In one embodiment, the states of the state machine include: a first state, where the first state includes that an operation state of the main PON port is an open state, and a link state of the main PON port is a link open state; the operation state of the standby PON port is a standby state, the link state of the standby PON port is a link open state or a link close state, and the ONU registration information on the main PON port needs to be synchronized to the standby PON port;
a second state, where the second state includes that the operation state of the standby PON port is an open state, and a link state of the standby PON port is a link open state; the operation state of the main PON port is a standby state, the link state of the main PON port is a link open state or a link close state, and the ONU registration information on the standby PON port needs to be synchronized to the main PON port;
a third state, where the third state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fourth state, where the fourth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fifth state, where the fifth state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a closed state, the ONU can only register on the main PON port, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
a sixth state, where the sixth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a closed state, the ONU can only register on the standby PON port, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a seventh state, where the seventh state includes that the operating state of the main PON port is an open state, the standby PON port is a failure state, the protection group cannot perform main/standby switching, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
an eighth state, where the eighth state includes that the operation state of the standby PON port is an open state; the main PON port is in a fault state, the protection group cannot carry out main/standby switching, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a ninth state, where the operation states of the main PON port and the standby PON port are both in any one of the following states: fault state, off state.
In one embodiment, the state switchable from the first state comprises at least one of: a second state, a fifth state, a sixth state, a seventh state, an eighth state, and a ninth state; wherein: the trigger condition satisfied by switching from the first state to the second state comprises: an optical signal loss event of the main PON port and/or an optical signal degradation event of the main PON port occur;
the optical signal loss event of the main PON port is that the main PON port does not receive an uplink optical signal and an optical link connected to the main PON port fails, where the optical link failure includes a fiber break of a connected trunk optical fiber and/or a failure of an optical module of the main PON port;
the optical signal degradation event of the main PON port is that the main PON port receives an uplink optical signal abnormity so that the error rate of data received by the main PON port is too high;
the trigger condition satisfied by switching from the first state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the first state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the first state to the seventh state includes: a chip exception event of the standby PON port and/or a board exception event of the standby PON port occur, where switching from the first state to the eighth state satisfies a trigger condition including: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the first state to the ninth state includes: obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state;
in one embodiment, the state switchable from the second state comprises at least one of: a first state, a sixth state, a fifth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the second state to the first state includes one of the following conditions:
an optical signal loss event of a standby PON port occurs, where the optical signal loss event of the standby PON port is that the standby PON port does not receive an uplink optical signal and an optical link connected to the standby PON port fails, and the optical link failure connected to the standby PON port includes that a connected trunk optical fiber is broken or an optical module of the standby PON port fails;
an optical signal degradation event of a standby PON port occurs, wherein the optical signal degradation event of the standby PON port is that the standby PON port receives an uplink optical signal abnormity so that the error rate of data received by the standby PON port is too high;
an optical signal recovery event of a main PON port occurs, wherein the optical signal recovery event of the main PON port is that an optical link connected with the main PON port is recovered to be normal;
acquiring a forced switching instruction triggered by user operation, wherein the forced switching instruction is an instruction for forced switching between the first state and the second state;
the trigger condition satisfied by switching from the second state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the second state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the second state to the eighth state includes: chip abnormal events of the main PON port and/or board card abnormal events of the main PON port occur;
the trigger condition satisfied by switching from the second state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the second state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state switchable from the third state comprises at least one of: a first state, a fourth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the third state to the first state includes: an optical signal recovery event of the main PON port occurs;
the triggering condition satisfied by switching from the third state to the fourth state includes: a first timer timing overtime event occurs;
the trigger condition satisfied by switching from the third state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the third state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the third state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state to which to switch from the fourth state comprises at least one of: a second state, a third state, a seventh state, an eighth state, and a ninth state; wherein:
the triggering condition satisfied by switching from the fourth state to the second state includes: an optical signal recovery event of the standby PON port occurs;
the triggering condition satisfied by switching from the fourth state to the third state includes: a first timer timing overtime event occurs;
the triggering condition satisfied by switching from the fourth state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the triggering condition satisfied by switching from the fourth state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the triggering condition satisfied by switching from the fourth state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state to which to switch from the fifth state comprises at least one of: a first state and a fourth state; wherein:
the triggering condition satisfied by switching from the fifth state to the first state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link opening state;
the triggering condition satisfied by switching from the fifth state to the fourth state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link closing state or a link failure state.
In one embodiment, the state to which to switch from the sixth state comprises at least one of: a second state and a third state; wherein:
the trigger condition satisfied by switching from the sixth state to the second state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link opening state;
the trigger condition satisfied by switching from the sixth state to the third state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link closing state or a link failure state.
In one embodiment, the state switched to from the seventh state comprises at least one of: a first state, a third state, a ninth state; wherein:
the trigger condition satisfied by switching from the seventh state to the first state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the main PON port link state is a link open state, where the chip exception recovery event of the standby PON port is an operation in which a chip of the standby PON port recovers to respond to a main control CPU;
the board card exception recovery event of the standby PON port is the operation of the board card of the standby PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the seventh state to the third state includes: at least one of a chip abnormal recovery event of the standby PON port and a board card abnormal recovery event of the standby PON port occurs, and the link state of the main PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the seventh state to the ninth state includes: and generating a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port.
In one embodiment, the state to which to switch from the eighth state comprises at least one of: a second state, a fourth state, a ninth state; wherein:
the trigger condition satisfied by switching from the eighth state to the second state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the link state of the standby PON port is a link open state, wherein the chip exception recovery event of the main PON port is an operation of a chip recovery response main control CPU of the main PON port;
the board card exception recovery event of the main PON port is the operation of the board card of the main PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the eighth state to the fourth state includes: at least one of a chip abnormal recovery event of the main PON port and a board card abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the eighth state to the ninth state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
in one embodiment, the state to which to switch from the ninth state comprises at least one of: a third state, a seventh state, and an eighth state; wherein:
the trigger condition satisfied by the switch from the ninth state to the third state includes: acquiring an enabling command triggered by user operation, wherein link states of the main PON port and the standby PON port are link closing states;
the trigger condition satisfied by switching from the ninth state to the seventh state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the state of the protection group is an enabling state;
the trigger condition satisfied by switching from the ninth state to the eighth state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the state of the protection group is an enabled state.
In one embodiment, the apparatus further comprises:
and the first timeout setting module is used for setting the first timeout duration when responding to a first setting command triggered by user operation.
In one embodiment, the action to be performed determining module is configured to:
when the protection group receives an optical signal recovery event of the main PON port, starting the automatic switching-back timer to time, and setting a second overtime length;
and when the timing duration of the automatic switching-back timer exceeds the second timeout duration, switching the protection group from the second state to the first state.
In one embodiment, the apparatus further comprises:
and the second timeout setting module is used for setting the second timeout duration when responding to a second setting command triggered by user operation.
In one embodiment, the apparatus further comprises:
and the determination enabling module is used for determining that the automatic switching-back function switched from the second state to the first state is in an enabled state.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a computer storage medium for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for implementing the trunk optical fiber protection by the optical line terminal according to the first aspect.
According to a fourth aspect provided by the embodiments of the present disclosure, a computer storage medium is provided, where computer-executable instructions are stored, and the computer-executable instructions are configured to execute the method for implementing backbone optical fiber protection by an optical line terminal according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the invention discloses a method, a device and a storage medium for realizing trunk optical fiber protection of an optical line terminal, and relates to the technical field of communication equipment. The method comprises the following steps: for any protection group, when a preset event for the protection group is received, determining the current state of a state machine of the protection group, wherein the members of the protection group comprise a main Passive Optical Network (PON) port and a standby PON port; determining an action to be executed according to the current state of the state machine and the preset event; and executing the action to be executed to complete the state switching of the protection group. Therefore, the switching of the main and standby ports of the PON can be realized by switching the states between the state machines, the state definition of the state machines is clear, the realization is simple, the operation stability is good, and the problems of complex processing flow and poor operation stability of a control software module on a CPU of a main control processor can be solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of a suitable scenario in accordance with an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for implementing trunk optical fiber protection by an optical line terminal according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of control interface operation according to one embodiment of the present disclosure;
FIG. 4 is an operational diagram of an interface for setting timeout duration according to one embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating an operation of a forced switching interface according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram illustrating operation of a lock command interface according to one embodiment of the present disclosure;
FIG. 7 is an operational schematic diagram of an unlock interface according to one embodiment of the present disclosure;
figure 8 is a schematic diagram of an apparatus for implementing trunk fiber protection by an optical line terminal according to an embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of an electronic device according to one embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more clear, the present disclosure will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the scope of protection of the present disclosure.
The term "plurality" in the embodiments of the present disclosure means two or more, and other terms are used similarly, it being understood that the preferred embodiments described herein are only for illustrating and explaining the present disclosure, and are not intended to limit the present disclosure, and that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
As described in the background art, in the prior art, the factors for implementing the trigger switching of the PON port protection switching method in the optical line terminal are many, which results in complex implementation of the processing flow of the control software module on the main control processor and poor operation stability.
In view of this, the present disclosure provides a method, an apparatus, and a storage medium for implementing protection of a trunk optical fiber by an optical line terminal.
The application scenario of the method for realizing the protection of the trunk optical fiber by the optical line terminal provided by the present disclosure is as follows:
as shown in fig. 1, the apparatus shown in fig. 1 is an optical line terminal apparatus, where the optical line terminal apparatus includes a plurality of PON service boards and at least one main control board, each PON service board may have a plurality of PON ports arranged thereon for implementing access of PON services, two ports on one PON service board are selected to form a protection group, one is a main PON port, and the other is a standby PON port, each protection group has a protection group number for identification, the main port and the standby port have respective port number for identification, and the main control board has a main control CPU, which is responsible for centrally managing the plurality of PON service boards, and switching states of state machines is performed to implement main/standby switching of the main PON ports and the standby PON ports, thereby implementing a management function of the apparatus.
The following describes in detail the scheme provided by the present disclosure with reference to the accompanying drawings, and as shown in fig. 2, the scheme is a schematic flow chart of the method, it should be noted that the optical line terminal at least includes a protection group, and may include the following steps:
step 201: for any protection group, when a preset event for the protection group is received, determining the current state of a state machine of the protection group, wherein the members of the protection group comprise a main Passive Optical Network (PON) port and a standby PON port;
step 202: determining an action to be executed according to the current state of the state machine and the preset event;
step 203: and executing the action to be executed to complete the state switching of the protection group.
Therefore, the embodiment of the disclosure determines the action to be executed according to the current state and the preset event of the state machine, and executes the action to be executed to complete the state switching of the state machine, and the switching of the main/standby ports of the PON is realized through the switching between the states, so that the switching of the main/standby ports of the PON can be realized through the switching of the states between the state machines, the state definition of the state machine is clear, the implementation is simple, the operation stability is good, and the problems of complex processing flow and poor operation stability of a control software module on a CPU of a main control processor can be solved.
In one embodiment, when a state machine of the protection group is established, a trigger condition for switching between different states of the protection group and an execution action required by state switching are predefined in the state machine; the determining, according to the current state of the state machine and the preset event, of the action to be performed in step 202 may be performed as: based on the state machine, determining a target state meeting a trigger condition according to the current state and the preset event; the target state is one of the states to which the current state can be switched; determining an action to be performed required to switch from the current state to the target state.
Therefore, the action to be executed, which needs to be executed when the protection group is switched to the target state under the current state and the preset event, can be determined according to the trigger condition when the protection group is switched between different states defined in advance and the execution action needed by state switching.
As shown in fig. 3, fig. 3 is a schematic operation diagram of a control interface of the optical line terminal device, as shown in the figure, a user may select management states of different protection groups, where a protection group includes a main PON port and a standby PON port, where a PON port of the protection group may be a PON port on the same service board or may not be a PON port on the same service board, a name of the protection group may be configured according to a requirement of the user, and the user may select a management state of the protection group in a protection group management state frame, for example, in an embodiment, the protection group includes one of the following management states: an enable state and a disable state, wherein the enable state is a state in which a state machine of the protected group is enabled; the disabled state is a state in which a state machine of the protected group is disabled. If the management state of the user selected to protect the group 1 is an enabled state, the state machine of the protection group 1 is in an enabled state, and if the management state of the user selected to protect the group 2 is a forbidden state, the state machine of the protection group 2 is in a forbidden state; how the protection group operates according to the setting of the user, in one embodiment, when responding to an enabling command triggered by the user operation, the management state of the state machine is set to be an enabling state; and setting the management state of the state machine to be a prohibition state when responding to a prohibition command triggered by user operation. As shown in fig. 3, as described above, the management state of the user-selected protection group 1 is an enabled state, the protection group 1 sets the management state of the state machine to be an enabled state in response to an enable command triggered by a user operation, the management state of the user-selected protection group 2 is a disabled state, and the protection group 2 sets the management state of the state machine to be a disabled state in response to a disable command triggered by a user operation.
Thus, the management state of each protected group can be set according to the user requirements.
As previously described, each protection group includes a primary PON port and a standby PON port. To facilitate defining the states of the state machines of the protected group, in one embodiment, the states of the state machines may be partitioned according to at least one of the following information:
1. the respective running states of the main PON port and the standby PON port;
the operating states include:
(1) an open state, where the open state indicates that a chip of a PON port allows the ONU to register online, and both transmit and receive optical channels of the PON optical module are in an open state, so that the PON port has a light-emitting capability and a light-receiving capability;
(2) a standby state, wherein the standby state indicates that a chip of a PON port prohibits the ONU from registering online, a light receiving channel of the PON optical module is opened and a light emitting channel is closed, so that the PON port has no light emitting capability but has a light receiving capability;
(3) the off state indicates that both a light receiving channel and a light emitting channel of a PON optical module are in an off state, so that the PON port does not have the light receiving capacity and the light emitting capacity;
(4) and a fault state, wherein the fault state indicates that a chip of the PON port has a fault and/or a board card where the PON port is located has a fault.
2. Respective link states of the primary PON port and the standby PON port;
the link states include:
(1) a link opening state, wherein the link opening state indicates that a trunk optical fiber link connected with a PON port is normal;
(2) a link closing state, wherein the link closing state indicates that a trunk optical fiber link connected to a PON port is interrupted or no ONU is registered online under the PON port;
(3) and a link fault state, wherein the link fault state represents that the quality of an optical fiber link connected with the PON port is poor, so that the uplink error rate is out of limit.
3. Optical network unit ONU registration indication information;
the ONU registration indication information comprises one of the following information: the ONU registration information on the main PON port needs to be synchronized to a standby PON port, the ONU registration information on the main PON port does not need to be synchronized to the standby PON port, the ONU registration information on the standby PON port needs to be synchronized to the main PON port, the ONU registration information on the standby PON port does not need to be synchronized to the main PON port, both the main PON port and the standby PON port do not have the ONU registration information, the ONU can only register on the main PON port, the ONU can only register on the standby PON port, and the ONU registration indication information is used for indicating the registration state of the ONU registration information on the main PON port and/or the standby PON port.
4. And the indication information of whether the protection group can carry out main/standby switching or not.
Thus, the state of the state machine may be determined from at least one of the above information.
The above describes which information defines the state of the state machine, and in one embodiment, the following illustrates several states that can be divided, which may include, for example, the following nine states:
1) the first state comprises that the running state of the main PON port is an open state, and the link state of the main PON port is a link open state; the operation state of the standby PON port is a standby state, the link state of the standby PON port is a link open state or a link close state, and the ONU registration information on the main PON port needs to be synchronized to the standby PON port;
2) the second state comprises that the running state of the standby PON port is an open state, and the link state of the standby PON port is a link open state; the operation state of the main PON port is a standby state, the link state of the main PON port is a link open state or a link close state, and the ONU registration information on the standby PON port needs to be synchronized to the main PON port;
3) a third state, where the third state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
4) a fourth state, where the fourth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
5) the fifth state comprises that the running state of the main PON port is an open state, the running state of the standby PON port is a closed state, the ONU can only register on the main PON port, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
6) the sixth state comprises that the running state of the standby PON port is an open state, the running state of the main PON port is a closed state, the ONU can only register on the standby PON port, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
7) a seventh state, where the seventh state includes that the operating state of the main PON port is an open state, the standby PON port is a failure state, the protection group cannot perform main/standby switching, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
8) an eighth state, where the eighth state includes that the operation state of the standby PON port is an open state; the main PON port is in a fault state, the protection group cannot carry out main/standby switching, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
9) and a ninth state, in which the operation states of the main PON port and the standby PON port are both in any one of the following states: fault state, off state.
Thus, the state of the state machine may be determined based on the actions performed by the state machine.
The nine states can be switched, and in one embodiment, the following is specifically described:
1. switching from the first state to the other state:
the state switchable from the first state comprises at least one of: a second state, a fifth state, a sixth state, a seventh state, an eighth state, and a ninth state; wherein:
(1) and the triggering condition met by switching from the first state to the second state comprises the following steps: an optical signal loss event of the main PON port and/or an optical signal degradation event of the main PON port occur; the optical signal loss event of the main PON port is that the main PON port does not receive an uplink optical signal and an optical link connected to the main PON port fails, where the optical link failure includes a fiber break of a connected trunk optical fiber and/or a failure of an optical module of the main PON port;
the optical signal degradation event of the main PON port is that the main PON port receives an uplink optical signal abnormity so that the error rate of data received by the main PON port is too high;
(2) and the triggering condition met by switching from the first state to the fifth state comprises the following steps: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
(3) and the triggering condition met by switching from the first state to the sixth state comprises the following steps: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
(4) and the triggering condition met by switching from the first state to the seventh state comprises the following steps: a chip exception event of the standby PON port and/or a board card exception event of the standby PON port occur, wherein the chip exception event of the standby PON port is that a chip of the standby PON port has software and/or hardware exception so that the standby PON port cannot respond to any operation request of a main control CPU;
the board card exception event of the standby PON port is that a board card of the standby PON port has software and/or hardware exception so that the standby PON port cannot respond to any operation request of a main control CPU;
(5) and the triggering condition met by switching from the first state to the eighth state comprises the following steps: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
(6) and the triggering condition met by switching from the first state to the ninth state comprises the following steps: obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state;
2. switching from the second state to the other state:
the state switchable from the second state comprises at least one of: a first state, a sixth state, a fifth state, an eighth state, a seventh state, and a ninth state; wherein:
(1) the triggering condition satisfied by switching from the second state to the first state comprises one of the following conditions:
an optical signal loss event of a standby PON port occurs, where the optical signal loss event of the standby PON port is that the standby PON port does not receive an uplink optical signal and an optical link connected to the standby PON port fails, and the optical link failure connected to the standby PON port includes that a connected trunk optical fiber is broken or an optical module of the standby PON port fails;
an optical signal degradation event of a standby PON port occurs, wherein the optical signal degradation event of the standby PON port is that the standby PON port receives an uplink optical signal abnormity so that the error rate of data received by the standby PON port is too high;
an optical signal recovery event of a main PON port occurs, wherein the optical signal recovery event of the main PON port is that an optical link connected with the main PON port is recovered to be normal; when the automatic switch-back function of the state machine is in the enabled state, the determining, according to the current state of the state machine and the preset event, that is executed in step 202, an action to be executed may be executed as: when the protection group receives an optical signal recovery event of the main PON port, starting the automatic switching-back timer to time, and setting a second overtime length when responding to a second setting command triggered by user operation; and when the timing duration of the automatic switching-back timer exceeds the second timeout duration, switching the protection group from the second state to the first state. As shown in fig. 4, fig. 4 is an operation schematic diagram of a user timeout duration interface, where a user may set a first timeout duration and a second timeout duration of each protection group, and if the second timeout duration input by the user into the protection group 1 is 5 minutes, the second timeout duration of the protection group 1 is 5 minutes.
Acquiring a forced switching instruction triggered by user operation, wherein the forced switching instruction is an instruction for forced switching between the first state and the second state; as shown in fig. 5, fig. 5 is a schematic diagram of an operation of a user forced switching interface, where a user may select whether each protection group is enabled to perform forced switching, if the user selects the protection group 2, the protection group 2 performs forced switching, and if the user selects the protection group 1, the protection group 1 does not perform switching.
(2) And the triggering condition met by switching from the second state to the sixth state comprises the following steps: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
(3) and the triggering condition met by switching from the second state to the fifth state comprises the following steps: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state; as shown in fig. 6, fig. 6 is a schematic view of an operation interface for a user to select a lock instruction, where if the user selects the second lock instruction of the protection group 1, the protection group 1 will be locked in the sixth state, and if the user selects the first lock instruction of the protection group 2, the protection group 2 will be locked in the fifth state.
(4) And the triggering condition met by switching from the second state to the eighth state comprises the following steps: chip abnormal events of the main PON port and/or board card abnormal events of the main PON port occur;
(5) and the triggering condition met by switching from the second state to the seventh state comprises the following steps: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
(6) and the triggering condition met by switching from the second state to the ninth state comprises the following steps: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
3. Switching from the third state to the other states:
the state switchable from the third state comprises at least one of: a first state, a fourth state, an eighth state, a seventh state, and a ninth state; wherein:
(1) and the triggering condition met by switching from the third state to the first state comprises the following steps: an optical signal recovery event of the main PON port occurs;
(2) and the triggering condition met by switching from the third state to the fourth state comprises the following steps: a first timer timing overtime event occurs;
(3) and the triggering condition met by switching from the third state to the eighth state comprises the following steps: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
(4) and the triggering condition met by switching from the third state to the seventh state comprises the following steps: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
(5) and the triggering condition met by switching from the third state to the ninth state comprises the following steps: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
4. Switching from the fourth state to the other states:
the state to which to switch from the fourth state comprises at least one of: a second state, a third state, a seventh state, an eighth state, and a ninth state; wherein:
(1) and the triggering condition met by switching from the fourth state to the second state comprises the following steps: an optical signal recovery event of the standby PON port occurs;
(2) and the triggering condition met by switching from the fourth state to the third state comprises the following steps: a first timer timing overtime event occurs;
(3) and the triggering condition met by switching from the fourth state to the seventh state comprises the following steps: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
(4) and the triggering condition met by switching from the fourth state to the eighth state comprises the following steps: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
(5) and the triggering condition met by switching from the fourth state to the ninth state comprises the following steps: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
5. Switching from the fifth state to the other states:
the state switched to from the fifth state includes at least one of: a first state and a fourth state; wherein:
(1) and the triggering condition met by switching from the fifth state to the first state comprises the following steps: obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link opening state; as shown in fig. 7, fig. 7 is a schematic operation diagram of a user interface, where a user may select whether each protection group is unlocked, if the user selects protection group 1, protection group 1 is unlocked, if protection group 1 is in the fifth state and the link state of the main PON port is the link open state at this time, after unlocking, protection group 1 is switched to the first state, and if the user selects no, unlocking is not performed.
(2) And the triggering condition met by switching from the fifth state to the fourth state comprises the following steps: and obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link closing state or a link failure state. As shown in fig. 7, as described above, if the user selects protection group 2, protection group 2 is unlocked, and if protection group 2 is in the fifth state at this time and the link state of the main PON port is the link-off state or the link-failure state, protection group 2 is switched to the fourth state.
6. Switching from the sixth state to the other states:
the state to which to switch from the sixth state comprises at least one of: a second state and a third state; wherein:
(1) and the triggering condition met by switching from the sixth state to the second state comprises the following steps: obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link opening state; as shown in fig. 7, if the user selects protection group 1, protection group 1 is unlocked, and if protection group 1 is in the sixth state at this time and the link state of the main PON port is the link-on state, protection group 1 is switched to the second state.
(2) And the triggering condition met by switching from the sixth state to the third state comprises the following steps: and obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link closing state or a link failure state. As shown in fig. 7, as described above, if the user selects protection group 1 as yes, protection group 1 is unlocked, and if protection group 1 is in the sixth state at this time and the link state of the main PON port is the link-off state or the link-failure state, protection group 1 is switched to the third state.
7. Switching from the seventh state to the other states:
the state switched to from the seventh state comprises at least one of: a first state, a third state, a ninth state; wherein:
(1) and the triggering condition met by switching from the seventh state to the first state comprises the following steps: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the main PON port link state is a link open state, where the chip exception recovery event of the standby PON port is an operation in which a chip of the standby PON port recovers to respond to a main control CPU; the board card exception recovery event of the standby PON port is the operation of the board card of the standby PON port for recovering the response of a main control CPU;
(2) and the triggering condition met by switching from the seventh state to the third state comprises the following steps: at least one of a chip abnormal recovery event of the standby PON port and a board card abnormal recovery event of the standby PON port occurs, and the link state of the main PON port is a link closing state or a link failure state;
(3) and the triggering condition met by switching from the seventh state to the ninth state comprises the following steps: and generating a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port.
8. Switching from the eighth state to the other states:
the state switched to from the eighth state includes at least one of: a second state, a fourth state, a ninth state; wherein:
(1) and the triggering condition met by switching from the eighth state to the second state comprises: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the link state of the standby PON port is a link open state, wherein the chip exception recovery event of the main PON port is an operation of a chip recovery response main control CPU of the main PON port; the board card exception recovery event of the main PON port is the operation of the board card of the main PON port for recovering the response of a main control CPU;
(2) and the triggering condition met by switching from the eighth state to the fourth state comprises the following steps: at least one of a chip abnormal recovery event of the main PON port and a board card abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link closing state or a link failure state;
(3) and the triggering condition met by switching from the eighth state to the ninth state comprises the following steps: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
9. switching from the ninth state to the other states:
the state to which to switch from the ninth state includes at least one of: a third state, a seventh state, and an eighth state; wherein:
(1) and the triggering condition met by switching from the ninth state to the third state comprises the following steps: acquiring an enabling command triggered by user operation, wherein link states of the main PON port and the standby PON port are link closing states;
(2) and the triggering condition met by switching from the ninth state to the seventh state comprises the following steps: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the state of the protection group is an enabling state;
(3) and the triggering condition met by switching from the ninth state to the eighth state comprises the following steps: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the state of the protection group is an enabled state.
Thus, the switching from the current state to the next state can be determined according to different events or instructions input by the user.
The switching between the third state and the fourth state by the state machine further includes which methods, and in one embodiment, the first timeout duration is set in response to a first setting command triggered by a user operation. For example, as shown in fig. 4, if the first timeout period input by the user is 3 minutes, the first timeout period is 3 minutes.
Therefore, the user can set the first timeout duration according to the requirement of the user, and the user can configure the first timeout duration.
As shown in fig. 8, the device for providing optical line terminal to protect the main optical fiber according to the embodiment of the present disclosure has similar effects to those of the foregoing method based on the same inventive concept, and is not repeated herein.
As shown in fig. 8, the communication device apparatus 800 of the present disclosure may include a binding current state determining module 810, an action to be performed determining module 820, and a state switching module 830.
A current state determining module 810, configured to determine, for any protection group, a current state of a state machine of the protection group when a preset event for the protection group is received, where members of the protection group include a primary passive optical network PON port and a standby PON port;
a to-be-executed action determining module 820, configured to determine an action to be executed according to the current state of the state machine and the preset event;
a state switching module 830, configured to execute the action to be executed to complete the state switching of the protection group.
In one embodiment, the apparatus further comprises:
a state machine establishing module 840, configured to establish a state machine of the protection group before the current state determining module determines the current operating state of the state machine of the protection group, where a trigger condition for switching between different states of the protection group and an execution action required by state switching are predefined in the state machine;
the to-be-executed action determining module 820 is configured to:
based on the state machine, determining a target state meeting a trigger condition according to the current state and the preset event; the target state is one of the states to which the current state can be switched;
determining an action to be performed required to switch from the current state to the target state.
In one embodiment, the protected group includes one of the following management states: an enable state and a disable state, wherein the enable state is a state in which a state machine of the protected group is enabled;
the disabled state is a state in which a state machine of the protected group is disabled.
In one embodiment, the apparatus further comprises:
an enable state setting module 850, configured to set the management state of the state machine to an enable state when responding to an enable command triggered by a user operation;
and the prohibition state setting module 860 is used for setting the management state of the state machine to a prohibition state in response to a prohibition command triggered by user operation.
In one embodiment, the state of the state machine includes at least one of the following information: the device comprises respective running states of the main PON port and the standby PON port, respective link states of the main PON port and the standby PON port, ONU registration indication information of an optical network unit, and indication information of whether the protection group can perform main/standby switching, wherein the ONU registration indication information is used for indicating the registration states of the ONU registration information on the main PON port and/or the standby PON port.
In one embodiment, the operational states include an on state, a standby state, an off state, and a fault state, wherein:
the open state indicates that a chip of the PON port allows the ONU to register online, and the transmitting and receiving optical channels of the PON optical module are all in the open state so that the PON port has the light emitting capacity and the light receiving capacity;
the standby state indicates that a chip of a PON port prohibits the ONU from registering online, a light receiving channel of the PON optical module is opened and a light emitting channel is closed, so that the PON port does not have the capability of emitting light but has the capability of receiving light;
the closed state indicates that a light receiving channel and a light emitting channel of a PON optical module are both in a closed state, so that the PON port does not have the light receiving capacity and the light emitting capacity;
the fault state indicates that a chip of the PON port has a fault and/or a board card where the PON port is located has a fault.
In one embodiment, the link states include a link open state, a link closed state, a link failure state, wherein:
the link opening state indicates that a main optical fiber link connected with a PON port is normal;
the link closing state indicates that a main optical fiber link connected with the PON port is interrupted or no ONU is registered online under the PON port;
and the link fault state represents that the quality of an optical fiber link connected with the PON port is poor, so that the uplink error rate is out of limit.
In one embodiment, the ONU registration indication information comprises one of the following information: the ONU registration information on the main PON port needs to be synchronized to a standby PON port, the ONU registration information on the main PON port does not need to be synchronized to the standby PON port, the ONU registration information on the standby PON port needs to be synchronized to the main PON port, the ONU registration information on the standby PON port does not need to be synchronized to the main PON port, the main PON port and the standby PON port do not have the ONU registration information, the ONU can only be registered on the main PON port, and the ONU can only be registered on the standby PON port.
In one embodiment, the states of the state machine include: a first state, where the first state includes that an operation state of the main PON port is an open state, and a link state of the main PON port is a link open state; the operation state of the standby PON port is a standby state, the link state of the standby PON port is a link open state or a link close state, and the ONU registration information on the main PON port needs to be synchronized to the standby PON port;
a second state, where the second state includes that the operation state of the standby PON port is an open state, and a link state of the standby PON port is a link open state; the operation state of the main PON port is a standby state, the link state of the main PON port is a link open state or a link close state, and the ONU registration information on the standby PON port needs to be synchronized to the main PON port;
a third state, where the third state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fourth state, where the fourth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fifth state, where the fifth state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a closed state, the ONU can only register on the main PON port, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
a sixth state, where the sixth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a closed state, the ONU can only register on the standby PON port, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a seventh state, where the seventh state includes that the operating state of the main PON port is an open state, the standby PON port is a failure state, the protection group cannot perform main/standby switching, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
an eighth state, where the eighth state includes that the operation state of the standby PON port is an open state; the main PON port is in a fault state, the protection group cannot carry out main/standby switching, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a ninth state, where the operation states of the main PON port and the standby PON port are both in any one of the following states: fault state, off state.
In one embodiment, the state switchable from the first state comprises at least one of: a second state, a fifth state, a sixth state, a seventh state, an eighth state, and a ninth state; wherein: the trigger condition satisfied by switching from the first state to the second state comprises: an optical signal loss event of the main PON port and/or an optical signal degradation event of the main PON port occur;
the optical signal loss event of the main PON port is that the main PON port does not receive an uplink optical signal and an optical link connected to the main PON port fails, where the optical link failure includes a fiber break of a connected trunk optical fiber and/or a failure of an optical module of the main PON port;
the optical signal degradation event of the main PON port is that the main PON port receives an uplink optical signal abnormity so that the error rate of data received by the main PON port is too high;
the trigger condition satisfied by switching from the first state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the first state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the first state to the seventh state includes: a chip exception event of the standby PON port and/or a board exception event of the standby PON port occur, where switching from the first state to the eighth state satisfies a trigger condition including: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the first state to the ninth state includes: obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state;
in one embodiment, the state switchable from the second state comprises at least one of: a first state, a sixth state, a fifth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the second state to the first state includes one of the following conditions:
an optical signal loss event of a standby PON port occurs, where the optical signal loss event of the standby PON port is that the standby PON port does not receive an uplink optical signal and an optical link connected to the standby PON port fails, and the optical link failure connected to the standby PON port includes that a connected trunk optical fiber is broken or an optical module of the standby PON port fails;
an optical signal degradation event of a standby PON port occurs, wherein the optical signal degradation event of the standby PON port is that the standby PON port receives an uplink optical signal abnormity so that the error rate of data received by the standby PON port is too high;
an optical signal recovery event of a main PON port occurs, wherein the optical signal recovery event of the main PON port is that an optical link connected with the main PON port is recovered to be normal;
acquiring a forced switching instruction triggered by user operation, wherein the forced switching instruction is an instruction for forced switching between the first state and the second state;
the trigger condition satisfied by switching from the second state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the second state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the second state to the eighth state includes: chip abnormal events of the main PON port and/or board card abnormal events of the main PON port occur;
the trigger condition satisfied by switching from the second state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the second state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state switchable from the third state comprises at least one of: a first state, a fourth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the third state to the first state includes: an optical signal recovery event of the main PON port occurs;
the triggering condition satisfied by switching from the third state to the fourth state includes: a first timer timing overtime event occurs;
the trigger condition satisfied by switching from the third state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the third state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the third state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state to which to switch from the fourth state comprises at least one of: a second state, a third state, a seventh state, an eighth state, and a ninth state; wherein:
the triggering condition satisfied by switching from the fourth state to the second state includes: an optical signal recovery event of the standby PON port occurs;
the triggering condition satisfied by switching from the fourth state to the third state includes: a first timer timing overtime event occurs;
the triggering condition satisfied by switching from the fourth state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the triggering condition satisfied by switching from the fourth state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the triggering condition satisfied by switching from the fourth state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
In one embodiment, the state to which to switch from the fifth state comprises at least one of: a first state and a fourth state; wherein:
the triggering condition satisfied by switching from the fifth state to the first state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link opening state;
the triggering condition satisfied by switching from the fifth state to the fourth state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link closing state or a link failure state.
In one embodiment, the state to which to switch from the sixth state comprises at least one of: a second state and a third state; wherein:
the trigger condition satisfied by switching from the sixth state to the second state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link opening state;
the trigger condition satisfied by switching from the sixth state to the third state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link closing state or a link failure state.
In one embodiment, the state switched to from the seventh state comprises at least one of: a first state, a third state, a ninth state; wherein:
the trigger condition satisfied by switching from the seventh state to the first state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the main PON port link state is a link open state, where the chip exception recovery event of the standby PON port is an operation in which a chip of the standby PON port recovers to respond to a main control CPU;
the board card exception recovery event of the standby PON port is the operation of the board card of the standby PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the seventh state to the third state includes: at least one of a chip abnormal recovery event of the standby PON port and a board card abnormal recovery event of the standby PON port occurs, and the link state of the main PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the seventh state to the ninth state includes: and generating a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port.
In one embodiment, the state to which to switch from the eighth state comprises at least one of: a second state, a fourth state, a ninth state; wherein:
the trigger condition satisfied by switching from the eighth state to the second state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the link state of the standby PON port is a link open state, wherein the chip exception recovery event of the main PON port is an operation of a chip recovery response main control CPU of the main PON port;
the board card exception recovery event of the main PON port is the operation of the board card of the main PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the eighth state to the fourth state includes: at least one of a chip abnormal recovery event of the main PON port and a board card abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the eighth state to the ninth state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
in one embodiment, the state to which to switch from the ninth state comprises at least one of: a third state, a seventh state, and an eighth state; wherein:
the trigger condition satisfied by the switch from the ninth state to the third state includes: acquiring an enabling command triggered by user operation, wherein link states of the main PON port and the standby PON port are link closing states;
the trigger condition satisfied by switching from the ninth state to the seventh state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the state of the protection group is an enabling state;
the trigger condition satisfied by switching from the ninth state to the eighth state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the state of the protection group is an enabled state.
In one embodiment, the apparatus further comprises:
the first timeout setting module 870 is configured to set the first timeout duration in response to a first setting command triggered by a user operation.
In one embodiment, the action to be performed determining module 820 is configured to:
when the protection group receives an optical signal recovery event of the main PON port, starting the automatic switching-back timer to time, and setting a second overtime length;
and when the timing duration of the automatic switching-back timer exceeds the second timeout duration, switching the protection group from the second state to the first state.
In one embodiment, the apparatus further comprises:
a second timeout setting module 880, configured to set the second timeout duration in response to a second setting command triggered by user operation.
In one embodiment, the apparatus further comprises:
a determination enabling module 890 for determining that the automatic cut-back function that switched from the second state to the first state is in an enabled state.
An electronic device 900 according to this embodiment of the disclosure is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present disclosure.
As shown in fig. 9, the electronic device 900 is represented in the form of a general-purpose electronic device. Components of electronic device 900 may include, but are not limited to: the at least one processor 901, the at least one computer storage medium 902, and the bus 904 that connects the various system components (including the computer storage medium 902 and the processor 901).
Bus 904 represents one or more of any of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
Computer storage media 902 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM)921 and/or cache storage media 922, and may further include read-only computer storage media (ROM) 923.
Computer storage media 902 may also include programs/utilities 925 having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 900 may also communicate with one or more external devices 904 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other electronic devices. Such communication may occur via input/output (I/O) interfaces 905. Moreover, the electronic device 900 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet) via the network adapter 906. As shown, the network adapter 906 communicates with the other modules for the electronic device 900 over the bus 904. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, the various aspects of a method for an optical line terminal to implement trunk optical fiber protection provided by the present disclosure may also be implemented in the form of a program product including program code for causing a computer device to perform the steps in a method for an optical line terminal to implement trunk optical fiber protection according to various exemplary embodiments of the present disclosure described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, a hard disk, a random access computer storage media (RAM), a read-only computer storage media (ROM), an erasable programmable read-only computer storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only computer storage media (CD-ROM), an optical computer storage media piece, a magnetic computer storage media piece, or any suitable combination of the foregoing.
The program product for the optical line terminal to realize the trunk optical fiber protection of the embodiment of the present disclosure may adopt a portable compact disc read only computer storage medium (CD-ROM) and include program codes, and may be run on an electronic device. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., through the internet using an internet service provider).
It should be noted that although several modules of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Further, while the operations of the disclosed methods are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk computer storage media, CD-ROMs, optical computer storage media, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable computer storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable computer storage medium produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications can be made in the present disclosure without departing from the spirit and scope of the disclosure. Thus, if such modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is intended to include such modifications and variations as well.

Claims (46)

1. A method for realizing trunk optical fiber protection by an optical line terminal is characterized in that the optical line terminal at least comprises a protection group, and the method comprises the following steps:
for any protection group, when a preset event for the protection group is received, determining the current state of a state machine of the protection group, wherein the members of the protection group comprise a main Passive Optical Network (PON) port and a standby PON port;
determining an action to be executed according to the current state of the state machine and the preset event;
and executing the action to be executed to complete the state switching of the protection group.
2. The method of claim 1, wherein prior to determining the current operating state of the state machines of the protected group, further comprising:
establishing a state machine of the protection group, wherein the state machine is predefined with a trigger condition when switching between different states of the protection group and an execution action required by state switching;
determining an action to be executed according to the current state of the state machine and the preset event, wherein the action to be executed comprises the following steps:
based on the state machine, determining a target state meeting a trigger condition according to the current state and the preset event; the target state is one of the states to which the current state can be switched;
determining an action to be performed required to switch from the current state to the target state.
3. The method of claim 1, wherein the protected group comprises one of the following management states: an enable state and a disable state, wherein,
the enabling state is a state in which a state machine of the protection group is enabled;
the disabled state is a state in which a state machine of the protected group is disabled.
4. The method of claim 3, further comprising:
setting the management state of the state machine to be an enabling state when responding to an enabling command triggered by user operation;
and setting the management state of the state machine to be a prohibition state when responding to a prohibition command triggered by user operation.
5. The method of claim 2, wherein the state of the state machine comprises at least one of: the device comprises respective running states of the main PON port and the standby PON port, respective link states of the main PON port and the standby PON port, ONU registration indication information of an optical network unit, and indication information of whether the protection group can perform main/standby switching, wherein the ONU registration indication information is used for indicating the registration states of the ONU registration information on the main PON port and/or the standby PON port.
6. The method of claim 5, wherein the operational state comprises an on state, a standby state, an off state, and a fault state, wherein:
the open state indicates that a chip of the PON port allows the ONU to register online, and the transmitting and receiving optical channels of the PON optical module are all in the open state so that the PON port has the light emitting capacity and the light receiving capacity;
the standby state indicates that a chip of a PON port prohibits the ONU from registering online, a light receiving channel of the PON optical module is opened and a light emitting channel is closed, so that the PON port does not have the capability of emitting light but has the capability of receiving light;
the closed state indicates that a light receiving channel and a light emitting channel of a PON optical module are both in a closed state, so that the PON port does not have the light receiving capacity and the light emitting capacity;
the fault state indicates that a chip of the PON port has a fault and/or a board card where the PON port is located has a fault.
7. The method of claim 5, wherein the link state comprises a link-on state, a link-off state, and a link-failure state, and wherein:
the link opening state indicates that a main optical fiber link connected with a PON port is normal;
the link closing state indicates that a main optical fiber link connected with the PON port is interrupted or no ONU is registered online under the PON port;
and the link fault state represents that the quality of an optical fiber link connected with the PON port is poor, so that the uplink error rate is out of limit.
8. The method of claim 5, wherein the ONU registration indication information comprises one of the following information: the ONU registration information on the main PON port needs to be synchronized to a standby PON port, the ONU registration information on the main PON port does not need to be synchronized to the standby PON port, the ONU registration information on the standby PON port needs to be synchronized to the main PON port, the ONU registration information on the standby PON port does not need to be synchronized to the main PON port, the main PON port and the standby PON port do not have the ONU registration information, the ONU can only be registered on the main PON port, and the ONU can only be registered on the standby PON port.
9. The method according to any of claims 2-8, wherein the state of the state machine comprises:
a first state, where the first state includes that an operation state of the main PON port is an open state, and a link state of the main PON port is a link open state; the operation state of the standby PON port is a standby state, the link state of the standby PON port is a link open state or a link close state, and the ONU registration information on the main PON port needs to be synchronized to the standby PON port;
a second state, where the second state includes that the operation state of the standby PON port is an open state, and a link state of the standby PON port is a link open state; the operation state of the main PON port is a standby state, the link state of the main PON port is a link open state or a link close state, and the ONU registration information on the standby PON port needs to be synchronized to the main PON port;
a third state, where the third state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fourth state, where the fourth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fifth state, where the fifth state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a closed state, the ONU can only register on the main PON port, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
a sixth state, where the sixth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a closed state, the ONU can only register on the standby PON port, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a seventh state, where the seventh state includes that the operating state of the main PON port is an open state, the standby PON port is a failure state, the protection group cannot perform main/standby switching, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
an eighth state, where the eighth state includes that the operation state of the standby PON port is an open state; the main PON port is in a fault state, the protection group cannot carry out main/standby switching, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a ninth state, where the operation states of the main PON port and the standby PON port are both in any one of the following states: fault state, off state.
10. The method of claim 9, wherein the state switchable from the first state comprises at least one of: a second state, a fifth state, a sixth state, a seventh state, an eighth state, and a ninth state; wherein:
the trigger condition satisfied by switching from the first state to the second state comprises: an optical signal loss event of the main PON port and/or an optical signal degradation event of the main PON port occur; wherein the content of the first and second substances,
the optical signal loss event of the main PON port is that the main PON port does not receive an uplink optical signal and an optical link connected to the main PON port fails, where the optical link failure includes a fiber break of a connected main optical fiber and/or a failure of an optical module of the main PON port;
the optical signal degradation event of the main PON port is that the main PON port receives an uplink optical signal abnormity so that the error rate of data received by the main PON port is too high;
the trigger condition satisfied by switching from the first state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the first state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the first state to the seventh state includes: a chip exception event of the standby PON port and/or a board exception event of the standby PON port occur, wherein,
the trigger condition satisfied by switching from the first state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the first state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
11. The method of claim 9, wherein the state switchable from the second state comprises at least one of: a first state, a sixth state, a fifth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the second state to the first state includes one of the following conditions:
an optical signal loss event of a standby PON port occurs, where the optical signal loss event of the standby PON port is that the standby PON port does not receive an uplink optical signal and an optical link connected to the standby PON port fails, and the optical link failure connected to the standby PON port includes that a connected trunk optical fiber is broken or an optical module of the standby PON port fails;
an optical signal degradation event of a standby PON port occurs, wherein the optical signal degradation event of the standby PON port is that the standby PON port receives an uplink optical signal abnormity so that the error rate of data received by the standby PON port is too high;
an optical signal recovery event of a main PON port occurs, wherein the optical signal recovery event of the main PON port is that an optical link connected with the main PON port is recovered to be normal;
acquiring a forced switching instruction triggered by user operation, wherein the forced switching instruction is an instruction for forced switching between the first state and the second state;
the trigger condition satisfied by switching from the second state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the second state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the second state to the eighth state includes: chip abnormal events of the main PON port and/or board card abnormal events of the main PON port occur;
the trigger condition satisfied by switching from the second state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the second state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
12. The method of claim 9, wherein the state switchable from the third state comprises at least one of: a first state, a fourth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the third state to the first state includes: an optical signal recovery event of the main PON port occurs;
the triggering condition satisfied by switching from the third state to the fourth state includes: a first timer timing overtime event occurs;
the trigger condition satisfied by switching from the third state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the third state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the third state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
13. The method of claim 9, wherein the state to which to switch from the fourth state comprises at least one of: a second state, a third state, a seventh state, an eighth state, and a ninth state; wherein:
the triggering condition satisfied by switching from the fourth state to the second state includes: an optical signal recovery event of the standby PON port occurs;
the triggering condition satisfied by switching from the fourth state to the third state includes: a first timer timing overtime event occurs;
the triggering condition satisfied by switching from the fourth state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the triggering condition satisfied by switching from the fourth state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the triggering condition satisfied by switching from the fourth state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
14. The method of claim 9, wherein the state to which to switch from the fifth state comprises at least one of: a first state and a fourth state; wherein:
the triggering condition satisfied by switching from the fifth state to the first state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link opening state;
the triggering condition satisfied by switching from the fifth state to the fourth state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link closing state or a link failure state.
15. The method of claim 9, wherein the state to which to switch from the sixth state comprises at least one of: a second state and a third state; wherein:
the trigger condition satisfied by switching from the sixth state to the second state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link opening state;
the trigger condition satisfied by switching from the sixth state to the third state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link closing state or a link failure state.
16. The method of claim 9, wherein the state switched to from the seventh state comprises at least one of: a first state, a third state, a ninth state; wherein:
the trigger condition satisfied by switching from the seventh state to the first state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the link state of the main PON port is a link open state, wherein,
the chip exception recovery event of the standby PON port is the operation of the chip of the standby PON port for recovering the response of a main control CPU;
the board card exception recovery event of the standby PON port is the operation of the board card of the standby PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the seventh state to the third state includes: at least one of a chip abnormal recovery event of the standby PON port and a board card abnormal recovery event of the standby PON port occurs, and the link state of the main PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the seventh state to the ninth state includes: and generating a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port.
17. The method of claim 9, wherein the state switched to from the eighth state comprises at least one of: a second state, a fourth state, a ninth state; wherein:
the trigger condition satisfied by switching from the eighth state to the second state includes: at least one of a chip abnormal recovery event of the main PON port and a board abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link open state, wherein,
the chip abnormity recovery event of the main PON port is the operation that the chip of the main PON port recovers to respond to the main control CPU;
the board card exception recovery event of the main PON port is the operation of the board card of the main PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the eighth state to the fourth state includes: at least one of a chip abnormal recovery event of the main PON port and a board card abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the eighth state to the ninth state includes: and generating a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port.
18. The method of claim 9, wherein the state to which to switch from the ninth state comprises at least one of: a third state, a seventh state, and an eighth state; wherein:
the trigger condition satisfied by the switch from the ninth state to the third state includes: acquiring an enabling command triggered by user operation, wherein link states of the main PON port and the standby PON port are link closing states;
the trigger condition satisfied by switching from the ninth state to the seventh state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the state of the protection group is an enabling state;
the trigger condition satisfied by switching from the ninth state to the eighth state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the state of the protection group is an enabled state.
19. The method according to claim 12 or 13, wherein when switching between a third state and the fourth state, the method further comprises:
and setting the first timeout duration when responding to a first setting command triggered by user operation.
20. The method of claim 11, wherein when the state of the state machine switches from the second state to the first state, the action to be performed comprises starting an auto-back-off timer and a state switch;
the executing the action to be executed to complete the state switching of the protection group includes:
when the protection group receives an optical signal recovery event of the main PON port, starting the automatic switching-back timer to time, and setting a second overtime length;
and when the timing duration of the automatic switching-back timer exceeds the second timeout duration, switching the protection group from the second state to the first state.
21. The method of claim 20, further comprising:
and setting the second timeout duration when responding to a second setting command triggered by user operation.
22. The method of claim 19, wherein prior to switching the protected group from the second state to the first state, the method further comprises:
determining that an automatic cut-back function that switches from the second state to the first state is in an enabled state.
23. An apparatus for implementing protection of a trunk optical fiber by an optical line terminal, wherein the optical line terminal at least includes a protection group, the apparatus comprising:
a current state determining module, configured to determine, for any protection group, a current state of a state machine of the protection group when a preset event for the protection group is received, where members of the protection group include a primary Passive Optical Network (PON) port and a standby PON port;
the to-be-executed action determining module is used for determining to-be-executed actions according to the current state of the state machine and the preset event;
and the state switching module is used for executing the action to be executed so as to complete the state switching of the protection group.
24. The apparatus of claim 23, further comprising:
a state machine establishing module, configured to establish a state machine of the protection group before the current state determining module determines the current operating state of the state machine of the protection group, where a trigger condition for switching between different states of the protection group and an execution action required by state switching are predefined in the state machine;
the to-be-executed action determining module is configured to:
based on the state machine, determining a target state meeting a trigger condition according to the current state and the preset event; the target state is one of the states to which the current state can be switched;
determining an action to be performed required to switch from the current state to the target state.
25. The apparatus of claim 23, wherein the protection group comprises one of the following management states: an enable state and a disable state, wherein,
the enabling state is a state in which a state machine of the protection group is enabled;
the disabled state is a state in which a state machine of the protected group is disabled.
26. The apparatus of claim 25, further comprising:
the enabling state setting module is used for setting the management state of the state machine to be an enabling state when responding to an enabling command triggered by user operation;
and the prohibition state setting module is used for setting the management state of the state machine to be a prohibition state when responding to a prohibition command triggered by user operation.
27. The apparatus of claim 24, wherein the state of the state machine comprises at least one of: the device comprises respective running states of the main PON port and the standby PON port, respective link states of the main PON port and the standby PON port, ONU registration indication information of an optical network unit, and indication information of whether the protection group can perform main/standby switching, wherein the ONU registration indication information is used for indicating the registration states of the ONU registration information on the main PON port and/or the standby PON port.
28. The apparatus of claim 27, wherein the operational state comprises an on state, a standby state, an off state, and a fault state, wherein:
the open state indicates that a chip of the PON port allows the ONU to register online, and the transmitting and receiving optical channels of the PON optical module are all in the open state so that the PON port has the light emitting capacity and the light receiving capacity;
the standby state indicates that a chip of a PON port prohibits the ONU from registering online, a light receiving channel of the PON optical module is opened and a light emitting channel is closed, so that the PON port does not have the capability of emitting light but has the capability of receiving light;
the closed state indicates that a light receiving channel and a light emitting channel of a PON optical module are both in a closed state, so that the PON port does not have the light receiving capacity and the light emitting capacity;
the fault state indicates that a chip of the PON port has a fault and/or a board card where the PON port is located has a fault.
29. The apparatus of claim 27, wherein the link state comprises a link open state, a link closed state, a link failure state, and wherein:
the link opening state indicates that a main optical fiber link connected with a PON port is normal;
the link closing state indicates that a main optical fiber link connected with the PON port is interrupted or no ONU is registered online under the PON port;
and the link fault state represents that the quality of an optical fiber link connected with the PON port is poor, so that the uplink error rate is out of limit.
30. The apparatus of claim 27, wherein the ONU registration indication information comprises one of: the ONU registration information on the main PON port needs to be synchronized to a standby PON port, the ONU registration information on the main PON port does not need to be synchronized to the standby PON port, the ONU registration information on the standby PON port needs to be synchronized to the main PON port, the ONU registration information on the standby PON port does not need to be synchronized to the main PON port, the main PON port and the standby PON port do not have the ONU registration information, the ONU can only be registered on the main PON port, and the ONU can only be registered on the standby PON port.
31. The apparatus of any of claims 24-30, wherein the state of the state machine comprises:
a first state, where the first state includes that an operation state of the main PON port is an open state, and a link state of the main PON port is a link open state; the operation state of the standby PON port is a standby state, the link state of the standby PON port is a link open state or a link close state, and the ONU registration information on the main PON port needs to be synchronized to the standby PON port;
a second state, where the second state includes that the operation state of the standby PON port is an open state, and a link state of the standby PON port is a link open state; the operation state of the main PON port is a standby state, the link state of the main PON port is a link open state or a link close state, and the ONU registration information on the standby PON port needs to be synchronized to the main PON port;
a third state, where the third state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fourth state, where the fourth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a standby state, link states of the main PON port and the standby PON port are both link-off states, and the main PON port and the standby PON port both have no ONU registration information;
a fifth state, where the fifth state includes that the operating state of the main PON port is an open state, the operating state of the standby PON port is a closed state, the ONU can only register on the main PON port, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
a sixth state, where the sixth state includes that the operation state of the standby PON port is an open state, the operation state of the main PON port is a closed state, the ONU can only register on the standby PON port, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a seventh state, where the seventh state includes that the operating state of the main PON port is an open state, the standby PON port is a failure state, the protection group cannot perform main/standby switching, and the ONU registration information on the main PON port does not need to be synchronized to the standby PON port;
an eighth state, where the eighth state includes that the operation state of the standby PON port is an open state; the main PON port is in a fault state, the protection group cannot carry out main/standby switching, and the ONU registration information on the standby PON port does not need to be synchronized to the main PON port;
a ninth state, where the operation states of the main PON port and the standby PON port are both in any one of the following states: fault state, off state.
32. The apparatus of claim 31, wherein the state switchable from the first state comprises at least one of: a second state, a fifth state, a sixth state, a seventh state, an eighth state, and a ninth state; wherein:
the trigger condition satisfied by switching from the first state to the second state comprises: an optical signal loss event of the main PON port and/or an optical signal degradation event of the main PON port occur; wherein the content of the first and second substances,
the optical signal loss event of the main PON port is that the main PON port does not receive an uplink optical signal and an optical link connected to the main PON port fails, where the optical link failure includes a fiber break of a connected main optical fiber and/or a failure of an optical module of the main PON port;
the optical signal degradation event of the main PON port is that the main PON port receives an uplink optical signal abnormity so that the error rate of data received by the main PON port is too high;
the trigger condition satisfied by switching from the first state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the first state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the first state to the seventh state includes: a chip exception event of the standby PON port and/or a board exception event of the standby PON port occur, wherein,
the trigger condition satisfied by switching from the first state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the first state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
33. The apparatus of claim 31, wherein the state switchable from the second state comprises at least one of: a first state, a sixth state, a fifth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the second state to the first state includes one of the following conditions:
an optical signal loss event of a standby PON port occurs, where the optical signal loss event of the standby PON port is that the standby PON port does not receive an uplink optical signal and an optical link connected to the standby PON port fails, and the optical link failure connected to the standby PON port includes that a connected trunk optical fiber is broken or an optical module of the standby PON port fails;
an optical signal degradation event of a standby PON port occurs, wherein the optical signal degradation event of the standby PON port is that the standby PON port receives an uplink optical signal abnormity so that the error rate of data received by the standby PON port is too high;
an optical signal recovery event of a main PON port occurs, wherein the optical signal recovery event of the main PON port is that an optical link connected with the main PON port is recovered to be normal;
acquiring a forced switching instruction triggered by user operation, wherein the forced switching instruction is an instruction for forced switching between the first state and the second state;
the trigger condition satisfied by switching from the second state to the sixth state includes: obtaining a second locking instruction which is triggered by user operation and used for locking to a sixth state;
the trigger condition satisfied by switching from the second state to the fifth state includes: obtaining a first locking instruction which is triggered by user operation and used for locking to the fifth state;
the trigger condition satisfied by switching from the second state to the eighth state includes: chip abnormal events of the main PON port and/or board card abnormal events of the main PON port occur;
the trigger condition satisfied by switching from the second state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the second state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
34. The apparatus of claim 31, wherein the state switchable from the third state comprises at least one of: a first state, a fourth state, an eighth state, a seventh state, and a ninth state; wherein:
the triggering condition satisfied by switching from the third state to the first state includes: an optical signal recovery event of the main PON port occurs;
the triggering condition satisfied by switching from the third state to the fourth state includes: a first timer timing overtime event occurs;
the trigger condition satisfied by switching from the third state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the trigger condition satisfied by switching from the third state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the trigger condition satisfied by switching from the third state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
35. The apparatus of claim 31, wherein the state to which to switch from the fourth state comprises at least one of: a second state, a third state, a seventh state, an eighth state, and a ninth state; wherein:
the triggering condition satisfied by switching from the fourth state to the second state includes: an optical signal recovery event of the standby PON port occurs;
the triggering condition satisfied by switching from the fourth state to the third state includes: a first timer timing overtime event occurs;
the triggering condition satisfied by switching from the fourth state to the seventh state includes: a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port occur;
the triggering condition satisfied by switching from the fourth state to the eighth state includes: a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port occur;
the triggering condition satisfied by switching from the fourth state to the ninth state includes: and obtaining a prohibition instruction triggered by user operation and used for setting the management state to the prohibition state.
36. The apparatus of claim 31, wherein the state to which to switch from the fifth state comprises at least one of: a first state and a fourth state; wherein:
the triggering condition satisfied by switching from the fifth state to the first state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link opening state;
the triggering condition satisfied by switching from the fifth state to the fourth state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the main PON port is a link closing state or a link failure state.
37. The apparatus of claim 31, wherein the state to which to switch from the sixth state comprises at least one of: a second state and a third state; wherein:
the trigger condition satisfied by switching from the sixth state to the second state includes: obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link opening state;
the trigger condition satisfied by switching from the sixth state to the third state includes: and obtaining an unlocking command triggered by user operation, wherein the link state of the standby PON port is a link closing state or a link failure state.
38. The apparatus of claim 31, wherein the state to which to switch from the seventh state comprises at least one of: a first state, a third state, a ninth state; wherein:
the trigger condition satisfied by switching from the seventh state to the first state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the link state of the main PON port is a link open state, wherein,
the chip exception recovery event of the standby PON port is the operation of the chip of the standby PON port for recovering the response of a main control CPU;
the board card exception recovery event of the standby PON port is the operation of the board card of the standby PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the seventh state to the third state includes: at least one of a chip abnormal recovery event of the standby PON port and a board card abnormal recovery event of the standby PON port occurs, and the link state of the main PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the seventh state to the ninth state includes: and generating a chip abnormal event of the main PON port and/or a board card abnormal event of the main PON port.
39. The apparatus of claim 31, wherein the state to which to switch from the eighth state comprises at least one of: a second state, a fourth state, a ninth state; wherein:
the trigger condition satisfied by switching from the eighth state to the second state includes: at least one of a chip abnormal recovery event of the main PON port and a board abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link open state, wherein,
the chip abnormity recovery event of the main PON port is the operation that the chip of the main PON port recovers to respond to the main control CPU;
the board card exception recovery event of the main PON port is the operation of the board card of the main PON port for recovering the response of a main control CPU;
the trigger condition satisfied by switching from the eighth state to the fourth state includes: at least one of a chip abnormal recovery event of the main PON port and a board card abnormal recovery event of the main PON port occurs, and the link state of the standby PON port is a link closing state or a link failure state;
the trigger condition satisfied by switching from the eighth state to the ninth state includes: and generating a chip abnormal event of the standby PON port and/or a board card abnormal event of the standby PON port.
40. The apparatus of claim 31, wherein the state to which to switch from the ninth state comprises at least one of: a third state, a seventh state, and an eighth state; wherein:
the trigger condition satisfied by the switch from the ninth state to the third state includes: acquiring an enabling command triggered by user operation, wherein link states of the main PON port and the standby PON port are link closing states;
the trigger condition satisfied by switching from the ninth state to the seventh state includes: at least one of a chip exception recovery event of the main PON port and a board card exception recovery event of the main PON port occurs, and the state of the protection group is an enabling state;
the trigger condition satisfied by switching from the ninth state to the eighth state includes: at least one of a chip exception recovery event of the standby PON port and a board exception recovery event of the standby PON port occurs, and the state of the protection group is an enabled state.
41. The apparatus of claim 34 or 35, wherein when switching between the third state and the fourth state, the apparatus further comprises:
and the first timeout setting module is used for setting the first timeout duration when responding to a first setting command triggered by user operation.
42. The apparatus of claim 33, wherein when the state of the state machine switches from the second state to the first state, the action to be performed comprises starting an auto-back-off timer and a state switch;
the to-be-executed action determining module is configured to:
when the protection group receives an optical signal recovery event of the main PON port, starting the automatic switching-back timer to time, and setting a second overtime length;
and when the timing duration of the automatic switching-back timer exceeds the second timeout duration, switching the protection group from the second state to the first state.
43. The apparatus of claim 42, further comprising:
and the second timeout setting module is used for setting the second timeout duration when responding to a second setting command triggered by user operation.
44. The apparatus of claim 41, wherein prior to switching the protected group from the second state to the first state, the apparatus further comprises:
and the determination enabling module is used for determining that the automatic switching-back function switched from the second state to the first state is in an enabled state.
45. An electronic device, comprising:
a processor;
a computer storage medium for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for implementing trunk fiber protection by the optical line terminal according to any one of claims 1 to 22.
46. A computer storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are configured to perform the method for implementing backbone fiber protection for an optical line terminal according to any of claims 1-22.
CN201911377973.6A 2019-12-27 2019-12-27 Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal Active CN111093125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911377973.6A CN111093125B (en) 2019-12-27 2019-12-27 Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911377973.6A CN111093125B (en) 2019-12-27 2019-12-27 Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal

Publications (2)

Publication Number Publication Date
CN111093125A true CN111093125A (en) 2020-05-01
CN111093125B CN111093125B (en) 2021-11-02

Family

ID=70397452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911377973.6A Active CN111093125B (en) 2019-12-27 2019-12-27 Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal

Country Status (1)

Country Link
CN (1) CN111093125B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117156326A (en) * 2023-10-26 2023-12-01 武汉长光科技有限公司 Protection switching method and device and OLT equipment
WO2024001774A1 (en) * 2022-06-30 2024-01-04 中兴通讯股份有限公司 Trunk optical path protection method and system, electronic device and computer readable medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020097465A1 (en) * 2001-01-22 2002-07-25 Kosuke Nobuyasu Optical network, subscriber side optical transmission apparatus, and office side optical transmission apparatus
CN1805398A (en) * 2005-01-13 2006-07-19 华为技术有限公司 Optical transmission network protection method
CN102355414A (en) * 2011-09-21 2012-02-15 中兴通讯股份有限公司 Processing method and device of APS (automatic protection switching) state machine
US20160234582A1 (en) * 2015-02-10 2016-08-11 Daniel Ronald Method and system for redundancy in a passive optical network
CN106878060A (en) * 2017-01-12 2017-06-20 烽火通信科技股份有限公司 The active and standby synchronization system and method for a kind of multi-service integrated access device
CN108462904A (en) * 2017-11-22 2018-08-28 上海欣诺通信技术股份有限公司 Hardware based protection group reverse method and optical communication equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020097465A1 (en) * 2001-01-22 2002-07-25 Kosuke Nobuyasu Optical network, subscriber side optical transmission apparatus, and office side optical transmission apparatus
CN1805398A (en) * 2005-01-13 2006-07-19 华为技术有限公司 Optical transmission network protection method
CN102355414A (en) * 2011-09-21 2012-02-15 中兴通讯股份有限公司 Processing method and device of APS (automatic protection switching) state machine
US20160234582A1 (en) * 2015-02-10 2016-08-11 Daniel Ronald Method and system for redundancy in a passive optical network
CN106878060A (en) * 2017-01-12 2017-06-20 烽火通信科技股份有限公司 The active and standby synchronization system and method for a kind of multi-service integrated access device
CN108462904A (en) * 2017-11-22 2018-08-28 上海欣诺通信技术股份有限公司 Hardware based protection group reverse method and optical communication equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024001774A1 (en) * 2022-06-30 2024-01-04 中兴通讯股份有限公司 Trunk optical path protection method and system, electronic device and computer readable medium
CN117156326A (en) * 2023-10-26 2023-12-01 武汉长光科技有限公司 Protection switching method and device and OLT equipment
CN117156326B (en) * 2023-10-26 2024-01-12 武汉长光科技有限公司 Protection switching method and device and OLT equipment

Also Published As

Publication number Publication date
CN111093125B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN111093125B (en) Method, device and storage medium for realizing trunk optical fiber protection of optical line terminal
CN101159504B (en) Synchronous digital hierarchy based ethernet protecting method
CN101388794B (en) Method and system for positioning network management system exception affair
CN104717115A (en) Multipath fiber channel over ethernet networks
US9059899B2 (en) Method and system for interrupt throttling and prevention of frequent toggling of protection groups in a communication network
CN103139018A (en) Network card condition monitoring and transmission control protocol (TCP) communication method in dispatching and transformer substation integrated system
CN104065921A (en) Security and protection wide area network embedded type monitoring device and control method thereof
CN108712308B (en) Method and device for detecting network equipment in virtual network
CN105210043A (en) Information processing device
WO2015154588A1 (en) Serial port information transmission method, single board device and common single board
CN111131280A (en) Internal and external network isolation system
CN109617716B (en) Data center exception handling method and device
CN107005440B (en) method, device and system for positioning link fault
CN107943622A (en) Spare O&M methods, devices and systems
CN105094899A (en) Distributed-type intelligent apparatus sub-module program automatic configuration method
CN204517494U (en) Chain type electrical network spare power automatic switching system
CN104735047A (en) Intelligent mixed mode network physical link emergency switching system
Ra et al. Implementation of FPGA‐based MPLS‐TP linear protection switching for 4000+ tunnels in packet transport network for optical carrier Ethernet
CN100499500C (en) Method for realizing management for multistage communication device
CN103684719A (en) Network dual-redundancy hot swap method independent of platforms
CN114448852A (en) Gateway terminal testing method, device and storage medium
CN109428752B (en) Verification method and device
CN111064593A (en) Network topology redundant communication system and network topology redundant communication method
CN115642707B (en) Distributed feeder network power distribution terminal logic unification method and power distribution terminal system
CN206790504U (en) The automatic equipment for finding cross-node service topology on a kind of transoceanic multiplex section looped network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant