Methods, systems, storage media, and computer program products for fiber optic measurements
Patent Information
- Application Number
- CN202510249075.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2026-08-28
AI Technical Summary
目前主要使用光时域反射仪(OpticalTime-Domain Reflectometer,OTDR)的技术来进行光纤测量,协助定位故障点,在多数情况下,一段光纤长度能够达到上百公里,从光纤的一端发射的测量信号强度会随着距离衰减,导致测量的结果出现较大的误差,因此为了提高光纤测量的准确度,需要从光纤的两端分别进行测量,以得出更加精确的故障点的位置
[0010] The fiber optic measurement method in this embodiment sends a measurement request to the other end before measurement is performed at one end of the fiber. This is equivalent to performing a handshake protocol in advance, whereby the local end informs the other end that it is about to perform fiber optic measurement. If the other end's conditions are supportive, it returns a request signal to inform the local end, which then performs the fiber optic measurement task. This ensures that when measurement is performed at one end of the fiber, the other end will not perform measurement simultaneously, avoiding damage to the upper-layer system or inaccurate measurement results due to receiving a high-power measurement signal from the other end while performing measurement at one end.
Smart Images

Figure CN122660731A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technology, and in particular to a method, system, storage medium, and computer program product for optical fiber measurement. Background Technology
[0002] With the rapid development of optical communication technology, optical fibers are being laid extensively as information carriers, and their performance directly affects the reliability of optical communication systems. Optical cables are composite structures composed of one or more optical fibers and other auxiliary materials, used to protect the fibers from external factors such as mechanical stress, moisture, and electromagnetic interference, and to provide additional physical strength and durability. However, optical cables themselves are prone to problems; for example, bending, compression, and breakage can all damage the internal optical fibers. Since most optical fibers are buried underground or in concealed locations, this poses a challenge for later maintenance. Once a fault occurs, it is necessary to quickly locate the fault point for repair. Currently, optical time-domain reflectometer (OTDR) technology is mainly used for optical fiber measurement to assist in locating fault points. In many cases, a single optical fiber can be hundreds of kilometers long. The measurement signal strength emitted from one end of the fiber attenuates with distance, leading to significant errors in the measurement results. Therefore, to improve the accuracy of optical fiber measurements, measurements need to be taken from both ends of the fiber to obtain a more precise location of the fault point.
[0003] In a two-end measurement scenario, the two ends of the optical fiber will inevitably have different measurement sources, including manual measurement or periodic machine-triggered measurement. Different measurement sources may lead to inaccurate measurement results. Summary of the Invention
[0004] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.
[0005] In a first aspect, embodiments of this application provide a method for measuring optical fibers, wherein the optical fiber is an optical fiber between a first network element and a second network element. The method is executed by the first network element and includes: receiving a first measurement command sent by a first upper-layer application, wherein the first measurement command is used to instruct the first network element to measure the optical fiber; sending a first measurement request to the second network element according to the first measurement command, wherein the first measurement request is used to request the second network element to agree to allow the first network element to measure the optical fiber; and measuring the optical fiber upon receiving a first request response signal from the second network element in response to the first measurement request.
[0006] Secondly, embodiments of this application also provide a method for measuring optical fibers, wherein the optical fiber is an optical fiber between a first network element and a second network element, and the method is executed by the second network element, comprising: receiving a first measurement request sent by the first network element, wherein the first measurement request is used to request the second network element to agree to allow the first network element to measure the optical fiber; and sending a first request response signal to the first network element according to the first measurement request, so that the first network element measures the optical fiber.
[0007] Thirdly, embodiments of this application provide an optical fiber measurement system, which includes at least one processor, at least one transceiver, and a memory for communicatively connecting to the at least one processor and the at least one transceiver; the memory stores instructions that can be executed by the at least one processor and the at least one transceiver, and when the instructions are executed by the at least one processor and the at least one transceiver, the at least one processor and the at least one transceiver are able to perform the optical fiber measurement method described in the first or second aspect above.
[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the fiber optic measurement method as described in the first or second aspect above.
[0009] Fifthly, embodiments of this application provide a computer program product, wherein when the computer program code or instructions are executed on a computer, the computer performs the fiber optic measurement method described in the first or second aspect.
[0010] The fiber optic measurement method in this embodiment sends a measurement request to the other end before measurement is performed at one end of the fiber. This is equivalent to performing a handshake protocol in advance, whereby the local end informs the other end that it is about to perform fiber optic measurement. If the other end's conditions are supportive, it returns a request signal to inform the local end, which then performs the fiber optic measurement task. This ensures that when measurement is performed at one end of the fiber, the other end will not perform measurement simultaneously, avoiding damage to the upper-layer system or inaccurate measurement results due to receiving a high-power measurement signal from the other end while performing measurement at one end.
[0011] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0012] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and form part of the specification. They are used together with the examples of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0013] Figure 1 This is a schematic diagram of the structure of an OTDR provided in one embodiment of this application;
[0014] Figure 2 This is a schematic diagram of the structure of an optical fiber measurement system provided in one embodiment of this application;
[0015] Figure 3 This is a schematic flowchart of a fiber optic measurement method provided in one embodiment of this application;
[0016] Figure 4 This is a schematic flowchart of another fiber optic measurement method provided in one embodiment of this application;
[0017] Figure 5 This is a schematic flowchart illustrating another method for optical fiber measurement provided in one embodiment of this application;
[0018] Figure 6 This is a schematic block diagram of an optical fiber measurement system provided in one embodiment of this application. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various implementations. Simultaneously, the steps or actions described in the method description can be rearranged or adjusted in a manner readily apparent to those skilled in the art. Therefore, the various orders in the specification and drawings are merely for the clear description of a particular embodiment and do not imply a mandatory order, unless otherwise stated that a particular order must be followed.
[0020] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0021] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).
[0022] Fiber optic communication, due to its low cost and excellent bandwidth, has become the primary transmission method in telecommunications networks. With technological advancements, fiber optic communication has experienced rapid development, with fiber optic cables being deployed and used extensively. In practical applications, many factors can cause fiber optic failures, such as fiber optic cables being severed during construction or fiber optic cable degradation caused by road surface deformation from heavy trucks. When a fiber optic failure occurs, maintenance personnel need to quickly and accurately pinpoint the fault location and then proceed with repairs. Fiber optic failures have a significant impact on users, and the efficiency of repairs directly affects the user experience.
[0023] An OTDR (Optical Time-of-Reflection Detector) is an important fiber optic fault location device. It's an optoelectronic integrated instrument that utilizes Rayleigh scattering of light in optical fibers, resulting in backscattering, and Fresnel reflection at discontinuities in the fiber. The basic principle of an OTDR is to analyze the energy distribution curve of the backscattered light from a pulsed laser along a fiber optic line over time or distance to obtain the fiber's length, attenuation, fault characteristics, etc. Specifically, an optical pulse is input into the fiber under test. As the pulse propagates along the fiber, it scatters and reflects a portion of the optical signal back. Continuous high-speed sampling of this signal yields characteristic curves reflecting fiber attenuation, faults, etc.
[0024] Figure 1 A schematic diagram of a structure of an OTDR applicable to this application is shown. For example... Figure 1 As shown, the OTDR includes functional components such as a signal control and processing unit 101, a pulse generator 102, a laser 103, a circulator 104, a photodiode 106, an operational amplifier 107, and an analog-to-digital converter (ADC) 108.
[0025] The signal control and processing unit 101 is the core of the OTDR, used for signal control, data acquisition, and data processing. The signal control and processing unit 101 sends commands to the pulse generator 102 according to user-configured parameters. The pulse generator 102 generates corresponding pulses based on the received commands, controlling the laser 103 to output pulsed light. The laser 103 emits pulsed laser signals with corresponding pulse width and power intensity according to the commands from the pulse generator 102. An optical circulator 104 can be installed at the port of the fiber optic cable 105 under test to distinguish between incident and reflected signals. The pulsed light signal emitted by the laser 103 is injected into the fiber optic link under test through the optical circulator 104 for testing. The detection signal reflected back from the fiber optic link under test is then fed into a photodiode 106 through the optical circulator 104. The photodiode 106 converts the received optical signal into an electrical signal, which is then input into an operational amplifier 107 to amplify the weak electrical signal, resulting in an electrical signal usable by the analog-to-digital converter 108. The analog-to-digital converter 108 converts the received electrical signal into a digital signal and inputs it into the signal control and processing unit 101, so that the signal control and processing unit 101 analyzes and processes the digital signal to determine the fault status of the optical fiber 105 under test.
[0026] It should be understood that the above is only a simplified description of the working principle of an OTDR. In practical applications, the OTDR used in this application may contain more advanced technologies. Figure 1 The number of components may vary, depending on whether the fiber optic measurement method of this application is implemented; this application does not limit the number of components.
[0027] Figure 2 A schematic diagram of the fiber optic measurement system of this application is shown, including network element 201 and network element 202. Network element 201 and network element 202 are located at opposite ends of fiber optic 209. Network element 201 is connected to upper-layer application 207 and can acquire signals from upper-layer application 207 and can also feed signals back to upper-layer application 207. Network element 202 is connected to upper-layer application 208 and can acquire signals from upper-layer application 208 and can also feed signals back to upper-layer application 208. Network element 201 includes a control unit 203 and a transceiver unit 205, and network element 202 includes a control unit 204 and a transceiver unit 206. Taking network element 201 as an example, the control unit 203 receives instructions from upper-layer application 207 through transceiver unit 205. Based on these instructions, it can control transceiver unit 205 to perform further actions, such as sending optical signals to fiber optic 209 or feeding signals back to upper-layer application 207, etc., and can achieve... Figure 1 The transceiver unit 205 can perform the signal processing function of the OTDR. Figure 1 The OTDR in the network has the functions of transmitting and receiving signals. The structure and function of network element 202 are similar to those of network element 201.
[0028] In a specific embodiment, upper-layer application 207 and upper-layer application 208 may be the same upper-layer application. In practical applications, upper-layer application 207 and upper-layer application 208 may be user-facing operation interfaces that can issue measurement commands or business logic processing centers with timing capabilities that can periodically issue measurement commands.
[0029] In practical applications, network element 201 and network element 202 may include multiple units with transceiver functions, such as multiple transceiver ports. In this embodiment, the transceiver unit may be, but is not limited to, an OSC board, and the transceiver port may be, but is not limited to, an OSC port on an OSC board. This application does not impose any limitations.
[0030] exist Figure 2 The scenario where fiber optic measurements are performed at both ends of the fiber optic cable 209 is called a two-end measurement scenario. In a two-end measurement scenario, different measurement sources are inevitably present at the two ends of the fiber. For example, different measurement personnel may perform measurements at the two ends of the fiber, or different machines may have set measurement cycles at the two ends of the fiber. If measurement tasks are performed simultaneously at both ends of the fiber, the network element at one end cannot distinguish whether the signal received during the measurement process is a return signal after reaching the other end or a measurement signal that arrives at this end after the other end network element starts the measurement, resulting in inaccurate measurement results. In addition, if this segment receives the measurement signal from the other end and returns the measurement signal to the upper layer application, the high power of the measurement signal may cause the upper layer system to burn out. Therefore, this application proposes a fiber optic measurement method to ensure that when measurement is performed at one end of the fiber, measurement is not performed at the other end at the same time, avoiding the situation where one end receives a high-power measurement signal sent by the other end while performing measurement, which could damage the upper layer system or cause inaccurate measurement results due to the received measurement signal.
[0031] Figure 3 A schematic flowchart of a fiber optic measurement method according to this application is shown, such as... Figure 3 As shown, this method can be derived from... Figure 2 The method, executed by network element 201 or network element 202, includes:
[0032] S301, Receive a first measurement command sent by a first upper-layer application. The first measurement command is used to instruct the first network element to perform fiber optic measurement on the fiber.
[0033] Since a single fiber optic cable can deliver hundreds of kilowatts of power, the signal strength emitted from one end of the cable attenuates with distance. Therefore, to improve the accuracy of fiber optic measurements, this embodiment requires measurements to be performed from both ends of the cable to obtain more precise results. Specifically, in scenarios where measurements are manually triggered, the operator can use the user interface to send measurement commands to the first network element via an upper-layer application. In scenarios involving pre-set periodic automatic machine measurements, the upper-layer application will send measurement commands to the first network element according to a preset cycle. Upon receiving the measurement command, the first network element begins preparations for fiber optic measurement.
[0034] S302, according to the first measurement command, a first measurement request is sent to the second network element, wherein the first measurement request is used to request the second network element to agree to allow the first network element to measure the optical fiber.
[0035] To prevent the first network element from mistakenly receiving a high-power measurement signal from the second network element while performing a measurement task, which could burn out the upper-layer system of the first network element, or from mistaking the measurement signal sent by the second network element as a signal returned from the optical fiber and interfering with the measurement results of the first network element, the first network element will send a measurement request to the second network element before performing optical fiber measurement. The request asks the second network element to agree to allow the first network element to measure the optical fiber, thereby ensuring that the second network element will not send measurement signals during the subsequent measurement process.
[0036] S303: Upon receiving a first request response signal from the second network element in response to the first measurement request, the fiber is measured.
[0037] When the second network element confirms that there is no measurement task at present and the first network element can be allowed to measure the optical fiber, it returns a request response signal to the first network element. Upon receiving the request response signal from the second network element in response to the measurement request, the first network element indicates that the second network element can cooperate with the first network element to perform the optical fiber measurement (or, in other words, that the second network element agrees to allow the first network element to measure the optical fiber). That is, during the first network element's measurement of the optical fiber, the second network element will not send measurement signals or otherwise interfere with the first network element's measurement. Then, the first network element begins to perform the measurement task on the optical fiber.
[0038] The process of the first network element measuring the optical fiber can be referred to the above. Figure 1The description of the fiber optic measurement principle using an OTDR includes a first network element inputting continuous optical pulse signals into the fiber under test and receiving scattered and reflected light signals returned by the fiber optic link. The continuous returned signals are then analyzed to obtain information about the fiber, including identifying fault points. However, it should be understood that the fiber optic measurement in this application primarily utilizes the principle of existing OTDRs. In practical applications, an OTDR device may not be necessary; achieving the fiber optic measurement result is sufficient. For example, some OTDR functional components can be integrated into the first network element to realize the fiber optic measurement process described in this application.
[0039] In one specific embodiment, after the first network element finishes the fiber optic measurement task, it can also send a termination measurement request to the second network element so that the second network element can determine that the first network element has finished the current fiber optic measurement task, and then the second network element can perform the measurement task or other tasks.
[0040] In one specific embodiment, before the first network element ends its current fiber optic measurement task, or before sending an end-of-measurement request to the second network element, if the first network element receives a second measurement command from an upper-layer application, the second measurement command instructs the first network element to perform fiber optic measurement. Since this second measurement command conflicts with the current fiber optic measurement task, the first network element cannot execute it simultaneously. Therefore, the first network element can send a signal to the upper-layer application rejecting the second measurement command, informing the upper-layer application that it cannot currently execute the second measurement command. Simultaneously, it can also inform the upper-layer application that the measurement task indicated by the second measurement command will be queued; for example, after completing the current measurement task, the first network element will execute the measurement task indicated by the second measurement command. For instance, if the first network element receives a second measurement command from a first upper-layer application while sending a first measurement request to the second network element, it can send a first rejection signal to the first upper-layer application, where the second measurement command instructs the first network element to perform fiber optic measurement. Alternatively, if the first network element receives a second measurement command from a first upper-layer application while performing fiber optic measurement, it can send a first rejection signal to the first upper-layer application, where the second measurement command instructs the first network element to perform fiber optic measurement. Optionally, the first rejection signal described above is used to indicate that the second measurement command is refused to be executed.
[0041] In one specific embodiment, before the first network element ends its current fiber optic measurement task, or before sending an end-of-measurement request to the second network element, the first network element receives a second measurement request from the second network element. This second measurement request requests the first network element to agree to allow the second network element to measure the fiber optic cable. If the first and second network elements simultaneously perform measurement tasks on the fiber optic cable, it could lead to inaccurate measurement results; therefore, the first network element cannot agree to the second measurement request. In this case, the first network element can send a signal rejecting the second measurement request (e.g., a second rejection signal) to the second network element, informing the second network element that it cannot currently agree to allow the second network element to measure the fiber optic cable. Alternatively, the aforementioned signal rejecting the second measurement request can also inform the second network element to queue, for example, after the first network element completes its current measurement task, the first network element will agree to allow the second network element to perform the fiber optic measurement task. That is, if the first network element receives the second measurement request from the second network element while sending the first measurement request, it sends a second rejection signal to the second network element, where the second measurement request requests the first network element to agree to allow the second network element to measure the fiber optic cable. Alternatively, if the first network element receives a second measurement request from the second network element during the measurement of the optical fiber, it may send a second rejection signal to the second network element, wherein the second measurement request is used to request the first network element to agree to allow the second network element to measure the optical fiber.
[0042] In one specific embodiment, after the first network element sends a first measurement request to the second network element, if a second measurement request is received from the second network element, the first network element negotiates with the second network element whether it should measure the optical fiber before the second network element. The second measurement request is used to request the first network element to agree that the second network element should measure the optical fiber. If the result of the negotiation between the first and second network elements is that the first network element should measure the optical fiber before the second network element, the first measurement request is resent to the second network element. Upon receiving a second request response signal from the second network element in response to the resent first measurement request, the optical fiber is measured.
[0043] In one specific embodiment, determining whether the first network element measures the optical fiber before the second network element includes the first network element sending a first negotiation request to the second network element, wherein the first negotiation request is used to request that the first network element measure the optical fiber before the second network element. Upon receiving a first negotiation response signal from the second network element in response to the first negotiation request, it is determined that the result of the negotiation between the first network element and the second network element is that the first network element measures the optical fiber before the second network element, wherein the first negotiation response signal is used to indicate that the second network element agrees to allow the first network element to measure the optical fiber before the second network element.
[0044] In one specific embodiment, after the first network element sends a first negotiation request to the second network element, the first network element, upon receiving a second negotiation request from the second network element and determining that the priority of the first measurement request is higher than the priority of the second measurement request, sends a second negotiation response signal to the second network element. The second negotiation response signal is used to request the second network element to postpone the measurement of the optical fiber.
[0045] In a specific embodiment, this method can also set priorities for the first network element and the second network element to handle situations where both the first and second network elements have fiber optic measurement tasks that need to be performed simultaneously. For example, priorities can be determined based on the order of time or can be preset manually. Specifically, there are two scenarios. In the first scenario, after the first network element receives the first measurement command sent by the upper-layer application and sends the first measurement request to the second network element, if the second network element also receives the measurement command sent by its upper-layer application, then the first network element will receive the second measurement request sent by the second network element. In this case, both the first and second network elements have measurement needs, resulting in a conflict. Therefore, priorities can be set for the first and second network elements. For example, the order of executing fiber optic measurement tasks can be determined by the order in which measurement commands are received. Specifically, the time information of receiving the measurement command can be added to the measurement request. When the first network element receives the second measurement request sent by the second network element, its priority can be determined based on the time information in the second measurement request. Assuming that the time when the second network element receives the measurement command is later than the time when the first network element receives the measurement command, the priority of the second network element is lower than that of the first network element. That is, the first network element should execute the fiber optic measurement command first. The first network element can then send a signal to the second network element rejecting the second measurement request. The signal rejecting the second measurement request can include the result of the first network element's priority determination. After receiving the signal rejecting the second measurement request, the second network element should send a first request response signal to the first network element to cooperate with the first network element in executing the fiber optic measurement task. The second scenario is that after the first network element receives the first measurement command sent by the upper-layer application, but before sending the first measurement request to the second network element, if the first network element receives the second measurement request sent by the second network element, since the second network element sent the measurement request first, it should execute the fiber optic measurement task first according to the chronological order. However, it is also possible to pre-set a priority, setting the first network element to execute the fiber optic measurement task first under any circumstances, and adding this pre-set priority information to the measurement request. Therefore, when the first network element receives the second measurement request sent by the second network element, it can determine that the priority of the second network element is lower than that of the first network element through the priority information in the second measurement request. In this case, the first network element can continue to execute the fiber optic measurement task, that is, send the first measurement request to the second network element. After receiving the signal of rejecting the second measurement request, the second network element should send the first request response signal to the first network element to cooperate with the first network element in executing the fiber optic measurement task.
[0046] In one specific embodiment, after the first network element sends a first measurement request to the second network element, if the first network element does not receive a first request response signal from the second network element for the first measurement request within a preset time period, it measures the optical fiber or sends an error signal to the first upper-layer application, wherein the error signal is used to indicate that the first request response signal has not been received.
[0047] In a specific embodiment, before sending the first measurement request to the second network element according to the first measurement command, the method of this application further includes determining a first transceiver port according to the first measurement command, the first transceiver port corresponding to the first transceiver port of the second network element, and then sending and receiving the first measurement request to the second network element through the first transceiver port. In practical applications, a network element may establish communication connections with one or more other network elements. For example, network element A may be connected to network element B through fiber AB, or it may be connected to network element C through fiber AC. When network element A receives a measurement command sent by the upper-layer application, the measurement command generally specifies which fiber between which two network elements needs to be measured. For example, if the measurement command specifies that fiber AB between network element A and network element B needs to be measured, then a method is needed to enable network element B to quickly determine that fiber AB between the two needs to be measured, and network element B cannot send measurement signals to network element A through fiber AB during the measurement process, so as not to interfere with the measurement results. Generally, a network element includes multiple transmitting ports and multiple receiving ports. Therefore, the fiber optic measurement method in this application establishes a one-to-one correspondence between the multiple transmitting ports of network element A and the multiple receiving ports of the multiple network elements connected to it. For example, the transceiver port A of network element A corresponds to the transceiver port B of network element B, and they are connected by optical fiber AB. The transceiver port A1 of network element A corresponds to the transceiver port B1 of network element B, and they are connected by optical fiber A1B1. After receiving a measurement command, network element A determines that the optical fiber AB between network elements AB needs to be measured. It can then directly send a measurement request to network element B through transceiver port A. This ensures that network element B can quickly know that the optical fiber AB between network elements AB needs to be measured after receiving the measurement request through transceiver port B. During the measurement process, network element B will not send interference signals to network element A through transceiver port B. Thus, network element A can avoid receiving interference signals when performing fiber optic measurements through transceiver port A. However, correspondingly, network element B can still send signals to network element A's transceiver port A1 through other transceiver ports, such as B1, to ensure that other communications between the two network elements can proceed normally.
[0048] In one specific embodiment, network element A can also establish wireless connections with multiple network elements. For example, in the method described above, when network element A sends a measurement signal through transceiver port A, the signal may carry port information. When the transceiver port B of network element B corresponding to transceiver port A receives the measurement signal, it can determine from the port information that the signal was sent by the corresponding transceiver port, and therefore the measurement signal needs to be processed. However, when other transceiver ports of other network elements, or other transceiver ports of network element B, receive the measurement signal, it can determine from the port information that the signal was not sent by the corresponding transceiver port, and therefore the measurement signal does not need to be processed.
[0049] The method in this application embodiment, by pre-setting a one-to-one correspondence between the transceiver ports of multiple network elements, can quickly determine the fiber optic measurement between two specific network elements and their specific transceiver ports, so as not to interfere with the operation of other normal network elements, nor to interfere with the normal communication of the non-tested link between the two specific network elements.
[0050] Figure 4 A schematic flowchart of another fiber optic measurement method of this application is shown, such as... Figure 4 As shown, this method can be derived from... Figure 2 The method, executed by network element 201 or network element 202, includes:
[0051] S401, receive a first measurement request sent by the first network element, wherein the first measurement request is used to request the second network element to agree to allow the first network element to measure the optical fiber.
[0052] S402, according to the first measurement request, a first request response signal is sent to the first network element to enable the first network element to measure the optical fiber. In an optional example, the first request response signal is used to instruct the first network element to measure the optical fiber, or the first request response signal is used to indicate consent to the first network element measuring the optical fiber.
[0053] Specifically, after receiving the first measurement request from the first network element, if the second network element confirms that it can cooperate with the first network element to perform fiber optic measurement, that is, the second network element will not send measurement signals or other interferences to the first network element's measurement of the fiber optic during the first network element's measurement of the fiber optic, then the second network element sends a request response signal to the first network element, so that the first network element can start to perform the fiber optic measurement task.
[0054] In one specific embodiment, if a second network element sends a second measurement request to a first network element, wherein the second measurement request is used to request the first network element to agree to allow the second network element to perform fiber optic measurements, and the second network element receives a second rejection signal from the first network element, it indicates that the first network element is currently unable to support (or cannot agree to) the second network element performing fiber optic measurements. The second network element can then queue the fiber optic measurement task until the first network element can support the second network element in performing fiber optic measurements.
[0055] In a specific embodiment, when the second network element receives the end measurement request sent by the first network element, it indicates that the first network element has ended the current fiber optic measurement task. The second network element can perform measurement tasks or other tasks, and then the second network element sends a response end request to the first network element, indicating that it is aware that the first network element has ended the current fiber optic measurement task.
[0056] In one specific embodiment, if the second network element receives a third measurement command from an upper-layer application while the first network element is performing an optical fiber measurement task, and the third measurement command instructs the second network element to perform optical fiber measurement, the second network element cannot simultaneously perform an optical fiber measurement task because the first network element's optical fiber measurement task has not yet been completed. Therefore, the second network element can send a signal to the upper-layer application to reject the third measurement command, informing the upper-layer application that it cannot currently execute the third measurement command. Simultaneously, it can also inform the upper-layer application that the measurement task indicated by the third measurement command will be queued; for example, the second network element will execute the measurement task indicated by the third measurement command after the first network element completes its current measurement task.
[0057] In one specific embodiment, after receiving a first measurement request from a first network element, the second network element, upon sending a second measurement request to the first network element, negotiates with the first network element whether the first network element should measure the optical fiber before the second network element. The second measurement request is used to request the first network element's agreement to measure the optical fiber. If the negotiation between the first and second network elements results in the first network element measuring the optical fiber before the second network element, the second network element re-receives the first measurement request from the first network element. The second network element then sends a second request response signal to the first network element in response to the re-sent first measurement request, enabling the first network element to measure the optical fiber.
[0058] In a specific embodiment, the negotiation between the second network element and the first network element regarding whether the first network element should measure the optical fiber before the second network element includes: the second network element receiving a first negotiation request sent by the first network element, wherein the first negotiation request is used to request that the first network element measure the optical fiber before the second network element; the second network element sending a first negotiation response signal to the first network element in response to the first negotiation request, determining that the result of the negotiation between the first network element and the second network element is that the first network element should measure the optical fiber before the second network element, wherein the first negotiation response signal is used to indicate that the second network element agrees that the first network element should measure the optical fiber before the second network element.
[0059] In one specific embodiment, after receiving the first negotiation request sent by the first network element, the second network element sends a second negotiation request to the first network element; the second network element receives the second negotiation response signal sent by the first network element, wherein the second negotiation response signal is used to request the second network element to postpone the measurement of the optical fiber.
[0060] In a specific embodiment, if the second network element does not receive a second request response signal from the first network element after sending a second measurement request to the first network element, but instead receives a first measurement request or a rejection signal for the second measurement request from the first network element, it indicates that the first network element determines that the priority of the second network element is lower than that of the first network element. That is, the first network element should execute the fiber optic measurement command first. At the same time, the first measurement request or rejection signal for the second measurement request may include priority information or priority judgment results. The second network element can further confirm that its priority is indeed lower than that of the first network element based on the priority information or priority judgment results that may be included in the first measurement request or rejection signal for the second measurement request. In this case, the second network element should send a first request response signal to the first network element to cooperate with the first network element in performing the fiber optic measurement task.
[0061] In one specific embodiment, the second network element receives a first measurement request sent by the first network element through a second transceiver port. The second network element includes at least one transceiver port, and each transceiver port of the second network element corresponds one-to-one with at least one transceiver port of at least one network element. The second transceiver port of the second network element corresponds to the first transceiver port of the first network element. By receiving the measurement request through the corresponding transceiver port, the second network element can quickly determine which fiber optic link corresponding to which network element needs to be measured. Therefore, during the fiber optic measurement process of the first network element, the second network element will not send interference signals through its second transceiver port, thus avoiding interference with the fiber optic measurement performed by the first network element.
[0062] Figure 4 The execution steps of the second network element in the fiber optic measurement method can be further referred to the above for... Figure 3 The descriptions are repeated in the embodiments of this application, and the repeated parts will not be repeated here.
[0063] Figure 5 A schematic flowchart illustrating another fiber optic measurement method of this application is shown, schematically describing the process of applying the fiber optic measurement method of this application to upper-layer application A, network element A, upper-layer application B, and network element B, such as... Figure 5 As shown, the method includes:
[0064] S501, upper-layer application A sends a first measurement command to network element A, instructing network element A to perform fiber optic measurement. This first measurement command can be sent by the user through upper-layer application A to network element A, or the user can pre-set a measurement cycle, and then upper-layer application A sends measurement commands to network element A periodically.
[0065] In S502, after receiving the first measurement command from upper-layer application A, network element A, if it determines that no other conflicting tasks are currently being executed, should send a first measurement request to network element B. However, if network element A receives a second measurement request from network element B at this time, which conflicts with the fiber optic measurement task that network element A is about to execute, then network element A needs to determine the priority of task execution, that is, whether network element A or network element B should execute the fiber optic measurement task first. Specifically, this can be determined based on the priority information in the second measurement request sent by network element B, such as the time when network element B received the measurement command, or a user-preset priority. Figure 5 In the flowchart shown, network element A determines that network element B has a lower priority than network element A based on the second measurement request, that is, network element A should perform the fiber optic measurement task first. Then, network element A executes step S503, sending a rejection signal to network element B, informing network element B that network element A should perform the fiber optic measurement task first.
[0066] Figure 5 In this method, after network element A sends a first measurement request to network element B, if a second measurement request is received from network element B, the network element A negotiates with network element B whether network element A should measure the optical fiber before network element B. The second measurement request is used to request network element A's agreement that network element B should measure the optical fiber. If the negotiation between network element A and network element B results in network element A measuring the optical fiber before network element B, the first measurement request is resent to network element B. Upon receiving a second request response signal from network element B in response to the resent first measurement request, the optical fiber is measured.
[0067] Whether network element A measures the optical fiber before network element B includes the following steps: network element A sends a first negotiation request to network element B, wherein the first negotiation request requests that network element A measure the optical fiber before network element B. Upon receiving a first negotiation response signal from network element B in response to the first negotiation request, it is determined that the result of the negotiation between network element A and network element B is that network element A measures the optical fiber before network element B, wherein the first negotiation response signal indicates that network element B agrees that network element A measures the optical fiber before network element B.
[0068] After network element A sends a first negotiation request to network element B, and upon receiving a second negotiation request from network element B and determining that the priority of the first measurement request is higher than the priority of the second measurement request, network element A sends a second negotiation response signal to network element B. The second negotiation response signal is used to request network element B to postpone the measurement of the optical fiber.
[0069] S504, network element A sends a first measurement request to network element B. Similarly, the first measurement request can also carry priority information for network element A, used to allow network element B to determine whether network element A or network element B should perform the fiber optic measurement task first, in the event of conflicting fiber optic measurement tasks. Figure 5 In the flowchart shown, if network element B determines that there are no other conflicting tasks being executed, or if it determines that network element A has a higher priority than network element B based on the first measurement request, then network element B should cooperate with network element A to complete the fiber optic measurement task. In this case, network element B executes step S505 and sends a first request response signal to network element A, indicating that network element B can cooperate with network element A to perform fiber optic measurement. That is, during the process of network element A measuring the fiber optic cable, network element B will not send measurement signals or other interferences to network element A's measurement of the fiber optic cable.
[0070] After receiving the first request response signal sent by network element B, network element A executes step S506 to measure the optical fiber under test.
[0071] During the fiber optic measurement task performed by network element A, if a second measurement command is received from upper-layer application A (for example, in some cases, the first measurement command is manually triggered by the user, while the second measurement command is triggered due to the completion of a user-preset measurement cycle), upper-layer application A may execute step S507 to send the second measurement command to network element A. Since network element A is currently performing a fiber optic measurement task and cannot execute the second task simultaneously, network element A can execute step S508 to send a rejection signal to upper-layer application A. This signal informs upper-layer application A that a task is currently in progress, and the measurement task indicated by the second measurement command can be executed after the current task is completed.
[0072] Similarly, during the fiber optic measurement task performed by network element A, if the upper-layer application B of network element B executes step S509 and sends a third measurement command to network element B, instructing network element B to perform the fiber optic measurement task, and since network element B has already reached an agreement with network element A, but network element A's measurement task has not yet ended, network element B cannot perform the fiber optic measurement task at this time. Therefore, network element B will execute step S510, sending a signal to the upper-layer application B to reject the third measurement command, informing the upper-layer application B that network element A currently has a task being performed. After network element A's task is completed, network element B can execute the measurement task indicated by the third measurement command.
[0073] In step S511, after network element A completes the fiber optic measurement task, it sends a measurement termination request to network element B to inform network element B that it can perform measurement tasks or other tasks. Network element B then executes step S512, sending a response termination request signal to network element A to indicate that it has received the response.
[0074] In summary, the fiber optic measurement method of this application sends a measurement request to the other end before measurement is performed at one end of the fiber. This is equivalent to performing a handshake protocol in advance, whereby the local end informs the other end that it is about to perform fiber optic measurement. If the conditions at the other end are supportive, it returns a request signal to inform the local end, which then performs the fiber optic measurement task. This ensures that when measurement is performed at one end of the fiber, the other end will not perform measurement simultaneously, avoiding damage to the upper-layer system or inaccurate measurement results due to receiving a high-power measurement signal from the other end while performing measurement at one end.
[0075] Accordingly, in this embodiment of the application, if one end of the optical fiber does not receive a request signal from the other end after sending a measurement request, the local end does not perform the optical fiber measurement task, or sends an error signal to the upper layer application, thereby avoiding receiving a high-power measurement signal sent by the other end when performing the measurement.
[0076] This application also provides an optical fiber measurement system, including at least one processor, at least one transceiver, and a memory for communicatively connecting to the at least one processor and the at least one transceiver; the memory stores instructions executable by the at least one processor and the at least one transceiver, the instructions being executed by the at least one processor and the at least one transceiver to enable the at least one processor and the at least one transceiver to perform the above... Figures 3 to 5 The aforementioned method for optical fiber measurement.
[0077] Figure 6 A schematic block diagram of an optical fiber measurement system according to an embodiment of this application is shown. Figure 6As shown, the fiber optic measurement system 600 includes a processor 601, a memory 602, and a transceiver 603. The processor 601, transceiver 603, and memory 602 communicate with each other via an internal connection. The memory 602 stores instructions, and the processor 601 executes the instructions stored in the memory 602 to control the transceiver 603 to transmit and / or receive signals.
[0078] In one specific embodiment, transceiver 603 is used to receive a first measurement command sent by a first upper-layer application, the first measurement command instructing the fiber optic measurement system 600 to perform fiber optic measurement; according to the first measurement command, it sends a first measurement request to a second network element; and receives a first request response signal sent by the second network element. Processor 601 is used to analyze the first measurement command and the first request response signal, and instruct transceiver 603 to send the first measurement request or perform fiber optic measurement, etc.
[0079] The transceiver 603 is also used to send a measurement termination request to the second network element.
[0080] The transceiver 603 is also configured to receive a second measurement command sent by a first upper-layer application, the second measurement command being used to instruct the fiber optic measurement system 600 to perform fiber optic measurement; the processor 601 is also configured to, after analyzing the second measurement command, instruct the transceiver 603 to send a rejection signal for the second measurement command to the first upper-layer application.
[0081] The transceiver 603 is also configured to receive a second measurement request sent by the second network element; the processor 601 is also configured to determine, based on the second measurement request, that the priority of the task to be executed by the second network element is lower than the priority of the currently executed task, and then instruct the transceiver 603 to send a first measurement request to the second network element or reject the second measurement request signal.
[0082] In one specific embodiment, transceiver 603 is used to receive a first measurement request sent by a first network element; according to the first measurement request, it sends a first request response signal to the first network element to enable the first network element to perform measurement on the optical fiber. Processor 601 is used to analyze the first measurement request and then instruct transceiver 603 to send the first request response signal.
[0083] The transceiver 603 is also used to receive a measurement termination request sent by the first network element; and to send a response termination request to the first network element according to the measurement termination request.
[0084] The transceiver 603 is also used to receive a third measurement command sent by a second upper-layer application and to send a signal to the second upper-layer application rejecting the third measurement command.
[0085] The transceiver 603 is also configured to send a second measurement request to the first network element; receive a first measurement request or rejection signal sent by the first network element; the processor 601 is also configured to determine, based on the first measurement request or rejection signal, that the priority of the task to be executed is lower than the priority of the task being executed by the first network element, and then instruct the transceiver 603 to send a first measurement response signal to the first network element.
[0086] Figure 6 The fiber optic measurement system 600 shown includes a memory 602, which serves as a non-transitory computer-readable storage medium for storing non-transitory software programs and non-transitory computer-executable programs. Furthermore, the memory 602 may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory, or other non-transitory solid-state storage device. In some embodiments, the memory 602 may optionally include memory remotely located relative to the processor 601, and these remote memories can be connected to the fiber optic measurement system 600 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0087] It should be understood that the fiber optic measurement system 600 can be used to perform the various steps and / or processes in the above-described method embodiments. Optionally, the memory 602 may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. The memory 602 may be a separate device or integrated into the processor 601. The processor 601 can be used to execute instructions stored in the memory 602, and when the processor 601 executes the instructions stored in the memory, the processor 601 is used to perform the various steps and / or processes in the above-described fiber optic measurement method embodiments.
[0088] The transceiver 601 may include a transmitter and a receiver. The transceiver 601 may further include antennas, and the number of antennas may be one or more. The processor 601 and memory 602 may be integrated with the transceiver 603 on different chips. For example, the processor 601 and memory 602 may be integrated in a baseband chip, and the transceiver 603 may be integrated in a radio frequency chip. Alternatively, the processor 601 and memory 602 may be integrated with the transceiver 603 on the same chip. This application does not limit this.
[0089] The transceiver 603 can also be a communication interface, such as an input / output interface or circuit. The transceiver 603, processor 601, and memory 602 can all be integrated into the same chip, such as within a baseband chip.
[0090] Those skilled in the art will understand that Figure 6 The device structure shown does not constitute a limitation on the fiber optic measurement system 600, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0091] This application also provides a computer-readable storage medium storing computer-executable instructions that are executed by one or more processors, for example, by... Figure 6 One of the processors 601 executes, which can cause the one or more processors to perform the fiber optic measurement method in the above method embodiments.
[0092] This application also provides a computer program product that, when executed on a computer, enables the computer to perform the fiber optic measurement method described in the above-described method embodiments.
[0093] It should be understood that the specific examples in the embodiments of this application are only to help those skilled in the art better understand the technical solutions of this application, and the above specific implementation methods can be considered as the optimal implementation methods of this application, rather than limiting the scope of the embodiments of this application.
[0094] It should be noted that the actions or methods executed by the controller can be implemented wholly or partially through software, hardware, firmware, or any other combination. When implemented using software, the actions or methods executed by the controller can be implemented wholly or partially in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in the embodiments of this application are generated wholly or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium, where the semiconductor medium can be a solid-state drive.
[0095] Optionally, the memory and processor in the above-described device embodiments can be physically independent units, or the memory can be integrated with the processor. This application does not limit this.
[0096] The processor in this application embodiment can be an integrated circuit chip with the ability to process signals. In implementation, each step of the above method embodiment can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application embodiment can be directly implemented by a hardware encoding processor, or by a combination of hardware and software modules in the encoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0097] The memory in this application embodiment can be volatile memory or non-volatile memory, or it can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0098] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0099] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0100] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, hardware, or other forms.
[0101] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0102] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) 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 USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0103] The above is a detailed description of the preferred embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A method for optical fiber measurement, characterized in that, The optical fiber is the optical fiber between the first network element and the second network element, and the method is executed by the first network element, including: Receive a first measurement command sent by a first upper-layer application, wherein the first measurement command is used to instruct the first network element to measure the optical fiber; According to the first measurement command, a first measurement request is sent to the second network element, wherein the first measurement request is used to request the second network element to agree to allow the first network element to measure the optical fiber; Upon receiving a first request response signal from the second network element in response to the first measurement request, the optical fiber is measured.
2. The method according to claim 1, characterized in that, The method further includes: If, during the process of sending the first measurement request to the second network element, a second measurement command is received from the first upper-layer application, a first rejection signal is sent to the first upper-layer application, wherein the second measurement command is used to instruct the first network element to measure the optical fiber; and / or If a second measurement command is received from the first upper-layer application during the measurement of the optical fiber, the first rejection signal is sent to the first upper-layer application, wherein the second measurement command is used to instruct the first network element to measure the optical fiber.
3. The method according to claim 1, characterized in that, The method further includes: If a second measurement request is received from the second network element during the process of sending the first measurement request to the second network element, a second rejection signal is sent to the second network element, wherein the second measurement request is used to request the first network element to agree to allow the second network element to perform measurements on the optical fiber; and / or If the first network element receives the second measurement request during the measurement of the optical fiber, the first network element sends a second rejection signal to the second network element, wherein the second measurement request is used to request the first network element to agree to allow the second network element to measure the optical fiber.
4. The method according to claim 1, characterized in that, The method further includes: Upon completion of the measurement of the optical fiber, a measurement termination request is sent to the second network element.
5. The method according to claim 1, characterized in that, After sending the first measurement request to the second network element, the method further includes: Upon receiving a second measurement request from the second network element, the system negotiates with the second network element whether the first network element should measure the optical fiber before the second network element, wherein the second measurement request is used to request the first network element to agree to the second network element measuring the optical fiber; If the result of the negotiation between the first network element and the second network element is that the first network element will measure the optical fiber before the second network element, the first measurement request will be resent to the second network element. Upon receiving a second request response signal from the second network element in response to the retransmission of the first measurement request, the optical fiber is measured.
6. The method according to claim 5, characterized in that, The step of negotiating with the second network element whether the first network element should measure the optical fiber before the second network element includes: Send a first negotiation request to the second network element, wherein the first negotiation request is used to request that the first network element measure the optical fiber before the second network element; Upon receiving a first negotiation response signal from the second network element in response to the first negotiation request, it is determined that the result of the negotiation between the first network element and the second network element is that the first network element shall measure the optical fiber before the second network element. The first negotiation response signal indicates that the second network element agrees that the first network element shall measure the optical fiber before the second network element.
7. The method according to claim 6, characterized in that, After sending the first negotiation request to the second network element, the method further includes: Upon receiving a second negotiation request from the second network element and determining that the priority of the first measurement request is higher than the priority of the second measurement request, a second negotiation response signal is sent to the second network element, wherein the second negotiation response signal is used to request the second network element to postpone the measurement of the optical fiber.
8. The method according to any one of claims 1 to 7, characterized in that, After sending the first measurement request to the second network element, the method further includes: If no response signal for the first request to the first measurement request is received from the second network element within a preset time period, the optical fiber is measured, or an error signal is sent to the first upper-layer application, wherein the error signal indicates that the first response signal has not been received.
9. The method according to any one of claims 1 to 7, characterized in that, Sending a first measurement request to the second network element according to the first measurement command includes: According to the first measurement command, a first transceiver port is determined in at least one transceiver port of the first network element, wherein at least one transceiver port of the first network element corresponds one-to-one with at least one transceiver port of at least one network element, and the first transceiver port corresponds to the second transceiver port of the second network element. The first measurement request is sent to the second network element through the first transceiver port.
10. A method for optical fiber measurement, characterized in that, The optical fiber is the optical fiber between the first network element and the second network element, and the method is executed by the second network element, including: The system receives a first measurement request sent by the first network element, wherein the first measurement request is used to request the second network element to agree to allow the first network element to measure the optical fiber; Based on the first measurement request, a first request response signal is sent to the first network element, the first request response signal being used to instruct the first network element to measure the optical fiber; or The first request response signal is used to indicate consent to the first network element measuring the optical fiber.
11. The method according to claim 10, characterized in that, The method further includes: Send a second measurement request to the first network element, wherein the second measurement request is used to request the first network element to agree to allow the second network element to measure the optical fiber; Receive the second rejection signal sent by the first network element.
12. The method according to claim 10, characterized in that, The method further includes: When the first network element finishes measuring the optical fiber, a measurement termination request sent by the first network element is received.
13. The method according to claim 10, characterized in that, After receiving the first measurement request sent by the first network element, the method further includes: When a second measurement request is sent to the first network element, the first network element is consulted on whether to measure the optical fiber before the second network element, wherein the second measurement request is used to request the first network element to agree to measure the optical fiber by the second network element; If the result of the negotiation between the first network element and the second network element is that the first network element performs the measurement on the optical fiber before the second network element, the first measurement request sent by the first network element will be received again. Send a second request response signal to the first network element in response to the retransmitted first measurement request, the second request response signal being used to instruct the first network element to measure the optical fiber; or The second request response signal is used to indicate consent to the first network element measuring the optical fiber.
14. The method according to claim 13, characterized in that, The step of negotiating with the first network element whether the first network element should measure the optical fiber before the second network element includes: The system receives a first negotiation request sent by the first network element, wherein the first negotiation request is used to request the first network element to measure the optical fiber before the second network element. In response to the first negotiation request, a first negotiation response signal is sent to the first network element, wherein the first negotiation response signal is used to indicate that the second network element agrees that the first network element shall measure the optical fiber before the second network element.
15. The method according to claim 14, characterized in that, After receiving the first negotiation request sent by the first network element, the method further includes: Send a second negotiation request to the first network element; The system receives a second negotiation response signal sent by the first network element, wherein the second negotiation response signal is used to request the second network element to postpone the measurement of the optical fiber.
16. The method according to any one of claims 10 to 15, characterized in that, The receiving of the first measurement request sent by the first network element includes: The first measurement request sent by the first network element is received through the second transceiver port. The second network element includes at least one transceiver port, and the at least one transceiver port of the second network element corresponds one-to-one with the at least one transceiver port of at least one network element. The second transceiver port corresponds to the first transceiver port of the first network element.
17. A fiber optic measurement system, characterized in that, The device includes at least one processor, at least one transceiver, and a memory for communicatively connecting to the at least one processor and the at least one transceiver; the memory stores instructions executable by the at least one processor and the at least one transceiver to enable the at least one processor and the at least one transceiver to perform the fiber optic measurement method as described in any one of claims 1 to 9 or 10 to 16.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the method as described in any one of claims 1 to 9 or 10 to 16.
19. A computer program product, characterized in that, When the computer program code or instructions are executed on a computer, the computer causes the computer to perform the method as described in any one of claims 1 to 9 or 10 to 16.