A method, device and equipment for calculating protection switching time
By carrying encoding in the optical signal, the second optical communication device calculates the protection switching time during the service transmission process, solving the problem that the prior art cannot measure online, and achieving efficient and accurate protection switching time calculation.
Patent Information
- Application Number
- CN202111340654.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2041-11-12
AI Technical Summary
The prior art cannot measure the protection switching time online during the service transmission process. It needs to be measured after the service transmission is stopped, and the protection switching time of multiple protection channels in the network cannot be synchronized.
By periodically carrying the encoding in the optical signal, the second optical communication device receives and decodes the signals respectively before and after performing the protection switching operation, and determines the time to acquire the encoding to calculate the protection switching time.
The online calculation of the protection switching time during the service transmission process is realized. Without additional testing equipment, the protection switching time of multiple protection channels can be synchronized, reducing the calculation cost and improving the calculation efficiency.
Smart Images

Figure CN116131932B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to a method, device and equipment for calculating protection switching time. Background Art
[0002] Protection switching refers to the process of switching from a working path channel to a protection path channel, or from a primary device to a backup device. Protection switching can be applied to a variety of scenarios, all of which have certain requirements for the protection switching time.
[0003] At present, the method for calculating the protection switching time is mainly to connect a test device in series between the transmitting end and the receiving end, and measure the protection switching time through the test device. However, the test device will occupy the interface of service transmission during the measurement process, so the above method cannot measure the protection switching time occurring during service transmission online, and can only measure the protection switching time after the service transmission stops. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus and device for calculating protection switching time. The method can realize online calculation of protection switching time during service transmission.
[0005] In the first aspect, the present application provides a method for calculating the protection switching time. The method includes: a second optical communication device receives a first optical signal from a first optical communication device through a first channel, and the first optical signal periodically carries a code; the second optical communication device determines a first moment, and the first moment is the moment of obtaining the code carried by the first optical signal. After performing the protection switching operation, the second optical communication device receives a second optical signal from the first optical communication device through a second channel, and the second optical signal periodically carries a code; the second optical communication device determines a second moment, and the second moment is the moment of obtaining the code carried by the second optical signal; the second optical communication device calculates the protection switching time according to the first moment and the second moment.
[0006] The codes carried by the first optical signal and the second optical signal may also be referred to as coding information, codewords, coding sequences or counting frames, etc. The space occupied by the code may be 1 bit or multiple bits. The first optical signal and the second optical signal may carry the code in an equiperiodic manner, that is, the time interval between any two adjacent codes is the same as the time interval between any other two adjacent codes. The first optical signal and the second optical signal may also carry the code in an unequal periodic manner, that is, the time interval between any two adjacent codes may be the same as or different from the time interval between any other two adjacent codes.
[0007] Before performing the protection switching operation, the second optical communication device receives the first optical signal through the first channel, the first optical signal periodically carries the code, and the second optical communication device determines the moment (i.e., the first moment) of obtaining the code carried by the first optical signal. After performing the protection switching operation, the second optical communication device receives the second optical signal through the second channel, the second optical signal periodically carries the code, and the second optical communication device determines the moment (i.e., the second moment) of obtaining the code carried by the second optical signal. Since the first moment is used to mark the moment before the protection switching operation is performed, and the second moment is used to mark the moment when the protection switching operation is completed, the protection switching time can be calculated according to the first moment and the second moment, thereby realizing the online calculation of the protection switching time during the service transmission process without the need for additional protection switching time test equipment. In addition, by adopting the method provided in the embodiment of the present application, the protection switching time of multiple protection channels in the network can be calculated synchronously, reducing the calculation cost and improving the calculation efficiency.
[0008] As a feasible manner, the method also includes: the second optical communication device demodulates the first optical signal to obtain a first electrical signal carrying a code; wherein the first electrical signal can be understood as a level sequence composed of high levels and low levels; the second optical communication device obtains the code carried by the first optical signal according to the first electrical signal; the second optical communication device demodulates the second optical signal to obtain a second electrical signal carrying the code; the second optical communication device obtains the code carried by the second optical signal according to the second electrical signal, so that the second optical communication device can calculate the protection switching time according to the moment of obtaining the code, thereby realizing the calculation of the protection switching time at the optical layer.
[0009] As an implementable manner, the method further includes: the second optical communication device separates the first optical supervisory channel OSC signal from the first optical signal; the second optical communication device obtains the code carried by the first optical signal from the OSC overhead carried by the first OSC signal. The second optical communication device separates the second optical supervisory channel OSC signal from the second optical signal; the second optical communication device obtains the code carried by the second optical signal from the OSC overhead carried by the second OSC signal. In this way, the second optical communication device can calculate the protection switching time according to the moment of obtaining the code, so that the calculation of the protection switching time can be realized at the optical layer using the OSC signal.
[0010] As an implementable manner, the method further includes: the second optical communication device performs photoelectric conversion processing on the first optical signal to obtain a third electrical signal; the second optical communication device obtains the code carried by the first optical signal from the third electrical signal, specifically, the code carried by the first optical signal can be obtained from the overhead carried by the third electrical signal. The second optical communication device performs photoelectric conversion processing on the second optical signal to obtain a fourth electrical signal; the second optical communication device obtains the code carried by the second optical signal from the fourth electrical signal, specifically, the code carried by the second optical signal can be obtained from the overhead carried by the fourth electrical signal. In this way, the second optical communication device can calculate the protection switching time according to the moment of obtaining the code, thereby realizing the calculation of the protection switching time at the electrical layer.
[0011] As a feasible method, the code carried by the first optical signal and the code carried by the second optical signal are both cyclical. Taking the code carried by the first optical signal as an example, as the time changes, the code carried by the first optical signal is 00, 01, 10, 11, 00, 01, 10, 11... and so on, that is, 00, 01, 10, 11 is a cycle, which is continuously cycled. Correspondingly, the second optical communication device calculates the protection switching time according to the acquisition time of the code carried by the first optical signal and the acquisition time of the code carried by the second optical signal, including: the second optical communication device calculates the protection switching time according to the code carried by the first optical signal, the first moment, the code carried by the second optical signal, the second moment and the sending cycle of the code. This makes it possible to use the code carried by the first optical signal and the code carried by the second optical signal in addition to the first moment and the second moment in the process of calculating the protection switching time, so as to avoid the problem of inaccurate protection switching time caused by only using the first moment and the second moment, thereby improving the accuracy of the protection switching time.
[0012] In the second aspect, the present application provides a method for calculating the protection switching time, comprising: a first optical communication device obtains a target signal, the target signal periodically carries a code, and the code is used to calculate the protection switching time between the first channel and the second channel. The codes carried by the first optical signal and the second optical signal can also be called coding information, code words, coding sequences or counting frames, etc.; the space occupied by the code can be 1 bit or multiple bits. The target signal can carry the code in an equal periodic manner, that is, the time interval between any two adjacent codes is the same as the time interval between any other two adjacent codes. The target signal can also carry the code in an unequal periodic manner, that is, the time interval between any two adjacent codes can be the same as or different from the time interval between any other two adjacent codes. The first optical communication device sends a first optical signal to the second optical communication device through the first channel, and the first optical signal is obtained according to the target signal; the first optical communication device sends a second optical signal to the second optical communication device through the second channel, and the second optical signal is obtained according to the target signal.
[0013] Since the target signal carries the code periodically, the first optical signal and the second optical signal are obtained according to the target signal, so the first optical signal and the second optical signal also carry the code periodically. The first optical communication device sends the first optical signal to the second optical communication device through the first channel, and the first optical communication device sends the second optical signal to the second optical communication device through the second channel, so that the second optical communication device can calculate the protection switching time according to the first moment and the second moment, and realizes the online calculation of the protection switching time during the service transmission process without the aid of additional protection switching time test equipment. In addition, the method provided in the embodiment of the present application can be used to synchronously calculate the protection switching time of multiple protection channels in the network, reduce the calculation cost, and improve the calculation efficiency.
[0014] As an achievable method, the first optical communication device acquires the target signal including: the first optical communication device periodically generates a first electrical signal carrying a code, wherein the first electrical signal can be understood as a level sequence composed of a high level and a low level; the first optical communication device modulates the service optical signal according to the periodically generated first electrical signal to obtain the target signal. The addition of the code is realized at the optical layer in the above method, so that the second optical communication device receiving the code completes the calculation of the protection switching time at the optical layer.
[0015] As an achievable method, the first optical communication device acquires the target signal including: the first optical communication device periodically adds code to the OSC overhead carried by the optical supervisory channel OSC signal; the first optical communication device combines the OSC signal with the service optical signal to obtain the target signal. The addition of code is realized at the optical layer in the above method, so that the second optical communication device receiving the code completes the calculation of the protection switching time at the optical layer.
[0016] As an implementable manner, the first optical signal is the target signal, and the second optical signal is the target signal, so that the present application can be applied to a 1:1 protection switching scenario. In this scenario, the first optical signal device sends the target signal through the first channel before performing the protection switching operation, and sends the target signal through the second channel before performing the protection switching operation.
[0017] Alternatively, the first optical signal and the second optical signal are obtained by branching the target signal, so that the present application can be applied to a 1+1 protection switching scenario. In this scenario, whether before or after the protection switching operation is performed, the first optical signal device sends the first optical signal through the first channel and sends the second optical signal through the second channel.
[0018] As an achievable manner, the first optical communication device acquires the target signal including: the first optical communication device periodically adds coding to the second electrical signal, specifically, the coding can be added to the overhead of the second electrical signal. The second electrical signal after the coding is added is the target signal, thereby implementing the addition of coding at the electrical layer, so that the second optical communication device receiving the coding completes the calculation of the protection switching time at the electrical layer.
[0019] As an implementable manner, the frame format of the second electrical signal is an optical channel data unit ODUK frame, a virtual connection frame or an OSU frame. The above multiple frame formats increase the application scenarios of the present application.
[0020] As an implementable manner, the method further includes: the first optical communication device performs electrical-to-optical conversion processing on the target signal to obtain a first optical signal; the first optical communication device performs electrical-to-optical conversion processing on the target signal to obtain a second optical signal.
[0021] As a feasible method, the code carried by the target signal is cyclically cyclic, so that the second optical communication device receiving the code can use the cyclical code in addition to the first moment and the second moment in calculating the protection switching time, thereby avoiding the problem of inaccurate protection switching time caused by only using the first moment and the second moment, thereby improving the accuracy of the protection switching time.
[0022] In a third aspect, the present application provides a device for calculating protection switching time. The device includes: a processor and an optical transceiver; the optical transceiver is used to receive a first optical signal from a first optical communication device through a first channel, and the first optical signal periodically carries a code; the processor is used to determine a first moment, and the first moment is the moment of obtaining the code carried by the first optical signal; the optical transceiver is also used to receive a second optical signal from the first optical communication device through a second channel after performing a protection switching operation, and the second optical signal periodically carries a code; the processor is also used to determine a second moment, and the second moment is the moment of obtaining the code carried by the second optical signal; the processor is also used to calculate the protection switching time according to the first moment and the second moment.
[0023] As an achievable method, the processor is also used to: demodulate the first optical signal to obtain a first electrical signal carrying a code; obtain the code carried by the first optical signal based on the first electrical signal; demodulate the second optical signal to obtain a second electrical signal carrying a code; and obtain the code carried by the second optical signal based on the second electrical signal.
[0024] As an implementable manner, the processor is also used to: separate the first optical supervisory channel OSC signal from the first optical signal; obtain the code carried by the first optical signal from the OSC overhead carried by the first OSC signal; separate the second optical supervisory channel OSC signal from the second optical signal; and obtain the code carried by the second optical signal from the OSC overhead carried by the second OSC signal.
[0025] As an achievable method, the processor is also used to: perform photoelectric conversion on the first optical signal to obtain a third electrical signal; obtain the code carried by the first optical signal from the overhead carried by the third electrical signal; perform photoelectric conversion on the second optical signal to obtain a fourth electrical signal; and obtain the code carried by the second optical signal from the overhead carried by the fourth electrical signal.
[0026] As an implementable method, the code carried by the first optical signal and the code carried by the second optical signal are both periodic; the processor is used to calculate the protection switching time based on the code carried by the first optical signal, the first moment, the code carried by the second optical signal, the second moment and the sending period of the code.
[0027] Among them, for the specific implementation, relevant instructions and technical effects of the above devices, please refer to the description of the first aspect of this application.
[0028] In a fourth aspect, the present application provides a device for calculating a protection switching time, the device comprising: a processor and an optical transceiver; the processor is used to obtain a target signal, the target signal periodically carries a code, and the code is used to calculate the protection switching time between a first channel and a second channel; the optical transceiver is used to send a first optical signal to a second optical communication device through a first channel, the first optical signal is obtained based on the target signal; the optical transceiver is used to send a second optical signal to the second optical communication device through a second channel, the second optical signal is obtained based on the target signal.
[0029] As an implementable manner, the processor is used to: periodically generate a first electrical signal carrying a code; and modulate the service optical signal according to the periodically generated first electrical signal to obtain a target signal.
[0030] As an implementable manner, the processor is used to: periodically add code to the OSC overhead carried by the optical supervisory channel OSC signal; and combine the OSC signal with the service optical signal to obtain the target signal.
[0031] As an implementable manner, the processor is used to: periodically add codes to the second electrical signal, and the second electrical signal after the codes are added is the target signal.
[0032] As an implementable manner, the optical transceiver is used to: perform electrical-to-optical conversion processing on the target signal to obtain a first optical signal; and perform electrical-to-optical conversion processing on the target signal to obtain a second optical signal.
[0033] Among them, for the specific implementation, relevant instructions and technical effects of the above devices, please refer to the description of the second aspect of this application.
[0034] In a fifth aspect, the present application provides an optical communication device, including: an interface and a chip, wherein the chip is used to execute the method described in any implementation of the first aspect of the present application.
[0035] In a sixth aspect, the present application provides an optical communication device, comprising: an interface and a chip, wherein the chip is used to execute the method described in any implementation method of the second aspect of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A schematic diagram of the architecture of the optical communication system provided for this application;
[0037] Figure 2 for Figure 1 A schematic diagram of a scenario of an optical communication system shown;
[0038] Figure 3 for Figure 1 Another schematic diagram of an optical communication system shown;
[0039] Figure 4 A flowchart of a method for calculating protection switching time provided in an embodiment of the present application;
[0040] Figure 5 This is a schematic diagram of an embodiment of a transmitting end coding sequence and a receiving end coding sequence in the present application;
[0041] Figure 6 For the realization of Figure 4 A schematic diagram of a first embodiment of a first optical communication device of the method shown;
[0042] Figure 7 For the realization of Figure 4 A schematic diagram of a first embodiment of a second optical communication device of the method shown;
[0043] Figure 8 For the realization of Figure 4 A schematic diagram of a second embodiment of a first optical communication device of the method shown;
[0044] Fig. 9 For the realization of Figure 4 A schematic diagram of a second embodiment of a second optical communication device of the method shown;
[0045] Fig.10 In the embodiment of this application, it is used to implement Figure 4 A schematic diagram of the structure of an optical communication device according to the method shown;
[0046] Fig.11 A schematic diagram of the structure of a device for calculating protection switching time provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] It should be understood that the terms "first", "second", or "target" used in this application are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order. In addition, for the sake of simplicity and clarity, reference numbers and / or letters are repeated in multiple figures of this application. Repetition does not indicate that there is a strict limiting relationship between various embodiments and / or configurations.
[0048] Figure 1 This is a schematic diagram of the architecture of the optical communication system provided by the present application. The embodiments of the present application can be applied to Figure 1 The optical communication system shown. The optical communication system includes a transmitting end device 100 and a receiving end device 200, and the transmitting end device 100 and the receiving end device 200 can communicate with each other through at least two channels, wherein: Figure 1 Two channels are shown, specifically including a main channel and a backup channel. It should be noted that the channels can be optical fibers.
[0049] Under normal circumstances, the receiving device 200 receives the optical signal from the sending device 100 through the main channel; when the main channel fails, a protection switching operation will be performed; after the protection switching operation is performed, the receiving device 200 receives the optical signal from the sending device 100 through the backup channel.
[0050] The main channel and the backup channel are relative. For example, after performing a protection switching operation, Figure 1 The backup channel in can become the main channel, and Figure 1 The main channel in the system can become the backup channel after the fault is eliminated.
[0051] The embodiment of the present application does not specifically limit the types of the transmitting device 100 and the receiving device 200. The transmitting device 100 can be a device or a general term for multiple devices. Similarly, the receiving device 200 can be a device or a general term for multiple devices.
[0052] Figure 1 The optical communication system shown can be applied to two scenarios. Figure 2 and Figure 3 They are described separately, among which, Figure 2 for Figure 1 A schematic diagram of a scenario of an optical communication system shown in FIG. Figure 3 for Figure 1 Another schematic diagram of an optical communication system is shown.
[0053] exist Figure 2 and Figure 3 In the example, an optical line protection unit is installed at the transmitting end and an optical line protection unit is also installed at the receiving end. The optical line protection unit is used to detect whether the protection switching conditions are met and perform the protection switching operation when the protection switching conditions are met; specifically, the optical line protection unit can be regarded as a part of the transmitting end device and the receiving end device.
[0054] like Figure 2 As shown, in this scenario, whether before or after the protection switching operation is performed, the optical line protection unit at the transmitting end sends optical signals to the optical line protection unit at the receiving end through the main channel and the backup channel at the same time; before the protection switching operation is performed, the optical line protection unit at the receiving end chooses to receive the optical signal from the main channel, and after the protection switching operation is performed, the optical line protection unit at the receiving end chooses to receive the optical signal from the backup channel; it should be noted that Figure 2 The scenario shown can also be called a 1+1 protection scenario.
[0055] like Figure 3As shown, in this scenario, before performing the protection switching operation, the optical line protection unit at the sending end sends an optical signal to the optical line protection unit at the receiving end through the main channel, and accordingly, the optical line protection unit at the receiving end receives the incoming optical signal through the main channel; after performing the protection switching operation, the optical line protection unit at the sending end sends an optical signal to the optical line protection unit at the receiving end through the backup channel, and accordingly, the optical line protection unit at the receiving end receives the incoming optical signal through the backup channel.
[0056] Compared to Figure 2 The scene shown in Figure 3 In the scenario shown, at any time, the optical line protection unit at the transmitting end sends an optical signal to the optical line protection unit at the receiving end through only one channel; wherein, Figure 3 The scenario shown can also be called a 1:1 protection scenario.
[0057] It should be noted that in Figure 2 and Figure 3 In the figure, TX1 is used to indicate the transmitting end interface of the main channel, RX1 is used to indicate the receiving end interface of the main channel, TX2 is used to indicate the transmitting end interface of the backup channel, and RX2 is used to indicate the receiving end interface of the backup channel. The following is similar and will not be described in detail.
[0058] Since the communication process has certain requirements on the time of protection switching, it is necessary to measure the time of protection switching. In order to realize the online measurement of protection switching time during service transmission, an embodiment of the present application provides a method for calculating protection switching time. The method is to periodically add code to the optical signal emitted by the transmitting end. Accordingly, before performing the protection switching operation, the receiving end will receive the optical signal periodically carrying the code, and during the protection switching operation, the receiving end cannot receive the optical signal carrying the code. When the protection switching operation is completed, the receiving end will receive the optical signal periodically carrying the code again. Based on this, the protection switching time can be estimated according to the moment when the receiving end obtains the code before the protection switching operation is performed, and the moment when the receiving end obtains the code after the protection switching operation is performed, thereby realizing the online measurement of the protection switching time.
[0059] Figure 4 A flowchart of a method for calculating protection switching time provided in an embodiment of the present application. Figure 4 As shown, the method provided in this embodiment includes the following steps.
[0060] Step 101: A first optical communication device acquires a target signal, where the target signal periodically carries a code, and the code is used to calculate a protection switching time between a first channel and a second channel.
[0061] The code may also be referred to as coding information, codeword, coding sequence or counting frame, etc. The space occupied by the code may be 1 bit or multiple bits.
[0062] The code can be fixed, that is, the code carried by the target signal at any time is the same; the code can also be non-fixed, specifically, the target signal can carry different codes at different times. When the code is non-fixed, the code can be cyclical, for example, as the sending time changes, the code carried by the target signal is 00, 01, 10, 11, 00, 01, 10, 11... and so on, that is, 00, 01, 10, 11 is a cycle, which is continuously cycled.
[0063] The process of acquiring the target signal can be understood as the process in which the first optical communication device processes the input service signal to obtain the target signal, wherein the processed service signal is the target signal. The service signal is usually an optical signal, and the target signal can be an optical signal or an electrical signal.
[0064] The target signal can carry the code in an equiperiodic manner, that is, the time interval between any two adjacent codes is the same as the time interval between any other two adjacent codes; the target signal can also carry the code in an unequal periodic manner, that is, the time interval between any two adjacent codes can be the same as or different from the time interval between any other two adjacent codes.
[0065] It should be noted that there are many methods for acquiring the target signal, which are not specifically limited in the embodiments of the present application and are specifically introduced below with reference to the figures.
[0066] After acquiring the target signal, the first optical communication device sends a first optical signal to the second optical communication device through the first channel, and the first optical communication device sends a second optical signal to the second optical communication device through the second channel. Both the first optical signal and the second optical signal are obtained according to the target signal.
[0067] Among them, for the 1+1 protection scenario mentioned above, the first optical communication device sends the first optical signal and the second optical signal to the second optical communication device at the same time. For the 1:1 protection scenario mentioned above, before performing the protection switching operation, the first optical communication device sends the first optical signal to the second optical communication device, and after performing the protection switching operation, the first optical communication device sends the second optical signal to the second optical communication device.
[0068] It should be noted that there are multiple methods for obtaining the first optical signal and the second optical signal based on the target signal, and the embodiments of the present application do not specifically limit this; corresponding to different types of target signals, the methods for obtaining the first optical signal and the second optical signal are different, which will be introduced in conjunction with different embodiments below.
[0069] Step 102: The second optical communication device receives a first optical signal from the first optical communication device through a first channel, where the first optical signal periodically carries a code.
[0070] It should be noted that, for the aforementioned 1+1 protection scenario, since the first optical communication device simultaneously sends the first optical signal and the second optical signal, the receiving operation in step 102 can be understood as selective reception; wherein, selective reception can be specifically understood as the second optical communication device selecting to receive the first optical signal when detecting the first optical signal and the second optical signal.
[0071] For the above 1:1 protection scenario, step 102 is performed before the protection switching operation is performed.
[0072] Step 103: The second optical communication device obtains the code carried by the first optical signal.
[0073] It should be noted that the method by which the second optical communication device obtains the code carried by the first optical signal corresponds to the method by which the first optical communication device obtains the target signal carrying the code, which will be described in detail below.
[0074] Step 104: The second optical communication device determines a first moment, where the first moment is a moment for acquiring the code carried by the first optical signal.
[0075] Specifically, after determining that the code is acquired, the second optical communication device can determine the first time according to the clock information.
[0076] The first moment is used to mark the moment before the protection switching operation is performed; in order to improve the accuracy of the calculated protection switching time, the first moment is usually the moment of obtaining the latest code obtained from the first optical signal, and can also be understood as the moment of obtaining the last code obtained from the first optical signal before the protection switching operation is performed.
[0077] Based on the above description, when it is detected that the protection switching condition is met, step 104 can be executed to ensure that the first moment obtained is the last coded acquisition moment obtained from the first optical signal before the protection switching operation is performed; in addition, usually, when it is detected that the protection switching condition is met, a signal failure (Signal Fail, SF) signal or a signal degradation (Signal Degrade, SD) signal will be generated. Therefore, step 104 can also be executed when the SF signal or the SD signal is generated.
[0078] In order to further improve the accuracy of the first moment, the moment when the protection switching condition is detected to be satisfied, or the moment when the SF (or SD) signal is generated, can be directly used as the moment when the code carried by the first optical signal is acquired.
[0079] Step 105: After performing the protection switching operation, the second optical communication device receives a second optical signal from the first optical communication device through a second channel, where the second optical signal periodically carries a code.
[0080] For the 1+1 protection scenario mentioned above, since the first optical communication device sends the first optical signal and the second optical signal at the same time, the protection switching operation can be independently completed by the second optical communication device, and the second optical communication device only needs to selectively receive the second optical signal. For the 1:1 protection scenario mentioned above, since the first optical communication device needs to switch the channel for sending optical signals, that is, switch from the first channel to the second channel, the second optical communication device also needs to change the channel for receiving optical signals accordingly, so the protection switching operation is usually completed by the second optical communication device and the first optical communication device together.
[0081] It should be noted that the process of the second optical communication device receiving the second optical signal is similar to the process of receiving the first optical signal, and the details can be understood by referring to the relevant description of step 102 .
[0082] Step 106: The second optical communication device obtains the code carried by the second optical signal.
[0083] It should be noted that the method in which the second optical communication device obtains the code carried by the second optical signal corresponds to the method in which the second optical communication device obtains the target signal carrying the code, which will be described in detail below.
[0084] Step 107: The second optical communication device determines a second moment, where the second moment is a moment for acquiring the code carried by the second optical signal.
[0085] Specifically, when the second optical communication device determines that the code carried by the second optical signal is obtained, it can determine the second time according to the clock information.
[0086] The second moment is used to mark the moment after the protection switching operation is completed; in order to improve the accuracy of the protection switching time, the second moment is usually the moment of obtaining the first code obtained from the second optical signal before performing the protection switching operation.
[0087] Step 108: The second optical communication device calculates the protection switching time according to the first time and the second time.
[0088] After the protection switching time is calculated, the protection switching time may be recorded in a log or reported to a display device.
[0089] In an embodiment of the present application, before performing a protection switching operation, the second optical communication device receives a first optical signal through a first channel, the first optical signal periodically carries a code, and the second optical communication device determines a moment (i.e., a first moment) at which the code carried by the first optical signal is obtained; after performing a protection switching operation, the second optical communication device receives a second optical signal through a second channel, the second optical signal periodically carries a code, and the second optical communication device determines a moment (i.e., a second moment) at which the code carried by the second optical signal is obtained.
[0090] Since the first moment is used to mark the moment before the protection switching operation is performed, and the second moment is used to mark the moment when the protection switching operation is completed, the protection switching time can be calculated based on the first moment and the second moment, thereby realizing online calculation of the protection switching time during service transmission without the need for additional protection switching time test equipment.
[0091] Furthermore, by adopting the method provided in the embodiment of the present application, the protection switching time of multiple protection channels in the network can be calculated synchronously, thereby reducing the calculation cost and improving the calculation efficiency.
[0092] It should be noted that there are multiple methods for calculating the protection switching time, which are not specifically limited in the embodiments of the present application. Two of the methods are introduced below.
[0093] The first method: during the protection switching operation, the second optical communication device cannot receive the second optical signal, so it cannot obtain the code carried by the second optical signal; only after the protection switching operation is completed, the second optical communication device can obtain the code carried by the second optical signal; therefore, the time when the code is not received can be regarded as the protection switching time, based on which, the difference between the second moment and the first moment can be regarded as the protection switching time. This method can calculate the protection switching time simply and quickly.
[0094] In practical applications, since the moment when the protection switching condition is detected or the moment when the SF (or SD) signal is generated can be taken as the first moment, the moment before the protection switching operation is performed marked by the first moment is relatively accurate; however, after the code carried by the second optical signal is obtained, the second moment may not be determined immediately, so there will be an error between the actual acquisition moment of the code carried by the second optical signal and the second moment determined by step 107, that is, the moment when the protection switching operation is completed marked by the second moment is not accurate enough, so the protection switching time calculated by the above-mentioned first method is not precise enough.
[0095] In order to solve the problem of inaccurate protection switching time in the first method, the present application provides a second method.
[0096] The second method: the code carried by the first optical signal and the code carried by the second optical signal are both periodic, so that the second optical communication device calculates the protection switching time according to the first moment, the second moment, the code carried by the first optical signal and the code carried by the second optical signal, rather than relying solely on the first moment and the second moment, thereby improving the accuracy of the protection switching time.
[0097] Specifically, the code carried by the first optical signal and the code carried by the second optical signal are both periodic. Accordingly, step 108 includes: the second optical communication device calculates the protection switching time according to the code carried by the first optical signal, the first moment, the code carried by the second optical signal, the second moment and the sending period of the code.
[0098] Combine the following Figure 5 The above process is specifically described through an example.
[0099] Figure 5 Schematic diagram of an embodiment of a transmitting end coding sequence and a receiving end coding sequence in this application. Figure 5 As shown, CLK1 represents the clock sequence of the transmitting end, CLK2 represents the clock sequence of the receiving end, Tb is the second moment, and Ta is the first moment; Figure 5 It can be seen that after Ta, the coding sequence of the receiving end (which can be understood as multiple codes carried by the optical signal) is interrupted, which means that the protection switching operation is performed at this time. After that, the coding sequence of the receiving end reappears. It should be noted that since the code occupies a certain number of bits, the complete code is obtained from the interruption time until Tb time.
[0100] In this example, the code is sent at a frequency of f Hz, and each code occupies N bits, so there are 2 codes in total. N The encoding cycle is 2 N / f, then we can use the formula Tt=C*2 N / f+(Sb-Sa) / f calculates the protection switching time, where C represents (Tb-Ta) / (2 N / f) is rounded down, Sb represents the code carried by the second optical signal, Sa represents the code carried by the first optical signal, and Sb-Sa represents the number of codes that differ between the code carried by the second optical signal and the code carried by the first optical signal.
[0101] For example, N=2, the code carried by the first optical signal and the code carried by the second optical signal are continuously cycled with 00, 01, 10, 11 as a period, Sb is 01, Sa is 11, and since there are two codes between 01 and 11, Sb-Sa=2. At this time, the protection switching time can be expressed as Tt=C*4 / f+2 / f.
[0102] Based on the above description, it can be known that in the process of calculating the protection switching time, in addition to using the first moment and the second moment, the code carried by the first optical signal and the code carried by the second optical signal can also be used to avoid the problem of inaccurate protection switching time caused by only using the first moment and the second moment, thereby improving the accuracy of the protection switching time.
[0103] Based on the foregoing description, it can be known that there are multiple methods for the first optical communication device to obtain the target signal. Accordingly, there are also multiple methods for the second optical communication device to obtain the code carried by the first optical signal and the code carried by the second optical signal.
[0104] Based on any of the foregoing embodiments, a method for acquiring a target signal, a method for acquiring a code carried by a first optical signal, and a method for acquiring a code carried by a second optical signal are specifically introduced below through three embodiments.
[0105] It should be noted that the first embodiment and the second embodiment below are applied to the calculation scenario of the protection switching time of the optical layer, and the third embodiment is applied to the calculation scenario of the protection switching time of the electrical layer.
[0106] The first embodiment is introduced below. The first embodiment acquires the target signal by modulating the optical signal, and acquires the code by demodulating the optical signal.
[0107] Specifically, step 101 includes: a first optical communication device periodically generates a first electrical signal carrying a code, and modulates a service optical signal according to the periodically generated first electrical signal to obtain a target signal.
[0108] The first electrical signal can be understood as a level sequence consisting of high levels and low levels; after modulation, the target signal carries modulation information, and the modulation information includes coding.
[0109] Correspondingly, step 103 includes: the second optical communication device demodulates the first optical signal to obtain a first electrical signal carrying the code, and obtains the code carried by the first optical signal according to the first electrical signal.
[0110] Step 106 includes: the second optical communication device demodulates the second optical signal to obtain a second electrical signal carrying the code, and obtains the code carried by the second optical signal according to the second electrical signal.
[0111] Below through Figure 6 and Figure 7 The specific equipment shown illustrates the above process.
[0112] Figure 6 For the realization of Figure 4 A schematic diagram of a first embodiment of a first optical communication device of the method shown. Figure 6 As shown, the first optical communication device includes a control unit, a coding unit, a modulation unit and a sending unit, wherein the control unit may be a processor, the coding unit may be an independent coding device, and the modulation unit may also be an independent modulation device; for a 1+1 protection scenario, the sending unit may be a coupler ( Figure 6 Taking the sending unit as a coupler as an example), for a 1:1 protection scenario, the sending unit may be an optical switch.
[0113] Taking the 1+1 protection scenario as an example, in the first optical communication device, the control unit sends the coding rules to the coding unit, and the coding unit encodes according to the coding rules to generate a first electrical signal carrying the code; the modulation unit uses the generated first electrical signal to modulate the input service optical signal to obtain the target signal.
[0114] Finally, the sending unit sends the first optical signal through TX1 and sends the second optical signal through TX2 according to the target signal.
[0115] Figure 7 For the realization of Figure 4 A schematic diagram of a first embodiment of a second optical communication device of the method shown. Figure 7 As shown, the second communication device includes a control unit, a decoding unit, a demodulation unit, a receiving unit and an optical signal detection unit. The control unit may be a processor, the decoding unit may be an independent decoding device, the demodulation unit may also be an independent demodulation device, and the receiving unit may be an optical switch.
[0116] Taking the 1+1 protection scenario as an example, in the second optical communication device, the first optical signal is received through RX1, and the second optical signal is received through RX2. The optical signal detection unit detects the power of the first optical signal and the power of the second optical signal, and determines whether the switching condition set by the control unit is met based on the power of the first optical signal and the power of the second optical signal; when the switching condition set by the control unit is not met, the optical switch selects to receive the first optical signal.
[0117] Then the demodulation unit demodulates the first optical signal to obtain a first electrical signal carrying the code; and the decoding unit decodes the first electrical signal to obtain the code carried by the first optical signal.
[0118] When the switching condition set by the control unit is met, the optical signal detection unit generates a protection switching signal, wherein the protection switching signal is a SF signal or a signal degradation SD signal.
[0119] Based on the SF signal or the SD signal, the control unit controls the optical switch to switch, and the switched optical switch selects to receive the second optical signal, and then the demodulation unit demodulates the second optical signal to obtain a second electrical signal carrying the code; and then the decoding unit decodes the second electrical signal to obtain the code carried by the second optical signal.
[0120] The second embodiment is introduced below. The second embodiment is to obtain the target signal and the encoding through an optical supervisory channel (OSC) signal, wherein the OSC may also be called a non-service transmission channel.
[0121] Specifically, step 101 includes: the first optical communication device periodically adds code to the OSC overhead carried by the optical supervisory channel OSC signal, and combines the OSC signal with the service optical signal to obtain a target signal.
[0122] Accordingly, step 103 includes: the second optical communication device separates the first optical supervisory channel OSC signal from the first optical signal, and obtains the code carried by the first optical signal from the OSC overhead carried by the first OSC signal.
[0123] Step 106 includes: the second optical communication device separates the second optical supervisory channel OSC signal from the second optical signal, and obtains the code carried by the second optical signal from the OSC overhead carried by the second OSC signal.
[0124] Below through Figure 8 and Fig. 9 The specific equipment shown illustrates the above process.
[0125] Figure 8 For the realization of Figure 4 A schematic diagram of a second embodiment of the first optical communication device of the method shown. Figure 8 As shown, the first optical communication device includes a control unit, a coding unit, an OSC wave unit and a sending unit. The control unit can be a processor, the coding unit can be an independent coding device, and the OSC wave unit can also be an independent device; for the 1+1 protection scenario, the sending unit can be a coupler ( Figure 8 Taking the sending unit as a coupler as an example), for a 1:1 protection scenario, the sending unit may be an optical switch.
[0126] Taking the 1+1 protection scenario as an example, in the first optical communication device, the control unit sends the coding rule to the coding unit, and the coding unit directly uses the overhead of the OSC board for encoding according to the coding rule to add coding to the OSC overhead carried by the OSC signal emitted by the OSC board; the OSC wave unit merges the OSC signal with the input service optical signal to obtain the target signal.
[0127] Finally, the sending unit sends the first optical signal through TX1 and sends the second optical signal through TX2 according to the target signal.
[0128] Fig. 9 For the realization of Figure 4 A second embodiment schematic diagram of a second optical communication device of the method shown. Fig. 9 As shown, the second communication device includes a control unit, a decoding unit, an OSC wavelet unit and a receiving unit, wherein the control unit can be a processor, the decoding unit can be an independent decoding device, and the OSC wavelet unit can also be an independent device; for 1+1 protection scenarios and 1:1 protection scenarios, the receiving unit can be an optical switch.
[0129] Taking the 1+1 protection scenario as an example, in the second optical communication device, the first optical signal is received through RX1, and the second optical signal is received through RX2. The optical signal detection unit detects the power of the first optical signal and the power of the second optical signal, and determines whether the switching condition set by the control unit is met based on the power of the first optical signal and the power of the second optical signal; when the switching condition set by the control unit is not met, the optical switch selects to receive the first optical signal.
[0130] Then, the OSC drop unit separates the service optical signal from the first OSC signal in the first optical signal to separate the first optical supervisory channel OSC signal from the first optical signal; and then the decoding unit decodes the code in the OSC overhead carried by the first OSC signal to obtain the code carried by the first optical signal.
[0131] When the switching condition set by the control unit is met, the optical switch selects to receive the second optical signal. It should be noted that in this embodiment, the process of selecting to receive the second optical signal is similar to the process of selecting to receive the second optical signal in the first embodiment, and the details can be understood by referring to the relevant description of the first embodiment.
[0132] Then the OSC drop unit separates the service optical signal from the second OSC signal in the second optical signal to separate the second optical supervisory channel OSC signal from the second optical signal; and then the decoding unit decodes the code in the OSC overhead carried by the second OSC signal to obtain the code carried by the second optical signal.
[0133] It should be noted that in the first embodiment and the second embodiment, for the 1+1 protection scenario, the sending unit is a coupler, and accordingly, the first optical signal and the second optical signal are obtained by branching the target signal; for the 1:1 protection scenario, the sending unit is an optical switch, the first optical signal is the target signal, and the second optical signal is the target signal.
[0134] The first embodiment and the second embodiment applied to the calculation scenario of the protection switching time at the optical layer are introduced above, and the third embodiment applied to the calculation scenario of the protection switching time at the electrical layer is introduced below.
[0135] The third embodiment is to obtain the target signal and the encoding through the electrical signal, wherein the target signal is also an electrical signal.
[0136] Specifically, step 101 includes: the first optical communication device periodically adds codes to the second electrical signal, and the second electrical signal after the codes are added is the target signal.
[0137] Specifically, coding may be added to the overhead carried by the second electrical signal.
[0138] The frame format of the second electrical signal may be an optical channel data unit (ODUK) frame, a virtual connection frame or an OSU frame.
[0139] Since the target signal is an electrical signal, this embodiment also includes: the first optical communication device performs electrical-to-optical conversion processing on the target signal to obtain a first optical signal; the first optical communication device performs electrical-to-optical conversion processing on the target signal to obtain a second optical signal.
[0140] The electro-optical conversion process refers to the process of converting an electrical signal into an optical signal.
[0141] Correspondingly, step 103 includes: the second optical communication device performs photoelectric conversion processing on the first optical signal to obtain a third electrical signal; and the second optical communication device obtains the code carried by the first optical signal from the third electrical signal.
[0142] When the code is added to the overhead of the target signal, the second optical communication device can obtain the code carried by the first optical signal from the overhead of the third electrical signal.
[0143] Step 106 includes: the second optical communication device performs photoelectric conversion processing on the second optical signal to obtain a fourth electrical signal; and the second optical communication device obtains the code carried by the second optical signal from the fourth electrical signal.
[0144] When the code is added to the overhead of the target signal, the second optical communication device can obtain the code carried by the second optical signal from the overhead of the fourth electrical signal.
[0145] Below through Fig.10 The specific equipment shown illustrates the above process.
[0146] Fig.10 In the embodiment of this application, it is used to implement Figure 4 A schematic diagram of the structure of an optical communication device according to the method shown. Fig.10 As shown, the first optical communication device includes a control unit, a branch side processing unit, a cross processing unit, a wavelength division side processing unit 1 and a wavelength division side processing unit 2. The branch side processing unit includes a mapping unit and a coding unit. The device is suitable for a 1+1 protection scenario.
[0147] In the first optical communication device, the control unit sends the coding rules to the coding unit, the mapping unit maps the input service optical signal to the second electrical signal, and then the coding unit adds coding to the second electrical signal according to the frequency of the service rate of the second electrical signal, and the second electrical signal after adding the coding is the target signal.
[0148] Then the cross processing unit forwards the two target signals to the wavelength division side processing unit 1 and the wavelength division side processing unit 2 respectively, and the wavelength division side processing unit 1 and the wavelength division side processing unit 2 perform electrical-to-optical conversion on the target signals to obtain the first optical signal and the second optical signal.
[0149] Finally, the wavelength division side processing unit 1 sends the first optical signal through the interface OUT1, and the wavelength division side processing unit 2 sends the second optical signal through the interface OUT2.
[0150] like Fig.10 As shown, the second optical communication device includes a control unit, a branch side processing unit, a cross processing unit, a wavelength division side processing unit 1 and a wavelength division side processing unit 2. The branch side processing unit includes a demapping unit and a decoding unit. The device is suitable for a 1+1 protection scenario.
[0151] In the second optical communication device, the first optical signal is received by the wavelength division side processing unit 1 through the interface IN1, and the second optical signal is received by the wavelength division side processing unit 2 through the interface IN2. The wavelength division side processing unit 1 performs photoelectric conversion on the first optical signal to obtain a third electrical signal, and the wavelength division side processing unit 2 performs photoelectric conversion on the second optical signal to obtain a fourth electrical signal.
[0152] The cross processing unit forwards the third electrical signal and the fourth electrical signal to the decoding unit.
[0153] At interface IN1 and interface IN2, the power of the first optical signal and the power of the second optical signal are detected; in addition, the fault state of the third electrical signal and the fault state of the fourth electrical signal are also detected, for example, the fault state may be a LOF (Loss Of Frame) alarm state and a LOS (Loss Of Signal) alarm state; then, it is determined whether the switching conditions set by the control unit are met based on the power of the first optical signal, the power of the second optical signal, and the fault state of the third electrical signal and the fault state of the fourth electrical signal.
[0154] When the switching condition set by the control unit is not met, the control unit controls the decoding unit to obtain the code carried by the first optical signal from the third electrical signal.
[0155] Then the demapping unit demaps the third electrical signal to obtain a service optical signal.
[0156] When the switching condition set by the control unit is met, a protection switching signal is generated at the interface IN1 and the interface IN2, wherein, similarly, the protection switching signal is a SF signal or a SD signal.
[0157] Based on the SF signal or the SD signal, the control unit controls the decoding unit to obtain the code carried by the second optical signal from the fourth electrical signal.
[0158] Then the demapping unit demaps the fourth electrical signal to obtain a service optical signal.
[0159] Fig.11 A schematic diagram of the structure of the device for calculating the protection switching time provided in the embodiment of the present application. Fig.11 As shown, the present application provides an embodiment of a device for calculating protection switching time. The device is applied to the first optical communication device mentioned above, and specifically includes: a processor 201 and an optical transceiver 202. The optical transceiver 202 is used to execute Figure 4 The processor 201 is used to execute steps 102 and 105. Figure 4 Step 103, step 104, and step 106 to step 108 in the method. For the specific implementation, relevant description, and technical effect of the processor 201 and the optical transceiver 202, please refer to the relevant description of steps 102 to step 108 in the method part.
[0160] Fig.11 The device for calculating the protection switching time shown can also be applied to the second optical communication device mentioned above. When applied to the second optical communication device, the processor 201 is used to execute Figure 4 The optical transceiver 202 is further configured to send a first optical signal to a second optical communication device through a first channel, the first optical signal being obtained according to a target signal, and send a second optical signal to the second optical communication device through a second channel, the second optical signal being obtained according to the target signal.
[0161] For the specific implementation, relevant description and technical effects of the above devices, please refer to the relevant description of step 101 in the method part.
[0162] The present application also provides an optical communication device, including: an interface and a chip. The chip is used to execute Figures 1 to 10 Alternatively, the chip is used to perform the steps performed by the first optical communication device. Figures 1 to 10Steps performed by the second optical communication device in.
[0163] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A method for calculating protection switching time, It is characterized in that include: The second optical communication device receives a first optical signal from the first optical communication device through a first channel, wherein the first optical signal periodically carries a code; The second optical communication device determines a first moment, where the first moment is a moment of acquiring a code carried by the first optical signal, and the first moment includes: a moment of detecting that a protection switching condition is met, or a moment of generating a signal failure signal, or a moment of generating a signal degradation signal; After performing the protection switching operation, the second optical communication device receives a second optical signal from the first optical communication device through a second channel, wherein the second optical signal periodically carries a code; The second optical communication device determines a second moment, where the second moment is a moment for acquiring the code carried by the second optical signal; The second optical communication device calculates a protection switching time according to the first time and the second time.
2. The method according to claim 1, It is characterized in that The method further comprises: The second optical communication device demodulates the first optical signal to obtain a first electrical signal carrying a code; The second optical communication device obtains the code carried by the first optical signal according to the first electrical signal; The second optical communication device demodulates the second optical signal to obtain a second electrical signal carrying the code; The second optical communication device obtains the code carried by the second optical signal according to the second electrical signal.
3. The method according to claim 1, It is characterized in that The method further comprises: The second optical communication device separates a first optical supervisory channel OSC signal from the first optical signal; The second optical communication device obtains the code carried by the first optical signal from the OSC overhead carried by the first OSC signal; The second optical communication device separates a second optical supervisory channel OSC signal from the second optical signal; The second optical communication device obtains the code carried by the second optical signal from the OSC overhead carried by the second OSC signal.
4. The method according to claim 1, It is characterized in that The method further comprises: The second optical communication device performs photoelectric conversion processing on the first optical signal to obtain a third electrical signal; The second optical communication device obtains the code carried by the first optical signal from the third electrical signal; The second optical communication device performs photoelectric conversion processing on the second optical signal to obtain a fourth electrical signal; The second optical communication device obtains the code carried by the second optical signal from the fourth electrical signal.
5. The method according to any one of claims 1 to 4, It is characterized in that The code carried by the first optical signal and the code carried by the second optical signal are both periodic; The second optical communication device calculates the protection switching time according to the acquisition time of the code carried by the first optical signal and the acquisition time of the code carried by the second optical signal, including: The second optical communication device calculates the protection switching time according to the code carried by the first optical signal, the first time, the code carried by the second optical signal, the second time, and a transmission period of the code.
6. A method for calculating protection switching time, It is characterized in that include: The first optical communication device acquires a target signal, wherein the target signal periodically carries a code, and the code is used to calculate a protection switching time between the first channel and the second channel; The first optical communication device sends a first optical signal to the second optical communication device through the first channel, the first optical signal is obtained according to the target signal, and the moment when the second optical communication device obtains the code carried by the first optical signal is a first moment, and the first moment includes: the moment when a protection switching condition is detected to be satisfied, or the moment when a signal failure signal is generated, or the moment when a signal degradation signal is generated; The first optical communication device sends a second optical signal to the second optical communication device through the second channel, and the second optical signal is obtained based on the target signal, so that the second optical communication device determines a second moment and calculates a protection switching time based on the first moment and the second moment, and the second moment is a moment for obtaining the code carried by the second optical signal.
7. The method according to claim 6, It is characterized in that The first optical communication device acquiring the target signal comprises: The first optical communication device periodically generates a first electrical signal carrying a code; The first optical communication device modulates the service optical signal according to the periodically generated first electrical signal to obtain the target signal.
8. The method according to claim 6, It is characterized in that The first optical communication device acquiring the target signal comprises: The first optical communication device periodically adds the code to the OSC overhead carried by the optical supervisory channel OSC signal; The first optical communication device combines the OSC signal with a service optical signal to obtain the target signal.
9. The method according to claim 7 or 8, It is characterized in that The first optical signal is the target signal, and the second optical signal is the target signal; Or the first optical signal and the second optical signal are obtained by branching the target signal.
10. The method according to claim 6, It is characterized in that The first optical communication device acquiring the target signal comprises: The first optical communication device periodically adds codes to the second electrical signal, and the second electrical signal after the codes are added is the target signal.
11. The method according to claim 10, It is characterized in that The frame format of the second electrical signal is an optical channel data unit (ODUK) frame, a virtual connection frame or an OSU frame.
12. The method according to claim 10 or 11, It is characterized in that The method further comprises: The first optical communication device performs electrical-to-optical conversion processing on the target signal to obtain the first optical signal; The first optical communication device performs electrical-to-optical conversion processing on the target signal to obtain the second optical signal.
13. The method according to any one of claims 6 to 8, It is characterized in that The code carried by the target signal is periodically cyclic.
14. A device for calculating protection switching time, It is characterized in that include: processor and optical transceiver; The optical transceiver is used to receive a first optical signal from a first optical communication device through a first channel, wherein the first optical signal periodically carries a code; The processor is used to determine a first moment, where the first moment is a moment of acquiring a code carried by the first optical signal, and the first moment includes: a moment of detecting that a protection switching condition is met, or a moment of generating a signal failure signal, or a moment of generating a signal degradation signal; The optical transceiver is further used to receive a second optical signal from the first optical communication device through a second channel after performing a protection switching operation, wherein the second optical signal periodically carries a code; The processor is further configured to determine a second moment, where the second moment is a moment of acquiring the code carried by the second optical signal; The processor is further configured to calculate a protection switching time according to the first moment and the second moment.
15. The device according to claim 14, It is characterized in that The processor is further configured to: Demodulating the first optical signal to obtain a first electrical signal carrying a code; Obtaining a code carried by the first optical signal according to the first electrical signal; Demodulating the second optical signal to obtain a second electrical signal carrying a code; The code carried by the second optical signal is obtained according to the second electrical signal.
16. The device according to claim 15, It is characterized in that The processor is further configured to: Separating a first optical supervisory channel OSC signal from the first optical signal; Obtaining the code carried by the first optical signal from the OSC overhead carried by the first OSC signal; Separating a second optical supervisory channel OSC signal from the second optical signal; The code carried by the second optical signal is obtained from the OSC overhead carried by the second OSC signal.
17. The device according to claim 15, It is characterized in that The processor is further configured to: Performing photoelectric conversion on the first optical signal to obtain a third electrical signal; Obtaining the code carried by the first optical signal from the overhead carried by the third electrical signal; Performing photoelectric conversion on the second optical signal to obtain a fourth electrical signal; The code carried by the second optical signal is obtained from the overhead carried by the fourth electrical signal.
18. The device according to any one of claims 14 to 17, It is characterized in that The code carried by the first optical signal and the code carried by the second optical signal are both periodic; The processor is used to calculate the protection switching time according to the code carried by the first optical signal, the first time, the code carried by the second optical signal, the second time, and a transmission period of the code.
19. A device for calculating protection switching time, It is characterized in that include: processor and optical transceiver; The processor is used to obtain a target signal, the target signal periodically carries a code, and the code is used to calculate a protection switching time between the first channel and the second channel; The optical transceiver is used to send a first optical signal to a second optical communication device through the first channel, the first optical signal is obtained according to the target signal, and the moment when the second optical communication device obtains the code carried by the first optical signal is a first moment, and the first moment includes: the moment when a protection switching condition is detected to be satisfied, or the moment when a signal failure signal is generated, or the moment when a signal degradation signal is generated; The optical transceiver is used to send a second optical signal to the second optical communication device through the second channel, where the second optical signal is obtained based on the target signal, so that the second optical communication device determines a second moment and calculates a protection switching time based on the first moment and the second moment, where the second moment is a moment for obtaining the code carried by the second optical signal.
20. The device according to claim 19, It is characterized in that The processor is used to: Periodically generating a first electrical signal carrying a code; The service optical signal is modulated according to the periodically generated first electrical signal to obtain the target signal.
21. The device according to claim 19, It is characterized in that The processor is used to: Periodically adding the code to the OSC overhead carried by the optical supervisory channel OSC signal; The OSC signal is combined with the service optical signal to obtain the target signal.
22. The device according to claim 19, It is characterized in that The processor is used to: Codes are periodically added to the second electrical signal, and the second electrical signal after the code is added is the target signal.
23. The device according to claim 22, It is characterized in that The optical transceiver is used for: Performing electro-optical conversion processing on the target signal to obtain the first optical signal; The target signal is subjected to electrical-to-optical conversion processing to obtain the second optical signal.
Citation Information
Patent Citations
Method, equipment and system for measuring protection group switching time
CN103684585A