CN112953627A - Fault detection method, device, equipment and storage medium - Google Patents

Fault detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN112953627A
CN112953627A CN201911265378.3A CN201911265378A CN112953627A CN 112953627 A CN112953627 A CN 112953627A CN 201911265378 A CN201911265378 A CN 201911265378A CN 112953627 A CN112953627 A CN 112953627A
Authority
CN
China
Prior art keywords
optical network
network unit
determining
error
occupied
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911265378.3A
Other languages
Chinese (zh)
Inventor
饶文平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201911265378.3A priority Critical patent/CN112953627A/en
Publication of CN112953627A publication Critical patent/CN112953627A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0793Network aspects, e.g. central monitoring of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Abstract

The embodiment of the application provides a fault detection method, a fault detection device, equipment and a storage medium, wherein the method comprises the following steps: acquiring data sent by an optical network unit, and determining whether a setting error occurs or not based on the data; and judging whether the optical network unit has the distribution identifier occupation fault or not based on the occurrence frequency of the setting error, so that the fault detection efficiency can be improved.

Description

Fault detection method, device, equipment and storage medium
Technical Field
The present application relates to wireless communication networks, and in particular, to a method, an apparatus, a device, and a storage medium for fault detection.
Background
A Passive Optical Network (PON) is a point-to-multipoint Optical fiber transmission and access technology, where a Broadcast mode (Broadcast) is used in a downlink direction to send a message, and a Time Division Multiplexing (Time Division Multiplexing) is used in an uplink direction to receive the message. An Allocation Identifier occupied (allocated Identifier occupied, abbreviated as Alloc-ID occupied) is a fault in the PON, that is, an Alloc-ID allocated by an Optical Line Terminal (OLT) for an Optical Network Unit (ONU) is repeated with Alloc-IDs of other ONUs, so that a plurality of ONUs emit light in an uplink bandwidth timeslot allocated by the OLT to the repeated Alloc-IDs, thereby causing uplink data scrambling and failing to normally analyze. At present, the fault is reported by a user and the fault is found by means of manual troubleshooting of operation and maintenance personnel, so that the method has the defect of low efficiency.
Disclosure of Invention
The embodiment of the application provides a fault detection method, a fault detection device, equipment and a storage medium.
The embodiment of the application provides a fault detection method, which comprises the following steps:
acquiring data sent by an optical network unit, and determining whether a setting error occurs or not based on the data;
and judging whether the optical network unit has the distribution identifier occupation fault or not based on the occurrence frequency of the setting error.
The embodiment of the application provides a fault detection device, includes:
the data acquisition module is used for acquiring data sent by the optical network unit and determining whether a setting error occurs or not based on the data;
and the fault determination module is used for determining whether the optical network unit has the distribution identifier occupation fault or not based on the occurrence frequency of the setting error.
The embodiment of the application provides a fault detection device, and the fault detection device comprises: a memory, and one or more processors;
the memory arranged to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any one of the methods of the embodiments of the present application.
The embodiment of the application provides a storage medium, wherein a computer program is stored in the storage medium, and when being executed by a processor, the computer program realizes any one method in the embodiment of the application.
According to the technical scheme of the embodiment of the application, the data sent by the optical network unit is obtained, the setting error of the data is detected, and the setting error of the data sent by the optical network unit caused by the occupation of the allocation identifier can be used for automatically judging whether the optical network unit has the occupation fault of the allocation identifier according to the occurrence frequency of the setting error, so that the problem that the efficiency of the occupation fault of the allocation identifier is low through manual troubleshooting is solved, and the effect of improving the fault detection efficiency is achieved.
With regard to the above embodiments and other aspects of the present application and implementations thereof, further description is provided in the accompanying drawings description, detailed description and claims.
Drawings
Fig. 1 is a schematic diagram illustrating an allocation identifier occupation failure in a PON in the related art;
fig. 2 is a flowchart of a fault detection method according to an embodiment of the present application;
fig. 3 is a flowchart of another fault detection method provided in the embodiment of the present application;
fig. 4 is a flowchart of a method for detecting an occupied ONU according to an embodiment of the present application;
fig. 5 is a flowchart of a method for detecting that an ONU is occupied according to an embodiment of the present disclosure. (ii) a
Fig. 6 is a schematic block diagram of a structure of a fault detection apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a fault detection device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
A Gigabit-capable Passive Optical Network (G-PON) is one of Passive Optical networks (hereinafter, referred to as PON). The gigabit passive Optical Network device includes an Optical line terminal (hereinafter abbreviated as OLT), an Optical Distribution Network (hereinafter abbreviated as ODN), and an Optical Network unit (hereinafter abbreviated as ONU). Fig. 1 is a schematic diagram illustrating a fault of allocation identifier occupation (i.e., Alloc-ID occupation) in a PON in the related art. As shown in fig. 1, the OLT110 is connected to a plurality of ONUs 130 via the ODN120, and the transmission direction from the OLT110 to the ONUs 130 is the downstream direction (downstream) and the transmission direction from the ONUs 130 to the OLT110 is the upstream direction (upstream), thereby realizing functions such as data traffic and configuration management. And if the ONU which fails to normally clear the local Alloc-ID in the fault is called as an occupied ONU, the ONU affected by the ONU is called as an occupied ONU. Then, the occupied ONU is ONU1, the occupied ONU is ONU2, and ONU2 occupies the Alloc-ID 256 of ONU1 in fig. 1.
In the PON, which is a point-to-multipoint topology, since the time division multiplexing scheme is used in the upstream direction, the ONU must transmit an upstream BURST (BURST) signal according to an upstream Bandwidth slot (Bandwidth Map, hereinafter abbreviated as Bwmap) allocated by the OLT. Therefore, both OLT and ONU have to ensure that no collision can occur at every moment in the upstream direction. Since the ONU uses the upstream burst signal, the ONU turns on the optical module each time the OLT assigns a Bwmap to the ONU, and turns off the optical module after the transmission is completed.
And the uplink Bwmap is assigned with the Alloc-ID as the identifier. For example, the OLT broadcasts an announcement of Alloc-ID 256startTime T1 endTime T2 in the downstream Bwmap, and the ONU with Alloc-ID 256 transmits upstream data within the time period T1 to T2.
The Alloc-ID is distributed by the OLT and is sent to the ONU in the online process of the ONU, and the related standard specifies that the ONU should clear all local Alloc-IDs after being disconnected.
In PON applications, it is found that some types of ONUs do not clear the local Alloc-ID after a drop, and some types of ONUs may not clear the local Alloc-ID after a drop. As shown in fig. 1, assuming that the OLT first assigns Alloc-ID 256 to ONU2, and then the OLT restarts, ONU2 drops and does not delete local Alloc-ID 256 as specified by the standard, and the OLT considers Alloc-ID 256 to have been released. Assume that in the next round of Bwmap allocation, the OLT has allocated Alloc-ID 256 to ONU1 and Alloc-ID 257 to ONU 2. Then, after the OLT restarts, ONU2 has Alloc-ID 256 in addition to Alloc-ID 257 assigned by the OLT. In the uplink bandwidth time slot allocated to the Alloc-ID 256 by the OLT, both ONU1 and ONU2 are emitting light, which causes scrambling of uplink data and makes it impossible to analyze the uplink data normally.
Currently, such failures are mostly resolved manually by operation and maintenance personnel. After the operation and maintenance personnel receive the fault report of the user, if the ONU is in a normal state and the optical power is good, a large number of error codes are generated, and the OLT side cannot receive the uplink data of the ONU, namely, the fault that the Alloc-ID is occupied is presumed to occur. The solution scheme mainly comprises: adding a new Alloc-ID bearing service to the ONU, wherein the occupied Alloc-ID is not used any more; or restarting all ONUs under the OLT.
Since the service of occupying the ONU itself is normal and almost no abnormality is seen on the OLT side, it is very difficult to find the occupied ONU. Both of the above solutions avoid the trouble of finding the occupied ONU. However, the fault of the first scheme still exists, and the occupied ONU may continue to occupy other Alloc-IDs, thereby affecting other ONUs; the second solution is time consuming to operate and may have a relatively large negative impact.
In summary, in the existing PON networking scenario, the detection means for the above occupancy problem of Alloc-ID is inefficient, and needs to be improved urgently.
In view of this, the embodiments of the present application provide a fault detection method, which can quickly detect an Alloc-ID occupation fault.
Fig. 2 is a flowchart of a fault detection method according to an embodiment of the present application. The method may be performed by a fault detection apparatus, which may be constituted by software and/or hardware and integrated in a fault detection device, which may be an OLT, for example. As shown in fig. 2, the method includes:
step 210, obtaining data sent by the optical network unit, and determining whether a setting error occurs based on the data.
In the embodiment of the present application, the setting error includes a Bit Interleaved Parity error (BIP error for short) or a boundary loss error. It should be noted that, the setting error is only an example, and is not limited, and may be other errors that may occur in Alloc-ID occupancy.
Illustratively, the OLT periodically scans each ONU that is on-line to obtain an upstream burst signal sent by the ONU, obtains a second parity bit in the upstream burst signal and data in the upstream burst signal, and calculates a first parity bit according to the data in the upstream burst signal. And the second check bit in the uplink burst signal is calculated by the ONU according to the data in the uplink burst signal by adopting a set algorithm. And the OLT adopts the same setting algorithm to calculate a first check bit according to the data in the row burst signal.
The first check bit may be a BIP check bit calculated by the OLT, and the second check bit may be a BIP check bit calculated by the ONU.
The first parity bits and the second parity bits are matched to determine the number of error parity bits. For example, the first parity bits and the second parity bits are compared bit by bit, and the number of different bits is recorded to obtain the number of error parity bits. Specifically, assuming that each ONU has 1000 upstream burst signals in the upstream every second, the error check bits are 4000 bits by comparison, that is, the number of error check bits is 4000 bits.
And determining that a bit interleaved parity error occurs in the case where the number satisfies a set condition. There may be many setting conditions for determining whether the bit interleaved parity error occurs in the optical network unit, and the embodiment of the present application is not limited in particular. For example, in the case where the amount of increase in the number of error check bits per unit time exceeds a set number threshold, it is determined that a bit interleaved parity error has occurred. Alternatively, an error of the number of error check bits determined based on two adjacent upstream burst signals is calculated, and if the error is within a set error range, it is determined that a bit interleaved parity error has occurred.
In an exemplary embodiment, if the number of error check bits increases by more than a set number threshold per second, it is determined that a bit interleaved parity error has occurred. The set number threshold is an empirical value obtained from a plurality of experiments.
In another exemplary embodiment, if an error between the number of error check bits determined from the current uplink burst signal and the number of error check bits determined from the previous adjacent uplink burst signal is within a set error range, it is determined that a bit interleaved parity error has occurred. The set error range is a value range obtained according to multiple experiments, and the probability of misjudgment is in an increasing trend along with the increase of the set error range; the probability of missed judgment is increased along with the reduction of the set error range.
It should be noted that, before sending the uplink burst signal to the OLT, the ONU calculates a value of the BIP check bit according to data in the uplink burst signal by using a set algorithm, and adds the value to the BIP check bit in the uplink burst signal. The BIP check bit is used to check whether the data in the uplink burst signal has changed during transmission. The BIP parity bits occupy 8bit positions in the frame structure of the uplink burst signal. Optionally, the BIP check bit is located at a frame header of the uplink burst signal, the frame header of the uplink burst signal further includes a delimiter, and the BIP check bit is located after the delimiter.
In an exemplary embodiment, an uplink burst signal sent by an optical network unit is obtained, and a delimiter in the uplink burst signal is searched; determining the number of times that the delimiter is not searched in unit time; and if the times exceed a set time threshold, determining that the delimitation loss error occurs. The set frequency threshold is an empirical value obtained from a plurality of experiments. It should be noted that, when the Alloc-ID is occupied, there is a very small probability that the delimiters of the ONU1 and the ONU2 are partially overlapped, at this time, the OLT cannot search the delimiters, the entire upstream burst signal is discarded, the ONU1 has no error code, but the number of times that the delimiters are lost per second exceeds the set number threshold, and it can be determined that a delimiter loss error occurs.
And step 220, determining whether the optical network unit has an allocation identifier occupation fault or not based on the number of the set errors.
In the embodiment of the present application, the OLT counts the number of times that the setting error continuously occurs. The number of times a setting error occurs may be identified using the setting parameter. For example, when it is detected that a setting error has occurred, the value of the setting parameter is incremented by 1. And if no setting error is detected, resetting the value of the setting parameter. For example, the equal time is used to represent the number of times that the BIP error meets the set condition, and detection is performed once every time an uplink burst signal is received. And if the BIP error meets the set condition, adding 1 to the equalTime, and otherwise, resetting the equalTime. Or, the equal time is adopted to represent the times of the occurrence of the delimitation loss error, and detection is performed once every time the uplink burst signal is received. And if the delimitation loss error occurs, adding 1 to the equalTime, and otherwise, resetting the equalTime.
Counting the number of times of the continuous occurrence of the setting error; and if the times meet the set times requirement, determining that the distribution identifier occupation fault occurs. The number of times of setting is required to be an empirical value obtained by a plurality of experiments. If the number of times of the consecutive BIP error or the boundary loss error exceeds the set number requirement, the current optical network unit is considered to have a fault that the Alloc-ID is occupied at a high probability, and the current optical network unit is called an occupied optical network unit (or an occupied ONU).
According to the technical scheme, whether a BIP error or a boundary loss error exists or not is determined through the acquired data sent by the optical network unit, and then whether an identifier allocation occupation fault occurs or not is judged according to the occurrence frequency of the BIP error or the boundary loss error, so that the identifier allocation occupation fault is automatically detected, and the detection efficiency is improved.
In an exemplary embodiment, before determining that the allocation identifier occupation failure occurs, the method further includes: judging whether a signal loss warning message of the optical network unit is received within a set time interval; if yes, the frequency of continuous occurrence of setting errors is modified to be zero; if not, determining that the allocation identifier occupation fault occurs. According to engineering experience, an optical network unit with a large error code can be on-line only for a long time, and the optical network unit can be quickly off-line after being on-line, so that the optical network unit is difficult to be on-line stably for a long time. And the occupied optical network unit of the Alloc-ID can be stably on-line, and almost has no difference with the normal ONU optical network unit except that the service is not communicated. Therefore, the adoption of the exemplary embodiment can further eliminate the possibility of error codes caused by link quality, and achieve the effect of reducing misjudgment.
In an exemplary embodiment, before determining that the allocation identifier occupation failure occurs, the method further includes: judging whether the optical power of the optical network unit meets a set power requirement; and if so, determining that the allocation identifier occupation fault occurs. It is known from experience that the OLT side received light is less likely to generate errors within a set optical power interval. Therefore, the exemplary embodiment can further eliminate the possibility of error codes caused by link quality, and achieve the effect of reducing misjudgment.
In an exemplary embodiment, after determining that the allocation identifier occupation failure occurs, the method further includes: and determining whether to report the distribution identifier occupation fault 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 one alarm reporting flag bit. After determining that a certain optical network unit has an occupation fault of an allocated identifier, the optical line terminal modifies the value of the alarm reporting flag bit corresponding to the optical network unit into a value corresponding to the reported alarm message. In this example, the olt reports an occupation fault of the allocation identifier to the upper control system. The embodiment of the present application does not limit the specific type of the upper control system. For example, the upper control system may be a network management system, and after a maintenance person of the network management system finds an alarm indicating that the allocated identifier occupies the fault, the fault is manually cleared, and at this time, the user may not yet perceive the fault, thereby reducing user complaints.
At present, after receiving a fault declaration of a user, if a certain optical network unit is in a normal state and has good optical power but generates a large number of error codes, an optical line terminal side cannot receive an uplink message of the optical network unit, and then suspects that the optical network unit has an identifier allocation occupation fault, and the fault solution efficiency is low because the fault is manually cleared.
In an exemplary embodiment, after determining that the allocation identifier occupation failure occurs, the method further includes: and the remaining network units except the occupied optical network unit in the online optical network unit are controlled, and the distribution identifier of the occupied optical network unit is deleted, so that the self-healing is realized in time when the fault occurs, the possibility that the user perceives the fault is greatly reduced, and the fault solving efficiency is improved. In fig. 1, ONU1 is an occupied optical network unit, ONU2 is an occupied optical network unit, and ONU2 occupies Alloc-ID 256 of ONU 1. By executing the fault detection method of the embodiment of the present application, it can be determined that ONU1 has an assigned identifier occupation fault, that is, it is determined that the Alloc-ID of ONU1 is occupied by another ONU. The OLT identifies all the on-line ONUs, and further identifies the remaining ONUs of all the on-line ONUs except ONU1, and sends a ploam (physical layer oam)) message to the remaining ONUs to delete the Alloc-ID of the occupied optical network unit (i.e., ONU 1). It should be noted that, if the occupied ONU has multiple Alloc-IDs, the occupied ONU performs the deleting operation for each Alloc-ID.
Optionally, after determining that the allocation identifier occupation failure occurs, the method further includes: and restarting all the optical network units under the optical line terminal to release the Alloc-ID allocated to the optical network units, thereby solving the problem of occupying faults of the Alloc-ID.
The above example, upon detecting an Alloc-ID occupancy failure and determining an occupied ONU, takes a series of measures to eliminate the failure or reduce the harm. However, the above examples are all solutions to resolve the Alloc-ID busy failure in case no occupied ONU is found. Fig. 3 is a flowchart of another fault detection method provided in an embodiment of the present application, where in the method shown in fig. 3, an OLT solves an Alloc-ID occupation fault when finding an occupied ONU. As shown in fig. 3, the method includes:
step 301, acquiring data sent by an optical network unit, and determining whether a setting error occurs based on the data.
In the embodiment of the application, the setting error includes a BIP error or a delimitation missing error.
Step 302, determining whether the number of occurrences of the setting error satisfies the setting condition, if yes, executing step 303, otherwise executing step 311.
For example, if a setting error occurs N times in succession, it is determined that the number of times of transmission of the setting error satisfies the setting condition. The value range of N can be set empirically. If the setting error occurs M (M < N) times continuously, the occurrence frequency of the setting error is determined not to meet the setting condition.
Step 303, determining that the optical network unit has an occupied allocation identifier fault, and referring the optical network unit as an occupied optical network unit.
And step 304, forbidding the occupied optical network unit to participate in the uplink bandwidth time slot allocation, and allocating the uplink bandwidth time slot for the allocation identifier corresponding to the occupied optical network unit.
Illustratively, the optical line terminal prohibits the occupied optical network unit from participating in the uplink bandwidth timeslot allocation by sending a PLOAM message to the occupied optical network unit. The optical line terminal continues to allocate the uplink bandwidth time slot for at least one allocation identifier (i.e. Alloc-ID) corresponding to the occupied optical network unit. Taking fig. 1 as an example, the ONU1 is prohibited from participating in the upstream bandwidth timeslot allocation, but allocates the upstream bandwidth timeslot for the Alloc-ID 256. Since ONU2 occupies Alloc-ID 256, only ONU2 transmits upstream data in the timeslot to which Alloc-ID 256 belongs, in case ONU1 is not allocated upstream bandwidth timeslot.
Step 305, in the uplink bandwidth timeslot, determining whether a valid uplink frame is received, if yes, executing step 306, otherwise, executing step 309.
It should be noted that, after the occupied ONU is prohibited to participate in the uplink bandwidth allocation, an uplink bandwidth timeslot is allocated to the Alloc-ID of the occupied ONU, and at this time, only the occupied ONU emits light in the uplink bandwidth timeslot, and the OLT can receive complete uplink data, that is, an effective uplink frame.
Step 306, determining to occupy the optical network unit according to the ONU-ID domain in the uplink physical layer overhead of the effective uplink frame.
Illustratively, if a valid uplink frame is received, the valid uplink frame is analyzed to obtain an ONU-ID field in an uplink Physical Layer Overhead (referred to as "PLOu") of the frame header. Further, an ONU that transmits upstream data is identified and referred to as an occupied ONU. As shown in fig. 1, according to the ONU-ID field in the frame header PLOu, the ouid occupying the ONU can be obtained, and the ouid analyzed here is 2.
Step 307, controlling the occupied optical network unit to delete the allocation identifier.
Illustratively, a PLOAM message is sent to the occupied optical network unit, causing it to delete the occupied allocation identifier.
Step 308, controlling the occupied onu to restart, and then, executing step 310.
Illustratively, an OMCI message is sent to the occupied optical network unit to cause it to restart.
Step 309, modifying the value of the alarm flag bit to prohibit the occupied optical network unit from reporting the allocation identifier occupation fault, and then executing step 310.
Illustratively, if no valid uplink frame is received, it indicates a false detection of an assigned identifier occupancy failure. And modifying the value of the alarm reporting flag bit corresponding to the occupied optical network unit into a value corresponding to the alarm report prohibition message, wherein the OLT does not report the Alloc-ID occupation alarm to the upper control system for the optical network unit. It should be noted that an optical network unit corresponds to an alarm reporting flag, and the alarm reporting flag is cleared when the corresponding optical network unit is deleted.
It should be noted that, if the occupied ONU is allocated with multiple Alloc-IDs, the above step 305 and step 309 are respectively performed on each Alloc-ID to determine whether a valid upstream frame is received for each Alloc-ID. And if the operations are executed aiming at all Alloc-IDs of the occupied ONU and no valid frame is received, determining that the detection is false detection. For the case that a valid frame is received, step 306 and 308 are performed. Optionally, if the occupied ONU occupies two or more Alloc-IDs of the occupied ONU, step 308 is executed after all Alloc-IDs of the occupied ONUs in the occupied ONU are deleted.
And step 310, allowing the occupied optical network unit to participate in the uplink bandwidth time slot allocation.
Step 311 is to clear the parameter for recording the number of occurrences of the setting error.
According to the technical scheme provided by the embodiment of the application, the occupied ONU is determined by detecting the loss of the BIP error or the delimitation of the optical network unit, the occupied ONU is forbidden to participate in the uplink bandwidth allocation, the uplink bandwidth time slot is allocated to the Alloc-ID of the occupied ONU, only the occupied ONU emits light in the uplink bandwidth time slot at the moment, and the OLT can receive the effective uplink frame. And the occupied ONU can be found by analyzing the ONU-ID field in the PLOu of the frame header in the effective uplink frame. And the occupied ONU is enabled to release the Alloc-ID through the PLOAM message, and the occupied ONU is restarted through the OMCI message, so that the occupation of the Alloc-ID is completely eliminated, and the self-healing can be realized in time when the fault occurs.
In an exemplary application scenario, a method for detecting an Alloc-ID occupied ONU is provided. Fig. 4 is a flowchart of a method for detecting an occupied ONU according to an embodiment of the present application. As shown in fig. 4, the method includes:
step 401, start detection.
Step 402: the OLT scans BIP error and delimitation loss of each ONU in a timing mode.
And 403, judging whether the numerical value or the delimitation missing frequency of the BIP error meets a set condition, if so, executing a step 404, and otherwise, executing a step 410.
Taking the application scenario shown in fig. 1 as an example, since ONU1 and ONU2 are both emitting light in the timeslot of Alloc-ID 256, there is a BIP error (or boundary loss) certainly, and since the upstream bandwidth timeslot is allocated to ONU1, the OLT considers that the BIP error (or referred to as error code) is generated by ONU1, and ONU2 does not have a BIP error.
Each uplink BURST signal has a BIP check bit to check whether the data in the BURST changes during transmission. The BIP check bit is 8 bits after the delimiter and is calculated by the ONU. After receiving the uplink data (namely, the uplink BURST signal), the OLT calculates an 8-bit BIP check bit according to the same method, and compares the 8-bit BIP check bit with the 8-bit BIP check bit sent by the ONU, if one bit is different, the value of the BIP error is added with 1.
The BIP error statistical rule caused by Alloc-ID occupation mainly comprises two points:
1. different from the BIP error caused by the link quality, the numerical value of the BIP error caused by the occupation of the Alloc-ID is very large, and the numerical value of the BIP error accumulated every second is about 4000 bits. According to the calculation method of the BIP check bits, when a section of continuous data with more than 8 bits in a BURST has errors, the error flag bit is 4 bits according to the probability. If each ONU has 1000 BURSTs in the uplink every second, the error flag bit is 4000 bits. Engineering failures also verify the accuracy of this data. The values of BIP error caused by link quality are usually very small, in the order of tens of bits per second. Experiments show that the variable optical attenuator is used for controlling the link quality, and the ONU cannot be stably on-line when the value of the BIP error per second is more than 100 bits.
The values of BIP error caused by Alloc-ID occupancy are very stable, and the cumulative BIP error values are very close at the same interval. The value of BIP error caused by link quality is small and large.
In summary, if the BIP error read meets one of the following two conditions, it is considered that Alloc-ID occupation is possible: 1. the value of BIP error that increases per second is greater than mbit, where m is an empirical value; 2. the error between the value of the BIP error read at this time and the value read at the last time is within n%, wherein n% is an empirical value, the larger the value is, the probability of erroneous judgment is increased, and the smaller the value is, the probability of missed judgment is increased.
When the Alloc-ID is occupied, the delimiter of the ONU1 and the delimiter of the ONU2 are partially overlapped with each other with a small probability, at this time, the OLT cannot search the delimiter, the entire upstream BURST is discarded, and the ONU1 has no error code, but the delimiter is lost 1000 times/second. The judgment criterion at this time is as follows: the condition is satisfied considering only the delimitation loss more than 500 times/second, without considering the BIP error.
Step 404, marking the BIP error or the times that the boundary loss meets the condition in the step 403 by using the equalTime, adding 1 to the equalTime every time the detection is performed, and executing the step 406 if the detection is performed.
Step 405, marking the BIP error or the times that the boundary loss meets the conditions in step 403 by using the equalTime, carrying out detection once, clearing the equalTime if the BIP error or the boundary loss does not meet the conditions, and executing step 402 after delaying T1.
Step 406, determining whether the equalTime is greater than N, if so, performing step 407, otherwise, delaying T1 and performing step 402.
For example, after N consecutive BIP error or delimitation misses meet the conditions in step 403, it is considered that the ONU1 has a high probability of having the Alloc-ID occupied.
Step 407, determining whether the ONU1 has an loi within X minutes, if so, executing step 405, otherwise, executing step 408.
It should be noted that the purpose of determining whether the ONU1 has a LOSi within X minutes is to further eliminate the possibility of error caused by the link. According to engineering experience, an ONU with a large error code can be on-line only for a long time, and the ONU can be quickly off-line after being on-line, so that the ONU is difficult to be on-line stably for a long time. And the ONU with the occupied Alloc-ID can be stably online, and almost has no difference with a normal ONU except that the service is not communicated. Where X minutes is also an empirical value.
And step 408, judging whether the optical power of the ONU1 is good, if so, executing step 409, otherwise, delaying T1 and then executing step 402.
It should be noted that, determining whether the optical power of the ONU1 is good is also to eliminate the possibility of errors caused by the link. According to the empirical value, the OLT side light receiving is within-12 dbm-28 dbm, and error codes are rarely generated. The alarm can be reported only in a good range of the optical power of the ONU1, and the misjudgment is further reduced.
Step 409, judging whether the value of the alarm reporting flag bit represents alarm reporting, if so, executing step 410, otherwise, executing step 402 after delaying T1.
And step 410, reporting an ONU1 Alloc-ID occupied alarm.
For example, when the alarm reporting flag reportFlag is 1, the reporting ONU1 Alloc-ID is occupied. After a delay T1, the process returns to step 402.
In an exemplary application scenario, a method for determining occupation of an ONU is provided. Fig. 5 is a flowchart of a method for detecting that an ONU is occupied according to an embodiment of the present disclosure. As shown in fig. 5, the method includes:
step 501, starting a timing detection task.
Step 502, regularly detecting whether an ONU Alloc-ID is occupied and reporting an alarm.
Illustratively, a system task is established in the OLT, so as to scan whether an ONU Alloc-ID is occupied for alarm reporting at regular time. If yes, go to step 503, otherwise, go to step 502 again after time delay T2.
Step 503, assuming that there is an ONU1 configured with an occupied alarm report, prohibiting ONU1 from participating in uplink bandwidth allocation through a PLOAM message.
In the embodiment of the present application, ONU1 is prohibited from participating in upstream bandwidth allocation through PLOAM message, that is, ONU1 is turned off to emit light.
And step 504, allocating an upstream bandwidth time slot to the Alloc-ID of the ONU 1.
It should be noted that the ONU1 may have multiple Alloc-IDs, and for simplifying the flowchart, one Alloc-ID 256 is taken as an example for description here. For a plurality of Alloc-IDs, the following steps are performed for each Alloc-ID, respectively.
At this time, only ONU2 in the timeslot to which Alloc-ID 256 belongs transmits upstream data, and since there is no real traffic, ONU2 transmits null frames.
Step 505, determining whether a valid uplink frame is received, if yes, executing step 506, otherwise, executing step 509.
And step 506, determining to occupy the ONU according to the effective uplink frame.
If the valid frame is received, according to the ONU-ID field in the frame header PLOu, the ouid occupying the ONU can be obtained, and the ouid analyzed here is 2.
Step 507, sending Assign _ Alloc-ID PLOAM message to the occupied ONU, and enabling the occupied Alloc-ID to be deleted.
In the embodiment of the present application, the occupied ONU is ONU 2.
And step 508, sending OMCI information to the occupied ONU, and restarting the occupied ONU.
Step 509, determining that the alarm of the occupied Alloc-ID is false detection, and setting the value of reportFlag of the occupied ONU to zero.
If no effective uplink frame is received, the alarm is false detection, the reportFlag of the ONU is set to 0, and the Alloc-ID occupation alarm is not reported for the ONU any more. This flag is cleared when the ONU is deleted.
And step 510, allowing the occupied ONU to participate in the upstream bandwidth time slot allocation.
For example, ENABLE ONU1 permits ONU1 to participate in upstream bandwidth allocation, i.e., turns on ONU1 to emit light.
Fig. 6 is a block diagram schematically illustrating a structure of a fault detection apparatus according to an embodiment of the present application. The device improves the detection efficiency of the occupied Alloc-ID fault by executing the fault detection method provided by the embodiment of the application. As shown in fig. 6, the failure detection apparatus in the embodiment of the present application includes:
a data obtaining module 610, configured to obtain data sent by an optical network unit, and determine whether a setting error occurs based on the data;
a failure determining module 620, configured to determine whether an assignment identifier occupation failure occurs in the optical network unit based on the number of occurrences of the setting error.
The fault detection device provided in the embodiment of the present application is configured to implement the fault detection method in the embodiment shown in fig. 2, and the implementation principle and the technical effect of the fault detection device are similar to those of the fault detection method, and are not described herein again.
In an exemplary embodiment, the set error includes a bit interleaved parity error or a delimitation loss error.
In an exemplary embodiment, the data obtaining module 610 is specifically configured to:
acquiring an uplink burst signal sent by an optical network unit, and calculating a first check bit according to data in the uplink burst signal;
matching the first check bit with a second check bit in the uplink burst signal to determine the number of error check bits;
and determining that a bit interleaved parity error occurs in the case where the number satisfies a set condition.
In an exemplary embodiment, determining that a bit interleaved parity error occurs in case that the number satisfies a set condition includes:
and determining that a bit interleaved parity error occurs in a case where an increase amount of the number per unit time exceeds a set number threshold.
In an exemplary embodiment, determining that a bit interleaved parity error occurs in case that the number satisfies a set condition includes:
and calculating the error of the number of error check bits determined based on two adjacent uplink burst signals, and determining that the bit-interleaved parity error occurs if the error is within a set error range.
In an exemplary embodiment, the data obtaining module 610 is specifically configured to:
acquiring an uplink burst signal sent by an optical network unit, and searching a delimiter in the uplink burst signal;
determining the number of times that the delimiter is not searched in unit time;
and if the times exceed a set time threshold, determining that the delimitation loss error occurs.
In an exemplary embodiment, the failure determination module 620 is specifically configured to:
counting the number of times of the continuous occurrence of the setting error;
and if the times meet the requirement of the set times, determining that the optical network unit has the occupation fault of the distribution identifier.
In an exemplary embodiment, before determining that the allocation identifier occupation failure occurs, the method further includes:
judging whether a signal loss warning message of the optical network unit is received within a set time interval;
if yes, the frequency of continuous occurrence of setting errors is modified to be zero;
if not, determining that the optical network unit has an occupation fault of the distribution identifier.
In an exemplary embodiment, before determining that the allocation identifier occupation failure occurs, the method further includes:
judging whether the optical power of the optical network unit meets a set power requirement;
and if so, determining that the optical network unit has an occupation fault of the distribution identifier.
In an exemplary embodiment, after determining that the allocation identifier occupation failure occurs, the method further includes:
and determining whether to report the distribution identifier occupation fault of the optical network unit according to the value of the alarm reporting flag bit corresponding to the optical network unit.
In an exemplary embodiment, after determining that the allocation identifier occupation failure occurs, the method further includes:
and controlling the rest network units except the occupied optical network unit in the online optical network unit, and deleting the distribution identifier of the occupied optical network unit.
In an exemplary embodiment, after determining that the allocation identifier occupation failure occurs, the method further includes:
forbidding the occupied optical network unit to participate in uplink bandwidth time slot allocation, and allocating uplink bandwidth time slots for allocation identifiers corresponding to the occupied optical network unit;
judging whether a valid uplink frame is received or not in the uplink bandwidth time slot;
if yes, determining to occupy the optical network unit according to the effective uplink frame, controlling the occupied optical network unit to delete the distribution identifier, and controlling the occupied optical network unit to restart;
otherwise, modifying the value of the alarm flag bit to prohibit the occupied optical network unit from reporting the occupied fault of the distribution identifier;
and allowing the occupied optical network unit to participate in the uplink bandwidth time slot allocation.
The embodiment of the application provides fault detection equipment. Fig. 7 is a schematic structural diagram of a fault detection device according to an embodiment of the present application. As shown in fig. 7, the fault detection device includes a memory 710, and one or more processors 720; the memory 710 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 are enabled to implement the fault detection method according to the embodiment of the present application.
Illustratively, the fault detection device may be an Optical Line Terminal (OLT) or the like.
The fault detection device provided above may be configured to perform the fault detection method provided in any of the embodiments above, and has corresponding functions and advantages.
Embodiments of the present application also provide a storage medium of executable instructions, which when executed by a computer processor are configured to perform a method of fault detection, the method comprising:
acquiring data sent by an optical network unit, and determining whether a setting error occurs or not based on the data;
and judging whether the optical network unit has the distribution identifier occupation fault or not based on the occurrence frequency of the setting error.
The above description is only exemplary embodiments of the present application, and is not intended to limit the scope of the present application.
In general, the various embodiments of the application may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the application is not limited thereto.
Any logic flow block diagrams in the figures of this application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions. The computer program may be stored on a memory. The memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, Read Only Memory (ROM), Random Access Memory (RAM), optical storage devices and systems (digital versatile disks, DVDs, or CD discs), etc. The computer readable medium may include a non-transitory storage medium. The data processor may be of any type suitable to the local technical environment, such as but not limited to general purpose computers, special purpose computers, microprocessors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), programmable logic devices (FGPAs), and processors based on a multi-core processor architecture.

