Optical link monitoring method and device, equipment and storage medium
Through the use of optical link monitoring methods and devices, optical link data is collected and analyzed, and alarm information and performance data is generated, which solves the problem of low optical link fault processing efficiency and achieves faster and more accurate fault processing.
Patent Information
- Application Number
- CN202411855254.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-21
AI Technical Summary
When an optical link failure occurs, the existing technology uses manual login equipment to check, which takes a long time and lacks historical data support, resulting in low fault handling efficiency.
The optical link monitoring method is adopted to collect, preprocess and transmit optical link data through the data acquisition unit and data alarm unit of the optical link monitoring device, and analyze data on the monitoring platform to generate alarm information and performance data.
It improves the efficiency of optical link fault processing, reduces the time for manual troubleshooting through automated data acquisition and analysis, and enhances the accuracy and efficiency of fault processing.
Smart Images

Figure CN119675766A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical fiber communications, and in particular to an optical link monitoring method, device, equipment and storage medium. Background Art
[0002] An optical link is a link that uses optical fiber communication technology to transmit sound, image and data signals. It is generally composed of an optical transmitter (electrical / optical converter), optical fiber, an optical receiver (optical / electrical converter) and other necessary optical devices (such as optical amplifiers, optical connectors, optical splitters and optical attenuators, etc.). An optical fiber switch is a switch that uses optical fiber cable as a transmission medium. It uses the high-speed transmission characteristics of optical fiber to achieve fast and accurate transmission of data in the network. Fiber optic switches are usually deployed in storage area networks to connect servers, storage devices and other network devices to achieve data sharing and transmission.
[0003] At present, most hardware environments such as core banking systems use a three-layer architecture of servers, fiber switches, and storage. When an optical link fails, it may be a problem with the host, the fiber switch, or the storage. When a failure occurs, especially when encountering an optical link quality problem, it is generally checked by manually logging into the device. Manually logging into the device for troubleshooting takes a long time and there is no historical data support, so it is difficult to make an accurate judgment, resulting in slow fault handling and low processing efficiency. Summary of the invention
[0004] In order to improve the efficiency of optical link fault processing, the present application provides an optical link monitoring method, device, equipment and storage medium.
[0005] In a first aspect, the present application provides an optical link monitoring method, which adopts the following technical solution:
[0006] The method is based on an optical link monitoring device, the optical link monitoring device includes a data acquisition unit and a data alarm unit, and the method includes:
[0007] The data acquisition unit collects optical link data;
[0008] The data acquisition unit preprocesses the optical link data to obtain target optical link data;
[0009] The data acquisition unit transmits the target optical link data to the data alarm unit;
[0010] The data alarm unit monitors the target optical link data to obtain alarm information and performance data.
[0011] Through the above technical solution, an external monitoring platform is connected to enable data exchange between the fiber optic switch and the monitoring platform, and the monitoring platform is used to analyze data to generate alarm information, thereby improving the efficiency of optical link fault processing.
[0012] In a specific implementation scheme, the optical link data includes counter data, optical power data and alarm data, and the data acquisition unit preprocesses the optical link data to obtain target optical link data including:
[0013] The data acquisition unit formats and processes the counter data and the optical power data to obtain target counter data and target optical power data;
[0014] The data acquisition unit filters the alarm data to obtain target alarm data;
[0015] The data collection unit combines the target counter data, the target optical power data and the target alarm data into target optical link data.
[0016] Through the above technical solution, the optical link data is preprocessed and processed according to the format specification of the monitoring platform, so that the data can run normally in the monitoring platform and analyze the alarm information and performance data.
[0017] In a specific implementation scheme, the data alarm unit includes a standard data template for unifying the data format, and the data acquisition unit formats and processes the counter data and the optical power data to obtain target counter data and target optical power data, including:
[0018] The data alarm unit formats and processes the counter data and the optical power data according to the standard data template to obtain target counter data and target optical power data.
[0019] Through the above technical solution, the data is processed according to the format specification of the monitoring platform, so that the data can run normally in the monitoring platform and the alarm information and performance data can be analyzed.
[0020] In a specific implementation scheme, the data acquisition unit screens the alarm data to obtain target alarm data including:
[0021] The data acquisition unit sets a target danger level;
[0022] The data collection unit screens the warning data whose level is higher than the target danger level from the warning data to obtain target warning data.
[0023] Through the above technical solution, dangerous data can be screened, making it easier for the monitoring platform to analyze alarm information faster and more accurately.
[0024] In a specific implementation scheme, the data acquisition unit includes a data detection script, and the data alarm unit monitors the target optical link data to obtain alarm information and performance data including:
[0025] The data alarm unit analyzes the target optical link data and calls the data detection script to detect the target optical link data to obtain alarm information and performance data.
[0026] In a specific possible implementation scheme, the data alarm unit analyzes the target optical link data and calls the data detection script to detect the target optical link data to obtain alarm information and performance data, including:
[0027] The data alarm unit analyzes the target counter data and the target optical power data to obtain first alarm information and performance data;
[0028] The data alarm unit calls the data detection script to detect the counter data, the optical power data and the target alarm data to obtain second alarm information;
[0029] The data alarm unit combines the first alarm information and the second alarm information to obtain alarm information.
[0030] Through the above technical solution, the monitoring platform is used to judge the fault and generate alarm information and performance data, thereby improving the efficiency of optical link fault handling.
[0031] In a specific possible implementation scheme, after the data alarm unit analyzes the target optical link data to obtain the alarm information and performance data, it also includes:
[0032] The data alarm unit displays the alarm information and the performance data.
[0033] Through the above technical solution, the monitoring platform displays alarm information and performance data, so that technical personnel can handle it accordingly based on the displayed information, reducing waste of manpower.
[0034] In a second aspect, the present application provides an optical link monitoring device, which adopts the following technical solution: the device includes:
[0035] The data collection unit is used to collect optical link data;
[0036] The data acquisition unit is further used to pre-process the optical link data to obtain target optical link data;
[0037] The data acquisition unit is further used to transmit the target optical link data to the data alarm unit;
[0038] The data alarm unit is used to monitor the target optical link data to obtain alarm information and performance data.
[0039] In a third aspect, the present application provides a computer device, which adopts the following technical solution: it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and executes an optical link monitoring method such as the above-mentioned one.
[0040] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute the above-mentioned optical link monitoring method.
[0041] In summary, this application has the following beneficial technical effects:
[0042] (1) By associating the monitoring platform, data is exchanged between the optical fiber switch and the monitoring platform, and the monitoring platform is used to analyze the data to generate alarm information and performance data, thereby improving the efficiency of optical link fault handling.
[0043] (2) Set up the programs for data collection, processing, exchange and storage on the fiber optic switch so that the optical chain data can be collected, processed, exchanged and stored efficiently and orderly. The newly added fiber optic switch can be directly configured for data collection without changing the program.
[0044] (3) After data collection and processing, it can be connected to different monitoring platforms, such as open source Nagios, Zabbix and other platforms. The monitoring platform can fully automatically discover alarm targets and data, with good reusability. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of an optical link monitoring method in an embodiment of the present application.
[0046] Figure 2 Schematic diagram of the association between a fiber optic switch and a monitoring platform in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following is combined with Figure 1-Figure 2 This application is described in further detail.
[0048] The embodiments of the present application disclose an optical link monitoring method, device, equipment and storage medium, which are used to improve the efficiency of optical link fault processing.
[0049] An optical link is a link that uses optical fiber communication technology to transmit sound, image and data signals. It is generally composed of an optical transmitter (electrical / optical converter), optical fiber, optical receiver (optical / electrical converter) and other necessary optical components (such as optical amplifiers, optical connectors, optical splitters and optical attenuators).
[0050] A fiber optic switch is a switch that uses fiber optic cables as the transmission medium. It uses the high-speed transmission characteristics of optical fibers to achieve fast and accurate data transmission in the network. Fiber optic switches are usually deployed in storage area networks to connect servers, storage devices, and other network devices to achieve data sharing and transmission.
[0051] A data monitoring platform is a software system specifically used to collect, process, analyze and display data information. Its main purpose is to monitor data in a specific field or business scenario in real time, so as to promptly detect data anomalies, optimize business processes, and improve decision-making efficiency. Common data monitoring platforms include open source platforms such as nagios and zabbix.
[0052] At present, most hardware environments such as core banking systems use a three-layer architecture of servers, fiber switches, and storage. When an optical link fails, it may be a problem with the host, the fiber switch, or the storage. When a failure occurs, especially when encountering an optical link quality problem, it is generally checked by manually logging into the device. Manually logging into the device for troubleshooting takes a long time and there is no historical data support, so it is difficult to make an accurate judgment, resulting in slow fault handling and low processing efficiency.
[0053] Therefore, the present application proposes an optical link monitoring method, which is used to improve the efficiency of optical link fault processing.
[0054] like Figure 1 As shown, the method is based on an optical link monitoring device, the optical link monitoring device includes a data acquisition unit and a data alarm unit, and the method includes:
[0055] S10, the data collection unit collects optical link data.
[0056] Specifically, the data collection unit collects the optical fiber switch data to obtain the optical link data. The actual collection involves multiple optical fiber switches, and the optical fiber switch management machine is used to collect data from multiple optical fiber switches through the SSH protocol. At this time, the collected initial optical link data needs to be stored and backed up locally in the form of files.
[0057] S20, the data acquisition unit pre-processes the optical link data to obtain target optical link data.
[0058] Specifically, the collected optical link data is formatted. The monitoring platform used to monitor the data has different data formats, and the data is processed according to the format specifications of the monitoring platform.
[0059] S30, the data collection unit transmits the target optical link data to the data alarm unit.
[0060] Specifically, the data acquisition unit exchanges the processed target optical link data to the monitoring platform.
[0061] S40, the data alarm unit monitors the target optical link data to obtain alarm information and performance data.
[0062] Specifically, the monitoring platform can analyze the target optical link data to automatically discover the alarm target and data, namely the alarm information and performance data.
[0063] This application utilizes the data collection, processing, exchange and storage programs set up on the fiber optic switch, so that the optical link data can be efficiently and orderly collected, processed, exchanged and stored; through an external monitoring platform, the data collected and processed by the fiber optic switch is exchanged to the monitoring platform, and the monitoring platform is used to analyze the data to generate alarm information, thereby improving the efficiency of optical link fault processing.
[0064] In one embodiment, in order to improve the efficiency of optical link fault processing, the optical link data includes counter data, optical power data and alarm data, and the step of pre-processing the optical link data by the data acquisition unit to obtain target optical link data can be specifically performed as follows:
[0065] First, the data acquisition unit formats and processes the counter data and optical power data to obtain target counter data and target optical power data. Specifically, the counter data and optical power data will be transmitted to the monitoring platform for analysis. The monitoring platform has a corresponding data format, so it is necessary to pre-process and format the counter data and optical power data according to the monitoring platform data format. After pre-processing, the target counter data and target optical power data are obtained. At this time, the collected target counter data and target optical power data need to be stored and backed up locally in the form of files.
[0066] Then, the data collection unit screens the alarm data to obtain target alarm data. Specifically, not all levels of alarm data need to be monitored, and target alarm data with a higher risk level is screened from the alarm data. At this time, the screened target alarm data needs to be stored and backed up locally in the form of files.
[0067] Next, the data collection unit combines the target counter data, the target optical power data and the target alarm data into the target optical link data. Specifically, all the optical link data need to be integrated after preprocessing according to the data types to obtain the target optical link data.
[0068] This application pre-processes the optical link data and processes it according to the monitoring platform format specification, so that the data can run normally in the monitoring platform and analyze the alarm information and performance data more quickly.
[0069] In one embodiment, in order to improve the efficiency of optical link fault processing, the data alarm unit includes a standard data template for unifying the data format, and the step of the data acquisition unit formatting the counter data and the optical power data to obtain the target counter data and the target optical power data can be specifically performed as follows:
[0070] The data alarm unit formats the counter data and optical power data according to the standard data template to obtain the target counter data and target optical power data. Specifically, taking the Zabbix monitoring platform as an example, the standard data template of the Zabbix monitoring platform is the host name, monitoring items and monitoring data. While collecting data, the host name and monitoring items are automatically generated through the fiber optic switch host prototype. The host name and monitoring items are stored in the form of text. The counter data and optical power data are pre-processed according to the zabbix format, that is, the standard data template of the Zabbix monitoring platform to obtain the target counter data and target optical power data.
[0071] This application is processed in accordance with the monitoring platform format specifications so that the data can run normally in the monitoring platform and analyze the alarm information and performance data.
[0072] In one embodiment, in order to improve the efficiency of optical link fault processing, the step of the data collection unit screening the alarm data to obtain the target alarm data can be specifically performed as follows:
[0073] First, the data collection unit sets the target danger level. Specifically, not all levels of alarm data need to be monitored. Target alarm data with a higher danger level is screened out from the alarm data. The target danger level can be set first according to the actual situation.
[0074] Then, the data acquisition unit filters out the alarm data whose level is higher than the target danger level in the alarm data to obtain the target alarm data. Specifically, the alarm data is filtered to select the target alarm data whose danger level is higher than the target danger level. In actual use, most of the target alarm data filtered out are the WARNING, ERROR, and CRITICAL levels.
[0075] This application pre-processes data and screens dangerous data, making it easier for the monitoring platform to analyze alarm information faster and more accurately.
[0076] In one embodiment, the data collection unit includes a data detection script, and the step of the data alarm unit monitoring the target optical link data to obtain alarm information and performance data can be specifically performed as follows:
[0077] The data alarm unit analyzes the target optical link data and calls the data detection script to detect the target optical link data to obtain alarm information and performance data. Specifically, the data acquisition unit has a data acquisition script for data acquisition and a data detection script for data detection. The monitoring platform analyzes the data to obtain alarm information and performance data in two ways. The first way is to analyze the processed target optical link data to obtain alarm information and performance data. The second way is for the monitoring platform to call the data detection script to detect the target optical link data to obtain alarm information.
[0078] In one embodiment, the step of the data alarm unit analyzing the target optical link data and calling the data detection script to detect the target optical link data to obtain the alarm information and performance data can be specifically performed as follows:
[0079] First, the data alarm unit analyzes the target counter data and the target optical power data to obtain the first alarm information and performance data. Specifically, the monitoring platform analyzes the data in two ways to obtain the alarm information and performance data. This method is one of them. Taking the Zabbix monitoring platform as an example, the target counter data and the target optical power data are uploaded to the Zabbix server through the Zabbix sender program. The target counter data and the target optical power data are analyzed in the Zabbix server to obtain the first alarm information and performance data, wherein the first alarm information comes from the monitoring data in the target counter data and the target optical power data, and the performance data comes from the text storing the host name and the monitoring item. At this time, the data involved in the operation is stored and backed up in the form of a database on the Zabbix monitoring platform.
[0080] Then, the data alarm unit calls the data detection script to detect the counter data, optical power data and target alarm data to obtain the second alarm information. Specifically, the monitoring platform analyzes the data in two ways to obtain the alarm information and performance data. This method is one of them. Taking the Zabbix monitoring platform as an example, the Zabbix agent calls the data detection script to detect the counter data, optical power data and target alarm data to obtain the second alarm information.
[0081] Next, the data alarm unit combines the first alarm information and the second alarm information to obtain alarm information. Specifically, the data alarm unit combines the first alarm information and the second alarm information to obtain comprehensive alarm information.
[0082] This application uses a monitoring platform to determine faults and generate alarm information and performance data to improve the efficiency of optical link fault handling.
[0083] It should be noted that the Zabbix monitoring platform is used as an example to explain the principle of the association between the fiber optic switch and the monitoring platform. Figure 2, the optical switch manager manages several optical switches for data collection, adds optical switch manager monitoring in the Zabbix monitoring system, generates hosts and monitoring items through optical switches, automatically collects monitoring data, and transmits the data to the Zabbix server through ZabbixSender.
[0084] In one embodiment, in order to improve the efficiency of optical link fault processing, the data alarm unit may further perform the following steps after analyzing the target optical link data to obtain the alarm information and performance data:
[0085] The data alarm unit displays alarm information and performance data. Specifically, the alarm information and performance data are displayed on the monitoring platform so that relevant personnel can intuitively understand the details of the optical link failure.
[0086] Based on the above method, the embodiment of the present application also discloses an optical link monitoring device. The device includes the following modules:
[0087] A data collection unit, used for collecting optical link data;
[0088] The data acquisition unit is also used to pre-process the optical link data to obtain the target optical link data;
[0089] The data acquisition unit is also used to transmit the target optical link data to the data alarm unit;
[0090] The data alarm unit is used to monitor the target optical link data to obtain alarm information and performance data.
[0091] In one embodiment, the data acquisition unit is specifically used for formatting and processing counter data and optical power data to obtain target counter data and target optical power data; the data acquisition unit screens alarm data to obtain target alarm data; the data acquisition unit merges the target counter data, target optical power data and target alarm data into target optical link data.
[0092] In one embodiment, the data collection unit is specifically used for the data alarm unit to format and process the counter data and the optical power data according to the standard data template to obtain the target counter data and the target optical power data.
[0093] In one embodiment, the data collection unit is specifically used for setting a target danger level; the data collection unit screens out warning data with a level higher than the target danger level in the warning data to obtain target warning data.
[0094] In one embodiment, the data collection unit is specifically used for the data alarm unit to analyze the target optical link data and call the data detection script to detect the target optical link data to obtain the alarm information and performance data.
[0095] In one embodiment, a data alarm unit is specifically used for the data alarm unit to analyze target counter data and target optical power data to obtain first alarm information and performance data; the data alarm unit calls a data detection script to detect counter data, optical power data and target alarm data to obtain second alarm information; the data alarm unit merges the first alarm information and the second alarm information to obtain alarm information.
[0096] The embodiment of the present application also discloses a computer device.
[0097] Specifically, the computer device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the above-mentioned extinction coefficient inversion method.
[0098] The embodiment of the present application also discloses a computer-readable storage medium.
[0099] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and execute the extinction coefficient inversion method as described above. The computer-readable storage medium includes, for example: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0100] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.
Claims
1. An optical link monitoring method, characterized in that: The method is based on an optical link monitoring device, the optical link monitoring device includes a data acquisition unit and a data alarm unit, and the method includes: The data acquisition unit acquires optical link data; The data acquisition unit preprocesses the optical link data to obtain target optical link data; The data acquisition unit transmits the target optical link data to the data alarm unit; The data alarm unit monitors the target optical link data to obtain alarm information and performance data.
2. The method according to claim 1, characterized in that: The optical link data includes counter data, optical power data and alarm data, and the data acquisition unit preprocesses the optical link data to obtain target optical link data including: The data acquisition unit formats and processes the counter data and the optical power data to obtain target counter data and target optical power data; The data acquisition unit filters the alarm data to obtain target alarm data; The data collection unit combines the target counter data, the target optical power data and the target alarm data into target optical link data.
3. The method according to claim 2, characterized in that: The data alarm unit includes a standard data template for unifying the data format, and the data acquisition unit formats and processes the counter data and the optical power data to obtain target counter data and target optical power data, including: The data alarm unit formats and processes the counter data and the optical power data according to the standard data template to obtain target counter data and target optical power data.
4. The method according to claim 2, characterized in that: The data acquisition unit screening the alarm data to obtain target alarm data includes: The data acquisition unit sets a target danger level; The data collection unit screens the warning data whose level is higher than the target danger level from the warning data to obtain target warning data.
5. The method according to claim 1, characterized in that: The data acquisition unit includes a data detection script, and the data alarm unit monitors the target optical link data to obtain alarm information and performance data including: The data alarm unit analyzes the target optical link data and calls the data detection script to detect the target optical link data to obtain alarm information and performance data.
6. The method according to claim 5, characterized in that: The data alarm unit analyzes the target optical link data and calls the data detection script to detect the target optical link data to obtain alarm information and performance data, including: The data alarm unit analyzes the target counter data and the target optical power data to obtain first alarm information and performance data; The data alarm unit calls the data detection script to detect the counter data, the optical power data and the target alarm data to obtain second alarm information; The data alarm unit combines the first alarm information and the second alarm information to obtain alarm information.
7. The method according to claim 1, characterized in that: After the data alarm unit analyzes the target optical link data to obtain the alarm information and performance data, it also includes: The data alarm unit displays the alarm information and the performance data.
8. An optical link monitoring device, characterized in that: The device comprises: The data collection unit is used to collect optical link data; The data acquisition unit is further used to pre-process the optical link data to obtain target optical link data; The data acquisition unit is further used to transmit the target optical link data to the data alarm unit; The data alarm unit is used to monitor the target optical link data to obtain alarm information and performance data.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.