Patent Description:
PON technology is an important technology for an optical fiber access network, and is a mainstream technology for implementing fiber to the x (FTTx). A typical PON system generally includes a central office end device (such as an Optical Line Terminal (OLT)), a customer end device (such as an ONU), and an Optical Distribution Network (ODN).

PONs are mainly classified into Gigabit Passive Optical networks (GPONs), Ethernet Passive Optical Networks (EPONs), <NUM> Gigabit Passive Optical networks (<NUM>-PONs), and the like in terms of standard. In order to improve robustness and reliability of service provided by the PON, an optical link protection technology may be introduced. The existing optical link protection technology for the PON mainly includes Type A, Type B, Type C, Type D, hand-in-hand protection and the like. These techniques are mainly directed towards an optical link protection between an ONU PON port and an OLT PON port. When a problem occurs in an optical link between the ONU PON port and the OLT PON port, a service cannot be normally acquired.

<CIT> discloses a method and apparatus for protecting hybrid-networking service.

<CIT> discloses a backup system for Ethernet.

<CIT> discloses a passive optical network protection method, master-standby switch control device and system.

An embodiment of the present disclosure provides a method for protecting service of an optical network unit (ONU), the method includes:
providing an uplink Passive Optical Network link, called an uplink PON link, and a redundant uplink Ethernet link for the ONU; detecting a quality of a signal transmitted by the uplink PON link of the ONU; detecting a link status of the redundant uplink Ethernet link in response to that the quality of the signal transmitted by the uplink PON link is determined to be lower than a preset quality threshold or in response to that the uplink PON link is detected to be interrupted;switching a service bearing channel of the uplink PON link to the redundant uplink Ethernet link in response to that the link status of the redundant uplink Ethernet link is determined to be connected; and wherein the redundant uplink Ethernet link is connected from the ONU to a service server, the uplink PON link is connected from the ONU to an Optical Line Terminal, called OLT, and the service server and the OLT are separated from each other.

An embodiment of the present disclosure further provides a method for protecting service of an optical network unit (ONU), the method includes: providing an uplink Ethernet link and a redundant uplink Passive Optical Network link, called a redundant uplink PON link, for the ONU; detecting a quality of a signal transmitted by the uplink Ethernet link of the ONU; detecting a link status of the redundant uplink PON link in response to that the quality of the signal transmitted by the uplink Ethernet link is determined to be lower than a preset quality threshold or in response to that the uplink Ethernet link is detected to be interrupted; switching a service bearing channel of the uplink Ethernet link to the redundant uplink PON link in response to that the link status of the redundant uplink PON link is determined to be connected; and wherein the uplink Ethernet link is connected from the ONU to a service server, the redundant uplink PON link is connected from the ONU to an Optical Line Terminal, called OLT, and the service server and the OLT are separated from each other.

An embodiment of the present disclosure further provides a device for protecting service of an optical network unit (ONU), the device includes: a configuration unit configured to provide the ONU with an uplink Passive Optical Network link, called an uplink PON link, and a redundant uplink Ethernet link; a first detection unit configured to detect a quality of a signal transmitted by the uplink PON link of the ONU; a first determination unit configured to trigger a second detection unit in response to the quality of the signal transmitted by the uplink PON link is determined to be lower than a preset quality threshold, or trigger the second detection unit in response to that the uplink PON link is detected to be interrupted; the second detection unit configured to detect a link status of the redundant uplink Ethernet link; a second determination unit configured to determine whether the link status of the redundant uplink Ethernet link is connected, and trigger a first switching unit in response to that the link status of the redundant uplink Ethernet link is determined to be connected; and the first switching unit configured to switch a service bearing channel of the uplink PON link to the redundant uplink Ethernet link; and wherein the redundant uplink Ethernet link is connected from the ONU to a service server, the uplink PON link is connected from the ONU to an Optical Line Terminal, called OLT, and the service server and the OLT are separated from each other.

