CN112291000B - Optical module abnormality detection method and device, communication equipment and readable storage medium - Google Patents

Optical module abnormality detection method and device, communication equipment and readable storage medium Download PDF

Info

Publication number
CN112291000B
CN112291000B CN202011585684.8A CN202011585684A CN112291000B CN 112291000 B CN112291000 B CN 112291000B CN 202011585684 A CN202011585684 A CN 202011585684A CN 112291000 B CN112291000 B CN 112291000B
Authority
CN
China
Prior art keywords
optical fiber
optical
fiber line
communication device
transmission distance
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
CN202011585684.8A
Other languages
Chinese (zh)
Other versions
CN112291000A (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.)
Beijing Tasson Science and Technology Co Ltd
Original Assignee
Beijing Tasson Science and Technology 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 Beijing Tasson Science and Technology Co Ltd filed Critical Beijing Tasson Science and Technology Co Ltd
Priority to CN202011585684.8A priority Critical patent/CN112291000B/en
Publication of CN112291000A publication Critical patent/CN112291000A/en
Application granted granted Critical
Publication of CN112291000B publication Critical patent/CN112291000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/0795Performance monitoring; Measurement of transmission parameters

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The application relates to an optical module abnormality detection method and device, a communication device and a readable storage medium. The method comprises the following steps: reading current transmitting optical power and current receiving optical power from the optical module in the process that the first communication device and the second communication device communicate through optical fibers, and acquiring the optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power; acquiring the maximum allowable transmission distance of the optical module, and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance; and if the optical fiber transmission distance is greater than the maximum allowable transmission distance, outputting abnormal prompt information, wherein the abnormal prompt information is used for prompting that the optical module has the fault hidden trouble of over-distance transmission. By adopting the method, the failure rate of the optical module in the communication equipment can be reduced and the reliability of optical fiber communication can be improved.

Description

