CN117938257A - Method and system for collecting transmitting and receiving power of optical module and alarming abnormality - Google Patents
Method and system for collecting transmitting and receiving power of optical module and alarming abnormality Download PDFInfo
- Publication number
- CN117938257A CN117938257A CN202410154633.1A CN202410154633A CN117938257A CN 117938257 A CN117938257 A CN 117938257A CN 202410154633 A CN202410154633 A CN 202410154633A CN 117938257 A CN117938257 A CN 117938257A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- optical
- interface
- channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 201
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000005856 abnormality Effects 0.000 title claims description 22
- 238000012545 processing Methods 0.000 claims abstract description 49
- 238000004891 communication Methods 0.000 claims abstract description 22
- 230000005540 biological transmission Effects 0.000 claims abstract description 12
- 230000015654 memory Effects 0.000 claims description 20
- 230000008859 change Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004458 analytical method Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 claims description 8
- 230000010354 integration Effects 0.000 claims description 5
- 230000000737 periodic effect Effects 0.000 claims description 5
- 230000004931 aggregating effect Effects 0.000 claims 1
- 230000002159 abnormal effect Effects 0.000 abstract description 10
- 238000012544 monitoring process Methods 0.000 description 8
- 238000007781 pre-processing Methods 0.000 description 5
- 238000013480 data collection Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010606 normalization Methods 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000004888 barrier function Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
Landscapes
- Optical Communication System (AREA)
Abstract
The disclosure provides a method, a system, an electronic device and a storage medium for collecting and alarming the receiving and transmitting power of an optical module, so as to solve the problem that the optical power of the optical module with different types of transmission rates cannot be monitored and collected uniformly, wherein the method comprises the following steps: collecting interface module information of the data communication equipment through SNMP; judging the type of the interface module, respectively sending the information of each interface module to different processing modules according to the type of the interface module, and acquiring the data of the light receiving and transmitting power of the equipment interface light module through the different processing modules; and collecting and storing the obtained received and transmitted light power data, and calculating and analyzing the stored data to obtain alarm content. The system and the method can be compatible with optical modules of different manufacturers, and can realize the collection of the receiving and transmitting power and abnormal alarm for the optical modules with different channel numbers; high efficiency and high reliability.
Description
Technical Field
The disclosure relates to the technical field of optical modules, in particular to an optical module transceiving power acquisition and abnormality alarm method, an optical module transceiving power acquisition and abnormality alarm system, an electronic device and a computer readable storage medium.
Background
The optical module is a core device for optical communication, and is used for performing photoelectric/electro-optical conversion on optical signals, and is divided into a receiving part and a transmitting part, and the optical module is divided into three types of multimode, single mode and long distance according to transmission distances. The transmission medium of the optical module is an optical fiber, the loss of the optical fiber transmission mode is low, the transmission distance is long, and the optical fiber has strong advantages in the aspect of long-distance transmission. Because of the characteristics of the optical module, simplicity, easiness in use and the like, the optical module is widely applied to telecommunication and data communication, and the market income and the value brought by the optical module are very large, so that a large number of optical modules with various types appear on the market, and when the optical module is used, the transmitted optical power and the received optical power of the optical module need to be collected and detected, the transmitted optical power refers to the light intensity of a transmitting end, the received optical power refers to the light intensity of a receiving end, and the transmitted optical power and the received optical power both take dBm as important parameters affecting the transmission quality. Because the optical modules of different manufacturers are different in parameters and specifications, barriers exist in technology, and the receiving and transmitting power acquisition of the optical modules on the market is mostly developed for respective manufacturers or certain manufacturers; and the optical modules of different channels are different in the collection mode of the transmitted and received optical power. The existing network manager cannot uniformly monitor and collect the optical power of optical modules with different types of transmission rates of different manufacturers. The operation and maintenance personnel are required to periodically patrol all the optical ports of a large number of network devices, the workload is large, the time consumption is long, and the efficiency is low.
Disclosure of Invention
In order to at least solve the technical problem that the optical power of optical modules of different manufacturers and different types of transmission rates cannot be monitored and collected uniformly in the prior art, the disclosure provides an optical module transceiving power collection and abnormality alarm method, an optical module transceiving power collection and abnormality alarm system, electronic equipment and a computer readable storage medium, which can be compatible with the optical modules of different manufacturers, and can realize the collection of transceiving power and abnormality alarm for the optical modules of different channel numbers; high efficiency and high reliability.
In a first aspect, the present disclosure provides a method for collecting transmit-receive power of an optical module and alarming abnormality, the method comprising:
Collecting interface module information of the data communication equipment through a simple network management protocol SNMP (Simple Network Management Protocol;
Judging the type of the interface module, respectively sending the information of each interface module to different processing modules according to the type of the interface module, and acquiring the data of the light receiving and transmitting power of the equipment interface light module through the different processing modules;
and collecting and storing the obtained received and transmitted light power data, and calculating and analyzing the stored data to obtain alarm content.
Further, the method further comprises:
And integrating and coding the obtained alarm content and sending the alarm content to a network manager through a proxy gateway.
Further, the collecting the interface module information of the data communication device through the simple network management protocol SNMP includes:
and through MIB (MANAGEMENT INFORMATION BASE ) information of the integrated data communication equipment, carrying out periodic interface module information acquisition on equipment of different manufacturers by automatically matching different SNMP instructions, wherein the interface module information comprises an interface ID, an interface name, an interface type and an interface channel number.
Further, the sending the information of each interface module to different processing modules according to the type of the interface module, and obtaining the data of the transmit-receive optical power of the equipment interface optical module by the different processing modules includes:
if the type of the interface module is judged to be unequal to the optical module, discarding the related data of the interface, and ending the processing process;
If the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is more than 1, the data is sent to the multi-channel optical module unit to be continuously processed, so that the multi-channel optical module unit inquires the MIB library, and the received light power data of the interface optical module is accurately acquired from the equipment through the multi-channel OID (Object Identifier );
If the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is judged to be equal to 1, the data are sent to the single-channel optical module unit for continuous processing, so that the single-channel optical module unit inquires the MIB library, and the optical power data received by the interface optical module are accurately acquired through the single-channel OID slave equipment.
Further, the step of summarizing and storing the obtained transmit-receive optical power data includes:
For data values with different numbers, which are acquired by optical modules with different channel numbers, when the data are stored in a database, the data values of all channels received by the optical modules are sequentially marked as W1, W2, … and Wn, the data values of all channels emitted by the optical modules are sequentially marked as X1, X2, … and Xn, and the data values corresponding to the channels with small channel numbers and the channels with vacancies of the optical modules are set as NULL; and
When data are stored in the database, the limiting values of the optical modules are stored corresponding to the optical modules, wherein the limiting values of the optical modules comprise a light receiving upper limit Y1, a light receiving lower limit Y2, a light emitting upper limit Z1 and a light emitting lower limit Z2.
Further, the calculating and analyzing the stored data to obtain the alarm content includes:
Presetting an alarm threshold M;
For a single-channel optical module, if the absolute value of the change rate of the latest 1-time collected data and the former 1-time collected data is larger than M, or the latest 1-time collected data exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out;
For a multi-channel optical module, if the absolute value of the change rate of any channel data acquired by the latest 1 times and the data acquired by the former 1 times is larger than M, or any channel data acquired by the latest 1 times exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out.
Further, the integrating encoding of the obtained alarm content, and the sending to the network administrator through the proxy gateway includes:
After integrating and coding the alarm content, configuring the IP of the proxy gateway in the internal network environment, and transmitting the alarm to a network manager in real time through the proxy gateway.
In a second aspect, the present disclosure provides an optical module transmit-receive power acquisition and anomaly alarm system, the system comprising:
the acquisition module is used for acquiring interface module information of the data communication equipment through a simple network management protocol SNMP;
The acquisition module is used for judging the type of the interface module, respectively transmitting the information of each interface module to different processing modules according to the type of the interface module, and acquiring the data of the light receiving and transmitting power of the equipment interface light module through the different processing modules;
and the analysis module is used for summarizing and storing the acquired received and transmitted light power data, and calculating and analyzing the stored data to obtain alarm content.
Further, the system also comprises a sending module;
the sending module is used for carrying out integration coding on the obtained alarm content and sending the alarm content to a network manager through the proxy gateway.
In a third aspect, the present disclosure provides an electronic device, including a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the optical module transceiver power collection and abnormality alert method according to any one of the first aspects.
In a fourth aspect, the present disclosure provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the method for collecting optical module transmit-receive power and alarming abnormality in any one of the first aspects.
The beneficial effects are that:
The optical module receiving and transmitting power acquisition and abnormal alarm system, the electronic equipment and the storage medium can be compatible with optical modules of different manufacturers, and can acquire receiving and transmitting power and abnormal alarm for optical modules with different channel numbers; high efficiency and high reliability. And the abnormal automatic alarm is beneficial to network management technicians to improve the monitoring efficiency, enrich monitoring means, shorten the fault processing time and improve the fault processing capacity.
Drawings
Fig. 1 is a flow chart of a method for collecting transmit-receive power and alarming abnormality of an optical module according to a first embodiment of the present disclosure;
fig. 2 is a schematic diagram of a system for collecting transmit-receive power of an optical module and alarming abnormality according to a second embodiment of the present disclosure;
Fig. 3 is a architecture diagram of an optical module transceiver power acquisition and anomaly alarm system according to a third embodiment of the present disclosure;
Fig. 4 is a schematic diagram of an electronic device according to a fourth embodiment of the disclosure.
Detailed Description
In order that those skilled in the art will better understand the technical solutions of the present disclosure, the present disclosure will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments and figures described herein are merely illustrative of the invention, and are not limiting of the invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order; moreover, embodiments of the present disclosure and features of embodiments may be arbitrarily combined with each other without conflict.
Wherein the terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present disclosure, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems existing in the prior art in detail with specific embodiments. It is to be understood that, in the embodiments of the present application, the execution subject may perform some or all of the steps in the embodiments of the present application, these steps or operations are only examples, and the embodiments of the present application may also perform other operations or variations of the various operations. Furthermore, the various steps may be performed in a different order presented in accordance with embodiments of the application, and it is possible that not all of the operations in the embodiments of the application may be performed. Moreover, the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a flow chart of a method for collecting transmit-receive power and alarming abnormality of an optical module according to a first embodiment of the present disclosure, as shown in fig. 1, where the method includes:
Step S101: collecting interface module information of the data communication equipment through a simple network management protocol SNMP;
In order to solve the problem that optical modules of different manufacturers and different channels cannot uniformly perform transmit-receive power collection and abnormal alarm, the embodiment of the disclosure needs to perform preprocessing on a data collection process, namely, through integrating MIB (management information base) libraries of all manufacturers, collect information of interface modules of communication equipment, and realize that equipment of different manufacturers can automatically match with different SNMP instructions to perform data collection.
Further, the collecting the interface module information of the data communication device through the simple network management protocol SNMP includes:
And through integrating MIB information of the data communication equipment, carrying out periodic interface module information acquisition on equipment of different manufacturers by automatically matching different SNMP instructions, wherein the interface module information comprises an interface ID, an interface name, an interface type and an interface channel number.
Through integrating MIB information of the used communication equipment, equipment of different manufacturers is automatically matched with different SNMP instructions to carry out periodic acquisition of data, and the period of data acquisition is T; the period T can be set independently, all acquired information is further processed, whether the information is optical module data is judged first, the type of the optical module is judged according to the number of interface channels in the information, namely whether the optical module is a single-channel optical module or a multi-channel optical module is determined, and therefore information acquisition and information transmission of optical modules of different manufacturers to a proper processing module are achieved.
Step S102: judging the type of the interface module, respectively sending the information of each interface module to different processing modules according to the type of the interface module, and acquiring the data of the light receiving and transmitting power of the equipment interface light module through the different processing modules;
And judging whether the interface module is an optical module or not, and sending information to different service processing modules according to the number of the interface channels to accurately acquire the information. Each service processing module queries the MIB library and accurately acquires the received light power data of the interface light module from the corresponding equipment through the channel OID; by integrating the mainstream vendor OID, by converting the formula: p (dBm) =10 Log (P/1 mW). And acquiring the light receiving and transmitting power of the light module.
Further, the sending the information of each interface module to different processing modules according to the type of the interface module, and obtaining the data of the transmit-receive optical power of the equipment interface optical module by the different processing modules includes:
if the type of the interface module is judged to be unequal to the optical module, discarding the related data of the interface, and ending the processing process;
if the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is more than 1, the data is sent to the multi-channel optical module unit to be continuously processed, so that the multi-channel optical module unit inquires the MIB library, and the light power data received by the interface optical module is accurately acquired from the equipment through the multi-channel OID;
If the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is judged to be equal to 1, the data are sent to the single-channel optical module unit for continuous processing, so that the single-channel optical module unit inquires the MIB library, and the optical power data received by the interface optical module are accurately acquired through the single-channel OID slave equipment.
Firstly judging whether the type of the interface module is an optical module, and further judging whether the number of channels of the interface module is more than 1, so that different module types are sent to different service processing modules for accurate information acquisition.
Step S103: and collecting and storing the obtained received and transmitted light power data, and calculating and analyzing the stored data to obtain alarm content.
Collecting and storing the data of the light receiving and transmitting power of the light modules with various channel numbers, storing the limit value of the light receiving and transmitting power together during storage, judging whether the light receiving and transmitting power of the light modules is stable or not through data comparison analysis, and judging whether the light receiving and transmitting power exceeds the limit value of the light modules or not to obtain alarm content.
Further, the step of summarizing and storing the obtained transmit-receive optical power data includes:
For data values with different numbers, which are acquired by optical modules with different channel numbers, when the data are stored in a database, the data values of all channels received by the optical modules are sequentially marked as W1, W2, … and Wn, the data values of all channels emitted by the optical modules are sequentially marked as X1, X2, … and Xn, and the data values corresponding to the channels with small channel numbers and the channels with vacancies of the optical modules are set as NULL; and
When data are stored in the database, the limiting values of the optical modules are stored corresponding to the optical modules, wherein the limiting values of the optical modules comprise a light receiving upper limit Y1, a light receiving lower limit Y2, a light emitting upper limit Z1 and a light emitting lower limit Z2.
The number of data values collected by the optical modules with different channel numbers is different, and when the database is stored, the optical modules are used for receiving light, and the codes of the channels are W1, W2, … and Wn in sequence; and (3) the data values of all the channels emitted by the optical module are sequentially marked as X1, X2, … and Xn, and the positions of the corresponding vacancies of the optical module with small channel number are set as NULL. And realizing independent storage analysis of each channel of data for the multi-channel optical module. The optical modules of different manufacturers and models are provided with an upper light receiving limit Y1, a lower light receiving limit Y2, an upper light emitting limit Z1 and a lower light emitting limit Z2, and the optical modules can be considered to work abnormally when exceeding any limiting value and are required to be processed. And storing the 4 limit values together when the data are stored in the database.
Further, the calculating and analyzing the stored data to obtain the alarm content includes:
Presetting an alarm threshold M;
For a single-channel optical module, if the absolute value of the change rate of the latest 1-time collected data and the former 1-time collected data is larger than M, or the latest 1-time collected data exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out;
For a multi-channel optical module, if the absolute value of the change rate of any channel data acquired by the latest 1 times and the data acquired by the former 1 times is larger than M, or any channel data acquired by the latest 1 times exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out.
Before the alarm monitoring related to the optical power of the optical module is carried out, a network administrator sets an alarm threshold M in advance.
For the single-channel optical module, if the absolute value of the change rate of the latest 1-time collected data and the former 1-time collected data is larger than M, an alarm is sent to the sending module. If the data acquired 1 time exceeds the limit value { Y1|Y2|Z1|Z2} of the device itself, an alarm is also sent to the sending module.
For the multi-channel optical module, if the absolute value of the change rate of any channel data acquired for the latest 1 time and the data acquired for the channel for the previous 1 time is larger than M, an alarm is sent to the sending module. If any channel data of the latest 1 acquisition exceeds the limit value { Y1|Y2|Z1|Z2} of the device itself, an alarm is also sent to the sending module.
The data comparison in the calculation analysis refers to the data comparison of the same dimension, namely, the received light data and the received light data are compared, and the light emitting data are compared.
And through the set threshold value M and the collected upper and lower limit values of the received light, the absolute value of the numerical value change collected in the last two times exceeds M or any collection value exceeds the upper and lower limit values, and the system generates corresponding alarm information. The alarm content is transmitted to the network management department in real time after being transmitted to the sending module, thereby improving the monitoring efficiency of the optical module power, automatically sending out the alarm, enriching monitoring means, shortening the fault processing time and improving the fault processing capability.
And for the multichannel optical module, by collecting and counting the data value of each channel during collection, which channel is abnormal can be judged, and the condition that one channel is abnormal and can not be identified due to the fact that only the whole power is collected can be prevented from being ignored, so that the monitoring is more detailed and more reliable.
Further, the method further comprises:
And integrating and coding the obtained alarm content, and sending the alarm content to a network manager through a proxy gateway.
The alarm content can be integrated and coded by the EMAIL/WECHAT unit integration butt joint EMAIL/WECHAT API, and the obtained alarm content is sent to a network administrator in a mail or micro-communication mode through a proxy gateway. The network manager can automatically and real-timely receive the abnormal information of the optical module, and the efficiency and the reliability are high.
Further, the integrating encoding of the obtained alarm content and sending the alarm content to the network administrator through the proxy gateway includes:
After integrating and coding the alarm content, configuring the IP of the proxy gateway in the internal network environment, and transmitting the alarm to a network manager in real time through the proxy gateway.
And after integrating and encoding the alarm information, the EMAIL and wecaht unit is transmitted to the network proxy module for processing. The proxy module configures the IP of the proxy gateway in the internal network environment and sends the alarm to the network manager in real time through the proxy gateway. The collected and stored data can be sent to a network management department besides the alarm content, the collected information is processed in format and sent to a GUI (GRAPHICAL USER INTERFACE ) module for graphical display.
The embodiment of the disclosure can be compatible with optical modules of different manufacturers, and can realize acquisition of optical power and abnormal alarm for the optical modules with different channel numbers; high efficiency and high reliability. And the abnormal automatic alarm is beneficial to network management technicians to improve the monitoring efficiency, enrich monitoring means, shorten the fault processing time and improve the fault processing capacity.
The second embodiment of the disclosure further provides a method for collecting transmit-receive power and alarming abnormality of an optical module, which is implemented by an optical module transmit-receive power collecting and alarming abnormality system, wherein the system is shown in fig. 2, and comprises the following components:
pretreatment unit: the information collection module is configured to integrate MIB (management information base) of each manufacturer and collect information of the interface module of the communication equipment; a decision rule may be defined and different types of optical modules are sent to different modules for processing.
Single channel optical module unit: and the single-channel optical module unit queries the MIB library and obtains information by using the single-channel OID to obtain equipment.
Multichannel optical module unit: the multi-channel optical module unit queries the MIB library and obtains information by the multi-channel OID equipment.
Normalization processing unit: and carrying out normalization processing on the data sent by the single-channel optical module unit and the multi-channel optical module unit, carrying out data comparison analysis, GUI output and alarm output.
GUI element: and receiving the data sent by the normalization processing unit and carrying out graphical presentation.
EMAIL/WECHAT unit: the integration is connected with the EMAIL/WECHAT API, and the data are integrated and encoded.
PROXY (PROXY) unit: and sending the alarm information sent by the EMAIL/WECHAT unit to a proxy gateway in the network.
The method comprises the following steps:
1. The preprocessing process, namely collecting interface module information of the data communication equipment through SNMP (simple network management protocol), is completed through a preprocessing unit, the preprocessing unit integrates MIB information of the communication equipment in the step1, can automatically match different SNMP instructions for equipment of different manufacturers to conduct data collection, the period of data collection is T, and can classify collected results, and the interface module information comprises an interface ID, an interface name, an interface type and an interface channel number.
2. And judging the type of the interface module according to the preprocessing of the step 1, sending different interface module types to different modules for processing, and accurately acquiring the received light power data of the equipment interface optical module by the corresponding modules.
(1) If the type of the interface module is judged to be unequal to the optical module, discarding the related data of the interface, and ending the processing process;
(2) If the type of the interface module is judged to be equal to that of the optical module, further judging that if the number of channels of the interface module is more than 1, sending the data to a multi-channel optical module unit for continuous processing; and the multi-channel optical module unit inquires the MIB library and precisely acquires the received light power data of the interface optical module through multi-channel OID equipment removal.
(3) If the type of the interface module is judged to be equal to that of the optical module, further judging that if the number of channels of the interface module is equal to 1, sending the data to a single-channel optical module unit for continuous processing; and the single-channel optical module unit inquires the MIB library, and precisely acquires the received light power data of the interface optical module through single-channel OID equipment.
3. And (3) summarizing and storing all the results processed in the step (2), performing calculation and analysis to obtain alarm content, and sending the alarm content to an EMAIL and wecaht unit. The number of data values collected by the optical modules with different channel numbers is different, and when the data base is stored, the data values of the channels received by the optical modules are sequentially marked as W1, W2, … and Wn; and the data values of all channels emitted by the optical module are sequentially marked as X1, X2, … and Xn', and the data values corresponding to the channels with the small number of channels and the vacant channels of the optical module are set as NULL.
The optical modules of different manufacturers and models are provided with an upper light receiving limit Y1, a lower light receiving limit Y2, an upper light emitting limit Z1 and a lower light emitting limit Z2, and the optical modules can be considered to work abnormally when exceeding any limiting value and are required to be processed. The 4 limit values should be stored together when storing data in the database.
(1) The network manager sets an alarm threshold M in advance.
(2) And for the single-channel optical module, if the absolute value of the change rate of the latest 1-time acquired data and the former 1-time acquired data is larger than M, sending an alarm to the EMAIL and WECHAT module.
(3) And for the multi-channel optical module, if the absolute value of the change rate of any channel data acquired by the latest 1 time and the channel data acquired by the previous 1 time is larger than M, sending an alarm to the EMAIL and WECHAT module.
(4) For a single channel optical module, if the latest 1-time acquired data exceeds the limit value { Y1|Y2|Z1|Z2} of the device itself, an alarm is sent to the EMAIL and WECHAT modules.
(5) For a multi-channel optical module, if any of the most recently 1-acquired channel data exceeds the limit value { Y1|Y2|Z1|Z2} of the device itself, an alarm is sent to the EMAIL and WECHAT modules.
4. And (3) carrying out integration coding on the alarm content obtained in the step (3), and sending the alarm content to a network manager in a mail or WeChat mode through a proxy gateway. And after integrating and encoding the alarm information, the EMAIL and wecaht module is transmitted to the network proxy module for processing. The proxy module configures the IP of the proxy gateway in the internal network environment and sends the alarm to the network manager in real time through the proxy gateway.
The third embodiment of the present disclosure further provides a system for collecting transmit-receive power of an optical module and alarming abnormality, as shown in fig. 3, where the system includes:
an acquisition module 11 configured to acquire interface module information of the data communication device through a simple network management protocol SNMP;
the acquiring module 12 is configured to determine the type of the interface module, and send the information of each interface module to different processing modules according to the type of the interface module, and acquire the data of the transmit-receive optical power of the equipment interface optical module through the different processing modules;
and the analysis module 13 is used for summarizing and storing the acquired transmitted and received light power data and calculating and analyzing the stored data to obtain alarm content.
Further, the system also includes a transmitting module 14;
the sending module 14 is configured to integrate and encode the derived alarm content and send it to the network administrator via the proxy gateway.
Further, the collecting module 11 is specifically configured to:
And through integrating MIB information of the data communication equipment, carrying out periodic interface module information acquisition on equipment of different manufacturers by automatically matching different SNMP instructions, wherein the interface module information comprises an interface ID, an interface name, an interface type and an interface channel number.
Further, the acquiring module 12 is specifically configured to:
if the type of the interface module is judged to be unequal to the optical module, discarding the related data of the interface, and ending the processing process;
if the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is more than 1, the data is sent to the multi-channel optical module unit to be continuously processed, so that the multi-channel optical module unit inquires the MIB library, and the light power data received by the interface optical module is accurately acquired from the equipment through the multi-channel OID;
If the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is judged to be equal to 1, the data are sent to the single-channel optical module unit for continuous processing, so that the single-channel optical module unit inquires the MIB library, and the optical power data received by the interface optical module are accurately acquired through the single-channel OID slave equipment.
Further, the analysis module 13 is specifically configured to:
for data values with different numbers, which are acquired by optical modules with different channel numbers, when the data are stored in a database, the data values of all channels received by the optical modules are sequentially marked as W1, W2, … and Wn, the data values of all channels emitted by the optical modules are sequentially marked as X1, X2, … and Xn, and the data values corresponding to the channels with small channel numbers and the channels with vacancies of the optical modules are set as NULL; and
When data are stored in the database, the limiting values of the optical modules are stored corresponding to the optical modules, wherein the limiting values of the optical modules comprise a light receiving upper limit Y1, a light receiving lower limit Y2, a light emitting upper limit Z1 and a light emitting lower limit Z2.
Further, the analysis module 13 is specifically further configured to
Presetting an alarm threshold M;
For a single-channel optical module, if the absolute value of the change rate of the latest 1-time collected data and the former 1-time collected data is larger than M, or the latest 1-time collected data exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out;
For a multi-channel optical module, if the absolute value of the change rate of any channel data acquired by the latest 1 times and the data acquired by the former 1 times is larger than M, or any channel data acquired by the latest 1 times exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out.
Further, the transmitting module 14 is specifically configured to:
After integrating and coding the alarm content, configuring the IP of the proxy gateway in the internal network environment, and transmitting the alarm to a network manager in real time through the proxy gateway.
The optical module transmit-receive power acquisition and abnormality alarm system in the embodiment of the present disclosure is used to implement the optical module transmit-receive power acquisition and abnormality alarm methods in the first and second embodiments of the method, so that the description is simpler, and specific reference may be made to the related description in the first and second embodiments of the foregoing method, which is not repeated here.
In addition, as shown in fig. 4, the fourth embodiment of the present disclosure further provides an electronic device, including a memory 100 and a processor 200, where the memory 100 stores a computer program, and when the processor 200 runs the computer program stored in the memory 100, the processor 200 executes the above possible methods.
The memory 100 is connected to the processor 200, the memory 100 may be a flash memory, a read-only memory, or other memories, and the processor 200 may be a central processing unit or a single chip microcomputer.
Furthermore, embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a computer program that is executed by a processor to perform the various possible methods described above.
Computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media includes, but is not limited to, RAM (Random Access Memory ), ROM (Read-Only Memory), EEPROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY, charged erasable programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disks (DVD, digital Video Disc) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It is to be understood that the above embodiments are merely exemplary embodiments employed to illustrate the principles of the present disclosure, however, the present disclosure is not limited thereto. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the disclosure, and are also considered to be within the scope of the disclosure.
Claims (11)
1. The method for collecting the receiving and transmitting power of the optical module and alarming abnormality is characterized by comprising the following steps:
collecting interface module information of the data communication equipment through a simple network management protocol SNMP;
Judging the type of the interface module, respectively sending the information of each interface module to different processing modules according to the type of the interface module, and acquiring the data of the light receiving and transmitting power of the equipment interface light module through the different processing modules;
and collecting and storing the obtained received and transmitted light power data, and calculating and analyzing the stored data to obtain alarm content.
2. The method according to claim 1, wherein the method further comprises:
And integrating and coding the obtained alarm content and sending the alarm content to a network manager through a proxy gateway.
3. The method according to claim 1 or 2, wherein collecting interface module information of the data communication device via simple network management protocol SNMP comprises:
And automatically matching different SNMP instructions for equipment of different manufacturers to acquire periodic interface module information through integrating Management Information Base (MIB) information of the data communication equipment, wherein the interface module information comprises an interface ID, an interface name, an interface type and an interface channel number.
4. The method according to claim 1, wherein the sending the interface module information to different processing modules according to the type of the interface module, and obtaining the transmit/receive optical power data of the device interface optical module by the different processing modules includes:
if the type of the interface module is judged to be unequal to the optical module, discarding the related data of the interface, and ending the processing process;
if the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is more than 1, the data is sent to the multi-channel optical module unit to be continuously processed, so that the multi-channel optical module unit inquires the MIB library, and the light power data received by the interface optical module is accurately acquired from the equipment through the multi-channel object identifier OID;
If the type of the interface module is judged to be equal to the optical module and the number of channels of the interface module is judged to be equal to 1, the data are sent to the single-channel optical module unit for continuous processing, so that the single-channel optical module unit inquires the MIB library, and the optical power data received by the interface optical module are accurately acquired through the single-channel OID slave equipment.
5. The method of claim 4, wherein the aggregating the obtained transmit optical power data comprises:
For data values with different numbers, which are acquired by optical modules with different channel numbers, when the data are stored in a database, the data values of all channels received by the optical modules are sequentially marked as W1, W2, … and Wn, the data values of all channels emitted by the optical modules are sequentially marked as X1, X2, … and Xn, and the data values corresponding to the channels with small channel numbers and the channels with vacancies of the optical modules are set as NULL; and
When data are stored in the database, the limiting values of the optical modules are stored corresponding to the optical modules, wherein the limiting values of the optical modules comprise a light receiving upper limit Y1, a light receiving lower limit Y2, a light emitting upper limit Z1 and a light emitting lower limit Z2.
6. The method of claim 5, wherein computing the stored data to derive alert content comprises:
Presetting an alarm threshold M;
For a single-channel optical module, if the absolute value of the change rate of the latest 1-time collected data and the former 1-time collected data is larger than M, or the latest 1-time collected data exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out;
For a multi-channel optical module, if the absolute value of the change rate of any channel data acquired by the latest 1 times and the data acquired by the former 1 times is larger than M, or any channel data acquired by the latest 1 times exceeds the limit value { Y1|Y2|Z1|Z2} of the equipment, an alarm is sent out.
7. The method of claim 2, wherein the integrally encoding the derived alert content for transmission to a network administrator via a proxy gateway comprises:
After integrating and coding the alarm content, configuring the IP of the proxy gateway in the internal network environment, and transmitting the alarm to a network manager in real time through the proxy gateway.
8. An optical module transmit-receive power acquisition and abnormality alarm system, comprising:
the acquisition module is used for acquiring interface module information of the data communication equipment through a simple network management protocol SNMP;
The acquisition module is used for judging the type of the interface module, respectively transmitting the information of each interface module to different processing modules according to the type of the interface module, and acquiring the data of the light receiving and transmitting power of the equipment interface light module through the different processing modules;
and the analysis module is used for summarizing and storing the acquired received and transmitted light power data, and calculating and analyzing the stored data to obtain alarm content.
9. The system of claim 8, further comprising a transmission module;
the sending module is used for carrying out integration coding on the obtained alarm content and sending the alarm content to a network manager through the proxy gateway.
10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the optical module transmit-receive power acquisition and abnormality warning method according to any one of claims 1-7.
11. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for collecting the transceiving power of the optical module and alarming abnormality is realized according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410154633.1A CN117938257A (en) | 2024-02-02 | 2024-02-02 | Method and system for collecting transmitting and receiving power of optical module and alarming abnormality |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410154633.1A CN117938257A (en) | 2024-02-02 | 2024-02-02 | Method and system for collecting transmitting and receiving power of optical module and alarming abnormality |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117938257A true CN117938257A (en) | 2024-04-26 |
Family
ID=90755760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410154633.1A Pending CN117938257A (en) | 2024-02-02 | 2024-02-02 | Method and system for collecting transmitting and receiving power of optical module and alarming abnormality |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117938257A (en) |
-
2024
- 2024-02-02 CN CN202410154633.1A patent/CN117938257A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112422344A (en) | Log abnormity warning method and device, storage medium and electronic device | |
WO2017041406A1 (en) | Failure positioning method and device | |
US20220407596A1 (en) | Optical link fault identification method, apparatus and system | |
DE10242696A1 (en) | System and method for remote monitoring of base stations | |
US11038587B2 (en) | Method and apparatus for locating fault cause, and storage medium | |
US20180074933A1 (en) | Management of log data in electronic systems | |
CN111327471A (en) | Network quality analysis method and device, computer equipment and storage medium | |
CN105871604A (en) | Optical fiber attenuation entire online monitoring system and monitoring method | |
CN109004976A (en) | The remote monitoring system of cable resource | |
CN110429977A (en) | A kind of optical cable fibre core real-time monitoring system and method based on light source photodetector array | |
CN116744419A (en) | 5G base station energy consumption supervision method, system and storage medium | |
CN111258857A (en) | Server state monitoring method and system | |
CN112787716A (en) | Fault detection method and device, electronic equipment and computer readable medium | |
US20150036515A1 (en) | High Efficiency Network Monitoring System and Methods | |
CN117938257A (en) | Method and system for collecting transmitting and receiving power of optical module and alarming abnormality | |
CN113810238A (en) | Network monitoring method, electronic device and storage medium | |
CN111581107B (en) | FTP program fatigue test method and system | |
EP2871793A1 (en) | A device and method for diagnosing a power grid communications network | |
CN117835291B (en) | Data management system and method based on Internet of things | |
CN114356490B (en) | Financial information visualization processing method and system based on big data | |
WO2024066771A1 (en) | Fault root cause location method and apparatus for fronthaul link | |
CN118054845A (en) | Distributed optical network terminal fault monitoring method and system | |
CN105388824A (en) | Method and apparatus for monitoring tunnel | |
CN115913356A (en) | Intelligent substation optical power testing and comparing method and device comprising switch and storage medium | |
CN115765796A (en) | Evaluation method and device for power line carrier communication network, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |