CN115333616B - Method and device for detecting optical fiber misconnection, storage medium and electronic device - Google Patents

Method and device for detecting optical fiber misconnection, storage medium and electronic device Download PDF

Info

Publication number
CN115333616B
CN115333616B CN202211264104.4A CN202211264104A CN115333616B CN 115333616 B CN115333616 B CN 115333616B CN 202211264104 A CN202211264104 A CN 202211264104A CN 115333616 B CN115333616 B CN 115333616B
Authority
CN
China
Prior art keywords
optical fiber
network element
port
information
fiber connection
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
CN202211264104.4A
Other languages
Chinese (zh)
Other versions
CN115333616A (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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202211264104.4A priority Critical patent/CN115333616B/en
Publication of CN115333616A publication Critical patent/CN115333616A/en
Application granted granted Critical
Publication of CN115333616B publication Critical patent/CN115333616B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Abstract

The invention discloses a method and a device for detecting optical fiber misconnection, a storage medium and an electronic device. Wherein, the method comprises the following steps: acquiring optical fiber connection information between a first network element and a second network element, wherein the first network element and the second network element are in the same network management system; comparing the optical fiber connection information with target optical fiber connection information, and determining a comparison result; and detecting whether the optical fiber connection between the first network element and the second network element is abnormal or not based on the comparison result. The invention solves the problem of low misconnection efficiency of the detection optical fiber in the related technology.

Description

Method and device for detecting optical fiber misconnection, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for detecting optical fiber misconnection, a storage medium and an electronic device.
Background
With the continuous development of optical communication technology, more and more access devices, more and more complex configuration, more and more data ports and higher technical requirements on engineering personnel are provided. When an engineer installs the equipment, it is necessary to check whether the connection of the optical fiber lines of the ports is correct one by one in the networking, which consumes time and labor. In addition, in the network operation and maintenance process, operations such as network adjustment, cutting, first-aid repair and the like also often occur, and the operations all involve the adjustment and the fiber jumping of the optical fiber. Once a connection error occurs, great effort is required for engineers to troubleshoot links by links. This situation is more prominent with the increasing size of networks.
In view of the above problems, in combination with engineering practice, a new optical fiber misconnection solution is proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting optical fiber misconnection, a storage medium and an electronic device, which are used for at least solving the problem of low efficiency of detecting the misconnection of optical fibers in the related technology.
According to an embodiment of the present invention, there is provided a method for detecting a misconnection of optical fibers, including: acquiring optical fiber connection information between a first network element and a second network element, wherein the first network element and the second network element are in the same network management system; comparing the optical fiber connection information with target optical fiber connection information, and determining a comparison result; and detecting whether the optical fiber connection between the first network element and the second network element is abnormal or not based on the comparison result.
According to an embodiment of the present invention, there is provided an optical fiber misconnection detection apparatus including: a first obtaining module, configured to obtain optical fiber connection information between a first network element and a second network element, where the first network element and the second network element are in a same network management system; the first comparison module is used for comparing the optical fiber connection information with target optical fiber connection information and determining a comparison result; and the first detection module is used for detecting whether the optical fiber connection between the first network element and the second network element is abnormal or not based on the comparison result.
In an exemplary embodiment, the first obtaining module includes: a first obtaining unit, configured to obtain operation information of multiple network elements in the network management system; a first triggering unit, configured to trigger acquisition of the optical fiber connection information when optical fiber alarm information sent by the first network element or the second network element is acquired from the operation information, where the optical fiber alarm information is used to indicate that an optical fiber connection relationship between the first network element and the second network element has changed, and the optical fiber alarm information includes network element information of the first network element or the second network element.
In an exemplary embodiment, the first trigger unit includes: a first detecting subunit, configured to detect, through a preset link, fiber information of each port in the first network element and fiber information of each port in the second network element, to obtain the fiber connection information, when the network element information of the first network element or the second network element is determined from the fiber alarm information.
In an exemplary embodiment, the first obtaining module includes: a first receiving unit, configured to receive a trigger instruction, where the trigger instruction is used to trigger detection of optical fiber connections of multiple network elements in the network management system; the first detection unit is used for detecting the optical fiber information of each port in each network element through a preset link to obtain optical fiber detection information of a plurality of network elements; and a second acquiring unit configured to acquire the optical fiber connection information from the plurality of optical fiber detection information.
In an exemplary embodiment, the first comparison module includes: a first determining unit configured to determine, from the optical fiber connection information, a first port and a second port to which both ends of a target optical fiber are connected, where the first port is a port in the first network element, and the second port is a port in the second network element; a second determining unit configured to determine a connection direction of the target optical fiber between the first port and the second port from the optical fiber connection information; a first comparing unit, configured to compare a first port and a second port, which are connected to two ends of the target optical fiber, with a first target port and a second target port, which correspond to the two ends of the target optical fiber, to obtain a first comparison result, where the first target port and the second target port, which correspond to the two ends of the target optical fiber, are included in the target optical fiber connection information; and the second comparison unit is used for comparing the connection direction with the target connection direction to obtain a second comparison result.
In an exemplary embodiment, the first detecting module includes: a third determining unit, configured to determine that an optical fiber connection between the first network element and the second network element is abnormal when the first comparison result is abnormal or the second comparison result is abnormal.
In an exemplary embodiment, the apparatus further includes: a first determining module, configured to determine, after determining that an optical fiber connection between the first network element and the second network element is abnormal, information about the optical fiber connection between the first network element and the second network element that is abnormal; and the first sending module is used for sending the optical fiber connection abnormal information to display equipment so as to display the optical fiber connection abnormal information through the display equipment.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor configured to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, the optical fiber connection information between the first network element and the second network element is obtained, wherein the first network element and the second network element are in the same network management system; comparing the optical fiber connection information with target optical fiber connection information, and determining a comparison result; and detecting whether the optical fiber connection between the first network element and the second network element is abnormal or not based on the comparison result. In the method, the obtained optical fiber connection information is detected, so that the optical fiber misconnection condition of the existing network can be found immediately. Therefore, the problem of low optical fiber misconnection detection efficiency in the related technology can be solved, and the effect of efficiently detecting the optical fiber misconnection condition is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a method for detecting a misconnection of optical fibers according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of detecting a misconnection of optical fibers according to an embodiment of the invention;
fig. 3 is a schematic structural diagram of an intelligent optical fiber misconnection analysis system according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a bidirectional misconnection according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a unidirectional misconnection according to an embodiment of the invention;
FIG. 6 is a schematic diagram of incremental real-time fiber misconnection detection analysis according to an embodiment of the invention;
FIG. 7 is a schematic diagram of a full-scale optical fiber misconnection detection analysis according to an embodiment of the present invention;
fig. 8 is a block diagram of a configuration for detection of a misconnection of optical fibers according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a method for detecting an optical fiber misconnection according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the antenna control method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for detecting a misconnection of optical fibers is provided, and fig. 2 is a flowchart of a method for detecting a misconnection of optical fibers according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, obtaining optical fiber connection information between a first network element and a second network element, wherein the first network element and the second network element are in the same network management system;
step S204, comparing the optical fiber connection information with the target optical fiber connection information, and determining a comparison result;
step S206, detecting whether the optical fiber connection between the first network element and the second network element is abnormal based on the comparison result.
The main body of the above steps may be a terminal, a server, a specific processor provided in the terminal or the server, or a processor or a processing device provided independently from the terminal or the server, but is not limited thereto.
The embodiment can be applied to network management systems of different professional networks, and further can be applied to other software service systems, and is not limited to the network management of a bearing network.
Optionally, the optical fiber connection information includes port information of an optical fiber connection between the first network element and the second network element, and a number of optical fibers connected between the first network element and the second network element. For example, one end of one optical fiber is connected to a first port of a first network element, and the other end of the optical fiber is connected to a second port of a second network element.
Alternatively, the target fiber optic connection information may be pre-configured fiber optic connection information. For example, one end of the configured optical fiber is connected to a first port of a first network element, and the other end of the optical fiber is connected to a first port of a second network element. And when detecting that one end of the actual optical fiber is connected with a first port of a first network element and the other end of the actual optical fiber is connected with a second port of a second network element, determining that the optical fiber between the first network element and the second network element is misconnected.
Through the steps, the optical fiber connection information between the first network element and the second network element is obtained, wherein the first network element and the second network element are in the same network management system; comparing the optical fiber connection information with target optical fiber connection information, and determining a comparison result; and detecting whether the optical fiber connection between the first network element and the second network element is abnormal or not based on the comparison result. In the method, the obtained optical fiber connection information is detected, so that the optical fiber misconnection condition of the existing network can be found immediately. Therefore, the problem of low optical fiber misconnection detection efficiency in the related technology can be solved, and the effect of efficiently detecting the optical fiber misconnection condition is achieved.
In an exemplary embodiment, the obtaining the optical fiber connection information between the first network element and the second network element includes:
s1, acquiring operation information of a plurality of network elements in a network management system;
and S2, under the condition that optical fiber alarm information sent by the first network element or the second network element is obtained from the operation information, the obtaining of the optical fiber connection information is triggered, wherein the optical fiber alarm information is used for indicating that the optical fiber connection relation between the first network element and the second network element is changed, and the optical fiber alarm information comprises the network element information of the first network element or the second network element.
Optionally, the operation information of the network element includes various alarm information about the abnormality of the network element. For example, when detecting an operation of plugging or unplugging an optical fiber connection connected between a first network element and a second network element, a network management system may obtain alarm information of the plugging or unplugging operation; when detecting that a port between the first network element and the second network element has a fault, the sensor may sense alarm information of the port fault. And when the alarm information of the plugging or unplugging operation is acquired, whether the optical fibers connected between the first network element and the second network element are misconnected or not is detected. Therefore, the aim of timely cash back and wrong connection can be fulfilled.
In an exemplary embodiment, in a case that the optical fiber alarm information sent by the first network element or the second network element is extracted from the operation information, triggering to acquire the optical fiber connection information includes:
s1, under the condition that the network element information of a first network element or a second network element is determined from the optical fiber alarm information, detecting the optical fiber information of each port in the first network element and the optical fiber information of each port in the second network element through a preset link to obtain optical fiber connection information.
Optionally, the network element information of the first network element and the second network element includes attribute information, address information, and the like of the two network elements. And searching the network element with the alarm information through the network element information, and detecting the optical fiber connection condition of each port in the two network elements. The method can quickly find the port with misconnection.
In an exemplary embodiment, acquiring the optical fiber connection information between the first network element and the second network element includes:
s1, receiving a trigger instruction, wherein the trigger instruction is used for triggering detection of optical fiber connections of a plurality of network elements in a network management system;
s2, detecting the optical fiber information of each port in each network element through a preset link to obtain optical fiber detection information of a plurality of network elements;
and S3, acquiring optical fiber connection information from the plurality of optical fiber detection information.
Optionally, the trigger instruction may be triggered by the network management system, or may be triggered by other devices. The detection of the fiber optic connection to the plurality of network elements includes detection of a port of the fiber optic connection.
Optionally, the preset Link is a Link that can detect a real fiber connection condition on the network element, for example, a Link Layer discovery Protocol (Link Layer discovery Protocol, abbreviated as LLDP) Link. The plurality of optical fiber detection information includes port information of optical fiber connection, for example, a first port of the first network element and a second port of the second network element are connected by optical fiber. Therefore, the purpose of timely detecting the connection condition of the optical fiber can be realized.
In an exemplary embodiment, comparing the optical fiber connection information with the target optical fiber connection information, and determining a comparison result includes:
s1, determining a first port and a second port connected with two ends of a target optical fiber from optical fiber connection information, wherein the first port is a port in a first network element, and the second port is a port in a second network element;
s2, determining the connection direction of the target optical fiber between the first port and the second port from the optical fiber connection information;
s3, comparing a first port and a second port connected with two ends of the target optical fiber with a first target port and a second target port corresponding to the two ends of the target optical fiber to obtain a first comparison result, wherein the first target port and the second target port corresponding to the two ends of the target optical fiber are included in the target optical fiber connection information;
and S4, comparing the connection direction with the target connection direction to obtain a second comparison result.
Optionally, the network element includes a plurality of ports, the port to which the optical fiber is actually connected may not be consistent with the port to which the user actually requires, and whether the optical fiber is misconnected can be accurately detected by comparing the port to which the optical fiber is actually connected with the port to which the user actually requires.
In an exemplary embodiment, detecting an abnormal optical fiber connection between the first network element and the second network element based on the comparison result includes:
s1, determining that the optical fiber connection between the first network element and the second network element is abnormal under the condition that the first comparison result is abnormal or the second comparison result is abnormal.
Alternatively, in the case where the connection port or the connection direction is incorrect, it is determined that the optical fiber is misconnected. The purpose of accurately determining the misconnection of the optical fibers is achieved.
In an exemplary embodiment, after determining that the optical fiber connection between the first network element and the second network element is abnormal, the method further includes:
s1, determining optical fiber connection abnormal information between a first network element and a second network element;
and S2, sending the optical fiber connection abnormal information to display equipment so as to display the optical fiber connection abnormal information through the display equipment.
Optionally, the abnormal information includes that the optical fiber connection direction is incorrect and the connection port is incorrect. The abnormal information of the optical fiber connection is displayed through the display equipment, so that a user can more intuitively acquire the misconnection condition so as to provide an error correction scheme in time.
The invention is illustrated below with reference to specific examples:
the present embodiment is described by taking a scenario applied to a network management system of a telecommunication network as an example:
in this embodiment, based on specific alarm information generated by the device during plugging and unplugging of the optical fiber, the network sensing module may sense a change sent by an optical fiber connection relationship in the network, after sensing the change, the intelligent optical fiber misconnection analysis System may actively initiate optical fiber detection on a related network element and a link, compare the detected optical fiber connection condition with original optical fiber connection information on the network management System, determine whether a misconnection condition exists in the optical fiber through an intelligent algorithm, actively prompt a user through a graphical interface if the misconnection exists, generate an optical fiber misconnection alarm, and report the optical fiber connection alarm to an upper layer network management Support System (OSS for short) through a northbound interface to perform order processing of an operator.
As shown in fig. 3, the method includes four parts, namely, network sensing, optical fiber detection, intelligent analysis, result display and northbound report:
and the network perception module is used for receiving information such as alarm, performance and state generated by the equipment and filtering specific alarm information (for example, optical fiber misconnection information) related to the optical fiber connection change. It should be noted that, for different devices of different manufacturers, the specific alarm information may be different and may be flexibly adjusted according to the needs. After the network sensing module senses specific alarm information related to the optical fiber connection change, the intelligent analysis module can be triggered to perform intelligent analysis.
And the optical fiber detection module receives the scheduling of the intelligent analysis module and is used for actively detecting the optical fiber connection condition of the target equipment and the optical fiber, and the common detection protocol is an LLDP protocol. The optical fiber detection module returns the latest optical fiber connection condition in the equipment network to the intelligent analysis module according to the detection result.
And the intelligent analysis module is used for the master control scheduling and intelligent analysis of the whole optical fiber misconnection analysis, and is the most core module in the whole intelligent optical fiber misconnection analysis system.
In this embodiment, the system further includes:
1) Initialization preparation: when the system is initialized, the optical fiber connection data on the network management is ensured to be consistent with the user plan, which is the reference data of the whole network optical connection.
2) Detecting and analyzing the misconnection of the optical fiber in full quantity: and the intelligent analysis of the optical fiber misconnection of the whole network is carried out through manual triggering or automatic periodic triggering of a user. Its advantages are full detection and analysis, and no omission.
3) Incremental real-time optical fiber misconnection detection analysis: through the network perception module, intelligent analysis is automatically triggered in real time, and only specific network elements and optical connections perceived by the network perception module are analyzed. Its advantages are automatic trigger, real-time analysis and high efficiency.
4) The intelligent optical fiber misconnection detection analysis method comprises the following steps: according to the actual optical connection information of the equipment detected by the optical fiber detection module, the actual optical connection information of the equipment is compared with the reference optical connection information on the network management, and the link, in which the equipment at the two ends of the optical fiber is in the management range of the network management and is inconsistent with the connection information on the network management, is the link in which the optical fiber is misconnected. And generating corresponding optical fiber misconnection alarms aiming at each misconnected optical fiber.
5) A result display and north report module: and graphically displaying all optical fiber misconnection conditions according to the analysis result of the intelligent analysis module. Meanwhile, the optical fiber misconnection information can also be generated into an optical fiber misconnection alarm, and the optical fiber misconnection alarm is reported to an upper integrated network management system OSS through a northbound interface. And the operator client dispatches the order through the OSS and informs corresponding operation and maintenance personnel to adjust the misconnected optical fibers into a correct connection mode so as to complete the closed loop processing of the whole optical fiber misconnection problem.
Detailed description of the preferred embodiment 1
Fig. 4 and 5 show two typical optical fiber misconnection scenarios in the carrier network according to this embodiment. Fig. 4 is a schematic diagram of a bi-directional misconnection, where a 1 port of an a network element is connected to a 1 port of a B network element on a network manager, which is desired by a user; however, when the fiber is actually connected to the device, the insertion is wrong, and the 1 port of the network element A is connected to the 2 port of the network element B.
Fig. 5 is a schematic diagram of a unidirectional misconnection, where a 1 port of an a network element is connected to a 1 port of a B network element on a network manager, which is desired by a user; however, when the fiber is actually connected to the device, the receiving/emitting fibers are staggered, one is connected to the 1 port of the network element B, and the other is connected to the 2 port of the network element B.
In the present embodiment, both the operation of pulling out the optical fiber and the operation of inserting the optical fiber are performed in the case of misconnection of optical fibers. For PTN and SPN devices of a bearer network, ethernet ports are used in optical connections of the N-side, and when an optical fiber is pulled out, an ethernet port down alarm is generated, and when an optical fiber is reinserted, the ethernet port down disappears. The network perception module can monitor that the down alarm of the Ethernet port disappears, and automatically trigger the intelligent analysis action of the optical fiber misconnection, thereby analyzing the condition of the optical fiber misconnection in real time.
Specific example 2
As shown in table 1, is a data structure definition of optical connection in a network management system.
Table 1:
Figure 253735DEST_PATH_IMAGE001
optionally, as shown in fig. 4, during the intelligent analysis, the LLDP link is automatically discovered for the network element a sensed by the sensing module, and the connection information found on the device is shown in table 2:
table 2:
Figure 170875DEST_PATH_IMAGE002
the original connection information on the network manager is shown in table 3:
table 3:
Figure 12929DEST_PATH_IMAGE003
as can be seen from the comparison, in the same optical connection, aPort and zPort are consistent and ZPort are not consistent, and the optical fiber is misconnected.
Specific example 3
Fig. 6 is a flowchart of an embodiment of incremental real-time fiber misconnection detection analysis according to the present embodiment. The scheme performs optical fiber misconnection analysis on the perceived network element, and is real-time and efficient. The incremental real-time analysis scene is a scene for daily automatic execution, and is most typical and most widely applied.
When a Packet Transport Network (PTN) or a Private encrypted Network (SPN) device plugs and unplugs an optical fiber, an ethernet port down alarm is generated and reported. When the network sensing module monitors that the alarm disappears and changes, the optical fiber detection action is triggered, the real optical fiber connection condition on the equipment is automatically found through the LLDP link, and then the intelligent analysis module compares and analyzes the link difference between the network management and the equipment, so that the optical fiber which is in misconnection is found out. And generating a corresponding optical fiber misconnection alarm according to the misconnection optical fiber, displaying the optical fiber misconnection alarm on a graphical interface, and reporting the optical fiber misconnection alarm to the last OSS system through a northbound interface.
Specific example 4
Fig. 7 is a flowchart illustrating a full-fiber misconnection detection analysis according to an embodiment of the present invention. The full-scale analysis scenario is typically triggered manually by the user or automatically by the system periodically (e.g., once every 24 hours). The full-scale analysis is relatively low in efficiency compared with an incremental real-time analysis scene because the full-scale analysis analyzes the network elements of the whole network, but the scene analysis is relatively complete, so that analysis omission under some abnormal conditions (for example, alarm information is lost due to network reasons, and thus the incremental real-time analysis cannot be triggered) is avoided. Triggering the full-quantity optical fiber misconnection analysis manually or regularly, calling optical fiber detection to detect the physical optical fiber condition after the intelligent analysis module receives the instruction, comparing and analyzing the detection result with the optical connection condition on the network management, wherein the result display and northbound report are the same as the increment real-time analysis scene.
By adopting the embodiment, the change of the network optical fiber connection can be automatically sensed, and the optical fiber misconnection condition can be intelligently analyzed. By adopting the method, the troubleshooting time of the misconnection of the single optical fiber is shortened to the second level from 10 to 60 minutes; the method greatly improves the service safety, the optical fiber misconnection can be found only when the service transmission fault occurs in the past, and now as long as the optical fiber misconnection condition occurs, the system can automatically trigger the optical fiber misconnection analysis and graphical display and alarm prompt, so that a user can correct and modify the optical fiber misconnection in time, and the service interruption risk possibly caused by the optical fiber misconnection is avoided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a control device is further provided, which is used to implement the above embodiments and preferred embodiments, and the description of the control device is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a structure of detection of optical fiber misconnection according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a first obtaining module 82, configured to obtain optical fiber connection information between a first network element and a second network element, where the first network element and the second network element are in the same network management system;
a first comparison module 84, configured to compare the optical fiber connection information with the target optical fiber connection information, and determine a comparison result;
a first detecting module 86, configured to detect whether the optical fiber connection between the first network element and the second network element is abnormal based on the comparison result.
In an exemplary embodiment, the first obtaining module includes:
a first obtaining unit, configured to obtain operation information of multiple network elements in the network management system;
a first triggering unit, configured to trigger acquisition of the optical fiber connection information when optical fiber alarm information sent by the first network element or the second network element is acquired from the operation information, where the optical fiber alarm information is used to indicate that an optical fiber connection relationship between the first network element and the second network element has changed, and the optical fiber alarm information includes network element information of the first network element or the second network element.
In an exemplary embodiment, the first triggering unit includes:
a first detecting subunit, configured to detect, through a preset link, fiber information of each port in the first network element and fiber information of each port in the second network element, to obtain the fiber connection information, when the network element information of the first network element or the second network element is determined from the fiber alarm information.
In an exemplary embodiment, the first obtaining module includes:
a first receiving unit, configured to receive a trigger instruction, where the trigger instruction is used to trigger detection of optical fiber connections of multiple network elements in the network management system;
the first detection unit is used for detecting the optical fiber information of each port in each network element through a preset link to obtain optical fiber detection information of a plurality of network elements;
a second obtaining unit configured to obtain the optical fiber connection information from the plurality of optical fiber detection information.
In an exemplary embodiment, the first comparison module includes:
a first determining unit configured to determine, from the optical fiber connection information, a first port and a second port to which both ends of a target optical fiber are connected, where the first port is a port in the first network element, and the second port is a port in the second network element;
a second determining unit configured to determine a connection direction of the target optical fiber between the first port and the second port from the optical fiber connection information;
a first comparing unit, configured to compare a first port and a second port connected to two ends of the target optical fiber with a first target port and a second target port corresponding to the two ends of the target optical fiber, to obtain a first comparison result, where the first target port and the second target port corresponding to the two ends of the target optical fiber are included in the target optical fiber connection information;
and the second comparison unit is used for comparing the connection direction with the target connection direction to obtain a second comparison result.
In an exemplary embodiment, the first detecting module includes:
a third determining unit, configured to determine that an optical fiber connection between the first network element and the second network element is abnormal when the first comparison result is abnormal or the second comparison result is abnormal.
In an exemplary embodiment, the apparatus further includes:
a first determining module, configured to determine, after determining that an optical fiber connection between the first network element and the second network element is abnormal, information about the optical fiber connection between the first network element and the second network element that is abnormal;
and the first sending module is used for sending the optical fiber connection abnormal information to display equipment so as to display the optical fiber connection abnormal information through the display equipment.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for detecting optical fiber misconnection is applied to a network management system and comprises the following steps:
acquiring optical fiber connection information between a first network element and a second network element, wherein the first network element and the second network element are in the same network management system, and the first network element and the second network element both support a link of an LLDP protocol;
comparing the optical fiber connection information with target optical fiber connection information, and determining a comparison result;
detecting whether the optical fiber connection between the first network element and the second network element is abnormal or not based on the comparison result;
acquiring optical fiber connection information between a first network element and a second network element, including:
acquiring operation information of a plurality of network elements in the network management system;
when detecting that an optical fiber connection connected between the first network element and the second network element is plugged or unplugged, acquiring optical fiber alarm information sent by the first network element or the second network element from the plugging or unplugging operation, and triggering the acquisition of the optical fiber connection information, wherein the optical fiber alarm information is used for indicating that an optical fiber connection relation between the first network element and the second network element is changed, and the optical fiber alarm information comprises network element information of the first network element or the second network element;
comparing the optical fiber connection information with target optical fiber connection information, and determining a comparison result, wherein the comparison result comprises the following steps:
determining a first port and a second port connected to two ends of a target optical fiber from the optical fiber connection information, wherein the first port is a port in the first network element, and the second port is a port in the second network element;
determining a connection direction of the target optical fiber between the first port and the second port from the optical fiber connection information;
comparing a first port and a second port connected with two ends of the target optical fiber with a first target port and a second target port corresponding to the two ends of the target optical fiber to obtain a first comparison result, wherein the first target port and the second target port corresponding to the two ends of the target optical fiber are included in the target optical fiber connection information;
and comparing the connection direction with the target connection direction to obtain a second comparison result.
2. The method according to claim 1, wherein in a case where the optical fiber alarm information sent by the first network element or the second network element is extracted from the operation information, triggering acquisition of the optical fiber connection information comprises:
and under the condition that the network element information of the first network element or the second network element is determined from the optical fiber alarm information, detecting the optical fiber information of each port in the first network element and the optical fiber information of each port in the second network element through a preset link to obtain the optical fiber connection information.
3. The method of claim 1, wherein obtaining the fiber connection information between the first network element and the second network element comprises:
receiving a triggering instruction, wherein the triggering instruction is used for triggering detection of optical fiber connections of a plurality of network elements in the network management system;
detecting the optical fiber information of each port in each network element through a preset link to obtain optical fiber detection information of a plurality of network elements;
and acquiring the optical fiber connection information from a plurality of optical fiber detection information.
4. The method of claim 1, wherein detecting the abnormal optical fiber connection between the first network element and the second network element based on the comparison result comprises:
and determining that the optical fiber connection between the first network element and the second network element is abnormal under the condition that the first comparison result is abnormal or the second comparison result is abnormal.
5. The method of claim 4, wherein after determining that the optical fiber connection between the first network element and the second network element is abnormal, the method further comprises:
determining abnormal information of optical fiber connection between the first network element and the second network element;
and sending the optical fiber connection abnormal information to display equipment so as to display the optical fiber connection abnormal information through the display equipment.
6. A device for detecting a misconnection of optical fibers, comprising:
a first obtaining module, configured to obtain optical fiber connection information between a first network element and a second network element, where the first network element and the second network element are in a same network management system, and both the first network element and the second network element support a link of an LLDP protocol;
the first comparison module is used for comparing the optical fiber connection information with target optical fiber connection information and determining a comparison result;
a first detection module, configured to detect whether an optical fiber connection between the first network element and the second network element is abnormal based on the comparison result;
the first obtaining module is further configured to obtain operation information of a plurality of network elements in the network management system; when detecting that an optical fiber connection connected between the first network element and the second network element is plugged or unplugged, acquiring optical fiber alarm information sent by the first network element or the second network element from the plugging or unplugging operation, and triggering the acquisition of the optical fiber connection information, wherein the optical fiber alarm information is used for indicating that an optical fiber connection relation between the first network element and the second network element is changed, and the optical fiber alarm information comprises network element information of the first network element or the second network element;
the first comparison module is further configured to determine, from the optical fiber connection information, a first port and a second port that are connected to two ends of a target optical fiber, where the first port is a port in the first network element, and the second port is a port in the second network element; determining a connection direction of the target optical fiber between the first port and the second port from the optical fiber connection information; comparing a first port and a second port connected with two ends of the target optical fiber with a first target port and a second target port corresponding to the two ends of the target optical fiber to obtain a first comparison result, wherein the first target port and the second target port corresponding to the two ends of the target optical fiber are included in the target optical fiber connection information; and comparing the connection direction with the target connection direction to obtain a second comparison result.
7. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 5.
8. An electronic device comprising a memory and a processor, wherein the memory has a computer program stored therein, and the processor is configured to execute the computer program to perform the method of any of claims 1 to 5.
CN202211264104.4A 2022-10-17 2022-10-17 Method and device for detecting optical fiber misconnection, storage medium and electronic device Active CN115333616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211264104.4A CN115333616B (en) 2022-10-17 2022-10-17 Method and device for detecting optical fiber misconnection, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211264104.4A CN115333616B (en) 2022-10-17 2022-10-17 Method and device for detecting optical fiber misconnection, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115333616A CN115333616A (en) 2022-11-11
CN115333616B true CN115333616B (en) 2023-02-24