Optical module abnormality detection method and device, communication equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting an anomaly of an optical module, a communication device, and a readable storage medium.
Background
With the development of optical fiber communication technology, more and more communication devices adopt optical fiber lines as transmission media. Optical modules are arranged in each communication device of optical fiber communication, the optical modules are connected with optical fiber lines to realize communication between the communication devices, a sending end of each optical module converts an electric signal into an optical signal, and a receiving end of each optical module converts the optical signal into the electric signal.
At present, in the process of optical fiber deployment, two pieces of communication equipment are generally matched with an optical fiber line with a certain length manually according to experience, and after the two pieces of communication equipment are connected through the optical fiber line, if a signal sent by one piece of communication equipment can be received by the other piece of communication equipment, the two pieces of communication equipment are considered to be capable of normally communicating with each other.
However, in the process of performing optical fiber communication based on the manually matched optical fiber line, the failure rate of the optical module of the communication device is high, which results in low reliability of the optical fiber communication.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an optical module abnormality detection method, an apparatus, a communication device, and a readable storage medium, which can reduce the failure rate of an optical module in the communication device and improve the reliability of optical fiber communication.
In a first aspect, an embodiment of the present application provides an optical module abnormality detection method, which is used in a first communication device, where an optical module is disposed in the first communication device, and the method includes:
reading current transmitting optical power and current receiving optical power from the optical module in the process that the first communication device and the second communication device communicate through optical fibers, and acquiring the optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power;
acquiring the maximum allowable transmission distance of the optical module, and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance;
and if the optical fiber transmission distance is greater than the maximum allowable transmission distance, outputting abnormal prompt information, wherein the abnormal prompt information is used for prompting that the optical module has the fault hidden trouble of over-distance transmission.
In one embodiment, the obtaining the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device according to the current transmitted optical power and the current received optical power includes:
acquiring a connection loss value of the optical module and the optical fiber line and acquiring an attenuation coefficient of the optical fiber line, wherein the connection loss value comprises optical fiber loss of a connection part of a sending end of the optical module and the optical fiber line and optical fiber loss of a connection part of a receiving end of the optical module and the optical fiber line;
calculating a target difference value of the current transmitted optical power and the current received optical power;
and calculating the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value.
In one embodiment, the obtaining a connection loss value of the optical module and the optical fiber line and obtaining an attenuation coefficient of the optical fiber line includes:
under the condition that the transmitting end and the receiving end are interconnected through a first optical fiber line and the first optical fiber line carries out signal transmission, reading first transmitting optical power and first receiving optical power from the optical module;
under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, reading second transmitting optical power and second receiving optical power from the optical module, wherein the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different;
calculating a first difference between the first emitted optical power and the first received optical power, and calculating a second difference between the second emitted optical power and the second received optical power;
and calculating the connection loss value according to the first difference value and the second difference value, and calculating the attenuation coefficient according to the first difference value and the second difference value.
In one embodiment, said calculating said connection loss value based on said first difference and said second difference comprises:
multiplying the first difference value by a first preset coefficient to obtain a first product;
and subtracting the second difference from the first product, and dividing a result obtained by subtracting by a second preset coefficient to obtain the connection loss value, wherein the first preset coefficient and the second preset coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, said calculating the attenuation coefficient according to the first difference and the second difference comprises:
calculating a difference result of the second difference and the first difference;
and multiplying the difference result by a third preset coefficient to obtain the attenuation coefficient, wherein the third preset coefficient is related to the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, the obtaining the maximum allowed transmission distance of the optical module includes:
acquiring factory specification data of the optical module;
and determining the maximum allowable transmission distance according to the factory specification data.
In one embodiment, after detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance, the method further includes:
and if the optical fiber transmission distance is smaller than or equal to the maximum allowable transmission distance, outputting compliance prompt information, wherein the compliance prompt information is used for prompting that the optical fiber transmission distance meets the transmission distance requirement of the optical module.
In a second aspect, an embodiment of the present application provides an optical module abnormality detection apparatus, which is disposed in a first communication device, where an optical module is disposed in the first communication device, and the apparatus includes:
an obtaining module, configured to read current transmitting optical power and current receiving optical power from the optical module in a process that the first communication device and the second communication device communicate with each other through an optical fiber, and obtain an optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power;
the detection module is used for acquiring the maximum allowable transmission distance of the optical module and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance;
and the prompting module is used for outputting abnormal prompting information if the optical fiber transmission distance is greater than the maximum allowable transmission distance, wherein the abnormal prompting information is used for prompting that the optical module has the fault hidden trouble of over-distance transmission.
In a third aspect, an embodiment of the present application provides a communication device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the method according to the first aspect as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in the optical module abnormality detection method, the optical module abnormality detection device, the optical module and the readable storage medium, in the process that the first communication device communicates with the second communication device through the optical fiber, the current transmitting optical power and the current receiving optical power are read from the optical module, and the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device is obtained according to the current transmitting optical power and the current receiving optical power; acquiring the maximum allowable transmission distance of the optical module, detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance, if the optical fiber transmission distance is greater than the maximum allowable transmission distance, indicating that the optical fiber transmission distance between the first communication device and the second communication device exceeds the maximum allowable transmission distance of the optical module, which can easily cause the optical module to malfunction, and once the optical module malfunctions, the communication process between the first communication device and the second communication device can be seriously affected, therefore, after the embodiment of the application detects that the optical fiber transmission distance is greater than the maximum allowable transmission distance, an abnormal prompt message is output to prompt a user that the optical module has a fault hidden danger of over-distance transmission, so that the user can timely replace the optical fiber line between the first communication device and the second communication device with an optical fiber line whose length does not exceed the maximum allowable transmission distance of the optical module, therefore, the failure rate of the optical module is reduced, and the reliability of optical fiber communication between the first communication equipment and the second communication equipment is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for detecting an anomaly in a light module according to an embodiment;
FIG. 2 is a flowchart illustrating a method for detecting an anomaly in an optical module according to an embodiment;
fig. 3 is a flowchart illustrating that the first communication device obtains the maximum allowed transmission distance of the optical module in one embodiment;
FIG. 4 is a schematic flow chart illustrating a process for a first communications device to obtain a fiber optic transmission distance according to an embodiment;
FIG. 5 is a flow chart illustrating step 401 in one embodiment;
fig. 6 is a schematic diagram illustrating an exemplary interconnection of a transmitting end and a receiving end of an optical module by a first optical fiber line;
fig. 7 is a block diagram of a light module abnormality detection apparatus according to an embodiment;
fig. 8 is an internal configuration diagram of a communication device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The optical module abnormality detection method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. At least one optical module (only one optical module is exemplarily shown in fig. 1) is disposed in the first communication device 102, at least one optical module (only one optical module is exemplarily shown in fig. 1) is disposed in the second communication device 104, and the first communication device 102 and the second communication device 104 can communicate through corresponding optical module connection optical fiber lines, respectively.
The first communication device 102 and the second communication device 104 may be optical fiber communication devices such as a switch or a router, and the device types of the first communication device 102 and the second communication device 104 are not specifically limited in this embodiment of the application.
In an embodiment, as shown in fig. 2, a method for detecting an abnormality of a light module is provided, which is described by taking the method as an example of being applied to the first communication device in fig. 1, and includes the following steps:
step 201, in the process that the first communication device and the second communication device communicate through the optical fiber, the first communication device reads current transmitting optical power and current receiving optical power from the optical module, and obtains an optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power.
The optical module comprises an optoelectronic device, a functional circuit, an optical interface and the like, wherein the optoelectronic device comprises a transmitting part and a receiving part, and the optical module has the functions that a transmitting end converts an electric signal into an optical signal, and a receiving end converts the optical signal into the electric signal after the optical signal is transmitted through an optical fiber line. Optical modules are provided in communication devices that perform optical fiber communication.
In the embodiment of the application, an optical module is arranged in first communication equipment, and the first communication equipment is connected with optical fiber lines through the optical module to realize communication with other communication equipment (such as second communication equipment). The transmission rate of the optical module may be other transmission rates such as 100M, 1000M, 10G, 40G, or 100G; if the optical module is a single-mode optical module, the light-emitting wavelength of the optical module can be 1310nm or 1550 nm; the light emitting wavelength of the optical module may be 850nm, for example, in the case of a multimode optical module. The parameters of the optical module are not particularly limited in the embodiments of the present application.
In the embodiment of the present application, the optical module may have a DDM (Digital Diagnostic Monitoring) function. In the process that the first communication device and the second communication device communicate through the optical fiber, the optical module can monitor and obtain parameters of power supply voltage, temperature, current transmitting optical power, current receiving optical power and laser bias current of the optical module, and the first communication device can communicate with the optical module through an Inter Integrated-Circuit (IIC) interface to read the current transmitting optical power and the current receiving optical power in the optical module.
After reading the current transmitting optical power and the current receiving optical power from the optical module, the first communication device obtains the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power.
In one possible implementation, since the target difference between the current transmitted optical power and the current received optical power is equal to the total link attenuation on the optical fiber line between the first communication device and the second communication device, and the total link attenuation can be approximated by multiplying the optical fiber transmission distance between the first communication device and the second communication device (i.e., the length of the optical fiber line) by the attenuation coefficient of the optical fiber line per unit length, the first communication device can obtain the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device by the following formula 1:
Figure 783378DEST_PATH_IMAGE001
equation 1
Wherein the content of the first and second substances,
Figure 254811DEST_PATH_IMAGE002
for the current emitted optical power to be,
Figure DEST_PATH_IMAGE004A
for the present received optical power the optical power is received,
Figure 106092DEST_PATH_IMAGE005
the attenuation coefficient of the optical fiber line between the first communication device and the second communication device is a unit length, and the unit length may be 1 meter, for example, L is an optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device.
Step 202, the first communication device obtains the maximum allowed transmission distance of the optical module, and detects whether the optical fiber transmission distance is greater than the maximum allowed transmission distance.
The maximum allowable transmission distances corresponding to the optical modules with different parameters are different. For example, if the optical module is a multimode optical module, the maximum allowable transmission distance of the optical module may be 100 meters, 300 meters, or 400 meters under different parameters; if the optical module is a single-mode optical module, the maximum allowed transmission distance may be 10KM, 20KM, 40KM, or 80KM, etc. under different parameters.
In one possible implementation, referring to fig. 3, the first communication device may implement the process of acquiring the maximum allowed transmission distance of the optical module by performing steps 301 and 302 shown in fig. 3:
step 301, the first communication device acquires factory specification data of the optical module.
Step 302, the first communication device determines the maximum allowable transmission distance according to the factory specification data.
In one embodiment, the factory specification data of the optical module may be embedded in a memory of the optical module, and the first communication device may read the factory specification data from the memory of the optical module. The factory specification data of the optical module may include parameters such as a transmission rate, a light emitting wavelength, and a maximum allowable transmission distance of the optical module, and the first communication device determines the maximum allowable transmission distance of the optical module.
The optical modules with different maximum allowable transmission distances should be used with optical fiber lines with corresponding lengths, and if the length of an optical fiber line laid between the first communication device and the second communication device exceeds the requirement of the optical module of the first communication device on the optical fiber transmission distance, that is, the maximum allowable transmission distance of the optical module of the first communication device is exceeded, the optical module may be damaged, and further, a communication fault between the first communication device and the second communication device may be caused. To avoid this, the first communication device detects whether the optical fiber transmission distance is greater than the maximum allowable transmission distance.
And 203, if the optical fiber transmission distance is greater than the maximum allowable transmission distance, outputting an abnormal prompt message by the first communication device, wherein the abnormal prompt message is used for prompting that the optical module has the fault hidden trouble of over-distance transmission.
If the first device detects that the optical fiber transmission distance is greater than the maximum allowable transmission distance, the optical module is determined to be over-distance transmission, which easily causes the optical module to break down, once the optical module breaks down, the communication process between the first communication device and the second communication device is seriously affected, and the first communication device outputs abnormal prompt information to prompt a user that the optical module has fault hidden trouble of over-distance transmission.
In the embodiment of the present application, the abnormal prompt information may be prompted by flashing the indicator light, or may be prompted by voice, where the method for outputting the abnormal prompt information by the first communication device is not specifically limited.
In other embodiments, optionally, after step 202, if the first communication device detects that the optical fiber transmission distance is less than or equal to the maximum allowed transmission distance, the first communication device may further output a compliance prompt message, where the compliance prompt message is used to prompt that the optical fiber transmission distance meets the transmission distance requirement of the optical module.
In the above embodiment, in the process of communication between the first communication device and the second communication device through the optical fiber, the current transmitting optical power and the current receiving optical power are read from the optical module, and the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device is obtained according to the current transmitting optical power and the current receiving optical power; acquiring the maximum allowable transmission distance of the optical module, detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance, if the optical fiber transmission distance is greater than the maximum allowable transmission distance, indicating that the optical fiber transmission distance between the first communication device and the second communication device exceeds the maximum allowable transmission distance of the optical module, which can easily cause the optical module to malfunction, and once the optical module malfunctions, the communication process between the first communication device and the second communication device can be seriously affected, therefore, after the embodiment of the application detects that the optical fiber transmission distance is greater than the maximum allowable transmission distance, an abnormal prompt message is output to prompt a user that the optical module has a fault hidden danger of over-distance transmission, so that the user can timely replace the optical fiber line between the first communication device and the second communication device with an optical fiber line whose length does not exceed the maximum allowable transmission distance of the optical module, therefore, the failure rate of the optical module is reduced, and the reliability of optical fiber communication between the first communication equipment and the second communication equipment is improved.
The optical module with the same transmission rate as that of the optical module in the first communication device is also provided in the second communication device, and the first communication device and the second communication device communicate with each other through a pair of optical module connection optical fiber lines with the same transmission rate. The optical module abnormality detection method according to the embodiment of the present application may also be applied to the second communication device, and an implementation process of the optical module abnormality detection method according to the embodiment of the present application is the same as that of the optical module abnormality detection method according to the embodiment of the present application, and is not described herein again.
In one embodiment, based on the embodiment shown in fig. 2, referring to fig. 4, this embodiment relates to a process how the first communication device obtains the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device according to the current transmitted optical power and the current received optical power. As shown in fig. 4, the process may include steps 401, 402, and 403:
step 401, a first communication device obtains a connection loss value of an optical module and an optical fiber line, and obtains an attenuation coefficient of the optical fiber line.
In the process that first communication equipment communicates with second communication equipment through an optical module connecting optical fiber line, optical fiber loss actually exists in a connecting part of a sending end of the optical module and the optical fiber line and in a connecting part of a receiving end of the optical module and the optical fiber line, and the first communication equipment obtains a connection loss value of the optical module and the optical fiber line, wherein the connection loss value comprises optical fiber loss of the connecting part of the sending end of the optical module and the optical fiber line and optical fiber loss of the connecting part of the receiving end of the optical module and the optical fiber line.
The first communication device also obtains the attenuation coefficient of the optical fiber line, and the attenuation coefficients of different optical fiber lines are different, for example, the attenuation coefficient of the multimode optical fiber is generally 3.5 dB/km, and the attenuation coefficient of the single-mode optical fiber is generally 0.5 dB/km.
In step 402, the first communication device calculates a target difference between a current transmitted optical power and a current received optical power.
In step 403, the first communication device calculates the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value.
The first communication device calculates a target difference between the current transmitted optical power and the current received optical power, where the target difference is a total link attenuation on an optical transmission link (i.e., an optical fiber line) between the first communication device and the second communication device, and the total link attenuation can be obtained by multiplying an optical fiber transmission distance (i.e., the length of the optical fiber line) between the first communication device and the second communication device by an attenuation coefficient of the optical fiber line in unit length, and then adding the multiplication result to a connection loss value between the optical module and the optical fiber line.
Thus, the first communication device can calculate the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device by the following formula 2:
Figure 535937DEST_PATH_IMAGE006
equation 2
Wherein the content of the first and second substances,
Figure 246404DEST_PATH_IMAGE007
for the current emitted optical power to be,
Figure 787107DEST_PATH_IMAGE008
is the current received optical power; a is the attenuation coefficient of the optical fiber line, A/1000 represents the attenuation coefficient of the optical fiber line under the unit length, and the unit length can be 1 meter;
Figure 476583DEST_PATH_IMAGE009
the optical fiber loss at the connection part of the sending end of the optical module and the optical fiber line,
Figure 811749DEST_PATH_IMAGE010
the optical fiber loss of the connection part of the receiving end of the optical module and the optical fiber line,
Figure 275091DEST_PATH_IMAGE011
i.e. the connection loss of the optical module and the optical fiber lineA consumption value; l is the fiber transmission distance of the fiber line between the first communication device and the second communication device.
In this way, the first communication device substitutes the current transmitted optical power, the current received optical power, the attenuation coefficient of the optical fiber line, and the connection loss value between the optical module and the optical fiber line into formula 2, and then calculates the optical fiber transmission distance L of the optical fiber line between the first communication device and the second communication device.
Therefore, in the embodiment of the application, the connection loss value of the optical module and the optical fiber line is considered in the process of calculating the optical fiber transmission distance, so that the accuracy of the total attenuation of the link is improved, and the accuracy of the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device can be improved.
In one embodiment, based on the embodiment shown in fig. 4, referring to fig. 5, this embodiment relates to a process of how the first communication device acquires a connection loss value of the optical module and the optical fiber line, and acquires an attenuation coefficient of the optical fiber line. As shown in fig. 5, the first communication device may perform steps 4011, 4012, 4013 and 4014 shown in fig. 5 to implement the procedure of step 401:
step 4011, when the transmitting end and the receiving end are interconnected by a first optical fiber line and the first optical fiber line performs signal transmission, the first communication device reads the first transmitting optical power and the first receiving optical power from the optical module.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating an exemplary interconnection of a transmitting end and a receiving end of an optical module through a first optical fiber line. In the embodiment of the present application, for implementation convenience, as shown in fig. 6, a transmitting end TX and a receiving end RX of an optical module are interconnected by a first optical fiber line, and in a case where the first optical fiber line performs signal transmission, a first communication device reads first transmitting optical power and first receiving optical power from the optical module through an IIC interface.
Step 4012, when the transmitting end and the receiving end are interconnected by a second optical fiber line and the second optical fiber line performs signal transmission, the first communication device reads the second transmitting optical power and the second receiving optical power from the optical module.
Similarly to step 4011, the transmitting end and the receiving end of the optical module are interconnected by a second optical fiber line, and in a case where the second optical fiber line performs signal transmission, the first communication device reads the second transmitting optical power and the second receiving optical power from the optical module through the IIC interface.
In the embodiment of the present application, the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different, that is, the optical fiber line, the first optical fiber line and the second optical fiber line are the same type but different lengths.
Step 4013 the first communication device calculates a first difference between the first emitted optical power and the first received optical power and calculates a second difference between the second emitted optical power and the second received optical power.
It should be noted that, in the implementation of the present application, the transmitting end and the receiving end are interconnected through the first optical fiber line, or the transmitting end and the receiving end are interconnected through the second optical fiber line, both for convenience of implementation; in other embodiments, the first communication device may also be connected to a specific communication device through a first optical fiber line to read the first emitted optical power and the first received optical power, and connected to the specific communication device through a second optical fiber line to read the second emitted optical power and the second received optical power, which is not limited herein.
In the case where the transmitting end and the receiving end are interconnected by a first optical fiber line and the first optical fiber line performs signal transmission, assuming that the length of the first optical fiber line is 1 meter, the total link attenuation Y on the optical transmission link (i.e., the optical fiber line) between the first communication device and the second communication device is as shown in equation 3:
Figure 353906DEST_PATH_IMAGE012
equation 3
Wherein the content of the first and second substances,
Figure 648621DEST_PATH_IMAGE013
the A/1000 is the attenuation of the first optical fiber line between the first communication equipment and the second communication equipment under the unit lengthAnd (4) the coefficient.
And under the condition that the transmitting end and the receiving end are interconnected through the first optical fiber line and the first optical fiber line performs signal transmission, the total link attenuation Y can be obtained by making a difference between the first transmitting optical power and the first receiving optical power, that is, the total link attenuation Y is equal to the first difference, so that the following formula 4 can be obtained:
Figure 889109DEST_PATH_IMAGE014
equation 4
Wherein the content of the first and second substances,
Figure 105327DEST_PATH_IMAGE015
for the first emitted light power, the first light power,
Figure 784570DEST_PATH_IMAGE016
for the first received optical power is the first received optical power,
Figure 137054DEST_PATH_IMAGE017
the first difference value.
In the case where the transmitting end and the receiving end are interconnected by a second optical fiber line, and the second optical fiber line performs signal transmission, assuming that the length of the second optical fiber line is 10 meters, the total link attenuation Y on the optical transmission link (i.e., the optical fiber line) between the first communication device and the second communication device is as shown in equation 5:
Figure 814023DEST_PATH_IMAGE018
equation 5
Wherein the content of the first and second substances,
Figure 48695DEST_PATH_IMAGE013
and the A/1000 is the attenuation coefficient of the second optical fiber line between the first communication equipment and the second communication equipment under the unit length.
And under the condition that the transmitting end and the receiving end are interconnected through the second optical fiber line and the second optical fiber line performs signal transmission, the total link attenuation Y can be obtained by subtracting the second transmitting optical power from the second receiving optical power, that is, the total link attenuation Y is equal to the second difference, so that the following formula 6 can be obtained:
Figure 469312DEST_PATH_IMAGE019
equation 6
Wherein the content of the first and second substances,
Figure 676303DEST_PATH_IMAGE020
for the second emitted optical power to be the second emitted optical power,
Figure 524173DEST_PATH_IMAGE021
for the second received optical power is that of the second received optical power,
Figure 996874DEST_PATH_IMAGE022
then it is the second difference.
Step 4014, the first communication device calculates a connection loss value according to the first difference and the second difference, and calculates an attenuation coefficient according to the first difference and the second difference.
In one possible implementation, the first communication device may implement the process of calculating the connection loss value from the first difference value and the second difference value by performing the following steps a1 and a 2:
in step a1, the first communication device multiplies the first difference by a first predetermined coefficient to obtain a first product.
In step a2, the first communication device subtracts the first product from the second difference, and divides the result by a second predetermined coefficient to obtain a connection loss value.
Assuming that the length of the first optical fiber line is 1 meter and the length of the second optical fiber line is 10 meters, since the optical fiber line, the first optical fiber line and the second optical fiber line are of the same type, the attenuation coefficient of the first optical fiber line per unit length is equal to that of the second optical fiber line per unit length. The first communication device can then calculate the following equation 7 according to equations 4 and 6:
Figure 955603DEST_PATH_IMAGE023
equation 7
In steps a1 and a2, the first predetermined coefficient and the second predetermined coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line. The first predetermined coefficient may be a ratio of the length of the second optical fiber line to the length of the first optical fiber line, and the second predetermined coefficient may be a ratio of the length of the second optical fiber line to the length of the first optical fiber line minus 1.
For example, in equation 7, the ratio of the length of the second optical fiber line to the length of the first optical fiber line is 10, that is, the first preset coefficient is 10, and the first communication device multiplies the first difference by 10 to obtain a first product; subtracting 1 from the ratio of the length of the second optical fiber line to the length of the first optical fiber line to be equal to 9, namely the second preset coefficient is 9, subtracting the second difference from the first product by the first communication equipment, and dividing the result obtained by subtracting by 9 to obtain a connection loss value
Figure 282679DEST_PATH_IMAGE024
In one possible implementation, the first communication device may implement the process of calculating the attenuation coefficient from the first difference and the second difference by performing the following steps b1 and b 2:
step b1, the first communication device calculating a difference result of the second difference and the first difference;
and step b2, the first communication device multiplies the difference result by a third preset coefficient to obtain an attenuation coefficient.
Assuming that the length of the first optical fiber line is 1 meter and the length of the second optical fiber line is 10 meters, since the optical fiber line, the first optical fiber line and the second optical fiber line are of the same type, the connection loss value of the optical module and the first optical fiber line is equal to the connection loss value of the optical module and the second optical fiber line, and the first communication device can calculate the following formula 8 according to the formula 4 and the formula 6:
Figure 363767DEST_PATH_IMAGE025
equation 8
Wherein the third predetermined factor is related to the length of the first optical fiber line and the length of the second optical fiber line. The third predetermined factor is a ratio of 1000 to a difference between the length of the second optical fiber line and the length of the first optical fiber line. For example, in equation 8, the difference between the length of the second optical fiber line and the length of the first optical fiber line is 9, the third predetermined coefficient is 1000/9, and the first communication device multiplies 1000/9 by the difference result to obtain the attenuation coefficient a.
Therefore, in the embodiment of the application, the transmitting end and the receiving end are interconnected through the first optical fiber line, and the first optical fiber line performs signal transmission, the first transmitting optical power and the first receiving optical power are read from the optical module; under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, second transmitting optical power and second receiving optical power are read from the optical module, then, a connection loss value and an attenuation coefficient are calculated according to the read optical power, and the connection loss value and the attenuation coefficient are substituted into the formula 2, so that the optical fiber transmission distance of the optical fiber line can be obtained.
In another possible implementation, the first communication device may also not calculate specific values of the connection loss value and the attenuation coefficient, but may modify the above equation 2 to obtain:
Figure 776294DEST_PATH_IMAGE026
the first communication device substitutes both formula 7 and formula 8 into the above-described modified formula 2, that is, in the modified formula 2, adopts
Figure 273134DEST_PATH_IMAGE027
Replacing deformed ones of equation 2
Figure 454717DEST_PATH_IMAGE028
By using
Figure DEST_PATH_IMAGE029
Replacing a in the deformed formula 2 to obtain formula 9:
Figure 706707DEST_PATH_IMAGE030
equation 9
Thus, the first communication device substitutes the read current transmitted optical power, current received optical power, first transmitted optical power, first received optical power, second transmitted optical power, and second received optical power into equation 9, and the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device can be calculated.
According to the embodiment of the application, the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device can be automatically, effectively and simply acquired, the optical fiber transmission distance is compared with the maximum allowable transmission distance of the optical module, and if the optical fiber transmission distance exceeds the maximum allowable transmission distance of the optical module, the abnormal prompt information is output, so that reliable communication between the first communication device and the second communication device can be ensured. According to the embodiment of the application, the accuracy of the optical fiber transmission distance is improved, the implementation difficulty is reduced, and the method for detecting the abnormity of the optical module is easy to popularize.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 7, there is provided a light module abnormality detection apparatus provided in a first communication device in which a light module is provided, including:
an obtaining module 701, configured to read current transmitting optical power and current receiving optical power from the optical module in a process that the first communication device and the second communication device communicate with each other through an optical fiber, and obtain an optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power;
a detecting module 702, configured to obtain a maximum allowed transmission distance of the optical module, and detect whether the optical fiber transmission distance is greater than the maximum allowed transmission distance;
and the prompting module 703 is configured to output an abnormal prompting message if the optical fiber transmission distance is greater than the maximum allowable transmission distance, where the abnormal prompting message is used to prompt that the optical module has a fault hidden danger of over-distance transmission.
In one embodiment, the obtaining module 701 includes:
a first obtaining unit, configured to obtain a connection loss value of the optical module and the optical fiber line, and obtain an attenuation coefficient of the optical fiber line, where the connection loss value includes an optical fiber loss of a connection portion between a transmitting end of the optical module and the optical fiber line, and an optical fiber loss of a connection portion between a receiving end of the optical module and the optical fiber line;
a first calculation unit for calculating a target difference value of the current transmitted optical power and the current received optical power;
and the second calculation unit is used for calculating the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value.
In an embodiment, the first obtaining unit is specifically configured to, when the transmitting end and the receiving end are interconnected by a first optical fiber line and the first optical fiber line performs signal transmission, read a first transmitting optical power and a first receiving optical power from the optical module; under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, reading second transmitting optical power and second receiving optical power from the optical module, wherein the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different; calculating a first difference between the first emitted optical power and the first received optical power, and calculating a second difference between the second emitted optical power and the second received optical power; and calculating the connection loss value according to the first difference value and the second difference value, and calculating the attenuation coefficient according to the first difference value and the second difference value.
In an embodiment, the first obtaining unit is specifically configured to multiply the first difference by a first preset coefficient to obtain a first product; and subtracting the second difference from the first product, and dividing a result obtained by subtracting by a second preset coefficient to obtain the connection loss value, wherein the first preset coefficient and the second preset coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line.
In an embodiment, the first obtaining unit is specifically configured to calculate a difference result between the second difference and the first difference; and multiplying the difference result by a third preset coefficient to obtain the attenuation coefficient, wherein the third preset coefficient is related to the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, the detection module 702 includes:
the second acquisition unit is used for acquiring factory specification data of the optical module;
and the determining unit is used for determining the maximum allowable transmission distance according to the factory specification data.
In one embodiment, the apparatus further comprises:
and the compliance prompt module is used for outputting compliance prompt information if the optical fiber transmission distance is less than or equal to the maximum allowable transmission distance, wherein the compliance prompt information is used for prompting that the optical fiber transmission distance meets the transmission distance requirement of the optical module.
For specific limitations of the optical module abnormality detection apparatus, reference may be made to the above limitations on the optical module abnormality detection method, which is not described herein again. All or part of each module in the optical module abnormality detection apparatus may be implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the communication device, and can also be stored in a memory in the communication device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a communication device is provided, the internal structure of which may be as shown in fig. 8. The communication device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the communication device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the communication device is used for storing light module abnormality detection data. The network interface of the communication device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a light module anomaly detection method.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation on the communication device to which the present application applies, and that a particular communication device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment, a communication device is provided, which includes a memory and a processor, the memory stores a computer program, the communication device is provided with a light module, the processor realizes the following steps when executing the computer program:
reading current transmitting optical power and current receiving optical power from the optical module in the process that the first communication device and the second communication device communicate through optical fibers, and acquiring the optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power;
acquiring the maximum allowable transmission distance of the optical module, and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance;
and if the optical fiber transmission distance is greater than the maximum allowable transmission distance, outputting abnormal prompt information, wherein the abnormal prompt information is used for prompting that the optical module has the fault hidden trouble of over-distance transmission.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a connection loss value of the optical module and the optical fiber line and acquiring an attenuation coefficient of the optical fiber line, wherein the connection loss value comprises optical fiber loss of a connection part of a sending end of the optical module and the optical fiber line and optical fiber loss of a connection part of a receiving end of the optical module and the optical fiber line;
calculating a target difference value of the current transmitted optical power and the current received optical power;
and calculating the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that the transmitting end and the receiving end are interconnected through a first optical fiber line and the first optical fiber line carries out signal transmission, reading first transmitting optical power and first receiving optical power from the optical module;
under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, reading second transmitting optical power and second receiving optical power from the optical module, wherein the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different;
calculating a first difference between the first emitted optical power and the first received optical power, and calculating a second difference between the second emitted optical power and the second received optical power;
and calculating the connection loss value according to the first difference value and the second difference value, and calculating the attenuation coefficient according to the first difference value and the second difference value.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
multiplying the first difference value by a first preset coefficient to obtain a first product;
and subtracting the second difference from the first product, and dividing a result obtained by subtracting by a second preset coefficient to obtain the connection loss value, wherein the first preset coefficient and the second preset coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
calculating a difference result of the second difference and the first difference;
and multiplying the difference result by a third preset coefficient to obtain the attenuation coefficient, wherein the third preset coefficient is related to the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring factory specification data of the optical module;
and determining the maximum allowable transmission distance according to the factory specification data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the optical fiber transmission distance is smaller than or equal to the maximum allowable transmission distance, outputting compliance prompt information, wherein the compliance prompt information is used for prompting that the optical fiber transmission distance meets the transmission distance requirement of the optical module.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
reading current transmitting optical power and current receiving optical power from the optical module in the process that the first communication device and the second communication device communicate through optical fibers, and acquiring the optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power;
acquiring the maximum allowable transmission distance of the optical module, and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance;
and if the optical fiber transmission distance is greater than the maximum allowable transmission distance, outputting abnormal prompt information, wherein the abnormal prompt information is used for prompting that the optical module has the fault hidden trouble of over-distance transmission.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a connection loss value of the optical module and the optical fiber line and acquiring an attenuation coefficient of the optical fiber line, wherein the connection loss value comprises optical fiber loss of a connection part of a sending end of the optical module and the optical fiber line and optical fiber loss of a connection part of a receiving end of the optical module and the optical fiber line;
calculating a target difference value of the current transmitted optical power and the current received optical power;
and calculating the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
under the condition that the transmitting end and the receiving end are interconnected through a first optical fiber line and the first optical fiber line carries out signal transmission, reading first transmitting optical power and first receiving optical power from the optical module;
under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, reading second transmitting optical power and second receiving optical power from the optical module, wherein the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different;
calculating a first difference between the first emitted optical power and the first received optical power, and calculating a second difference between the second emitted optical power and the second received optical power;
and calculating the connection loss value according to the first difference value and the second difference value, and calculating the attenuation coefficient according to the first difference value and the second difference value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
multiplying the first difference value by a first preset coefficient to obtain a first product;
and subtracting the second difference from the first product, and dividing a result obtained by subtracting by a second preset coefficient to obtain the connection loss value, wherein the first preset coefficient and the second preset coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, the computer program when executed by the processor further performs the steps of:
calculating a difference result of the second difference and the first difference;
and multiplying the difference result by a third preset coefficient to obtain the attenuation coefficient, wherein the third preset coefficient is related to the length of the first optical fiber line and the length of the second optical fiber line.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring factory specification data of the optical module;
and determining the maximum allowable transmission distance according to the factory specification data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the optical fiber transmission distance is smaller than or equal to the maximum allowable transmission distance, outputting compliance prompt information, wherein the compliance prompt information is used for prompting that the optical fiber transmission distance meets the transmission distance requirement of the optical module.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for detecting abnormality of a light module, the method being used for a first communication device, the first communication device being provided with the light module, the method comprising:
reading current transmitting optical power and current receiving optical power from the optical module in the process that the first communication device and the second communication device communicate through optical fibers, and acquiring the optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power, wherein the current receiving optical power is obtained by monitoring the current receiving optical power of the optical module by the optical module;
acquiring the maximum allowable transmission distance of the optical module, and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance;
if the optical fiber transmission distance is greater than the maximum allowable transmission distance, outputting abnormal prompt information, wherein the abnormal prompt information is used for prompting that the optical module has fault hidden danger of over-distance transmission;
wherein the obtaining of the optical fiber transmission distance of the optical fiber line between the first communication device and the second communication device according to the current transmitted optical power and the current received optical power includes:
acquiring a connection loss value of the optical module and the optical fiber line and acquiring an attenuation coefficient of the optical fiber line, wherein the connection loss value comprises optical fiber loss of a connection part of a sending end of the optical module and the optical fiber line and optical fiber loss of a connection part of a receiving end of the optical module and the optical fiber line;
calculating a target difference value of the current transmitted optical power and the current received optical power;
calculating the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value;
the obtaining of the connection loss value between the optical module and the optical fiber line and the obtaining of the attenuation coefficient of the optical fiber line include:
under the condition that the transmitting end and the receiving end are interconnected through a first optical fiber line and the first optical fiber line carries out signal transmission, reading first transmitting optical power and first receiving optical power from the optical module;
under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, reading second transmitting optical power and second receiving optical power from the optical module, wherein the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different;
calculating a first difference between the first emitted optical power and the first received optical power, and calculating a second difference between the second emitted optical power and the second received optical power;
and calculating the connection loss value according to the first difference value and the second difference value, and calculating the attenuation coefficient according to the first difference value and the second difference value.
2. The method of claim 1, wherein said calculating the connection loss value based on the first difference and the second difference comprises:
multiplying the first difference value by a first preset coefficient to obtain a first product;
and subtracting the second difference from the first product, and dividing a result obtained by subtracting by a second preset coefficient to obtain the connection loss value, wherein the first preset coefficient and the second preset coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line.
3. The method of claim 1, wherein said calculating the attenuation coefficient based on the first difference and the second difference comprises:
calculating a difference result of the second difference and the first difference;
and multiplying the difference result by a third preset coefficient to obtain the attenuation coefficient, wherein the third preset coefficient is related to the length of the first optical fiber line and the length of the second optical fiber line.
4. The method according to any of claims 1-3, wherein said obtaining a maximum allowed transmission distance of said light module comprises:
acquiring factory specification data of the optical module;
and determining the maximum allowable transmission distance according to the factory specification data.
5. The method according to any of claims 1-3, wherein after said detecting whether said fiber transmission distance is greater than said maximum allowed transmission distance, said method further comprises:
and if the optical fiber transmission distance is smaller than or equal to the maximum allowable transmission distance, outputting compliance prompt information, wherein the compliance prompt information is used for prompting that the optical fiber transmission distance meets the transmission distance requirement of the optical module.
6. An optical module abnormality detection apparatus provided in a first communication device in which an optical module is provided, the apparatus comprising:
an obtaining module, configured to, in a process that the first communication device and the second communication device communicate with each other through an optical fiber, read a current transmitting optical power and a current receiving optical power from the optical module, and obtain an optical fiber transmission distance of an optical fiber line between the first communication device and the second communication device according to the current transmitting optical power and the current receiving optical power, where the current receiving optical power is obtained by monitoring, by the optical module, the current receiving optical power of the optical module;
the detection module is used for acquiring the maximum allowable transmission distance of the optical module and detecting whether the optical fiber transmission distance is greater than the maximum allowable transmission distance;
the prompting module is used for outputting abnormal prompting information if the optical fiber transmission distance is greater than the maximum allowable transmission distance, wherein the abnormal prompting information is used for prompting that the optical module has fault hidden danger of over-distance transmission;
wherein, the obtaining module includes:
a first obtaining unit, configured to obtain a connection loss value of the optical module and the optical fiber line, and obtain an attenuation coefficient of the optical fiber line, where the connection loss value includes an optical fiber loss of a connection portion between a transmitting end of the optical module and the optical fiber line, and an optical fiber loss of a connection portion between a receiving end of the optical module and the optical fiber line;
a first calculation unit for calculating a target difference value of the current transmitted optical power and the current received optical power;
the second calculation unit is used for calculating the optical fiber transmission distance of the optical fiber line according to the connection loss value, the attenuation coefficient and the target difference value;
the first obtaining unit is specifically configured to, when the transmitting end and the receiving end are interconnected by a first optical fiber line and the first optical fiber line performs signal transmission, read a first transmitting optical power and a first receiving optical power from the optical module; under the condition that the transmitting end and the receiving end are interconnected through a second optical fiber line and the second optical fiber line carries out signal transmission, reading second transmitting optical power and second receiving optical power from the optical module, wherein the lengths of the optical fiber line, the first optical fiber line and the second optical fiber line are different; calculating a first difference between the first emitted optical power and the first received optical power, and calculating a second difference between the second emitted optical power and the second received optical power; and calculating the connection loss value according to the first difference value and the second difference value, and calculating the attenuation coefficient according to the first difference value and the second difference value.
7. The apparatus according to claim 6, wherein the first obtaining unit is specifically configured to multiply the first difference by a first preset coefficient to obtain a first product; and subtracting the second difference from the first product, and dividing a result obtained by subtracting by a second preset coefficient to obtain the connection loss value, wherein the first preset coefficient and the second preset coefficient are both determined by the length of the first optical fiber line and the length of the second optical fiber line.
8. The apparatus according to claim 6, wherein the first obtaining unit is specifically configured to calculate a difference result of the second difference and the first difference; and multiplying the difference result by a third preset coefficient to obtain the attenuation coefficient, wherein the third preset coefficient is related to the length of the first optical fiber line and the length of the second optical fiber line.
9. A communication device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202011585684.8A 2020-12-29 2020-12-29 Optical module abnormality detection method and device, communication equipment and readable storage medium Active CN112291000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011585684.8A CN112291000B (en) 2020-12-29 2020-12-29 Optical module abnormality detection method and device, communication equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011585684.8A CN112291000B (en) 2020-12-29 2020-12-29 Optical module abnormality detection method and device, communication equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112291000A CN112291000A (en) 2021-01-29
CN112291000B true CN112291000B (en) 2021-04-09

