Optical fiber connection discovery method, electronic device, and computer-readable storage medium
By shutting down all lasers and turning on the target laser during the fiber optic connection discovery process, and combining the WSS configuration status and port light detection results, the fiber optic connection location is automatically determined. This solves the problem of high maintenance pressure caused by relying on manual fiber optic connections and achieves fast and accurate automatic fiber optic discovery.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2021-06-23
- Publication Date
- 2026-07-21
AI Technical Summary
In existing technologies, fiber optic connection discovery relies on manual fiber connection, resulting in high maintenance pressure and costs, and making it impossible to achieve automatic discovery during the networking process of optical transport networks.
By shutting down all lasers in the network element to be processed and turning on a target laser, the fiber optic connection location is automatically determined by combining the configuration status of the wavelength selective switch (WSS) and the optical detection results of the port.
It enables rapid and accurate automatic discovery of fiber optic connections, reducing maintenance pressure and costs, and improving maintenance efficiency and accuracy.
Smart Images

Figure CN115515031B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technology, and in particular to a fiber optic connection discovery method, an electronic device, and a computer-readable storage medium. Background Technology
[0002] Optical Transport Network (OTN) technology is a novel optical transmission technology that combines the advantages of Synchronous Digital Hierarchy (SDH) and Wavelength Division Multiplexing (WDM) technologies with those of large network capacity and robust management mechanisms. Reconfigurable Optical Add / Drop Multiplexer (ROADM) networking technology, based on Wavelength Selective Switches (WSS), enables flexible optical switching across arbitrary wavelengths and directions. ROADM networking technology has become a key development direction for OTN networking.
[0003] However, most related technologies use the method of sending and receiving specific messages between ports and automatically discovering fiber optic connections by identifying fields in specific locations within the messages. But in actual networking, service units that send and receive specific messages need to be connected to the fiber before they can access the network. This makes it impossible to send specific messages between ports, and thus impossible to achieve automatic fiber discovery. This means that manual fiber connection is the only option. However, optical transport networks are large in scale, have high maintenance pressure, and high maintenance costs. Summary of the Invention
[0004] The main objective of this application is to provide a fiber optic discovery method, electronic device, and computer-readable storage medium. The aim is to quickly and accurately discover the physical fiber optic connection locations of network elements, significantly alleviating maintenance pressure, reducing maintenance costs, and improving maintenance efficiency.
[0005] To achieve the above objectives, this application provides an optical fiber connection discovery method, characterized by comprising: turning off each laser in the network element to be processed; turning on a target laser; and determining the connection position of the optical fiber of the target laser in the optical signal propagation direction based on the configuration status of each wavelength selection switch (WSS) of the network element to be processed and the optical detection results of each port of the network element to be processed.
[0006] To achieve the above objectives, embodiments of this application also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the above-described fiber optic connection discovery method.
[0007] To achieve the above objectives, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the aforementioned fiber optic connection discovery method.
[0008] The fiber optic discovery method, electronic device, and computer-readable storage medium proposed in this application disable all lasers in the network element to be processed, enable a target laser, and determine the connection position of the target laser in the optical fiber in the direction of optical signal propagation based on the configuration status of the wavelength selection switches (WSS) of each network element to be processed and the optical detection results of each port of the network element to be processed. Considering that in actual network deployment, service units that send and receive specific messages need to be connected to the network before they can access the network, this prevents ports from sending specific messages and makes automatic fiber discovery impossible. This necessitates manual determination of fiber connection locations, leading to significant maintenance pressure and costs. This invention addresses this by automatically activating a target laser and considering the configuration status of each WSS within the network element and the optical detection results of each port. This allows for rapid and accurate discovery of the fiber connection location of the target laser in the direction of optical signal propagation, thus automatically identifying the physical fiber connections of the entire network element. This significantly alleviates maintenance pressure, reduces costs, and improves efficiency. Furthermore, by shutting down all lasers in the network element before fiber connection discovery and activating only one target laser at a time, the invention avoids the presence of multiple light sources within the network element during fiber connection discovery, further enhancing accuracy. Attached Figure Description
[0009] Figure 1 This is a schematic diagram of a ROADM networking method;
[0010] Figure 2 This is a flowchart of a fiber optic connection discovery method according to an embodiment of the present invention;
[0011] Figure 3 This is a flowchart illustrating the determination of the connection position of the optical fiber in the direction of optical signal propagation of the OBA according to another embodiment of the present invention;
[0012] Figure 4 This is a schematic diagram of an optical fiber connection location provided in another embodiment of the present invention;
[0013] Figure 5 This is a schematic diagram of yet another optical fiber connection location provided in another embodiment of the present invention;
[0014] Figure 6 This is a flowchart illustrating the determination of the connection position of the optical fiber in the optical signal propagation direction of the OPA according to another embodiment of the present invention;
[0015] Figure 7 This is a flowchart illustrating the determination of the optical fiber connection position of the OTU in the direction of optical signal propagation according to another embodiment of the present invention;
[0016] Figure 8 This is a schematic diagram of the structure of an electronic device according to another embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the various embodiments of this application to help readers better understand this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for the convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined with and referenced by each other without contradiction.
[0018] To facilitate understanding of the embodiments of the present invention, several concepts introduced in the embodiments of the present invention will be introduced first.
[0019] OTN: OTN is a transport network based on wavelength division multiplexing (WDM) technology and organized at the optical layer. It is the next-generation backbone transport network. OTN is a new generation of "digital transport system" and "optical transport system" standardized by a series of protocols from the International Telecommunication Union Telecommunication Standardization Sector (ITU-T), such as G.872, G.709, and G.798. OTN technology will solve the problems of traditional WDM networks, such as the lack of wavelength / sub-wavelength service scheduling capabilities, weak networking capabilities, and weak protection capabilities.
[0020] ROADM networking technology based on WSS: ROADM networking technology based on WSS can realize flexible optical switching of arbitrary wavelengths and directions. This technology has become a key development direction for wavelength division multiplexing networks and is gradually replacing fixed optical add / drop multiplexer (FOADM) networking technology based on power distribution units (PDUs) and optical multiplex units (OMUs). Utilizing multidimensional WSS, ROADM can realize functions such as add / drop and pass-through of optical signals in multiple directions. Figure 1 This is a schematic diagram of a common ROADM networking method. This network uses 12 WSSs to achieve interconnection between any two of the two uplink / downlink directions and four line directions.
[0021] One embodiment of the present invention relates to a fiber optic connection discovery method applied to an electronic device, wherein the electronic device can be a terminal or a server. In this embodiment and the following embodiments, the electronic device is described using a server as an example. The implementation details of the fiber optic connection discovery method of this embodiment are described below. The following content is only for ease of understanding and is not essential for implementing this solution.
[0022] The specific process of the fiber optic connection discovery method in this embodiment can be described as follows: Figure 2 As shown, it includes:
[0023] Step 101: Turn off all lasers in the network element to be processed.
[0024] Specifically, when the server is discovering fiber optic connections, it can first turn off all lasers in the network element to be processed to ensure that there are no optical signals in the network element to be processed. This can avoid the situation where there are multiple light sources in the network element to be processed during the fiber optic connection discovery process, thus improving the accuracy of fiber optic connection discovery.
[0025] Step 102: Activate a target laser.
[0026] Specifically, when the server discovers the fiber optic connection of a network element to be processed, it can first identify the target laser among the lasers of the network element and activate one of them. The lasers of the network element to be processed include an Optical Booster Amplifier (OBA), an Optical Parametric Amplifier (OPA), and an Optical Transform Unit (OTU).
[0027] In the specific implementation, the server activates only one target laser from the network element being processed at a time. Considering that multiple lasers exist within the network element being processed, and that the light propagation paths of some lasers overlap, such as... Figure 1 As shown, if all WSSs are on, the optical signals emitted by the OBA in the uplink / downlink direction 1 and the optical signals emitted by the OBA in the uplink / downlink direction 2 can propagate to the WSS connected to the OBA in line direction 2. If multiple target lasers are turned on at the same time, there will be multiple light sources in the network element to be processed, and the optical signals in the network element to be processed will be chaotic, making it impossible to accurately discover the fiber connection location. However, the embodiment of the present invention turns on only one laser at a time until all fiber connection locations are discovered, which can further avoid the situation where there are multiple light sources in the network element to be processed during the fiber connection discovery process, and improve the accuracy of fiber connection discovery.
[0028] In one example, the server can obtain specified information input by the user and determine the target laser in the network element to be processed based on the specified information.
[0029] In another example, the server can pre-store target laser selection rules, and according to the selected rules, the lasers in the network elements to be processed are selected as target lasers in turn.
[0030] In one example, the server can iterate through each laser in the network element to be processed and sequentially designate each laser as the target laser. For instance, the server can number each laser in the network element to be processed and sequentially designate each laser as the target laser according to the numbering order.
[0031] In another example, the server can classify the lasers in the network element to be processed, traverse all lasers in each category, and sequentially designate each laser as the target laser. For example, if the network element to be processed includes three types of lasers: OBA, OPA, and OTU, the server can first designate each OBA as the target laser in sequence, then each OPA as the target laser in sequence, and finally each OTU as the target laser in sequence. The order of the three types of lasers (OBA, OPA, and OTU) can be set by those skilled in the art according to actual needs, and the embodiments of the present invention do not specifically limit this.
[0032] Step 103: Based on the configuration status of the wavelength selection switches (WSS) of each network element to be processed and the optical detection results of each port of the network element to be processed, determine the connection position of the optical fiber of the target laser in the direction of optical signal propagation.
[0033] Specifically, after the server activates the target laser, it can determine the fiber optic connection location of the target laser in the direction of optical signal propagation based on the configuration status of each WSS in the network element and the optical detection results of each port in the network element. Considering that in actual networking, the fiber optic connection location can only be determined manually, resulting in high maintenance pressure and costs, this embodiment of the invention automatically activates the laser and comprehensively considers the configuration status of each WSS in the network element and the optical detection results of each port in the network element. This allows for the rapid and accurate automatic discovery of the fiber optic connection location of the target laser in the direction of optical signal propagation, thereby automatically discovering the physical fiber optic connection locations of the entire network element. This greatly alleviates maintenance pressure, reduces maintenance costs, and improves maintenance efficiency.
[0034] In practice, the configuration states of WSS include empty state and cross configuration state. A WSS with an empty configuration state is a non-connected WSS, and a WSS with a cross configuration state is a connected WSS.
[0035] In practice, after determining the connection position of the optical fiber of the target laser in the direction of optical signal propagation, the server can turn off the target laser, turn on the next target laser, determine the connection position of the optical fiber of the next target laser in the direction of optical signal propagation, and so on, until the connection positions of all optical fibers in the network element to be processed are found.
[0036] In this embodiment, all lasers in the network element to be processed are turned off, and one target laser is turned on. Based on the configuration status of the wavelength selection switches (WSS) of each network element to be processed and the optical detection results of each port of the network element to be processed, the connection position of the optical fiber of the target laser in the direction of optical signal propagation is determined. Considering that in the actual networking process, service units that send and receive specific messages need to be connected to the network after the fiber is connected, this makes it impossible for ports to send specific messages, and thus it is impossible to achieve automatic fiber discovery. This means that the fiber connection position can only be determined manually, resulting in a large maintenance burden and high maintenance cost. This embodiment of the invention automatically turns on one target laser and comprehensively considers the configuration status of each WSS in the network element and the optical detection results of each port in the network element to quickly and accurately discover the connection position of the target laser in the direction of optical signal propagation. This automatically discovers the physical fiber connection positions of the entire network element, greatly alleviating the maintenance burden, reducing maintenance costs, and improving maintenance efficiency. At the same time, turning on only one target laser at a time can also avoid the situation where there are multiple light sources in the network element to be processed during the fiber connection discovery process, improving the accuracy of fiber connection discovery.
[0037] In one embodiment, the target laser is an OBA, and the connection position of the optical fiber to the OBA in the direction of optical signal propagation can be determined by, for example... Figure 3 The implementation of each sub-step shown includes:
[0038] Step 201: Set the configuration status of each WSS of the network element to be processed to empty.
[0039] Specifically, after the server determines that the target laser is an OBA, it can set the configuration status of each WSS of the network element to be processed to empty, that is, ensure that each WSS of the network element to be processed is not turned on, and ensure that the optical signal is not transmitted to the single boards in other directions.
[0040] Step 202: Turn off all lasers in the network element to be processed and turn on OBA.
[0041] In practice, after the server sets the configuration status of each WSS of the network element to be processed to empty, it can turn off each laser in the network element to be processed and turn on a target laser, that is, turn on the OBA, so that the optical signal of the OBA can be transmitted out.
[0042] In one example, the server can first shut down each laser in the network element to be processed, and then set the configuration status of each WSS in the network element to be processed to empty.
[0043] Step 203: Determine if any WSS group port detects light. If yes, proceed to step 204; otherwise, proceed to step 212.
[0044] Specifically, after the server enables OBA, it can obtain the light detection results of each WSS and determine whether any WSS group port has detected light.
[0045] In the specific implementation, because the server sets the configuration status of each WSS to empty in step 201, communication between directions is not possible. Figure 4 As shown, if the physical fiber connections are correct, it is only possible that all WSSs will not detect light, or only the WSSs connected to the group port and the OBA will be able to detect light on their own group port.
[0046] Step 204: Determine if only one WSS group port detects light. If yes, proceed to step 205; otherwise, end the process.
[0047] In the actual implementation, after the server determines that a WSS group port has detected light, it can continue to determine whether only one WSS group port has detected light. If only one WSS group port has detected light, it means that the physical fiber connection is correct, and the fiber connection discovery process continues. If multiple WSS group ports have detected light, it means that the physical fiber connection is incorrect, and the fiber connection location cannot be correctly discovered. The server can directly exit the fiber connection discovery process.
[0048] In one example, if multiple WSS group ports detect light, the server can generate a physical fiber connection error indication, informing staff to modify the physical fiber connection or re-establish the physical fiber connection.
[0049] Step 205: Determine that the OBA is the uplink / downlink OBA, and record the optical fiber between the WSS of the light detected by the group port and the uplink / downlink OBA as the first position optical fiber.
[0050] In specific implementations, such as Figure 4 As shown, when the server enables the OBA, it cannot determine whether the OBA is an uplink / downlink OBA or a line-direction OBA. If the server enables the OBA and finds that only one WSS group port detects light, it can determine that the enabled OBA is an uplink / downlink OBA, and record the fiber between the WSS that detected light at the group port and the uplink / downlink OBA as the first position fiber.
[0051] In one example, such as Figure 5 As shown, both fiber a1 and fiber a2 are first-position fibers.
[0052] Step 206: Set the configuration status of the WSS detected by the group port to cross-connect configuration.
[0053] In the specific implementation, the configuration state of the WSS (Wireless Shielding System) detected by the group port is set to cross-configuration, that is, the WSS is cross-configured to each branch port, and the WSS is turned on. After the server determines that the OBA (Optical Base Adapter) is the uplink / downlink OBA and records the fiber between the WSS detected by the group port and the uplink / downlink OBA as the first position fiber, it can set the configuration state of the WSS detected by the group port to cross-configuration, that is, turn on the WSS, ensuring that the optical signal of the uplink / downlink OBA is transmitted to each line direction of the network element to be processed.
[0054] In one example, such as Figure 4 As shown, the first fiber optic cable has been determined, and the server then sets the configuration status of the WSS connected to the first fiber optic cable to cross configuration.
[0055] Step 207: Obtain the optical detection results for each port again.
[0056] In the specific implementation, after the server sets the configuration status of the WSS that detects light on the group port to cross-configuration, it can obtain the light detection results of each port again to determine the transmission direction of the uplink and downlink OBA optical signals. Each port includes the tributary port of each WSS.
[0057] Step 208: If a branch port of a WSS other than the one that detected light at the group port detects light detects light detects light detects light, then the optical fiber between the WSS that detected light at the branch port and the WSS that detected light at the group port is recorded as the second position optical fiber.
[0058] In specific implementations, such as Figure 4 As shown, after the server reacquires the optical detection results of each port, if it detects that a branch port of a WSS other than the one detected by the group port has detected light, then the optical fiber between the WSS detected by the branch port and the WSS detected by the group port is recorded as the second location fiber. Once the WSS detected by the group port is turned on, its branch port will inevitably detect light; the server does not need to consider this WSS, but only whether other WSSs have detected light.
[0059] In one example, such as Figure 5 As shown, fiber optic cables b1, b2, b3, b4, and b5 are all secondary fiber optic cables. The server can further subdivide the secondary fiber optic cables according to the labels of each WSS.
[0060] Step 209: Set the configuration status of the WSS that detects light at the tributary port to cross configuration.
[0061] In the specific implementation, the configuration state of the WSS that detects light at the tributary port is set to cross-configuration, i.e., the WSS is turned on. After the server records the optical fiber between the WSS that detects light at the tributary port and the WSS that detects light at the group port as the second location fiber, it can set the configuration state of the WSS that detects light at the tributary port to cross-configuration, ensuring that the optical signals of the OBA in the uplink and downlink directions are transmitted to each line direction of the network element to be processed.
[0062] Step 210: Obtain the optical detection results of each OBA of the network element to be processed, excluding the enabled OBA.
[0063] Specifically, after the server sets the WSS configuration status of the light detected by the tributary port to cross-configuration, it can obtain the optical detection results of each OBA of the network element to be processed, except for the enabled OBA, so as to determine whether the uplink and downlink OBA optical signals are transmitted to the line direction.
[0064] Step 211: If light is detected by an OBA other than the active OBA, the fiber optic cable between the OBA that detected the light and the WSS that detected the light at the tributary port is recorded as the third position fiber optic cable.
[0065] In specific implementations, such as Figure 4As shown, after the server obtains the optical detection results of each OBA (excluding the enabled OBA) of the network element to be processed, if it detects light from an OBA other than the enabled OBA, it records the optical fiber between the OBA that detected the light and the WSS that detected the light at the tributary port as the third position optical fiber.
[0066] In one example, such as Figure 5 As shown, fiber optic cables C1, C2, C3, and C4 are all third-position fibers.
[0067] Step 212: Determine the OBA as the line direction OBA.
[0068] In practical implementation, if the server determines that no light is detected at the group port of each WSS in the network element to be processed, it means that there is no optical signal transmission within the network element to be processed. In this case, the OBA activated by the server is the line-direction OBA. After determining the location of all fiber optic connections within the network element to be processed, the server can also determine that the downstream fiber of the line-direction OBA is the fiber between network elements.
[0069] This embodiment can automatically distinguish between line-direction OBAs and up / down direction OBAs, effectively improving the efficiency and accuracy of the connection position of the optical fiber in the optical signal propagation direction of the OBA.
[0070] In one embodiment, the target laser is an OPA, and the connection position of the optical fiber to the OPA in the direction of optical signal propagation can be determined by, for example... Figure 6 The implementation of each sub-step shown includes:
[0071] Step 301: Set the configuration status of each WSS of the network element to be processed to empty.
[0072] Specifically, after the server determines that the target laser is an OPA, it can set the configuration status of each WSS of the network element to be processed to empty, that is, ensure that each WSS of the network element to be processed is not turned on, and ensure that the optical signal is not transmitted to the single boards in other directions.
[0073] Step 302: Turn off all lasers in the network element to be processed and turn on OPA.
[0074] In practice, after the server sets the configuration status of each WSS of the network element to be processed to empty, it can turn off each laser in the network element to be processed and turn on a target laser, that is, turn on the OPA, so that the optical signal of the OPA can be transmitted out.
[0075] In one example, the server can first shut down each laser in the network element to be processed, and then set the configuration status of each WSS in the network element to be processed to empty.
[0076] Step 303: Determine whether there is one and only one WSS group port that has detected light. If so, proceed to step 304; otherwise, end the process directly.
[0077] Specifically, after enabling OPA, the server can determine whether there is one and only one WSS group port that has detected light.
[0078] In the specific implementation, since the server sets the configuration status of each WSS to empty in step 301, communication between directions is not possible. Figure 4 As shown, if the physical fiber connection is correct, only the WSS connected to the group port and the OPA can detect light at its own group port.
[0079] Step 304: Set the configuration status of the WSS detected by the group port to cross-connect configuration.
[0080] Specifically, after determining that only one WSS group port has detected light, the server can set the configuration status of the WSS that detected light on the group port to cross-configuration, ensuring that the optical signal of the enabled OPA can be transmitted to each direction of the network element to be processed.
[0081] In one example, if the server determines that no light is detected on the group ports of all WSSs, or that no light is detected on the group ports of more than one WSS, it indicates a physical fiber connection error, and the server can exit the fiber connection discovery process.
[0082] Step 305: Obtain the optical detection results of each optical conversion unit (OTU) of the network element to be processed.
[0083] In the specific implementation, after the server sets the configuration status of the WSS detected by the group port to cross-configuration, it can obtain the optical detection results of each optical conversion unit (OTU) of the network element to be processed, so as to determine whether the enabled OPA is the uplink / downlink OPA or the line-direction OPA.
[0084] Step 306: Determine if any OTU detects light. If yes, proceed to step 312; otherwise, proceed to step 307.
[0085] Specifically, after obtaining the optical detection results of each optical conversion unit (OTU) of the network element to be processed, the server can determine whether any OTU has detected light.
[0086] Step 307: Determine the OPA as the line direction OPA, and record the optical fiber between the line direction OPA and the WSS that detected the light at the group port as the fourth position optical fiber.
[0087] In specific implementations, such as Figure 4As shown, if the server determines that no OTU has detected light, it determines that the enabled OPA is the line direction OPA, and records the fiber between the line direction OPA and the WSS that detected light at the group port as the fourth position fiber.
[0088] In one example, such as Figure 5 As shown, fiber d1, fiber d2, fiber d3, and fiber d4 are all fourth-position fibers.
[0089] Step 308: Obtain the optical detection results for each port again.
[0090] In the specific implementation, the server determines the OPA to be the line-direction OPA, and records the fiber between the line-direction OPA and the WSS where the light is detected at the group port as the fourth position fiber. Then, the server can again acquire the light detection results of each port to clarify the transmission direction of the line-direction OPA optical signal. Each port includes the tributary ports of each WSS.
[0091] Step 309: If a branch port of a WSS other than the one that detected light at the group port detects light detects light detects light detects light, then the optical fiber between the WSS that detected light at the branch port and the WSS that detected light at the group port is recorded as the sixth position optical fiber.
[0092] In specific implementations, such as Figure 4 As shown, after the server reacquires the optical detection results of each port, if it detects that a branch port of a WSS other than the one detected by the group port has detected light, then the fiber between the WSS detected by the branch port and the WSS detected by the group port is recorded as the sixth fiber. Once the WSS detected by the group port is turned on, its branch port will inevitably detect light; the server does not need to consider this WSS, but only whether other WSSs have detected light.
[0093] In one example, such as Figure 5 As shown, e1, e2, e3, e4, and e5 fibers are all sixth-position fibers. The server can further subdivide the sixth-position fibers according to the labels of each WSS.
[0094] Step 310: Obtain the optical detection results of each OPA of the network element to be processed, excluding the enabled OPA.
[0095] Specifically, after the server records the optical fiber between the WSS detected by the tributary port and the WSS detected by the group port as the sixth position optical fiber, it can obtain the optical detection results of each OPA of the network element to be processed, except for the enabled OPA, so as to determine whether the line OPA optical signal is transmitted to the uplink or downlink direction.
[0096] Step 311: If light is detected by an OPA other than the activated OPA, the optical fiber between the OPA that detected light and the WSS that detected light at the tributary port is recorded as the seventh position optical fiber.
[0097] In specific implementations, such as Figure 4 As shown, after the server obtains the optical detection results of each OPA (excluding the enabled OPA) of the network element to be processed, if it detects that an OPA other than the enabled OPA has detected light, the optical fiber between the OPA that detected light and the WSS that detected light at the tributary port is recorded as the seventh position optical fiber.
[0098] In one example, such as Figure 5 As shown, both f1 and f2 fibers are seventh-position fibers.
[0099] Step 312: Determine if only one OTU detects light. If so, proceed to step 313; otherwise, terminate the process directly.
[0100] Specifically, after determining that an OTU has detected light, the server can further determine whether only one OTU has detected light. If only one OTU has detected light, it means that the physical fiber connection is correct, and the fiber connection discovery process continues. If multiple OTUs have detected light, it means that the physical fiber connection is incorrect, and the server cannot continue to correctly discover the fiber connection location. The server can then directly exit the fiber connection discovery process.
[0101] Step 313: Determine the OPA as the uplink / downlink direction OPA, and record the fiber between the uplink / downlink direction OPA and the WSS that detected the light at the group port as the fifth position fiber.
[0102] In specific implementations, such as Figure 4 As shown, when the server enables OPA, it cannot determine whether the OPA is an uplink / downlink OPA or a line-direction OPA. If the server enables OPA and finds that only one OTU detects light, it can determine that the enabled OPA is an uplink / downlink OPA, and record the fiber between the WSS that detected light at the group port and the uplink / downlink OPA as the fifth fiber.
[0103] In one example, such as Figure 5 As shown, both g1 and g2 fibers are fifth-position fibers.
[0104] Step 314: Record the optical fiber between the OTU that detected the light and the WSS that detected the light at the group port as the eighth position optical fiber.
[0105] Specifically, after the server determines that the OPA is an uplink / downlink OPA and records the fiber between the uplink / downlink OPA and the WSS that detects light at the group port as the fifth fiber, it can also record the fiber between the OTU that detects light and the WSS that detects light at the group port as the eighth fiber.
[0106] In one example, such as Figure 5 As shown, both h1 and h2 fibers are eighth position fibers.
[0107] In this embodiment, the line-direction OPA and the up-line direction OPA can be automatically distinguished, which can effectively improve the efficiency and accuracy of the connection position of the optical fiber in the optical signal propagation direction of the OPA.
[0108] In one embodiment, the target laser is an OTU, and the connection position of the optical fiber of the OTU in the direction of optical signal propagation can be determined by, for example... Figure 7 The implementation of each sub-step shown includes:
[0109] Step 401: Set the configuration status of each WSS of the network element to be processed to cross-configuration.
[0110] Specifically, after the server determines that the target laser is an OTU, it can set the configuration status of each WSS of the network element to be processed to cross-configuration, ensuring that all WSSs of the network element to be processed are conducting. Since the OTU only exists within the line direction, setting the configuration status of each WSS to cross-configuration can accurately determine the transmission direction of the OTU optical signal.
[0111] Step 402: Turn off all lasers in the network element to be processed and turn on the OTU.
[0112] In practice, after the server sets the configuration status of each WSS of the network element to be processed to cross configuration, it can turn off each laser in the network element to be processed and turn on a target laser, that is, turn on the OTU, so that the optical signal of the OTU can be transmitted out.
[0113] In one example, the server can first shut down each laser in the network element to be processed, and then set the configuration status of each WSS in the network element to be processed to empty.
[0114] Step 403: Determine if there is one and only one WSS tributary port that detects light. If so, proceed to step 404; otherwise, end the process directly.
[0115] Specifically, after the server enables the OTU, it can determine whether there is one and only one WSS tributary port that detects light.
[0116] In practical implementation, since the OTU only exists within the line direction, even if the OTU is activated, the optical signal will not be transmitted to the line direction. Figure 4 As shown, if the physical fiber connection is correct, only the WSS connected to the OTU at its branch port can detect light at its own branch port.
[0117] In one example, if the server determines that no light is detected at any of the WSS tributary ports, it indicates a physical fiber connection error, and the server can exit the fiber connection discovery process.
[0118] Step 404: Record the optical fiber between the WSS and OTU that detected the light at the branch port as the ninth position optical fiber.
[0119] In specific implementations, such as Figure 4 As shown, if the server determines that there is one and only one WSS tributary port that has detected light, the server can record the fiber between the WSS and the OTU that has detected light at the tributary port as the ninth fiber.
[0120] In one example, such as Figure 5 As shown, both i1 fiber and i2 fiber are the ninth position fiber.
[0121] Step 405: Obtain the optical detection results of each OBA of the network element to be processed.
[0122] Specifically, after the server records the optical fiber between the WSS and OTU that the light was detected at the branch port as the ninth position optical fiber, it can obtain the optical detection results of each OBA of the network element to be processed, so as to determine the transmission direction of the OTU optical signal.
[0123] Step 406: Determine if there is one and only one OBA that detects light. If so, proceed to step 407; otherwise, end the process directly.
[0124] In one example, if the server determines that no light has been detected in any of the OBAs, it indicates a physical fiber connection error, and the server can exit the fiber connection discovery process.
[0125] Step 407: Record the optical fiber between the OBA that detected the light and the WSS that detected the light at the tributary port as the tenth position optical fiber.
[0126] In specific implementations, such as Figure 4 As shown, after determining that there is one and only one OBA that has detected light, the server can record the optical fiber between the OBA that detected light and the WSS that detected light at the tributary port as the tenth position optical fiber.
[0127] In one example, such as Figure 5 As shown, both fiber j1 and fiber j2 are fibers at the tenth position.
[0128] This embodiment can effectively improve the efficiency and accuracy of the connection position of the optical fiber in the optical signal propagation direction of the OTU.
[0129] Another embodiment of the present invention relates to an electronic device, such as Figure 8 As shown, it includes: at least one processor 501; and a memory 502 communicatively connected to the at least one processor 501; wherein the memory 502 stores instructions executable by the at least one processor 501, the instructions being executed by the at least one processor 501 to enable the at least one processor 501 to perform the fiber optic connection discovery method in the above embodiments.
[0130] The memory and processor are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors and memories. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and will not be described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.
[0131] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.
[0132] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method embodiments described above.
[0133] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0134] Those skilled in the art will understand that the above embodiments are specific examples of implementing the present invention, and in practical applications, various changes in form and detail may be made without departing from the spirit and scope of the present invention.
Claims
1. A method for discovering fiber optic connections, characterized in that, include: Turn off all lasers in the network element to be processed; Activate a target laser; Obtain the light detection results of each wavelength selective switch (WSS) to determine whether any WSS group port has detected light; Based on the configuration status of each wavelength selection switch (WSS) of the network element to be processed and the optical detection results of each port of the network element to be processed, the connection position of the optical fiber of the target laser in the direction of optical signal propagation is determined.
2. The fiber optic connection discovery method according to claim 1, characterized in that, If the target laser is an OBA (Optical Post-Amplifier), then before turning on a target laser, the following steps are also included: Set the configuration status of each WSS of the network element to be processed to empty; The step of determining the connection position of the optical fiber of the target laser in the direction of optical signal propagation based on the configuration status of each wavelength selection switch (WSS) of the network element to be processed and the optical detection results of each port of the network element to be processed includes: If light is detected at the group port of one and only one WSS, the OBA is determined to be an uplink / downlink OBA, and the optical fiber between the WSS that detected light at the group port and the uplink / downlink OBA is recorded as the first position optical fiber.
3. The fiber optic connection discovery method according to claim 2, characterized in that, After recording the optical fiber between the WSS (Wide Surface Sensor) detecting light at the group port and the OBA (Optical Surface Arm) in the uplink / downlink direction as the first position optical fiber, the method further includes: Set the configuration status of the WSS that detects light at the group port to cross-configuration; The optical detection results of each port are obtained again; If a branch port of a WSS other than the one that detected light at the group port detects light detects light detects light detects light, then the optical fiber between the WSS that detected light at the branch port and the WSS that detected light at the group port is recorded as the second position optical fiber.
4. The fiber optic connection discovery method according to claim 3, characterized in that, After recording the optical fiber between the WSS of the light detected at the tributary port and the WSS of the light detected at the group port as the second location optical fiber, the method further includes: Set the configuration status of the WSS that detects light at the tributary port to cross configuration; Obtain the optical detection results of each OBA (excluding the enabled OBA) of the network element to be processed; If light is detected by an OBA other than the active OBA, the optical fiber between the OBA that detected the light and the WSS that detected the light at the tributary port is recorded as the third position optical fiber.
5. The fiber optic connection discovery method according to claim 1, characterized in that, If the target laser is an OPA (Optical Preamplifier), then before turning on a target laser, the following steps are also included: Set the configuration status of each WSS of the network element to be processed to empty; The step of determining the connection position of the optical fiber of the target laser in the direction of optical signal propagation based on the configuration status of each wavelength selection switch (WSS) of the network element to be processed and the optical detection results of each port of the network element to be processed includes: If only one WSS's group port detects light, then the configuration status of the WSS that detected light on the group port is set to cross-configuration. Obtain the optical detection results of each optical conversion unit (OTU) of the network element to be processed; If none of the OTUs detect light, then the OPA is determined to be a line-direction OPA, and the optical fiber between the line-direction OPA and the WSS that detected light at the group port is recorded as the fourth position optical fiber. If only one OTU detects light, the OPA is determined to be an uplink / downlink OPA, and the fiber between the uplink / downlink OPA and the WSS that detected light at the group port is recorded as the fifth position fiber.
6. The fiber optic connection discovery method according to claim 5, characterized in that, After recording the optical fiber between the line-direction OPA and the WSS that detects light at the group port as the fourth location optical fiber, the method further includes: The optical detection results of each port are obtained again; If a branch port of a WSS other than the one detected by the group port detects light detects light detects light, then the optical fiber between the WSS detected by the branch port and the WSS detected by the group port is recorded as the sixth position optical fiber.
7. The fiber optic connection discovery method according to claim 6, characterized in that, After recording the optical fiber between the WSS detected at the tributary port and the WSS detected at the group port as the sixth position optical fiber, the method further includes: Obtain the optical detection results of each OPA in the network element to be processed, excluding the enabled OPA; If light is detected by an OPA other than the activated OPA, the optical fiber between the OPA that detected light and the WSS that detected light at the tributary port is recorded as the seventh position optical fiber.
8. The fiber optic connection discovery method according to claim 5, characterized in that, After recording the optical fiber between the uplink / downlink direction OPA and the WSS that detects light at the group port as the fifth position optical fiber, the method further includes: The optical fiber between the OTU that detects light and the WSS that detects light at the group port is recorded as the eighth position optical fiber.
9. The fiber optic connection discovery method according to claim 1, characterized in that, If the target laser is an OTU, then before activating a target laser, the following steps are also included: Set the configuration status of each WSS of the network element to be processed to cross configuration; The step of determining the connection position of the optical fiber of the target laser in the direction of optical signal propagation based on the configuration status of each wavelength selection switch (WSS) of the network element to be processed and the optical detection results of each port of the network element to be processed includes: If light is detected at one and only one branch port of WSS, the optical fiber between the WSS that detected light at the branch port and the OTU is recorded as the ninth position optical fiber.
10. The fiber optic connection discovery method according to claim 9, characterized in that, After recording the optical fiber between the WSS (Wide Sockets System) that detects light at the tributary port and the OTU as the ninth position optical fiber, the method further includes: Obtain the optical detection results of each OBA of the network element to be processed; If only one OBA detects light, the fiber optic cable between the OBA and the WSS that detected light at the branch port is recorded as the tenth position fiber optic cable.
11. The fiber optic connection discovery method according to claim 2, characterized in that, The step of determining the connection position of the optical fiber of the target laser in the direction of optical signal propagation based on the configuration status of each wavelength selection switch (WSS) of the network element to be processed and the optical detection results of each port of the network element to be processed further includes: If no light is detected at any of the ports, then the OBA is determined to be a line-direction OBA.
12. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the fiber optic connection discovery method as described in any one of claims 1 to 11.
13. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the fiber optic connection discovery method according to any one of claims 1 to 11.