Method, device, detection equipment and system for detecting optical fiber connection

By detecting the transmission and reception optical power changes of network equipment, the correctness of optical fiber connections is automatically judged, and the problems of low efficiency and insufficient accuracy of optical fiber connection error detection in the prior art are solved, and a fast and accurate detection effect is achieved.

CN119865237APending Publication Date: 2025-04-22BEIJING HUAWEI DIGITAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311369043.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The prior art is inefficient in detecting errors in fiber connections between network devices and relies on manual processing, resulting in insufficient hysteresis and accuracy.

Method used

The detection device obtains the transmission and reception optical power changes of the network equipment, and uses the similarity of these changes to automatically judge the correctness of the optical fiber connection, avoiding manual plug-in and judgment.

Benefits of technology

It improves the accuracy and efficiency of fiber connection detection, reduces the lag of manual intervention, and can quickly and accurately identify the location points of fiber connection abnormalities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865237A_ABST
    Figure CN119865237A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device, detection equipment and a system for detecting optical fiber connection, relates to the field of optical communication, and can improve the accuracy and efficiency of optical fiber connection detection between network equipment. The method comprises the following steps: acquiring the transmitting optical power of a first port in first network equipment and the receiving optical power of a second port in second network equipment, and then determining an optical fiber connection detection result according to the change of the transmitting optical power of the first port and the change of the receiving optical power of the second port, the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is abnormal or the optical fiber connection between the first port and the second port is normal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical communications, and in particular to a method, device, detection equipment and system for detecting optical fiber connections. Background Art

[0002] Generally, network devices can be connected and transmit data through optical fibers, but optical fiber connection errors between network devices often occur. For example, in the scenario of dual-fiber bidirectional optical modules, two network devices need to be connected through two optical fibers, which are the receiving fiber and the sending fiber for the two network devices. When there is a connection error between the two optical fibers, the two network devices cannot communicate normally. If it is not handled in time, it will affect the services carried by the optical fiber link.

[0003] Usually, when a service interruption is discovered, the operation and maintenance personnel need to plug and unplug the optical fiber connecting the two devices and manually determine whether the optical fiber connection is incorrect. However, manually solving the problem of optical fiber connection errors has a strong lag and relies on the operation and maintenance personnel's experience. Therefore, the efficiency and accuracy of detecting whether the optical fiber connection between network devices is abnormal is low. Summary of the invention

[0004] The present application provides a method, apparatus, detection equipment and system for detecting optical fiber connections, thereby improving the accuracy and efficiency of optical fiber connection detection between network devices.

[0005] In a first aspect, a method for detecting optical fiber connection is provided, which can be applied to a detection device.

[0006] The detection device can obtain the transmitted optical power of the first port in the first network device and the received optical power of the second port in the second network device, and then determine the optical fiber connection detection result according to the change of the transmitted optical power of the first port and the change of the received optical power of the second port, so as to indicate through the optical fiber connection detection result that the optical fiber connection between the first port and the second port is abnormal or that the optical fiber connection between the first port and the second port is normal.

[0007] Since the optical fiber connection between the first port in the first network device and the second port in the second network device is correct, the change in the transmitted optical power of the first port and the change in the received optical power of the second port are similar. The optical power change of the two ports is used to determine whether the optical fiber connection between the ports is abnormal or normal, that is, the optical fiber connection between the devices in the physical link is automatically detected based on the optical power change of the ports. There is no need to rely on manual processing experience to manually determine whether the optical fiber connection is correct by plugging and unplugging the optical fiber connected between the two devices when a problem occurs in the business, and there is no hysteresis. Therefore, the solution provided by the present application can improve the accuracy and efficiency of optical fiber connection detection between network devices.

[0008] In one possible design, determining the optical fiber connection detection result based on the change of the transmitted optical power of the first port and the change of the received optical power of the second port includes: the detection device can determine the optical fiber connection detection result based on the similarity of the change of the transmitted optical power of the first port and the change of the received optical power of the second port, so as to indicate the degree of similarity between the change law of the transmitted optical power of the first port and the change law of the received optical power of the second port through the similarity.

[0009] The detection device can indicate the degree of similarity between the change pattern of the transmitted optical power of the first port and the change pattern of the received optical power of the second port based on the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port, thereby determining the optical fiber connection detection result by the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port to improve the accuracy of determining the similarity between the change of the transmitted optical power and the change of the received optical power.

[0010] In another possible design, the above method also includes: the detection device can determine the similarity ratio of the change rate of the transmitted optical power of the first port and the change rate of the received optical power of the second port within the first time period, so as to determine the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port based on the similarity ratio of the change rate of the transmitted optical power of the first port and the change of the received optical power of the second port.

[0011] The detection device determines the similarity ratio of the change rate of the transmitted optical power of the first port and the change rate of the received optical power of the second port within a certain time period to determine the similarity ratio of the change rate. Based on the similarity ratio of the change rate of the transmitted optical power of the first port and the change rate of the received optical power of the second port, the detection device determines the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port, thereby improving the accuracy of determining the similarity between the change of the transmitted optical power and the change of the received optical power.

[0012] In another possible design, determining the optical fiber connection detection result based on the change of the transmitted optical power of the first port and the change of the received optical power of the second port includes: when the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is less than or equal to a preset similarity, the detection device can determine that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is abnormal.

[0013] In another possible design, determining the optical fiber connection detection result based on the change of the transmitted optical power of the first port and the change of the received optical power of the second port includes: when the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is greater than a preset similarity, the detection device can determine that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is normal.