Family

ID=74426541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011585684.8A Active CN112291000B (en) 2020-12-29 2020-12-29 Optical module abnormality detection method and device, communication equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112291000B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001574B (en) * 2022-05-24 2023-07-11 淮南文峰光电科技股份有限公司 Parallel interconnection optical communication network component detection system
CN116131938B (en) * 2023-02-14 2023-11-24 讯芸电子科技(中山)有限公司 Method and device for determining abnormal signals of equipment carrying optoelectronic module
CN117527067A (en) * 2024-01-05 2024-02-06 深圳国人无线通信有限公司 Method for detecting optical fiber transmission quality and repeater system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075851A (en) * 2007-06-22 2007-11-21 华为技术有限公司 Method and apparatus for discriminating optical module transmission mode
CN102355300A (en) * 2011-08-15 2012-02-15 福建星网锐捷网络有限公司 Method and device for determining power consumption of optical module
CN106411401A (en) * 2016-11-18 2017-02-15 成都英德思网络技术有限公司 Industrial Ethernet switch with optical power detection
CN108988939A (en) * 2018-09-05 2018-12-11 深圳市达士科技股份有限公司 It is a kind of it is quick judge optical cable decaying whether the method for exception and optical module luminous power specific value
CN110224750A (en) * 2019-06-04 2019-09-10 北京百度网讯科技有限公司 Determination method and device, equipment and the storage medium of optical module working condition

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9379771B2 (en) * 2013-06-25 2016-06-28 Cisco Technology, Inc. Fiber length measurement system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075851A (en) * 2007-06-22 2007-11-21 华为技术有限公司 Method and apparatus for discriminating optical module transmission mode
CN102355300A (en) * 2011-08-15 2012-02-15 福建星网锐捷网络有限公司 Method and device for determining power consumption of optical module
CN106411401A (en) * 2016-11-18 2017-02-15 成都英德思网络技术有限公司 Industrial Ethernet switch with optical power detection
CN108988939A (en) * 2018-09-05 2018-12-11 深圳市达士科技股份有限公司 It is a kind of it is quick judge optical cable decaying whether the method for exception and optical module luminous power specific value
CN110224750A (en) * 2019-06-04 2019-09-10 北京百度网讯科技有限公司 Determination method and device, equipment and the storage medium of optical module working condition

