Uplink anomaly detection method and device, optical line terminal and medium

By comparing the received uplink bursts in the PON network time and matching the ID, and turning on FEC encoding when necessary, the problem that OLT cannot accurately detect uplink bursts is solved, and the accuracy of fault detection and network is improved stability.

CN119172670APending Publication Date: 2024-12-20NEW H3C TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411360736.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the existing PON network, OLT cannot accurately detect whether the received uplink burst is correct, resulting in the failure detection and alarm results that are not accurate enough.

Method used

By receiving the uplink burst of ONU at the optical circuit terminal, comparing its reception time with the preset reception time, matching the ONU ID in the uplink burst with the specified ONU ID, and turning on the FEC encoding function when the matching fails to correct the error and correcting the preliminary correction The result of the alarm judgment is obtained.

Benefits of technology

Improve the accuracy of fault detection, can determine whether the uplink burst of ONU is received within the preset reception time, and detect whether the received uplink burst is correct, reduce false alarms and missed reports, and improve the efficiency of troubleshooting .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172670A_ABST
    Figure CN119172670A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an uplink anomaly detection method and device, an optical line terminal and a medium, and relates to the technical field of communication, the method comprises the following steps: receiving an uplink burst of an ONU, the uplink burst carrying an ONU ID; comparing the uplink burst receiving time with preset receiving time to obtain a preliminary alarm judgment result; the ONU ID in the uplink burst is matched with a specified ONU ID to obtain a matching result, and the specified ONU ID is the ONU ID which should be carried in the uplink burst received by the optical line terminal within a preset receiving time; if the matching result is successful, taking the preliminary alarm judgment result as a final alarm judgment result; and if the matching result is that the matching fails, determining that the uplink burst of the ONU cannot be correctly received, and correcting the preliminary alarm judgment result to obtain a final alarm judgment result. The accuracy of fault detection and alarm results can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an uplink anomaly detection method, device, optical line terminal and medium. Background Art

[0002] Passive Optical Network (PON) technology is a point-to-multipoint passive optical network technology. PON is usually composed of an optical line terminal (OLT), an optical distribution network (ODN) and an optical network unit (ONU).

[0003] In PON, the data sent by OLT to ONU is called downstream data, and the data sent by ONU to OLT is called upstream data. The sending of upstream data is controlled by OLT. OLT sends bandwidth authorization to ONU through downstream data. After receiving the bandwidth authorization, ONU controls the switching of laser and the sending of data according to local time, so as to send upstream data to OLT according to the authorization time specified by OLT. Each ONU in the PON network sends upstream data by time division multiplexing. The upstream data sent by ONU is also called upstream data burst or upstream burst.

[0004] Due to various factors such as temperature changes, fiber bending, ONU failure, etc., various types of errors may occur in the OLT's reception of upstream bursts, resulting in the OLT being unable to correctly receive the upstream bursts of one or more ONUs. In order to troubleshoot, the current OLT has fault detection and alarm functions. For example, if the OLT cannot normally receive the upstream burst of an ONU within the upstream transmission time slot assigned to an ONU, an alarm of the loss of the ONU's upstream burst is triggered; if the OLT cannot receive any ONU's upstream burst within a period of time, an alarm of the OLT losing the upstream signal is triggered.

[0005] However, current fault detection can only detect whether an uplink burst can be received, but cannot detect whether the received uplink burst is correct, resulting in inaccurate fault detection and alarm results. Summary of the invention

[0006] The purpose of the embodiments of the present application is to provide an uplink abnormality detection method, device, optical line terminal and medium to solve the problem that the fault detection and alarm results are not accurate enough. The specific technical solution is as follows:

[0007] In a first aspect, an embodiment of the present application provides an uplink anomaly detection method, which is applied to an optical line terminal, and the method includes:

[0008] Receive an uplink burst from the ONU, where the uplink burst carries the ONU ID;

[0009] Comparing the time of receiving the uplink burst with the preset receiving time to obtain a preliminary alarm determination result;

[0010] Matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, wherein the specified ONUID is the ONU ID that should be carried in the upstream burst received by the optical line terminal within the preset receiving time;

[0011] If the matching result is a successful match, the preliminary alarm determination result is used as the final alarm determination result;

[0012] If the matching result is a matching failure, it is determined that the uplink burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected to obtain a final alarm determination result.

[0013] In a possible implementation, after matching the ONU ID in the upstream burst with the designated ONN ID to obtain a matching result, the method further includes:

[0014] If the matching result is a matching failure, and the forward error correction (FEC) encoding function for the ONU is in a disabled state, the FEC encoding function for the ONU is enabled.

[0015] In a possible implementation manner, before matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, the method further includes:

[0016] Descrambling the uplink burst using a preset superframe counter SFC value to obtain a descrambled uplink burst;

[0017] If the FEC encoding function for the ONU is in an on state, FEC encoding is performed on the descrambled uplink burst to obtain a corrected uplink burst;

[0018] The step of matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result includes:

[0019] The ONU ID in the corrected upstream burst is matched with the specified ONU ID to obtain a matching result.