An embodiment of the present disclosure further provides a device for protecting service of an optical network unit (ONU), the device includes: a configuration unit configured to provide the ONU with an uplink Ethernet link and a redundant uplink Passive Optical Network link, called a redundant uplink PON link; a first detection unit configured to detect a quality of a signal transmitted by the uplink Ethernet link of the ONU; a first determination unit configured to trigger a second detection unit in response to that the quality of the signal transmitted by the uplink Ethernet link is determined to be lower than a preset quality threshold, or trigger the second detection unit in response to that the uplink Ethernet link is detected to be interrupted; the second detection unit configured to detect a link status of the redundant uplink PON link; a second determination unit configured to determine whether the link status of the redundant uplink PON link is connected, and trigger a first switching unit in response to that the link status of the redundant uplink PON link is determined to be connected; and the first switching unit configured to switch a service bearing channel of the uplink Ethernet link to the redundant uplink PON link; and wherein the uplink Ethernet link is connected from the ONU to a service server, the redundant uplink PON link is connected from the ONU to an Optical Line Terminal, called OLT, and the service server and the OLT are separated from each other.

An embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, the computer program, when executed by a processor, cause the processor to implement the method for protecting service of the optical network unit in the embodiments of the present disclosure.

In order to explain features of the present disclosure in more detail, embodiments of the present disclosure are explained in detail below with reference to the accompanying drawings, which are for reference and not intended to limit the present disclosure.

<FIG> shows a topological diagram of a connection relationship of an existing optical network unit. As shown in <FIG>, a conventional Optical Network Unit (ONU) <NUM> is provided with only a PON port <NUM>, the ONU <NUM> is connected to an Optical Distribution Network (ODN) <NUM> through the PON port <NUM>, the ODN <NUM> is connected to a PON port <NUM> of an Optical Line Terminal (OLT) <NUM>, and the ONU <NUM> acquires service only through an uplink PON link (a link from the PON port <NUM> of the ONU <NUM> to the PON port <NUM> of the OLT <NUM>).

<FIG> shows a topological diagram of a connection relationship of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the ONU <NUM> of the present embodiment is provided with a PON port <NUM> and an Ethernet (ETH) port <NUM>. The ONU <NUM> is connected to an Optical Distribution Network (ODN) <NUM> through the PON port <NUM>, the ODN <NUM> is connected to a PON port <NUM> of the OLT <NUM>, and the ODN <NUM> provides an optical channel between the OLT <NUM> and the ONU <NUM>. In addition, the ONU <NUM> is further connected to a service server <NUM> through the ETH port <NUM>.

The ONU <NUM> may be configured to acquire service from the OLT <NUM> via the PON port <NUM>, i.e., an uplink PON link between the PON port <NUM> of the ONU <NUM> and the PON port <NUM> of the OLT <NUM> may be used as a service bearing channel. An uplink Ethernet link is between the ETH port <NUM> of the ONU <NUM> and the service server <NUM>, and may be used as a redundant link for the uplink PON link. The ONU <NUM> may be set to temporarily not acquire service from the service server <NUM> through the ETH port <NUM>.

The ONU <NUM> may further be configured to acquire service from the service server <NUM> via the ETH port <NUM>, i.e., the uplink Ethernet link between the ETH port <NUM> of the ONU <NUM> and the service server <NUM> may be used as a service bearing channel. The uplink PON link between the PON port <NUM> of the ONU <NUM> and the PON port <NUM> of the OLT <NUM> may be used as a redundant link for the uplink Ethernet link. The ONU <NUM> may be configured to temporarily not acquire service from the OLT <NUM> through the PON port <NUM>.

The following describes a specific process of the method for protecting service of the optical network unit according to the embodiment of the present disclosure with reference to a topology of connection relationship of the optical network unit.

<FIG> is a schematic flowchart of a method for protecting service of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the method for protecting service of the optical network unit includes the following steps <NUM> to <NUM>.

At step <NUM>, an uplink Passive Optical Network (PON) link and a redundant uplink Ethernet link are configured for an Optical Network Unit (ONU).

As shown in <FIG>, the uplink Ethernet link between the ETH port <NUM> of the ONU <NUM> and the service server <NUM> is used as a redundant link for the uplink PON link between the PON port <NUM> of the ONU <NUM> and the PON port <NUM> of the OLT <NUM>, and the ONU <NUM> is configured to temporarily not acquire service from the service server <NUM> through the ETH port <NUM>.