[0014] That is to say, the detection device can determine the optical fiber connection detection result based on the size relationship between the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port and the preset similarity, thereby improving the accuracy of determining the optical fiber connection detection result.

[0015] In another possible design, the method further includes: the detection device can determine the location point of the optical fiber connection abnormality based on the lighting and dialing test results of the first network device and the lighting and dialing test results of the second network device.

[0016] In another possible design, the method further includes: displaying a location point where the optical fiber connection is abnormal.

[0017] When the fiber optic connection detection result indicates that the fiber optic connection between the first port and the second port is abnormal, the detection device can trigger the first network device and the second network device to perform optical dialing testing, so as to analyze and determine the location point of the abnormal fiber optic connection based on the optical dialing test result of the first network device and the optical dialing test result of the second network device, and display the location point of the abnormal fiber optic connection for operation and maintenance personnel to view, so as to accurately determine the location point of the abnormal fiber optic connection, so that the operation and maintenance personnel can quickly solve the problem of abnormal fiber optic connection.

[0018] In another possible design, the detection device can obtain the transmitting optical power of the first port in the first network device and the receiving optical power of the second port in the second network device, including: the detection device can determine the first port and the second port having a connection relationship based on a target link relationship table including connection relationships between multiple ports, thereby obtaining the transmitting optical power of the first port in the first network device and the receiving optical power of the second port in the second network device.

[0019] The target link relationship table includes connection relationships between multiple ports. The detection device can pre-determine two ports with a connection relationship, namely, a first port and a second port, and then determine the optical fiber connection detection result between the first port and the second port by obtaining the transmitted optical power of the first port and the received optical power of the second port for the two ports, thereby judging whether the optical fiber connection between the two devices is correct.

[0020] In a second aspect, a detection device is provided, which includes: a communication module and a processing module.

[0021] The communication module is used to obtain the transmission optical power of the first port in the first network device and the reception optical power of the second port in the second network device.

[0022] The above-mentioned processing module is used to determine the optical fiber connection detection result according to the change of the transmitted optical power of the first port and the change of the received optical power of the second port, and the optical fiber connection detection result is used to indicate that the optical fiber connection between the first port and the second port is abnormal or the optical fiber connection between the first port and the second port is normal.

[0023] In one possible design, the above-mentioned processing module is specifically used to determine the optical fiber connection detection result based on the similarity of the change of the transmitted optical power of the first port and the change of the received optical power of the second port, and the similarity is used to indicate the degree of similarity between the change law of the transmitted optical power of the first port and the change law of the received optical power of the second port.

[0024] In another possible design, the processing module is further used to determine a similarity ratio between a rate of change of the transmitted optical power of the first port and a rate of change of the received optical power of the second port in the first time period. The processing module is further used to determine a similarity based on a similarity ratio between a rate of change of the transmitted optical power of the first port and a rate of change of the received optical power of the second port.

[0025] In another possible design, the above-mentioned processing module is specifically used to determine that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is abnormal when the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is less than or equal to a preset similarity.

[0026] In another possible design, the processing module is also used to determine the location point of the optical fiber connection abnormality based on the optical fiber dialing test results of the first network device and the optical fiber dialing test results of the second network device.

[0027] Optionally, the above detection device may further include: a display module.

[0028] In another possible design, the display module is used to display the location point of the optical fiber connection abnormality.

[0029] In another possible design, the above-mentioned processing module is specifically used to determine that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is normal when the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is greater than a preset similarity.

[0030] In another possible design, the above-mentioned processing module is specifically used to determine the first port and the second port with a connection relationship according to the target link relationship table, and obtain the transmitting optical power of the first port in the first network device and the receiving optical power of the second port in the second network device, and the target link relationship table includes the connection relationship between multiple ports.

[0031] In a third aspect, a detection device is provided, which includes a memory and a processor, wherein the memory is coupled to the processor; the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the detection device executes the method described in the first aspect and any possible design method thereof.

[0032] In a fourth aspect, a detection system is provided. The detection system is applied to a detection device and multiple network devices. The multiple network devices are connected by optical fibers. The detection device is used to execute the method described in the first aspect and any possible design method thereof to detect the optical fiber connection between the multiple network devices.

[0033] In a fifth aspect, a computer storage medium is provided, which includes computer instructions. When the computer instructions are executed on a detection device, the detection device executes the method described in the first aspect and any possible design thereof.

[0034] According to a sixth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the method as described in the first aspect and any possible design thereof.

[0035] It can be understood that the beneficial effects that can be achieved by the detection device described in the second aspect and any possible design thereof, the detection equipment described in the third aspect, the detection system described in the fourth aspect, the computer storage medium described in the fifth aspect, and the computer program product described in the sixth aspect can be referred to as the beneficial effects in the first aspect and any possible design thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1A schematic diagram of an optical fiber connection provided for this application;

[0037] Figure 2 A flow chart of a method for determining an optical fiber connection error provided for related technology;

[0038] Figure 3 A schematic diagram of the composition of a system architecture for detecting optical fiber connections provided in this application;

[0039] Figure 4 A schematic diagram of another system architecture for detecting optical fiber connections provided by the present application;

[0040] Figure 5 A schematic diagram of a method for detecting optical fiber connection provided in this application;

[0041] Figure 6 A schematic diagram of optical power variation trend provided for this application;

[0042] Figure 7 Another schematic diagram of optical power variation trend provided for this application;

[0043] Figure 8 A schematic diagram of the composition of a detection device provided in this application;

[0044] Fig. 9 A schematic diagram of the structural composition of a detection device provided in this application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] In this application, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.

[0047] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0048] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.

[0049] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.

[0050] The relevant terms involved in the embodiments of this application are explained as follows:

[0051] Fiber connections: In a communication network, two network devices need to be connected via optical fiber to achieve data transmission for communication services. The two ends of an optical fiber are connected to ports on two network devices. Since each network device includes multiple ports (slots), it is necessary to indicate which port on which network device the two ends of the optical fiber are connected to, that is, to indicate the port identification of the two ends of the optical fiber through the fiber connection relationship.

[0052] Cross connection: In a communication network, two network devices usually need two optical fibers to connect, one of which is used to receive data and the other is used to send data. These two optical fibers are called a pair of optical fibers. The two ends of these two optical fibers are connected to corresponding ports to achieve data transmission of communication services between the two network devices. When one or both of the two optical fibers connecting the two network devices are connected to ports that are different from the ports that are theoretically connected, there is a problem of optical fiber connection error. This phenomenon is called cross connection.

[0053] At present, in the communication network, network devices need to be connected through optical fibers to form a physical link, and data information is transmitted through optical fibers to realize information exchange between network devices. Depending on the type of optical module used by the network device, its networking form is also different. Optical modules are divided into single-fiber bidirectional optical modules and dual-fiber bidirectional optical modules. A single-fiber bidirectional optical module refers to using one optical fiber to complete the reception and transmission of data information, that is, two network devices are connected through one optical fiber, and data transmission between the two network devices is realized through this optical fiber; a dual-fiber bidirectional optical module refers to using two optical fibers to complete the reception and transmission of data information between two network devices, that is, two network devices are connected through two optical fibers, one of which is used to receive data information and the other is used to send data information. Data transmission between the two network devices is realized through two optical fibers, and the received data and the sent data do not interfere with each other.

[0054] As the scale of communication networks increases rapidly, the number of optical fibers increases, and the connection relationship between optical fibers becomes more and more complex. Since most optical fibers in physical links have missing labels, it is impossible to know which optical module each optical fiber should be connected to, and optical fiber connection errors often occur. The most common optical fiber misconnection situation is the cross-connection of optical fibers between the data sending port and the data receiving port of two network devices, resulting in the "mandarin duck fiber" problem. After the optical fiber connection error, the two network devices cannot communicate normally. If it is not handled in time, it will affect the business carried by the link.

[0055] For example, Figure 1 As shown, network element device A and network element device B each include four groups of ports, each group of ports includes a sending port and a receiving port, each group of ports corresponds to an interface information, the interface information includes a slot number and a port number, for example, the interface information of each group of ports included in network element device A is: slot 1-port 1, slot 2-port 1, slot 1-port 2, slot 2-port 2, etc. A group of ports (slot 1-port 2) of network element device A is connected to a group of ports (slot 2-port 2) of network element device B through two optical fibers, a sending port in a group of ports of network element device A is connected to a receiving port in a group of ports of network element device B, and a receiving port in a group of ports of network element device A is connected to a sending port in a group of ports of network element device B, so as to realize bidirectional transmission of data information. The upstream information stored on the A side of the network element device is: network element device A-slot 1-port 2, and the upstream information stored on the B side of the network element device is: network element device B-slot 2-port 2. If the receiving port in a group of ports of the network element device A is connected to the receiving port in a group of ports of the network element device B, and the sending port in a group of ports of the network element device A is connected to the sending port in a group of ports of the network element device B, a "mandarin duck fiber" will be formed. The optical fiber connection error will cause the services carried between the ports to be unable to transmit data normally.

[0056] like Figure 2 As shown, in a communication network, two network devices connected by optical fiber can send upstream information of the optical fiber connection (optical fiber sending end information: network element information / port information) to the opposite network device connected by the optical fiber. The opposite network device parses the upstream information sent and compares it with the preset configuration information saved at the local end, thereby analyzing whether there is a connection error in the network devices connected at both ends of the optical fiber.

[0057] Although the services carried between network devices can be configured with two paths, namely the main path and the backup path, the two paths can prevent the problem of service interruption caused by abnormality in one of the paths. When an abnormality occurs in the active path, you can switch to another path to continue to complete the service. In this case, if the fiber connection on the backup path is wrong, but the fiber connection on the active path is correct, it will not trigger service interruption, and it will not check whether there is an error in the fiber connection on the backup path. This situation will bury the hidden danger of causing service interruption. If an abnormality occurs in the active path and it is switched to the backup path, the service will be interrupted due to the fiber connection error on the backup path, and the hidden danger problem still exists.

[0058] In addition, there are many reasons for business interruption, and fiber connection error is only one of them. When business is interrupted, different operation and maintenance personnel have different experience in handling problems, resulting in different time for problem handling. Therefore, different operation and maintenance personnel have different efficiency in troubleshooting the cause of business interruption. In addition, the work of locating the location of fiber connection errors is cumbersome and time-consuming. Currently, operation and maintenance personnel need to use tools such as red light pens to identify the location of fiber connection errors section by section, and the cooperation of at least two operation and maintenance personnel is required. If the location of the fiber connection error occurs at the fiber fusion point, it will greatly increase the workload of troubleshooting and locating the location of the fiber connection error.