[0020] In a possible implementation manner, before receiving the uplink burst of the ONU, the method further includes:

[0021] Sending uplink bandwidth allocation information to the ONU, the uplink bandwidth allocation information including the preset SFC value, the ID of the ONU, the preset receiving time, and whether the FEC encoding function is in an enabled state;

[0022] The preset SFC value, the preset receiving time, and whether the FEC encoding function is in an on state are recorded, and the ID of the ONU is recorded as the designated ONU ID.

[0023] In a possible implementation, after taking the preliminary alarm determination result as the final alarm determination result if the matching result is a successful match, the method further includes:

[0024] If the pre-configured alarm switch is in the on state, then when the final alarm determination result is that a preset fault exists, the final alarm determination result is reported according to the pre-configured alarm reporting frequency;

[0025] If the matching result is a matching failure, it is determined that the uplink burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected to obtain a final alarm determination result, the method further includes:

[0026] If the pre-configured alarm switch is in the on state, then when the final alarm determination result is that a preset fault exists, the final alarm determination result is reported according to the pre-configured alarm reporting frequency.

[0027] In a possible implementation manner, after matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, the method further includes:

[0028] If the matching result is a matching failure, an alarm determination result of an ONU ID mismatch is generated;

[0029] If the pre-configured alarm switch is in the on state, the alarm determination result of the ONU ID mismatch is reported according to the pre-configured alarm reporting frequency.

[0030] In a second aspect, an embodiment of the present application provides an uplink anomaly detection device, which is applied to an optical line terminal, and the device includes:

[0031] A physical frame de-framing module, used for receiving an uplink burst from the ONU, wherein the uplink burst carries an ONU ID;

[0032] An alarm determination module, used for comparing the time when the physical frame deframing module receives the uplink burst with a preset receiving time to obtain a preliminary alarm determination result;

[0033] An ONU ID checking module is used to match the ONU ID in the upstream burst with a specified ONU ID to obtain a matching result, and feed back the matching result to the alarm determination module, wherein the specified ONU ID is the ONU ID that should be carried in the upstream burst received by the optical line terminal within the preset receiving time;

[0034] The alarm determination module is also used to, if the matching result is a successful match, use the preliminary alarm determination result as the final alarm determination result; if the matching result is a failed match, determine that the uplink burst of the ONU cannot be correctly received, and correct the preliminary alarm determination result to obtain the final alarm determination result.

[0035] In a possible implementation manner, the device further includes:

[0036] The bandwidth allocation module is used to enable the forward error correction FEC encoding function for the ONU if the matching result is a matching failure and the forward error correction FEC encoding function for the ONU is in a closed state.

[0037] In a possible implementation manner, the device further includes:

[0038] An uplink descrambling module, configured to descramble the uplink burst using a preset superframe counter SFC value to obtain a descrambled uplink burst;

[0039] An FEC corrector, for performing FEC encoding on the descrambled uplink burst to obtain a corrected uplink burst if the FEC encoding function for the ONU is in an enabled state;

[0040] The ONU ID checking module is specifically used to match the ONU ID in the upstream burst after code correction with the specified ONU ID to obtain a matching result.

[0041] In a possible implementation manner, the device further includes:

[0042] A bandwidth allocation module, configured to send uplink bandwidth allocation information to the ONU, wherein the uplink bandwidth allocation information includes the preset SFC value, the ID of the ONU, the preset receiving time, and whether the FEC encoding function is in an enabled state;

[0043] The alarm determination module is further used to record the preset SFC value, the preset receiving time, and whether the FEC encoding function is in an on state, and record the ID of the ONU as the designated ONU ID.

[0044] In a possible implementation manner, the device further includes:

[0045] The alarm reporting module is used to report the final alarm determination result according to the pre-configured alarm reporting frequency if the pre-configured alarm switch is in the on state and if the final alarm determination result is that a preset fault exists.

[0046] In a possible implementation, the device further includes: an alarm reporting module;

[0047] The alarm determination module is further used to generate an alarm determination result of ONU ID mismatch if the matching result is a matching failure;

[0048] The alarm reporting module is used to report the alarm determination result of the ONU ID mismatch according to the pre-configured alarm reporting frequency if the pre-configured alarm switch is in the on state.

[0049] In a third aspect, an embodiment of the present application provides an optical line terminal, wherein the optical line terminal includes a hardware chip, and the hardware chip includes the device described in the second aspect above.

[0050] In a fourth aspect, an embodiment of the present application provides an optical line terminal, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0051] Memory, used to store computer programs;

[0052] The processor is used to implement the method described in the first aspect when executing the program stored in the memory.

[0053] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0054] In a sixth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.

[0055] By adopting the above technical solution, after the hardware chip of the OLT receives the upstream burst of the ONU, it can compare the time of receiving the upstream burst with the preset receiving time to obtain a preliminary alarm determination result. In addition, the ONU ID in the upstream burst can be matched with the specified ONU ID to obtain a matching result. If the matching result is a matching failure, it is determined that the upstream burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected based on this to obtain a final alarm determination result. In this way, the OLT can not only determine whether the upstream burst of the ONU is received within the preset receiving time, but also detect whether the received upstream burst is correct, so that the fault detection result is more accurate.