At step <NUM>, a quality of a signal transmitted by the uplink PON link of the ONU is detected.

That is, after the connection relationship of the ONU <NUM> shown in <FIG> is configured, a detection for the quality of the signal transmitted by the uplink PON link is started.

At step <NUM>, in response to that the quality of the signal transmitted by the uplink PON link is determined to be lower than a preset quality threshold or in response to that the uplink PON link is detected to be interrupted, a link status of the redundant uplink Ethernet link is detected.

In the embodiment, the quality of the signal transmitted by the uplink PON link being lower than the preset quality threshold may specifically include that a bit error rate of the uplink PON link is higher than a set value or a loss-of-frame (LOF) alarm is detected. The bit error rate being higher than the set value may be indicated by an alarm generated due to a bit error rate higher than <NUM>-<NUM>.

In the embodiment, the step of detecting an interruption of the uplink PON link may specifically include detecting a loss-of-signal (LOS) alarm.

At step <NUM>, a service bearing channel of the uplink PON link is switched to the uplink Ethernet link in response to that the link status of the uplink Ethernet link is determined to satisfy a preset condition.

When detecting that the uplink Ethernet link is connected, i.e., the ONU <NUM> is able to connect to the service server <NUM> via the uplink Ethernet link, the service bearing channel of the uplink PON link is switched to the uplink Ethernet link, and at this time, the ONU <NUM> no longer acquires service via the PON port <NUM>, but instead acquires service via the ETH port <NUM>.

At step <NUM>, a link status of the uplink PON link is detected.

For example, after a preset time duration τo elapsing from a time at which the service bearing channel of the uplink PON link is switched to the uplink Ethernet link, the link status of the uplink PON link may be detected.

At step <NUM>, the service bearing channel of the uplink Ethernet link is switched to the uplink PON link in response to the link status of the uplink PON link is determined to satisfy a preset condition.

When detecting that the uplink PON link is connected and the alarm indicating the bit error rate higher than <NUM>-<NUM> disappears, the service bearing channel of the uplink Ethernet link is switched to the uplink PON link, and the ONU <NUM> stops acquiring the service through the ETH port <NUM> and resumes acquiring the service through the PON port <NUM>.

In the embodiment, the uplink Ethernet link is newly added to the ONU <NUM>, and when it is detected that the uplink PON link of the ONU <NUM> has a problem and a service cannot be normally acquired from the uplink PON link, for example, when the quality of the signal transmitted by the uplink PON link is poor or when the uplink PON link is interrupted, if the redundant uplink Ethernet link satisfies a preset condition (e.g., transmission condition), the service bearing channel is switched to the uplink Ethernet link, and then when the uplink PON link reaches the preset condition again, the service bearing channel is switched back to the uplink PON link. Thus, the problem that the service cannot be normally acquired when the uplink PON link of the ONU <NUM> has a problem is solved.

At step <NUM>, an uplink Ethernet link and a redundant uplink Passive Optical Network (PON) link are provided for an Optical Network Unit (ONU).

As shown in <FIG>, the uplink PON link between the PON port <NUM> of the ONU <NUM> and the PON port <NUM> of the OLT <NUM> is used as a redundant link for the uplink Ethernet link between the ETH port <NUM> of the ONU <NUM> and the service server <NUM>, and the ONU <NUM> is configured to temporarily not acquire service from the OLT <NUM> through the PON port <NUM>.

At step <NUM>, a quality of a signal transmitted by the uplink Ethernet link of the ONU is detected.

That is, after a connection relationship of the ONU <NUM> shown in <FIG> is configured, a detection for the quality of the signal transmitted by the uplink Ethernet link is started.

At step <NUM>, in response to that the quality of the signal transmitted by the uplink Ethernet link is determined to be lower than a preset quality threshold value or in response to that the uplink Ethernet link is detected to be interrupted, a link status of the redundant uplink PON link is detected.

In the embodiment, the quality of the signal transmitted by the uplink Ethernet link being lower than the preset quality threshold may specifically include that a bit error rate of the uplink Ethernet link is higher than a set value or a loss-of-frame (LOF) alarm is detected. The bit error rate being higher than the set value may be indicated by an alarm generated due to a bit error rate higher than <NUM>-<NUM>.