[0059] To this end, an embodiment of the present application provides a method for detecting an optical fiber connection. The method can be applied to the process of determining whether the optical fiber connection between two devices is abnormal. In the method, the detection device can obtain the transmission optical power of the first port in the first network device and the reception optical power of the second port in the second network device in two network devices with a connection relationship. Since the first port and the second port need to be connected through an optical fiber, the detection device can determine the optical fiber connection detection result according to the change of the transmission optical power of the first port and the change of the reception optical power of the second port. Since the optical fiber connection between the first port in the first network device and the second port in the second network device is correct, the change of the transmission optical power of the first port and the change of the reception optical power of the second port are similar. The optical power change between the two ports is used to determine whether the optical fiber connection between the ports is abnormal or normal, that is, automatically detect whether the optical fiber connection between the devices in the physical link is correct, without relying on manual processing experience to manually determine whether the optical fiber connection is correct by plugging and unplugging the optical fiber connected between the two devices when there is a problem with the business, and there is no hysteresis. Therefore, the scheme provided by the present application can improve the accuracy and efficiency of optical fiber connection detection between network devices.

[0060] refer to Figure 3 The method for detecting optical fiber connection provided in the embodiment of the present application can be applied to an implementation environment consisting of a detection device (such as a computer) and a network device. Figure 3 As shown, the implementation environment may include a detection device 201 and a network device 202. The detection device 201 includes a data collector and a data analyzer. The data collector is used to collect parameter information of the network device (transmitted optical power and received optical power). The data analyzer is used to analyze and process the collected parameter information of the network device, perform time sequence correlation analysis on the collected data, and give a judgment result of the correctness of the optical fiber connection (i.e., the optical fiber connection detection result). If the optical fiber connection is wrong, the optical modules at both ends of the link are controlled to perform optical time domain reflectometer (OTDR) lighting, and the positioning point of the optical fiber connection error position is given by analyzing the dialing test result.

[0061] Optionally, the detection device 201 may further include a result presentation module, or the result presentation module is a module corresponding to a third-party application system, and the result presentation module is used to display the location point of the abnormal optical fiber connection.

[0062] And, detection equipment 201 comprises software systems such as optical fiber connection error identification and positioning system, network management system and third-party application system.Wherein, the system in the embodiment of the present application can be an embedded application system or a downloadable application system installed in the detection equipment.Wherein, the embedded application system is an application system provided as a part for detection equipment implementation.Downloadable application system is an application system that can provide its own Internet Protocol Multimedia Subsystem (InternetProtocol Multimedia Subsystem, IMS) connection, and this downloadable application system can be pre-installed in the system in the detection equipment or can be downloaded by the user and installed in the third-party application system in the detection equipment.

[0063] For example, the above application system can be an embedded application system installed in the detection device (i.e., the system application of the detection device). For example, the above network management system can be a system developed and launched by the operator, responsible for managing the operating status of the operator's network equipment in various locations; the third-party application system can be an application system commissioned by the operator to be developed by other companies and used to display the results of optical fiber connection detection.

[0064] To facilitate understanding of the technical solution of the present application, before introducing in detail the method for detecting optical fiber connections in an embodiment of the present application, the implementation environment of the embodiment of the present application is introduced by taking the execution subject of the method for detecting optical fiber connections provided by the present application as a system for executing the method for detecting optical fiber connections in a detection device (for example, an application named "Optical Fiber Connection Error Identification and Positioning System") as an example.

[0065] refer to Figure 4 As shown, the method for detecting fiber optic connections provided in the embodiment of the present application can be executed by a fiber optic connection error identification and positioning system 2011, a network management system 2012 and a third-party application system 2013. The fiber optic connection error identification and positioning system 2011 can obtain relevant information of network devices (for example, port information, transmitted optical power, received optical power, etc.) from the network management system 2012 through mobile networks or WIFI.

[0066] The optical fiber connection error identification and positioning system 2011 may include an identification module 301, a positioning module 302, a southbound interface 303 and a northbound interface 304. The optical fiber connection error identification and positioning system 2011 may interact with the network management system 2012 through the southbound interface 303 for data information, and interact with the third-party application system 2013 through the northbound interface 304 for data information. The network management system 2012 may also obtain a target link relationship table (e.g., an optical fiber physical link planning information table) from the network device 202 (e.g., a network element) through a mobile network or WIFI, etc., to determine the connection relationship between the ports of the two network devices, that is, the port of one network device and the port of another network device should be connected through an optical fiber. Based on this, the embodiment of the present application may be performed based on the optical fiber connection error identification and positioning system 2011. In addition, the optical fiber connection error identification and positioning system 2011 may communicate data with the network management system 2012 and the third-party application system 2013 to implement functions such as data interaction.

[0067] Exemplarily, the detection device in the embodiment of the present application can be a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the detection device 201.

[0068] The execution subject of the method for detecting optical fiber connection provided in the present application can be the central processing unit (CPU) of the detection device, or the control module in the detection device for realizing optical fiber connection error identification and positioning, or the application system in the detection device for optical fiber connection error identification and positioning.

[0069] Network devices can provide access to service logic for client application programs (systems) to use. Network devices can provide a simple, manageable access mechanism to system resources for applications. They also provide services such as HyperText Transfer Protocol (HTTP) implementation and database connection management. Optionally, network devices can interact with the network management system in the detection device for data information.

[0070] The technical solution provided in the embodiment of the present application can be applied to the above implementation environment. The implementation environment described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. It is known to those skilled in the art that with the evolution of the implementation environment, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0071] The methods in the following embodiments can all be implemented in a detection device having the above implementation environment. In the following embodiments, the method of detecting optical fiber connection provided by the present application is described by taking the detection device as an example to execute the method.

[0072] The present application embodiment provides a method for detecting optical fiber connection, such as Figure 5 As shown, the method for detecting optical fiber connection may include S501-S502.

[0073] S501: A detection device obtains a transmitted optical power of a first port in a first network device and a received optical power of a second port in a second network device.

[0074] It should be noted that the first port in the above-mentioned first network device and the second port in the second network device are ports that need to be connected through optical fiber, that is, in the process of network planning, the ports with a connection relationship are predetermined, and the first port in the first network device and the second port in the second network device are connected through optical fiber.

