A fault detection method, device, equipment and storage medium
By detecting bit interleaving parity errors and delimiting loss errors of optical network units in the PON network, the allocation identifier occupation fault is automatically determined, and the problem of low detection efficiency in the prior art is solved, and efficient fault detection and self-healing are achieved.
Patent Information
- Application Number
- CN201911265378.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-11
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2039-12-11
AI Technical Summary
The detection efficiency of the allocation identifier occupation fault in the existing PON network is low, resulting in garbled uplink data and cannot be parsed normally, and the efficiency of relying on manual inspection is low.
By acquiring the data sent by the optical network unit, detecting bit interleaving parity errors and delimiting loss errors, automatically determine the allocation identifier occupation fault based on the number of errors, and combining optical power and signal loss alarm messages to eliminate link quality error interference, and realize automatic detection.
It improves the detection efficiency of faults that allocate identifiers, reduces misjudgment, realizes timely self-healing of faults, and reduces the possibility that users perceive the fault.
Smart Images

Figure CN112953627B_ABST
Abstract
Description
Technical Field
[0001] This application relates to a wireless communication network, and in particular, to a fault detection method, apparatus, device, and storage medium. Background Art
[0002] A passive optical network (PON) is a point-to-multipoint fiber optic transmission and access technology. Messages are sent in a broadcast manner in the downstream direction and received in a time division multiplexing manner in the upstream direction. Allocation Identifier occupied (Alloc-ID occupied) is a fault in PON, that is, the Alloc-ID assigned by an optical line terminal (OLT) to an optical network unit (ONU) is repeated with the Alloc-IDs of other ONUs, resulting in multiple ONUs emitting light within the upstream bandwidth time slot assigned by the OLT to the repeated Alloc-ID, causing the upstream data to be garbled and unable to be parsed normally. Currently, the Alloc-ID fault is found by users reporting the fault and relying on maintenance personnel to manually check, which has the defect of low efficiency. Summary of the Invention
[0003] Embodiments of this application provide a fault detection method, apparatus, device, and storage medium.
[0004] Embodiments of this application provide a fault detection method, including:
[0005] Obtaining data sent by an optical network unit, and determining whether a set error occurs based on the data;
[0006] Determining whether the optical network unit has an Alloc-ID occupation fault based on the occurrence times of the set error.
[0007] Embodiments of this application provide a fault detection apparatus, including:
[0008] A data acquisition module, configured to obtain data sent by an optical network unit, and determine whether a set error occurs based on the data;
[0009] A fault determination module, configured to determine whether the optical network unit has an Alloc-ID occupation fault based on the occurrence times of the set error.
[0010] Embodiments of this application provide a fault detection device, which includes a memory and one or more processors;
[0011] The memory is configured to store one or more programs;
[0012] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods in the embodiments of the present application.
[0013] An embodiment of the present application provides a storage medium storing a computer program, and when the computer program is executed by a processor, any of the methods in the embodiments of the present application is implemented.
[0014] In the technical solution of the embodiment of the present application, by obtaining the data sent by the optical network unit and detecting the set error of the data, since the set error of the data sent by the optical network unit is caused by the occupation of the allocated identifier, it is possible to automatically determine whether the optical network unit has a fault of occupying the allocated identifier according to the occurrence times of the set error, solving the problem of low efficiency in finding the fault of occupying the allocated identifier through manual troubleshooting, and achieving the effect of improving the fault detection efficiency.
[0015] More descriptions about the above embodiments and other aspects of the present application and their implementation manners are provided in the accompanying drawings, the specific implementation manners, and the claims. Description of the Drawings
[0016] Figure 1 It is a schematic diagram of the fault of occupying the allocated identifier in PON in the related art;
[0017] Figure 2 It is a flowchart of a fault detection method provided by an embodiment of the present application;
[0018] Figure 3 It is a flowchart of another fault detection method provided by an embodiment of the present application;
[0019] Figure 4 It is a flowchart of a detection method for an occupied ONU provided by an embodiment of the present application;
[0020] Figure 5 It is a flowchart of a detection method for an ONU that occupies provided by an embodiment of the present application.
[0021] Figure 6 It is a schematic block diagram of the structure of a fault detection device provided by an embodiment of the present application;
[0022] Figure 7 It is a schematic diagram of the structure of a fault detection device provided by an embodiment of the present application. Detailed Description of the Embodiments
[0023] To make the objectives, technical solutions, and advantages of this application clearer and more understandable, the embodiments of this application will be described in detail below with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments and features in the embodiments of this application can be combined arbitrarily with each other.
[0024] Gigabit-capable Passive Optical Network (G-PON) is one type of Passive Optical Network (hereinafter simply referred to as PON). Gigabit passive optical network devices include an optical line terminal (hereinafter simply referred to as OLT), an optical distribution network (Optical Distribution Network, hereinafter simply referred to as ODN), and an optical network unit (hereinafter simply referred to as ONU). Figure 1 It is a schematic diagram of the Alloc-ID occupancy (i.e., Alloc-ID occupancy) failure in PON in the related art. As Figure 1 shown, OLT 110 is connected to multiple ONUs 130 through ODN 120, and the transmission direction from OLT 110 to ONU 130 is the downstream direction, and the transmission direction from ONU 130 to OLT 110 is the upstream direction, so as to implement functions such as data services and configuration management. If an ONU that fails to clear the local Alloc-ID normally during a fault is called an occupied ONU, and an ONU affected by it is called an occupied-by ONU. Then, Figure 1 in the occupied-by ONU is ONU1, and the occupied ONU is ONU2. ONU2 occupies the Alloc-ID 256 of ONU1.
[0025] As a "point-to-multipoint" topology, in PON, since the time-division multiplexing method is adopted in the upstream direction, the ONU must send an upstream burst (BURST) signal according to the upstream bandwidth time slot (Bandwidth Map, hereinafter simply referred to as Bwmap) allocated by the OLT. Therefore, in the upstream direction, both the OLT and the ONU must ensure that there is no conflict at any time. Since the ONU uses an upstream burst signal, every time the OLT allocates Bwmap to the ONU, the ONU turns on the optical module and turns off the optical module after sending.
[0026] The upstream Bwmap allocation is identified by the Alloc-ID. For example, the OLT broadcasts in the downstream Bwmap to inform that Alloc-ID 256 startTime T1 endTime T2, then the ONU with Alloc-ID 256 sends upstream data within the time period from T1 to T2.
[0027] The Alloc-ID is allocated by the OLT and sent to the ONU during the ONU online process. The relevant standards stipulate that the ONU should clear all local Alloc-ID after disconnection.
[0028] In PON applications, it is found that some models of ONUs do not clear the local Alloc-ID after disconnection, and some models of ONUs may not clear the local Alloc-ID after disconnection. For example Figure 1 As shown, assume that the OLT first allocates Alloc-ID 256 to ONU 2, and then the OLT restarts. After ONU2 disconnects, it does not delete the local Alloc-ID 256 as stipulated by the standard, while the OLT believes that Alloc-ID 256 has been released. Assume that in the next round of Bwmap allocation, the OLT allocates Alloc-ID 256 to ONU1 and Alloc-ID 257 to ONU2. Then, after the OLT restarts, in addition to the Alloc-ID 257 allocated by the OLT, ONU 2 also has Alloc-ID 256. In the uplink bandwidth time slot allocated by the OLT for Alloc-ID 256, both ONU1 and ONU2 are also emitting light, resulting in uplink data scrambling and inability to normally parse the uplink data.
[0029] Currently, this kind of fault is mainly solved manually by the operation and maintenance personnel. After receiving a user's fault report, if the ONU status is normal and the optical power is good, but there are a large number of error codes generated and the OLT side cannot receive the uplink data of the ONU, it is speculated that a fault of Alloc-ID occupation has occurred. The main solutions are: adding a new Alloc-ID to carry services for the ONU, and no longer using the occupied Alloc-ID; or, restarting all ONUs under the OLT.
[0030] Since the occupation of the ONU's own service is normal and almost no abnormality can be seen on the OLT side, it is very difficult to find the occupied ONU. The above two solutions avoid the trouble of finding the occupied ONU. However, the first solution still has the fault, and the occupied ONU may continue to occupy other Alloc-ID, and further affect other ONUs; the second solution is time-consuming to operate and may cause relatively large negative impacts.
[0031] In summary, in the existing PON networking scenario, the detection means for the above Alloc-ID occupation problem are inefficient and urgently need to be improved.
[0032] In view of this, the embodiment of the present application provides a fault detection method, which can quickly detect the Alloc-ID occupation fault.
[0033] Figure 2The flowchart of a fault detection method provided by an embodiment of the present application. This method can be executed by a fault detection device, which can be composed of software and / or hardware and integrated in a fault detection device. For example, the fault detection device can be an OLT. As Figure 2 shown, the method includes:
[0034] Step 210: Obtain the data sent by the optical network unit, and determine whether a set error occurs based on the data.
[0035] In the embodiment of the present application, the set error includes a Bit Interleaved Parity error (abbreviated as BIP error) or a delimiter loss error. It should be noted that this is only an example and not a limitation. The set error can also be other errors that may occur in the Alloc-ID occupation.
[0036] Exemplarily, the OLT periodically scans each online ONU to obtain the upstream burst signal sent by the ONU, obtains the second check bit in the upstream burst signal and the data in the upstream burst signal, and calculates the first check bit according to the data in the upstream burst signal. Among them, the second check bit in the upstream burst signal is calculated by the ONU using a set algorithm according to the data in the upstream burst signal. The OLT uses the same set algorithm to calculate the first check bit according to the data in the upstream burst signal.
[0037] Among them, the first check bit can be the BIP check bit calculated by the OLT, and the second check bit can be the BIP check bit calculated by the ONU.
[0038] Match the first check bit and the second check bit to determine the number of error check bits. For example, compare the first check bit and the second check bit bit by bit, and record the number of different bits to obtain the number of error check bits. Specifically, it can be assumed that each ONU has 1000 upstream burst signals per second for upstream. After comparison, the number of incorrect check bits is 4000 bit, that is, the number of error check bits is 4000 bit.
[0039] When the quantity meets the set condition, it is determined that a Bit Interleaved Parity error occurs. There can be many set conditions for determining whether a Bit Interleaved Parity error occurs in the optical network unit, and the embodiment of the present application does not make specific limitations. For example, when the growth rate of the number of error check bits within a unit time exceeds a set quantity threshold, it is determined that a Bit Interleaved Parity error occurs. Or, calculate the error of the number of error check bits determined based on two adjacent upstream burst signals. If the error is within the set error range, it is determined that a Bit Interleaved Parity error occurs.
[0040] In an exemplary embodiment, if the growth rate of the number of error check bits per second exceeds a set number threshold, it is determined that a bit-interleaved parity (BIP) error has occurred. The set number threshold is an empirical value obtained from multiple experiments.
[0041] In another exemplary embodiment, if the error between the number of error check bits determined based on the current upstream burst signal and the number of error check bits determined based on the adjacent previous upstream burst signal is within a set error range, it is determined that a BIP error has occurred. The set error range is a value range obtained from multiple experiments. Moreover, as the set error range increases, the probability of misjudgment shows an increasing trend; as the set error range decreases, the probability of missed judgment shows an increasing trend.
[0042] It should be noted that before the optical network unit (ONU) sends an upstream burst signal, a set algorithm is used to calculate the value of the BIP check bit according to the data in the upstream burst signal, and this value is added to the BIP check bit in the upstream burst signal. The BIP check bit is used to check whether the data in the upstream burst signal has changed during transmission. The BIP check bit occupies 8 bits in the frame structure of the upstream burst signal. Optionally, the BIP check bit is located in the frame header of the upstream burst signal, and the frame header of the upstream burst signal further includes a delimiter, and the BIP check bit is located after the delimiter.
[0043] In an exemplary embodiment, an upstream burst signal sent by an optical network unit is obtained, and a delimiter in the upstream burst signal is searched; the number of times the delimiter is not searched within a unit time is determined; if the number of times exceeds a set number threshold, it is determined that a delimiter loss error has occurred. The set number threshold is an empirical value obtained from multiple experiments. It should be noted that when the Alloc-ID is occupied, there is a very small probability that the delimiters of ONU1 and ONU2 partially overlap. At this time, the OLT cannot search for the delimiter, and the entire upstream burst signal is discarded. There is no error code in ONU1, but the number of times the delimiter is lost per second exceeds the set number threshold, and it can be determined that a delimiter loss error has occurred.
[0044] Step 220: Determine whether the optical network unit has an allocation identifier occupation failure based on the occurrence times of the set error.
[0045] In the embodiments of the present application, the OLT counts the number of consecutive occurrences of the set error. A set parameter can be used to identify the number of occurrences of the set error. For example, when a set error is detected, the value of the set parameter is incremented by 1. If it is detected that no set error has occurred, the value of the set parameter is cleared. For example, equalTime is used to represent the number of times the BIP error meets the set conditions. Each time an upstream burst signal is received, a detection is performed. If the BIP error meets the set conditions, equalTime is incremented by 1; otherwise, equalTime is cleared. Alternatively, equalTime is used to represent the number of times a delimiter loss error occurs. Each time an upstream burst signal is received, a detection is performed. If a delimiter loss error occurs, equalTime is incremented by 1; otherwise, equalTime is cleared.
[0046] Count the number of consecutive occurrences of the set error; if the number meets the set number requirement, it is determined that an allocation identifier occupancy failure has occurred. The set number requirement is an empirical value obtained from multiple experiments. If the number of consecutive occurrences of the BIP error or the delimiter loss error exceeds the set number requirement, it is considered that there is a high probability that the current optical network unit has a failure of the Alloc-ID being occupied. Then, the current optical network unit is called an occupied optical network unit (or, called an occupied ONU).
[0047] The technical solution of the embodiments of the present application determines whether there is a BIP error or a delimiter loss error by obtaining the data sent by the optical network unit. Furthermore, it determines whether the optical network unit has an allocation identifier occupancy failure according to the number of occurrences of the BIP error or the delimiter loss error, realizing automatic detection of the allocation identifier occupancy failure, and thus improving the detection efficiency.
[0048] In an exemplary embodiment, before determining that an allocation identifier occupancy failure has occurred, it further includes: determining whether a signal loss alarm message of the optical network unit is received within a set time interval; if so, modifying the number of consecutive occurrences of the set error to zero; if not, determining that an allocation identifier occupancy failure has occurred. According to engineering experience, an optical network unit with a large error rate takes a long time to go online and quickly drops offline after going online, and it is difficult to be stably online for a long time. However, an optical network unit with the Alloc-ID occupied can be stably online and is almost no different from a normal ONU optical network unit except that the service is not available. Therefore, adopting this exemplary embodiment can further eliminate the possibility of errors caused by link quality and achieve the effect of reducing misjudgment.
[0049] In an exemplary embodiment, before determining that an allocation identifier occupancy failure has occurred, the method further includes: determining whether the optical power of the optical network unit meets a set power requirement; if so, determining that an allocation identifier occupancy failure has occurred. According to experience, bit errors rarely occur when the received optical power on the OLT side is within the set optical power range. Therefore, this exemplary embodiment can further eliminate the possibility of bit errors caused by link quality, achieving the effect of reducing misjudgment.
[0050] In an exemplary embodiment, after determining that an allocation identifier occupancy failure has occurred, the method further includes: determining whether to report the allocation identifier occupancy failure of the optical network unit according to the value of the alarm reporting flag bit corresponding to the optical network unit. It should be noted that in the optical line terminal, each optical network unit corresponds to an alarm reporting flag bit. After the optical line terminal determines that an allocation identifier occupancy failure has occurred in a certain optical network unit, it modifies the value of the alarm reporting flag bit corresponding to the optical network unit to the value corresponding to the reported alarm message. In this example, the optical line terminal reports the allocation identifier occupancy failure to the upper-layer control system. The embodiments of the present application do not limit the specific type of the upper-layer control system. For example, the upper-layer control system may be a network management system. After the maintenance personnel of the network management system discover the alarm of the allocation identifier occupancy failure, they manually clear the failure. At this time, the user may not have perceived the failure yet, thereby reducing user complaints.
[0051] Currently, after receiving a user's fault report, if the status of a certain optical network unit is normal and the optical power is good, but a large number of bit errors occur and the optical line terminal side cannot receive the upstream message of the optical network unit, the operation and maintenance personnel can suspect that an allocation identifier occupancy failure has occurred in the optical network unit and manually clear the failure, resulting in a low fault resolution efficiency.
[0052] In an exemplary embodiment, after determining that an allocation identifier occupancy failure has occurred, the method further includes: controlling the remaining network units in the online optical network units except the occupied optical network unit to delete the allocation identifier of the occupied optical network unit, realizing self-healing in a timely manner when a failure occurs, greatly reducing the possibility of the user perceiving the failure, and improving the fault resolution efficiency. Figure 1For example, ONU1 is an occupied optical network unit, ONU2 is an occupying optical network unit, and ONU2 has occupied the Alloc-ID 256 of ONU1. By executing the fault detection method of the embodiments of the present application, it can be determined that ONU1 has an allocation identifier occupancy fault, that is, it is determined that the Alloc-ID of ONU1 is occupied by other ONUs. The OLT determines all online ONUs, and then determines the remaining ONUs among all online ONUs except ONU1, and sends a PLOAM (Physical layer OAM) message to the remaining ONUs to instruct them to delete the Alloc-ID of the occupied optical network unit (i.e., ONU1). It should be noted that if the occupied optical network unit has multiple Alloc-IDs, the occupying ONU performs deletion operations for each Alloc-ID respectively.
[0053] Optionally, after determining that there is an allocation identifier occupancy fault, it further includes: restarting all optical network units under the optical line terminal to release the Alloc-IDs allocated to the optical network units, so as to solve the Alloc-ID occupancy fault.
[0054] After detecting the Alloc-ID occupancy fault and determining the occupied ONU in the above examples, a series of measures are taken to eliminate the fault or reduce the harm. However, the above examples are all solutions for solving the Alloc-ID occupancy fault without finding the occupying ONU. Figure 3 The flowchart of another fault detection method provided by the embodiments of the present application is as follows. Figure 3 In the method shown, the OLT solves the Alloc-ID occupancy fault when finding the occupying ONU. As Figure 3 shown, the method includes:
[0055] Step 301, obtain the data sent by the optical network unit, and determine whether a set error occurs based on the data.
[0056] In the embodiments of the present application, the set error includes BIP error or delimiter loss error, etc.
[0057] Step 302, determine whether the occurrence times of the set error meet the set conditions. If so, execute step 303; otherwise, execute step 311.
[0058] For example, if the set error occurs continuously for N times, it is determined that the occurrence times of the set error meet the set conditions. Among them, the value range of N can be set according to experience. If the set error occurs continuously for M (M < N) times, it is determined that the occurrence times of the set error do not meet the set conditions.
[0059] Step 303, determine that the optical network unit has an allocation identifier occupancy fault, and call the optical network unit the occupied optical network unit.
[0060] Step 304: Prohibit the occupied optical network unit from participating in the uplink bandwidth time slot allocation, and allocate an uplink bandwidth time slot for the allocation identifier corresponding to the occupied optical network unit.
[0061] Exemplarily, the optical line terminal sends a PLOAM message to the occupied optical network unit to prohibit the occupied optical network unit from participating in the uplink bandwidth time slot allocation. The optical line terminal continues to allocate an uplink bandwidth time slot for at least one allocation identifier (i.e., Alloc-ID) corresponding to the occupied optical network unit. For Figure 1 example, prohibit ONU1 from participating in the uplink bandwidth time slot allocation, but allocate an uplink bandwidth time slot for Alloc-ID 256. Since ONU2 occupies Alloc-ID 256, when ONU1 is not allocated an uplink bandwidth time slot, only ONU2 sends uplink data within the time slot to which Alloc-ID 256 belongs.
[0062] Step 305: Within the uplink bandwidth time slot, determine whether a valid uplink frame is received. If so, execute Step 306; otherwise, execute Step 309.
[0063] It should be noted that after prohibiting the occupied ONU from participating in the uplink bandwidth allocation and allocating an uplink bandwidth time slot for the Alloc-ID of the occupied ONU, only the occupied ONU emits light within this uplink bandwidth time slot, and the OLT can receive complete uplink data, that is, a valid uplink frame.
[0064] Step 306: Determine the occupied optical network unit according to the ONU-ID field in the uplink physical layer overhead of the valid uplink frame.
[0065] Exemplarily, if a valid uplink frame is received, parse the valid uplink frame to obtain the ONU-ID field in the uplink physical layer overhead (abbreviated as PLOu) of the frame header. Furthermore, determine the ONU that sends the uplink data, and call it the occupied ONU. For Figure 1 the application scenario shown, according to the ONU-ID field in the frame header PLOu, the onuid of the occupied ONU can be obtained. Here, the parsed onuid is 2.
[0066] Step 307: Control the occupied optical network unit to delete the allocation identifier.
[0067] Exemplarily, send a PLOAM message to the occupied optical network unit to make it delete the occupied allocation identifier.
[0068] Step 308: Control the occupied optical network unit to restart, and then execute Step 310.
[0069] Exemplarily, an OMCI message is sent to the occupied optical network unit to instruct it to restart.
[0070] Step 309 : modify the value of the alarm flag to prohibit the occupied optical network unit from reporting an allocation identifier occupation fault, and then execute step 310 .
[0071] Exemplarily, if no valid uplink frame is received, it indicates that an allocation identifier occupation failure is falsely detected. The value of the alarm reporting flag bit corresponding to the occupied optical network unit is modified to a value corresponding to the prohibition of reporting the alarm message, and the OLT no longer reports the Alloc-ID occupation alarm to the upper control system for the optical network unit. It should be noted that one optical network unit corresponds to one alarm reporting flag bit, and the alarm reporting flag bit will be cleared when the corresponding optical network unit is deleted.
[0072] It should be noted that, if the occupied ONU is assigned multiple Alloc-IDs, each Alloc-ID is performed above-mentioned steps 305-309 respectively, to determine whether to receive a valid upstream frame for each Alloc-ID. If all Alloc-IDs of the occupied ONU are performed above-mentioned operation, no valid frame is received, then it is determined to be a false detection. For the situation of receiving a valid frame, perform steps 306-308. Optionally, if the occupied ONU occupies two or more Alloc-IDs of the occupied ONU, then after deleting the Alloc-IDs of all the occupied ONUs in the occupied ONU, perform step 308 again.
[0073] Step 310: Allow the occupied optical network unit to participate in uplink bandwidth time slot allocation.
[0074] Step 311: clear the parameter recording the number of occurrences of setting errors.
[0075] The technical solution provided by the embodiment of the present application determines the occupied ONU by detecting the BIP error or delimitation loss of the optical network unit, prohibits the occupied ONU from participating in the upstream bandwidth allocation, and allocates an upstream bandwidth time slot to the Alloc-ID of the occupied ONU. At this time, only the occupied ONU emits light in the upstream bandwidth time slot, and the OLT can receive a valid upstream frame. The occupied ONU can be found by parsing the ONU-ID field in the PLOu of the frame header in the valid upstream frame. The occupied ONU is ordered to release the Alloc-ID through the PLOAM message, and the occupied ONU is restarted through the OMCI message, so that the Alloc-ID occupation is completely released, so that timely self-healing can be achieved when a fault occurs.
[0076] In an exemplary application scenario, a method for detecting an ONU whose Alloc-ID is occupied is provided. Figure 4The flowchart of a method for detecting an occupied ONU provided by an embodiment of this application. As Figure 4 shown, the method includes:
[0077] Step 401, start detection.
[0078] Step 402: The OLT periodically scans the BIP error and delimiter loss of each ONU.
[0079] Step 403, determine whether the value of the BIP error or the number of delimiter losses meets the set conditions. If so, execute Step 404; otherwise, execute Step 410.
[0080] Taking Figure 1 the application scenario shown as an example, since both ONU1 and ONU2 are emitting light within the time slot of Alloc-ID 256, there must be a BIP error (or delimiter loss). Since the upstream bandwidth time slot is allocated to ONU1, the OLT considers that the BIP error (or called bit error) is generated by ONU 1, and there is no BIP error for ONU2.
[0081] Each upstream BURST signal has a BIP check bit to check whether the data in this BURST has changed during transmission. The BIP check bit is after the delimiter, is 8 bits, and is calculated by the ONU. After receiving the upstream data (i.e., the upstream BURST signal), the OLT calculates an 8-bit BIP check bit according to the same method and compares it with the 8-bit BIP check bit sent by the ONU. If one bit is different, the value of the BIP error is incremented by 1.
[0082] The statistical rules of the BIP error caused by the Alloc-ID occupation mainly include two points:
[0083] 1. Different from the BIP error caused by the link quality, the value of the BIP error caused by the Alloc-ID occupation is very large, and the accumulated value of the BIP error per second is about 4000 bits. According to the calculation method of the BIP check bit, when there is a continuous data segment exceeding 8 bits in error within a BURST, according to probability, the error flag bit is 4 bits. If each ONU has 1000 upstream BURSTs per second, the error flag bit is 4000 bits. Engineering failures have also verified the accuracy of this data. The value of the BIP error caused by the link quality is usually very small, about dozens of bits per second. Experiments show that by controlling the link quality with an adjustable optical attenuator, it is found that when the value of the BIP error per second is greater than 100 bits, the ONU cannot be stably online.
[0084] 2. The value of the BIP error caused by Alloc-ID occupation is very stable. At the same interval of time, the accumulated BIP error values are very close. While the value of the BIP error caused by link quality varies greatly.
[0085] In summary, if the read BIP error meets one of the following two conditions, it is considered that there may be Alloc-ID occupation: 1. The value of the BIP error increasing per second is greater than m bit, where m is an empirical value; 2. The error between the value of the BIP error read this time and the value read last time is within n%, where n% is an empirical value. A larger value will increase the probability of misjudgment, and a smaller value will increase the probability of missing judgment.
[0086] When Alloc-ID is occupied, there is a very small probability that the delimiters of ONU1 and ONU2 partially overlap. At this time, the OLT cannot search for the delimiter, and the entire upstream BURST is discarded. There is no error code in ONU1, but the delimiter is lost 1000 times per second. The judgment basis at this time is: regardless of the BIP error, only considering that the delimiter loss is greater than 500 times per second meets the condition.
[0087] Step 404: Use equalTime to mark the number of times that the BIP error or delimiter loss meets the conditions in Step 403. Each time it is detected, if it meets the conditions, equalTime is incremented by 1, and Step 406 is executed.
[0088] Step 405: Use equalTime to mark the number of times that the BIP error or delimiter loss meets the conditions in Step 403. Each time it is detected, if it does not meet the conditions, equalTime is cleared, and after a delay of T1, Step 402 is executed.
[0089] Step 406: Determine whether equalTime is greater than N. If so, Step 407 is executed; otherwise, after a delay of T1, Step 402 is executed.
[0090] For example, when the BIP error or delimiter loss meets the conditions in Step 403 for N consecutive times, it is considered that there is a high probability that ONU1 has an Alloc-ID occupied.
[0091] Step 407: Determine whether ONU1 has LOSi within X minutes. If so, Step 405 is executed; otherwise, Step 408 is executed.
[0092] It should be noted that determining whether there is LOSi on the ONU1 within X minutes is to further eliminate the possibility of bit errors caused by the link. According to engineering experience, ONUs with large bit errors take a long time to go online, and will drop offline soon after going online, and it is difficult to be stable online for a long time. However, the ONU with the Alloc-ID occupied can be stable online, and there is almost no difference from a normal ONU except that the service is not available. Among them, X minutes is also an empirical value.
[0093] Step 408: Determine whether the optical power of the ONU1 is good. If so, execute Step 409; otherwise, execute Step 402 after delaying for T1.
[0094] It should be noted that determining whether the optical power of the ONU1 is good is also to eliminate the possibility of bit errors caused by the link. According to the empirical value, when the received optical power on the OLT side is within -12dbm - -28dbm, bit errors rarely occur. It can report an alarm only when the optical power of the ONU1 is only within the "good" range, further reducing misjudgment.
[0095] Step 409: Determine whether the value of the alarm reporting flag bit indicates alarm reporting. If so, execute Step 410; otherwise, execute Step 402 after delaying for T1.
[0096] Step 410: Report the alarm that the Alloc-ID of the ONU1 is occupied.
[0097] Exemplarily, when the alarm reporting flag bit reportFlag == 1, report the alarm that the Alloc-ID of the ONU1 is occupied. After delaying for T1, return to execute Step 402.
[0098] In an exemplary application scenario, a method for determining the occupied ONU is provided. Figure 5 It is a flowchart of a method for detecting an occupied ONU provided by an embodiment of the present application. As Figure 5 shown, the method includes:
[0099] Step 501: Start a timing detection task.
[0100] Step 502: Timingly detect whether there is an alarm report that the Alloc-ID of the ONU is occupied.
[0101] Exemplarily, establish a system task in the OLT to periodically scan whether there is an alarm report that the Alloc-ID of the ONU is occupied. If so, execute Step 503; otherwise, re-execute Step 502 after delaying for T2.
[0102] Step 503: Assuming that there is an alarm report that the Alloc-ID of the ONU1 is occupied, prohibit the ONU1 from participating in the uplink bandwidth allocation through the PLOAM message.
[0103] In the embodiment of the present application, the ONU1 is prohibited from participating in the uplink bandwidth allocation through the PLOAM message, that is, the light emission of the ONU1 is turned off.
[0104] Step 504: Allocate an uplink bandwidth time slot to the Alloc-ID of the ONU1.
[0105] It should be noted that the ONU1 may have multiple Alloc-IDs. For the sake of simplifying the flowchart, here an example of one Alloc-ID 256 is used for illustration. For multiple Alloc-IDs, the following steps are executed for each Alloc-ID respectively.
[0106] At this time, only the ONU2 sends uplink data within the time slot to which the Alloc-ID 256 belongs. Since there is no real service, the frame sent by the ONU2 is an empty frame.
[0107] Step 505: Determine whether a valid uplink frame is received. If so, execute Step 506; otherwise, execute Step 509.
[0108] Step 506: Determine the occupied ONU according to the valid uplink frame.
[0109] If a valid frame is received, the onuid of the occupied ONU can be obtained according to the ONU-ID field in the frame header PLOu. Here, the parsed onuid is 2.
[0110] Step 507: Send an Assign_Alloc-ID PLOAM message to the occupied ONU to make it delete the occupied Alloc-ID.
[0111] In the embodiment of the present application, the occupied ONU is the ONU2.
[0112] Step 508: Send an OMCI message to the occupied ONU to make it restart.
[0113] Step 509: Determine that the alarm of the occupied Alloc-ID is a false detection, and set the value of the reportFlag of the occupied ONU to zero.
[0114] If no valid uplink frame is received, it indicates that the alarm is a false detection. Set the reportFlag of this ONU to 0, and no longer report the alarm of the occupied Alloc-ID for this ONU. This flag bit will be cleared when this ONU is deleted.
[0115] Step 510: Allow the occupied ONU to participate in the uplink bandwidth time slot allocation.
[0116] For example, ENABLE ONU1, allowing the ONU1 to participate in the uplink bandwidth allocation, that is, turning on the light emission of the ONU1.
[0117] Figure 6 This is a structural schematic block diagram of a fault detection device provided by an embodiment of the present application. By executing the fault detection method provided by the embodiment of the present application, the detection efficiency of the Alloc-ID occupied fault is improved. As Figure 6 shown, the fault detection device in the embodiment of the present application includes:
[0118] A data acquisition module 610, configured to acquire data sent by an optical network unit, and determine whether a set error occurs based on the data;
[0119] A fault determination module 620, configured to determine whether the optical network unit has an allocation identifier occupancy fault based on the occurrence times of the set error.
[0120] The fault detection device provided by the embodiment of the present application is configured to implement Figure 2 the fault detection method of the embodiment shown. The implementation principle and technical effect of this fault detection device are similar to those of the fault detection method, and will not be elaborated here.
[0121] In an exemplary embodiment, the set error includes a bit interleaved parity error or a delimiter loss error.
[0122] In an exemplary embodiment, the data acquisition module 610 is specifically configured to:
[0123] Acquire an upstream burst signal sent by the optical network unit, and calculate a first check bit according to the data in the upstream burst signal;
[0124] Match the first check bit and a second check bit in the upstream burst signal to determine the number of error check bits;
[0125] When the number meets a set condition, determine that a bit interleaved parity error occurs.
[0126] In an exemplary embodiment, when the number meets a set condition, determining that a bit interleaved parity error occurs includes:
[0127] When the growth rate of the number within a unit time exceeds a set number threshold, determine that a bit interleaved parity error occurs.
[0128] In an exemplary embodiment, when the number meets a set condition, determining that a bit interleaved parity error occurs includes:
[0129] Calculate the error of the number of error check bits determined based on two adjacent upstream burst signals. If the error is within a set error range, determine that a bit interleaved parity error occurs.
[0130] In an exemplary embodiment, the data acquisition module 610 is specifically configured to:
[0131] Acquire an upstream burst signal sent by an optical network unit, and search for a delimiter within the upstream burst signal;
[0132] Determine the number of times the delimiter is not searched within a unit time;
[0133] If the number of times exceeds a set number threshold, determine that a delimiter loss error has occurred.
[0134] In an exemplary embodiment, the fault determination module 620 is specifically configured to:
[0135] Count the number of times the set error occurs continuously;
[0136] If the number of times meets the set number requirement, determine that the optical network unit has an allocation identifier occupancy fault.
[0137] In an exemplary embodiment, before determining that an allocation identifier occupancy fault has occurred, it further includes:
[0138] Determine whether a signal loss alarm message of the optical network unit is received within a set time interval;
[0139] If so, modify the number of times the set error occurs continuously to zero;
[0140] If not, determine that the optical network unit has an allocation identifier occupancy fault.
[0141] In an exemplary embodiment, before determining that an allocation identifier occupancy fault has occurred, it further includes:
[0142] Determine whether the optical power of the optical network unit meets the set power requirement;
[0143] If so, determine that the optical network unit has an allocation identifier occupancy fault.
[0144] In an exemplary embodiment, after determining that an allocation identifier occupancy fault has occurred, it further includes:
[0145] Determine whether to report the allocation identifier occupancy fault of the optical network unit according to the value of the alarm reporting flag bit corresponding to the optical network unit.
[0146] In an exemplary embodiment, after determining that an allocation identifier occupancy fault has occurred, it further includes:
[0147] Control the remaining network units in the online optical network units except the occupied optical network unit to delete the allocation identifier of the occupied optical network unit.
[0148] In an exemplary embodiment, after determining that an allocation identifier occupancy failure has occurred, the method further includes:
[0149] Prohibiting the occupied optical network unit from participating in uplink bandwidth time slot allocation, and allocating an uplink bandwidth time slot for the allocation identifier corresponding to the occupied optical network unit;
[0150] Within the uplink bandwidth time slot, determining whether a valid uplink frame is received;
[0151] If so, determining the occupied optical network unit according to the valid uplink frame, controlling the occupied optical network unit to delete the allocation identifier, and controlling the occupied optical network unit to restart;
[0152] Otherwise, modifying the value of the alarm flag bit to prohibit the occupied optical network unit from reporting an allocation identifier occupancy failure;
[0153] Allowing the occupied optical network unit to participate in uplink bandwidth time slot allocation.
[0154] An embodiment of the present application provides a fault detection device. Figure 7 FIG. is a schematic structural diagram of a fault detection device provided by an embodiment of the present application. As Figure 7 shown, the fault detection device includes a memory 710 and one or more processors 720; the memory 710 is configured to store one or more programs; when the one or more programs are executed by the one or more processors 720, the one or more processors 720 implement the fault detection method described in the embodiment of the present application.
[0155] Exemplarily, the fault detection device may be an optical line terminal (OLT) or the like.
[0156] The above-provided fault detection device may be configured to execute the fault detection method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0157] An embodiment of the present application further provides a storage medium storing executable instructions, and the computer executable instructions are configured to execute a fault detection method when executed by a computer processor. The method includes:
[0158] Obtaining data sent by an optical network unit, and determining whether a setting error has occurred based on the data;
[0159] Determining whether the optical network unit has an allocation identifier occupancy failure based on the occurrence times of the setting error.
[0160] The above is only an exemplary embodiment of the present application, and is not intended to limit the protection scope of the present application.
[0161] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, a microprocessor, or other computing devices, although the present application is not limited thereto.
[0162] Any block diagrams of logic flows in the drawings of the present application can represent program steps, or can represent interconnected logic circuits, modules, and functions, or can represent a combination of program steps and logic circuits, modules, and functions. A computer program can be stored in a memory. The memory can be of any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory devices and systems (Digital Versatile Disc DVD or CD optical disc), etc. The computer-readable medium can include non-transitory storage media. The data processor can be of any type suitable for the local technical environment, such as but not limited to general-purpose computers, dedicated computers, microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and processors based on multi-core processor architectures.
Claims
1. A fault detection method, characterized in that, Including: Obtain data sent by an optical network unit, and determine whether a set error occurs based on the data; The set error includes an error that occurs in the occupation of an allocated identifier; Determine whether the optical network unit has an allocated identifier occupation fault based on the occurrence times of the set error; After determining that an allocated identifier occupation fault occurs, it further includes: Prohibit the occupied optical network unit from participating in the uplink bandwidth time slot allocation, and allocate an uplink bandwidth time slot for the allocated identifier corresponding to the occupied optical network unit; Within the uplink bandwidth time slot, determine whether a valid uplink frame is received; If so, determine the occupied optical network unit according to the valid uplink frame, control the occupied optical network unit to delete the allocated identifier, and control the occupied optical network unit to restart; Otherwise, modify the value of the alarm reporting flag bit corresponding to the optical network unit to prohibit the occupied optical network unit from reporting an allocated identifier occupation fault; Allow the occupied optical network unit to participate in the uplink bandwidth time slot allocation.
2. The method according to claim 1, characterized in that, The set error includes a bit interleaved parity check error or a delimiter loss error.
3. The method according to claim 2, wherein Obtain data sent by an optical network unit, and determine whether a set error occurs based on the data, including: Obtain the uplink burst signal sent by the optical network unit, and calculate a first check bit according to the data in the uplink burst signal; Match the first check bit and the second check bit in the uplink burst signal, and determine the number of error check bits; When the number meets the set condition, determine that a bit interleaved parity check error occurs.
4. The method according to claim 3, wherein When the number meets the set condition, determine that a bit interleaved parity check error occurs, including: When the growth rate of the number within a unit time exceeds a set number threshold, determine that a bit interleaved parity check error occurs.
5. The method according to claim 3, wherein When the number meets the set condition, determine that a bit interleaved parity check error occurs, including: Calculate the error of the number of error check bits determined based on two adjacent uplink burst signals. If the error is within the set error range, determine that a bit interleaved parity check error occurs.
6. The method according to claim 2, wherein Obtain data sent by an optical network unit, and determine whether a set error occurs based on the data, including: Obtain the uplink burst signal sent by the optical network unit, and search for a delimiter in the uplink burst signal; Determine the number of times that the delimiter is not searched within a unit time; If the number exceeds the set number threshold, determine that a delimiter loss error occurs.
7. The method according to claim 1, characterized in that, Determine whether the optical network unit has an allocated identifier occupation fault based on the occurrence times of the set error, including: Count the number of consecutive occurrences of the set error; If the number meets the set number requirement, determine that the optical network unit has an allocated identifier occupation fault.
8. The method according to claim 7, characterized in that, Before determining that an allocated identifier occupation fault occurs, it further includes: Determine whether a signal loss alarm message of the optical network unit is received within a set time interval; If so, modify the number of consecutive occurrences of the set error to zero; If not, determine that the optical network unit has an allocated identifier occupation fault.
9. The method according to claim 8, characterized in that, Before determining that an allocated identifier occupation fault occurs, it further includes: Determine whether the optical power of the optical network unit meets the set power requirement; If so, it is determined that the optical network unit has an allocation identifier occupancy fault.
10. The method according to any one of claims 1-9, characterized in that, After determining that an allocation identifier occupancy fault has occurred, it further includes: According to the value of the alarm reporting flag bit corresponding to the optical network unit, determine whether to report the allocation identifier occupancy fault of the optical network unit.
11. The method according to claim 10, wherein After determining that an allocation identifier occupancy fault has occurred, it further includes: Control the remaining network units among the online optical network units except the occupied optical network unit to delete the allocation identifier of the occupied optical network unit.
12. A fault detection device, characterized in that, It includes: A data acquisition module, configured to acquire data sent by the optical network unit and determine whether a setting error has occurred based on the data; The setting error includes an error that occurs during allocation identifier occupancy; A fault determination module, configured to determine whether the optical network unit has an allocation identifier occupancy fault based on the occurrence times of the setting error; After determining that an allocation identifier occupancy fault has occurred, it further includes: Prohibit the occupied optical network unit from participating in the uplink bandwidth time slot allocation, and allocate an uplink bandwidth time slot for the allocation identifier corresponding to the occupied optical network unit; Within the uplink bandwidth time slot, determine whether a valid uplink frame is received; If so, determine the occupied optical network unit according to the valid uplink frame, control the occupied optical network unit to delete the allocation identifier, and control the occupied optical network unit to restart; Otherwise, modify the value of the alarm reporting flag bit corresponding to the optical network unit to prohibit the occupied optical network unit from reporting the allocation identifier occupancy fault; Allow the occupied optical network unit to participate in the uplink bandwidth time slot allocation.
13. A fault detection device, characterized in that, The fault detection device includes: a memory and one or more processors; The memory is configured to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-11.
14. A storage medium, characterized in that, The storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method according to any one of claims 1-11.
Citation Information
Patent Citations
Passive optical network rogue optical network unit diagnostics
US20070274719A1