[0056] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0058] Figure 1 A schematic diagram of a method for sending downlink data in a PON network provided in an embodiment of the present application;

[0059] Figure 2 A schematic diagram of a method for sending uplink data in a PON network provided in an embodiment of the present application;

[0060] Figure 3 A flowchart of an uplink anomaly detection method provided in an embodiment of the present application;

[0061] Figure 4 A schematic diagram of a method for uplink anomaly detection provided in an embodiment of the present application;

[0062] Figure 5 A schematic diagram of the structure of an uplink anomaly detection device provided in an embodiment of the present application;

[0063] Figure 6 A schematic diagram of the structure of another uplink anomaly detection device provided in an embodiment of the present application;

[0064] Figure 7 A schematic diagram of the structure of an OLT provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0066] To facilitate understanding, the relevant technical terms involved in the embodiments of the present application are first explained.

[0067] PON: It is a point-to-multipoint passive optical network, usually composed of OLT, ODN and ONU. There is no active equipment between OLT and ONU. PON technology generally has the advantages of high security, low comprehensive network construction cost, resistance to electromagnetic interference and lightning interference, low maintenance cost and strong system reliability.

[0068] OLT: It is the central office equipment in PON. Each OLT can connect multiple ONUs.

[0069] ONU: It is the user terminal equipment in PON.

[0070] ODN: It is the optical distribution network in PON, also known as splitter.

[0071] Currently, the two mainstream PON technologies include Ethernet Passive Optical Network (EPON) and Gigabit Passive Optical Network (GPON). With the update and iteration of technology, based on EPON and GPON, 10G EPON, 10-Gigabit-Capable Symmetric Passive Optical Network (XGS-PON) and other PON technologies with larger bandwidth and stronger performance have also evolved.

[0072] In PON, downstream data is sent in the form of broadcast, such as Figure 1 As shown, Figure 1 An OLT, an ODN and three ONUs are shown in the figure. The OLT can send downstream data streams to the three ONUs through the ODN. Each ONU can receive the same downstream data stream, and then the ONU filters out the downstream data sent by the OLT from the downstream data stream through a specific field in the downstream data stream.

[0073] The transmission of uplink data is controlled by OLT, such as Figure 2 As shown, Figure 2 The network architecture and Figure 1Similarly, the OLT first sends bandwidth authorization to each ONU through downstream data. After receiving the bandwidth authorization, the ONU controls the switching of the laser and the transmission of data according to the local time, so as to send upstream data to the OLT according to the authorized time in the bandwidth authorization. Each ONU sends upstream data in a time division multiplexing manner. In the subsequent embodiments, the upstream data sent by the ONU is called an upstream burst.

[0074] Taking the XGS-PON network as an example, after the OLT receives an upstream burst from an ONU, it will compare the time when the upstream burst arrives at the OLT interface (i.e., the time when the upstream burst is received) with the time authorized for the ONU, obtain the time offset, and send the time offset to the ONU, so that the ONU adjusts the local clock so that the subsequent upstream bursts of the ONU can accurately arrive at the OLT interface according to the authorized time.

[0075] Each time the OLT receives an uplink burst, it detects the delimiter field in the uplink burst, and can align the start bit of the uplink burst according to the delimiter field. Due to the frequent channel noise interference in the network, individual bit errors will inevitably occur in the uplink burst. In order to ensure the stable operation of the system, the OLT can perform fuzzy matching when detecting the delimiter field in the uplink burst, that is, if a small number of bit errors occur in the delimiter in the uplink burst, it is still considered that the uplink burst can be received correctly. In addition, when performing fuzzy matching, the delimiter field is only detected once for each uplink burst. If the delimiter field matches successfully, the delimiter field will not be matched for subsequent bits in the uplink burst to avoid matching errors caused by re-matching.

[0076] Due to various factors such as temperature changes, fiber bending, ONU failures, etc., the upstream bursts received by the OLT will be affected by a variety of errors, resulting in the OLT being unable to correctly receive the upstream bursts sent by one or more ONUs. In this case, the fault detection and alarm functions of the OLT provide a basis for troubleshooting. These functions are used as the basis for maintenance and testing to support the stable operation of the network system.

[0077] Currently, OLT can detect and alarm the following four types of faults. The following explains these four types of faults respectively:

[0078] 1. Loss of burst for ONUi (LOBi) fault alarm.

[0079] Wherein, i is the number of the ONU, and ONUi is the i-th ONU in the PON network.

[0080] The LOBi fault alarm is used to indicate the burst data loss of ONUi, that is, the OLT cannot correctly receive the upstream burst of ONUi within the upstream transmission time allocated to ONUi.

[0081] The judgment condition of LOBi fault alarm is: OLT fails to locate the upstream burst sent by ONUi for four consecutive times. The cancellation condition of LOBi fault alarm is: OLT successfully receives the upstream burst sent by ONUi.