Family

ID=83915505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211264104.4A Active CN115333616B (en) 2022-10-17 2022-10-17 Method and device for detecting optical fiber misconnection, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115333616B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838568A (en) * 2004-11-18 2006-09-27 国际商业机器公司 Apparatus, system, and method for detecting a fibre channel miscabling event
CN101982797A (en) * 2010-09-30 2011-03-02 华为技术有限公司 Optical fibre connection device
CN102006180A (en) * 2009-09-03 2011-04-06 中兴通讯股份有限公司 Method and device for selecting endpoints during establishment of end-to-end service layer service
CN103368643A (en) * 2012-04-01 2013-10-23 华为技术有限公司 Method, system and device for detecting optical fiber link
CN105530114A (en) * 2014-10-23 2016-04-27 中兴通讯股份有限公司 Optical fiber connection processing method and device
CN106936497A (en) * 2015-12-31 2017-07-07 中兴通讯股份有限公司 The wrong determination methods and device even of optical fiber
CN114157350A (en) * 2021-10-26 2022-03-08 武汉光迅信息技术有限公司 Optical fiber misconnection detection method and system
WO2022199572A1 (en) * 2021-03-26 2022-09-29 华为技术有限公司 Light-splitting apparatus, light-splitting system, passive optical network and optical fiber fault detection method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103339876B (en) * 2012-11-26 2016-09-28 华为技术有限公司 Optical port connection management method, ring flange, jumping fiber and optical network device
CN112448757B (en) * 2019-09-04 2022-09-23 中国电信股份有限公司 Port occupation testing method and system, user terminal, background system and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838568A (en) * 2004-11-18 2006-09-27 国际商业机器公司 Apparatus, system, and method for detecting a fibre channel miscabling event
CN102006180A (en) * 2009-09-03 2011-04-06 中兴通讯股份有限公司 Method and device for selecting endpoints during establishment of end-to-end service layer service
CN101982797A (en) * 2010-09-30 2011-03-02 华为技术有限公司 Optical fibre connection device
CN103368643A (en) * 2012-04-01 2013-10-23 华为技术有限公司 Method, system and device for detecting optical fiber link
CN105530114A (en) * 2014-10-23 2016-04-27 中兴通讯股份有限公司 Optical fiber connection processing method and device
CN106936497A (en) * 2015-12-31 2017-07-07 中兴通讯股份有限公司 The wrong determination methods and device even of optical fiber
WO2022199572A1 (en) * 2021-03-26 2022-09-29 华为技术有限公司 Light-splitting apparatus, light-splitting system, passive optical network and optical fiber fault detection method
CN114157350A (en) * 2021-10-26 2022-03-08 武汉光迅信息技术有限公司 Optical fiber misconnection detection method and system