In the embodiment, the step of detecting an interruption of the uplink Ethernet link may specifically include detecting a loss-of-signal (LOS) alarm.

At step <NUM>, a service bearing channel of the uplink Ethernet link is switched to the uplink PON link in response to that the link status of the uplink PON link is determined to satisfy a preset condition.

When detecting that the uplink PON link is connected, i.e., the ONU <NUM> is able to connect to the PON port <NUM> of the OLT <NUM> via the uplink PON link, the service bearing channel of the uplink Ethernet link is switched to the uplink PON link, and at this time, the ONU <NUM> no longer acquires service via the ETH port <NUM>, but instead acquires service via the PON port <NUM>.

At step <NUM>, a link status of the uplink Ethernet link is detected.

For example, after a preset time duration τo elapsing from a time at which the service bearing channel of the uplink Ethernet link is switched to the uplink PON link, the link status of the uplink PON link may be detected.

When detecting that the uplink Ethernet link is connected and the alarm indicating the bit error rate higher than <NUM>-<NUM> disappears, the service bearing channel of the uplink PON link is switched to the uplink Ethernet link, and the ONU <NUM> stops acquiring the service through the PON port <NUM> and resumes acquiring the service through the ETH port <NUM>.

In the embodiment, the uplink Ethernet link is newly added to the ONU <NUM>, and when it is detected that the uplink Ethernet link of the ONU <NUM> has a problem and a service cannot be normally acquired from the uplink Ethernet link, for example, when the quality of the signal transmitted by the uplink Ethernet link is poor or the uplink Ethernet link is interrupted, if the redundant uplink PON link satisfies a preset condition (transmission condition), the service bearing channel is switched to the uplink PON link, and then when the uplink Ethernet link reaches the preset condition again, the service bearing channel is switched back to the uplink Ethernet link. Therefore, the problem that the service cannot be normally acquired when the uplink Ethernet link of the ONU <NUM> has a problem is solved.

The method for protecting service of the ONU according to the embodiment of the present disclosure is further described below with reference to a case that the ONU <NUM> accesses different PON/Ethernet networks in practical application.

<FIG> is a topological diagram of a connection relationship of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the ONU <NUM> of the present embodiment is provided with an Ethernet Passive Optical Network (EPON) port <NUM> and a Gigabit Ethernet (GE) port <NUM>. The ONU <NUM> is connected to an Optical Distribution Network (ODN) <NUM> via the EPON port <NUM>, the ODN <NUM> is connected to an EPON port <NUM> of an Optical Line Terminal (OLT) <NUM>, and the ODN <NUM> provides an optical channel between the OLT <NUM> and the ONU <NUM>. In addition, the ONU <NUM> is further connected to a service server <NUM> through the GE port <NUM>.

The ONU <NUM> may be configured to acquire service from the OLT <NUM> via the EPON port <NUM>, i.e., an uplink EPON link between the EPON port <NUM> of the ONU <NUM> and the EPON port <NUM> of the OLT <NUM> may serve as a service bearing channel. An uplink GE link between the GE port <NUM> of the ONU <NUM> and the service server <NUM> may be used as a redundant link for the uplink EPON link. The ONU <NUM> may be set to temporarily not acquire service from the service server <NUM> through the GE port <NUM>.

The method for protecting service of the optical network unit provided by the embodiment of the present disclosure is described in detail below with reference to a topology of connection relationship of the optical network unit.

<FIG> is a schematic flowchart of a method for protecting service of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the method for protecting service of the optical network unit in the embodiment includes the following steps S701 to S706.

At step S701, an uplink EPON link and a redundant uplink GE link are provided for an Optical Network Unit (ONU).

As shown in <FIG>, the uplink GE link between the GE port <NUM> of the ONU <NUM> and the service server <NUM> is used as a redundant link for the uplink EPON link between the EPON port <NUM> of the ONU <NUM> and the EPON port <NUM> of the OLT <NUM>, and the ONU <NUM> is configured to temporarily not acquire service from the service server <NUM> via the GE port <NUM>.