[0082] When a LOBi fault alarm is detected, the OLT may wait for a period of time, or change the bandwidth allocation plan for the ONUi, or deactivate or disable the ONUi, or perform a rogue ONU detection operation and the like.

[0083] 2. Loss of Signal (LOS) fault alarm.

[0084] The LOS fault alarm is used to indicate that the OLT has lost the upstream signal, that is, the OLT cannot correctly receive the upstream burst of any ONU for a period of time.

[0085] The judgment condition of LOS fault alarm is: OLT fails to receive the scheduled upstream burst for four consecutive times. The cancellation condition of LOS fault alarm is: OLT receives any upstream burst.

[0086] When a LOS fault is detected, the OLT may perform an additional diagnostic operation. If it is determined that the OLT does have a LOS fault, protection switching may be performed.

[0087] 3. Transmission interference warning for ONUi (TIWi).

[0088] TIWi is used to indicate that the upstream burst sent by ONUi may interfere with the upstream burst sent by the ONU in the adjacent upstream transmission time slot, that is, compared with the upstream transmission time slot allocated to ONUi, the time when ONUi actually sends the upstream burst is too early or too late.

[0089] The judgment condition of TIWi is: the drift of the upstream burst sent by ONUi exceeds the TIW threshold, and after the OLT instructs ONUi to correct the local clock through the Ranging_Time message for three consecutive times, the drift of the upstream burst sent by ONUi still exceeds the TIW threshold. Among them, the drift of the upstream burst sent by ONUi refers to the difference between the time when the upstream burst sent by ONUi arrives at the OLT and the sending time allocated for the ONUi.

[0090] The cancellation condition of TIWi is: the drift of the upstream burst sent by ONUi does not exceed the window drift (Drift of Window, DOW) threshold.

[0091] After the OLT detects a TIWi fault, it may deactivate or disable the ONUi, or perform a rogue ONU diagnostic operation or the like.

[0092] 4. Disable failure of ONUi (DFi) fault alarm.

[0093] The DFi fault alarm is used to indicate that the deactivation of ONUi fails, that is, the deactivated ONUi still responds to the bandwidth allocation of the OLT.

[0094] The judgment condition of the DFi fault alarm is: the OLT deactivates ONUi through one or more Disable_Serial_Number (deactivation serial number) messages carrying the ONU serial number, but ONUi still continuously responds to the upstream bandwidth allocation.

[0095] The cancellation conditions of the DFi fault alarm are: ONUi is successfully reactivated, or ONUi is blocked from sending upstream bursts.

[0096] When the OLT detects a DFi failure, the OLT may execute a rogue ONU diagnostic procedure to prevent the reallocation of the problematic ONU ID and the related Alloc ID (allocation identifier).

[0097] In order to improve the accuracy of fault detection and alarm results, the embodiment of the present application provides an uplink abnormality detection method for OLT, such as Figure 3 As shown, the method includes:

[0098] S301. Receive an uplink burst from an ONU, where the uplink burst carries an ONU ID.

[0099] S302: Compare the time of receiving the uplink burst with the preset receiving time to obtain a preliminary alarm determination result.

[0100] Among them, the preliminary alarm determination result is the determination result of the four faults introduced in the above embodiment. The determination method may comply with the relevant PON protocol regulations, and the embodiment of the present application does not limit this.

[0101] S303: Match the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result.

[0102] The designated ONU ID is the ONUID that should be carried in the upstream burst received by the OLT within the preset receiving time, that is, the ID of the ONU that should send the upstream burst at the preset receiving time specified in advance by the OLT.

[0103] S304: If the matching result is successful, the preliminary alarm determination result is used as the final alarm determination result.

[0104] If the matching result is a successful match, it means that the received uplink burst is correct, so there is no need to change the preliminary alarm determination result.

[0105] S305: If the matching result is a matching failure, it is determined that the uplink burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected to obtain a final alarm determination result.

[0106] If the matching result is a match failure, there may be a situation where the time when the OLT receives the upstream burst matches the preset receiving time, but the ONU ID included in the upstream burst is not the designated ONU ID. In this case, it means that the ONU indicated by the designated ONU ID did not correctly send the upstream burst according to the preset receiving time, so the OLT can be regarded as not receiving the upstream burst. However, since the time when the OLT receives the upstream burst matches the preset receiving time, the preliminary alarm determination result is obtained based on the OLT's ability to correctly receive the upstream burst, so it is necessary to correct the preliminary alarm determination result based on the fact that the OLT cannot correctly receive the upstream burst.

[0107] For example, if the preliminary alarm judgment result is that the uplink burst of the ONU is received within the preset receiving time, and the uplink burst of the ONU has not been correctly received for three consecutive times before that, then the preliminary alarm judgment result is corrected to that the uplink burst of the ONU has not been correctly received for four consecutive times, and there is a LOBi fault.

[0108] For another example, if the preliminary alarm determination result is that the OLT has not received the uplink burst of the ONU within the preset time, and has not received the scheduled uplink burst for three consecutive times before that, then the preliminary alarm result is corrected to that the scheduled uplink data burst has not been received for four consecutive times, and a LOS fault exists.