[0075] In a possible implementation, the detection device may send an optical power acquisition request to the first network device and the second network device through the network management system, so that the first network device returns the transmitted optical power of the first port to the detection device, and the second network device returns the received optical power of the second port to the detection device. Among them, the first network device and the second network device may be network elements (i.e., network units), including hardware devices and software running thereon. Usually a network unit has at least one main control board, which is responsible for the management and monitoring of the entire network unit. The host software runs on the main control board. In a fiber-optic communication network, the network element is the most basic component unit, and different network elements are then connected through optical fiber connections.

[0076] In a possible implementation, the detection device may send an optical power acquisition request to the network management device through the network management system to obtain the transmission optical power of the first port of the first network device and the reception optical power of the second port of the second network device from the network management device.

[0077] Among them, the network management system is an application included in the detection equipment, which is mainly responsible for the operation, management and maintenance functions of the network. In the embodiment of the present application, the network management system is needed to acquire data and analyze and process data, and present the analysis results to the user through the network management system.

[0078] It can be understood that optical power data is a very easy-to-obtain data in communication networks. It is data that exists in communication networks and does not require the agreement of new protocols, the modification of equipment, the addition of new hardware, or the consumption of precious hardware computing power by hardware encoding and decoding. Therefore, by obtaining the optical power data of network equipment, it is possible to efficiently and conveniently determine whether the optical fiber connection is correct.

[0079] Exemplary, combined Figure 1 As shown, in the optical fiber communication system, both ends of the optical fiber need to be connected to the optical module (i.e., port). The optical module at the transmitting end converts the electrical signal into an optical signal and transmits it to the optical module of the receiving end network device via the optical fiber. The optical module of the receiving end network device converts the optical signal into an electrical signal and analyzes the information therein. That is, the first port in the first network device and the second port in the second network device are both optical modules.

[0080] In one possible implementation, the detection device can also determine the first port and the second port with a connection relationship based on the target link relationship table, and obtain the transmitting optical power of the first port in the first network device and the receiving optical power of the second port in the second network device, wherein the target link relationship table includes the connection relationship between multiple ports.

[0081] It should be noted that before obtaining the transmitted optical power of the first port in the first network device and the received optical power of the second port in the second network device, the detection device needs to first determine whether the two network devices to be identified (i.e., the first network device and the second network device) are connected via optical fiber (in the case of an optical fiber connection error, the first network device and the second network device may not be connected via optical fiber), so as to determine, for the two network devices, whether the optical fiber between the two network devices is connected incorrectly.

[0082] In some examples, the detection device can obtain a target link relationship table from the network device through a network management system, the target link relationship table including interface information between multiple groups of network devices with connection relationships, the interface information including sender port information and receiver port information, so as to determine, for each group of network devices in the multiple groups of network devices with connection relationships, whether a first port in a first network device in the group of network devices and a second port in a second network device in the group of network devices are connected through an optical fiber.

[0083] In the target link relationship table, the upstream and downstream information of the network devices with connection relationship (also known as the original end) can be obtained, which network element and which port. According to the planning information of the optical fiber connection recorded in the target link relationship table, the transmission optical power, reception optical power and temperature of the optical module corresponding to the link are collected through the southbound interface, and the collected information is analyzed to determine the correctness of the optical fiber connection. The southbound interface is specifically used to realize data interaction between the detection equipment and the network management system.

[0084] Exemplarily, as shown in Table 1, the target link relationship table includes the connection relationship between network devices, and two network devices with a connection relationship are connected through optical fiber, and the two network devices with a connection relationship record the interface information of the connection port (including slot number and port number).

[0085] It can be understood that the detection device can pre-determine two ports with a connection relationship, namely the first port and the second port, and then determine the optical fiber connection detection result between the first port and the second port by obtaining the transmitted optical power of the first port and the received optical power of the second port for the two ports, thereby judging whether the optical fiber connection between the two devices is correct.

[0086] Table 1

[0087] Link Number First network device interface information Second network device interface information Link 1 NE A, slot 2, port 1 NE B, slot 2, port 2 Link 2 NE C, slot 1, port 1 NE D, slot 1, port 2 Link 3 NE E, slot 2, port 2 NE F, slot 2, port 2 Link 4 NE G, slot 1, port 1 NE H, slot 1, port 1 Link 5 NE I, slot 2, port 2 NE J, slot 2, port 1

[0088] S502: The detection device determines a fiber connection detection result according to a change in the transmitted optical power of the first port and a change in the received optical power of the second port.

[0089] The optical fiber connection detection result is used to indicate that the optical fiber connection between the first port and the second port is abnormal or that the optical fiber connection between the first port and the second port is normal.

[0090] In one possible implementation, the detection device can determine the optical fiber connection detection result based on the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port, and the similarity is used to indicate the degree of similarity between the change law of the transmitted optical power of the first port and the change law of the received optical power of the second port.

[0091] Optionally, the detection device may perform a timing correlation analysis on the transmitted optical power and the received optical power to determine whether the variation trends of the transmitted optical power and the received optical power are consistent, thereby determining the similarity between the transmitted optical power and the received optical power.

[0092] It should be noted that, since the received optical power of the network devices connected to the two ends of the same optical fiber will increase as the transmitted optical power increases, and the received optical power will decrease as the transmitted optical power decreases, when the variation trend of the transmitted optical power is increasing, the variation trend of the received optical power should also increase, and when the variation trend of the transmitted optical power is decreasing, the variation trend of the received optical power should also decrease. Thus, if the first port in the first network device is connected to the second port in the second network device through an optical fiber, the variation trend of the transmitted optical power of the first port and the variation trend of the received optical power of the second port are the same; if the first port in the first network device and the second port in the second network device are not connected through an optical fiber, the variation trend of the transmitted optical power of the first port and the variation trend of the received optical power of the second port are different.