Also Published As

Publication number Publication date
CN112291000A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112291000B (en) Optical module abnormality detection method and device, communication equipment and readable storage medium
JP7013802B2 (en) Optical cable monitoring system
US9791347B2 (en) Method and system for non-contact optical-power measurement
US8135274B2 (en) System and method for fault identification in optical communication systems
EP2846480B1 (en) Method and device for measuring a link loss of an optical transmission line
CN110034820B (en) System and method for parameter reporting of components in an optical transmission system
CN111448768A (en) Fault detection and reporting in line monitoring systems
US7920788B2 (en) Optical transceiver with clock for providing maintenance and lifetime information
US7835642B2 (en) Optical transceiver module end of life indication
EP2783471B1 (en) System and method using fault injection into line monitoring system baselines
CN103634045A (en) High-powered optical module safety systems and methods
US10944472B2 (en) System for reporting optical link failures using intelligent small form-factor pluggable optical time domain reflectometer
CN106404153B (en) A kind of multi-channel fiber Bragg grating vibration signal intelligent Sensorsystem that parallel distributed calculates
JP2007221517A (en) Pon (passive optical network) system
CN112204369B (en) Method for measuring transmission loss of optical fiber and OTDR measuring device
JP5297989B2 (en) Measuring apparatus, measuring method, and program
KR101169404B1 (en) Apparatus and Method for detecting an ONTOptical Network Terminal of FTTH
US8594500B2 (en) Connection loss scheme for fiber connections in optical communication system
EP2940502A1 (en) Method and apparatus for fiber matching in optical fiber and cable networks, and optical fiber and cable networks
WO2020098277A1 (en) Distributed optical fiber sensing system and control method and control device therefor, and storage medium
US6627867B2 (en) Integrated fiber optic receiver power meter
US20090263126A1 (en) Monitoring the physical layer of optoelectronic modules
CN113346947A (en) Method for self-monitoring and automatic evaluation of performance of light emitting end of optical module
US20160197672A1 (en) Method of measuring optical return loss
KR102535594B1 (en) Apparatus and method for monitoring optical network termination based on machine learning

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
CP03 Change of name, title or address

Address after: 701, 7th Floor, Building 6, Courtyard 8, Kegu 1st Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing, 100176

Patentee after: Beijing Tasson Technology Ltd.

Address before: 100089 room 01, 11 / F, building 6, courtyard A2, Xisanhuan North Road, Haidian District, Beijing

Patentee before: BEIJING TASSON TECHNOLOGY Ltd.

CP03 Change of name, title or address