At step S702, a quality of a signal transmitted by the uplink EPON link (i.e., from the ONU <NUM> to the OLT <NUM>) of the ONU <NUM> is detected.

That is, after the connection relationship of the ONU <NUM> shown in <FIG> is configured, a detection of the quality of the signal transmitted by the uplink EPON link is started.

At step S703, a link status of the redundant uplink GE link (i.e., from the GE port <NUM> to the service server <NUM>) is detected in response to that an alarm generated due to a bit error rate higher than <NUM>-<NUM>, a loss-of-frame (LOF) alarm, or a loss-of-signal (LOS) alarm is detected for the uplink EPON link.

At step S704, in response to that the uplink GE link is detected to be connected, i.e., the ONU <NUM> is able to connect to the service server <NUM> via the uplink GE link, a service bearing channel of the uplink EPON link is switched to the uplink GE link, and the ONU <NUM> no longer acquires service via the EPON port <NUM>, but instead acquires service via the GE port <NUM>.

At step S705, after a preset time duration τo elapsing from a time at which the service bearing channel of the uplink PON link is switched to the uplink Ethernet link, a link status of the uplink PON link is detected.

At step S706, in response to that the uplink EPON link is detected to be connected and the alarm indicating the bit error rate higher than <NUM>-<NUM> disappears, a service bearing channel of the uplink GE link is switched to the uplink EPON link, the ONU <NUM> stops acquiring the service through the GE port <NUM> and resumes acquiring the service through the EPON port <NUM>.

In the embodiment, the uplink GE link is newly added to the ONU <NUM>, and when it is detected that the uplink EPON link of the ONU <NUM> has a problem and a service cannot be normally acquired from the uplink EPON link, for example, when the quality of the signal transmitted by the uplink EPON link is poor or the uplink EPON link is interrupted, if the redundant uplink GE link satisfies a preset condition (transmission condition), the service bearing channel is switched to the uplink GE link, and then when the uplink EPON link reaches the preset condition again, the service bearing channel is switched back to the uplink EPON link. Thus, the problem that the service cannot be normally acquired when the uplink EPON link of the ONU <NUM> has a problem is solved.

<FIG> is a topological diagram of a connection relationship of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the ONU <NUM> of the present embodiment is provided with a Gigabit Passive Optical Network (GPON) port <NUM> and a <NUM> Ethernet (<NUM> GE) port <NUM>. The ONU <NUM> is connected to an Optical Distribution Network (ODN) <NUM> via the GPON port <NUM>, the ODN <NUM> is connected to a GPON port <NUM> of an Optical Line Terminal (OLT) <NUM>, and the ODN <NUM> provides an optical channel between the OLT <NUM> and the ONU <NUM>. In addition, the ONU <NUM> is further connected to a service server <NUM> through the 10GE port <NUM>.

The ONU10 may be configured to acquire service from the service server <NUM> via the 10GE port <NUM>, i.e., an uplink 10GE link between the 10GE port <NUM> of the ONU10 to the service server <NUM> may be used as a service bearing channel. An uplink GPON link between the GPON port <NUM> of the ONU10 and the GPON port <NUM> of the OLT <NUM> may serve as a redundant link for the uplink 10GE link. The ONU10 may be set to temporarily not acquire service from the OLT <NUM> through the GPON port <NUM>.

<FIG> shows a schematic flowchart of a method for protecting service of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the method for protecting service of the optical network unit in the embodiment includes the following steps S801 to S806.

At step S801, an uplink 10GE link and a redundant uplink GPON link are provided for an Optical Network Unit (ONU).

As shown in <FIG>, the uplink GPON link between the GPON port <NUM> of the ONU <NUM> and the GPON port <NUM> of the OLT <NUM> is used as a redundant link for the uplink 10GE link between the 10GE port <NUM> of the ONU <NUM> to the service server <NUM>, and the ONU <NUM> is set to temporarily not acquire service from the OLT <NUM> through the GPON port <NUM>.

At step S802, a quality of a signal transmitted by the uplink 10GE link (i.e., from the 10GE port <NUM> to the service server <NUM>) of the ONU <NUM> is detected.