[0109] By adopting this method, after receiving the upstream burst of the ONU, the hardware chip of the OLT can compare the time of receiving the upstream burst with the preset receiving time to obtain a preliminary alarm determination result. In addition, the ONU ID in the upstream burst can be matched with the specified ONU ID to obtain a matching result. If the matching result is a matching failure, it is determined that the upstream burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected based on this to obtain a final alarm determination result. In this way, the OLT can not only determine whether the upstream burst of the ONU is received within the preset receiving time, but also detect whether the received upstream burst is correct, so that the fault detection result is more accurate.

[0110] It is understandable that in the LOBi and LOS fault detection in the related art, only whether an upstream burst is received within the preset receiving time is detected. However, if the upstream bursts of two or more ONUs interfere with each other, or the OLT receiving light intensity is close to the upper and lower thresholds causing bit errors in the upstream burst, or the optical fiber is excessively bent causing the system channel noise to be too large, the upstream burst may be able to reach the OLT at the preset receiving time, but the ONU ID in the upstream burst is erroneous due to the bit error. Therefore, according to the method of the related art, only determining whether the upstream burst can be received within the preset receiving time is insufficient to prove whether the upstream operation of the ONU is normal. The embodiment of the present application can more accurately determine whether the upstream operation of the ONU is normal by detecting whether the ONU ID in the upstream burst meets expectations, so that after triggering the relevant alarm, it can promptly check whether there is interference between upstream bursts in the PON network, whether there is excessive channel noise, and whether there is long light emission of the ONU and other problems that interfere with the upstream burst, so as to discover the problem as early as possible, take countermeasures as early as possible, and shorten the time to solve the problem. Similarly, adding ONU ID judgment to TIWi fault detection and DFi fault detection is also conducive to early detection of problems and accurate identification of the causes of the problems.

[0111] Furthermore, in the embodiment of the present application, the above-mentioned abnormality detection method can be executed by the hardware chip of the OLT, and there is no need to report the uplink burst to the CPU for abnormality detection, which can improve the detection efficiency.

[0112] Optionally, in some embodiments of the present application, after obtaining the final alarm determination result, the method further includes: if the pre-configured alarm switch is in the on state, then when the final alarm determination result is that there is a preset fault, reporting the final alarm determination result according to the pre-configured alarm reporting frequency.

[0113] The preset fault is a fault specified in a PON-related protocol, such as the LOBi, LOS, TIWi and DFi faults in the above embodiment.

[0114] The alarm switch and alarm reporting frequency in the embodiment of the present application can be pre-configured. In scenarios such as trunk fiber interruption and long-lighting of ONU, alarms such as LOS, LOBi, and TIWi may be generated continuously, and frequent reporting of alarm information may cause excessive CPU load, and even cause the alarm information collection interface to hang directly. In order to reasonably distribute the CPU load in the embodiment of the present application, the alarm switch and alarm reporting frequency can be flexibly configured, and the frequency of alarm reporting can be actively managed and limited, thereby avoiding excessive CPU load.

[0115] In some embodiments of the present application, before the above S301, receiving the uplink burst of the ONU, the method further includes:

[0116] Sending upstream bandwidth allocation information to the ONU, the upstream bandwidth allocation information including a preset superframe counter (SFC) value, the ID of the ONU, a preset receiving time, and whether a (Forward Error Correction, FEC) encoding function is in an enabled state; recording the preset SFC value and the preset receiving time and whether the FEC encoding function is in an enabled state, and recording the ID of the ONU as a designated ID.

[0117] It can be understood that when the OLT sends the upstream bandwidth allocation information to the ONU, the hardware chip of the OLT can obtain and record the preset SFC value, the ONU ID, the preset receiving time and whether the FEC encoding function is in the enabled state from the upstream bandwidth information, so that the upstream burst sent by the ONU can be detected based on this information later, which can improve the accuracy of fault detection.

[0118] In some possible scenarios, the OLT may not enable the upstream FEC encoding for the ONU. In this case, in the above S303, the ONU ID in the upstream burst is matched with the specified ONU ID, and after the matching result is obtained, if the matching result is a matching failure, and the FEC encoding function for the ONU is in a closed state, the FEC encoding function for the ONU can be turned on. In this way, the upstream burst of the ONU can be FEC encoded later, which can reduce the possibility that the upstream burst cannot be correctly received due to poor optical signal quality, and improve the stability of the PON network. And when the upstream burst is detected later, the upstream burst will be FEC encoded first, and then the ONU ID in the upstream burst after code correction will be matched with the specified ONUID, which can verify whether the channel noise causes the error in the upstream burst, and can shorten the time to find the channel noise problem.

[0119] In some embodiments of the present application, before the above S303, matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, the method further includes:

[0120] The uplink burst is descrambled using the preset superframe counter SFC value to obtain a descrambled uplink burst; if the FEC encoding function for the ONU is in an on state, the descrambled uplink burst is FEC encoded to obtain a corrected uplink burst.

