Method, device, and system for identifying anomaly location, and storage medium
By introducing a bidirectional abnormal signal monitoring mechanism into the communication network and calculating abnormal locations using time intervals, the problem of low abnormal positioning efficiency in the prior art is solved, and fast and accurate abnormal positioning is achieved.
Patent Information
- Application Number
- JP2023578833
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-06-21
- Filing Date
- 2022-04-29
- Publication Date
- 2025-04-16
- Estimated Expiration
- 2042-04-29
AI Technical Summary
In the prior art, when an abnormality occurs in a line in a communication network, it is necessary to manually locate the abnormal point, and the process time is consumed and abnormalities are easily missed.
By establishing a two-way monitoring mechanism for communication signals between network devices, the time interval of the abnormal position is calculated by using the abnormal signal received by the first device and the abnormal warning information transmitted by the second device, so as to quickly locate the abnormal point.
It improves the efficiency of abnormal positioning, reduces the time and error of manual positioning, and ensures timely detection and processing of abnormal points.
Smart Images

Figure 0007663722000001 
Figure 0007663722000002 
Figure 0007663722000003
Abstract
Description
[Technical field]
[0001] The present application relates to the field of communications, and in particular to an anomaly locating method, apparatus, and system, as well as a storage medium. [Background technology]
[0002] This application claims priority to Chinese Patent Application No. 202110687213.6, entitled “EXCEPTION LOCATING METHOD, APPARATUS, AND SYSTEM, AND STORAGE MEDIUM,” filed with the State Intellectual Property Office of China on June 21, 2021, which is incorporated herein by reference in its entirety.
[0003] In a communication network, any two adjacent network devices are connected via a line such as an optical fiber, which is susceptible to external factors that cause anomalies on the line. When an anomaly occurs on the line, the anomaly affects the quality of the communication signal transmitted on the line, and as a result, the communication signal changes to an anomalous communication signal. A network device that receives the anomalous communication signal generates bit errors.
[0004] When an anomaly occurs on a line, the location of the anomaly needs to be identified so that the line can be repaired. However, currently, when an anomaly occurs on a line connecting two network devices, the location of the anomaly is identified manually. This manual work is time-consuming and labor-intensive, and it is prone to overlooking the anomaly that has occurred. Summary of the Invention
[0005] The present application provides an anomaly location method, an apparatus and a system, and a storage medium, to improve the efficiency of anomaly location and avoid overlooking the occurrence of anomalies. The technical solutions are as follows:
[0006] According to a first aspect, the present application provides an anomaly location method. In this method, a first device receives a first anomaly signal. The first anomaly signal is a signal that is abruptly changed from the first communication signal when the first communication signal passes through a position of the anomaly on a first line, the first line being a line between the first device and a second device, and the first communication signal is a signal transmitted by the second device to the first device via the first line. The first device receives anomaly alarm information. The anomaly alarm information is transmitted by the second device after the second device receives a second anomaly signal, and the second anomaly signal is a signal that is abruptly changed from the second communication signal when the second communication signal passes through a position of the anomaly, and the second communication signal is a signal transmitted by the first device to the second device via the first line. The first device determines a position of the anomaly based on a first time interval. The first time interval is an interval between a time when the first anomaly signal is received and a time when the anomaly alarm information is received.
[0007] The first device receives the first abnormality signal, and the second device transmits abnormality alarm information to the first device after receiving the second abnormality signal. Thus, the first device receives the abnormality alarm information, obtains the first time interval, and determines the location of the abnormality based on the first time interval, thereby quickly determining the location of the abnormality. This improves the efficiency of identifying the abnormality location. When an abnormality occurs on the first line, the first device receives the first abnormality signal, and the second device receives the second abnormality signal. Therefore, when an abnormality occurs, the location of the abnormality is identified, and it is possible to avoid overlooking the abnormality that has occurred.
[0008] In addition, the time when the first abnormality signal is received and the time when the abnormality alarm information is received are both local times of the first device, and the first time interval is an interval between the two time points. Therefore, time synchronization is not required between the first device and the second device.
[0009] Furthermore, when a loopback device is used to locate the anomaly, the location process is as follows: When the loopback device is placed between the first device and the second device on the first line, the first device needs to establish a first link, a second link, and a third link on the first line. The first link and the second link are links between the first device and the second device. The first link is used to transmit a communication signal transmitted by the first device to the second device, the second link is used to transmit a communication signal transmitted by the second device to the first device, and the third link is a link between the first device and the loopback device. When an anomaly occurs on the line between the first device and the loopback device, the loopback device receives a second anomaly signal and transmits the second anomaly signal to the first device via the third link. Thus, the first device receives the first anomaly signal and the second anomaly signal, and locates the anomaly based on the first anomaly signal and the second anomaly signal. When an abnormality occurs on the line between the second device and the loopback device, the second device locates the abnormality in the same manner as the first device. However, in this application, the second device transmits abnormality alarm information to the first device to indicate a second abnormality signal. Therefore, there is no need to separately place a loopback device on the first line between the first device and the second device. This saves costs. In addition, this saves network resources consumed by separately establishing a third link between the first device and the loopback device, and saves network resources consumed by separately establishing a third link between the second device and the loopback device.
[0010] In a possible implementation, the first device determines a location of the anomaly based on the second time interval and the first time interval. The second time interval indicates an interval between a time when the second device receives the second anomaly signal and a time when the second device transmits the anomaly alarm information. Since the anomaly is located based on the second time interval, the accuracy of the anomaly location is improved.
[0011] In another possible implementation, the first device determines the location of the anomaly based on a device internal delay, a first time interval, and a second time interval. The device internal delay includes a delay required for the first device to receive the first anomaly signal, a delay required for the second device to receive the second anomaly signal, a delay required for the second device to transmit the anomaly alarm information, and a delay required for the first device to receive the anomaly alarm information. Since the anomaly is located based on the device internal delay and the second time interval, the accuracy of the anomaly location is greatly improved.
[0012] In another possible implementation, the first device includes a first clock counter, the second device includes a second clock counter, and the first device is a secondary device of the second device. The first device adjusts the timing frequency of the first clock counter based on the third communication signal so that the timing frequency of the first clock counter can be synchronized with the timing frequency of the second clock counter. The third communication signal is transmitted by the second device based on the working clock of the second clock counter. Since the timing frequency of the first clock counter is synchronized with the timing frequency of the second clock counter, the accuracy of obtaining the second time interval can be improved, and the accuracy of the anomaly localization can be improved.
[0013] In another possible implementation, the first device determines the primary / secondary relationship between the first device and the second device based on the device information of the first device and the device information of the second device. The primary device determined based on the device information is usually a device with high hardware performance, and the timing frequency of the clock counter of the primary device is usually stable. Therefore, the accuracy of obtaining the time interval can be improved by synchronizing the timing frequency of the clock counter of the secondary device with the timing frequency of the clock counter of the primary device.
[0014] In another possible implementation, the second time interval is a specified time interval, whereby the first device does not require the second device to provide the second time interval and simply uses the specified time interval as the second time interval, thereby simplifying the complexity of anomaly location.
[0015] In another possible implementation, the first device includes a first clock counter. The first device calculates a first time interval based on a first count value, a second count value, and a timing frequency of the first clock counter. The first count value is a count value of the first clock counter when the first device receives a first abnormality signal, and the second count value is a count value of the first clock counter when the first device receives the abnormality alarm information.
[0016] In another possible implementation, the first device receives delay information transmitted by the second device, the delay information indicating the second time interval, and the first device calculates the second time interval based on the delay information.
[0017] In another possible implementation, the second device includes a second clock counter, and the delay information includes a third count value and a fourth count value, or the delay information includes a difference between the third count value and the fourth count value, or the delay information includes a second time interval, where the third count value is a count value of the second clock counter when the second device receives the second abnormality signal, the fourth count value is a count value of the second clock counter when the second device transmits the abnormality alarm information, and the second time interval is obtained based on the third count value, the fourth count value, and a timing frequency of the second clock counter.
[0018] In another possible implementation, the first device receives a first packet sent by the second device, and a reserved field of the first packet includes abnormality warning information, so that the abnormality warning information does not occupy resources of a service and avoids affecting the service.
[0019] In another possible implementation, the first device receives a code stream sent by the second device, and an idle field of the code stream contains abnormality warning information, so that the abnormality warning information does not occupy the resource of the service and avoids affecting the service.
[0020] In another possible implementation, the first device receives a signal from the first line, and when the first device detects that the performance parameter value of the signal exceeds a specified threshold, the first device determines that the signal is a first abnormal signal, so that the first abnormal signal can be accurately detected based on the performance parameter value of the signal.
[0021] In another possible implementation, the performance parameters of the signal include at least one of a signal power, a signal to noise ratio SNR, a polarization dependent loss PDL, a bit error rate BER, a packet loss rate, and a state of polarization SOP value of the signal.
[0022] According to a second aspect, the present application provides an anomaly location method. In this method, a second device receives a second anomaly signal. The second anomaly signal is a signal that is abruptly changed from the second communication signal when the second communication signal passes a location of an anomaly on a first line, the first line being a line between the first device and the second device, and the second communication signal is a signal transmitted by the first device to the second device via the first line. The second device transmits anomaly alarm information to the first device. The anomaly alarm information alarms about the second anomaly signal, and the anomaly alarm information is further used to trigger the first device to determine the location of the anomaly.
[0023] The second device transmits the abnormality alarm information to the first device after receiving the second abnormality signal. Thus, the first device receives the abnormality alarm information, obtains the first time interval, and determines the location of the abnormality based on the first time interval, thereby quickly determining the location of the abnormality. This improves the efficiency of identifying the abnormality location. When an abnormality occurs on the first line, the second device receives the second abnormality signal and transmits the abnormality alarm information to the first device, so that the first device performs the abnormality location identification. Thus, when an abnormality occurs, the location of the abnormality is identified, and it is possible to avoid overlooking the occurring abnormality.
[0024] In a possible implementation, the first device includes a first clock counter, and the second device includes a second clock counter, and the second device is a secondary device of the first device. The second device adjusts the timing frequency of the second clock counter based on the fourth communication signal so that the timing frequency of the second clock counter can be synchronized with the timing frequency of the first clock counter. The fourth communication signal is transmitted by the first device based on the working clock of the first clock counter. Since the timing frequency of the first clock counter is synchronized with the timing frequency of the second clock counter, the accuracy of obtaining the second time interval can be improved, and the accuracy of the anomaly localization can be improved.
[0025] In another possible implementation, the second device determines the primary / secondary relationship between the first device and the second device based on the device information of the first device and the device information of the second device. The primary device determined based on the device information is usually a device with high hardware performance, and the timing frequency of the clock counter of the primary device is usually stable. Therefore, the accuracy of obtaining the time interval can be improved by synchronizing the timing frequency of the clock counter of the secondary device with the timing frequency of the clock counter of the primary device.
[0026] In another possible implementation, the second device transmits delay information to the first device. The delay information indicates a second time interval, and the second time interval indicates an interval between a time when the second device receives the second abnormality signal and a time when the second device transmits the abnormality alarm information. Thus, the first device can obtain the second time interval based on the delay information.
[0027] In another possible implementation, the second device includes a second clock counter, and the delay information includes a third count value and a fourth count value, or the delay information includes a difference between the third count value and the fourth count value, or the delay information includes a second time interval, where the third count value is a count value of the second clock counter when the second device receives the second abnormality signal, the fourth count value is a count value of the second clock counter when the second device transmits the abnormality alarm information, and the second time interval is obtained based on the third count value, the fourth count value, and a timing frequency of the second clock counter.
[0028] In another possible implementation, the interval between when the second device receives the second anomaly signal and when the second device transmits the anomaly alert information is a specified time interval, so that the first device does not require the second device to provide the second time interval and simply uses the specified time interval as the second time interval, thereby simplifying the complexity of anomaly location.
[0029] In another possible implementation, the second device sends a first packet to the first device, and a reserved field of the first packet includes abnormality warning information, so that the abnormality warning information does not occupy resources of the service and avoids affecting the service.
[0030] In another possible implementation, the second device transmits a code stream to the first device, and an idle field of the code stream contains the abnormality warning information, so that the abnormality warning information does not occupy the resource of the service and avoids affecting the service.
[0031] In another possible implementation, the second device adds the anomaly alert information to an idle field of at least one codestream frame to be transmitted, the codestream including the at least one codestream frame.
[0032] In another possible implementation, a second device receives a signal from the first line and determines that the signal is a second anomalous signal when the second device detects that a performance parameter value of the signal exceeds a specified threshold.
[0033] In another possible implementation, the performance parameters of the signal include at least one of a signal power, a signal to noise ratio SNR, a polarization dependent loss PDL, a bit error rate BER, a packet loss rate, and a state of polarization SOP value of the signal.
[0034] According to a third aspect, the present application provides an anomaly location method. In this method, a first device transmits a second communication signal to a second device via a first line. The first line is a line between the first device and the second device. The second device transmits the first communication signal to the first device via the first line. The first device receives a first anomaly signal. The first anomaly signal is a signal that is abruptly changed from the first communication signal when the first communication signal passes a position of the anomaly on the first line. The second device receives a second anomaly signal. The second anomaly signal is a signal that is abruptly changed from the second communication signal when the second communication signal passes a position of the anomaly. The second device transmits anomaly alarm information to the first device. The anomaly alarm information indicates the second anomaly signal. The first device receives the anomaly alarm information. The first device determines a position of the anomaly based on a first time interval. The first time interval is the interval between the time when the first device receives the first abnormality signal and the time when the first device receives the abnormality alarm information.
[0035] The first device receives the first abnormality signal, and the second device transmits abnormality alarm information to the first device after receiving the second abnormality signal. Thus, the first device receives the abnormality alarm information, obtains the first time interval, and determines the location of the abnormality based on the first time interval, thereby quickly determining the location of the abnormality. This improves the efficiency of identifying the abnormality location. When an abnormality occurs on the first line, the first device receives the first abnormality signal, and the second device receives the second abnormality signal. Therefore, when an abnormality occurs, the location of the abnormality is identified, and it is possible to avoid overlooking the abnormality that has occurred.
[0036] In addition, the time when the first abnormality signal is received and the time when the abnormality alarm information is received are both local times of the first device, and the first time interval is an interval between the two time points. Therefore, time synchronization is not required between the first device and the second device.
[0037] When a loopback device is used to locate an anomaly, the location process is as follows: When the loopback device is placed between a first device and a second device on a first line, the first device needs to establish a first link, a second link, and a third link on the first line. The first link and the second link are links between the first device and the second device. The first link is used to transmit a communication signal transmitted by the first device to the second device, the second link is used to transmit a communication signal transmitted by the second device to the first device, and the third link is a link between the first device and the loopback device. When an anomaly occurs on the line between the first device and the loopback device, the loopback device receives a second anomaly signal and transmits the second anomaly signal to the first device via the third link. Thus, the first device receives the first anomaly signal and the second anomaly signal, and locates the anomaly based on the first anomaly signal and the second anomaly signal. When an abnormality occurs on the line between the second device and the loopback device, the second device locates the abnormality in the same manner as the first device. However, in this application, the second device transmits abnormality alarm information to the first device to indicate a second abnormality signal. Therefore, there is no need to separately place a loopback device on the first line between the first device and the second device. This saves costs. In addition, this saves network resources consumed by separately establishing a third link between the first device and the loopback device, and saves network resources consumed by separately establishing a third link between the second device and the loopback device.
[0038] According to a fourth aspect, the present application provides an anomaly localization apparatus configured to perform the method according to the first aspect or any one of the possible implementations of the first aspect. In particular, the apparatus includes a unit configured to perform the method according to the first aspect or any one of the possible implementations of the first aspect.
[0039] According to a fifth aspect, the present application provides an anomaly localization apparatus configured to perform the method according to the second aspect or any one of the possible implementations of the second aspect. In particular, the apparatus includes a unit configured to perform the method according to the second aspect or any one of the possible implementations of the second aspect.
[0040] According to a sixth aspect, the present application provides an anomaly location apparatus. The apparatus includes a processor and a memory. The processor and the memory may be connected via an internal connection. The memory is configured to store a program, and the processor is configured to execute the program in the memory to enable the apparatus to complete a method according to the first aspect or any one of the possible implementations of the first aspect.
[0041] According to a seventh aspect, the present application provides an anomaly location apparatus. The apparatus includes a processor and a memory. The processor and the memory may be connected via an internal connection. The memory is configured to store a program, and the processor is configured to execute the program in the memory to enable the apparatus to complete a method according to the second aspect or any one of the possible implementations of the second aspect.
[0042] According to an eighth aspect, the present application provides a computer program product, the computer program product including a computer program stored on a computer readable storage medium, the computer program being loaded by a processor to perform a method according to any one of the first aspect, the second aspect, possible implementations of the first aspect, or possible implementations of the second aspect.
[0043] According to a ninth aspect, the present application provides a computer-readable storage medium configured to store a computer program, which, when loaded by a processor, performs a method according to any one of the first aspect, the second aspect, possible implementations of the first aspect, or possible implementations of the second aspect.
[0044] According to a tenth aspect, the present application provides a chip including a memory and a processor, the memory configured to store computer instructions, and the processor configured to retrieve the computer instructions from the memory and execute the computer instructions to perform a method according to any one of the first aspect, the second aspect, possible implementations of the first aspect, or possible implementations of the second aspect.
[0045] According to an eleventh aspect, the present application provides an anomaly location system, the system comprising an apparatus according to the fourth aspect and an apparatus according to the fifth aspect, or the system comprising an apparatus according to the sixth aspect and an apparatus according to the seventh aspect. [Brief description of the drawings]
[0046] [Figure 1] FIG. 1 is a schematic diagram of a network architecture according to an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of a working clock according to an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of another network architecture according to an embodiment of the present application; [Figure 4] 1 is a flow diagram of an anomaly location method according to an embodiment of the present application. [Diagram 5] 1 is a schematic diagram of adding abnormality warning information and detecting abnormality warning information according to an embodiment of the present application; [Figure 6] FIG. 2 is another schematic diagram of adding abnormality alert information and detecting abnormality alert information according to an embodiment of the present application. [Figure 7]4 is a schematic diagram of detecting a first abnormal signal and a second abnormal signal, adding abnormal alarm information, and detecting abnormal alarm information according to an embodiment of the present application. FIG. [Figure 8] FIG. 11 is another schematic diagram of detecting a first abnormal signal and a second abnormal signal, adding abnormal alarm information, and detecting abnormal alarm information according to an embodiment of the present application. [Figure 9] FIG. 2 is a schematic diagram of measuring internal delay of a device according to an embodiment of the present application. [Figure 10] 1 is a schematic diagram of the structure of an anomaly locating device according to an embodiment of the present application; [Figure 11] FIG. 2 is a schematic diagram of the structure of another anomaly locating apparatus according to an embodiment of the present application. [Figure 12] FIG. 2 is a schematic diagram of the structure of another anomaly locating apparatus according to an embodiment of the present application. [Figure 13] FIG. 2 is a schematic diagram of the structure of another anomaly locating apparatus according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0047] Hereinafter, the embodiments of the present application will be described in more detail with reference to the accompanying drawings.
[0048] See FIG. 1. An embodiment of the present application is The system includes a first device 101 and a second device 102, the first device 101 and the second device 102 are connected via a first line 103, and the first device 101 communicates with the second device 102 via the first line 103; A network architecture 100 is provided.
[0049] For example, the second device 102 transmits a first communication signal to the first device 101 via the first line 103, and the first device 101 receives the first communication signal, and / or the first device 101 transmits a second communication signal to the second device 102 via the first line 103, and the second device 102 receives the second communication signal.
[0050] In some embodiments, the first device 101 and the second device 102 establish a first link and a second link over the first line 103. The second device 102 transmits a first communication signal to the first device 101 over the first link, and the first device 101 transmits a second communication signal to the second device 102 over the second link.
[0051] The first device 101 and the second device 102 are two network devices in a communication network. For example, the first device 101 and / or the second device 102 may include a router, a switch, and / or a base station.
[0052] The first line 103 may be an optical fiber or a cable, or the like.
[0053] The first device 101 includes a first clock counter and / or a first clock, and the second device 102 includes a second clock counter and / or a second clock.
[0054] The first clock counter is for counting. When sending a second communication signal to the second device 102, the first device 101 obtains the working clock of the first clock counter, and sends the second communication signal to the second device 102 according to the working clock of the first clock counter.
[0055] For example, see Fig. 2. The working clock of the first clock counter is a signal. Each time a rising edge or a falling edge of this signal arrives, the first device 101 transmits a second communication signal to the second device 102. Furthermore, the first device 101 inputs this signal into the first clock counter, which is configured to count the rising edges or the falling edges of this signal.
[0056] In some embodiments, the signal is a periodic waveform signal, such as a square wave signal or a sine wave signal.
[0057] The second clock counter is for counting. When sending a first communication signal to the first device 101, the second device 102 obtains the working clock of the second clock counter, and sends the first communication signal to the first device 101 according to the working clock of the second clock counter.
[0058] For example, see Fig. 2. The working clock of the second clock counter is also a signal. Each time a rising edge or a falling edge of this signal arrives, the second device 102 transmits a first communication signal to the first device 101. Furthermore, the second device 102 inputs this signal into the second clock counter, which is configured to count the rising edges or the falling edges of this signal.
[0059] In some embodiments, the first clock and the second clock are high-precision clocks, the first clock in the first device is configured to provide time and the second clock in the second device is also configured to provide time.
[0060] In some embodiments, the network architecture 100 includes an optical transmission system, a packet transmission system, or the like.
[0061] When the network architecture 100 is an optical transmission system, see Fig. 3. The first device 101 includes a first optical module, and the second device 102 includes a second optical module. The first device 101 transmits a second communication signal to the second device 102 using the first optical module, and the second device 102 transmits the first communication signal to the first device 101 using the second optical module.
[0062] The structure of the first optical module is the same as that of the second optical module, and the first optical module (or the second optical module) includes a transmission channel and a receiving channel. The transmission channel includes a transmission serializer / deserializer (TX SDS), a transmission framer / deframer (TX FRM), a transmission forward error control (TX FEC), a transmission digital signal processor (TX DSP), a digital to analog converter (DAC), and an electrical-to-optical conversion module (E / O) interface. The receive channel includes a reception serializer / deserializer (RX SDS), a reception framer / deframer (RX FRM), a reception forward error control (RX FEC), a reception digital signal processor (RX DSP), an analog to digital converter (ADC), and an optical-to-electrical conversion module (O / E) interface. The RX DSP includes a clock data recovery (CDR).
[0063] In some embodiments, the first link is a link between a receive channel of the first device and a transmit channel of the second device, and the second link is a link between a transmit channel of the first device and a receive channel of the second device.
[0064] In some embodiments, the process by which the first device 101 transmits the second communication signal to the second device 102 is as follows.
[0065] In the first optical module included in the first device 101, a TX SDS in the first optical module receives first data from a board of the first device 101, where the first data is data that the first device 101 needs to send to the second device 102, and the first data is serial data. The TX SDS converts the first data into parallel data, where the format of the parallel data is a first format. The TX SDS inputs the data in the first format to the TX FRM. The first format includes a first optical transport unit (OTU) service format, or an Ethernet service format.
[0066] The TX FRM converts the data in the first format into data in the second OTU service format, and inputs the data in the second OTU service format to the TX FEC. TU The service format is the second O TU This is different from the service format.
[0067] The TX FEC performs FEC encoding on the data of the second OTU service format to obtain a first bit stream, and inputs the first bit stream to the TX DSP.
[0068] The TX DSP performs pre-processing on the first bitstream to obtain a first codestream. The first codestream includes at least one codestream frame. The pre-processing includes channel equalization and noise reduction, etc. The TX DSP inputs the first codestream to a DAC.
[0069] The DAC converts the first code stream into a first analog signal according to the working clock of the first clock counter, and inputs the first analog signal into the E / O interface.
[0070] The E / O interface converts the first analog signal to a first optical signal, which is a second communication signal. The E / O interface transmits the second communication signal on a first line 103 to a second device 102.
[0071] In a second optical module included in the second device 102, an O / E interface in the second optical module receives a second communication signal from the first line 103, converts the second communication signal to a first analog signal, and inputs the first analog signal to the ADC.
[0072] The ADC converts the first analog signal into a first code stream and inputs the first code stream to the RX DSP.
[0073] The RX DSP converts the first code stream into a binary first bit stream and inputs the binary first bit stream into the RX FEC.
[0074] The RX FEC performs FEC decoding on the binary first bit stream to obtain data in a second OTU service format, and inputs the data in the second OTU service format to the RX FRM.
[0075] The RX FRM converts the data of the second OTU service format into data of a first format, where the data of the first format is parallel data. The RX FRM inputs the data of the first format into the RX SDS.
[0076] The RX SDS converts the data in the first format into serial first data and inputs the first data into the board of the second device 102 .
[0077] In some embodiments, the process by which the second device 102 transmits a first communication signal to the first device 101 is as follows.
[0078] In the second optical module included in the second device 102, the TX SDS in the second optical module receives second data from the board of the second device 102, where the second data is data that the second device 102 needs to send to the first device 101, and this data is serial data. The TX SDS converts this data to parallel data, where the format of this parallel data is a first format. The TX SDS inputs the data in the first format to the TX FRM.
[0079] The TX FRM converts the data in the first format into data in the second OTU service format, and inputs the data in the second OTU service format to the TX FEC.
[0080] The TX FEC performs FEC encoding on the data of the second OTU service format to obtain a second bit stream, and inputs the second bit stream to the TX DSP.
[0081] The TX DSP performs pre-processing on the second bitstream to obtain a second codestream, the second codestream including at least one codestream frame, and inputs the second codestream to a DAC.
[0082] The DAC converts the second code stream into a second analog signal according to a working clock corresponding to the second clock counter, and inputs the second analog signal into the E / O interface.
[0083] The E / O interface converts the second analog signal to a second optical signal, which is the first communication signal. The E / O interface transmits the first communication signal on the first line 103 to the first device 101.
[0084] In a first optical module included in the first device 101, an O / E interface in the first optical module receives a first communication signal from the first line 103, converts the first communication signal into a second analog signal, and inputs the second analog signal to an ADC.
[0085] The ADC converts the second analog signal into a second code stream and inputs the second code stream to the RX DSP.
[0086] The RX DSP converts the second code stream into a binary second bit stream and inputs the binary second bit stream into the RX FEC.
[0087] The RX FEC performs FEC decoding on the binary second bit stream to obtain data in a second OTU service format, and inputs the data in the second OTU service format to the RX FRM.
[0088] The RX FRM converts the data of the second OTU service format into data of a first format, where the data of the first format is parallel data. The RX FRM inputs the data of the first format into the RX SDS.
[0089] The RX SDS converts the data in the first format into serial second data, and inputs this second data into the board of the first device 101 .
[0090] It should be noted that the first line 103 may be subject to external factors that cause anomalies on the first line 103. For example, the first line 103 may be subject to factors such as electromagnetic interference, external extrusion, external bending, and / or lightning strikes that cause anomalies on the first line 103.
[0091] Regarding an abnormality occurring on the first line 103, an abnormality occurs on the first line 103 when the first line 103 is affected by an external factor, and the first line 103 may return to normal when the external factor affecting the first line 103 no longer has an effect. In other words, an abnormality occurring on the first line 103 is a temporary abnormality. For example, an abnormality occurs on the first line 103 when the first line 103 is affected by electromagnetic interference, and the first line 103 returns to normal after the electromagnetic interference affecting the first line 103 disappears. Alternatively, When the first line 103 is affected by an external factor, an abnormality occurs on the first line 103, and when the external factor affecting the first line 103 no longer has an effect, the abnormality occurring on the first line 103 does not disappear. In other words, the abnormality occurring on the first line 103 is a permanent abnormality, and the first line 103 is defective. For example, when the first line 103 is subjected to external extrusion, external bending, and / or lightning, the first line 103 may be damaged. 3 The internal structure of the first line 103 becomes damaged and the first line 103 becomes defective.
[0092] When an anomaly occurs on the first line 103, for a first communication signal transmitted on the first line 103, the first communication signal abruptly changes to a first abnormal signal when passing through the location of the anomaly, and the first abnormal signal continues to be transmitted to the first device 101. The first device 101 receives the first abnormal signal and parses the first abnormal signal. As a result, bit errors may be generated.
[0093] The performance parameter of the first communication signal does not exceed a specified threshold. When the first communication signal passes through the location of the anomaly, the performance parameter of the first communication signal changes abruptly, the first communication signal changes to a first abnormal signal, and the performance parameter of the first abnormal signal exceeds a specified threshold.
[0094] The performance parameters of the first communication signal include at least one of signal power, signal-to-noise ratio (SNR), polarization-dependent loss (PDL), bit error rate (BER), packet loss rate, and state of polarization (SOP) value, etc.
[0095] A performance parameter of the first communication signal not exceeding a specified threshold means that the signal power of the first communication signal is equal to or greater than a specified power threshold, the signal-to-noise ratio of the first communication signal is equal to or greater than a specified signal-to-noise ratio threshold, the polarization dependent loss of the first communication signal is equal to or less than a specified loss threshold, the bit error rate of the first communication signal is equal to or less than a specified bit error rate threshold, the packet loss rate of the first communication signal is equal to or less than a specified packet loss rate threshold, and / or the polarization state value of the first communication signal is equal to or less than a specified polarization state threshold.
[0096] A performance parameter of the first abnormal signal exceeds a specified threshold means that the signal power of the first abnormal signal is below a specified power threshold, the signal-to-noise ratio of the first abnormal signal is below a specified signal-to-noise ratio threshold, the polarization dependent loss of the first abnormal signal is above a specified loss threshold, the bit error rate of the first abnormal signal is above a specified bit error rate threshold, the packet loss rate of the first communications signal is above a specified packet loss rate threshold, and / or the polarization state value of the first communications signal is above a specified polarization state threshold.
[0097] For a second communication signal transmitted on the first line 103, the second communication signal abruptly changes to a second anomalous signal when passing through the location of the anomaly, and the second anomalous signal continues to be transmitted to the second device 102. The second device 102 receives the second anomalous signal and parses the second anomalous signal. As a result, bit errors may be generated.
[0098] The performance parameter of the second communication signal does not exceed a specified threshold. When the second communication signal passes through the location of the anomaly, the performance parameter of the second communication signal changes abruptly, the second communication signal changes to a second abnormal signal, and the performance parameter of the second abnormal signal exceeds a specified threshold.
[0099] A performance parameter of the second communications signal not exceeding a specified threshold means that the signal power of the second communications signal is equal to or greater than a specified power threshold, the signal-to-noise ratio of the second communications signal is equal to or greater than a specified signal-to-noise ratio threshold, the polarization dependent loss of the second communications signal is equal to or less than a specified loss threshold, the bit error rate of the second communications signal is equal to or less than a specified bit error rate threshold, the packet loss rate of the second communications signal is equal to or less than a specified packet loss rate threshold, and / or the polarization state value of the second communications signal is equal to or less than a specified polarization state threshold.
[0100] A performance parameter of the second abnormal signal exceeds a specified threshold means that the signal power of the second abnormal signal is below a specified power threshold, the signal-to-noise ratio of the second abnormal signal is below a specified signal-to-noise ratio threshold, the polarization dependent loss of the second abnormal signal is above a specified loss threshold, the bit error rate of the second abnormal signal is above a specified bit error rate threshold, the packet loss rate of the second communications signal is above a specified packet loss rate threshold, and / or the polarization state value of the second communications signal is above a specified polarization state threshold.
[0101] When an abnormality occurs on the first line 103, the communication signal transmitted on the first line 103 changes to an abnormal signal. As a result, the device receiving the abnormal signal generates bit errors. Therefore, the first line 10 3 The anomaly occurring on the first line 103 is located to obtain the location of the anomaly so that a technician can view and / or repair the anomaly occurring on the first line 103 based on the location.
[0102] Please refer to Fig. 4. An embodiment of the present application provides an anomaly locating method 400. The method 400 can be applied to the network architecture 100 shown in Fig. 1, Fig. 2 or Fig. 3, and includes the following steps.
[0103] Step 401: A first device determines a primary / secondary relationship between the first device and a second device, where the first device communicates with the second device via a first line.
[0104] In step 401, the first device determines the primary / secondary relationship between the first device and the second device by performing the following operations 4011 to 4013. The operations 4011 to 4013 are respectively as follows:
[0105] 4011: A first device transmits device information of the first device to a second device.
[0106] In some embodiments, the device information of the first device includes a device identifier of the first device and / or resource information of the first device.
[0107] In some embodiments, the device identifier of the first device is a string that includes at least one character, the at least one character including letters and / or numbers, and the like.
[0108] In some embodiments, the resource information of the first device includes at least one resource parameter, the at least one resource parameter including at least one of a processor frequency, a quantity of processor cores, and a memory resource size of the first device, etc.
[0109] In some embodiments, the first device transmits device information of the first device to the second device when available, and / or the first device transmits device information of the first device to the second device on a regular or irregular basis.
[0110] Similar to the first device, the second device may also transmit device information of the second device to the first device.
[0111] 4012: The first device receives device information of the second device.
[0112] 4013: The first device determines a primary / secondary relationship between the first device and the second device based on the device information of the first device and the device information of the second device.
[0113] A primary / secondary relationship is when a first device is a primary device of a second device, in other words, the second device is a secondary device of the first device, or alternatively, a primary / secondary relationship is when a first device is a secondary device of a second device, in other words, the second device is a primary device of the first device.
[0114] When the device information of the first device includes a device identifier of the first device and the device information of the second device includes a device identifier of the second device, the first device compares the device identifier of the first device with the device identifier of the second device and determines a primary / secondary relationship between the first device and the second device based on the comparison result.
[0115] In some embodiments, when the device identifier of the first device consists of numbers and the device identifier of the second device consists of numbers, when the device identifier of the first device consists of letters and the device identifier of the second device consists of letters, or when the device identifier of the first device consists of numbers and / or letters and the device identifier of the second device consists of numbers and / or letters, the first device compares the device identifier of the first device with the device identifier of the second device to obtain an alignment order between the device identifier of the first device and the device identifier of the second device. The device corresponding to the device identifier that is aligned first is used as the primary device, and the device corresponding to the device identifier that is aligned later is used as the secondary device. Alternatively, the device corresponding to the device identifier that is aligned first is used as the secondary device, and the device corresponding to the device identifier that is aligned later is used as the primary device.
[0116] For example, assuming that the device identifier of a first device is "123" and the device identifier of a second device is "124", the device identifier "123" of the first device is compared with the device identifier "124" of the second device to find that the device identifier "123" of the first device is ordered before the device identifier "124" of the second device. Thus, the first device corresponding to the device identifier "123" is used as the primary device, and the device corresponding to the device identifier "124" is used as the secondary device.
[0117] In another example, assuming that the device identifier of a first device is "abc" and the device identifier of a second device is "acd", the device identifier "abc" of the first device is compared with the device identifier "acd" of the second device. Since the first character of both device identifiers is "a" and the second character "b" of the device identifier of the first device is aligned before the second character "c" of the device identifier of the second device, it can be seen that the device identifier "abc" of the first device is aligned before the device identifier "acd" of the second device. Thus, the first device corresponding to the device identifier "abc" is used as the primary device, and the device corresponding to the device identifier "acd" is used as the secondary device.
[0118] In yet another example, assume that the device identifier of a first device is "a12" and the device identifier of a second device is "a23", the device identifier "a12" of the first device is compared with the device identifier "a23" of the second device. Since the first character of both device identifiers is "a" and the second character "1" of the device identifier of the first device is aligned before the second character "2" of the device identifier of the second device, it can be seen that the device identifier "a12" of the first device is aligned before the device identifier "a23" of the second device. Thus, the first device corresponding to the device identifier "a12" is used as the primary device, and the device corresponding to the device identifier "a23" is used as the secondary device.
[0119] When the device information of the first device includes resource information of the first device and the device information of the second device includes resource information of the second device, the first device compares the resource information of the first device with the resource information of the second device, and determines a primary / secondary relationship between the first device and the second device based on the comparison result.
[0120] In some embodiments, a first device compares resource information of the first device with resource information of a second device to obtain a device with optimal resources and uses this device as the primary device and the other device as the secondary device.
[0121] When the resource information of the first device includes one resource parameter and the resource information of the second device includes one resource parameter, the first device compares the resource parameter included in the resource information of the first device with the resource parameter included in the resource information of the second device to obtain a device having the optimal resource.
[0122] For example, assuming that the resource information of the first device includes a processor frequency of the first device and the resource information of the second device includes a processor frequency of the second device, the processor frequency of the first device is compared with the processor frequency of the second device. If the processor frequency of the first device is higher than the processor frequency of the second device, in other words, if the resource of the first device is better than the resource of the second device, the first device is used as the primary device and the second device is used as the secondary device. If the processor frequency of the first device is lower than the processor frequency of the second device, in other words, if the resource of the second device is better than the resource of the first device, the second device is used as the primary device and the first device is used as the secondary device.
[0123] In another example, assuming that the resource information of the first device includes a quantity of processor cores of the first device and the resource information of the second device includes a quantity of processor cores of the second device, the quantity of processor cores of the first device is compared to the quantity of processor cores of the second device. If the quantity of processor cores of the first device is greater than the quantity of processor cores of the second device, in other words, if the resources of the first device are better than the resources of the second device, the first device is used as the primary device and the second device is used as the secondary device. If the quantity of processor cores of the first device is less than the quantity of processor cores of the second device, in other words, if the resources of the second device are better than the resources of the first device, the second device is used as the primary device and the first device is used as the secondary device.
[0124] In yet another example, assuming that the resource information of the first device includes a storage resource size of the first device and the resource information of the second device includes a storage resource size of the second device, the storage resource size of the first device is compared to the storage resource size of the second device. If the storage resource size of the first device is larger than the storage resource size of the second device, in other words, if the resources of the first device are better than the resources of the second device, the first device is used as the primary device and the second device is used as the secondary device. If the storage resource size of the first device is smaller than the storage resource size of the second device, in other words, if the resources of the second device are better than the resources of the first device, the second device is used as the primary device and the first device is used as the secondary device.
[0125] When the resource information of the first device includes multiple resource parameters and the resource information of the second device includes multiple resource parameters, the first device obtains device parameters of the first device based on the resource information of the first device, where the device parameters indicate the resources of the first device. The device parameters of the second device are obtained based on the resource information of the second device, where the device parameters indicate the resources of the second device. The device parameters of the first device are compared with the device parameters of the second device to obtain a device with the optimal resources, and the device is used as the primary device and the other device is used as the secondary device.
[0126] In some embodiments, the first device performs a weighting process on a plurality of resource parameters included in the resource information of the first device to obtain device parameters of the first device, and performs a weighting process on a plurality of resource parameters included in the resource information of the second device to obtain device parameters of the second device.
[0127] For example, assuming that the resource information of a first device includes a processor frequency and a memory resource size of the first device, and the resource information of a second device includes a processor frequency and a memory resource size of the second device, the device parameters corresponding to the first device are calculated based on the resource information of the first device using the following first formula, and the device parameters of the second device are calculated based on the resource information of the second device using the following first formula:
[0128] The first formula is Z=F*λ 1 +R*λ 2 It is.
[0129] Z is a device parameter of the first device, F is a processor frequency of the first device, and R is a storage resource size of the first device. Alternatively, Z is a device parameter of the second device, F is a processor frequency of the second device, and R is a storage resource size of the second device. * is a multiplication operation, and λ 1 and λ 2 are the weights corresponding to the processor frequency and the storage resource size, respectively.
[0130] The device parameters of the first device are compared with the device parameters of the second device. If the device parameters of the first device are higher than the device parameters of the second device, in other words, if the resources of the first device are better than the resources of the second device, the first device is used as the primary device and the second device is used as the secondary device. If the device parameters of the first device are lower than the device parameters of the second device, in other words, if the resources of the second device are better than the resources of the first device, the second device is used as the primary device and the first device is used as the secondary device.
[0131] In some embodiments, the first device also transmits device information of the first device to the second device, and the second device determines the primary / secondary relationship between the first device and the second device in a manner similar to that of the first device.
[0132] In some embodiments, when the first device determines the primary / secondary relationship between the first device and the second device, the first device transmits the primary / secondary relationship to the second device. In this case, the first device may not transmit the device information of the first device to the second device, in other words, the second device may not need to determine the primary / secondary relationship between the first device and the second device.
[0133] Step 402: When the first device is a secondary device of the second device, the first device adjusts the timing frequency of the first clock counter based on the third communication signal so that the timing frequency of the first clock counter can be synchronized with the timing frequency of the second clock counter, where the third communication signal is a communication signal transmitted by the second device.
[0134] The first device includes a first clock counter, and the second device includes a second clock counter. When the first line between the first device and the second device is normal, the second device can send a normal communication signal to the first device. The sending process is as follows: Since the second device is the primary device, the second device generates a working clock of the second clock counter, and sends a third communication signal to the first device according to the working clock of the second clock counter.
[0135] Since the first device is a secondary device of the second device, after receiving the third communication signal, the first device recovers the working clock of the second clock counter based on the third communication signal. The first device adjusts the timing frequency of the first clock counter based on the working clock. The adjusted timing frequency of the first clock counter is equal to the timing frequency of the second clock counter, or the timing frequency of the second clock counter is N times the adjusted timing frequency of the first clock counter, where N is an integer greater than 1.
[0136] In some embodiments, the first device may determine a timing frequency of the second clock counter based on the working clock.
[0137] In some embodiments, for the working clock of the second clock counter generated by the second device, the working clock is a signal, and the second clock counter counts the rising or falling edges of this working clock. The first device recovers the working clock of the second clock counter, uses this working clock as the working clock of the first clock counter, and inputs this working clock into the first clock counter. The first clock counter counts the rising or falling edges of this working clock to adjust the timing frequency of the first clock counter, so that the timing frequency of the first clock counter can be equal to the timing frequency of the second clock counter.
[0138] In some embodiments, the first device generates a working clock of the first clock counter based on the recovered working clock of the second clock counter, and inputs the working clock to the first clock counter, which counts rising edges or falling edges of the working clock to adjust the timing frequency of the first clock counter, so that the timing frequency of the first clock counter can be equal to the timing frequency of the second clock counter, or the timing frequency of the second clock counter can be N times the adjusted timing frequency of the first clock counter.
[0139] When the first line between the first device and the second device is normal, the first device can send a normal communication signal to the second device. The sending process is as follows: the first device sends a fourth communication signal to the second device according to the working clock of the first clock counter.
[0140] In some embodiments, the first device and the second device establish a first link and a second link over the first line, and the second device transmits a third communication signal to the first device over the first link, and the first device transmits a fourth communication signal to the second device over the second link.
[0141] In some embodiments, see FIG. 3. In the case of application to an optical transmission system, the first device receives a third communication signal through an O / E interface, and the O / E interface of the first device converts the third communication signal into a third analog signal and inputs the third analog signal into the ADC of the first device. The ADC of the first device converts the third analog signal into a third code stream and inputs the third code stream into the RX DSP of the first device. The RX DSP of the first device converts the third code stream into a binary third bit stream. The RX DSP includes a CDR, and the CDR recovers the working clock of the second clock counter based on the third code stream. The first device adjusts the timing frequency of the first clock counter based on the working clock of the second clock counter.
[0142] The RX DSP of the first device further inputs the binary third bit stream to the RX FEC of the first device. The RX FEC of the first device performs FEC decoding on the binary third bit stream to obtain data of a second OTU service format, and inputs the data of the second OTU service format to the RX FRM of the first device. The RX FRM of the first device converts the data of the second OTU service format to data of a first format, where the data of the first format is parallel data. The RX FRM inputs the data of the first format to the RX SDS of the first device. The RX SDS of the first device converts the data of the first format to serial data, and inputs the serial data to the board of the first device.
[0143] When the second device is a secondary device of the first device, the second device recovers the working clock of the first clock counter according to the fourth communication signal, and adjusts the timing frequency of the second clock counter according to the working clock of the first clock counter, where the adjusted timing frequency of the second clock counter is equal to the timing frequency of the first clock counter, or the timing frequency of the first clock counter is N times the adjusted timing frequency of the second clock counter, where N is an integer greater than 1.
[0144] In some embodiments, for application to an optical transmission system, the second device receives a fourth communication signal via an O / E interface, the O / E interface of the second device converts the fourth communication signal to a fourth analog signal and inputs the fourth analog signal to an ADC of the second device. The ADC of the second device converts the fourth analog signal to a fourth code stream and inputs the fourth code stream to an RX DSP of the second device. The RX DSP of the second device converts the fourth code stream to a binary fourth bit stream. The RX DSP includes a CDR. The CDR recovers a working clock of the first clock counter based on the fourth code stream. The second device adjusts a timing frequency of the second clock counter based on the working clock of the first clock counter.
[0145] The RX DSP of the second device further inputs the binary fourth bit stream to the RX FEC of the second device. The RX FEC of the second device performs FEC decoding on the binary fourth bit stream to obtain data of a second OTU service format, and inputs the data of the second OTU service format to the RX FRM of the second device. The RX FRM of the second device converts the data of the second OTU service format to data of a first format, where the data of the first format is parallel data. The RX FRM inputs the data of the first format to the RX SDS of the second device. The RX SDS of the second device converts the data of the first format to serial data, and inputs the serial data to the board of the second device.
[0146] The detailed implementation of the second device that adjusts the timing frequency of the second clock counter is the same as that of the first device that adjusts the timing frequency of the first clock counter, and the details will not be repeated in this specification.
[0147] The above steps 401 and 402 are optional steps, i.e., the first device may not execute the above steps 401 and 402. In other words, the first device and / or the second device may not need to determine the primary / secondary relationship between the first device and the second device, and the first device and / or the second device may not need to synchronize the timing frequency of the first clock counter with the timing frequency of the second clock counter. In this case, when an anomaly occurs on the first line between the first device and the second device, the first device uses the following steps to locate the anomaly.
[0148] For example, when the first device includes a high-precision first clock and the second device includes a high-precision second clock, step 40 above may be repeated. 1And step 402 may not be performed.
[0149] After the timing frequency of the first clock counter of the first device can be synchronized with the timing frequency of the second clock counter of the second device, when an anomaly occurs on the first line between the first device and the second device, the first device locates the location of the anomaly using the following steps:
[0150] Step 403: A first device receives a first abnormality signal, where the first abnormality signal is a signal that changes abruptly from the first communication signal when the first communication signal passes through a location of an anomaly on the first line, and the first communication signal is a signal transmitted by a second device to the first device via the first line.
[0151] When the second device transmits a first communication signal to the first device on the first line, the first communication signal is a normal communication signal transmitted by the second device to the first device. When an abnormality occurs on the first line and the first communication signal is transmitted to the location of the abnormality on the first line, the first communication signal changes suddenly, and the first communication signal changes from a normal communication signal to an abnormal first abnormal signal. The first abnormal signal continues to be transmitted to the first device on the first line, and the transmission rate of the first abnormal signal is the same as the transmission rate of the first communication signal.
[0152] In some embodiments, the performance parameter of the first communication signal does not exceed a specified threshold, and when the first communication signal passes through a location of the anomaly, the performance parameter of the first communication signal changes abruptly, the first communication signal changes to a first anomalous signal, and the performance parameter of the first anomalous signal exceeds the specified threshold.
[0153] In step 403, the first device receives a signal from a first line (a first link on the first line), detects a performance parameter of the signal, and determines that the received signal is a first abnormal signal when the performance parameter of the signal exceeds a specified threshold.
[0154] In some embodiments, the first abnormal signal is the abnormal signal received by the first device for the first time.
[0155] The performance parameters of the signal include at least one of signal power, signal to noise ratio, polarization dependent loss, bit error rate, packet loss rate, and polarization state value, and the like.
[0156] In some embodiments, when the first device detects that a signal power of the signal is below a specified power threshold, a signal-to-noise ratio of the signal is below a specified signal-to-noise ratio threshold, a polarization dependent loss of the signal is above a specified loss threshold, a bit error rate of the signal is above a specified bit error rate threshold, a packet loss rate of the signal is above a specified packet loss rate threshold, and / or a polarization state value of the signal is above a specified polarization state threshold, the first device determines that the signal is a first anomalous signal.
[0157] In the case of application to an optical transmission system, the process of the second device transmitting the first communication signal may be referred to the process of the second device transmitting the first communication signal to the first device in the embodiment shown in Fig. 1. The process of the first device determining the first abnormal signal may be as follows. Refer to Fig. 3. The O / E interface of the first device receives a signal from the first line (the first link on the first line) and inputs the signal to the ADC of the first device. The ADC of the first device converts the signal to a first code stream and inputs the first code stream to the RX DSP of the first device. The RX DSP of the first device detects a performance parameter of the first code stream, and determines that the received signal is a first abnormal signal, in other words, that a first abnormal signal is detected, when it detects that the performance parameter of the first code stream exceeds a specified threshold.
[0158] In some embodiments, the first device further acquires a first count value, where the first count value is a count value of the first clock counter when the first device receives the first abnormal signal, and / or the first device acquires a first reception time point, where the first reception time point is the time of the first clock when the first device receives the first abnormal signal.
[0159] In some embodiments, when the RX DSP of the first device detects the first abnormal signal, the first device acquires a count value of a first clock counter to obtain a first count value, and / or when the RX DSP of the first device detects the first abnormal signal, the first device acquires a time of a first clock to obtain a first reception time point.
[0160] Step 404: A second device receives a second anomaly signal, where the second anomaly signal is a signal that changes abruptly from the second communication signal when the second communication signal passes through the location of the anomaly on the first line, and the second communication signal is a signal transmitted by the first device to the second device via the first line.
[0161] When the first device transmits a second communication signal to the second device on the first line, similarly to the second device, the second communication signal is also a normal communication signal transmitted by the first device to the second device. When an abnormality occurs on the first line and the second communication signal is transmitted to the location of the abnormality on the first line, the second communication signal changes suddenly, and the second communication signal changes from a normal communication signal to a non-normal second abnormal signal. The second abnormal signal continues to be transmitted to the second device on the first line, and the transmission speed of the second abnormal signal is the same as the transmission speed of the second communication signal.
[0162] In some embodiments, the performance parameter of the second communication signal does not exceed a specified threshold, and when the second communication signal passes through the location of the anomaly, the performance parameter of the second communication signal changes abruptly, the second communication signal changes to a second anomalous signal, and the performance parameter of the second anomalous signal exceeds the specified threshold.
[0163] In step 404, the second device receives a signal from the first line (a second link on the first line), detects a performance parameter of the signal, and determines that the received signal is a second anomalous signal when it detects that the performance parameter of the signal exceeds a specified threshold.
[0164] In some embodiments, the second abnormal signal is an abnormal signal received by the second device for the first time.
[0165] The performance parameters of the signal include at least one of signal power, signal to noise ratio, polarization dependent loss, bit error rate, packet loss rate, and polarization state value, and the like.
[0166] In some embodiments, when the second device detects that the signal power of the signal is below a specified power threshold, the signal-to-noise ratio of the signal is below a specified signal-to-noise ratio threshold, the polarization dependent loss of the signal is above a specified loss threshold, the bit error rate of the signal is above a specified bit error rate threshold, the packet loss rate of the signal is above a specified packet loss rate threshold, and / or the polarization state value of the signal is above a specified polarization state threshold, the second device determines that the signal is a second anomalous signal.
[0167] In the case of application to an optical transmission system, the process of the first device transmitting the second communication signal may be referred to the process of the first device transmitting the first communication signal to the second device in the embodiment shown in Fig. 1. The process of the second device determining the second abnormal signal may be as follows. Refer to Fig. 3. The O / E interface of the second device receives a signal from the first line (the second link on the first line) and inputs the signal to the ADC of the second device. The ADC of the second device converts the signal to a second code stream and inputs the second code stream to the RX DSP of the second device. The RX DSP of the second device detects a performance parameter of the second code stream, and determines that the received signal is a second abnormal signal, in other words, that a second abnormal signal is detected, when it detects that the performance parameter of the second code stream exceeds a specified threshold.
[0168] In some embodiments, the second device further acquires a third count value, where the third count value is a count value of the second clock counter when the second device receives the second abnormal signal, and / or the second device acquires a second reception time point, where the second reception time point is the time of the second clock when the second device receives the second abnormal signal.
[0169] In some embodiments, when the RX DSP of the second device detects the second abnormal signal, the second device acquires a count value of the second clock counter to obtain a third count value, and / or when the RX DSP of the second device detects the second abnormal signal, the second device acquires the time of the second clock to obtain a second reception time point.
[0170] Step 405: The second device sends abnormality alarm information to the first device, where the abnormality alarm information alerts about the second abnormal signal.
[0171] In some embodiments, the abnormal alert information is a specified information sequence or the like.
[0172] In step 405, in the case of a packet transmission system application, the second device transmits a first packet to the first device, where a reserved field of the first packet contains the abnormal alert information, or in the case of an optical transmission system application, the second device transmits a fifth code stream to the first device, where an idle field of the fifth code stream contains the abnormal alert information.
[0173] Since the reserved field of the first packet contains the abnormal warning information or the idle field of the fifth code stream contains the abnormal warning information, the service overhead is not occupied and the service transmission is prevented from being affected.
[0174] In some embodiments, the second device further acquires a fourth count value, where the fourth count value is the count value of the second clock counter when the second device transmits the abnormality alarm information, and / or the second device acquires a first transmission time point, where the first transmission time point is the time of the second clock when the second device transmits the abnormality alarm information.
[0175] In some embodiments, for the above operation of transmitting the abnormality alert information via the fifth code stream, the second device performs this operation in the following two ways.
[0176] Mode 1: A second device obtains at least one first code stream frame to be transmitted, and adds abnormal warning information to an idle field of the at least one first code stream frame to obtain at least one second code stream frame, where a fifth code stream includes the at least one second code stream frame, and the second device transmits the fifth code stream to the first device.
[0177] For implementation, please refer to FIG. 5. The TX SDS of the second device receives the third data transmitted by the board of the second device, where the third data is data that the second device needs to transmit to the first device, and the third data is serial data. The TX SDS converts the third data into parallel third data, and inputs the parallel third data into the TX FRM of the second device. The TX FRM of the second device converts the parallel third data into third data in a second OTU service format, and inputs the third data in the second OTU service format into the TX FEC of the second device. The TX FEC of the second device performs FEC encoding on the third data in the second OTU service format to obtain a fifth bit stream, and inputs the fifth bit stream into the TX DSP of the second device. The TX DSP of the second device pre-processes the fifth bit stream to obtain at least one first code stream frame, adds abnormal alarm information to the at least one first code stream frame to obtain at least one second code stream frame, and inputs the fifth code stream to a DAC of the second device. The fifth code stream includes the at least one second code stream frame. The DAC of the second device converts the fifth code stream into a fifth analog signal based on a working clock of the first clock counter, and inputs the fifth analog signal to an E / O interface of the second device. The E / O interface of the second device converts the fifth analog signal into a fifth optical signal, where the fifth optical signal is a communication signal. The E / O interface transmits the fifth optical signal over the first line to the first device to transmit the fifth code stream to the first device.
[0178] In some embodiments, when the second device adds the abnormality warning information to the at least one first code stream frame, the second device obtains a count value of the second clock counter to obtain a fourth count value, and / or when the second device adds the abnormality warning information to the at least one first code stream frame, the second device obtains the time of the second clock to obtain a first transmission time point.
[0179] Manner 2: A second device obtains at least one first service frame to be transmitted, where the at least one first service frame is a second O TU The data is in a service format, and the second device adds abnormality alert information to an idle field of the at least one first service frame to obtain at least one second service frame, converts the at least one second service frame into a fifth code stream, and transmits the fifth code stream to the first device.
[0180] For implementation, please refer to FIG. 6. The TX SDS of the second device receives the fifth data transmitted by the board of the second device, where the fifth data is data that the second device needs to transmit to the first device, and the fifth data is serial data. The TX SDS converts the fifth data into parallel fifth data and inputs the parallel fifth data into the TX FRM of the second device. The TX FRM of the second device converts the parallel fifth data into the fifth data in the second OTU service format, where the fifth data is serial data. TU ServicesThe fifth data of the format includes at least one first service frame. The TX FRM adds abnormal alarm information to an idle field of the at least one first service frame to obtain at least one second service frame, and inputs the at least one second service frame to a TX FEC of the second device. The TX FEC of the second device performs FEC encoding on the at least one second service frame to obtain a fifth bit stream, and transmits the fifth bit stream to a TX DSP of the second device. The TX DSP of the second device pre-processes the fifth bit stream to obtain a fifth code stream, and inputs the fifth code stream to a DAC of the second device. The DAC of the second device converts the fifth code stream into a fifth analog signal according to a working clock of the first clock counter, and inputs the fifth analog signal to an E / O interface of the second device. The E / O interface of the second device converts the fifth analog signal into a fifth optical signal, where the fifth optical signal is a communication signal. The E / O interface transmits a fifth optical signal on the first line to the first device to transmit the fifth code stream to the first device.
[0181] In some embodiments, when the second device adds the abnormality alert information to an idle field of the at least one first service frame, the second device acquires a count value of the second clock counter to obtain a fourth count value, and / or when the second device adds the abnormality alert information to an idle field of the at least one first service frame, the second device acquires the time of the second clock to obtain a first transmission time point.
[0182] In some embodiments, the second device transmits first delay information of the first device, where the first delay information includes the third count value and the fourth count value, the first delay information includes a difference between the third count value and the fourth count value, the first delay information includes the second receiving time point and the first transmitting time point, or the first delay information includes a second time interval, the second time interval being an interval between a time point when the second device receives the second abnormal signal and a time point when the second device transmits the abnormal alarm signal.
[0183] In some embodiments, the second device derives the second time interval based on the third count value and the fourth count value using a second formula:
[0184] The second equation is Δt2=|(T3-T4) / f2|.
[0185] In the second formula, Δt2 is the second time interval, T3 is the third count value, T4 is the fourth count value, and f2 is the timing frequency of the second clock counter.
[0186] In some embodiments, the second device derives a second time interval based on the second receiving time and the first transmitting time.
[0187] In some embodiments, the second time interval is a specified time interval. In other words, the interval between the time when the second device receives the second abnormal signal and the time when the second device transmits the abnormal alarm information is a specified time interval. In this case, the second device may not need to obtain the third count value, the fourth count value, the second receiving time point, and the first transmitting time point, and / or may not need to transmit the first delay information to the first device.
[0188] When the second time interval is a specified time interval and the second device detects a second abnormality signal, the second device starts to wait, and when the waiting time reaches the specified time interval, the second device adds abnormality alert information to the at least one first code stream frame to be transmitted or adds abnormality alert information to the first service frame to be transmitted, i.e., the second device starts to perform a procedure of transmitting abnormality alert information.
[0189] It should be noted that the signal transmission rate on the first line is not affected by the anomaly, whether the anomaly on the first line is a temporary anomaly or a permanent anomaly. In other words, the signal transmission rate on the first line before the anomaly occurs on the first line is equal to the signal transmission rate on the first line after the anomaly occurs on the first line.
[0190] Step 406: A first device receives abnormality alarm information and obtains a first time interval, where the first time interval is the interval between the time when the first abnormality signal is received and the time when the abnormality alarm information is received.
[0191] In some embodiments, the first device obtains a second count value, where the second count value is a count value of the first clock counter when the first device receives the abnormality alarm information. The first time interval is obtained based on the first count value and the second count value by using the following third formula:
[0192] The third equation is Δt1=|(T1-T2) / f2|.
[0193] In the third formula, Δt1 is a first time interval, T1 is a first count value, T2 is a second count value, and f1 is a timing frequency of the first clock counter.
[0194] Additionally / alternatively, in some embodiments, the first device obtains a third reception time point, where the third reception time point is a time of the first clock when the first device receives the abnormality alarm information, and the first device obtains a first time interval based on the first reception time point and the third reception time point.
[0195] In step 406, the first device receives the first packet and detects the abnormal alert information from a reserved field of the first packet, or the first device receives the fifth codestream and detects the abnormal alert information from an idle field of the fifth codestream.
[0196] In some embodiments, when the first device detects abnormal alarm information, the first device acquires a count value of the first clock counter to obtain a second count value, and / or the first device acquires the time of the first clock to obtain a third reception time point.
[0197] In some embodiments, for the operation of the first device detecting the abnormal warning information from the idle field of the fifth codestream, the first device performs this operation in the following two ways.
[0198] Manner 1: A first device receives a fifth optical signal from a first line, parses and separates at least one second code stream frame from the fifth optical signal, and detects that anomaly alert information is received upon detecting a specified information sequence from the at least one second code stream frame, where the anomaly alert information is the specified information sequence.
[0199] For implementation, please refer to FIG. 5. The O / E interface of the first device receives a fifth optical signal from the first line (first link on the first line), converts the fifth optical signal into a fifth analog signal, and inputs the fifth analog signal into the ADC of the first device. The ADC of the first device converts the fifth analog signal into a fifth code stream, where the fifth code stream includes at least one second code stream frame as described above. The ADC inputs the fifth code stream into the RX DSP of the first device. Upon detecting a specified information sequence from the fifth code stream, the RX DSP of the first device detects that abnormal alarm information has been received.
[0200] See Figure 5. The RX DSP of the first device further obtains a binary fifth bit stream according to the fifth code stream, and inputs the binary fifth bit stream to the RX FEC of the first device. The RX FEC performs FEC decoding on the binary fifth bit stream to obtain third data of the second OTU service format, and inputs the third data of the second OTU service format to the RX FRM of the first device. The RX FRM converts the third data of the second OTU service format to third data of the first format, where the third data is parallel data. The RX FRM inputs the parallel third data to the RX SDS of the first device. The RX SDS converts the parallel third data to serial third data, and inputs the serial third data to the board of the first device.
[0201] In some embodiments, when the RX DSP of the first device detects the abnormal alarm information, the first device acquires a counter value of the first clock counter to obtain a second count value, and / or when the RX DSP of the first device detects the abnormal alarm information, the first device acquires the time of the first clock to obtain a third reception time point.
[0202] Manner 2: The first device receives a fifth optical signal from the first line, parses and separates at least one second service frame from the fifth optical signal, and detects that the abnormality alert information is received when the first device detects abnormality alert information from the at least one second service frame.
[0203] For implementation, see Figure 6. The O / E interface of the first device receives a fifth optical signal from the first line (first link on the first line), converts the fifth optical signal to a fifth analog signal, and inputs the fifth analog signal to the ADC of the first device. The ADC of the first device converts the fifth signal to a fifth code stream, and inputs the fifth code stream to the RX DSP of the first device. The RX DSP of the first device converts the fifth code stream to a binary fifth bit stream, and inputs the binary fifth bit stream to the RX FEC of the first device. The RX FEC performs FEC decoding on the binary fifth bit stream to obtain data in a second OTU service format, where the second OTU TU The data in the service format includes at least one second service frame, and the RX FEC inputs the at least one second service frame to the RX FRM of the first device. The RX FRM detects abnormality warning information from the at least one second service frame.
[0204] The RX FRM further obtains third data in a first format based on the at least one second service frame, where the third data is parallel data, and the RX FRM inputs the parallel third data to a RX SDS of the first device. The RX SDS converts the parallel third data to serial third data and inputs the serial third data to a board of the first device.
[0205] In some embodiments, when the RX FRM of the first device detects abnormality alert information from the at least one second service frame, the first device acquires a counter value of the first clock counter to obtain a second count value, and / or when the RX FRM of the first device detects abnormality alert information from the at least one second service frame, the first device acquires the time of the first clock to obtain a third reception time point.
[0206] Step 407: The first device determines a location of the anomaly based on the first time interval.
[0207] In some embodiments, the location of the anomaly is the distance between the anomaly and the first device on the first line.
[0208] In some embodiments, the first device determines the location of the anomaly according to a fourth equation:
[0209] The fourth equation is X=LC*[Δt1] / 2.
[0210] In the fourth formula, X is the distance between the anomaly and the first device, L is the length of the first line, which is a fixed and known value, and C is the signal transmission rate on the first line, which is a fixed and known value.
[0211] Please refer to FIG. 1. At time m0, the first communication signal sent by the second device to the first device changes suddenly to a first abnormal signal, and the second communication signal sent by the first device to the second device changes suddenly to a second abnormal signal. At time m1, the first device receives the first abnormal signal, where m1-m0=X / C, i.e. m1=X / C+m0. At time m2, the second device receives the second abnormal signal, where m2-m0=(LX) / C, i.e. m2=(LX) / C+m0. However, the duration of transmitting the abnormal alarm information on the first line is L / C. Assuming that the second time interval between the time when the second device receives the second abnormal signal and the time when the second device transmits the abnormal alarm information is not counted, the time when the first device receives the abnormal alarm information is m3=m2+L / C=(LX) / C+m0+L / C. In this case, the first time interval is Δt1=m3-m1=(LX) / C+m0+L / C-(X / C+m0)=2L / C-2X / C. Therefore, the above first formula X=LC*[Δt1] / 2 is obtained.
[0212] In some embodiments, the first device further obtains a second time interval and determines a location of the anomaly based on the first time interval and the second time interval.
[0213] In some embodiments, the first device determines the location of the anomaly based on the first time interval and the second time interval according to a fifth equation below:
[0214] The fifth equation is X=LC*[Δt1-Δt2] / 2.
[0215] In some embodiments, the operation of the first device obtaining the second time interval is as follows: the first device receives the first delay information transmitted by the second device, and obtains the second time interval based on the first delay information.
[0216] When the first delay information includes the second time interval, the first device obtains the second time interval from the first delay information.
[0217] When the first delay information includes the third count value and the fourth count value, the first device obtains the second time interval according to a second formula based on the timing frequency of the second clock counter, the third count value, and the fourth count value. Alternatively, when the first delay information includes the difference between the third count value and the fourth count value, the first device obtains the second time interval according to a second formula based on the timing frequency of the second clock counter and the difference. Alternatively, when the first delay information includes the second receiving time point and 1. When the transmission time point is included, the first device derives a second time interval based on the second reception time point and the first transmission time point.
[0218] Because the timing frequency of the first clock counter of the first device is synchronized with the timing frequency of the second clock counter of the second device, the accuracy of obtaining the second time interval can be improved, and the accuracy of determining the location of the anomaly can be greatly improved.
[0219] In some embodiments, when the second time interval is a specified time interval, the first device simply uses the specified time interval as the second time interval.
[0220] In some embodiments, the first device determines a location of the anomaly based on a device internal delay, the first time interval, and the second time interval.
[0221] In some embodiments, see Fig. 7 or Fig. 8. The device internal delay includes a delay required for the first device to receive the first abnormal signal, a delay required for the second device to receive the second abnormal signal, a delay required for the second device to transmit the abnormal alarm information, and a delay required for the first device to receive the abnormal alarm information. In other words, the device internal delay includes four delays, and is equal to the cumulative value of the four delays.
[0222] In some embodiments, the first device determines the location of the anomaly based on the device internal delay, the first time interval, and the second time interval according to a sixth equation below.
[0223] The sixth equation is X=LC*[Δt1-Δt2-t0] / 2.
[0224] In the sixth equation, t0 is the internal delay of the device.
[0225] Because device internal delays are introduced when the location of the anomaly is determined, the accuracy of determining the location of the anomaly can be significantly improved.
[0226] Regarding the device internal delay, two ways of obtaining the device internal delay are listed below. Of course, in addition to these two ways, there may be other implementations that are not listed here as alternatives. The two ways are as follows:
[0227] In the first manner, see Fig. 9. The second line is used to connect the E / O interface and the O / E interface of the first device, and the third line is used to connect the E / O interface and the O / E interface of the second device. The first device measures the device internal delay via the second line, and the second device measures the device internal delay via the third line.
[0228] In a first manner, the first device transmits first measurement information to the first device via the second line, receives the first measurement information, and obtains a third time interval, where the third time interval is an interval between a time when the first measurement information is transmitted and a time when the first measurement information is received. The second device transmits second measurement information to the second device via the third line, receives the second measurement information, and obtains a fourth time interval. The fourth time interval is an interval between a time when the second measurement information is transmitted and a time when the second measurement information is received. An accumulated value of the third time interval and the fourth time interval is equal to a device internal delay.
[0229] In a first manner, the first device obtains a fifth count value and / or a second transmission time point. The fifth count value is a count value of the first clock counter when the first device transmits the first measurement information, and the second transmission time point is a time point when the first device transmits the first measurement information. The first device obtains a sixth count value and / or a fourth reception time point. The sixth count value is a count value of the first clock counter when the first device receives the first measurement information, and the fourth reception time point is a time point when the first device receives the first measurement information. The first device obtains a third time interval based on the fifth count value, the sixth count value, and the timing frequency of the first clock counter, and / or obtains the third time interval based on the second transmission time point and the fourth reception time point.
[0230] In a first manner, the second device obtains a seventh count value and / or a third transmission time point. The seventh count value is a count value of the second clock counter when the second device transmits the second measurement information, and the third transmission time point is a time point when the second device transmits the second measurement information. The second device obtains an eighth count value and / or a fifth reception time point. The eighth count value is a count value of the second clock counter when the second device receives the second measurement information, and the fifth reception time point is a time point when the second device receives the second measurement information. The second device obtains a fourth time interval based on the seventh count value, the eighth count value, and the timing frequency of the second clock counter, and / or obtains the fourth time interval based on the third transmission time point and the fifth reception time point.
[0231] In the case of application to an optical transmission system, the first format has the following two cases. The first case is a case in which the second device transmits abnormality alarm information to the first device in the above format 1. The second case is a case in which the second device transmits abnormality alarm information to the first device in the above format 2.
[0232] In the first case, the process of the first device transmitting and receiving the first measurement information is as follows: the TX DSP of the first device pre-processes the first measurement information to obtain a sixth code stream, and inputs the sixth code stream into the DAC of the first device; the DAC converts the sixth code stream into a sixth analog signal, and inputs the sixth analog signal into the E / O interface of the first device; the E / O interface converts the sixth analog signal into a sixth optical signal, and transmits the sixth optical signal on the second line.
[0233] The O / E interface of the first device receives a sixth optical signal from the second line, converts the sixth optical signal into a sixth analog signal, and inputs the sixth analog signal to an ADC of the first device. The ADC converts the sixth analog signal into a sixth code stream, and inputs the sixth code stream to an RX DSP of the first device. The RX DSP obtains first measurement information based on the sixth code stream.
[0234] In some embodiments, when the TX DSP of the first device pre-processes the first measurement information, the first device obtains a count value of the first clock counter to obtain a fifth count value and / or obtains a time of the first clock to obtain a second transmission instant, and when the RX DSP of the first device obtains the first measurement information based on the sixth code stream, the first device obtains a count value of the first clock counter to obtain a sixth count value and / or obtains a time of the first clock to obtain a fourth reception instant.
[0235] The process of the second device transmitting and receiving the second measurement information is as follows: the TX DSP of the second device pre-processes the second measurement information to obtain a seventh code stream, and inputs the seventh code stream into the DAC of the second device. The DAC converts the seventh code stream into a seventh analog signal, and inputs the seventh analog signal into the E / O interface of the second device. The E / O interface converts the seventh analog signal into a seventh optical signal, and transmits the seventh optical signal on the third line.
[0236] The O / E interface of the second device receives a seventh optical signal from the third line, converts the seventh optical signal into a seventh analog signal, and inputs the seventh analog signal to an ADC of the second device. The ADC converts the seventh analog signal into a seventh code stream, and inputs the seventh code stream to an RX DSP of the second device. The RX DSP obtains second measurement information based on the seventh code stream.
[0237] In some embodiments, when the TX DSP of the second device pre-processes the second measurement information, the second device obtains a count value of the second clock counter to obtain a seventh count value and / or obtains a time of the second clock to obtain a third transmission instant, and when the RX DSP of the second device obtains the second measurement information based on the seventh code stream, the second device obtains a count value of the second clock counter to obtain an eighth count value and / or obtains a time of the second clock to obtain a fifth reception instant.
[0238] The process by which the first device transmits and receives the first measurement information in the second case is the same as the process by which the first device transmits and receives the first measurement information in the first case, so details will not be repeated in this specification.
[0239] In the second case, the process of the second device transmitting and receiving the second measurement information is as follows: The TX FRM of the second device 2 convert the measurement information of the first OTU service format into data of a second OTU service format, and input the data of the second OTU service format to a TX FEC of the second device. The TX FEC performs FEC encoding on the data of the second OTU service format to obtain a seventh bit stream, and inputs the seventh bit stream to a TX DSP of the second device. The TX DSP pre-processes the seventh bit stream to obtain a seventh code stream, and inputs the seventh code stream to a DAC of the second device. The DAC converts the seventh code stream into a seventh analog signal based on a working clock corresponding to the second clock counter, and inputs the seventh analog signal to an E / O interface of the second device. The E / O interface converts the seventh analog signal into a seventh optical signal, and transmits the seventh optical signal on the third line.
[0240] The O / E interface of the second device receives a seventh optical signal from the third line, converts the seventh optical signal to a seventh analog signal, and inputs the seventh analog signal to an ADC of the second device. The ADC converts the seventh analog signal to a seventh code stream and inputs the seventh code stream to a RX DSP of the second device. The RX DSP converts the seventh code stream to a binary seventh bit stream and inputs the binary seventh bit stream to a RX FEC of the second device. The RX FEC performs FEC decoding on the binary seventh bit stream to obtain data in a second OTU service format, and inputs the data in the second OTU service format to a RX FRM of the second device. The RX FRM obtains second measurement information based on the data in the second OTU service format.
[0241] In some embodiments, the TX FRM of the second device 2 When the measurement information of the second device is converted into data in the second OTU service format, the second device obtains a count value of the second clock counter to obtain a seventh count value and / or obtains a time of the second clock to obtain a third transmission time point. When the RX FRM of the second device obtains the second measurement information based on the data in the second OTU service format, the second device obtains a count value of the second clock counter to obtain an eighth count value and / or obtains a time of the second clock to obtain a fifth reception time point.
[0242] In a second manner, the first device sends a measurement request to the second device. The second device receives the measurement request and sends a measurement response to the first device. The first device receives the measurement response and obtains a device internal delay based on the measurement request and the measurement response.
[0243] In a second manner, the first device obtains a third time interval and a fourth time interval, the third time interval being the interval between when the second device receives the measurement request and when the second device sends the measurement response, and the fourth time interval being the interval between when the first device sends the measurement request and when the first device receives the measurement response. The device internal delay is obtained based on the third time interval, the fourth time interval, and the length of the first line according to the following seventh formula:
[0244] The seventh equation is t0=Δt4-Δt3-2*L / C.
[0245] In the seventh equation, t0 is the device internal delay, Δt4 is the fourth time interval, Δt3 is the third time interval, L is the length of the first line, and C is the speed of the signal transmitted on the first line.
[0246] In some embodiments, the first device receives second delay information transmitted by the second device, where the second delay information indicates a third time interval, and the first device obtains the third time interval based on the second delay information.
[0247] In some embodiments, the first device transmits a measurement request to the second device to obtain a fifth count value and / or a second transmission time point. The fifth count value is a count value of the first clock counter when the first device transmits the measurement request, and the second transmission time point is when the first device transmits the measurement request. The second device receives the measurement request and obtains a sixth count value and / or a fourth reception time point. The sixth count value is a count value of the second clock counter when the second device receives the measurement request, and the fourth reception time point is when the second device receives the measurement request. The second device transmits a measurement response to the first device to obtain a seventh count value and / or a third transmission time point. The seventh count value is a count value of the second clock counter when the second device transmits the measurement response, and the third transmission time point is when the second device transmits the measurement response. The second device transmits the second delay information to the first device. The second delay information is obtained based on the sixth count value and the seventh count value, or based on the fourth reception time point and the third transmission time point. The first device receives the measurement response and the second delay information and obtains an eighth count value and / or a fifth reception time point. The eighth count value is the count value of the first clock counter when the first device receives the measurement response, and the fifth reception time point is the time when the first device receives the measurement response. The first device obtains a fourth time interval based on the fifth count value, the eighth count value, and the timing frequency of the first clock counter, and / or obtains a fourth time interval based on the second transmission time point and the fifth reception time point. The first device obtains a third time interval based on the second delay information, and obtains a device internal delay based on the third time interval, the fourth time interval, and the length of the first line.
[0248] When applied to an optical transmission system, the second format has the following two cases: The first case is a case in which the second device transmits abnormality alarm information to the first device in the above Format 1, and the second case is a case in which the second device transmits abnormality alarm information to the first device in the above Format 2.
[0249] In the first case, the process of the first device sending the measurement request and the second device receiving the measurement request is as follows: the TX DSP of the first device pre-processes the measurement request to obtain a sixth code stream, and inputs the sixth code stream into the DAC of the first device. The DAC converts the sixth code stream into a sixth analog signal, and inputs the sixth analog signal into the E / O interface of the first device. The E / O interface converts the sixth analog signal into a sixth optical signal, and transmits the sixth optical signal on the first line. The O / E interface of the second device receives the sixth optical signal from the first line, converts the sixth optical signal into a sixth analog signal, and inputs the sixth analog signal into the sixth optical signal. 2 and inputting the sixth analog signal to an ADC of the first device. The ADC converts the sixth analog signal into a sixth code stream, and inputs the sixth code stream to an RX DSP of the second device. The RX DSP obtains measurement information based on the sixth code stream.
[0250] The process of the second device transmitting the measurement response and the first device receiving the measurement response is as follows: The TX DSP of the second device pre-processes the measurement response to obtain a seventh code stream, and inputs the seventh code stream to the DAC of the second device. The DAC converts the seventh code stream to a seventh analog signal, and inputs the seventh analog signal to the E / O interface of the second device. The E / O interface converts the seventh analog signal to a seventh optical signal, and transmits the seventh optical signal on the first line. The O / E interface of the first device receives the seventh optical signal from the first line, converts the seventh optical signal to a seventh analog signal, and inputs the seventh analog signal to the seventh optical interface. 1and inputting the seventh analog signal to an ADC of the first device. The ADC converts the seventh analog signal to a seventh code stream and inputs the seventh code stream to an RX DSP of the first device. The RX DSP obtains a measurement response based on the seventh code stream.
[0251] In some embodiments, when the TX DSP of the first device pre-processes the measurement request, the first device obtains the count value of the first clock counter to obtain a fifth count value and / or obtains the time of the first clock to obtain a second transmission time point. When the RX DSP of the second device obtains the measurement request based on the sixth code stream, the second device obtains the count value of the second clock counter to obtain a sixth count value and / or obtains the time of the second clock to obtain a fourth reception time point. When the TX DSP of the second device pre-processes the measurement response, the second device obtains the count value of the second clock counter to obtain a seventh count value and / or obtains the time of the second clock to obtain a third transmission time point. When the RX DSP of the first device obtains the measurement response based on the seventh code stream, the second device obtains the count value of the second clock counter to obtain an eighth count value and / or obtains the time of the second clock to obtain a fifth reception time point.
[0252] The process by which the first device sends a measurement request and the second device receives the measurement request in the second case is the same as the process by which the first device sends a measurement request and the second device receives the measurement request in the first case, so details will not be repeated here.
[0253] In the second case, the process of the second device sending the measurement response and the first device receiving the measurement response is as follows: The TX FRM of the second device converts the measurement request into data of the second OTU service format, and inputs the data of the second OTU service format into the TX FEC of the second device. The TX FEC performs FEC encoding on the data of the second OTU service format to obtain a seventh bit stream, and inputs the seventh bit stream into the TX DSP of the second device. The TX DSP pre-processes the seventh bit stream to obtain a seventh code stream, and inputs the seventh code stream into the DAC of the second device. The DAC converts the seventh code stream into a seventh analog signal, and inputs the seventh analog signal into the E / O interface of the second device. The E / O interface converts the seventh analog signal into a seventh optical signal, and transmits the seventh optical signal on the first line.
[0254] The O / E interface of the first device receives a seventh optical signal from the first line, converts the seventh optical signal to a seventh analog signal, and inputs the seventh analog signal to an ADC of the first device. The ADC converts the seventh analog signal to a seventh code stream, and inputs the seventh code stream to a RX DSP of the first device. The RX DSP converts the seventh code stream to a binary seventh bit stream, and inputs the binary seventh bit stream to a RX FEC of the first device. The RX FEC performs FEC decoding on the binary seventh bit stream to obtain data in a second OTU service format, and inputs the data in the second OTU service format to a RX FRM of the first device. The RX FRM obtains a measurement request based on the data in the second OTU service format.
[0255] In some embodiments, when the TX FRM of the second device converts the measurement response into data in the second OTU service format, the second device obtains a count value of the second clock counter to obtain a seventh count value and / or obtains a time of the second clock to obtain a third transmission time point. When the RX FRM of the first device obtains the measurement response based on the data in the second OTU service format, the first device obtains a count value of the first clock counter to obtain an eighth count value and / or obtains a time of the first clock to obtain a fifth reception time point.
[0256] In the second case, the process in which the second device transmits the measurement response and the first device receives the measurement response is the same as the process in which the second device transmits the measurement response and the first device receives the measurement response in the first case, so the details are not repeated here. For the process in which the first device transmits the measurement response and the second device receives the measurement response, please refer to the process in which the second device transmits the measurement response and the first device receives the measurement response in the second case. The details are not repeated here.
[0257] In this embodiment of the present application, the first device receives a first abnormal signal, and the second device receives a second abnormal signal, and transmits abnormal alarm information to the first device. The first device obtains a first time interval based on the first abnormal signal and the abnormal alarm information, and determines the location of the abnormality on the first line based on the first time interval to automatically determine the location of the abnormality, improve the efficiency of determining the location of the abnormality, and avoid the oversight of the abnormality occurring on the first line. When the abnormality is located, emergency repair can be made in time to avoid further major accidents. When transmitting the abnormal alarm information, the second device transmits the abnormal alarm information directly through the first link on the first line. The first link is used to transmit the communication signal transmitted by the second device to the first device. In this case, the channel used to transmit the abnormal alarm information does not need to be established separately on the first link, and the abnormality occurs on the communication resource. The abnormality can be automatically located, and a line fault map can be drawn. Thus, the area where the abnormality is located can be avoided when the line is laid.
[0258] Please refer to Fig. 10. An embodiment of the present application provides an anomaly locating apparatus 1000. The apparatus 1000 is applied to the first device provided in any one of the above embodiments, such as the first device 101 of the network architecture 100 shown in Fig. 1, Fig. 2, Fig. 3, Fig. 5, Fig. 6, Fig. 7 or Fig. 8, or the first device provided in the method 400 shown in Fig. 4, and the apparatus 1000 includes: a receiving unit 1001 configured to receive a first abnormality signal, the first abnormality signal being a signal that changes suddenly from the first communication signal when the first communication signal passes through a location of an abnormality on a first line, the first line being a line between the apparatus 1000 and a second device, the first communication signal being a signal transmitted by the second device to the apparatus 1000 via the first line; The receiving unit 1001 is further configured to receive abnormality alarm information, the abnormality alarm information being transmitted by the second device after the second device receives a second abnormality signal, the second abnormality signal being a signal that is abruptly changed from the second communication signal when the second communication signal passes through a position of the abnormality, and the second communication signal being a signal transmitted by the apparatus 1000 to the second device via the first line; and A processing unit 1002 configured to determine a location of an anomaly based on a first time interval, the first time interval being an interval between a time when a first anomaly signal is received and a time when the anomaly alarm information is received; Includes.
[0259] Optionally, for a detailed implementation process of the receiving unit 1001 receiving the first abnormal signal, please refer to the relevant content of step 403 of the method 400 shown in Fig. 4. Details will not be described in this specification.
[0260] Optionally, for a detailed implementation process of the receiving unit 1001 receiving the abnormal alarm information, please refer to the relevant content of step 405 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0261] Optionally, for a detailed implementation process of the processing unit 1002 determining the location of the anomaly, please refer to the relevant content of step 407 of the method 400 shown in Figure 4, and details will not be described in this specification.
[0262] Optionally, the processing unit 1002 is configured to determine a location of the anomaly based on a second time interval and the first time interval, where the second time interval indicates an interval between a time when the second device receives the second anomaly signal and a time when the second device transmits the anomaly alert information.
[0263] Optionally, for a detailed implementation process of the processing unit 1002 determining the location of the anomaly based on the second time interval and the first time interval, please refer to the relevant content of step 407 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0264] Optionally, the processing unit 1002 is configured to determine a location of the anomaly based on a device internal delay, a first time interval, and a second time interval. The device internal delay includes a delay required for the receiving unit 1001 to receive the first anomaly signal, a delay required for the second device to receive the second anomaly signal, a delay required for the second device to transmit the anomaly alarm information, and a delay required for the receiving unit 1001 to receive the anomaly alarm information.
[0265] Optionally, for a detailed implementation process of the processing unit 1002 determining the location of the anomaly based on the device internal delay, the second time interval, and the first time interval, please refer to the relevant content of step 407 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0266] Optionally, the apparatus 1000 includes a first clock counter and the second device includes a second clock counter, and the apparatus 1000 is a secondary device of the second device.
[0267] The processing unit 1002 is further configured to adjust a timing frequency of the first clock counter based on the third communication signal so that the timing frequency of the first clock counter can be synchronized with the timing frequency of the second clock counter. The third communication signal is transmitted by the second device based on the working clock of the second clock counter.
[0268] Optionally, for the detailed implementation process of the processing unit 1002 adjusting the timing frequency of the first clock counter, please refer to the relevant content of step 402 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0269] Optionally, the processing unit 1002 is further configured to determine a primary / secondary relationship between the apparatus 1000 and the second device based on the device information of the apparatus 1000 and the device information of the second device.
[0270] Optionally, for a detailed implementation process of the processing unit 1002 determining the primary / secondary relationship between the apparatus 1000 and the second device, please refer to the relevant contents of steps 4011 to 4013 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0271] Optionally, the second time interval is a specified time interval.
[0272] Optionally, the apparatus 1000 includes a first clock counter.
[0273] The processing unit 1002 is further configured to calculate a first time interval based on the first count value, the second count value, and the timing frequency of the first clock counter, where the first count value is a count value of the first clock counter when the receiving unit 1001 receives the first abnormality signal, and the second count value is a count value of the first clock counter when the receiving unit 1001 receives the abnormality alarm information.
[0274] Optionally, for a detailed implementation process of the processing unit 1002 calculating the first time interval, please refer to the relevant content of step 406 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0275] Optionally, the receiving unit 1001 is further configured to receive delay information sent by the second device, the delay information indicating a second time interval.
[0276] The processing unit 1002 is further configured to calculate a second time interval based on the delay information.
[0277] Optionally, for a detailed implementation process of the processing unit 1002 calculating the second time interval, please refer to the relevant content of step 407 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0278] Optionally, the second device includes a second clock counter, and the delay information includes a third count value and a fourth count value, the delay information includes a difference between the third count value and the fourth count value, or the delay information includes the second time interval.
[0279] The third count value is a count value of the second clock counter when the second device receives a second abnormality signal, the fourth count value is a count value of the second clock counter when the second device transmits abnormality warning information, and the second time interval is obtained based on the third count value, the fourth count value, and the timing frequency of the second clock counter.
[0280] Optionally, the receiving unit 1001 is configured to receive a first packet sent by a second device, where a reserved field of the first packet includes the abnormality alert information.
[0281] Optionally, the receiving unit 1001 is configured to receive a codestream transmitted by a second device, where an idle field of the codestream includes the abnormality alert information.
[0282] Optionally, the receiving unit 1001 is configured to receive a signal from a first line.
[0283] The processing unit 1002 is further configured to determine that the signal is a first anomalous signal when detecting that the performance parameter value of the signal exceeds a specified threshold.
[0284] Optionally, for the detailed implementation process of the processing unit 1002 determining that the signal is the first abnormal signal, please refer to the relevant content of step 403 of the method 400 shown in Fig. 4. Details will not be described in this specification.
[0285] Optionally, the performance parameters of the signal include at least one of a signal power, a signal to noise ratio SNR, a polarization dependent loss PDL, a bit error rate BER, a packet loss rate, and a state of polarization SOP value of the signal.
[0286] In this embodiment of the present application, the receiving unit receives a first abnormality signal, and the second device transmits abnormality alarm information to the first device after receiving the second abnormality signal. In this way, the receiving unit receives the abnormality alarm information, and the processing unit obtains a first time interval based on the first abnormality signal and the abnormality alarm information, and determines the location of the abnormality based on the first time interval, thereby quickly determining the location of the abnormality. This improves the efficiency of identifying the abnormality location. When an abnormality occurs on the first line, the receiving unit receives the first abnormality signal, and the second device receives the second abnormality signal. Therefore, when an abnormality occurs, the location of the abnormality can be identified to avoid oversight of the abnormality that occurs.
[0287] Please refer to Fig. 11. An embodiment of the present application provides an anomaly locating apparatus 1100. The apparatus 1100 is applied to the second device provided in any one of the above embodiments, such as the second device 102 of the network architecture 100 shown in Fig. 1, Fig. 2, Fig. 3, Fig. 5, Fig. 6, Fig. 7, or Fig. 8, or the second device provided in the method 400 shown in Fig. 4, and the apparatus 1100 includes: a receiving unit 1101 configured to receive a second abnormality signal, the second abnormality signal being a signal that changes suddenly from the second communication signal when the second communication signal passes through a position of an abnormality on a first line, the first line being a line between a first device and the apparatus 1100, the second communication signal being a signal transmitted by the first device to the apparatus 1100 via the first line; A sending unit 1102 configured to send abnormality alarm information to a first device, where the abnormality alarm information alerts a second abnormality signal, and the abnormality alarm signal is further used to trigger the first device to determine a location of the abnormality; Includes.
[0288] Optionally, for a detailed implementation process of the receiving unit 1101 receiving the second abnormal signal, please refer to the relevant content of step 404 of the method 400 shown in Fig. 4. Details will not be described in this specification.
[0289] Optionally, for a detailed implementation process of the sending unit 1102 sending the abnormal alarm information, please refer to the relevant content of step 405 of the method 400 shown in Fig. 4. Details will not be described in this specification.
[0290] Optionally, the first device includes a first clock counter, and the apparatus 1100 includes a second clock counter, the apparatus 1100 being a secondary device of the first device, and the apparatus 1100: The fourth communication signal is transmitted by the first device based on a working clock of the first clock counter, and further includes a first processing unit 1103 configured to adjust a timing frequency of the second clock counter based on the fourth communication signal so that the timing frequency of the second clock counter can be synchronized with the timing frequency of the first clock counter.
[0291] For the detailed implementation process of the first processing unit 1103 optionally adjusting the timing frequency of the second clock counter, please refer to the relevant content of step 402 of the method 400 shown in Fig. 4. Details will not be described in this specification.
[0292] Optionally, the first processing unit 1103 is further configured to determine a primary / secondary relationship between the first device and the apparatus 1100 based on device information of the first device and device information of the apparatus.
[0293] Optionally, for a detailed implementation process of the first processing unit 1103 determining the primary / secondary relationship, please refer to the relevant content of step 402 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0294] Optionally, the sending unit 1102 is further configured to send delay information to the first device, where the delay information indicates a second time interval, and the second time interval indicates an interval between when the receiving unit 1101 receives the second abnormality signal and when the sending unit 1102 sends the abnormality alarm information.
[0295] Optionally, for a detailed implementation process of the sending unit 1102 sending the delay information to the first device, please refer to the relevant content of step 405 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0296] Optionally, the apparatus 1100 includes a second clock counter, and the delay information includes a third count value and a fourth count value, the delay information includes a difference between the third count value and the fourth count value, or the delay information includes a second time interval.
[0297] The third count value is the count value of the second clock counter when the receiving unit 1101 receives the second abnormality signal, the fourth count value is the count value of the second clock counter when the transmitting unit 1102 transmits the abnormality warning information, and the second time interval is obtained based on the third count value, the fourth count value, and the timing frequency of the second clock counter.
[0298] Optionally, the interval between the time when the receiving unit 1101 receives the second abnormality signal and the time when the sending unit 1102 sends the abnormality alarm information is a specified time interval.
[0299] Optionally, the sending unit 1102 is configured to send a first packet to the first device, where a reserved field of the first packet includes the abnormality alert information.
[0300] Optionally, the sending unit 1102 is configured to send a codestream to the first device, where an idle field of the codestream includes the abnormality alert information.
[0301] Optionally, the apparatus 1100 comprises: The second processing unit 1104 is further configured to add the exception alert information to an idle field of at least one codestream frame to be transmitted, the codestream including the at least one codestream frame.
[0302] For a detailed implementation process of the second processing unit 1104 optionally adding abnormal alarm information, please refer to the relevant content of step 405 of the method 400 shown in Figure 4. Details will not be described in this specification.
[0303] Optionally, the apparatus 1100 further includes a third processing unit 1105 .
[0304] The receiving unit 1101 is configured to receive a signal from a first line.
[0305] The third processing unit 1105 is configured to determine that the signal is a second anomalous signal when it detects that the performance parameter value of the signal exceeds a specified threshold.
[0306] Optionally, for the detailed implementation process of the third processing unit 1105 determining that the signal is the second abnormal signal, please refer to the relevant content of step 404 of the method 400 shown in Fig. 4. Details will not be described in this specification.
[0307] Optionally, the performance parameters of the signal include at least one of a signal power, a signal to noise ratio SNR, a polarization dependent loss PDL, a bit error rate BER, a packet loss rate, and a state of polarization SOP value of the signal.
[0308] In this embodiment of the present application, the transmitting unit transmits the abnormality alarm information to the first device after the receiving unit receives the second abnormality signal. Thus, the first device receives the abnormality alarm information, obtains the first time interval, and determines the location of the abnormality based on the first time interval to quickly determine the location of the abnormality. This improves the efficiency of the abnormality location identification. When an abnormality occurs on the first line, the receiving unit receives the second abnormality signal, and the transmitting unit transmits the abnormality alarm information to the first device to make the first device perform the abnormality location identification. Thus, when an abnormality occurs, the location of the abnormality can be identified to avoid the occurrence of an abnormality being overlooked.
[0309] Figure 12 is a schematic diagram of an anomaly location device 1200 according to an embodiment of the present application. The device 1200 may be the first device provided in any one of the above embodiments, such as the first device 101 of the network architecture 100 shown in Figure 1, Figure 2, Figure 3, Figure 5, Figure 6, Figure 7, or Figure 8, or the first device provided in the method 400 shown in Figure 4. The device 1200 includes at least one processor 1201, an internal connection 1202, a memory 1203, and at least one transceiver 1204.
[0310] The apparatus 1200 is a hardware structure apparatus and may be configured to implement the functional modules in the apparatus 1000 shown in Fig. 10. For example, a person skilled in the art may understand that the processing unit 1002 of the apparatus 1000 shown in Fig. 10 may be implemented by invoking a code in the memory 1203 by at least one processor 1201, and the receiving unit 1001 of the apparatus 1000 shown in Fig. 10 may be implemented by the transceiver 1204.
[0311] Optionally, the apparatus 1200 may be further configured to implement the functionality of the first device in any one of the above embodiments.
[0312] Optionally, the processor 1201 may be a general purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to control program execution of the solutions of the present application.
[0313] The internal connection 1202 may include paths for transmitting information between the above components. Optionally, the internal connection 1202 is a board or a bus, or the like.
[0314] The transceiver 1204 is configured to communicate with another device or a communication network.
[0315] The memory 1203 may be a read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, a random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or another compact disk storage, an optical disk storage (including compressed optical disks, laser disks, optical disks, digital versatile disks, Blu-ray optical disks, etc.), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be configured to carry or store the desired program code in the form of instructions or data structures that can be accessed by a computer. However, the memory is not limited to the above. The memory may exist independently but is connected to the processor via a bus. Alternatively, the memory may be integrated with the processor.
[0316] The memory 1203 is configured to store application program code for executing the solutions of the present application, and the processor 1201 controls the execution thereof. The processor 1201 is configured to execute the application program code stored in the memory 1203 and to cooperate with the at least one transceiver 1204 so that the device 1200 performs the functions of the methods of the present patent.
[0317] In a particular implementation, in an embodiment, the processor 1201 may include one or more CPUs, such as, for example, CPU0 and CPU1 shown in FIG.
[0318] In certain implementations, in embodiments, the apparatus 1200 may include multiple processors, such as, for example, processors 1201 and 1207 shown in Figure 12. Each processor may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may be one or more devices, circuits, and / or processing cores configured to process data (e.g., computer program instructions).
[0319] 13 is a schematic diagram of an anomaly location device 1300 according to an embodiment of the present application. The device 1300 may be the second device provided in any one of the above embodiments, such as the second device 102 of the network architecture 100 shown in FIG. 1, FIG. 2, FIG. 3, FIG. 5, FIG. 6, FIG. 7, or FIG. 8, or the second device provided in the method 400 shown in FIG. 4. The device 1300 includes at least one processor 1301, an internal connection 1302, a memory 1303, and at least one transceiver 1304.
[0320] The apparatus 1300 is a hardware structure apparatus and may be configured to implement the functional modules in the apparatus 1100 shown in Fig. 11. For example, a person skilled in the art may understand that the first processing unit 1103, the second processing unit 1104, and the third processing unit 1105 of the apparatus 1100 shown in Fig. 11 may be implemented by invoking codes in the memory 1303 by at least one processor 1301, and the receiving unit 1101 and the transmitting unit 1102 of the apparatus 1100 shown in Fig. 11 may be implemented by the transceiver 1304.
[0321] Optionally, the apparatus 1300 may be further configured to implement the functionality of the second device in any one of the above embodiments.
[0322] Optionally, the processor 1301 may be a general purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to control program execution of the solutions of the present application.
[0323] The internal connection 1302 may include paths for transmitting information between the above components. Optionally, the internal connection 1302 is a board or a bus, or the like.
[0324] The transceiver 1304 is configured to communicate with another device or a communication network.
[0325] The memory 1303 may be a read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, a random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or another compact disk storage, an optical disk storage (including compressed optical disks, laser disks, optical disks, digital versatile disks, Blu-ray optical disks, etc.), a magnetic disk storage medium or another magnetic storage device, or any other medium that can be configured to carry or store the desired program code in the form of instructions or data structures that can be accessed by a computer. However, the memory is not limited to the above. The memory may exist independently but is connected to the processor via a bus. Alternatively, the memory may be integral to the processor.
[0326] The memory 1303 is configured to store application program code for executing the solution of the present application, and the processor 1301 controls the execution thereof. The processor 1301 is configured to execute the application program code stored in the memory 1303 and to cooperate with the at least one transceiver 1304 so that the device 1300 performs the functions of the methods of the present patent.
[0327] In a particular implementation, in an embodiment, the processor 1301 may include one or more CPUs, such as, for example, CPU0 and CPU1 shown in FIG.
[0328] In certain implementations, in embodiments, the apparatus 1300 may include multiple processors, such as, for example, the processor 1301 and the processor 1307 shown in Figure 13. Each processor may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may be one or more devices, circuits, and / or processing cores configured to process data (e.g., computer program instructions).
[0329] Please refer to Fig. 1. The present application provides an anomaly location system 100. The system 100 includes an apparatus 1000 shown in Fig. 10 and an apparatus 1100 shown in Fig. 11, or includes an apparatus 1200 shown in Fig. 12 and an apparatus 1300 shown in Fig. 13.
[0330] The apparatus 1000 shown in FIG. 10 or the apparatus 1200 shown in FIG. 12 may be the first device 101, and the apparatus 1100 shown in FIG. 11 or the apparatus 1300 shown in FIG. 13 may be the second device 102.
[0331] Those skilled in the art may understand that all or part of the steps of the embodiment may be implemented by hardware or by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.
[0332] The above description is merely an optional embodiment of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, or improvement made within the principle of the present application shall fall within the protection scope of the present application.
Claims
1. 1. A method for identifying an anomaly location, the method comprising: receiving, by a first device, a first abnormality signal, the first abnormality signal being a signal that changes suddenly from the first communication signal when the first communication signal passes through a location of an abnormality on a first line, the first line being a line between the first device and a second device, the first communication signal being a signal transmitted by the second device to the first device via the first line; receiving, by the first device, abnormality warning information, the abnormality warning information being transmitted by the second device after the second device receives a second abnormality signal, the second abnormality signal being a signal that changes suddenly from the second communication signal when the second communication signal passes the location of the abnormality, the second communication signal being a signal transmitted by the first device to the second device via the first line; determining, by the first device, the location of the anomaly based on a first time interval, the first time interval being an interval between a time when the first anomaly signal is received and a time when the anomaly warning information is received; Including, The step of determining, by the first device, the location of the anomaly based on a first time interval, further comprises: determining, by the first device, the location of the anomaly based on a second time interval and the first time interval, the second time interval indicating an interval between a time when the second device receives the second anomaly signal and a time when the second device transmits the anomaly alarm information; The anomaly location method includes:
2. The step of determining, by the first device, the location of the anomaly based on a second time interval and the first time interval, further comprises: determining, by the first device, the location of the anomaly based on a device internal delay, the first time interval, and the second time interval, the device internal delay including a delay required for the first device to receive the first anomaly signal, a delay required for the second device to receive the second anomaly signal, a delay required for the second device to transmit the anomaly alarm information, and a delay required for the first device to receive the anomaly alarm information; 2. The method of claim 1, comprising:
3. A method for identifying an anomaly location, the method comprising: receiving, by a first device, a first abnormality signal, the first abnormality signal being a signal that changes suddenly from the first communication signal when the first communication signal passes through a location of an abnormality on a first line, the first line being a line between the first device and a second device, the first communication signal being a signal transmitted by the second device to the first device via the first line; receiving, by the first device, abnormality warning information, the abnormality warning information being transmitted by the second device after the second device receives a second abnormality signal, the second abnormality signal being a signal that changes suddenly from the second communication signal when the second communication signal passes the location of the abnormality, the second communication signal being a signal transmitted by the first device to the second device via the first line; determining, by the first device, the location of the anomaly based on a first time interval, the first time interval being an interval between a time when the first anomaly signal is received and a time when the anomaly warning information is received; Including, the first device includes a first clock counter and the second device includes a second clock counter, the first device being a secondary device of the second device, and the method further comprising: adjusting, by the first device, a timing frequency of the first clock counter based on a third communication signal so as to synchronize the timing frequency of the first clock counter with a timing frequency of the second clock counter, the third communication signal being transmitted by the second device based on a working clock of the second clock counter; The method further comprises:
4. The method comprises: determining, by the first device, a primary / secondary relationship between the first device and the second device based on device information of the first device and device information of the second device; The method of claim 3 further comprising:
5. The method of claim 1 , wherein the second time interval is a specified time interval.
6. A method for identifying an anomaly location, the method comprising: receiving, by a first device, a first abnormality signal, the first abnormality signal being a signal that changes suddenly from the first communication signal when the first communication signal passes through a location of an abnormality on a first line, the first line being a line between the first device and a second device, the first communication signal being a signal transmitted by the second device to the first device via the first line; receiving, by the first device, abnormality warning information, the abnormality warning information being transmitted by the second device after the second device receives a second abnormality signal, the second abnormality signal being a signal that changes suddenly from the second communication signal when the second communication signal passes the location of the abnormality, the second communication signal being a signal transmitted by the first device to the second device via the first line; determining, by the first device, the location of the anomaly based on a first time interval, the first time interval being an interval between a time when the first anomaly signal is received and a time when the anomaly warning information is received; Including, The first device includes a first clock counter, and the method further comprises: calculating, by the first device, the first time interval based on a first count value, a second count value, and a timing frequency of the first clock counter, the first count value being a count value of the first clock counter when the first device receives the first abnormality signal, and the second count value being a count value of the first clock counter when the first device receives the abnormality alarm information; The method further comprises:
7. The method comprises: receiving, by the first device, delay information transmitted by the second device, the delay information indicating the second time interval; calculating, by the first device, the second time interval based on the delay information; The method of claim 1 further comprising:
8. the second device includes a second clock counter, and the delay information includes a third count value and a fourth count value, or the delay information includes a difference between the third count value and the fourth count value, or the delay information includes the second time interval; 8. The method of claim 7, wherein the third count value is the count value of the second clock counter when the second device receives the second abnormality signal, the fourth count value is the count value of the second clock counter when the second device transmits the abnormality alarm information, and the second time interval is obtained based on the third count value, the fourth count value, and a timing frequency of the second clock counter.
9. The step of receiving abnormality alarm information by the first device includes: receiving, by the first device, a first packet transmitted by the second device, a reserved field of the first packet including the abnormality alert information; 2. The method of claim 1, comprising:
10. The step of receiving abnormality alarm information by the first device includes: receiving, by the first device, a codestream transmitted by the second device, an idle field of the codestream containing the abnormality alert information; 2. The method of claim 1, comprising:
11. A method for identifying an anomaly location, comprising: receiving, by a first device, a first abnormality signal, the first abnormality signal being a signal that changes suddenly from the first communication signal when the first communication signal passes through a location of an abnormality on a first line, the first line being a line between the first device and a second device, the first communication signal being a signal transmitted by the second device to the first device via the first line; receiving, by the first device, abnormality warning information, the abnormality warning information being transmitted by the second device after the second device receives a second abnormality signal, the second abnormality signal being a signal that changes suddenly from the second communication signal when the second communication signal passes the location of the abnormality, the second communication signal being a signal transmitted by the first device to the second device via the first line; determining, by the first device, the location of the anomaly based on a first time interval, the first time interval being an interval between a time when the first anomaly signal is received and a time when the anomaly warning information is received; Including, The step of receiving a first abnormality signal by a first device includes: receiving, by the first device, a signal from the first line; determining, by the first device, that the signal is the first anomalous signal when a performance parameter value of the signal exceeds a specified threshold; The method includes:
12. 12. The method of claim 11, wherein the performance parameters of the signal include at least one of a signal power, a signal to noise ratio SNR, a polarization dependent loss PDL, a bit error rate BER, a packet loss rate, and a state of polarization SOP value of the signal.
13. 1. A method for identifying an anomaly location, the method comprising: receiving, by a second device, a second anomaly signal, the second anomaly signal being a signal that changes suddenly from the second communication signal when the second communication signal passes through a location of an anomaly on a first line, the first line being a line between a first device and the second device, and the second communication signal being a signal transmitted by the first device to the second device via the first line; sending, by the second device, abnormality alarm information to the first device, the abnormality alarm information alerting the second abnormality signal, the abnormality alarm information being further used to trigger the first device to determine the location of the abnormality; Including, the first device includes a first clock counter, the second device includes a second clock counter, the second device is a secondary device of the first device, and the method comprises: adjusting, by the second device, a timing frequency of the second clock counter based on a fourth communication signal so that the timing frequency of the second clock counter can be synchronized with a timing frequency of the first clock counter, the fourth communication signal being transmitted by the first device based on a working clock of the first clock counter; The anomaly location method further comprises:
14. The method comprises: determining, by the second device, a primary / secondary relationship between the first device and the second device based on device information of the first device and device information of the second device; The method of claim 13 further comprising:
15. A method for identifying an anomaly location, comprising: receiving, by a second device, a second anomaly signal, the second anomaly signal being a signal that changes suddenly from the second communication signal when the second communication signal passes through a location of an anomaly on a first line, the first line being a line between a first device and the second device, and the second communication signal being a signal transmitted by the first device to the second device via the first line; sending, by the second device, abnormality alarm information to the first device, the abnormality alarm information alerting the second abnormality signal, the abnormality alarm information being further used to trigger the first device to determine the location of the abnormality; Including, The method comprises: transmitting, by the second device, delay information to the first device, the delay information indicating a second time interval, the second time interval indicating an interval between a time when the second device receives the second abnormality signal and a time when the second device transmits the abnormality warning information; The method further comprises:
16. the second device includes a second clock counter, and the delay information includes a third count value and a fourth count value, or the delay information includes a difference between the third count value and the fourth count value, or the delay information includes the second time interval; The method of claim 15, wherein the third count value is the count value of the second clock counter when the second device receives the second abnormality signal, the fourth count value is the count value of the second clock counter when the second device transmits the abnormality alarm information, and the second time interval is obtained based on the third count value, the fourth count value, and a timing frequency of the second clock counter.
17. A method for identifying an anomaly location, comprising: receiving, by a second device, a second anomaly signal, the second anomaly signal being a signal that changes suddenly from the second communication signal when the second communication signal passes through a location of an anomaly on a first line, the first line being a line between a first device and the second device, and the second communication signal being a signal transmitted by the first device to the second device via the first line; sending, by the second device, abnormality alarm information to the first device, the abnormality alarm information alerting the second abnormality signal, the abnormality alarm information being further used to trigger the first device to determine the location of the abnormality; Including, A method according to any one of claims 1 to 5, wherein the interval between the time when the second device receives the second abnormality signal and the time when the second device transmits the abnormality warning information is a specified time interval.
18. The step of transmitting abnormality alarm information to the first device by the second device includes: transmitting, by the second device, a first packet to the first device, a reserved field of the first packet including the abnormality alert information; 14. The method of claim 13, comprising:
19. The step of transmitting abnormality alarm information to the first device by the second device includes: transmitting, by the second device, a codestream to the first device, an idle field of the codestream containing the abnormality alert information; 14. The method of claim 13, comprising:
20. The method comprises: adding, by the second device, the abnormality alert information to an idle field of at least one code stream frame to be transmitted, the code stream including the at least one code stream frame to be transmitted; 20. The method of claim 19 further comprising:
21. A method for identifying an anomaly location, comprising: receiving, by a second device, a second anomaly signal, the second anomaly signal being a signal that changes suddenly from the second communication signal when the second communication signal passes through a location of an anomaly on a first line, the first line being a line between a first device and the second device, and the second communication signal being a signal transmitted by the first device to the second device via the first line; sending, by the second device, abnormality alarm information to the first device, the abnormality alarm information alerting the second abnormality signal, the abnormality alarm information being further used to trigger the first device to determine the location of the abnormality; Including, The step of receiving a second anomaly signal by the second device further comprises: receiving, by the second device, a signal from the first line; determining, by the second device, that the signal is the second anomalous signal when a performance parameter value of the signal exceeds a specified threshold; The method includes:
22. 22. The method of claim 21, wherein the performance parameters of the signal include at least one of a signal power, a signal to noise ratio SNR, a polarization dependent loss PDL, a bit error rate BER, a packet loss rate, and a state of polarization SOP value of the signal.
23. 1. An anomaly location device, comprising: a receiving unit configured to receive a first anomaly signal, the first anomaly signal being a signal that changes suddenly from the first communication signal when the first communication signal passes a location of an anomaly on a first line, the first line being a line between the apparatus and a second device, the first communication signal being a signal transmitted by the second device to the apparatus via the first line; the receiving unit is further configured to receive abnormality warning information, the abnormality warning information being transmitted by the second device after the second device receives a second abnormality signal, the second abnormality signal being a signal that is abruptly changed from the second communication signal when the second communication signal passes the location of the abnormality, and the second communication signal being a signal transmitted by the apparatus to the second device via the first line; and a processing unit configured to determine the location of the anomaly based on a first time interval, the first time interval being an interval between a time when the first anomaly signal is received and a time when the anomaly warning information is received; and Including, The processing unit is configured to determine the location of the anomaly based on a second time interval and the first time interval, the second time interval indicating the interval between the time when the second device receives the second anomaly signal and the time when the second device transmits the anomaly warning information.
24. 1. An anomaly location device, comprising: a receiving unit configured to receive a second abnormality signal, the second abnormality signal being a signal that is abruptly changed from the second communication signal when the second communication signal passes through a location of an abnormality on a first line, the first line being a line between a first device and the apparatus, and the second communication signal being a signal transmitted by the first device to the apparatus via the first line; a transmitting unit configured to transmit abnormality alarm information to the first device, the abnormality alarm information alerting the second abnormality signal, the abnormality alarm information being further used to trigger the first device to determine the location of the abnormality; Including, The anomaly location device, wherein the transmitting unit is further configured to transmit delay information to the first device, the delay information indicating a second time interval, the second time interval indicating an interval between a time when the receiving unit receives the second abnormality signal and a time when the transmitting unit transmits the abnormality warning information.
25. 25. An anomaly location system, comprising: an apparatus according to claim 23; and an apparatus according to claim 24.
26. 23. A computer readable storage medium, the computer readable storage medium storing a computer program which, when executed by a computer, performs the method according to any one of claims 1 to 22.
Citation Information
Patent Citations
Concentrated monitoring and managing method and system of power distribution network communication optical cable network
CN103780305A
Optical transmission line fault point location method and optical transmission line
JP1996125607A
Fault detector and method for transmission line
JP2001136110A
Measuring device, transmission device, and network system
JP2020174319A
Fault Localization and Fiber Security in Optical Transponders
US20120224846A1