That is, after the connection relationship of the ONU <NUM> shown in <FIG> is configured, a detection for the quality of the signal transmitted by the uplink 10GE link is started.

At step S803, a link status of the redundant uplink GPON link (i.e., from the GPON port <NUM> of the ONU <NUM> to the GPON port <NUM> of the OLT <NUM>) is detected in response to that an alarm generated due to a bit error rate higher than <NUM>-<NUM>, a loss-of-frame (LOF) alarm, or a loss-of-signal (LOS) alarm is detected for the uplink 10GE link.

At step S804, in response to that the uplink GPON link is detected to be connected, i.e., the ONU <NUM> is able to connect to the OLT <NUM> via the uplink GPON link, a service bearing channel of the uplink 10GE link is switched to the uplink GPON link, and the ONU <NUM> no longer acquires service via the 10GE port <NUM>, but instead acquires traffic via the GPON port <NUM>.

At step S805, after a preset time duration τo elapsing from a time at which the service bearing channel of the uplink 10GE link is switched to the uplink GPON link, a link status of the uplink 10GE link is detected.

At step S806, in response to that the uplink 10GE link is detected to be connected and the alarm indicating the bit error rate higher than <NUM>-<NUM> disappears, a service bearing channel of the uplink GPON link is switched to the uplink 10GE link, the ONU <NUM> stops acquiring the service through the GPON port <NUM>, and resumes acquiring the service through the 10GE port <NUM>.

In the embodiment, the uplink 10GE link is newly added to the ONU, and when it is detected that the uplink 10GE link of the ONU <NUM> has a problem and a service cannot be normally obtained from the uplink 10GE link, for example, when the quality of the signal transmitted by the uplink 10GE link is poor or the uplink 10GE link is interrupted, if the redundant uplink GPON link satisfies a preset condition (transmission condition), the service bearing channel is switched to the uplink GPON link, and then when the uplink 10GE link reaches the preset condition again, the service bearing channel is switched back to the uplink 10GE link. Thus, the problem that the service cannot be normally acquired when the uplink 10GE link of the ONU <NUM> has a problem is solved.

Although embodiments of the present disclosure are described with examples where the PON is GPON or EPON, and the Ethernet is GE or 10GE, it should be understood that the present disclosure is not limited thereto. For example, the PON may be a <NUM>-PON, and the Ethernet may be a Fast Ethernet (FE).

<FIG> is a schematic structural diagram of a device for protecting service of an optical network unit according to an embodiment of the present disclosure. As shown in <FIG>, the device for protecting service of the optical network unit in the embodiment includes: a configuration unit <NUM> configured to provide an Optical Network Unit (ONU) with an uplink Passive Optical Network (PON) link and a redundant uplink Ethernet link; a first detection unit <NUM> configured to detect a quality of a signal transmitted by the uplink PON link of the ONU; a first determination unit <NUM> configured to trigger a second detection unit <NUM> in response to that the quality of the signal transmitted by the uplink PON link is determined to be lower than a preset quality threshold; the second detection unit <NUM> configured to detect a link status of the redundant uplink Ethernet link; a second determination unit <NUM> configured to determine whether the link status of the uplink Ethernet link satisfies a preset condition, and trigger a first switching unit <NUM> in response to that the link status of the uplink Ethernet link is determined to satisfy the preset condition; and the first switching unit <NUM> configured to switch a service bearing channel of the uplink PON link to the uplink Ethernet link.

In the embodiment, the device for protecting service of the optical network unit may further include a third detection unit <NUM>, a third determination unit <NUM>, and a second switching unit <NUM>. The third detection unit <NUM> is configured to detect a link status of the uplink PON link after switching the service bearing channel of the uplink PON link to the uplink Ethernet link. The third determination unit <NUM> is configured to determine whether the link status of the uplink PON link satisfies a preset condition, and trigger the second switching unit <NUM> in response to that the link status of the uplink PON link is determined to satisfy the preset condition. The second switching unit <NUM> is configured to switch a service bearing channel of the uplink Ethernet link to the uplink PON link.

In the embodiment, the quality of the signal transmitted by the uplink PON link being lower than the preset quality threshold includes: a bit error rate of the uplink PON link is higher than a set value or a loss-of-frame (LOF) alarm is detected.