Claims (15)

1. A method of fault detection, comprising:
acquiring data sent by an optical network unit, and determining whether a setting error occurs or not based on the data;
and judging whether the optical network unit has the distribution identifier occupation fault or not based on the occurrence frequency of the setting error.
2. The method of claim 1, wherein the set error comprises a bit interleaved parity error or a delimitation loss error.
3. The method of claim 2, wherein obtaining data sent by an optical network unit and determining whether a setting error occurs based on the data comprises:
acquiring an uplink burst signal sent by an optical network unit, and calculating a first check bit according to data in the uplink burst signal;
matching the first check bit with a second check bit in the uplink burst signal to determine the number of error check bits;
and determining that a bit interleaved parity error occurs in the case where the number satisfies a set condition.
4. The method of claim 3, wherein determining that a bit-interleaved parity error has occurred if the number satisfies a set condition comprises:
and determining that a bit interleaved parity error occurs in a case where an increase amount of the number per unit time exceeds a set number threshold.
5. The method of claim 3, wherein determining that a bit-interleaved parity error has occurred if the number satisfies a set condition comprises:
and calculating the error of the number of error check bits determined based on two adjacent uplink burst signals, and determining that the bit-interleaved parity error occurs if the error is within a set error range.
6. The method of claim 2, wherein obtaining data sent by an optical network unit and determining whether a setting error occurs based on the data comprises:
acquiring an uplink burst signal sent by an optical network unit, and searching a delimiter in the uplink burst signal;
determining the number of times that the delimiter is not searched in unit time;
and if the times exceed a set time threshold, determining that the delimitation loss error occurs.
7. The method according to claim 1, wherein determining whether the optical network unit has an assignment identifier occupation failure based on the number of occurrences of the setting error comprises:
counting the number of times of the continuous occurrence of the setting error;
and if the times meet the requirement of the set times, determining that the optical network unit has the occupation fault of the distribution identifier.
8. The method of claim 7, further comprising, prior to determining that an assignment identifier occupancy failure occurred:
judging whether a signal loss warning message of the optical network unit is received within a set time interval;
if yes, the frequency of continuous occurrence of setting errors is modified to be zero;
if not, determining that the optical network unit has an occupation fault of the distribution identifier.
9. The method of claim 8, further comprising, prior to determining that an assignment identifier occupancy failure occurred:
judging whether the optical power of the optical network unit meets a set power requirement;
and if so, determining that the optical network unit has an occupation fault of the distribution identifier.
10. The method according to any of claims 1-9, further comprising, after determining that an assignment identifier occupancy failure has occurred:
and determining whether to report the distribution identifier occupation fault of the optical network unit according to the value of the alarm reporting flag bit corresponding to the optical network unit.
11. The method of claim 10, wherein after determining that an assignment identifier occupancy failure has occurred, further comprising:
and controlling the rest network units except the occupied optical network unit in the online optical network unit, and deleting the distribution identifier of the occupied optical network unit.
12. The method of claim 10, wherein after determining that an assignment identifier occupancy failure has occurred, further comprising:
forbidding the occupied optical network unit to participate in uplink bandwidth time slot allocation, and allocating uplink bandwidth time slots for allocation identifiers corresponding to the occupied optical network unit;
judging whether a valid uplink frame is received or not in the uplink bandwidth time slot;
if yes, determining to occupy the optical network unit according to the effective uplink frame, controlling the occupied optical network unit to delete the distribution identifier, and controlling the occupied optical network unit to restart;
otherwise, modifying the value of the alarm flag bit to prohibit the occupied optical network unit from reporting the occupied fault of the distribution identifier;
and allowing the occupied optical network unit to participate in the uplink bandwidth time slot allocation.
13. A fault detection device, comprising:
the data acquisition module is used for acquiring data sent by the optical network unit and determining whether a setting error occurs or not based on the data;
and the fault determination module is used for determining whether the optical network unit has the distribution identifier occupation fault or not based on the occurrence frequency of the setting error.
14. A fault detection device, characterized in that the fault detection device comprises: a memory, and one or more processors;
the memory arranged to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-12.
15. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1-12.
CN201911265378.3A 2019-12-11 2019-12-11 Fault detection method, device, equipment and storage medium Pending CN112953627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911265378.3A CN112953627A (en) 2019-12-11 2019-12-11 Fault detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911265378.3A CN112953627A (en) 2019-12-11 2019-12-11 Fault detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112953627A true CN112953627A (en) 2021-06-11