Also Published As

Publication number Publication date
CN115333616A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
CN110380907B (en) Network fault diagnosis method and device, network equipment and storage medium
US10972817B2 (en) Topology processing method, apparatus, and system
CN101977128B (en) Interface detection method and device for communication equipment
CN102457390B (en) A kind of Fault Locating Method based on QOE and system
CN108259215B (en) Equipment management method and device
CN111008026B (en) Cluster management method, device and system
CN103532738B (en) The defining method of a kind of port connection relationship and device
EP2882216B1 (en) Device and method for controlling, supervising and giving an alarming from a power supply of base station
CN101197714B (en) Method for centrally capturing mobile data service condition
US20140146662A1 (en) Management system and management method
CN112671586B (en) Automatic migration and guarantee method and device for service configuration
CN115333616B (en) Method and device for detecting optical fiber misconnection, storage medium and electronic device
CN108064054B (en) FTP file transmission monitoring method and system in LTE system
CN105530145A (en) Agentless equipment monitoring network based on ZABBIX framework, networking method and monitoring method
CN113114357B (en) Passive wavelength division equipment fault detection method, device, server and storage medium
CN114461501A (en) Resource abnormality detection method and device, storage medium, and electronic device
CN112714035A (en) Monitoring method and system
RU2787892C1 (en) Method, device and system for processing of topology
CN114400624B (en) Method for polling version and faults of power distribution equipment, power distribution terminal and power distribution main station
CN109194522B (en) Switch state information monitoring method and system based on power distribution network management system
US20170363509A1 (en) Method and Device for Optical Fiber Monitoring and Optical Fiber Adapter
EP4336883A1 (en) Modeling method, network element data processing method and apparatus, electronic device, and medium
CN117527548A (en) Base station fault positioning method and device, electronic equipment and nonvolatile storage medium
CN114374899A (en) Method and device for positioning service fault of optical transport network
CN112532480A (en) Fault alarm method, device and system

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