In the embodiment, the uplink Ethernet link is newly added to the ONU, and when it is detected that the quality of the signal transmitted by the uplink PON link of the ONU is lower than the preset quality threshold, if the redundant uplink Ethernet link satisfies the preset condition (transmission condition), the service bearing channel is switched to the uplink Ethernet link, and then when the uplink PON link reaches the preset condition again, the service bearing channel is switched back to the uplink PON link. Thus, normal acquisition of service of the ONU is protected.

It should be understood by those skilled in the art that functions implemented by each unit in the device for protecting service of the optical network unit shown in <FIG> can be understood by referring to the related description of the foregoing method for protecting service of the optical network unit. The functions of each unit in the device for protecting service of the optical network unit shown in <FIG> may be implemented by a program running on a processor, or may be implemented by a specific logic circuit.

An embodiment of the present disclosure further provides a device for protecting an optical network unit, as shown in <FIG>, the device for protecting service of the optical network unit in the embodiment includes: a configuration unit <NUM> configured to provide an Optical Network Unit (ONU) with an uplink Passive Optical Network (PON) link and a redundant uplink Ethernet link; a first detection unit <NUM> configured to detect a quality of a signal transmitted by the uplink PON link of the ONU; a first determination unit <NUM> configured to determine whether the uplink PON link is interrupted, and trigger a second detection unit <NUM> in response to that the uplink PON link is detected to be interrupted; the second detection unit <NUM> configured to detect a link status of the redundant uplink Ethernet link; a second determination unit <NUM> configured to determine whether the link status of the uplink Ethernet link satisfies a preset condition, and trigger a first switching unit <NUM> in response to that the link status of the uplink Ethernet link is determined to satisfy the preset condition; and the first switching unit <NUM> configured to switch a service bearing channel of the uplink PON link to the uplink Ethernet link.

In the embodiment, determining that the uplink PON link is interrupted includes: a loss-of-signal (LOS) alarm is detected.

In the embodiment, the uplink Ethernet link is newly added to the ONU, and when it is detected that the uplink PON link of the ONU is interrupted and a service cannot be normally acquired from the uplink PON link, if the redundant uplink Ethernet link satisfies a preset condition (transmission condition), the service bearing channel is switched to the uplink Ethernet link, and then when the uplink PON link reaches the preset condition again, the service bearing channel is switched back to the uplink PON link. Thus, normal acquisition of service of the ONU is protected.

An embodiment of the present disclosure further provides a device for protecting service of an optical network unit, as shown in <FIG>, the device for protecting service of the optical network unit in the embodiment includes: a configuration unit <NUM> configured to provide an Optical Network Unit (ONU) with an uplink Ethernet link and a redundant uplink Passive Optical Network (PON) link; a first detection unit <NUM> configured to detect a quality of a signal transmitted by the uplink Ethernet link of the ONU; a first determination unit <NUM> configured to trigger a second detection unit <NUM> in response to that the quality of the signal transmitted by the uplink Ethernet link is determined to be lower than a preset quality threshold; the second detection unit <NUM> configured to detect a link status of the redundant uplink PON link; a second determination unit <NUM> configured to determine whether the link status of the uplink PON link satisfies a preset condition, and trigger a first switching unit <NUM> in response to that the link status of the uplink PON link is determined to satisfy the preset condition; and the first switching unit <NUM> configured to switch a service bearing channel of the uplink Ethernet link to the uplink PON link.

In the embodiment, the device for protecting service of the optical network unit may further include a third detection unit <NUM>, a third determination unit <NUM>, and a second switching unit <NUM>. The third detection unit <NUM> is configured to detect a link status of the uplink Ethernet link after switching the service bearing channel of the uplink Ethernet link to the uplink PON link. The third determination unit <NUM> is configured to determine whether the link status of the uplink Ethernet link satisfies a preset condition, and trigger the second switching unit <NUM> in response to that the link status of the uplink Ethernet link is determined to satisfy the preset condition. The second switching unit <NUM> is configured to switch a service bearing channel of the uplink PON link to the uplink Ethernet link.