Family

ID=76226374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911265378.3A Pending CN112953627A (en) 2019-12-11 2019-12-11 Fault detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112953627A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374900A (en) * 2022-01-04 2022-04-19 烽火通信科技股份有限公司 Distribution identifier abnormal occupation processing method, device, equipment and storage medium
CN117353873A (en) * 2023-12-04 2024-01-05 科谱半导体(天津)有限公司 Uplink frame verification method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114374900A (en) * 2022-01-04 2022-04-19 烽火通信科技股份有限公司 Distribution identifier abnormal occupation processing method, device, equipment and storage medium
CN114374900B (en) * 2022-01-04 2023-05-12 烽火通信科技股份有限公司 Method, device, equipment and storage medium for processing abnormal occupation of allocation identifier
CN117353873A (en) * 2023-12-04 2024-01-05 科谱半导体(天津)有限公司 Uplink frame verification method and device, electronic equipment and storage medium
CN117353873B (en) * 2023-12-04 2024-02-13 科谱半导体(天津)有限公司 Uplink frame verification method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP7176111B2 (en) Positioning method and apparatus for burst type continuous emission interference ONU
EP2418871B1 (en) Method and apparatus for detecting rogue optical network unit in passive optical network
US7684345B2 (en) Method for monitoring upstream burst performance in a point to multi-point access network
JP6431184B2 (en) Method and apparatus for determining fraudulent ONUs in a PON
US20140010529A1 (en) Method for Detecting and Excluding Failed Optical Network Termination
CN112953627A (en) Fault detection method, device, equipment and storage medium
CN107294595B (en) Detection method and device for long-luminescence optical network unit and optical line terminal
WO2022267737A1 (en) Fault positioning and detection method, root node, communication system topology and storage medium
US20170005722A1 (en) Method and Device for Detecting Rogue Behavior
CA2985162A1 (en) Optical line terminal and failed terminal identification method for pon communication system
CN108370271B (en) Detection method and device of optical network unit and passive optical network system
CN111954101B (en) Method and device for detecting repeated ALLOC ID in GPON system
CN105281824A (en) Method and device for detecting constant light-emitting optical network unit (ONU) and network management equipment
CN114374900B (en) Method, device, equipment and storage medium for processing abnormal occupation of allocation identifier
CN112218180B (en) Method, apparatus, storage medium, and program product for detecting status of optical fiber
CN112822229B (en) ONU (optical network Unit) fault processing method, ONU, PON (Passive optical network) system and storage medium
KR20180057475A (en) Traffic explosion resolving apparatus and method for sdn-based passive optical networks
WO2023142469A1 (en) Alarm detection method, electronic device and computer-readable storage medium
CN111970049B (en) Optical power detection method and device
KR101586076B1 (en) System and method for recovering error in Passive Optical Network
CN113727223B (en) Uplink data transmission method, abnormal light emitting detection method, equipment and system
JP2012151737A (en) Station side optical network terminal device, optical communication system, abnormality detection method, and device program
KR20090125957A (en) Method and system for detecting fault at ethernet passive optical network
CN115515028A (en) Method and device for managing ONU (optical network Unit) state by OLT (optical line terminal)
CN116916196A (en) Optimization method and device for passive optical network, electronic equipment and storage medium

Legal Events

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