[0121] Accordingly, the above S303, matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, can be specifically implemented as: matching the ONU ID in the upstream burst after coding with the specified ONU ID to obtain a matching result.

[0122] It can be understood that by performing FEC encoding on the descrambled uplink burst, the bit errors in the uplink burst can be corrected, which is equivalent to solving the bit errors caused by noise problems and shortening the time to solve the channel noise problem. And matching the ONU ID in the corrected uplink burst with the specified ONU ID can make the matching result more accurate, thereby improving the accuracy of the subsequent final alarm determination result.

[0123] As an optional implementation mode, if the above-mentioned matching result is a matching failure, an alarm determination result of ONU ID mismatch is generated, and if the pre-configured alarm switch is in an on state, the alarm determination result of ONU ID mismatch is reported according to the pre-configured alarm reporting frequency. In other words, the protocol can be modified so that ONU ID mismatch is reported as a kind of alarm information. At present, if the ONU ID mismatch caused by bit error triggers the hybrid error control (HEC) error report of the framing sublayer (FramingSublayer, FS) frame header, if it is because the ONU error fills the wrong ONU ID in the upstream burst, then the error is basically not detected when calculating HEC, so the embodiment of the present application matches the ONU ID in the upstream burst with the specified ONU ID, and corrects the preliminary alarm determination result or generates the alarm determination result of ONU ID mismatch based on the matching result, so that the ONU ID error problem can be found earlier, and the problem can be tried to be solved by turning on the FEC encoding function.

[0124] The following combination Figure 4 The uplink anomaly detection method of the embodiment of the present application is introduced as follows: Figure 4As shown, the hardware chip of the OLT includes a bandwidth allocation module, an alarm determination module, an alarm reporting module, an uplink descrambling module, an FEC corrector and an ONU ID checking module.

[0125] When the OLT sends the upstream bandwidth allocation information to the ONU, the bandwidth allocation module obtains the preset SFC value, the designated ONU ID, the preset receiving time, and whether the FEC encoding function is in the enabled state in the bandwidth allocation information, and sends this information as the upstream burst information that may be received later to the alarm determination module, and then the alarm determination module stores this information. Among them, the preset SFC value is the SFC value corresponding to the upstream burst of the ONU, the designated ONU ID is the ONU ID that should be carried in the upstream burst of the ONU, the preset receiving time is the time when the upstream burst of the ONU should be received, and whether the FEC encoding function is in the enabled state refers to whether the FEC encoding function for the upstream burst of the ONU has been enabled.

[0126] When the OLT receives an uplink burst, it will transfer the uplink burst to the alarm determination module in real time. The alarm determination module records the time when the uplink burst is received, and compares the time when the uplink burst should be received to obtain a preliminary alarm determination result. Optionally, the alarm determination module can also compare other information that may be used, such as comparing the time drift with the TIW threshold and the DOW threshold to determine whether there is a TIWi fault.

[0127] Furthermore, the alarm determination module may transparently transmit the uplink burst to the uplink descrambling module, and send the preset SFC value, the designated ONU ID, and whether the FEC encoding function is in the on state to the uplink descrambling module.

[0128] After receiving the uplink burst, the uplink descrambling module descrambles the uplink burst using the preset SFC value, and sends the descrambled uplink burst, the specified ONU ID, and whether the FEC encoding function is turned on to the FEC decoder.

[0129] After receiving the upstream burst, if the FEC decoder determines that the FEC decoding function is in the enabled state, it corrects the bit errors in the upstream burst and sends the corrected upstream burst and the specified ONU ID to the ONU ID check module; if it determines that the FEC decoding function is not in the enabled state, it directly sends the upstream burst and the specified ONU ID to the ONU ID check module.

[0130] After receiving the upstream burst, the ONU ID check module compares the ONU ID in the upstream burst with the specified ONU ID to see if they are consistent. If they are consistent, it is determined that the match is successful; if they are inconsistent, it is determined that the match fails. The ONU ID check module can send the ONU ID matching result to the alarm determination module and the bandwidth allocation module respectively.

[0131] After receiving the matching result, the bandwidth allocation module can determine whether to automatically turn on the FEC encoding for the ONU according to the configuration. For example, if the bandwidth allocation module can be pre-configured to automatically turn on the FEC encoding for the ONU if the matching result is a match failure, and then update the subsequent upstream burst information, when the downstream bandwidth information is subsequently sent to the ONU, the FEC encoding function is set to the on state.

[0132] After the alarm determination module receives the matching result, if it is determined that the matching result is a matching failure, it is deemed that the uplink burst is not received at the preset receiving time, and then the preliminary alarm determination result is corrected according to the determination conditions of the four types of preset faults introduced in the above embodiment to obtain the final alarm determination result. If the final alarm determination result is that there is a preset fault, the alarm determination result is output to the alarm reporting module.

[0133] The alarm reporting module can report alarm information, that is, the final alarm determination result, based on the pre-set alarm switch and alarm reporting frequency. The alarm switch and alarm reporting frequency can be flexibly configured.

