CN112218180B - Method, apparatus, storage medium, and program product for detecting status of optical fiber - Google Patents

Method, apparatus, storage medium, and program product for detecting status of optical fiber Download PDF

Info

Publication number
CN112218180B
CN112218180B CN201910628109.2A CN201910628109A CN112218180B CN 112218180 B CN112218180 B CN 112218180B CN 201910628109 A CN201910628109 A CN 201910628109A CN 112218180 B CN112218180 B CN 112218180B
Authority
CN
China
Prior art keywords
equipment
alarm
determining
optical fiber
state
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.)
Active
Application number
CN201910628109.2A
Other languages
Chinese (zh)
Other versions
CN112218180A (en
Inventor
钟梅元
谢于明
周世勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910628109.2A priority Critical patent/CN112218180B/en
Publication of CN112218180A publication Critical patent/CN112218180A/en
Application granted granted Critical
Publication of CN112218180B publication Critical patent/CN112218180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • 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 discloses a method, a device, a storage medium and a program product for detecting the state of an optical fiber, belonging to the technical field of communication. The method comprises the following steps: after determining that the first device corresponds to an loi alarm or an LOFi alarm, the DGi alarm reporting capability of the first device may be obtained, and it is determined whether the second device receives the DGi alarm reported by the first device within a first preset time period, where the DGi alarm reporting capability is determined based on historical alarm information of the first device within a second preset time period before a current time point, and the first preset time period is a preset time period after the second device determines the loi alarm or the LOFi alarm, and if the second device does not receive the DGi alarm reported by the first device within the first preset time period, the state of an optical fiber between the second device and the first device may be determined based on the DGi alarm reporting capability of the first device. By the method and the device, the accuracy of optical fiber interruption detection can be improved.

Description

Method, apparatus, storage medium, and program product for detecting status of optical fiber
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a storage medium, and a program product for detecting a state of an optical fiber.
Background
Fiber To The Home (FTTH) uses an Optical Fiber To provide transmission resources for users, and an operator generally uses an Optical Line Terminal (OLT) To detect whether The Optical Fiber is interrupted in order To better maintain The Optical Fiber, and then timely maintains The Optical Fiber after detecting The Optical Fiber interruption.
Before an Optical Network Terminal (ONT) goes offline, if the OLT displays a Loss of Frame (LOFi) alarm or Loss of signal (Loss of signal, LOSi) alarm, it may be determined that the Optical fiber from the OLT to the ONT is interrupted. The processing of judging whether to display the LOFi alarm or the LOSi alarm is as follows: when detecting LOFi alarm or LOSi alarm, determining whether a Dying Gasp (DG) i alarm reported by ONT is received, if receiving DGi, not displaying LOFi alarm or LOSi alarm, but displaying DGi alarm. And if the DGi is not received, displaying a LOFi alarm or a LOSi alarm.
Because the capacitor module of the ONT which runs for many years can have a failure condition, the DGi alarm can not be sent even if the ONT is powered off. Therefore, when the OLT displays the LOFi alarm or the loi alarm, even if the ONT is powered off, the ONT cannot be determined to be powered off because the optical fiber is interrupted, which results in inaccurate determination results.
Disclosure of Invention
In order to solve the problem of inaccurate judgment result, the embodiment of the application provides a method and a device for detecting the state of an optical fiber. The technical scheme is as follows:
in a first aspect, a method for detecting the status of an optical fiber is provided, the method comprising:
determining a loss of signal (LOSi) alarm or a loss of frame (LOFi) alarm corresponding to a first device, wherein i is used for indicating the first device, acquiring the DGi alarm reporting capability of the first device, and judging whether a second device receives the DGi alarm reported by the first device within a first preset time length, wherein the DGi alarm reporting capability is determined based on historical alarm information of the first device within a second preset time length before the current time point, the first preset time length is a preset time length after the second device determines the LOSi alarm or the LOFi alarm, and if the DGi alarm reported by the first device is not received by the second device within the first preset time length, determining the state of an optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device.
According to the scheme shown in the embodiment of the application, the second device may periodically send an optical signal sending indication message to the first device, the optical signal sending indication message carries a time slot in which the first device sends an optical signal, the first device may send the optical signal to the second device in a corresponding time slot, and the second device may generate an LOFi alarm if continuous 4 frames cannot be located to an uplink frame of the first device, so that the second device determines that the first device corresponds to the LOFi alarm, and the second device may generate an LOSi alarm if continuous 4 frames cannot be located to the uplink frame of the first device, so that the second device determines that the first device corresponds to the LOSi alarm. When the second device is a detection device, at this time, the detection device may determine that the first device corresponds to an LOFi alarm or an loi alarm. And when the second equipment is not the detection equipment, the second equipment reports the LOFi alarm or the LOSi alarm corresponding to the first equipment to the detection equipment. In this way, the detection device may also determine that the first device corresponds to a LOFi alarm or a loi alarm.
The detection device may determine, based on historical alarm information of the first device within a second preset time period before the current time point, a DGi alarm reporting capability of the first device, determine whether the second device receives a DGi alarm reported by the first device within the first preset time period, and if it is determined that the second device does not receive a DGi alarm reported by the first device within the first preset time period, may determine a state of an optical fiber between the second device and the first device using the DGi alarm reporting capability of the first device.
Therefore, whether the optical fiber between the second device and the first device is interrupted can be determined based on the DGi alarm reporting capability of the current first device, and the optical fiber interruption cannot be directly judged, so that the judgment accuracy can be improved.
As a possible implementation manner, the determining the state of the optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device includes: and if the first equipment has the DGi alarm reporting capacity, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
According to the scheme shown in the embodiment of the application, when the first device has the DGi alarm reporting capability, the first device can report the DGi alarm, but the second device does not receive the DGi alarm reported by the first device, so that the state of the optical fiber between the second device and the first device can be determined to be the interruption state.
As a possible implementation manner, the determining a state of an optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device includes: if the first device does not have the DGi alarm reporting capacity, acquiring error code information in at least two continuous statistical periods before the LOSi alarm or the LOFi alarm is determined, wherein the error code information comprises error code information of GTC frames transmitted between the second device and the first device, and determining the state of an optical fiber between the second device and the first device according to the error code information.
According to the scheme shown in the embodiment of the application, when the first device does not have the DGi alarm reporting capability, the detection device may obtain error code information of a gigabit passive optical network (GPON Transmission Convergence (GTC) frame transmitted between the second device and the first device in at least two continuous statistical periods before the second device determines the lois alarm or the LOFi alarm of the first device. And then determining the state of the optical fiber between the second device and the first device by using the error code information of the GTC frames transmitted between the second device and the first device in at least two continuous statistical periods. Therefore, the state of the optical fiber can be determined when the first equipment does not have the DGi alarm reporting capability.
As a possible implementation manner, the error code information includes a bit interleaved parity check (BIP) error count; determining the state of the optical fiber between the second device and the first device according to the error code information includes: determining an increment value of a BIP error count of an adjacent statistical period of the at least two consecutive statistical periods; and if the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
In the scheme shown in the embodiment of the present application, the error code information includes a Bit Interleaved Parity (BIP) error count, the error code information of the GTC frame transmitted between the second device and the first device includes a BIP error count, and the detection device may determine an increment value of the BIP error count of adjacent statistical periods in at least two consecutive statistical periods. And then judging whether the increment value of the BIP error count of the adjacent statistical period exceeds a first numerical value, wherein if the increment value of the BIP error count of the adjacent statistical period exceeds a preset first numerical value, it can be said that the optical fiber is disconnected due to the interruption of the optical fiber, and the state of the optical fiber between the second device and the first device can be determined to be an interruption state. Therefore, the state of the optical fiber can be determined when the first equipment does not have the DGi alarm reporting capability.
As a possible implementation manner, the determining that the state of the optical fiber between the second device and the first device is an interrupted state if the increment value of the BIP error count exceeds a preset first value includes: and if the Forward Error Correction (FEC) function of the second equipment is not started and the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
In the solution shown in the embodiment of the present application, since the FEC function may affect the BIP error count, on the basis that the FEC function is not turned on, the state of the optical fiber between the second device and the first device is determined by using an increment value of the BIP error count. Thus, the detection result can be more accurate.
As a possible implementation, the method further includes: and if the Forward Error Correction (FEC) function of the second equipment is started, determining the state of the optical fiber between the second equipment and the first equipment according to the increment value of the FEC error count in the continuous at least two statistical periods.
According to the scheme shown in the embodiment of the application, when the FEC function is started, the increment value of the FEC error count in at least two continuous statistical periods can be directly used for determining the state of the optical fiber between the second equipment and the first equipment, and the BIP error count is not used, so that the detection result can be more accurate.
As a possible implementation manner, the error information further includes a header error check HEC error count or a frame check sequence FCS error count; determining that the state of the optical fiber between the second device and the first device is an interruption state if the FEC function of the second device is not turned on and the increment value of the BIP error count exceeds a preset first value, including: determining a increment value of HEC error counts of adjacent statistical periods in the at least two consecutive statistical periods, and determining a increment value of FCS error counts of adjacent statistical periods in the at least two consecutive statistical periods; and if the FEC function of the second equipment is not started, the increment value of the BIP error count exceeds a preset first numerical value, the increment value of the HEC error count exceeds a preset second numerical value and/or the increment value of the FCS error count exceeds a preset third numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
In the scheme shown in the embodiment of the application, in order to make the detection result more accurate, the increment value of the HEC error count and the increment value of the FCS error count are also considered, so that the detection result can be made more accurate.
As a possible implementation, the method further includes: if the first equipment reports the DGi alarm within the second preset time length which is the latest before the current time point, determining that the first equipment has DGi alarm reporting capacity; and if the first equipment does not report the DGi alarm within the second preset time length which is the latest before the current time point, determining that the first equipment does not have the DGi alarm reporting capacity.
According to the scheme shown in the embodiment of the application, the probability of having the DGi alarm reporting capability is higher if the DGi alarm is reported within a certain time, and the probability of having the DGi alarm reporting capability is lower if the DGi alarm is not reported within a certain time, so that whether the first device has the DGi alarm reporting capability can be judged based on the probability.
As a possible implementation, the method further includes: if the network to which the second device belongs is a Gigabit Passive Optical Network (GPON), determining that the FEC function of the second device is not started; and if the network to which the second device belongs is the XGS PON, determining that the FEC function of the second device is started.
In the solution shown in the embodiment of the present application, the GPON default FEC function is not turned on, so that the network to which the second device belongs is the GPON, and it can be determined that the FEC function is not turned on. The XGS PON defaults that the FEC function is on, so that it can be determined that the FEC function is on when the network to which the second device belongs is GPON.
In a second aspect, there is provided an apparatus for detecting a condition of an optical fiber, the apparatus comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that the first equipment corresponds to an LOSi alarm or an LOFi alarm, and i is used for indicating the first equipment;
an obtaining module, configured to obtain a DGi alarm reporting capability of the first device; judging whether a second device receives a DGi alarm reported by a first device within a first preset time length, wherein the DGi alarm reporting capacity is determined based on historical alarm information of the first device within a second preset time length before the current time point, and the first preset time length is a preset time length after the second device determines the LOSi alarm or the LOFi alarm;
the determining module is further configured to determine, if it is determined that the second device does not receive the DGi alarm reported by the first device within the first preset time period, a state of an optical fiber between the second device and the first device based on a DGi alarm reporting capability of the first device.
As a possible implementation manner, the determining module is further configured to:
and if the first equipment has the DGi alarm reporting capacity, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the determining module is further configured to:
if the first device does not have DGi alarm reporting capacity, acquiring error code information in at least two continuous statistical periods before the LOSi alarm or the LOFi alarm is determined, wherein the error code information comprises error code information of a GTC frame transmitted between the second device and the first device;
and determining the state of the optical fiber between the second equipment and the first equipment according to the error code information.
As a possible implementation manner, the error code information includes a bit interleaved parity check (BIP) error count;
the determining module is further configured to:
determining an increment value of a BIP error count of an adjacent statistical period of the at least two consecutive statistical periods;
and if the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the determining module is further configured to:
and if the FEC function of the second equipment is not started and the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the error code information further includes an HEC error count or an FCS error count;
the determining module is further configured to:
determining a increment value of HEC error counts of adjacent statistical periods in the at least two consecutive statistical periods, and determining a increment value of FCS error counts of adjacent statistical periods in the at least two consecutive statistical periods;
and if the FEC function of the second equipment is not started, the increment value of the BIP error count exceeds a preset first numerical value, the increment value of the HEC error count exceeds a preset second numerical value and/or the increment value of the FCS error count exceeds a preset third numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the determining module is further configured to:
if the first equipment reports the DGi alarm within the second preset time length which is the latest before the current time point, determining that the first equipment has DGi alarm reporting capacity;
and if the first equipment does not report the DGi alarm within the second preset time length which is the latest before the current time point, determining that the first equipment does not have the DGi alarm reporting capacity.
As a possible implementation manner, the determining module is further configured to:
if the network to which the second device belongs is GPON, determining that the FEC function of the second device is not started;
and if the network to which the second device belongs is the XGS PON, determining that the FEC function of the second device is started.
In a third aspect, a detection device is provided, which includes a processor and a memory, where the memory includes computer readable instructions, and the processor is connected to the memory and configured to execute the computer readable instructions to implement the method for detecting the state of the optical fiber according to the first aspect.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon instructions which, when run on a detection device, cause the detection device to perform the method of the first aspect described above.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a detection device, cause the detection device to perform the method of the first aspect.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
in this embodiment, after determining that the first device corresponds to an loi alarm or an LOFi alarm, the detection device may obtain a DGi alarm reporting capability of the first device, and determine whether the second device receives the DGi alarm reported by the first device within a first preset time period, where the DGi alarm reporting capability is determined based on historical alarm information of the first device within a second preset time period before a current time point, the first preset time period is a preset time period after the second device determines the loi alarm or the LOFi alarm, and if the second device does not receive the DGi alarm reported by the first device within the first preset time period, the detection device may determine a state of an optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device. Therefore, when the terminal device is corresponding to the LOSi alarm or the LOFi alarm and the terminal device does not report the DGi alarm, the detection device can determine whether the optical fiber between the local side device and the terminal device is interrupted or not based on whether the current first device has the DGi alarm reporting capability or not, and the optical fiber interruption cannot be directly judged, so that the accuracy of optical fiber interruption detection can be improved.
Drawings
Fig. 1 is a schematic diagram of an optical fiber network provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a downstream transmission of an optical fiber network according to an embodiment of the present application;
fig. 3 is a schematic diagram of an optical fiber network uplink transmission provided in an embodiment of the present application;
fig. 4 is a schematic view of an application scenario provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a detection apparatus provided in an embodiment of the present application;
FIG. 6 is a schematic flow chart illustrating a method for detecting the condition of an optical fiber according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a GTC frame according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus for detecting a state of an optical fiber according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
To facilitate understanding of the embodiments of the present application, a system architecture related to the embodiments of the present application and concepts related to the terms are first described below.
The embodiment of the application can be applied to Optical fiber networks, and the Optical fiber networks can be various Passive Optical Networks (PONs). For example, a PON Network, a Gigabit Passive Optical Network (GPON), a ten Gigabit Symmetric Passive Optical Network (XGS PON), and so on. A passive Optical Network is a Network applied to an access Network, as shown in fig. 1, the Network includes a first device, a second device, and an Optical Distribution Network (ODN), the first device and the second device are connected by using an Optical cable, the Optical Distribution Network is composed of a plurality of passive Optical devices, and is located between the first device and the second device, and the passive Optical devices may be Optical splitters/combiners. The first device may be a customer premises device (which may be an ONT or an Optical Network Unit (ODU)), and the second device may be a local side device (which may be an OLT). The second device provides an interface between the network side and the core network for the access network.
It should be noted that the term "passive" refers to that the optical splitter/combiner in the optical distribution network between the OLT and the ONT is a passive device.
As shown in fig. 2, a schematic diagram of downlink data transmission in an optical fiber network is also shown, if there are three first devices, 1, 2, and 3, the second device sends data of 1, 2, and 3 to an optical distribution network (optical splitting device) through broadcasting, the optical distribution network sends data of 1, 2, and 3 to 1, 2, and 3, and data of 1 selects its own from data of 1, 2, and 3, and data of 2 selects its own from data of 1, 2, and 3, and data of 3 selects its own from data of 1, 2, and 3.
As shown in fig. 3, a schematic diagram of uplink data transmission in the optical fiber network is also given, or if there are three first devices, respectively 1, 2, and 3, and 1, 2, and 3 respectively transmit their own data to the optical distribution network (optical combiner) through the fiber entering the home, and the optical distribution network sends the data of 1, 2, and 3 to the second device.
In the embodiment of the present application, there are two application scenarios, one is: the detection device may be a further device separate from the first device and the second device, the detection device may be a network management device for managing individual devices in the fibre optic network, the detection device may also be a network controller for controlling individual devices in the fibre optic network, the detection device may also be a network analyser (which may be a server) for analysing the status of the fibre in the fibre optic network. As shown in fig. 4, the detection device may establish a connection with the first device and the second device, and obtain information from the first device and the second device for determining a state of the optical fiber between the second device and the first device. In this scenario the detection device may be a server.
The other is as follows: the detection device may be a second device, and may be software and hardware added to the second device for determining the status of the optical fiber between the second device and the first device, such that the second device is not only used for connecting the optical fiber trunk, but also for detecting the status of the optical fiber between the second device and the first device.
It should be noted that the connection established between the detection device and the first device and the second device may be any one of a wired connection, a wireless connection, and an optical fiber connection. If there is no optical splitter/combiner between the second device and the first device, but the second device and the first device are directly connected, the optical fiber between the second device and the first device may be any section of optical fiber between the second device and the first device, and if there is an optical splitter/combiner between the second device and the first device, rather than being directly connected, the optical fiber between the second device and the first device refers to the optical splitter/combiner to the optical fiber between the first device (this section of optical fiber may also be referred to as an optical fiber for home).
FTTH, which means that ONTs are installed at home or business users.
And LOFi warning: and if the OLT can not locate the uplink frame of a certain ONT for 4 continuous frames, generating a LOFi alarm of the ONT.
LOSi alarm: and if the OLT can not locate the uplink light of a certain ONT for 4 continuous frames, the LOSi alarm of the ONT is generated.
DGi alarm: and the ONT sends an alarm to the OLT when the power is off and the line is down.
And the home fiber is an optical fiber from the optical splitter/combiner to the ONT.
It should be noted that "i" in the above-mentioned LOFi alarm or loi alarm represents an identity, which is used to distinguish which ONT has the LOFi alarm or the loi alarm. For example, i is 1, indicating that the ONT identified as 1 has a LOFi alarm or a LOSi alarm.
The embodiment of the present application provides a method for detecting a status of an optical fiber, where an execution subject of the method may be a detection device, and the detection device is described as being independent of a first device and a second device, where the first device is a terminal device (e.g., an ONT), and the second device is a local side device (e.g., an OLT).
Fig. 5 shows a block diagram of a detection device in an embodiment of the present application, which may include at least a receiver 501, a processor 502, a memory 503, and a transmitter 504. The receiver 501 may be configured to implement data reception, specifically, may be configured to receive various alarms and the like reported by the first device and the second device, the transmitter 504 may be configured to send data, specifically, may be configured to send configuration messages to the first device and the second device, the memory 503 may be configured to store software programs and modules, and the processor 502 executes various functional applications and data processing by operating the software programs and modules stored in the memory 503. The memory 503 mainly includes a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function, and the like; the storage data area may store data created according to use of the detection apparatus, and the like. Further, the memory 503 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 503 may also include a memory controller to provide the processor 502, the receiver 501, and the transmitter 504 access to the memory 503. The processor 502 is a control center of the inspection apparatus, connects various parts of the entire inspection apparatus by using various interfaces and lines, and performs various functions of the inspection apparatus and processes data by running or executing software programs and/or modules stored in the memory 503 and calling data stored in the memory 503, thereby performing overall monitoring of the inspection apparatus.
As one possible implementation, processor 502 may include one or more processing cores; preferably, the processor 502 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 502.
The embodiment of the present application provides a method for detecting an optical fiber state, which is described by taking a first application scenario as an example, as shown in fig. 6, the content may be as follows:
step 601, determining that the first device corresponds to no optical signal LOSi alarm or frame loss LOFi alarm.
The first device may be an ONT or an ONU, each ONT device corresponds to an identifier, and i is used to indicate that the first device is the first device.
In implementation, after the optical fiber network is installed, the types of the data to be collected by the first device and the second device and the reporting indication information may be configured in the detection device, where the reporting indication information is used to indicate the reporting time of the collected data. For example, reporting may be performed when determining an loi alarm or an LOFi alarm determined by the second device, and reporting may be performed periodically for GTC frame error information acquired by the first device and the second device. The detection device may send the type of the acquired data and the reporting indication information to the first device and the second device, and the first device and the second device may send the acquired data to the detection device according to the reporting indication information. When the reporting indication information includes a reporting period, the reporting periods corresponding to the first device and the second device may be the same or different. The second device may be an OLT.
After the optical fiber network is formally online, the second device may periodically send an optical signal sending indication message to the first device, where the optical signal sending indication message carries a time slot for the first device to send an optical signal, the first device sends the optical signal to the second device according to a specified time slot, and the second device generates a LOFi alarm if 4 consecutive frames cannot be located to an uplink frame of the first device, so that the second device determines that the first device corresponds to the LOFi alarm, and the second device generates a loi alarm if 4 consecutive frames cannot be located to the uplink frame of the first device, so that the second device determines that the first device corresponds to the loi alarm. The second device may report the detected LOFi alarm or the detected loi alarm to the detection device, and the detection device may determine that the first device corresponds to the LOFi alarm or the loi alarm based on the identifier i in the LOFi alarm or the loi alarm.
It should be noted that the detection device may store the content reported by the first device each time, and store the content corresponding to the identifier of the first device when storing, and store the content reported by the second device each time, and store the content corresponding to the identifier of the second device when storing. In addition, the second device may report the error code information (explained later) and the like in addition to the LOFi alarm, the loi alarm, and the DGi alarm of the first device to the detection device, and the first device may report the error code information and the like to the detection device. The first device and the second device may notify the first device and the second device to upload data when the detection device needs the detection device, or the detection device may send the reporting period to the first device and the second device, and the first device and the second device report the data when the reporting period is reached.
It should be further noted that, in order to timely determine whether the optical fiber between the second device and the first device is interrupted, the second device may notify the detection device when determining that the first device has a corresponding LOFi alarm or an loi alarm, and may directly send the LOSi alarm to the detection device when receiving a DGi alarm reported by the first device.
Step 602, obtaining the DGi alarm reporting capability of the first device, and determining whether the second device receives the DGi alarm reported by the first device within a first preset time.
The first preset time and the second preset time can be preset and stored in the detection device, and the first preset time is generally in millimeter order, such as 15 milliseconds. The first preset time period may also be stored in the second device, and the second preset time period may be 3 days, etc.
In implementation, when the detection device determines that the first device corresponds to the LOFi alarm or the loi alarm, it may be determined whether the second device receives the DGi alarm reported by the first device within a first preset time period after the second device determines the LOFi alarm or the loi alarm, where the processing may be: the second device may start timing when determining that the first device corresponds to the LOFi alarm or the loi alarm, and determine whether to receive the DGi alarm reported by the first device within a first preset time period, and the second device may send the DGi alarm to the detection device when receiving the DGi alarm reported by the first device, and a time point when the DGi alarm is received. The detection device may determine whether the DGi alarm is reported by the first device based on the identifier i in the DGi alarm, and if the DGi alarm is reported by the first device, may determine a time difference between a time point at which the second device receives the DGi alarm and a time point at which the second device determines a LOFi alarm or a loi alarm corresponding to the first device, based on the time point at which the second device receives the DGi alarm. If the time difference is less than or equal to the first preset time, it may be determined that the second device receives the DGi alarm reported by the first device for the first preset time, and if the time difference is greater than the first preset time, it may be determined that the second device does not receive the DGi alarm reported by the first device for the first preset time. In addition, if the detecting device does not receive the DGi alarm of the first device sent by the second device within the first preset time after determining that the first device corresponds to the LOFi alarm or the loi alarm, it may also be stated that the second device does not receive the DGi alarm reported by the first device within the first preset time.
Or, when determining that the first device corresponds to the LOFi alarm or the loi alarm, the second device may start timing to determine whether the DGi alarm reported by the first device is received within a first preset time, determine that the DGi alarm reported by the first device is not received within the first preset time, and may also send the first identifier and the identifier of the first device to the detection device, where the first identifier is used to indicate that the DGi alarm reported by the first device is not received within the first preset time. The second device determines that the DGi alarm reported by the first device is received within the first preset time, and may send a second identifier and an identifier of the first device to the detection device, where the second identifier is used to indicate that the DGi alarm reported by the first device is received within the first preset time. Thus, when the detection device receives the first identifier, it may be determined that the second device does not receive the DGi alarm reported by the first device within the first preset time period, and when the detection device receives the second identifier, it may be determined that the second device receives the DGi alarm reported by the first device within the first preset time period. In this case, the second device also sends the detection device the time point when the DGi alarm reported by the first device is received.
The detection device may periodically determine whether the first device has a DGi alarm capability according to the historical alarm information of the first device (the historical alarm information may be a DGi alarm), that is, determine the DGi alarm reporting capability of the first device. If the time length from the current time point to the starting time point of the last period for determining the DGi alarm reporting capability of the first device is less than a second preset time length, the detection device may obtain the DGi alarm reporting capability of the first device determined in the last period, and determine the DGi alarm reporting capability as the current DGi alarm reporting capability of the first device.
It should be noted that, after the first device is powered down each time, if the capacitance module of the first device is not aged, the capacitance module in the first device may generate current at the moment of power failure, the first device may send a DGi alarm to the second device, and the second device may record a time point at which the first device sends the DGi alarm each time. The second device may send a DGi alarm to the detection device along with the point in time at which the first device sent the DGi alarm. The detection device may store the DGi alarm, the time point at which the first device sends the DGi alarm, and the identifier of the first device correspondingly, so that the detection device stores the historical alarm information of the first device.
As a possible implementation manner, the process of determining whether the first device has the DGi alarm reporting capability may be as follows:
if the first equipment reports the DGi alarm within the second preset time length nearest to the current time point, the first equipment is determined to have the DGi alarm reporting capacity, and if the first equipment does not report the DGi alarm within the second preset time length nearest to the current time point, the first equipment is determined not to have the DGi alarm reporting capacity.
The second preset time period may be preset and stored in the detection device, for example, the second preset time period may be 3 days.
In implementation, the detection device may obtain historical alarm information of the first device, determine a time point of a latest received DGi alarm in the historical alarm information, then calculate a time length of the time point from a current time point, determine the time length and a second preset time length, and if the time length exceeds the second preset time length, determine that the first device does not have the DGi alarm reporting capability. If the time length does not exceed the second preset time length, the first device can be determined to have the DGi alarm reporting capability.
It should be noted that, generally, a DGi alarm is reported within a recent period of time, which indicates that the capacitance module of the first device can be used normally and is not aged, and it may be considered that the first device has a DGi alarm capability, and a DGi alarm is not reported within a recent period of time, which indicates that the capacitance module of the first device is possibly aged, and it may be considered that the first device does not have a DGi alarm capability.
It should be further noted that, the determining whether the first device has the DGi alarm reporting capability may be performed when determining that the first device corresponds to a LOFi alarm or a loi alarm, or may be performed periodically to determine whether the first device has the DGi alarm reporting capability. According to the second mode, whether the first equipment has the DGi alarm reporting capacity or not does not need to be judged currently, so that the time can be saved. According to the first mode, only when determining that the first device corresponds to the LOFi alarm or the LOSi alarm, whether the first device has the DGi alarm reporting capability is judged, and judgment in each period is not needed, so that processing resources can be saved.
In addition, if it cannot be determined whether the first device has the DGi alarm reporting capability based on the historical alarm information of the first device, when the first device corresponds to a LOFi alarm or a loi alarm, it is determined that the state of optical fiber interruption between the second device and the first device is an interruption state. This situation generally occurs when the detection device does not store the historical alarm information of the first device, that is, when the DGi alarm of the first device is not stored.
Step 603, if it is determined that the second device does not receive the DGi alarm reported by the first device within the first preset time period, determining the state of the optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device.
The state of the optical fiber may include a broken state and an unbroken state, which may not exist simultaneously.
In implementation, if the second device does not receive the DGi alarm reported by the first device within the first preset time period, the DGi alarm reporting capability of the first device may be used to determine the state of the optical fiber between the second device and the first device.
In addition, if the second device receives the DGi alarm reported by the first device within the first preset time, it may be directly determined that the first device is normally powered off and the optical fiber between the second device and the first device is not interrupted.
As a possible implementation manner, when the first device has the DGi alarm reporting capability, the process of determining the state of the optical fiber between the second device and the first device may be as follows:
and if the first equipment has the DGi alarm reporting capacity, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
In implementation, if the first device has the DGi alarm reporting capability, it is indicated that the first device is not powered down, and thus the state of the optical fiber between the second device and the first device can be determined to be an interruption state.
As a possible implementation manner, when the first device does not have the DGi alarm reporting capability, the method for determining the state of the optical fiber from the second device to the first device may include the following steps:
and if the first equipment does not have the DGi alarm reporting capacity, acquiring error code information in at least two continuous statistical periods before the LOSi alarm or the LOFi alarm is determined, wherein the error code information comprises error code information of transmission convergence GTC frames transmitted between the second equipment and the first equipment, and determining the state of the optical fiber between the second equipment and the first equipment according to the error code information.
Wherein, the statistical period may be preset and stored in the detection device, for example, the statistical period may be 125us or the like.
In implementation, when the first device does not have the DGi alarm reporting capability, the detection device may obtain a time point at which the second device determines an loi alarm or an LOFi alarm corresponding to the first device (which may be sent to the detection device together when the second device reports the loi alarm or the LOFi alarm corresponding to the first device), and then obtain error code information of GTC frames (described later) transmitted between the second device and the first device in at least two consecutive statistical periods before the time point.
And then determining the state of the optical fiber between the second device and the first device by using the error code information of the GTC frames transmitted between the second device and the first device in at least two continuous statistical periods.
It should be noted that, since the first device may send the GTC frame to the second device, and the second device may also send the GTC frame to the first device, the first device may determine the error information of the GTC frame received by itself in the two statistical periods, and the second device may also determine the error information of the GTC frame received by itself in the two statistical periods. And overlapping the error code information in the same statistical period for subsequently determining the state of the optical fiber between the second equipment and the first equipment.
It should also be noted that, for more accurate determination of the state of the optical fiber, at least two consecutive statistical periods refer to: the second device determines the two latest statistical periods before the first device corresponding to the LOSi alarm or the LOFi alarm, because the error code information when the first device has the LOSi alarm or the LOFi alarm can better reflect the state of the optical fiber between the second device and the first device.
As a possible implementation, the error code information includes a BIP error count; the method of determining the state of the optical fiber may be as follows:
and determining the increment value of the BIP error count of the adjacent statistical period in at least two continuous statistical periods, and if the increment value of the BIP error count exceeds a preset first value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
Wherein the first value may be preset and stored in the detection device.
In an implementation, the error information of the GTC frame transmitted between the second device and the first device includes a BIP error count, the detecting device may determine an increment value of the BIP error count of adjacent statistical periods in at least two consecutive statistical periods, for example, the at least two statistical periods are 3 statistical periods, which may be a statistical period a, a statistical period b, and a statistical period c in sequence, the BIP error count of the statistical period a is 20, the BIP error count of the statistical period b is 50, the BIP error count of the statistical period c is 90, the increment value of the BIP count of the statistical period b on the basis of the statistical period a is 30, and the increment value of the BIP error count of the statistical period c on the basis of the statistical period b is 40. And then judging whether the determined increment values of the BIP error counts exceed a first numerical value, wherein if the increment values of the BIP error counts exceed the first numerical value, the fact that the optical fiber is disconnected can be explained, and the state of the optical fiber between the second equipment and the first equipment can be determined to be a disconnected state.
The reason why the optical fiber is in the interrupted state can be determined as follows: the optical fiber interruption is not directly cut off, but is a gradual change process, a parity check error occurs before the optical fiber interruption, and the BIP error count is increased, so that when the LOFi alarm or the LOSi alarm is determined, the optical fiber can be determined to be offline due to the interruption only by judging that the increment of the BIP error count is larger than a certain numerical value.
It should be noted that, in the above-mentioned use, only the increment value of the BIP error count of two consecutive statistical periods may be selected, where the two consecutive statistical periods may be the two latest statistical periods before the second device determines the LOSi alarm or the LOFi alarm.
As a possible implementation manner, a Forward Error Correction (FEC) function may affect an accurate value of the BIP error count, and the process of determining the interruption state may be as follows:
and if the Forward Error Correction (FEC) function of the second equipment is not started and the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
In implementation, when the increment value of the BIP error count exceeds the first value, it is further determined whether the FEC function is turned on the second device, and if the FEC function is not turned on, it may be determined that the optical fiber between the second device and the first device is in the interrupted state.
It should be noted that, the process of determining whether the second device has the FEC function to be turned on may be: the second device reports its own configuration information to the detection device, where the configuration information includes an indication message indicating whether the FEC function is turned on, and the detection device may further determine whether the second device turns on the FEC function.
In addition, when the FEC function of the second device is turned on, the status of the optical fiber cannot be determined using the BIP error count, and the process of determining the status of the optical fiber may be as follows:
and if the FEC function of the second equipment is started, determining the state of the optical fiber between the second equipment and the first equipment according to the increment value of the FEC error count of the adjacent statistical period in at least two continuous statistical periods.
In an implementation, when the FEC function of the second device is turned on, the FEC error count in at least two consecutive statistical periods may be obtained, then an increment value of the FEC error count in an adjacent statistical period in the at least two consecutive statistical periods may be determined, and if the increment value in the adjacent statistical period exceeds a fourth value, the state of the optical fiber between the second device and the first device may be determined to be an interruption state.
As a possible implementation manner, the error information may further include a Header Error Check (HEC) error count and/or a Frame Check Sequence (FCS) error count; the process of determining whether the optical fiber between the second device and the first device is broken may be as follows:
determining an increment value of HEC error counting of adjacent statistical periods in at least two continuous statistical periods, determining an increment value of FCS error counting of adjacent statistical periods in at least two continuous statistical periods, and if the FEC function of the second equipment is not started, the increment value of BIP error counting exceeds a preset first numerical value, the increment value of HEC error counting exceeds a preset second numerical value and/or the increment value of FCS error counting exceeds a preset third numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
Wherein the second value and the third value may be preset and stored in the detection device.
In an implementation, the error information may further include an HEC error count and/or an FCS error count, and the detection device may subtract the HEC error counts of adjacent statistical periods in at least two consecutive statistical periods to obtain an increment value of the HEC error counts of the adjacent statistical periods, and may subtract the FCS error counts of adjacent statistical periods in at least two consecutive statistical periods to obtain an increment value of the FCS error counts of the adjacent statistical periods in at least two consecutive statistical periods.
Then, when the FEC function of the second device is not turned on and the increment values of the BIP error counts of the adjacent statistical periods exceed the first value, it may be determined whether the increment values of the HEC error counts of the adjacent statistical periods all exceed the second value, and whether the increment values of the FCS error counts of the adjacent statistical periods all exceed the third value. The status of the optical fiber between the second device and the first device may be determined to be an interrupted status if the increment values of the HEC error counts of the adjacent statistical periods each exceed the second value or the increment values of the FCS error counts of the adjacent statistical periods each exceed the third value, and the status of the optical fiber between the second device and the first device may be determined to be an interrupted status if the increment values of the HEC error counts of the adjacent statistical periods each exceed the second value and the increment values of the FCS error counts of the adjacent statistical periods each exceed the third value.
It should be noted that, in general, parity errors cause HEC errors and FCS errors, so when the BIP error count increases, the HEC error count and the FCS error count may also increase, so that when the increment value of the HEC error count exceeds the second value and/or the increment value of the FCS error count exceeds the third value, the accuracy of determining the fiber break may be higher.
It should be noted that, when the above-mentioned method is used, only increment values of the BIP error count, the HEC error count and the FCS error count of two consecutive statistical periods may be selected, where the two consecutive statistical periods may be the two latest statistical periods before the second device determines the LOSi alarm or the LOFi alarm.
In addition, in this application, a process how the first device and the second device count the BIP error count, the HEC error count, and the FCS error count is also provided, and the process may be as follows:
the first device and the second device have the capability of counting the BIP error count, the HEC error count and the FCS error count, and the counted contents are stored locally and reported to the detection device when needed.
It should be further noted that, in the same statistical period, the first device determines the BIP error count of the GTC frame received by itself, and the second device determines the BIP error count of the GTC frame received by itself, so that the BIP error count in the statistical period is the sum of the BIP error count determined by the first device and the BIP error count determined by the second device. Similarly for the HEC error count and the FCS error count, it is also the sum of the first device and the second device.
In addition, in this application, a process of determining whether the FEC function of the second device is turned on by using the network type to which the second device belongs is further provided, where the process may be as follows:
and if the network to which the second device belongs is a GPON, determining that the FEC function of the second device is not started, and if the network to which the second device belongs is an XGS PON, determining that the FEC function of the second device is started.
In implementation, when the network to which the second device belongs is GPON, the FEC function is turned off by default, so that it may be directly determined that the FEC function of the second device is not turned on, and if the network to which the second device belongs is an XGS PON, the FEC function is turned on by default, so that it may be directly determined that the FEC function of the second device is turned on. In this way, it can be determined more quickly whether the FEC function of the second device is turned on.
In addition, corresponding to the second application scenario, the difference from the first application scenario is that the detection device is the second device, and then the second device does not need to report error code information to the detection device, and does not need to report an lois alarm or an LOFi alarm of the first device to the detection device, and the first device sends error code information to the second device. Other processing is the same as that in application scenario one, and is not described here again.
In addition, a frame structure diagram of an uplink GTC frame sent by a first device to a second device is also provided in this application, as shown in fig. 7.
As can be seen in fig. 7, the frame length of the GTC frame is 125us, and includes an uplink Physical Layer Overhead (PLOu), a Physical Layer oam (ploam), an uplink Dynamic Bandwidth Report (DBRu), and a GTC payload field. The PLOu includes a Preamble field (Preamble), a Frame Delimiter (Delimiter), a BIP, an ONT-ID (identification), and an Ind (real-time data state), the DBRu includes a Dynamic Bandwidth Allocation (DBA) and a Cyclic Redundancy Check (CRC), and the GTC payload field includes a GEM Encapsulation mode header (GEM header) and a Frame (Frame) (for carrying user data). The number of bytes (Byte) per message is also identified in fig. 7.
As can be seen from fig. 7, the BIP corresponds to a two-layer GTC encapsulation, the HEC corresponds to a one-layer GPON encapsulation, and the FCS corresponds to a packet.
The first device may also be referred to as a light cat.
In this embodiment, after determining that the first device corresponds to an loi alarm or an LOFi alarm, the detection device may obtain a DGi alarm reporting capability of the first device, and determine whether the second device receives the DGi alarm reported by the first device within a first preset time period, where the DGi alarm reporting capability is determined based on historical alarm information of the first device within a second preset time period before a current time point, the first preset time period is a preset time period after the second device determines the loi alarm or the LOFi alarm, and if the second device does not receive the DGi alarm reported by the first device within the first preset time period, the detection device may determine a state of an optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device. Therefore, when the terminal device is corresponding to the LOSi alarm or the LOFi alarm and the terminal device does not report the DGi alarm, the detection device can determine whether the optical fiber between the local side device and the terminal device is interrupted or not based on whether the current first device has the DGi alarm reporting capability or not, and the optical fiber interruption cannot be directly judged, so that the accuracy of optical fiber interruption detection can be improved.
In addition, according to the embodiment of the application, under the first application scene, the data in the current network are directly collected and analyzed, and the first equipment and the second equipment do not need to be upgraded, so that the investment of additional equipment does not need to be increased.
In addition, according to the embodiment of the application, the accuracy of judging the optical fiber interruption is higher, so that the fault can be reported by a user in advance, passive operation and maintenance are changed into active operation and maintenance, and the operation capacity of an operator can be improved.
Fig. 8 is a structural diagram of an apparatus for detecting a state of an optical fiber according to an embodiment of the present application. The apparatus may be implemented as part or all of an apparatus in software, hardware, or a combination of both. The apparatus for detecting an optical fiber state provided in the embodiment of the present application can implement the process illustrated in fig. 6 in the embodiment of the present application, and the apparatus for detecting an optical fiber state includes: a determining module 810 and an obtaining module 820, wherein:
a determining module 810, configured to determine an loi alarm or an LOFi alarm corresponding to a first device, where i is used to indicate the first device, and specifically may implement the determining function in step 601, and other implicit steps;
an obtaining module 820, configured to obtain a DGi alarm reporting capability of the first device; judging whether a second device receives a DGi alarm reported by a first device within a first preset time length, wherein the DGi alarm reporting capacity is determined based on historical alarm information of the first device within a second preset time length before the current time point, and the first preset time length is a preset time length after the second device determines the LOSi alarm or the LOFi alarm, and the obtaining function and other implicit steps in the step 602 can be specifically realized;
the determining module 810 is further configured to determine, based on the DGi alarm reporting capability of the first device, a state of an optical fiber between the second device and the first device if it is determined that the second device does not receive the DGi alarm reported by the first device within the first preset time period, and specifically may implement the determining function in step 603 and other implicit steps.
As a possible implementation manner, the determining module 810 is further configured to:
if the first device does not have DGi alarm reporting capacity, acquiring error code information in at least two continuous statistical periods before the LOSi alarm or the LOFi alarm is determined, wherein the error code information comprises error code information of a GTC frame transmitted between the second device and the first device;
and determining the state of the optical fiber between the second equipment and the first equipment according to the error code information.
As a possible implementation manner, the error code information includes a bit interleaved parity check (BIP) error count;
the determining module 820 is further configured to:
determining an increment value of a BIP error count of an adjacent statistical period of the at least two consecutive statistical periods;
and if the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the determining module 820 is further configured to:
and if the FEC function of the second equipment is not started and the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the determining module 820 is further configured to:
and if the FEC function of the second equipment is started, determining the state of the optical fiber between the second equipment and the first equipment according to the increment value of the FEC error count in the continuous at least two statistical periods.
As a possible implementation manner, the error information further includes a header error check HEC error count or a frame check sequence FCS error count;
the determining module 820 is further configured to:
determining a increment value of HEC error counts of adjacent statistical periods in the at least two consecutive statistical periods, and determining a increment value of FCS error counts of adjacent statistical periods in the at least two consecutive statistical periods;
and if the FEC function of the second equipment is not started, the increment value of the BIP error count exceeds a preset first numerical value, the increment value of the HEC error count exceeds a preset second numerical value and/or the increment value of the FCS error count exceeds a preset third numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
As a possible implementation manner, the determining module 820 is further configured to:
if the first equipment reports the DGi alarm within the second preset time length which is the latest before the current time point, determining that the first equipment has DGi alarm reporting capacity;
and if the first equipment does not report the DGi alarm within the second preset time length which is the latest before the current time point, determining that the first equipment does not have the DGi alarm reporting capacity.
As a possible implementation manner, the determining module 820 is further configured to:
if the network to which the second device belongs is GPON, determining that the FEC function of the second device is not started;
and if the network to which the second device belongs is the XGS PON, determining that the FEC function of the second device is started.
In this embodiment, after determining that the first device corresponds to an loi alarm or an LOFi alarm, the detection device may obtain a DGi alarm reporting capability of the first device, and determine whether the second device receives the DGi alarm reported by the first device within a first preset time period, where the DGi alarm reporting capability is determined based on historical alarm information of the first device within a second preset time period before a current time point, the first preset time period is a preset time period after the second device determines the loi alarm or the LOFi alarm, and if the second device does not receive the DGi alarm reported by the first device within the first preset time period, the detection device may determine a state of an optical fiber between the second device and the first device based on the DGi alarm reporting capability of the first device. Therefore, when the terminal device is corresponding to the LOSi alarm or the LOFi alarm and the terminal device does not report the DGi alarm, the detection device can determine whether the optical fiber between the local side device and the terminal device is interrupted or not based on whether the current first device has the DGi alarm reporting capability or not, and the optical fiber interruption cannot be directly judged, so that the accuracy of optical fiber interruption detection can be improved.
It should be noted that: in the apparatus for detecting an optical fiber state according to the above embodiment, when detecting an optical fiber state, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for detecting the state of the optical fiber and the method for detecting the state of the optical fiber provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
In addition, a computer-readable storage medium is provided, where the computer-readable storage medium stores instructions that, when executed on a detection device, cause the detection device to perform the method for detecting the state of an optical fiber.
In addition, the embodiment of the present application also provides a computer program product containing instructions, which when run on the detection device, causes the detection device to execute the above method for detecting the state of the optical fiber.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware or any combination thereof, and when the implementation is realized by software, all or part of the implementation may be realized in the form of a computer program product. The computer program product comprises one or more computer program instructions which, when loaded and executed on a server or terminal, cause the processes or functions described in accordance with embodiments of the application to be performed, in whole or in part. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optics, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium can be any available medium that can be accessed by a server or a terminal or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (such as a floppy Disk, a hard Disk, a magnetic tape, etc.), an optical medium (such as a Digital Video Disk (DVD), etc.), or a semiconductor medium (such as a solid state Disk, etc.).
The above description is only one embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (17)

1. A method of detecting the condition of an optical fiber, the method comprising:
determining that a first device corresponds to a loss of signal LOSi alarm or a loss of frame LOFi alarm, wherein i is used for indicating the first device;
acquiring the power failure alarm reporting capability of the first equipment, and judging whether a second equipment receives the power failure alarm reported by the first equipment within a first preset time length, wherein the power failure alarm reporting capability is determined based on historical alarm information of the first equipment within a second preset time length before the current time point, and the first preset time length is a preset time length after the second equipment determines the LOSi alarm or the LOFi alarm;
and if the second equipment does not receive the power-off alarm reported by the first equipment within the first preset time, determining the state of the optical fiber between the second equipment and the first equipment based on the power-off alarm reporting capacity of the first equipment.
2. The method of claim 1, wherein the determining the status of the optical fiber between the second device and the first device based on the outage alarm reporting capability of the first device comprises:
and if the first equipment has the power failure alarm reporting capacity, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
3. The method of claim 1, wherein the determining the status of the optical fiber between the second device and the first device based on the outage alarm reporting capability of the first device comprises:
if the first device does not have the power-off alarm reporting capability, acquiring error code information in at least two continuous statistical periods before the LOSi alarm or the LOFi alarm is determined, wherein the error code information comprises error code information of a Gbit passive optical network transmission convergence GTC frame transmitted between the second device and the first device;
and determining the state of the optical fiber between the second equipment and the first equipment according to the error code information.
4. The method of claim 3, wherein the error information comprises a Bit Interleaved Parity (BIP) error count;
determining the state of the optical fiber between the second device and the first device according to the error code information includes:
determining an increment value of a BIP error count of an adjacent statistical period of the at least two consecutive statistical periods;
and if the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
5. The method of claim 4, wherein determining that the status of the optical fiber between the second device and the first device is an interrupted status if the increment value of the BIP error count exceeds a preset first value comprises:
and if the Forward Error Correction (FEC) function of the second equipment is not started and the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
6. The method of claim 5, wherein the error information further comprises a Header Error Check (HEC) error count or a Frame Check Sequence (FCS) error count;
determining that the state of the optical fiber between the second device and the first device is an interruption state if the FEC function of the second device is not turned on and the increment value of the BIP error count exceeds a preset first value, including:
determining a increment value of HEC error counts of adjacent statistical periods in the at least two consecutive statistical periods, and determining a increment value of FCS error counts of adjacent statistical periods in the at least two consecutive statistical periods;
and if the FEC function of the second equipment is not started, the increment value of the BIP error count exceeds a preset first numerical value, the increment value of the HEC error count exceeds a preset second numerical value and/or the increment value of the FCS error count exceeds a preset third numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
7. The method of any of claims 1 to 6, further comprising:
if the first equipment reports the power failure alarm within the second preset time length which is the latest before the current time point, determining that the first equipment has power failure alarm reporting capacity;
and if the first equipment does not report the power failure alarm within the second preset time period which is the latest before the current time point, determining that the first equipment does not have the power failure alarm reporting capacity.
8. The method of claim 5 or 6, further comprising:
if the network to which the second device belongs is a Gigabit Passive Optical Network (GPON), determining that the FEC function of the second device is not started;
and if the network to which the second equipment belongs is a ten gigabit symmetric passive optical network XGS PON, determining that the FEC function of the second equipment is started.
9. An apparatus for detecting a condition of an optical fiber, the apparatus comprising a memory including computer readable instructions and a processor coupled to the memory;
the processor is configured to:
determining that a first device corresponds to a loss of signal LOSi alarm or a loss of frame LOFi alarm, wherein i is used for indicating the first device;
acquiring the power failure alarm reporting capability of the first equipment, and judging whether a second equipment receives the power failure alarm reported by the first equipment within a first preset time length, wherein the power failure alarm reporting capability is determined based on historical alarm information of the first equipment within a second preset time length before the current time point, and the first preset time length is a preset time length after the second equipment determines the LOSi alarm or the LOFi alarm;
and if the second equipment does not receive the power-off alarm reported by the first equipment within the first preset time, determining the state of the optical fiber between the second equipment and the first equipment based on the power-off alarm reporting capacity of the first equipment.
10. The apparatus of claim 9, wherein the processor is configured to:
and if the first equipment has the power failure alarm reporting capacity, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
11. The apparatus of claim 9, wherein the processor is configured to:
if the first device does not have the power-off alarm reporting capability, acquiring error code information in at least two continuous statistical periods before the LOSi alarm or the LOFi alarm is determined, wherein the error code information comprises error code information of a Gbit passive optical network transmission convergence GTC frame transmitted between the second device and the first device;
and determining the state of the optical fiber between the second equipment and the first equipment according to the error code information.
12. The apparatus of claim 11, wherein the error information comprises a Bit Interleaved Parity (BIP) error count;
the processor is configured to:
determining an increment value of a BIP error count of an adjacent statistical period of the at least two consecutive statistical periods;
and if the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
13. The apparatus of claim 12, wherein the processor is configured to:
and if the Forward Error Correction (FEC) function of the second equipment is not started and the increment value of the BIP error count exceeds a preset first numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
14. The apparatus of claim 13, wherein the error information further comprises a Header Error Check (HEC) error count or a Frame Check Sequence (FCS) error count;
the processor is configured to:
determining a increment value of HEC error counts of adjacent statistical periods in the at least two consecutive statistical periods, and determining a increment value of FCS error counts of adjacent statistical periods in the at least two consecutive statistical periods;
and if the FEC function of the second equipment is not started, the increment value of the BIP error count exceeds a preset first numerical value, the increment value of the HEC error count exceeds a preset second numerical value and/or the increment value of the FCS error count exceeds a preset third numerical value, determining that the state of the optical fiber between the second equipment and the first equipment is an interruption state.
15. The apparatus of any of claims 9 to 14, wherein the processor is further configured to:
if the first equipment reports the power failure alarm within the second preset time length which is the latest before the current time point, determining that the first equipment has power failure alarm reporting capacity;
and if the first equipment does not report the power failure alarm within the second preset time period which is the latest before the current time point, determining that the first equipment does not have the power failure alarm reporting capacity.
16. The apparatus of claim 13 or 14, wherein the processor is further configured to:
if the network to which the second device belongs is a Gigabit Passive Optical Network (GPON), determining that the FEC function of the second device is not started;
and if the network to which the second equipment belongs is a ten gigabit symmetric passive optical network XGS PON, determining that the FEC function of the second equipment is started.
17. A computer-readable storage medium having instructions stored thereon that, when executed on a detection device, cause the detection device to perform the method of any one of claims 1-8.
CN201910628109.2A 2019-07-12 2019-07-12 Method, apparatus, storage medium, and program product for detecting status of optical fiber Active CN112218180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910628109.2A CN112218180B (en) 2019-07-12 2019-07-12 Method, apparatus, storage medium, and program product for detecting status of optical fiber

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910628109.2A CN112218180B (en) 2019-07-12 2019-07-12 Method, apparatus, storage medium, and program product for detecting status of optical fiber

Publications (2)

Publication Number Publication Date
CN112218180A CN112218180A (en) 2021-01-12
CN112218180B true CN112218180B (en) 2021-09-07

Family

ID=74047150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910628109.2A Active CN112218180B (en) 2019-07-12 2019-07-12 Method, apparatus, storage medium, and program product for detecting status of optical fiber

Country Status (1)

Country Link
CN (1) CN112218180B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278404A (en) * 2021-04-29 2022-11-01 中兴通讯股份有限公司 Signal loss alarm message processing method and device, electronic equipment and readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090296A (en) * 2007-07-31 2007-12-19 亿阳信通股份有限公司 Diagnostic method and device for breakout of cable
CN101826928A (en) * 2009-03-03 2010-09-08 中兴通讯股份有限公司 Method and device for realizing PON (Passive Optical Network) system service recovery
WO2012129453A1 (en) * 2011-03-23 2012-09-27 Alexander Soto System and method for performing in-service optical fiber network certification
CN105281824A (en) * 2014-05-27 2016-01-27 中兴通讯股份有限公司 Method and device for detecting constant light-emitting optical network unit (ONU) and network management equipment
CN109104647A (en) * 2018-06-14 2018-12-28 烽火通信科技股份有限公司 A kind of Ethernet service interruption processing method, system and networking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090296A (en) * 2007-07-31 2007-12-19 亿阳信通股份有限公司 Diagnostic method and device for breakout of cable
CN101826928A (en) * 2009-03-03 2010-09-08 中兴通讯股份有限公司 Method and device for realizing PON (Passive Optical Network) system service recovery
WO2012129453A1 (en) * 2011-03-23 2012-09-27 Alexander Soto System and method for performing in-service optical fiber network certification
CN105281824A (en) * 2014-05-27 2016-01-27 中兴通讯股份有限公司 Method and device for detecting constant light-emitting optical network unit (ONU) and network management equipment
CN109104647A (en) * 2018-06-14 2018-12-28 烽火通信科技股份有限公司 A kind of Ethernet service interruption processing method, system and networking

Also Published As

Publication number Publication date
CN112218180A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
US9432114B2 (en) Method for identifying the optical network unit power off reason
US8554075B2 (en) Communication system, subscriber accommodating apparatus and communication method
US8285139B2 (en) Method, system, and apparatus for managing alarms in long-reach passive optical network system
JP5564393B2 (en) Passive optical network system
CN100581090C (en) Slicing method for data frames and optical network unit
CN112567647B (en) PON fault positioning method and device
EP2418871B1 (en) Method and apparatus for detecting rogue optical network unit in passive optical network
US20120163808A1 (en) Detecting rogue onu, olt and pon system
EP2434666B1 (en) Method, device and system for detecting link failure
CN101056199B (en) An uplink burst performance monitoring method of point-to-multipoint access network, head device and access network system
US10491323B2 (en) Data transmission control method, passive optical network equipment, apparatus, and passive optical network
CN106301837B (en) Passive optical network alarm detection method and device
US8774623B2 (en) Passive optical network system and method for detecting fault in optical network terminal
US10110301B2 (en) Method, apparatus, and system for detecting rogue optical network unit
US9130676B2 (en) Transparent protection switching operation in a PON
US20140161436A1 (en) Optical network failure recovery method
CN102045105A (en) Fault active detection and isolation method and optical line unit
CN108370271B (en) Detection method and device of optical network unit and passive optical network system
CN102104418A (en) Transmission control system, subscriber-side communication device, and office-side communication device
CN101369846A (en) Passive optical network signal monitoring method and electric relay reactivator
CN112218180B (en) Method, apparatus, storage medium, and program product for detecting status of optical fiber
US8886041B2 (en) Optical line terminal, bandwidth control method and optical network system
CN117353873B (en) Uplink frame verification method and device, electronic equipment and storage medium
US9088382B2 (en) Optical line terminal of passive optical network, and method for controlling upstream band using the same
KR101251302B1 (en) Passive optical network and the method of detecting ont

Legal Events

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