In the embodiment, the quality of the signal transmitted by the uplink Ethernet link being lower than the preset quality threshold includes: a bit error rate of the uplink Ethernet link is higher than a set value or a loss-of-frame (LOF) alarm is detected.

In the embodiment, the uplink Ethernet link is newly added to the ONU, and when it is detected that the quality of the signal transmitted by the uplink Ethernet link of the ONU is lower than the preset quality threshold, if the redundant uplink PON link satisfies the preset condition (transmission condition), the service bearing channel is switched to the uplink PON link, and then when the uplink Ethernet link reaches the preset condition again, the service bearing channel is switched back to the uplink Ethernet link. Thus, normal acquisition of service of the ONU is protected.

An embodiment of the present disclosure further provides a device for protecting service of an optical network unit, as shown in <FIG>, the device for protecting service of the optical network unit in the embodiment includes: a configuration unit <NUM> configured to provide an Optical Network Unit (ONU) with an uplink Ethernet link and a redundant uplink Passive Optical Network (PON) link; a first detection unit <NUM> configured to detect a quality of a signal transmitted by the uplink Ethernet link of the ONU; a first determination unit <NUM> configured to determine whether the uplink Ethernet link is interrupted, and trigger a second detection unit <NUM> in response to that the uplink Ethernet link is detected to be interrupted; the second detection unit <NUM> configured to detect a link status of the redundant uplink PON link; a second determination unit <NUM> configured to determine whether the link status of the uplink PON link satisfies a preset condition, and trigger a first switching unit <NUM> in response to that the link status of the uplink PON link is determined to satisfy the preset condition; and the first switching unit <NUM> configured to switch a service bearing channel of the uplink Ethernet link to the uplink PON link.

In the embodiment, determining that the uplink Ethernet link is interrupted includes: a loss-of-signal (LOS) alarm is detected.

In the embodiment, the uplink Ethernet link is newly added to the ONU, and when it is detected that the uplink Ethernet link of the ONU is interrupted and a service cannot be normally acquired from the uplink Ethernet link, if the redundant uplink PON link satisfies the preset condition (transmission condition), the service bearing channel is switched to the uplink PON link, and then when the uplink Ethernet link reaches the preset condition again, the service bearing channel is switched back to the uplink Ethernet link. Thus, normal acquisition of service of the ONU is protected.

In practical applications, the functions implemented by the foregoing device for protecting service of the optical network unit may be implemented by a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA) located in the device for protecting service of the optical network unit.

The device for protecting service of the optical network unit in the embodiment of the present disclosure may also be stored in a computer-readable storage medium if it is implemented in the form of a software function module and sold or used as an independent product. Based on such understanding, technical solutions of embodiments of the present disclosure or portions thereof that contribute to the prior art may be embodied in the form of a software product, which may be stored in a storage medium and include several executable instructions to enable a computer device (e.g., a personal computer, a server, or a network device, etc.) to execute all or a part of the method for protecting service of the optical network unit in the embodiments of the present disclosure. The storage medium may include a USB disk, a removable hard disk, a read only memory (ROM), a magnetic disk, an optical disk, or other storage media capable of storing program codes. Thus, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.

Accordingly, an embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, the computer program, when executed by a processor, cause the processor to implement the method for protecting service of the optical network unit in the embodiments of the present disclosure.

Claim 1:
A method for protecting service of an optical network unit, called an ONU, the method comprises:
providing (<NUM>) an uplink Passive Optical Network link, called an uplink PON link, and a redundant uplink Ethernet link for the ONU;
detecting (<NUM>) a quality of a signal transmitted by the uplink PON link of the ONU;
detecting (<NUM>) a link status of the redundant uplink Ethernet link in response to that the quality of the signal transmitted by the uplink PON link is determined to be lower than a preset quality threshold or in response to that the uplink PON link is detected to be interrupted;
switching (<NUM>) a service bearing channel of the uplink PON link to the redundant uplink Ethernet link in response to that the link status of the redundant uplink Ethernet link is determined to be connected; and
wherein the redundant uplink Ethernet link is connected from the ONU to a service server, the uplink PON link is connected from the ONU to an Optical Line Terminal, called OLT, and the service server and the OLT are separated from each other.