[0134] Corresponding to the above method embodiment, the embodiment of the present application further provides an uplink abnormality detection device, which is applied to OLT, and can be specifically applied to the hardware chip of OLT, such as Figure 5 As shown, the device comprises:

[0135] The physical frame de-framing module 501 is used to receive the uplink burst of the ONU, and the uplink burst carries the ONU ID;

[0136] The alarm determination module 502 is used to compare the time when the physical frame de-framing module receives the uplink burst with the preset receiving time to obtain a preliminary alarm determination result;

[0137] An ONU ID checking module 503 is used to match the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, and feed back the matching result to the alarm determination module, wherein the specified ONU ID is the ONU ID that should be carried in the upstream burst received by the optical line terminal within the preset receiving time;

[0138] The alarm determination module 502 is also used to, if the matching result is a successful match, use the preliminary alarm determination result as the final alarm determination result; if the matching result is a failed match, determine that the uplink burst of the ONU cannot be correctly received, and correct the preliminary alarm determination result to obtain the final alarm determination result.

[0139] Alternatively, if Figure 6 As shown, the device also includes:

[0140] The bandwidth allocation module 504 is used to enable the forward error correction FEC encoding function for the ONU if the matching result is a matching failure and the forward error correction FEC encoding function for the ONU is in a disabled state.

[0141] Alternatively, if Figure 6 As shown, the device also includes:

[0142] An uplink descrambling module 505 is used to descramble the uplink burst using a preset superframe counter SFC value to obtain a descrambled uplink burst;

[0143] An FEC corrector 506, configured to perform FEC encoding on the descrambled uplink burst to obtain a corrected uplink burst if the FEC encoding function for the ONU is in an enabled state;

[0144] The ONU ID checking module 503 is specifically used to match the ONU ID in the corrected upstream burst with the specified ONU ID to obtain a matching result.

[0145] Alternatively, if Figure 6 As shown, the device also includes:

[0146] The bandwidth allocation module 504 is used to send uplink bandwidth allocation information to the ONU, where the uplink bandwidth allocation information includes a preset SFC value, an ID of the ONU, a preset receiving time, and whether the FEC encoding function is enabled;

[0147] The alarm determination module 502 is further used to record the preset SFC value and the preset receiving time and whether the FEC encoding function is in an on state, and record the ONU ID as the designated ONU ID.

[0148] Alternatively, if Figure 6 As shown, the device also includes:

[0149] The alarm reporting module 507 is used to report the final alarm determination result according to the pre-configured alarm reporting frequency if the pre-configured alarm switch is in the on state and the final alarm determination result is that a preset fault exists.

[0150] Optionally, the device further includes: an alarm reporting module 507;

[0151] The alarm determination module 502 is further used to generate an alarm determination result of ONU ID mismatch if the matching result is a matching failure;

[0152] The alarm reporting module 507 is used to report the alarm determination result of ONU ID mismatch according to the pre-configured alarm reporting frequency if the pre-configured alarm switch is in the on state.

[0153] The embodiment of the present application further provides an OLT, the OLT comprising a hardware chip, the hardware chip comprising Figure 6 The device shown.

[0154] The present application embodiment also provides an OLT, such as Figure 7 As shown, it includes a processor 701 , a communication interface 702 , a memory 703 and a communication bus 704 , wherein the processor 701 , the communication interface 702 , and the memory 703 communicate with each other via the communication bus 704 .

[0155] Memory 703, used for storing computer programs;

[0156] The processor 701 is used to implement the method steps in the above method embodiment when executing the program stored in the memory 703.

[0157] The communication bus mentioned in the above OLT can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0158] The communication interface is used for communication between the above OLT and other devices.

[0159] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0160] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0161] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned uplink anomaly detection methods are implemented.

[0162] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any uplink anomaly detection method in the above embodiments.

[0163] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0164] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0165] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0166] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A method for detecting anomalies in uplink. It is characterized in that Applied to an optical line terminal, the method comprises: Receive an upstream burst from the ONU, where the upstream burst carries the ONUID; Comparing the time of receiving the uplink burst with the preset receiving time to obtain a preliminary alarm determination result; Matching the ONU ID in the upstream burst with the specified ONU ID to obtain a matching result, wherein the specified ONU ID is the ONUID that should be carried in the upstream burst received by the optical line terminal within the preset receiving time; If the matching result is a successful match, the preliminary alarm determination result is used as the final alarm determination result; If the matching result is a matching failure, it is determined that the uplink burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected to obtain a final alarm determination result.

2. The method according to claim 1, It is characterized in that After matching the ONU ID in the upstream burst with the specified ONUID to obtain a matching result, the method further includes: If the matching result is a matching failure, and the forward error correction (FEC) encoding function for the ONU is in a disabled state, the FEC encoding function for the ONU is enabled.