[0093] For example, Figure 6 As shown, when the first port in the first network device is connected to the second port in the second network device through an optical fiber, the variation trend of the transmitted optical power and the received optical power is shown. It can be seen from the figure that when the optical fiber connection is correct, the variation trend of the transmitted optical power and the received optical power in the same time period is consistent. That is, when the value of the transmitted optical power increases, the value of the received optical power also increases, and when the value of the transmitted optical power decreases, the value of the received optical power also decreases.

[0094] For example, Figure 7 As shown, if the first port in the first network device and the second port in the second network device are not connected through optical fiber, that is, when the optical fiber connection is wrong, the change trend diagram of the transmitted optical power and the received optical power is as follows. It can be seen from the figure that when the value of the transmitted optical power increases, the value of the received optical power at the same time will decrease, and when the value of the transmitted optical power decreases, the value of the received optical power will increase. Therefore, it can be determined that the optical fiber connection between the first port in the first network device and the second port in the second network device is wrong.

[0095] It is understandable that the detection device can determine the fiber connection detection result by the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port to improve the accuracy of determining the similarity between the change of the transmitted optical power and the change of the received optical power.

[0096] In a possible implementation, the detection device may determine a similar proportion of a change rate of the transmitted optical power of the first port and a change rate of the received optical power of the second port in a first time period, where the change rates include: a positive change rate, a negative change rate and 0.

[0097] Further, the detection device determines the similarity according to a similarity ratio of a change rate of the transmitted optical power of the first port and a change rate of the received optical power of the second port.

[0098] It should be noted that, at the same time point, the value of the transmitted optical power and the value of the received optical power at both ends of the same optical fiber are not completely consistent, and there is a certain difference. However, when two network devices are connected through optical fiber, the similarity of the change between the transmitted optical power and the received optical power is relatively high. Therefore, the similarity between the change of the transmitted optical power and the change of the received optical power can be determined based on the similarity of the change rate of the transmitted optical power of the first port and the change rate of the received optical power of the second port within a certain period of time.

[0099] It can be understood that the detection device determines the similarity between the change in the transmitted optical power of the first port and the change in the received optical power of the second port based on the similarity ratio of the change rate of the transmitted optical power of the first port and the change rate of the received optical power of the second port, which can improve the accuracy of determining the similarity between the change in the transmitted optical power and the change in the received optical power.

[0100] A possible implementation method is to determine the optical fiber connection detection result based on the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port, which may specifically include: when the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is less than or equal to a preset similarity, determining that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is abnormal.

[0101] A possible implementation method is to determine the optical fiber connection detection result based on the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port, and specifically may also include: when the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is greater than a preset similarity, determining that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is normal.

[0102] Exemplary, combined Figure 7As shown, within a duration of 100 seconds, the rate of change of the transmitted optical power is a positive rate of change in the time periods from 0 to 10 seconds, from 30 to 60 seconds, from 10 to 80 seconds, and from 90 to 100 seconds, and the rate of change of the transmitted optical power is a negative rate of change in the time periods from 10 to 30 seconds, from 60 to 70 seconds, and from 80 to 90 seconds; the rate of change of the received optical power is a positive rate of change in the time periods from 0 to 20 seconds, from 40 to 60 seconds, and from 80 to 100 seconds, and the rate of change of the received optical power is a negative rate of change in the time periods from 20 to 40 seconds, and from 60 to 80 seconds. Therefore, the change rate of the transmitted optical power and the change rate of the received optical power are different between the 10th second to the 20th second, the 30th second to the 40th second, and the 70th second to the 90th second. The similarity ratio of the change rate of the transmitted optical power and the change rate of the received optical power is 60%. It can be determined that the similarity between the change in the transmitted optical power and the change in the received optical power is 60%. If the preset similarity is set to 90%, it can be determined that the optical fiber connection is wrong.

[0103] It can be understood that the detection device can determine the optical fiber connection detection result based on the size relationship between the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port and the preset similarity, thereby improving the accuracy of determining the optical fiber connection detection result.

[0104] The embodiment of the present application proposes a method for actively checking whether the optical fiber connection is wrong, which can automatically monitor the connection relationship of the optical fiber online, and report the error information once a connection error occurs. The optical fiber connection relationship check no longer relies on manual experience, and the implementation cost is low. A method for judging whether the optical fiber connection relationship is correct by using the timing data of the optical module sending optical power and the optical module receiving optical power. When checking whether the optical fiber in the physical link is connected incorrectly, the detection device can determine the similarity between the change of the sent optical power and the change of the received optical power by performing timing correlation analysis and processing on the sent optical power and the received optical power. Since the optical fiber connected between the first port in the first network device and the second port in the second network device is correct, the similarity between the change of the sent optical power and the change of the received optical power is high. Therefore, when it is determined that the similarity between the change of the sent optical power and the change of the received optical power is less than the preset similarity, it can be determined that the first port and the second port are not connected through the optical fiber. Compared with the prior art, there is no need to agree on a communication protocol to send interface information to each other and parse between the two network devices; and there is no need to rely on manual processing experience to identify optical fiber connection errors, and there is no hysteresis. Therefore, the technical solution of the present application can improve the efficiency of determining whether the optical fiber connection between two devices is correct.

[0105] It can be understood that when checking whether the optical fiber connection between devices in the physical link is correct, the detection device can obtain the transmission optical power of the first port in the first network device and the reception optical power of the second port in the second network device in two network devices with a connection relationship. Since the first port and the second port need to be connected through an optical fiber, the detection device can determine the optical fiber connection detection result according to the change of the transmission optical power of the first port and the change of the reception optical power of the second port. Since the optical fiber connection between the first port in the first network device and the second port in the second network device is correct, the change of the transmission optical power of the first port and the change of the reception optical power of the second port are similar. Therefore, the optical fiber connection detection result can indicate that the optical fiber connection between the first port and the second port is abnormal or the optical fiber connection between the first port and the second port is normal. Compared with the prior art, the detection device can automatically detect whether the optical fiber connection between devices in the physical link is correct, without relying on manual processing experience to manually judge whether the optical fiber connection is correct by plugging and unplugging the optical fiber connected between the two devices when there is a problem with the business, and there is no hysteresis. Therefore, the present application can improve the efficiency of judging whether the optical fiber connection between the two devices is correct.

[0106] In a possible implementation, the detection device may also determine the location point of the optical fiber connection abnormality based on the optical dialing test result of the first network device and the optical dialing test result of the second network device.

[0107] Optionally, after the detection device determines that the first port of the first network device and the second port of the second network device are not connected via optical fiber, the detection device may further trigger optical dialing (e.g., OTDR optical dialing) between the first port of the first network device and the second port of the second network device to obtain a dialing result, so as to determine the location point of the optical fiber connection error between the first port and the second port based on the obtained dialing result.

[0108] The dial test result may include a first dial test result and a second dial test result. The first dial test result includes a dial test result obtained by performing an optical dial test on the first port, and the second dial test result includes a dial test result obtained by performing an optical dial test on the second port.

[0109] It should be noted that multiple first relay devices may be included between the first port and the second port, and two adjacent devices (which may be a first network device including the first port, a second network device including the second port, or any two devices among multiple first relay devices) may be connected through multiple sections of first optical fibers. The first dialing result is used to indicate the length of multiple sections of first optical fibers passing from the first port to the second port, the identifiers of multiple first relay devices, and the arrangement order of multiple sections of first optical fibers and multiple first relay devices; multiple second relay devices may be included between the second port and the first port, and two adjacent devices (which may be a first network device including the first port, a second network device including the second port, or any two devices among multiple second relay devices) may be connected through multiple sections of second optical fibers. The second dialing result is used to indicate the length of multiple sections of second optical fibers passing from the second port to the first port, the identifiers of multiple second relay devices, and the arrangement order of multiple sections of second optical fibers and multiple second relay devices. The relay device is a device that does not include an optical module, such as an optical cross box, a joint box, and other devices. Among them, the first optical fiber and the second optical fiber may be the same optical fiber or different optical fibers; the first relay device and the second relay device may be the same relay device or different relay devices.

[0110] It should be noted that if the first port of the first network device and the second port of the second network device are connected via an optical fiber, the optical path passed through is the same when the optical fiber is illuminated and dialed from both ends, and the optical fiber length and the relay equipment passed through should be consistent, so the illumination results at both ends should be mirror-symmetrical. If the optical fiber connection is wrong, the dialing results at both ends will be asymmetric, so the location of the optical fiber connection error can be determined based on the asymmetric state.

[0111] Exemplarily, the detection device triggers the first port to perform optical dialing test, and the first dialing test result obtained is: first port-50 meters of optical fiber-first optical cross-box-150 optical fibers-first junction box-80 meters of optical fiber-second port; the detection device triggers the second port to perform optical dialing test, and the second dialing test result obtained is: second port-80 meters of optical fiber-first junction box-150 optical fibers-second optical cross-box-100 meters of optical fiber-first junction box-50 meters of optical fiber-first port. When the optical fiber connection between the first port and the second port is correct, the second dialing test result should be mirror-symmetrical with the first dialing test result, that is, the second dialing test result should be: second port-80 meters of optical fiber-first junction box-150 optical fibers-first optical cross-box-50 meters of optical fiber-first port. However, the actual second dialing test result is not like this, so it can be seen that the optical fiber between the first port and the second port is incorrectly connected at the second optical cross-box.

[0112] In a possible implementation, the detection device can also display the location point where the optical fiber connection is abnormal.

[0113] Furthermore, the detection device may display on the screen the location information of the location point where the optical fiber connection error occurs between the first port and the second port.

[0114] In one possible implementation method, the detection device can send the location information of the location point of the optical fiber connection error to the network management system through the southbound interface, so that it can be displayed on the screen of the detection device through the network management system; or, the detection device can send the location information of the location point of the optical fiber connection error to a third-party application system through the northbound interface, so that it can be displayed on the screen of the detection device through the third-party application system.

[0115] It should be noted that the southbound interface is specifically used to realize data interaction between the detection equipment and the network management system, and the northbound interface is specifically used to realize data interaction between the detection equipment and the third-party application system.

[0116] It is understandable that the detection device can analyze and determine the location point of the abnormal fiber optic connection based on the lighting and dialing test results of the first network device and the lighting and dialing test results of the second network device, and can display the location point of the abnormal fiber optic connection on the front end of the detection device in a variety of ways for the operation and maintenance personnel to view, thereby accurately determining the location point of the abnormal fiber optic connection, allowing the operation and maintenance personnel to quickly resolve the abnormal fiber optic connection problem.