3. The method according to claim 1, It is characterized in that Before matching the ONU ID in the upstream burst with the specified ONUID to obtain a matching result, the method further includes: Descrambling the uplink burst using a preset superframe counter SFC value to obtain a descrambled uplink burst; If the FEC encoding function for the ONU is in an on state, FEC encoding is performed on the descrambled uplink burst to obtain a corrected uplink burst; The step of matching the ONUID in the upstream burst with the specified ONUID to obtain a matching result includes: The ONUID in the corrected upstream burst is matched with the specified ONUID to obtain a matching result.

4. The method according to claim 3, It is characterized in that Before receiving the uplink burst of the ONU, the method further includes: Sending uplink bandwidth allocation information to the ONU, the uplink bandwidth allocation information including the preset SFC value, the ID of the ONU, the preset receiving time, and whether the FEC encoding function is in an enabled state; The preset SFC value, the preset receiving time, and whether the FEC encoding function is in an on state are recorded, and the ID of the ONU is recorded as the designated ONUID.

5. The method according to claim 1, It is characterized in that After the preliminary alarm determination result is used as the final alarm determination result if the matching result is a successful match, the method further includes: If the pre-configured alarm switch is in the on state, then when the final alarm determination result is that a preset fault exists, the final alarm determination result is reported according to the pre-configured alarm reporting frequency; If the matching result is a matching failure, it is determined that the uplink burst of the ONU cannot be correctly received, and the preliminary alarm determination result is corrected to obtain a final alarm determination result, the method further includes: If the pre-configured alarm switch is in the on state, then when the final alarm determination result is that a preset fault exists, the final alarm determination result is reported according to the pre-configured alarm reporting frequency.

6. The method according to claim 1, It is characterized in that After matching the ONU ID in the upstream burst with the specified ONUID to obtain a matching result, the method further includes: If the matching result is a matching failure, an alarm determination result of ONUID mismatch is generated; If the pre-configured alarm switch is in the on state, the alarm determination result of the ONU ID mismatch is reported according to the pre-configured alarm reporting frequency.

7. An uplink anomaly detection device, It is characterized in that Applied to an optical line terminal, the device comprises: A physical frame de-framing module, used for receiving an upstream burst from the ONU, wherein the upstream burst carries an ONUID; An alarm determination module, used for comparing the time when the physical frame deframing module receives the uplink burst with a preset receiving time to obtain a preliminary alarm determination result; An ONU ID checking module is used to match the ONU ID in the upstream burst with a specified ONU ID to obtain a matching result, and feed back the matching result to the alarm determination module, wherein the specified ONU ID is the ONUID that should be carried in the upstream burst received by the optical line terminal within the preset receiving time; The alarm determination module is also used to, if the matching result is a successful match, use the preliminary alarm determination result as the final alarm determination result; if the matching result is a failed match, determine that the uplink burst of the ONU cannot be correctly received, and correct the preliminary alarm determination result to obtain the final alarm determination result.

8. The device according to claim 7, It is characterized in that The device also includes: The bandwidth allocation module is used to enable the FEC encoding function for the ONU if the matching result is a matching failure and the forward error correction FEC encoding function for the ONU is in a closed state.

9. The device according to claim 7, It is characterized in that The device also includes: An uplink descrambling module, configured to descramble the uplink burst using a preset superframe counter SFC value to obtain a descrambled uplink burst; An FEC corrector, for performing FEC encoding on the descrambled uplink burst to obtain a corrected uplink burst if the FEC encoding function for the ONU is in an enabled state; The ONU ID checking module is specifically used to match the ONU ID in the upstream burst after code correction with the specified ONU ID to obtain a matching result.

10. The device according to claim 9, It is characterized in that The device also includes: A bandwidth allocation module, configured to send uplink bandwidth allocation information to the ONU, wherein the uplink bandwidth allocation information includes the preset SFC value, the ID of the ONU, the preset receiving time, and whether the FEC encoding function is in an enabled state; The alarm determination module is further used to record the preset SFC value, the preset receiving time, and whether the FEC encoding function is in an on state, and record the ID of the ONU as the designated ONUID.

11. The device according to claim 7, It is characterized in that The device also includes: The alarm reporting module is used to report the final alarm determination result according to the pre-configured alarm reporting frequency if the pre-configured alarm switch is in the on state and if the final alarm determination result is that a preset fault exists.

12. The device according to claim 7, It is characterized in that The device also includes: an alarm reporting module; The alarm determination module is further used to generate an alarm determination result of ONU ID mismatch if the matching result is a matching failure; The alarm reporting module is used to report the alarm determination result of the ONUID mismatch according to the pre-configured alarm reporting frequency if the pre-configured alarm switch is in the on state.

13. An optical line terminal, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-6 when executing a program stored in a memory.

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

Citation Information

Patent Citations

  • A method and system for identifying malicious optical network units

    CN102271293A

  • Intelligent optical network unit (ONU) optical transceiver module capable of automatically monitoring light-emitting faults

    CN103209028A

  • Detecting rogue ONU, OLT and PON system

    US20120163808A1

  • Methods and products for ONU start-up procedure

    WO2019076943A1

  • Fast detection and recovery of a rogue optical network unit using a reset signal

    WO2021093185A1