[0117] The method for detecting optical fiber connection provided in the embodiment of the present application can also be applied to other technical fields, such as data communication, optical transport network (OTN), passive optical network (PON), and wireless, which can use this technology to determine the connection relationship of optical fibers. According to the optical power change trend of network equipment, the impact of the fault is analyzed, the cause of the fault is confirmed, and automatic fiber connection discovery is performed according to the optical power change trend, thereby improving the efficiency of network restoration.

[0118] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the detection device. It is understandable that, in order to realize the above functions, the detection device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the method steps of detecting optical fiber connection in each example described in the embodiment disclosed in the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or detection device software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0119] The embodiment of the present application can divide the detection device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0120] Please refer to Figure 8 , which shows a schematic diagram of a detection device provided in an embodiment of the present application. The detection device may be a functional module in the above-mentioned detection device for implementing the method of the embodiment of the present application. Figure 8 As shown, the detection device 800 may include: a communication module 801 and a processing module 802 .

[0121] The communication module 801 is used for the detection device to execute: obtaining the transmission optical power of the first port in the first network device and the reception optical power of the second port in the second network device. For example, the communication module 801 is used to support the detection device to execute S501 in the above method embodiment, and / or other processes for the technology described herein.

[0122] The processing module 802 is used for the detection device to execute: determining the optical fiber connection detection result according to the change of the transmitted optical power of the first port and the change of the received optical power of the second port. For example, the processing module 802 is used to support the detection device to execute S502 in the above method embodiment, and / or other processes of the technology described herein.

[0123] Some other embodiments of the present application provide a detection device. The detection device may include: a memory and one or more processors. The memory and the processor are coupled. The detection device may also include a camera. Alternatively, the detection device may be connected to an external camera. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the detection device may execute the various functions or steps executed by the mobile phone in the above method embodiment.

[0124] The present application also provides a detection device 900, such as Fig. 9As shown, the detection device 900 includes at least one processor 901 and at least one interface circuit 902. The processor 901 and the interface circuit 902 can be interconnected through a line. For example, the interface circuit 902 can be used to receive signals from other devices (such as a memory of the detection device). For another example, the interface circuit 902 can be used to send signals to other devices (such as the processor 901). Exemplarily, the interface circuit 902 can read the instructions stored in the memory and send the instructions to the processor 901. When the instructions are executed by the processor 901, the detection device can execute the various steps in the above embodiments. Of course, the detection system can also include other discrete devices, and the embodiments of the present application are not specifically limited to this.

[0125] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned detection device, the detection device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.

[0126] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the mobile phone in the above method embodiment.

[0127] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0128] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0131] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0132] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for detecting optical fiber connection, characterized in that: Applied to detection equipment, the method comprises: Acquire a transmit optical power of a first port in a first network device and a receive optical power of a second port in a second network device; A fiber optic connection detection result is determined based on changes in the transmitted optical power of the first port and changes in the received optical power of the second port, and the fiber optic connection detection result is used to indicate that the fiber optic connection between the first port and the second port is abnormal or that the fiber optic connection between the first port and the second port is normal.

2. The method according to claim 1, characterized in that: The determining the optical fiber connection detection result according to the change of the transmitted optical power of the first port and the change of the received optical power of the second port comprises: The optical fiber connection detection result is determined based on the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port, and the similarity is used to indicate the degree of similarity between the change law of the transmitted optical power of the first port and the change law of the received optical power of the second port.

3. The method according to claim 2, characterized in that The method further comprises: Determine a similarity ratio of a change rate of the transmitted optical power of the first port and a change rate of the received optical power of the second port within a first time period; The similarity is determined according to a similarity ratio between a change rate of the transmitted optical power of the first port and a change rate of the received optical power of the second port.

4. The method according to claim 2 or 3, characterized in that: Determining the optical fiber connection detection result according to the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port includes: When the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is less than or equal to a preset similarity, it is determined that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is abnormal.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The location point of the optical fiber connection abnormality is determined according to the optical dialing test result of the first network device and the optical dialing test result of the second network device.

6. The method according to claim 5, characterized in that The method further comprises: Displays the location point where the optical fiber connection is abnormal.

7. The method according to claim 2 or 3, characterized in that: Determining the optical fiber connection detection result according to the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port includes: When the similarity between the change of the transmitted optical power of the first port and the change of the received optical power of the second port is greater than a preset similarity, it is determined that the optical fiber connection detection result indicates that the optical fiber connection between the first port and the second port is normal.

8. The method according to any one of claims 1 to 7, characterized in that The obtaining of the transmitted optical power of the first port in the first network device and the received optical power of the second port in the second network device includes: The first port and the second port having a connection relationship are determined according to a target link relationship table, and the transmitting optical power of the first port in the first network device and the receiving optical power of the second port in the second network device are obtained, wherein the target link relationship table includes connection relationships between multiple ports.

9. A detection device, characterized in that: The detection device comprises: A communication module, used to obtain a transmission optical power of a first port in a first network device and a reception optical power of a second port in a second network device; A processing module is used to determine a fiber connection detection result according to a change in the transmitted optical power of the first port and a change in the received optical power of the second port, wherein the fiber connection detection result is used to indicate that the fiber connection between the first port and the second port is abnormal or that the fiber connection between the first port and the second port is normal.

10. A detection device, characterized in that: The detection device includes a memory and a processor, the memory is coupled to the processor; the memory is used to store computer program code, the computer program code includes computer instructions; when the computer instructions are executed by the processor, the detection device executes the method as described in any one of claims 1-8.

11. A detection system, characterized in that: The detection system is applied to a detection device and multiple network devices, the multiple network devices are connected via optical fibers, and the detection device is used to execute the method described in any one of claims 1-8 to detect the optical fiber connection between the multiple network devices.