WO2021093072A1 - Switching method and apparatus of olp transmission link, storage medium and olp - Google Patents

Switching method and apparatus of olp transmission link, storage medium and olp Download PDF

Info

Publication number
WO2021093072A1
WO2021093072A1 PCT/CN2019/124924 CN2019124924W WO2021093072A1 WO 2021093072 A1 WO2021093072 A1 WO 2021093072A1 CN 2019124924 W CN2019124924 W CN 2019124924W WO 2021093072 A1 WO2021093072 A1 WO 2021093072A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
transmission link
olp
signal value
time
Prior art date
Application number
PCT/CN2019/124924
Other languages
French (fr)
Chinese (zh)
Inventor
於俊成
喻杰奎
罗清
王文忠
陈元
张颖
陈文�
黎奇
刘海峰
Original Assignee
武汉光迅信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉光迅信息技术有限公司 filed Critical 武汉光迅信息技术有限公司
Publication of WO2021093072A1 publication Critical patent/WO2021093072A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/03Arrangements for fault recovery
    • H04B10/032Arrangements for fault recovery using working and protection systems

Definitions

  • the present invention relates to optical fiber automatic switching protection system (Optical Fiber Line Auto Switch Protection Equipment, OLP for short) technology, and in particular to a switching method, device, storage medium and OLP of an OLP transmission link.
  • optical fiber automatic switching protection system Optical Fiber Line Auto Switch Protection Equipment, OLP for short
  • OLP As a system on the optical cable link, OLP has the characteristics of independent and transparent data transmission, high security, and fast failure recovery. It can cooperate with other equipment or devices in the optical network to build a non-blocking and high reliability , An optical communication network system that is safe, flexible, and capable of resisting disasters.
  • OLP has two transmission links, the main link and the backup link. OLP can use at least one of these two transmission links for optical signal transmission.
  • OLP handover protection methods include 1+1 protection mode and 1:1 protection mode. Since the OLP switching speed of 1+1 protection mode is faster, this switching mode is more commonly used.
  • Fig. 1 a circuit diagram for cascading three OLPs.
  • the primary link output terminal T1 of the previous stage OLP-OLP1 outputs the data (optical signal) received by the primary link input terminal R1, and uses the primary link to connect the primary link
  • the data output by the output terminal T1 is transmitted to the main link input terminal R1 of the next stage OLP-OLP2.
  • the main input terminal Rx of OLP1 needs to be connected to R1 through the optical switch unit (103) to send the data received by the main link input terminal R1 to the main link output terminal T1 inside the OLP1.
  • each OLP is split by an optical splitter (101), divided into two optical signals, and output via T1 and T2 respectively.
  • the Erbium Doped Fiber Amplifier (EDPA) (102) is used to amplify the optical signal to prevent excessive attenuation of the optical signal during transmission.
  • EDPA Erbium Doped Fiber Amplifier
  • the backup link output terminal T2 of OLP1 also outputs light in the 1+1 protection mode. The signal is transmitted through the backup link and waits for OLP2 to receive it.
  • the previous-level OLP When there is a link switching requirement in the previous-level OLP, if there is a failure, the previous-level OLP will perform the operation of switching from the active link to the backup link.
  • the operation is: the optical switch unit (103) of the front-level OLP, such as OLP1, generates an operation to disconnect R1 and Rx, and connects another backup link input terminal R2 with Rx, and then the backup link input terminal R2
  • the received data is output via the backup link output terminal T2, and the backup link is used to transmit the data to the next level of OLP such as OLP2.
  • the previous-level OLP has a link switch, there will be a millisecond-level service interruption.
  • the service interruption of the previous-level OLP such as OLP1 causes the receiving end of the primary link of the next-level OLP such as OLP2.
  • R1 cannot present optical signals, and because the backup link of OLP1 is shorter than the main link or due to the difference in characteristics of EDFA (102), the optical signal transmitted from the backup link of OLP1 will reach OLP2 first. That is to say, in response to the interruption of OLP1’s services, the OLP2’s backup link input R2 will give priority to the optical signal of R1.
  • the OLP2 optical switch unit (103 ) Will switch from R1 to R2, and switch the transmission link of OLP2 from the main link to the backup link.
  • the switching of the transmission link in OLP2 is caused by the switching of the transmission link in OLP1, not due to its own reasons, such as the failure of its own main link. It is not expected in practical applications.
  • OLP2 also switches as the transmission link of OLP1 switches. In the related art, this switching of the OLP2 transmission link is called an invalid switching. It can be seen that how to avoid invalid switching of the next-level OLP when the transmission link is switched in the previous-level OLP has become a technical problem that needs to be solved urgently.
  • embodiments of the present invention provide an OLP transmission link switching method and device, computer storage medium, and OLP.
  • An embodiment of the present invention provides an OLP transmission link switching method, including: for at least one OLP of at least two OLPs connected in a cascade manner, the at least one OLP includes a first signal for receiving a first signal. An input terminal and a second input terminal for receiving the second signal;
  • the first signal value of the first signal and the second signal value of the second signal are obtained; wherein the second time is determined by the second input terminal The time when the received signal value of the second signal reaches the first threshold set for the second signal;
  • the third signal value of the first signal is obtained, where the third time is the value of the first signal from the first threshold set for the first signal after the second time Time information when the second threshold is reached;
  • the first signal value, the second signal value, and the third signal value it is determined whether to switch the OLP from the first transmission link to the second transmission link.
  • An embodiment of the present invention also provides an OLP transmission link switching device.
  • the device includes: a first acquisition module, a second acquisition module, a third acquisition module, and a determination module; the OLP includes a device configured to receive a first signal The first input terminal and the second input terminal configured to receive the second signal; wherein,
  • the first acquiring module is configured to acquire first time information whose signal values of the first signal and the second signal are both smaller than the respective first threshold;
  • the second acquisition module is configured to acquire the first signal value of the first signal and the second signal value of the second signal during the first time to the second time; wherein the second time Is the time when the signal value of the second signal received by the second input terminal reaches the first threshold set for the second signal;
  • the third acquisition module is configured to acquire at least a third signal value of the first signal after a third time, where the third time is the value of the first signal after the second time Time information when the first threshold set for the first signal reaches the second threshold;
  • the determining module is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value.
  • the embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any of the methods are implemented.
  • the embodiment of the present invention also provides an OLP including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the processor implements the steps of any of the methods when the program is executed.
  • An OLP transmission link switching method, device, computer storage medium, and OLP provided in the embodiments of the present invention, wherein the switching method includes: for at least one OLP of at least two OLPs connected in a cascade manner, The at least one OLP includes a first input terminal for receiving a first signal and a second input terminal for receiving a second signal; Time information; in the first time to the second time, the first signal value of the first signal and the second signal value of the second signal are obtained; wherein the second time is determined by the second signal The time when the signal value of the second signal received by the input terminal reaches the first threshold set for the second signal; after the third time, at least the third signal value of the first signal is obtained, wherein the third signal value is Time is the time information for the value of the first signal to reach the second threshold from the first threshold set for the first signal after the second time; according to the first signal value and the second signal value, and The third signal value determines whether to switch the OLP from the first transmission link to the second transmission link.
  • first signal value and the second signal value are obtained from the first time to the second time, and the third signal value is obtained after the third time, so that the conditions for switching are more stringent and invalid switching is greatly avoided.
  • Figure 1 is a schematic diagram of the circuit configuration of a cascaded OLP in the related art
  • FIG. 2 is a schematic diagram of the implementation process of the first embodiment of the OLP transmission link switching method provided by the present invention
  • FIG. 3 is a schematic diagram of the implementation process of the second embodiment of the OLP transmission link switching method provided by the present invention.
  • FIG. 4 is a schematic diagram of the implementation process of the third embodiment of the OLP transmission link switching method provided by the present invention.
  • FIG. 5 is a schematic diagram of the principle of whether the OLP transmission link is switched according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the composition structure of an OLP transmission link switching apparatus provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the hardware structure of an OLP provided by an embodiment of the present invention.
  • the embodiment of the present invention provides an OLP transmission link switching method, which is applied to at least one OLP of at least two OLPs connected in a cascade manner, and the at least one OLP includes a first signal for receiving a first signal.
  • each OLP connected in a cascade manner includes two input terminals: a first input terminal and a second input terminal.
  • the first input end can be understood as the receiving end that receives the optical signal transmitted by the previous OLP through the main link.
  • the second input end can be understood as the receiving end that receives the optical signal transmitted by the previous OLP through the backup link.
  • Each OLP includes a first transmission link and a second transmission link. In the case where the first transmission link is the active link, the second transmission link refers to the standby link; the first transmission link is In the case of a backup link, the second transmission link refers to the main link.
  • the OLP transmission link switching method in the embodiment of the present application includes:
  • Step (S) 201 Obtain first time information in which the signal values of the first signal and the second signal are both smaller than the respective first thresholds;
  • S202 Obtain a first signal value of the first signal and a second signal value of the second signal during the first time to the second time; wherein the second time is determined by the second input The time when the signal value of the second signal received by the terminal reaches the first threshold set for the second signal;
  • S203 Obtain at least a third signal value of the first signal after the third time, where the third time is the value of the first signal from the first signal set for the first signal after the second time Time information when a threshold reaches a second threshold;
  • S204 Determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value.
  • the main body of executing S201 to S204 is OLP.
  • a first threshold is set for each of the first signal and the second signal.
  • the first threshold may be a specific value or a range of values, which is not specifically limited.
  • the first threshold of the two signals may be the same or different in value.
  • Obtain a piece of time information (first time information), which is the time when the signal values of the first signal and the second signal are both smaller than the respective first thresholds. It can be understood that when the two signals are synchronized, this time information may be the time when the two signals are less than the respective first threshold values at the same time. In the case where the two signals are not synchronized, this time information can be the time when the last signal is less than its first threshold.
  • the first time information can be a specific time or a duration, depending on the actual usage.
  • the signal values of the first signal and the second signal are acquired during the period of time from the first time to the time when the signal value of the second signal reaches the first threshold (the second time).
  • the first time information is obtained, the signal values of the first signal and the second signal are obtained from the first time to the second time, and after the third time, at least The value of the first signal is acquired again, and the signal value of the first signal and the second signal acquired from the first time to the second time and the signal value of the first signal acquired after the third time are used to determine whether Switch the transmission link of OLP.
  • the embodiment of the present application is equivalent to two signal values of the first signal and one signal value of the second signal acquired within a specified time (eg, the first time to the second time, and after the third time) , To determine whether to perform OLP transmission link. This solution of whether to switch the transmission link based on the signal value acquired within the specified time can at least avoid the invalid switching of the OLP of the current level caused by the switch of the previous OLP.
  • This application provides another embodiment of an OLP transmission link switching method. As shown in FIG. 3, the method includes:
  • S302 Obtain a first signal value of the first signal and a second signal value of the second signal during the first time to the second time; wherein the second time is determined by the second input The time when the signal value of the second signal received by the terminal reaches the first threshold set for the second signal;
  • S303 Obtain at least a third signal value of the first signal after the third time, where the third time is the value of the first signal from the first signal set for the first signal after the second time Time information when a threshold reaches a second threshold;
  • S306 Determine whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result.
  • S301 to S306 The subject of S301 to S306 is OLP.
  • S301 to S303 please refer to the relevant description of S201 to S203, and the repetition will not be repeated.
  • S304 to S306 serve as a specific implementation of the foregoing S204.
  • S304 and S305 have no strict sequence, and they can also be carried out at the same time.
  • the first time information is obtained, the signal values of the first signal and the second signal are obtained from the first time to the second time, and after the third time, at least the value of the first signal is obtained Get it again.
  • the judgment result of the magnitude relationship between the first signal value and the second signal value and the respective first threshold value and the judgment result of the magnitude relationship between the third signal value and the second threshold value, it is determined whether to perform the OLP transmission link Switch.
  • the solution of the embodiment of the present application is equivalent to stipulating when the first signal and the second signal value are acquired on the one hand, and on the other hand, it is based on the relationship between the signal value obtained within the specified time and the corresponding threshold value.
  • the result of the judgment is to determine whether to switch the transmission link, so that the signal value acquisition time and the conditions for whether the switch occurs become more rigorous. This more rigorous solution can greatly avoid the current level caused by the switch of the previous OLP An invalid handover occurred in OLP.
  • S306 the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result may be implemented in one of the following ways :
  • the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold values, and the second judgment result indicates that the third signal value is greater than or equal to the second In the case of a threshold, control the OLP to maintain the first transmission link.
  • the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value In the case of controlling the OLP to switch from the first transmission link to the second transmission link.
  • the first method is a situation where transmission link switching does not occur; the second method is a situation where transmission link switching occurs.
  • the first judgment result is characterized as the first signal value and the second signal value are both smaller than the respective first threshold values, and the difference is that the third signal value is different from the The magnitude relationship of the second threshold. If the second judgment result is characterized as that the third signal value is greater than or equal to the second threshold, there is no need to switch and maintain the OLP in the first transmission link. If the second judgment result is characterized as that the third signal value is less than the second threshold, then it is necessary to switch from the first transmission link to the second transmission link.
  • the scheme is more rigorous and can effectively avoid the switch due to the previous OLP As a result, invalid handover occurs in the OLP at this level, which avoids no handover that should not happen.
  • the process is performed based on the first signal value of the first signal, the second signal value of the second signal, and the third signal value of the first signal, that is, two values of the first signal and one value of the second signal. Determine whether to switch the transmission link.
  • the third signal value of the first signal obtained after the third time is less than the second threshold, there is a small possibility that the second transmission link will fail.
  • the switching method further includes:
  • the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result includes:
  • the first judgment result the second judgment result, and the third judgment result, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
  • the signal value of the second signal is also acquired again, and in the process of determining whether to switch the transmission link, in addition to applying the first and second determination results,
  • the third judgment result of judging the magnitude relationship between the fourth signal value and the third threshold value is added, and the determination of whether the transmission link is switched is determined by the combination of the three judgment results of the first to third judgment results. It is equivalent to the aforementioned scheme of whether the transmission link is switched based on the first and second judgment results. This scheme makes the switching conditions more stringent, so that it can accurately determine whether it should be switched, so that the judgment of switching or not switching can be more accurate and avoid An invalid handover occurred in this level of OLP.
  • the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result, the second judgment result and the third judgment result may be through one of the following Ways to achieve:
  • the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold values, and the second judgment result indicates that the third signal value is greater than or equal to the second
  • the threshold and the third judgment result indicate that when the fourth signal value is less than the third threshold, the OLP is controlled to maintain the first transmission link.
  • the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold values
  • the second judgment result indicates that the third signal value is greater than or equal to the second
  • the threshold and the third judgment result indicate that when the fourth signal value is greater than or equal to the third threshold, the OLP is controlled to maintain the first transmission link.
  • Manner 3 The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value And when the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold, control the OLP to switch from the first transmission link to the second transmission link.
  • Manner 4 The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value And when the third judgment result indicates that the fourth signal value is less than a third threshold, control the OLP to maintain the first transmission link.
  • the first and second modes are the normal operation of the first transmission link without the occurrence of transmission link switching, and there is no need to consider the working status of the second transmission link; the third mode is that the first transmission link is not working normally and the second transmission link is not working properly.
  • the normal operation of the transmission link requires a transmission link switching situation; the fourth method is to avoid the second transmission link failure without the transmission link switching situation.
  • first and second modes when the first signal value and the second signal value are both less than their respective first thresholds, it is only necessary to switch whether the third signal value is greater than or equal to the second threshold. Still don't switch the determination of the transmission link, without worrying about the value of the fourth signal value.
  • third and fourth modes when the third signal value is less than the second threshold value, it is also necessary to combine the magnitude relationship between the fourth signal value and the third threshold value to determine whether to switch or not to switch.
  • the first judgment result is characterized as that the first signal value and the second signal value are both smaller than the respective first thresholds, and the difference is that the first The magnitude relationship between the three-signal value and the second threshold and the magnitude relationship between the fourth signal value and the third threshold. If the second judgment result indicates that the third signal value is greater than or equal to the second threshold, there is no need to switch the transmission link and control the OLP to maintain the first transmission link. If the second judgment result indicates that the third signal value is less than the second threshold value and the third judgment result indicates that the fourth signal value is greater than or equal to the third threshold value, then the switching of the transmission link needs to occur.
  • the second judgment result indicates that the third signal value is less than the second threshold and the third judgment result indicates that the fourth signal value is less than the third threshold, there is no need to switch the transmission link and control the OLP to maintain the first transmission chain Way to avoid invalid switching caused by the failure of the second transmission link.
  • the determination of the relationship with the corresponding threshold value it is determined whether the switching of the transmission link occurs, which can greatly avoid the occurrence of invalid OLP at this level. Switch.
  • Each OLP connected in a cascade manner in the embodiment of the present application includes at least three input terminals (Input) and three output terminals (Output).
  • the definition of each input terminal and output terminal is shown in Table 1.
  • the first signal is the main service optical signal
  • the second signal is the backup service optical signal
  • the first input terminal R1 is the main service input port
  • the second input terminal R2 is the backup service input Port
  • the total receiving port Rx is a light-receiving port connected to service signals
  • the total output port Tx is a light-emitting port connected to service signals
  • the first output port T1 is the main service output port
  • the second output Port T2 is a backup service output port.
  • the foregoing solution can be understood as measuring the waveforms of interfaces R1, R2, and Rx during OLP2 switching caused by OLP1 switching in a scenario where there is invalid switching of OLP2.
  • the waveforms of the R1 and R2 interfaces are simplified waveforms, and the waveforms of the Rx interface are idealized square waves.
  • the waveform of the Rx interface has a falling edge, it indicates that the service is interrupted, and when the waveform of the Rx interface has a rising edge, it indicates that the optical switch unit (103) is disconnected from the connection between Rx and R1 and then switched to connect with R2. That is to say, the above content is to analyze the reasons for invalid switching in the scene where there is invalid switching in OLP2.
  • the rule in the scene of invalid handover is used to avoid the occurrence of invalid handover.
  • R2 and R1 have a certain time interval from the interruption of OLP1's business to the occurrence.
  • the time interval is measured multiple times in advance, and the reasonable value of this time interval is estimated. Recorded as ta.
  • ta There is a certain time interval between the time when Rx disconnects from R1 and then connects with R2 and the time when the optical signal of R1 tends to stabilize. Perform multiple measurements of this time interval in advance, and estimate the reasonable value of this time interval. Value, and denoted as tb.
  • time intervals ta, tb, and t0 are all time interval values, which can be a specific value or a range value, which is not specifically limited.
  • OLP1 uses the main and backup channels for optical signal transmission
  • OLP2 uses input R1 to receive optical signals transmitted by OLP1 through the main channel
  • input R2 uses input R2 to receive optical signals transmitted by OLP1 through the backup channel .
  • the Rx of OLP1 is connected to its R1 through the optical switch unit (103), the optical signal input to OLP1 by the external device is received by R1 of OLP1, and the received optical signal passes through Rx and Tx. It splits light with the splitter to obtain two output signals, one of which is output through the T1 output terminal and transmitted to R1 of OLP2 through the main link of OLP1. The other is output via the T2 output terminal and transmitted to R2 of OLP2 via the backup link of OLP1.
  • the optical signal received by the OLP2 is the optical signal input from the R1.
  • the optical signal appearing on the input of R2 is the optical signal transmitted by the backup link of OLP1. Since Rx of OLP2 is not connected to R2, the signal received at the input of R2 is saved first.
  • S402 During the process of OLP2 receiving the optical signal, monitor the magnitude of the optical signal received on R1 and R2;
  • the optical signal on the primary link from OLP1 (primary service optical signal) received by R1 and the optical signal on the backup link from OLP1 (backup service optical signal) received by R2 )
  • the size of the optical signal is specifically the optical power value of the optical signal.
  • S403 Record the time information (first time information) that at least the last optical signal of the primary service optical signal and the backup service optical signal is less than the first threshold set for it, and record the first time as Ti;
  • the input end of OLP2 will both receive the main service optical signal and the standby service optical signal whose optical power values are within a stable range.
  • the input terminal of OLP2 will not receive optical signals or receive very small optical signals, preferably No light signal is received. That is, once it is detected that the optical signal of the main service input by R1 is less than the first threshold (such as 0dBm) set for it, it is considered that a fault has occurred.
  • the fault may be caused by the transmission link of the previous OLP such as OLP1.
  • the two input terminals of the OLP2 may receive their respective optical signals synchronously, or may not receive synchronously, synchronous reception is preferred.
  • the time information that is less than the first threshold value is recorded for that input terminal, and then two input terminals are recorded for two input terminals. Such time information. From the two recorded time information, the information with the later time is selected as the first time information in the embodiment of the present application.
  • the first threshold set for the primary service optical signal and the standby service optical signal can be a specific value or a range value.
  • the two first thresholds can be the same or different, depending on actual usage. Flexible settings. From the measurement to the moment Ti, OLP2 starts timing.
  • S404 In the time period from Ti to (t0-ta), measure the magnitude of the optical signal received by R1 and R2 of OLP2;
  • ta is the pre-estimated possible time for the standby service optical signal input by R2 to reach the first threshold from the first threshold value less than itself;
  • t0 is the time from the interruption of the service of OLP1 to the disconnection of Rx from OLP2 and the connection to R2. Therefore, the time period t0-ta can be regarded as the result of the pre-measurement result, which is caused by the interruption of OLP1 service.
  • the R1 and R2 input terminals cannot receive optical signals or the received optical signals are very small. duration.
  • S405 Determine the magnitude relationship between the optical signals received by R1 and R2 of OLP2 measured in the time period from Ti to (t0-ta) and the first threshold set for each;
  • switch according to normal logic is: if the measured optical signal value received by R1 is greater than or equal to the second threshold value set for it, then OLP2 continues to receive the optical signal of R1 and continues to use the optical signal received by the main link. The signal is transmitted to the next level of OLP such as OLP3 through the main link. If the measured optical signal value received by R1 is less than the first threshold set for it and the measured optical signal value received by R2 is greater than or equal to the third threshold set for it, then OLP2 will disconnect R1 and Rx. The connection between them continues to connect R2 and Rx to switch OLP2 from the original main link to the backup link and transmit the received optical signal to OLP3 through the backup link. If the measured R1 is greater than or equal to the second threshold and the optical signal of R2 is greater than or equal to the third threshold set for it, then OLP2 does not switch and continues to use the primary link to transmit the optical signal received by R1 to OLP3.
  • the measurement of the optical signals received by R1 and R2 may be one or multiple times.
  • the optical signal can be measured at any time within the time period from time Ti to time Ti+(t0-ta); it is also possible to set a (preferred) measurement time point in advance and measure at (preferred) The optical signal is measured when the time point arrives.
  • the intermediate time point of the time period from time Ti to Ti+(t0-ta) can be taken as the aforementioned (preferred) measurement time point, and it is measured when this (preferred) measurement time point arrives.
  • the signal values of the two input terminals can be taken as the aforementioned (preferred) measurement time point, and it is measured when this (preferred) measurement time point arrives.
  • the optical signal can be measured at any two or more times within the time period from time Ti to time Ti+(t0-ta), and the measurement results at each time are averaged as the final The optical signal value that can be compared with the respective first threshold value. It is also possible to select any one of the multiple measurement results as the optical signal that can be finally compared with the respective first threshold.
  • OLP2 since the main body of the solution that executes the foregoing steps is OLP2, and specifically OLP2 processors such as MCUs, MCUs usually have a certain sampling frequency.
  • the frequency of multiple measurements during this time period is preferably less than the sampling frequency of the MCU.
  • the specific conditions can be flexibly set according to actual applications.
  • t0, ta, and tb are obtained by pre-measurement and estimation before executing the solution of the embodiment of the present application, such as before performing S401.
  • t0, ta, and tb can also be measured and estimated during the execution of the solution.
  • Information such as the measurement of the optical signal value at the input terminal and the measurement time corresponding to each measurement value is obtained.
  • the optical signal values of R1 and R2 are measured at a preset frequency of multiple measurements (less than the sampling frequency of the MCU), and the signal values of a certain amount of R1 and R2 and the corresponding time points can be recorded.
  • t0, ta, and tb are calculated according to the change of the optical signal in a certain amount of data recorded and the time point corresponding to the change.
  • the second time information and the third time information can be calculated reasonably.
  • t0, ta, and tb in the embodiments of the present application are estimated in advance or calculated in real time according to the measured optical signal changes and the time information corresponding to the changes during the execution of the scheme, there is no specific limitation , According to the actual situation.
  • OLP2 starts timing from 0 at the time Ti, and when timing reaches the time (Ti+t0+tb), after the time (Ti+t0+tb), measure the optical signal received by R1 of OLP2;
  • tb is the length of time between the time when Rx is disconnected from R1 and then connected to R2 and the time when the optical signal of R1 stabilizes, that is, when Rx is disconnected from R1 and then connects with R2 to R1, the optical signal recovers.
  • S407 Determine the magnitude relationship between the optical signal received by the measured R1 of OLP2 after the moment (Ti+t0+tb) and the second threshold;
  • step S408 is executed
  • step S409 is executed
  • the measurement of the optical signal received by R1 of OLP2 after the moment of (Ti+t0+tb) may be multiple times or once. In the case of multiple times, which measurement result is taken as the final result of the optical signal received by R2 can be found in the aforementioned measurement result of the optical signal received by R1 and R2 during the period from time Ti to time (t0-ta). The similar treatment is omitted here.
  • Control OLP2 to maintain the transmission of service optical signals on the primary link
  • S409 Control the OLP2 to switch from the main link to the backup link to perform service optical signal transmission.
  • the execution subject of the foregoing S401 to S409 may all be OLP2, specifically an OLP2 processor such as an MCU.
  • the transmission link switching occurs when OLP2 starts timing from 0 and timing to the arrival of t0, that is, when the optical signal first appears in R2.
  • the time from Ti to ( t0-ta) In this time period, the optical signals received by R1 and R2 of OLP2 shall be measured at least once, that is, the first measurement needs to occur in the time period from Ti to (t0-ta).
  • the optical signal received by R1 of OLP2 is measured at least once. That is, the second measurement occurs after the moment (Ti+t0+tb).
  • the results measured in these two time periods are compared with their respective thresholds, and according to the comparison results, it is determined whether to switch the transmission link. It can be regarded as judging based on the comparison result whether the input of OLP2 did not receive the signal due to the failure of the input terminal or the switching of the transmission link of OLP1. If it is caused by the switching of the transmission link of OLP1, then OLP2 There is no need to control the transmission link. If it is not caused by the switching of the transmission link in OLP1, in order to ensure the normal transmission of the optical signal between all levels of OLP, the OLP2 transmission link needs to be switched. In turn, invalid switching of OLP2 can be avoided.
  • the embodiment of the present application is equivalent to specifying the time information of the measurement signal, and based on the judgment result of the size of the optical signal measured in the specified time period and the respective threshold value, whether to determine the transmission link is performed Switching makes the switching conditions more stringent and can effectively avoid invalid switching.
  • the description is based on the judgment result of the optical signal received by R1.
  • the optical signal received by R2 can also be measured after the time (Ti+t0+tb). And combined with the magnitude relationship between the measurement result of R2 and the third threshold, whether to switch the transmission link. Specifically, if the optical signal received by R1 measured after the moment (Ti+t0+tb) is greater than or equal to the second threshold, the OLP2 transmission link is not switched, and the optical signal is still maintained on the primary link. transmission. If the optical signal received by R1 measured after the moment (Ti+t0+tb) is less than the second threshold and the optical signal received by R2 is greater than or equal to the third threshold, control OLP2 to be transmitted from the primary link to the backup link.
  • the optical signal received by R1 measured after the moment (Ti+t0+tb) is less than the second threshold and the optical signal received by R2 is less than the third threshold, the optical signal transmission is still maintained on the main link.
  • the third threshold can be regarded as the reasonable value of the optical signal received by R2 when the pre-measured R2 signal starts from the interruption of the service of OLP1, which does not appear or appears very small, to when the optical signal appears and the optical signal is stable.
  • the third threshold is -3dBm.
  • the measurement of R1 and R2 may be performed at the same time or at different times, and it is preferably performed at the same time.
  • the foregoing is equivalent to combining the optical signal received by R2 measured after the time (Ti+t0+tb) with the corresponding threshold judgment result to determine whether to switch the transmission link, making the switching conditions more stringent and greatly avoiding judgment errors. Circumstances, it can effectively identify whether the two input terminals of OLP2 have no optical signal during the time period from Ti to (t0-ta) or whether the small optical signal is caused by the service interruption of the previous stage OLP1. Realize the effective switching of OLP2 and avoid invalid switching.
  • t0, ta, and tb may be numerical ranges or specific numerical values, which are not specifically limited. In one embodiment, it is a numerical range, for example, t0 is 50ms (milliseconds), ta is 20ms, and tb is 8ms.
  • t0 is 50ms (milliseconds)
  • ta is 20ms
  • tb is 8ms.
  • the time for measuring the optical signals received by R1 and R2 should be controlled between the first time and the second time, that is, the time period when t0 and ta do not overlap.
  • At least the time point of the re-measurement of R1 needs to occur after the third time, that is, after the tb time period; in this way, it can be greatly identified between the first time and the second time. Whether there is no optical signal or very small optical signal between R1 and R2 is caused by the business interruption of the previous stage OLP1 or caused by the failure of the input terminals of R1 and R2, and then the effective switching of the OLP2 transmission link can be realized , To avoid invalid switching.
  • first threshold, second threshold, and third threshold are absolute thresholds. According to the first threshold, second threshold, and third threshold, determining whether OLP2 is switched from the main link to the backup link is a kind of absolute threshold. How to switch the threshold. In an embodiment, the first threshold, the second threshold, and the third threshold may also be a switching method based on a relative threshold. According to the first threshold, the second threshold, and the third threshold, it is determined whether OLP2 is switched from the main link. To the backup link, in this way, the first threshold, the second threshold, and the third threshold can be selected within a suitable numerical range, and the unit is dB.
  • the switching method of the absolute threshold is specifically that the signal value of the first signal and the signal value of the second signal are compared with the respective set thresholds to obtain the judgment result, and it is determined whether to perform the first transmission link to the second transmission link.
  • the relative threshold mode is that the difference between the signal value of the first signal and the signal value of the second signal is compared with the set thresholds to obtain the judgment result, and it is determined whether to execute the first transmission link to the second transmission link Switch.
  • the optical signal received by R1 is the main service optical signal
  • the optical signal received by R2 is the standby service optical signal
  • the first transmission link is the main link
  • the second transmission link is the main service optical signal.
  • the backup link Take the backup link as an example.
  • the optical signal received by R1 is the backup service optical signal
  • the second transmission link is the main service optical signal.
  • the link and the first transmission link are backup links.
  • each OLP connected in a cascade manner can adopt the switching method in the embodiment of the present application to avoid invalid switching of the OLP.
  • the first OLP connected in a cascaded manner since there is no other OLP connected to it in the previous stage, there will be no invalid handover, and there is no need to avoid invalid handover.
  • An OLP transmission link switching device provided by an embodiment of the present invention, as shown in FIG. 6, further includes:
  • the OLP includes a first input terminal 61a configured to receive a first signal and a second input terminal configured to receive a second signal 61b;
  • the first acquiring module 61 is configured to acquire first time information in which the signal values of the first signal and the second signal are both smaller than the respective first threshold;
  • the second acquisition module 62 is configured to acquire the first signal value of the first signal and the second signal value of the second signal during the first time to the second time; wherein the second signal Time is the time when the signal value of the second signal received by the second input terminal reaches the first threshold set for the second signal; and
  • the third acquiring module 63 is configured to acquire at least a third signal value of the first signal after a third time, where the third time is the value of the first signal after the second time Time information when the second threshold is reached;
  • the determining module 64 is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value .
  • the determining module 64 is configured to:
  • the first judgment result and the second judgment result it is determined whether to switch the OLP from the first transmission link to the second transmission link.
  • the determining module 64 is further configured to:
  • the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is greater than or equal to the second threshold value
  • the third signal value of the first signal obtained after the third time is less than the second threshold, there is a small possibility that the second transmission link will fail, and then the cascaded OLP will be switched. It will switch from the first transmission link to the failed second transmission link.
  • the device further includes:
  • a fourth obtaining module configured to obtain a fourth signal value of the second signal after a third time
  • the determining module 64 is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result, the second judgment result, and the third judgment result.
  • the determining module 64 is further configured to:
  • the first judgment result characterizes that the first signal value and the second signal value are both smaller than the respective first threshold values
  • the second judgment result characterizes that the third signal value is greater than or equal to the second threshold value and the first threshold value.
  • Three judgment results indicate that the fourth signal value is less than a third threshold, controlling the OLP to maintain the first transmission link.
  • the determining module 64 is further configured to:
  • the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first thresholds
  • the second judgment result indicates that the third signal value is smaller than the second threshold and the third
  • the OLP is controlled to switch from the first transmission link to the second transmission link.
  • the first obtaining unit 32, the second obtaining unit 33, the third obtaining unit 34, and the determining unit 35 in the device for switching the OLP transmission link can be used in practical applications.
  • Central processing unit CPU, Central Processing Unit
  • DSP Digital Signal Processor
  • MCU Microcontroller Unit
  • FPGA Field-Programmable Gate Array
  • the switching device of the OLP transmission link in the embodiment of the present application, because the principle of the switching device of the OLP transmission link to solve the problem is similar to the aforementioned switching method of the OLP transmission link, therefore, the switching method of the OLP transmission link
  • the switching method of the OLP transmission link For the implementation process and implementation principle of the switching device, please refer to the foregoing description of the implementation process and implementation principle of the switching method of the OLP transmission link, and the repetition will not be repeated.
  • the embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, it is used to perform at least the steps of any one of the methods shown in FIGS. 2 to 6.
  • the computer-readable storage medium may specifically be a memory.
  • FIG. 7 is a schematic diagram of the hardware structure of an OLP according to an embodiment of the present invention.
  • the OLP includes: a communication component 73 for data transmission, at least one processor 71, and storage capable of running on the processor 71
  • the memory 72 of the computer program The various components in the terminal are coupled together through the bus system 74.
  • the bus system 74 is used to implement connection and communication between these components.
  • the bus system 74 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 74 in FIG. 7.
  • the processor 71 executes at least the steps of any one of the methods shown in FIG. 2 to FIG. 6 when executing the computer program.
  • the memory 72 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage.
  • the volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache.
  • RAM random access memory
  • SRAM static random access memory
  • SSRAM synchronous static random access memory
  • Synchronous Static Random Access Memory Synchronous Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM synchronous connection dynamic random access memory
  • DRRAM Direct Rambus Random Access Memory
  • the memory 72 described in the embodiment of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
  • the method disclosed in the foregoing embodiment of the present invention may be applied to the processor 71 or implemented by the processor 71.
  • the processor 71 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 71 or instructions in the form of software.
  • the aforementioned processor 71 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like.
  • the processor 71 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present invention may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium, and the storage medium is located in the memory 72.
  • the processor 71 reads the information in the memory 72 and completes the steps of the foregoing method in combination with its hardware.
  • the switching device of the OLP transmission link can be implemented by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), and complex programmable logic device.
  • ASIC Application Specific Integrated Circuit
  • DSP Programmable Logic Device
  • PLD Programmable Logic Device
  • complex programmable logic device Logic device (CPLD, Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, microprocessor (Microprocessor), or other electronic components are implemented to implement the foregoing OLP transmission link switching method.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented.
  • the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the functional units in the embodiments of the present invention can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration
  • the unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • a person of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware.
  • the foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc.
  • ROM read-only memory
  • RAM Random Access Memory
  • magnetic disks or optical disks etc.
  • the aforementioned integrated unit in the embodiment of the present invention is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes a number of instructions to enable A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present invention.
  • the aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.
  • the signal values of the first signal and the second signal are obtained from the first time to the second time, and after the third time, at least the value of the first signal is obtained Acquire again, and determine whether to perform the OLP transmission link through the signal values of the first signal and the second signal acquired from the first time to the second time and the signal values of the first signal acquired after the third time Switch.
  • This scheme of whether to switch the transmission link based on the signal value obtained within the specified time can at least avoid the invalid switching of the OLP at the current level caused by the switch of the previous level OLP, and solves the problem of the previous level in the related technology.
  • Level OLP switching a technical problem that causes meaningless switching of cascaded OLP.

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Optical Communication System (AREA)

Abstract

A switching method and apparatus of an OLP transmission link of an optical fiber automatic switching protection system, a storage medium and an OLP. The method is used for at least one OLP in at least two OLPs connected in a cascading manner, and the least one OLP comprises a first input end used for receiving a first signal and a second input end used for receiving a second signal. The method comprises: obtaining first time information in which signal values of the first signal and the second signal are both less than respective first threshold values (S201); obtaining a first signal value of the first signal and a second signal value of the second signal within the period from the first time to the second time (S202); after a third time, at least obtaining a third signal value of the first signal (S203); and determining whether to switch the OLP from a first transmission link to a second transmission link according to the first signal value, the second signal value and the third signal value (S204).

Description

OLP传输链路的切换方法、装置、存储介质及OLPOLP transmission link switching method, device, storage medium and OLP
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为201911118504.2、申请日为2019年11月15日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with an application number of 201911118504.2 and an application date of November 15, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域Technical field
本发明涉及光纤自动切换保护系统(Optical Fiber Line Auto Switch Protection Equipment,简称OLP)技术,尤其涉及一种OLP传输链路的切换方法、装置、存储介质以及OLP。The present invention relates to optical fiber automatic switching protection system (Optical Fiber Line Auto Switch Protection Equipment, OLP for short) technology, and in particular to a switching method, device, storage medium and OLP of an OLP transmission link.
背景技术Background technique
OLP作为光缆链路上的系统,具有可独立透明进行数据的传输、安全性高、故障恢复快的特点,可以与其它的光网络中的设备或器件进行配合,构建成无阻断、高可靠、安全灵活、抗灾害能力强的光通信网系统。As a system on the optical cable link, OLP has the characteristics of independent and transparent data transmission, high security, and fast failure recovery. It can cooperate with other equipment or devices in the optical network to build a non-blocking and high reliability , An optical communication network system that is safe, flexible, and capable of resisting disasters.
OLP具有两种传输链路,主用链路和备用链路。OLP可使用这个两种传输链路中的至少其中一种进行光信号的传输。OLP的切换保护方式包括1+1保护方式和1:1保护方式,由于1+1保护方式的OLP切换速度更快,故这种切换方式更为常用。OLP has two transmission links, the main link and the backup link. OLP can use at least one of these two transmission links for optical signal transmission. OLP handover protection methods include 1+1 protection mode and 1:1 protection mode. Since the OLP switching speed of 1+1 protection mode is faster, this switching mode is more commonly used.
在至少两个OLP采用级联方式进行连接的光网络中,如图1所示,为三个OLP进行级联的电路图。在1+1的保护方式中,前级OLP-OLP1的主用链路输出端T1输出由主用链路输入端R1接收的数据(光信号),并利用主用链路将主用链路输出端T1输出的数据传输至下一级OLP-OLP2的主用链路输入端R1。其中,OLP1的主输入端Rx需要通过光开关单元(103) 与R1的连接才能在OLP1的内部将由主用链路输入端R1接收的数据送入至主用链路输出端T1。其中,每个OLP通过分光器(101)分光,分为两路光信号,分别经由T1、T2输出。其中,掺铒放大器(Erbium Doped Fiber Amplifier,EDPA)(102)用于对光信号进行放大以防止光信号在传输过程中过度衰减。可以理解,在默认的情况下,各级OLP之间均通过主用链路进行数据的逐级传输,但是值得注意的是1+1保护方式下OLP1的备用链路输出端T2也输出有光信号并通过备用链路传输等待OLP2的接收。在前级OLP存在有链路切换需求的情况下如存在故障,前级OLP将执行从主用链路切换到备用链路的操作。该操作是:前级OLP如OLP1的光开关单元(103)产生断开R1与Rx之间的操作,并将另一备用链路输入端R2与Rx连接上,进而由备用链路输入端R2接收到的数据经由备用链路输出端T2进行输出,并利用备用链路传输数据到下一级OLP如OLP2。然而在实际应用中,在前级OLP发生链路切换的情况下,会出现毫秒级的业务中断,前级OLP如OLP1的业务中断导致下一级OLP的主用链路的接收端如OLP2的R1无法出现光信号,且由于OLP1的备用链路短于主用链路或者由于EDFA(102)的特性差异产生不同的延时,从OLP1的备用链路传输的光信号会先到达OLP2,也即针对OLP1的业务发生中断的这一现象,OLP2的备用链路输入端R2会优先于R1先出现光信号,这种情况下,原本使用主用链路进行传输的OLP2的光开关单元(103)会从R1切换到R2,将OLP2的传输链路从主用链路切换到备用链路上。可以理解,OLP2会发生传输链路的这种切换是由于OLP1发生传输链路的切换而导致的,并非由于其自身原因如自身的主用链路发生故障而导致的,实际应用中并不期望OLP2随着OLP1的传输链路的切换也发生切换。相关技术中,称OLP2传输链路的这种切换为一种无效的切换。可见,如何在前级OLP发生传输链路的切换的情况下避免下一级OLP发生无效切换,成为了亟待解决的技术 问题。In an optical network in which at least two OLPs are connected in a cascaded manner, as shown in Fig. 1, a circuit diagram for cascading three OLPs. In the 1+1 protection mode, the primary link output terminal T1 of the previous stage OLP-OLP1 outputs the data (optical signal) received by the primary link input terminal R1, and uses the primary link to connect the primary link The data output by the output terminal T1 is transmitted to the main link input terminal R1 of the next stage OLP-OLP2. Among them, the main input terminal Rx of OLP1 needs to be connected to R1 through the optical switch unit (103) to send the data received by the main link input terminal R1 to the main link output terminal T1 inside the OLP1. Among them, each OLP is split by an optical splitter (101), divided into two optical signals, and output via T1 and T2 respectively. Among them, the Erbium Doped Fiber Amplifier (EDPA) (102) is used to amplify the optical signal to prevent excessive attenuation of the optical signal during transmission. It can be understood that, by default, all levels of OLP are used to transmit data step by step through the primary link, but it is worth noting that the backup link output terminal T2 of OLP1 also outputs light in the 1+1 protection mode. The signal is transmitted through the backup link and waits for OLP2 to receive it. When there is a link switching requirement in the previous-level OLP, if there is a failure, the previous-level OLP will perform the operation of switching from the active link to the backup link. The operation is: the optical switch unit (103) of the front-level OLP, such as OLP1, generates an operation to disconnect R1 and Rx, and connects another backup link input terminal R2 with Rx, and then the backup link input terminal R2 The received data is output via the backup link output terminal T2, and the backup link is used to transmit the data to the next level of OLP such as OLP2. However, in practical applications, when the previous-level OLP has a link switch, there will be a millisecond-level service interruption. The service interruption of the previous-level OLP such as OLP1 causes the receiving end of the primary link of the next-level OLP such as OLP2. R1 cannot present optical signals, and because the backup link of OLP1 is shorter than the main link or due to the difference in characteristics of EDFA (102), the optical signal transmitted from the backup link of OLP1 will reach OLP2 first. That is to say, in response to the interruption of OLP1’s services, the OLP2’s backup link input R2 will give priority to the optical signal of R1. In this case, the OLP2 optical switch unit (103 ) Will switch from R1 to R2, and switch the transmission link of OLP2 from the main link to the backup link. It can be understood that the switching of the transmission link in OLP2 is caused by the switching of the transmission link in OLP1, not due to its own reasons, such as the failure of its own main link. It is not expected in practical applications. OLP2 also switches as the transmission link of OLP1 switches. In the related art, this switching of the OLP2 transmission link is called an invalid switching. It can be seen that how to avoid invalid switching of the next-level OLP when the transmission link is switched in the previous-level OLP has become a technical problem that needs to be solved urgently.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种OLP传输链路的切换方法及装置、计算机存储介质及OLP。In order to solve the existing technical problems, embodiments of the present invention provide an OLP transmission link switching method and device, computer storage medium, and OLP.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is realized as follows:
本发明实施例提供了一种OLP传输链路的切换方法,包括:针对至少两个通过级联方式进行连接的OLP中的至少一个OLP,所述至少一个OLP包括用于接收第一信号第一输入端和用于接收第二信号的第二输入端;An embodiment of the present invention provides an OLP transmission link switching method, including: for at least one OLP of at least two OLPs connected in a cascade manner, the at least one OLP includes a first signal for receiving a first signal. An input terminal and a second input terminal for receiving the second signal;
获得第一信号和第二信号的信号值均小于各自的第一阈值的第一时间信息;Obtaining first time information in which signal values of the first signal and the second signal are both smaller than the respective first threshold;
在所述第一时间至第二时间内,获得所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;In the first time to the second time, the first signal value of the first signal and the second signal value of the second signal are obtained; wherein the second time is determined by the second input terminal The time when the received signal value of the second signal reaches the first threshold set for the second signal;
在第三时间之后,至少获得所述第一信号的第三信号值,其中所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;After the third time, at least the third signal value of the first signal is obtained, where the third time is the value of the first signal from the first threshold set for the first signal after the second time Time information when the second threshold is reached;
根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。According to the first signal value, the second signal value, and the third signal value, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
本发明实施例还提供了一种OLP传输链路的切换装置,所述装置包括:第一获取模块、第二获取模块、第三获取模块及确定模块;所述OLP包括配置为接收第一信号的第一输入端和配置为接收第二信号的第二输入端;其中,An embodiment of the present invention also provides an OLP transmission link switching device. The device includes: a first acquisition module, a second acquisition module, a third acquisition module, and a determination module; the OLP includes a device configured to receive a first signal The first input terminal and the second input terminal configured to receive the second signal; wherein,
所述第一获取模块,配置为获取所述第一信号和所述第二信号的信号值均小于各自的第一阈值的第一时间信息;The first acquiring module is configured to acquire first time information whose signal values of the first signal and the second signal are both smaller than the respective first threshold;
所述第二获取模块,配置为在所述第一时间至第二时间内,获取所述 第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;The second acquisition module is configured to acquire the first signal value of the first signal and the second signal value of the second signal during the first time to the second time; wherein the second time Is the time when the signal value of the second signal received by the second input terminal reaches the first threshold set for the second signal;
所述第三获取模块,配置为在第三时间之后,至少获取所述第一信号的第三信号值,其中所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;The third acquisition module is configured to acquire at least a third signal value of the first signal after a third time, where the third time is the value of the first signal after the second time Time information when the first threshold set for the first signal reaches the second threshold;
所述确定模块,配置为根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。The determining module is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value.
本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现任一所述方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any of the methods are implemented.
本发明实施例还提供了一种OLP,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现任一所述方法的步骤。The embodiment of the present invention also provides an OLP including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the processor implements the steps of any of the methods when the program is executed.
本发明实施例提供的一种OLP传输链路的切换方法、装置、计算机存储介质及OLP,其中,所述切换方法包括:针对至少两个通过级联方式进行连接的OLP中的至少一个OLP,所述至少一个OLP包括用于接收第一信号第一输入端和用于接收第二信号的第二输入端;获得第一信号和第二信号的信号值均小于各自的第一阈值的第一时间信息;在所述第一时间至第二时间内,获得所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;在第三时间之后,至少获得所述第一信号的第三信号值,其中所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。An OLP transmission link switching method, device, computer storage medium, and OLP provided in the embodiments of the present invention, wherein the switching method includes: for at least one OLP of at least two OLPs connected in a cascade manner, The at least one OLP includes a first input terminal for receiving a first signal and a second input terminal for receiving a second signal; Time information; in the first time to the second time, the first signal value of the first signal and the second signal value of the second signal are obtained; wherein the second time is determined by the second signal The time when the signal value of the second signal received by the input terminal reaches the first threshold set for the second signal; after the third time, at least the third signal value of the first signal is obtained, wherein the third signal value is Time is the time information for the value of the first signal to reach the second threshold from the first threshold set for the first signal after the second time; according to the first signal value and the second signal value, and The third signal value determines whether to switch the OLP from the first transmission link to the second transmission link.
本申请实施例中,根据第一信号值与第二信号值、和第三信号值,确定是否进行OLP的传输链路的切换。至少可避免级联OLP由于前级OLP发生切换而自身发生无效的切换。In the embodiment of the present application, it is determined whether to switch the transmission link of the OLP according to the first signal value, the second signal value, and the third signal value. At least it can prevent the cascaded OLP from being ineffectively switched due to the switching of the previous OLP.
此外,第一信号值与第二信号值在第一时间至第二时间内获得,第三信号值在第三时间之后获得,使得发生切换的条件更加严谨,大大避免发生无效切换。In addition, the first signal value and the second signal value are obtained from the first time to the second time, and the third signal value is obtained after the third time, so that the conditions for switching are more stringent and invalid switching is greatly avoided.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention or related technologies, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or related technologies. Obviously, the accompanying drawings in the following description are merely the present invention. For the embodiments of the invention, for those of ordinary skill in the art, other drawings may be obtained based on the provided drawings without creative work.
图1为相关技术中级联OLP的电路构成示意图;Figure 1 is a schematic diagram of the circuit configuration of a cascaded OLP in the related art;
图2为本发明提供的OLP传输链路的切换方法的第一实施例的实现流程示意图;2 is a schematic diagram of the implementation process of the first embodiment of the OLP transmission link switching method provided by the present invention;
图3为本发明提供的OLP传输链路的切换方法的第二实施例的实现流程示意图;3 is a schematic diagram of the implementation process of the second embodiment of the OLP transmission link switching method provided by the present invention;
图4为本发明提供的OLP传输链路的切换方法的第三实施例的实现流程示意图;4 is a schematic diagram of the implementation process of the third embodiment of the OLP transmission link switching method provided by the present invention;
图5为本发明实施例提供的OLP传输链路是否切换的原理示意图;5 is a schematic diagram of the principle of whether the OLP transmission link is switched according to an embodiment of the present invention;
图6为本发明实施例提供的OLP传输链路的切换装置的组成结构示意图;6 is a schematic diagram of the composition structure of an OLP transmission link switching apparatus provided by an embodiment of the present invention;
图7为本发明实施例提供的OLP的硬件构成示意图。FIG. 7 is a schematic diagram of the hardware structure of an OLP provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚明白,下面将结合本发 明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In order to make the objectives, technical solutions, and advantages of the present application clearer and clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention. In the case of no conflict, the embodiments in the application and the features in the embodiments can be combined with each other arbitrarily. The steps shown in the flowcharts of the drawings can be executed in a computer system such as a set of computer-executable instructions. And, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
本发明实施例提供一种OLP传输链路的切换方法,应用于至少两个通过级联方式进行连接的OLP中的至少一个OLP中,所述至少一个OLP包括用于接收第一信号的第一输入端和用于接收第二信号的第二输入端。可以理解,对于通过级联方式进行连接的各个OLP,包括两个输入端:第一输入端和第二输入端。第一输入端可以理解为是接收前级OLP通过主用链路传输过来的光信号的接收端。第二输入端可以理解为是接收前级OLP通过备用链路传输过来的光信号的接收端。当然反之亦可。各个OLP均包括第一传输链路和第二传输链路,在第一传输链路为主用链路的情况下,第二传输链路指的是备用链路;在第一传输链路为备用链路的情况下,第二传输链路指的是主用链路。The embodiment of the present invention provides an OLP transmission link switching method, which is applied to at least one OLP of at least two OLPs connected in a cascade manner, and the at least one OLP includes a first signal for receiving a first signal. An input terminal and a second input terminal for receiving the second signal. It can be understood that each OLP connected in a cascade manner includes two input terminals: a first input terminal and a second input terminal. The first input end can be understood as the receiving end that receives the optical signal transmitted by the previous OLP through the main link. The second input end can be understood as the receiving end that receives the optical signal transmitted by the previous OLP through the backup link. Of course, the reverse is also possible. Each OLP includes a first transmission link and a second transmission link. In the case where the first transmission link is the active link, the second transmission link refers to the standby link; the first transmission link is In the case of a backup link, the second transmission link refers to the main link.
如图2所示,本申请实施例的OLP传输链路的切换方法包括:As shown in Figure 2, the OLP transmission link switching method in the embodiment of the present application includes:
步骤(S)201:获得第一信号和第二信号的信号值均小于各自的第一阈值的第一时间信息;Step (S) 201: Obtain first time information in which the signal values of the first signal and the second signal are both smaller than the respective first thresholds;
S202:在所述第一时间至第二时间内,获得所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;S202: Obtain a first signal value of the first signal and a second signal value of the second signal during the first time to the second time; wherein the second time is determined by the second input The time when the signal value of the second signal received by the terminal reaches the first threshold set for the second signal;
S203:在第三时间之后,至少获得所述第一信号的第三信号值,其中 所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;S203: Obtain at least a third signal value of the first signal after the third time, where the third time is the value of the first signal from the first signal set for the first signal after the second time Time information when a threshold reaches a second threshold;
S204:根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。S204: Determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value.
执行S201~S204的主体为OLP。The main body of executing S201 to S204 is OLP.
在S201中,为第一信号、第二信号各自设置一个第一阈值,第一阈值可以为具体数值,也可以为数值范围,具体不做限定。两个信号的第一阈值在数值上可以相同也可以不同。获得一个时间信息(第一时间信息),这个时间信息是第一信号和第二信号的信号值均小于各自的第一阈值的时间。可以理解,在两个信号同步的情况下,这一时间信息可以是两个信号同时小于各自的第一阈值的时间。在两个信号不同步的情况下,这一时间信息可以是最后一个信号小于其第一阈值的时间。第一时间信息可以是一个具体的时刻,也可以是一个时长,具体视实际使用情况而定。In S201, a first threshold is set for each of the first signal and the second signal. The first threshold may be a specific value or a range of values, which is not specifically limited. The first threshold of the two signals may be the same or different in value. Obtain a piece of time information (first time information), which is the time when the signal values of the first signal and the second signal are both smaller than the respective first thresholds. It can be understood that when the two signals are synchronized, this time information may be the time when the two signals are less than the respective first threshold values at the same time. In the case where the two signals are not synchronized, this time information can be the time when the last signal is less than its first threshold. The first time information can be a specific time or a duration, depending on the actual usage.
在S202中,在第一时间到第二信号的信号值达到第一阈值的时间(第二时间)的这段时长内,进行第一信号和第二信号的信号值的获取。In S202, the signal values of the first signal and the second signal are acquired during the period of time from the first time to the time when the signal value of the second signal reaches the first threshold (the second time).
在S203中,在第二时间之后等待第一信号的数值从第一阈值达到第二阈值的时间(第三时间)的到来,并在第三时间到来之后,进行第一信号的信号值的再次获取。In S203, wait for the arrival of the time (the third time) when the value of the first signal reaches the second threshold from the first threshold after the second time, and after the arrival of the third time, perform the signal value of the first signal again Obtain.
在S204中,根据在前述几个时间内获得的第一信号的两个信号值以及第二信号的信号值,确定是否进行OLP传输链路的切换。In S204, it is determined whether to switch the OLP transmission link according to the two signal values of the first signal and the signal value of the second signal obtained in the foregoing several times.
综上所述,本申请实施例中,获得第一时间信息,在第一时间至第二时间内,对第一信号和第二信号的信号值进行获取,并在第三时间之后,至少对第一信号的取值再次进行获取,并通过在第一时间至第二时间内获取的第一信号和第二信号的信号值以及在第三时间之后获取的第一信号的信号值,确定是否进行OLP的传输链路的切换。可以理解,本申请实施例 中相当于根据在规定的时间内(如第一时间至第二时间、第三时间之后)获取的第一信号的两个信号值、以及第二信号的一个信号值,进行是否进行OLP传输链路的确定。这种根据在规定的时间内获取的信号值进行是否进行传输链路的切换的方案,至少可避免由于前级OLP的切换而导致的本级OLP发生无效的切换。In summary, in the embodiment of the present application, the first time information is obtained, the signal values of the first signal and the second signal are obtained from the first time to the second time, and after the third time, at least The value of the first signal is acquired again, and the signal value of the first signal and the second signal acquired from the first time to the second time and the signal value of the first signal acquired after the third time are used to determine whether Switch the transmission link of OLP. It can be understood that the embodiment of the present application is equivalent to two signal values of the first signal and one signal value of the second signal acquired within a specified time (eg, the first time to the second time, and after the third time) , To determine whether to perform OLP transmission link. This solution of whether to switch the transmission link based on the signal value acquired within the specified time can at least avoid the invalid switching of the OLP of the current level caused by the switch of the previous OLP.
本申请提供一种OLP传输链路的切换方法的另一实施例,如图3所示,所述方法包括:This application provides another embodiment of an OLP transmission link switching method. As shown in FIG. 3, the method includes:
S301:获得第一信号和第二信号的信号值均小于各自的第一阈值的第一时间信息;S301: Obtain first time information in which the signal values of the first signal and the second signal are both smaller than the respective first threshold values;
S302:在所述第一时间至第二时间内,获得所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;S302: Obtain a first signal value of the first signal and a second signal value of the second signal during the first time to the second time; wherein the second time is determined by the second input The time when the signal value of the second signal received by the terminal reaches the first threshold set for the second signal;
S303:在第三时间之后,至少获得所述第一信号的第三信号值,其中所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;S303: Obtain at least a third signal value of the first signal after the third time, where the third time is the value of the first signal from the first signal set for the first signal after the second time Time information when a threshold reaches a second threshold;
S304:判断所述第一信号值和第二信号值与各自的第一阈值之间的大小关系,得到第一判断结果;S304: Judging the magnitude relationship between the first signal value and the second signal value and the respective first thresholds to obtain a first judgment result;
S305:判断所述第三信号值与所述第二阈值之间的大小关系,得到第二判断结果;S305: Judging the magnitude relationship between the third signal value and the second threshold value to obtain a second judgment result;
S306:根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路。S306: Determine whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result.
执行S301~S306的主体为OLP。S301~S303的实现过程请参见前述S201~S203的相关说明,重复之处不再赘述。前述S304~S306作为前述的S204的一种具体实现方式。其中,S304和S305无严格的先后顺序,还可以同时进行。The subject of S301 to S306 is OLP. For the implementation process of S301 to S303, please refer to the relevant description of S201 to S203, and the repetition will not be repeated. The foregoing S304 to S306 serve as a specific implementation of the foregoing S204. Among them, S304 and S305 have no strict sequence, and they can also be carried out at the same time.
在前述方案中,获得第一时间信息,在第一时间至第二时间内,对第一信号和第二信号的信号值进行获取,并在第三时间之后,至少对第一信号的取值再次进行获取。根据第一信号值和第二信号值与各自的第一阈值之间的大小关系的判断结果、以及第三信号值与第二阈值之间的大小关系的判断结果,确定是否进行OLP传输链路的切换。本申请实施例的方案,相当于一方面对何时进行第一信号、第二信号值进行获取的时间进行了规定,另一方面根据在规定时间内获得的信号值与相应阈值的大小关系的判断结果,确定是否进行传输链路的切换,使得信号值的获取时间和是否发生切换的条件变得更加严谨,这种更加严谨的方案,可大大避免由于前级OLP的切换而导致的本级OLP发生无效的切换。In the foregoing solution, the first time information is obtained, the signal values of the first signal and the second signal are obtained from the first time to the second time, and after the third time, at least the value of the first signal is obtained Get it again. According to the judgment result of the magnitude relationship between the first signal value and the second signal value and the respective first threshold value, and the judgment result of the magnitude relationship between the third signal value and the second threshold value, it is determined whether to perform the OLP transmission link Switch. The solution of the embodiment of the present application is equivalent to stipulating when the first signal and the second signal value are acquired on the one hand, and on the other hand, it is based on the relationship between the signal value obtained within the specified time and the corresponding threshold value. The result of the judgment is to determine whether to switch the transmission link, so that the signal value acquisition time and the conditions for whether the switch occurs become more rigorous. This more rigorous solution can greatly avoid the current level caused by the switch of the previous OLP An invalid handover occurred in OLP.
在一个实施例中,S306:所述根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,可以通过以下其中一种方式来实现:In an embodiment, S306: the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result may be implemented in one of the following ways :
方式一:在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值大于等于所述第二阈值的情况下,控制所述OLP维持在所述第一传输链路。Manner 1: The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold values, and the second judgment result indicates that the third signal value is greater than or equal to the second In the case of a threshold, control the OLP to maintain the first transmission link.
方式二:在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值的情况下,控制所述OLP从所述第一传输链路切换至所述第二传输链路。Manner 2: The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value In the case of controlling the OLP to switch from the first transmission link to the second transmission link.
可以理解,方式一为不用发生传输链路切换的情形;方式二为发生传输链路切换的情形。在方式一、二中,也即无论是发生切换还是无需发生切换,第一判断结果均表征为第一信号值、第二信号值均小于各自的第一阈值,不同的是第三信号值与第二阈值的大小关系。如果第二判断结果表征为第三信号值大于等于第二阈值则无需切换、维持OLP在第一传输链路。 如果第二判断结果表征为第三信号值小于第二阈值,则需要切换、从第一传输链路切换至第二传输链路。这种根据第一、二信号的信号值与对应阈值之间的大小关系,并结合两个判断结果来确定是否进行传输链路的切换,使得方案更加严谨,可有效避免由于前级OLP的切换而导致的本级OLP发生无效的切换、避免本不该发生切换的不发生切换。It can be understood that the first method is a situation where transmission link switching does not occur; the second method is a situation where transmission link switching occurs. In the first and second methods, that is, whether switching occurs or does not need to occur, the first judgment result is characterized as the first signal value and the second signal value are both smaller than the respective first threshold values, and the difference is that the third signal value is different from the The magnitude relationship of the second threshold. If the second judgment result is characterized as that the third signal value is greater than or equal to the second threshold, there is no need to switch and maintain the OLP in the first transmission link. If the second judgment result is characterized as that the third signal value is less than the second threshold, then it is necessary to switch from the first transmission link to the second transmission link. According to the magnitude relationship between the signal values of the first and second signals and the corresponding thresholds, and combining the two judgment results to determine whether to switch the transmission link, the scheme is more rigorous and can effectively avoid the switch due to the previous OLP As a result, invalid handover occurs in the OLP at this level, which avoids no handover that should not happen.
前述方案中,是根据第一信号的第一信号值、第二信号的第二信号值以及第一信号的第三信号值,也即第一信号的两个值和第二信号的一个值进行是否进行传输链路切换的确定,此外,在第三时间后获得的第一信号的第三信号值小于第二阈值,有较小的可能性出现第二传输链路发生故障的情况,这时级联OLP发生切换,会从第一传输链路切换到故障的第二传输链路,为保证这种无效切换不发生,在一个实施例中,所述切换方法还包括:In the foregoing solution, the process is performed based on the first signal value of the first signal, the second signal value of the second signal, and the third signal value of the first signal, that is, two values of the first signal and one value of the second signal. Determine whether to switch the transmission link. In addition, if the third signal value of the first signal obtained after the third time is less than the second threshold, there is a small possibility that the second transmission link will fail. When the cascaded OLP is switched, it will switch from the first transmission link to the failed second transmission link. To ensure that such invalid switching does not occur, in one embodiment, the switching method further includes:
在第三时间之后,获得所述第二信号的第四信号值;After the third time, obtain the fourth signal value of the second signal;
判断第四信号值与第三阈值之间的大小关系,得到第三判断结果;Judging the magnitude relationship between the fourth signal value and the third threshold, and obtaining a third judgment result;
相应的,所述根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:Correspondingly, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result includes:
根据第一判断结果、第二判断结果和第三判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路。According to the first judgment result, the second judgment result, and the third judgment result, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
可以理解,前述方案中,在第三时间之后,对第二信号的信号值也进行了再次获取,并在判断是否进行传输链路的切换过程中,除了应用了第一、二判断结果,还将通过判断第四信号值与第三阈值之间的大小关系的第三判断结果加入进来,通过第一~三判断结果这三个判断结果的结合,进行传输链路是否进行切换的确定。相当于前述的基于第一、二判断结果进行传输链路是否切换的方案,这种方案使得切换条件更加严谨,由此可准确判断出是否应该切换,使得切换或不切换判断得更加准确,避免本级OLP 发生无效的切换。It can be understood that in the foregoing solution, after the third time, the signal value of the second signal is also acquired again, and in the process of determining whether to switch the transmission link, in addition to applying the first and second determination results, The third judgment result of judging the magnitude relationship between the fourth signal value and the third threshold value is added, and the determination of whether the transmission link is switched is determined by the combination of the three judgment results of the first to third judgment results. It is equivalent to the aforementioned scheme of whether the transmission link is switched based on the first and second judgment results. This scheme makes the switching conditions more stringent, so that it can accurately determine whether it should be switched, so that the judgment of switching or not switching can be more accurate and avoid An invalid handover occurred in this level of OLP.
在一个实施例中,所述根据第一判断结果、第二判断结果和第三判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,可以通过以下其中一种方式来实现:In an embodiment, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result, the second judgment result and the third judgment result may be through one of the following Ways to achieve:
方式一:在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值大于等于所述第二阈值以及第三判断结果表征所述第四信号值小于第三阈值的情况下,控制所述OLP维持在所述第一传输链路。Manner 1: The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold values, and the second judgment result indicates that the third signal value is greater than or equal to the second The threshold and the third judgment result indicate that when the fourth signal value is less than the third threshold, the OLP is controlled to maintain the first transmission link.
方式二:在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值大于等于所述第二阈值以及第三判断结果表征所述第四信号值大于等于第三阈值的情况下,控制所述OLP维持在所述第一传输链路。Manner 2: The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold values, and the second judgment result indicates that the third signal value is greater than or equal to the second The threshold and the third judgment result indicate that when the fourth signal value is greater than or equal to the third threshold, the OLP is controlled to maintain the first transmission link.
方式三:在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值以及第三判断结果表征所述第四信号值大于等于第三阈值的情况下,控制所述OLP从所述第一传输链路切换至第二传输链路。Manner 3: The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value And when the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold, control the OLP to switch from the first transmission link to the second transmission link.
方式四:在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值以及第三判断结果表征所述第四信号值小于第三阈值的情况下,控制所述OLP维持在所述第一传输链路。Manner 4: The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value And when the third judgment result indicates that the fourth signal value is less than a third threshold, control the OLP to maintain the first transmission link.
可以理解,方式一、二为第一传输链路正常工作而不用发生传输链路切换的情形,无需考虑第二传输链路的工作状态;方式三为第一传输链路未正常工作而第二传输链路正常工作需要发生传输链路切换的情形;方式四为避免第二传输链路故障而不发生传输链路切换的情形。It can be understood that the first and second modes are the normal operation of the first transmission link without the occurrence of transmission link switching, and there is no need to consider the working status of the second transmission link; the third mode is that the first transmission link is not working normally and the second transmission link is not working properly. The normal operation of the transmission link requires a transmission link switching situation; the fourth method is to avoid the second transmission link failure without the transmission link switching situation.
可以理解,在方式一和二中,第一信号值、第二信号值均小于各自的 第一阈值的情况下,仅需要根据第三信号值大于等于第二阈值的情况下即可作出是切换还是不切换传输链路的确定,而无需在意第四信号值的取值。在方式三和四中,在第三信号值小于第二阈值的情况下,还需要结合第四信号值与第三阈值之间的大小关系,进行切换还是不切换的确定。It can be understood that in the first and second modes, when the first signal value and the second signal value are both less than their respective first thresholds, it is only necessary to switch whether the third signal value is greater than or equal to the second threshold. Still don't switch the determination of the transmission link, without worrying about the value of the fourth signal value. In the third and fourth modes, when the third signal value is less than the second threshold value, it is also necessary to combine the magnitude relationship between the fourth signal value and the third threshold value to determine whether to switch or not to switch.
在方式一、二、三、四中,也即无论是发生切换还是无需发生切换,第一判断结果均表征为第一信号值、第二信号值均小于各自的第一阈值,不同的是第三信号值与第二阈值的大小关系以及第四信号值与第三阈值之间的大小关系。如果第二判断结果表征第三信号值大于等于第二阈值,则无需发生传输链路的切换、控制所述OLP维持在所述第一传输链路。如果第二判断结果表征第三信号值小于第二阈值以及第三判断结果表征第四信号值大于等于第三阈值,则需要发生传输链路的切换。如果第二判断结果表征第三信号值小于第二阈值以及第三判断结果表征第四信号值小于第三阈值,则无需发生传输链路的切换、控制所述OLP维持在所述第一传输链路,以避免出现第二传输链路发生故障导致的无效切换。通过对第一信号、第二信号在不同规定时间的各自两次信号值的获取,以及与对应阈值的大小关系的判断,确定是否发生传输链路的切换,可大大避免本级OLP发生无效的切换。In methods 1, 2, 3, and 4, that is, whether switching occurs or does not need to occur, the first judgment result is characterized as that the first signal value and the second signal value are both smaller than the respective first thresholds, and the difference is that the first The magnitude relationship between the three-signal value and the second threshold and the magnitude relationship between the fourth signal value and the third threshold. If the second judgment result indicates that the third signal value is greater than or equal to the second threshold, there is no need to switch the transmission link and control the OLP to maintain the first transmission link. If the second judgment result indicates that the third signal value is less than the second threshold value and the third judgment result indicates that the fourth signal value is greater than or equal to the third threshold value, then the switching of the transmission link needs to occur. If the second judgment result indicates that the third signal value is less than the second threshold and the third judgment result indicates that the fourth signal value is less than the third threshold, there is no need to switch the transmission link and control the OLP to maintain the first transmission chain Way to avoid invalid switching caused by the failure of the second transmission link. Through the acquisition of the respective two signal values of the first signal and the second signal at different specified times, and the determination of the relationship with the corresponding threshold value, it is determined whether the switching of the transmission link occurs, which can greatly avoid the occurrence of invalid OLP at this level. Switch.
下面结合图1所示的原理图、表1所示、以及图4-图5所示对本申请实施例的技术方案做进一步说明。The technical solutions of the embodiments of the present application will be further described below with reference to the principle diagram shown in FIG. 1, Table 1, and FIGS. 4 to 5.
本申请实施例中的采用级联方式进行连接的各OLP至少包括三个输入端(Input)和三个输出端(Output)。各输入端和输出端的定义为表1所示。其中,所述第一信号为主用业务光信号,所述第二信号为备用业务光信号;所述第一输入端R1为主用业务输入端口,所述第二输入端R2为备用业务输入端口,所述总接收端口Rx为连接业务信号的收光口,所述总输出端口Tx为连接业务信号的发光口,所述第一输出端口T1为主用业务输出端口, 所述第二输出端口T2为备用业务输出端口。Each OLP connected in a cascade manner in the embodiment of the present application includes at least three input terminals (Input) and three output terminals (Output). The definition of each input terminal and output terminal is shown in Table 1. Wherein, the first signal is the main service optical signal, the second signal is the backup service optical signal; the first input terminal R1 is the main service input port, and the second input terminal R2 is the backup service input Port, the total receiving port Rx is a light-receiving port connected to service signals, the total output port Tx is a light-emitting port connected to service signals, the first output port T1 is the main service output port, and the second output Port T2 is a backup service output port.
表1Table 1
Figure PCTCN2019124924-appb-000001
Figure PCTCN2019124924-appb-000001
以图1所示的三个OLP级联电路为例,R2、R1以及Rx的波形如图5所示。结合图1和图5对相关技术中由于前级OLP如OLP1发生切换而导致本级OLP如OLP2发生无效切换的过程做深入的说明。本领域技术人员应该而知,由于各级OLP的备用链路短于主用链路,所以在OLP1由切换发生业务中断的时长之后,OLP1的备用链路的光信号先于主用链路上的光信号出现,那么对于OLP1的下一级OLP即OLP2其R2输入端会率先接收到光信号。这个时候,会出现OLP2的R1输入端没有光信号、R2输入端具有光信号的情况(如图5中的ta时段内),OLP2会控制光开关单元(103)断开R1与Rx的连接,而将R2与Rx连接上,从而产生了OLP2的无效切换。为方便描述,记产生这个切换操作的时间为t3,则从图5可看出,Rx在t3时刻产生了一个上升沿信号,产生上升沿信号的原因是Rx在原本与R1进行连接的情况下由于OLP1的切换导致业务信号中断而切换到先接收到光信号的R2上。可以理解,相关技术中,在OLP1由于其切换出现业务中断的情形下,只要R2出现稳定的光信号(R1、R2均缓慢出现并趋于稳定)即发生无效链路的切换。Take the three OLP cascade circuits shown in Figure 1 as an example, the waveforms of R2, R1, and Rx are shown in Figure 5. In conjunction with Fig. 1 and Fig. 5, an in-depth description of the process of invalid switching of the current level of OLP such as OLP2 due to the switching of the previous-level OLP such as OLP1 in the related art is given. Those skilled in the art should know that since the backup link of the OLP at all levels is shorter than the primary link, after the period of service interruption of OLP1 due to handover, the optical signal of the backup link of OLP1 precedes the primary link. When the optical signal appears, the R2 input terminal of the next OLP of OLP1, namely OLP2, will receive the optical signal first. At this time, there will be a situation where the R1 input of OLP2 has no optical signal and the R2 input has an optical signal (during the ta period in Figure 5), OLP2 will control the optical switch unit (103) to disconnect R1 and Rx, Connecting R2 and Rx leads to an invalid switch of OLP2. For the convenience of description, remember that the time for generating this switching operation is t3. It can be seen from Figure 5 that Rx generates a rising edge signal at t3. The reason for the rising edge signal is that Rx was originally connected to R1. Because the switching of OLP1 causes the service signal to be interrupted, it switches to R2, which receives the optical signal first. It can be understood that in the related art, when the OLP1 has service interruption due to its handover, as long as a stable optical signal appears on R2 (R1 and R2 both appear slowly and tend to be stable), the handover of the invalid link occurs.
前述方案,可以理解为在OLP2存在有无效切换的场景下,去测量由于OLP1切换而导致的OLP2切换时接口R1、R2和Rx的波形。其中,R1和R2接口的波形为简化波形,Rx接口的波形为理想化方波。其中,当Rx接口的波形出现下降沿,说明业务中断,当Rx接口的波形出现上升沿,说明光开关单元(103)从Rx与R1连接断开继而切换到与R2进行连接。也即以上内容为在OLP2存在有无效切换的场景下去分析发生无效切换的原因。本申请实施例中就是利用无效切换的场景中的规律来避免无效切换的产生。The foregoing solution can be understood as measuring the waveforms of interfaces R1, R2, and Rx during OLP2 switching caused by OLP1 switching in a scenario where there is invalid switching of OLP2. Among them, the waveforms of the R1 and R2 interfaces are simplified waveforms, and the waveforms of the Rx interface are idealized square waves. Among them, when the waveform of the Rx interface has a falling edge, it indicates that the service is interrupted, and when the waveform of the Rx interface has a rising edge, it indicates that the optical switch unit (103) is disconnected from the connection between Rx and R1 and then switched to connect with R2. That is to say, the above content is to analyze the reasons for invalid switching in the scene where there is invalid switching in OLP2. In the embodiment of the present application, the rule in the scene of invalid handover is used to avoid the occurrence of invalid handover.
发明人在实现本方案的过程中发现,R2、R1从OLP1的业务中断到出现具有一定的时间间隔,预先进行这一时间间隔的多次测量,并估计出这一时间间隔的合理取值、记为ta。Rx发生与R1的断开继而与R2连接的时间与R1光信号的趋于稳定的时间具有一定的时间间隔,预先进行这一时间间隔的多次测量,并估计出这一时间间隔的合理取值、并记为tb。同时,预先测量R1、R2由于OLP1的业务中断而导致的无法接收到光信号的时间到Rx发生与R1的断开继而与R2连接的时间的时间间隔,预先进行这一时间间隔的多次测量,并估计出这一时间间隔的合理取值、并记这个时间间隔为t0。可以理解,时间间隔ta、tb与t0均为时间间隔值,可以为一个具体数值,还可以为一个范围值,具体不做限定。In the process of realizing this solution, the inventor found that R2 and R1 have a certain time interval from the interruption of OLP1's business to the occurrence. The time interval is measured multiple times in advance, and the reasonable value of this time interval is estimated. Recorded as ta. There is a certain time interval between the time when Rx disconnects from R1 and then connects with R2 and the time when the optical signal of R1 tends to stabilize. Perform multiple measurements of this time interval in advance, and estimate the reasonable value of this time interval. Value, and denoted as tb. At the same time, pre-measure the time interval from the time when R1 and R2 cannot receive the optical signal due to the interruption of OLP1 service to the time when Rx disconnects from R1 and then connects to R2, and perform multiple measurements of this time interval in advance. , And estimate the reasonable value of this time interval, and record this time interval as t0. It can be understood that the time intervals ta, tb, and t0 are all time interval values, which can be a specific value or a range value, which is not specifically limited.
结合图4和图5所示,对本应用场景下的技术方案进行说明。With reference to Figure 4 and Figure 5, the technical solution in this application scenario will be described.
S401:默认的情况下,OLP1采用主路和备路进行光信号的传输,OLP2采用输入端R1接收OLP1通过主路传输过来的光信号,采用输入端R2接收OLP1通过备路传输过来的光信号。S401: By default, OLP1 uses the main and backup channels for optical signal transmission, OLP2 uses input R1 to receive optical signals transmitted by OLP1 through the main channel, and input R2 to receive optical signals transmitted by OLP1 through the backup channel .
可以理解,在OLP的1+1保护方式中,OLP1的Rx通过光开关单元(103)与其R1进行连接,外部设备输入OLP1的光信号由OLP1的R1接收,所接收的光信号经由Rx、Tx和分光器进行分光,得到两路输出信号,其中一 路经由T1输出端输出、并经OLP1的主用链路传输至OLP2的R1。另一路经由T2输出端输出、并经OLP1的备用链路传输至OLP2的R2。本领域技术人员应该而知,由于OLP2的Rx是与输入端R1进行连接的、未与R2进行连接,所以OLP2接收到的光信号是由R1输入进来的光信号。R2输入端上出现的光信号是OLP1的备用链路传输过来的光信号,由于OLP2的Rx未与R2进行连接,所以对于R2输入端接收到的信号先保存下来。It can be understood that in the 1+1 protection mode of OLP, the Rx of OLP1 is connected to its R1 through the optical switch unit (103), the optical signal input to OLP1 by the external device is received by R1 of OLP1, and the received optical signal passes through Rx and Tx. It splits light with the splitter to obtain two output signals, one of which is output through the T1 output terminal and transmitted to R1 of OLP2 through the main link of OLP1. The other is output via the T2 output terminal and transmitted to R2 of OLP2 via the backup link of OLP1. Those skilled in the art should know that since the Rx of the OLP2 is connected to the input terminal R1 and not connected to the R2, the optical signal received by the OLP2 is the optical signal input from the R1. The optical signal appearing on the input of R2 is the optical signal transmitted by the backup link of OLP1. Since Rx of OLP2 is not connected to R2, the signal received at the input of R2 is saved first.
S402:在OLP2接收光信号的过程中,对R1、R2上接收到的光信号的大小进行监测;S402: During the process of OLP2 receiving the optical signal, monitor the magnitude of the optical signal received on R1 and R2;
本步骤中,对R1接收到的来自于OLP1的主用链路上的光信号(主用业务光信号)和对R2接收到的来自于OLP1的备用链路上的光信号(备用业务光信号)进行监测。可以理解,光信号的大小具体为光信号的光功率值。In this step, the optical signal on the primary link from OLP1 (primary service optical signal) received by R1 and the optical signal on the backup link from OLP1 (backup service optical signal) received by R2 ) To monitor. It can be understood that the size of the optical signal is specifically the optical power value of the optical signal.
S403:记录主用业务光信号和备用业务光信号中至少最后一个光信号小于为其设置的第一阈值的时间信息(第一时间信息),并记录第一时间为Ti;S403: Record the time information (first time information) that at least the last optical signal of the primary service optical signal and the backup service optical signal is less than the first threshold set for it, and record the first time as Ti;
这里,OLP1未发生传输链路故障的情况下,OLP2的输入端均会接收到光功率值位于稳定范围内的主用业务光信号和备用业务光信号。一旦OLP1发生传输链路故障、需要从主用链路切换到备用链路,则在OLP1业务中断的时间内,OLP2的输入端将接收不到光信号或接收到很小的光信号,优选为接收不到光信号。也即一旦监测到由R1输入的主用业务光信号小于为其设置的第一阈值(如为0dBm),则认为出现了故障,该故障可能是由于前级OLP如OLP1发生了传输链路的切换、业务传输暂时中断所导致的,也可能是由于R1出现故障而导致的。这里,考虑到OLP2的两个输入端可能是同步接收各自的光信号,也可能不是同步接收,优选为同步接收。在技术实现上,如果监测到由哪个输入端输入的光信号小于为其设置 的第一阈值,就为该输入端记录下其小于第一阈值的时间信息,进而为两个输入端记录下两个这样的时间信息。从记录的二个时间信息中,挑选出时间在后的信息作为本申请实施例中的第一时间信息。Here, when OLP1 does not have a transmission link failure, the input end of OLP2 will both receive the main service optical signal and the standby service optical signal whose optical power values are within a stable range. Once OLP1 has a transmission link failure and needs to be switched from the main link to the backup link, during the time when the OLP1 service is interrupted, the input terminal of OLP2 will not receive optical signals or receive very small optical signals, preferably No light signal is received. That is, once it is detected that the optical signal of the main service input by R1 is less than the first threshold (such as 0dBm) set for it, it is considered that a fault has occurred. The fault may be caused by the transmission link of the previous OLP such as OLP1. It is caused by the temporary interruption of handover and service transmission, which may also be caused by the failure of R1. Here, considering that the two input terminals of the OLP2 may receive their respective optical signals synchronously, or may not receive synchronously, synchronous reception is preferred. In terms of technical implementation, if it is detected that the optical signal input by which input terminal is less than the first threshold value set for it, the time information that is less than the first threshold value is recorded for that input terminal, and then two input terminals are recorded for two input terminals. Such time information. From the two recorded time information, the information with the later time is selected as the first time information in the embodiment of the present application.
在图5中,假定OLP2记录的这二个时间信息为相同,均为时刻Ti。In FIG. 5, it is assumed that the two time information recorded by OLP2 are the same, and both are at time Ti.
需要说明的是,为主用业务光信号和备用业务光信号设置的第一阈值可以为具体数值,还可以为范围值,这两个第一阈值可以相同,也可以不同,根据实际使用情况而灵活设置。从测量到时刻Ti这个时刻开始,OLP2开始计时。It should be noted that the first threshold set for the primary service optical signal and the standby service optical signal can be a specific value or a range value. The two first thresholds can be the same or different, depending on actual usage. Flexible settings. From the measurement to the moment Ti, OLP2 starts timing.
S404:在Ti到(t0-ta)这个时间段内,测量OLP2的R1、R2接收到的光信号的大小;S404: In the time period from Ti to (t0-ta), measure the magnitude of the optical signal received by R1 and R2 of OLP2;
其中,ta为预先估算R2输入的备用业务光信号从小于自身的第一阈值达到第一阈值的可能时间;t0为从OLP1的业务发生中断到OLP2的Rx发生与R1的断开继而与R2连接的时间段,所以t0-ta这个时间段可视为根据预先测量的结果得出的由于OLP1的业务中断而导致的R1、R2输入端均无法接收到光信号或接收到的光信号很小的时长。Among them, ta is the pre-estimated possible time for the standby service optical signal input by R2 to reach the first threshold from the first threshold value less than itself; t0 is the time from the interruption of the service of OLP1 to the disconnection of Rx from OLP2 and the connection to R2. Therefore, the time period t0-ta can be regarded as the result of the pre-measurement result, which is caused by the interruption of OLP1 service. The R1 and R2 input terminals cannot receive optical signals or the received optical signals are very small. duration.
S405:判断在Ti到(t0-ta)这个时间段内测量的OLP2的R1、R2接收到的光信号与为各自设置的第一阈值之间的大小关系;S405: Determine the magnitude relationship between the optical signals received by R1 and R2 of OLP2 measured in the time period from Ti to (t0-ta) and the first threshold set for each;
如果判断为二者均小于各自的第一阈值,则继续执行以下流程;If it is determined that both are less than the respective first threshold, continue to execute the following process;
否则,按照正常逻辑切换。所述按照正常逻辑切换为:如果所测量的R1接收到的光信号值大于或等于为其设置的第二阈值,则OLP2继续接收R1的光信号、继续采用主用链路将接收到的光信号通过主用链路传输至下一级OLP如OLP3。如果所测量的R1接收到的光信号值小于为其设置的第一阈值且所测量的R2接收到的光信号值大于或等于为其设置的第三阈值,则OLP2将断开R1与Rx之间的连接继续将R2与Rx连接上以将OLP2从原来的主用链路切换到备用链路并通过备用链路将其接收到的光信号传输 至OLP3。需要所测量的R1大于或等于第二阈值且R2的光信号大于或等于为其设置的第三阈值,则OLP2不进行切换,继续使用主用链路将R1接收到的光信号传输至OLP3。Otherwise, switch according to normal logic. The switch according to the normal logic is: if the measured optical signal value received by R1 is greater than or equal to the second threshold value set for it, then OLP2 continues to receive the optical signal of R1 and continues to use the optical signal received by the main link. The signal is transmitted to the next level of OLP such as OLP3 through the main link. If the measured optical signal value received by R1 is less than the first threshold set for it and the measured optical signal value received by R2 is greater than or equal to the third threshold set for it, then OLP2 will disconnect R1 and Rx. The connection between them continues to connect R2 and Rx to switch OLP2 from the original main link to the backup link and transmit the received optical signal to OLP3 through the backup link. If the measured R1 is greater than or equal to the second threshold and the optical signal of R2 is greater than or equal to the third threshold set for it, then OLP2 does not switch and continues to use the primary link to transmit the optical signal received by R1 to OLP3.
需要说明的是,在时刻Ti到Ti+(t0-ta)这个时间段内,对R1、R2接收到的光信号的测量可以是一次、也可以是多次。在一次测量的情况下,可在时刻Ti到时刻Ti+(t0-ta)这个时间段内的任意一个时刻进行光信号的测量;也可以预先设置一(优选)测量时刻点,在(优选)测量时刻点到来时对光信号进行测量,例如可以取时刻Ti到Ti+(t0-ta)这个时间段的中间时刻点作为前述的(优选)测量时刻点,在这个(优选)测量时刻点到来时测量两个输入端的信号值。对于需要多次测量的情况,可在时刻Ti到时刻Ti+(t0-ta)这个时间段内的任意两个或多次时刻进行光信号的测量,将每个时刻测量的结果进行平均,作为最终可与各自的第一阈值进行比较的光信号值。也可以选取多次测量结果中的任意一次测量结果作为最终可与各自的第一阈值进行比较的光信号。在实际应用中,由于执行前述步骤的方案的主体为OLP2、具体是OLP2的处理器如MCU,MCU通常具有一定的采样频率,针对多次测量的情形,在时刻Ti到Ti+(t0-ta)这个时间段内进行多次测量的频率最好小于MCU的采样频率。本申请实施例中采用单次测量还是多次测量,具体情况可根据实际应用而灵活设定。It should be noted that in the time period from time Ti to Ti+(t0-ta), the measurement of the optical signals received by R1 and R2 may be one or multiple times. In the case of one measurement, the optical signal can be measured at any time within the time period from time Ti to time Ti+(t0-ta); it is also possible to set a (preferred) measurement time point in advance and measure at (preferred) The optical signal is measured when the time point arrives. For example, the intermediate time point of the time period from time Ti to Ti+(t0-ta) can be taken as the aforementioned (preferred) measurement time point, and it is measured when this (preferred) measurement time point arrives. The signal values of the two input terminals. For situations where multiple measurements are required, the optical signal can be measured at any two or more times within the time period from time Ti to time Ti+(t0-ta), and the measurement results at each time are averaged as the final The optical signal value that can be compared with the respective first threshold value. It is also possible to select any one of the multiple measurement results as the optical signal that can be finally compared with the respective first threshold. In practical applications, since the main body of the solution that executes the foregoing steps is OLP2, and specifically OLP2 processors such as MCUs, MCUs usually have a certain sampling frequency. For multiple measurements, at time Ti to Ti+(t0-ta) The frequency of multiple measurements during this time period is preferably less than the sampling frequency of the MCU. In the embodiments of the present application, whether a single measurement or multiple measurements is adopted, the specific conditions can be flexibly set according to actual applications.
前述方案中,t0、ta和tb是在执行本申请实施例的方案如在执行S401之前通过预先测量并估计得到的,此外,t0、ta和tb也可以在执行方案的过程中经过对两个输入端的光信号值的测量及各个测量值对应的测量时刻等信息而得到。具体的,以预设的多次测量的频率(小于MCU的采样频率)去测量R1和R2的光信号值,并且可以记录一定量R1和R2的信号值和对应的时刻点。将时刻Ti至检测到R2正常工作(至少光信号值达到第一阈值时R2的状态)的时刻点之间的时间段为t0;检测到第一次测量到R1的 光信号值小于其第一阈值且R2的光信号值大于或等于其第一阈值的时刻点、至检测到R2的信号值大于或等于其第三阈值的时刻点之间的时间段记为ta;检测到R2的信号值大于或等于其第三阈值的时刻点、至R1的信号值大于或等于其第二阈值的时刻点之间的时间段记为tb。也即根据记录的一定量的数据中的光信号的变化情况及变化情况对应的时刻点,计算出t0、ta和tb。在计算出t0、ta和tb的情况下,可以合理地计算出第二时间信息和第三时间信息。对于本申请实施例中的t0、ta和tb是预先估计出的还是说执行方案的过程中根据测量出的光信号变化情况及其变化情况对应的时间信息而实时计算出的,不做具体限定,根据实际情况而定。In the foregoing solution, t0, ta, and tb are obtained by pre-measurement and estimation before executing the solution of the embodiment of the present application, such as before performing S401. In addition, t0, ta, and tb can also be measured and estimated during the execution of the solution. Information such as the measurement of the optical signal value at the input terminal and the measurement time corresponding to each measurement value is obtained. Specifically, the optical signal values of R1 and R2 are measured at a preset frequency of multiple measurements (less than the sampling frequency of the MCU), and the signal values of a certain amount of R1 and R2 and the corresponding time points can be recorded. Set the time period from time Ti to the time when R2 is detected to work normally (at least the state of R2 when the optical signal value reaches the first threshold) as t0; it is detected that the optical signal value of R1 measured for the first time is less than its first Threshold and the optical signal value of R2 is greater than or equal to its first threshold and the time period between when the signal value of R2 is detected to be greater than or equal to its third threshold is denoted as ta; the signal value of R2 is detected The time period between the time point when it is greater than or equal to its third threshold and the time point when the signal value of R1 is greater than or equal to its second threshold value is denoted as tb. That is, t0, ta, and tb are calculated according to the change of the optical signal in a certain amount of data recorded and the time point corresponding to the change. When t0, ta, and tb are calculated, the second time information and the third time information can be calculated reasonably. Whether t0, ta, and tb in the embodiments of the present application are estimated in advance or calculated in real time according to the measured optical signal changes and the time information corresponding to the changes during the execution of the scheme, there is no specific limitation , According to the actual situation.
S406:OLP2从Ti这个时刻从0开始计时,计时到(Ti+t0+tb)时刻的情况下,在(Ti+t0+tb)时刻之后,对OLP2的R1接收到光信号进行测量;S406: OLP2 starts timing from 0 at the time Ti, and when timing reaches the time (Ti+t0+tb), after the time (Ti+t0+tb), measure the optical signal received by R1 of OLP2;
本步骤中,tb为Rx发生与R1的断开继而与R2连接的时间与R1光信号的趋于稳定的时间具有的时长,即Rx发生与R1的断开继而与R2连接至R1光信号恢复的时间段;其中,预先测量R1趋于稳定时信号的大小,并设置第二阈值为测量出的R2趋于稳定时信号的大小的合理取值如-2dBm。In this step, tb is the length of time between the time when Rx is disconnected from R1 and then connected to R2 and the time when the optical signal of R1 stabilizes, that is, when Rx is disconnected from R1 and then connects with R2 to R1, the optical signal recovers. The period of time; among them, pre-measure the size of the signal when R1 becomes stable, and set the second threshold to the reasonable value of the signal size when the measured R2 becomes stable, such as -2dBm.
S407:判断在(Ti+t0+tb)时刻之后对测量到的OLP2的R1接收到的光信号与第二阈值的大小关系;S407: Determine the magnitude relationship between the optical signal received by the measured R1 of OLP2 after the moment (Ti+t0+tb) and the second threshold;
判断为R1接收到的光信号大于等于第二阈值的情况下,执行步骤S408;If it is determined that the optical signal received by R1 is greater than or equal to the second threshold, step S408 is executed;
判断为R1接收到的光信号低于第二阈值的情况下,执行步骤S409;If it is determined that the optical signal received by R1 is lower than the second threshold, step S409 is executed;
需要说明的是,在(Ti+t0+tb)时刻之后对OLP2的R1接收到的光信号的测量可以是多次,也可以是一次。在多次的情况下,取哪个测量结果作为R2接收到的光信号的最终结果可参见前述在Ti时刻到(t0-ta)时刻这个时间段内对R1、R2接收到的光信号的测量结果的类似处理,不赘述。It should be noted that the measurement of the optical signal received by R1 of OLP2 after the moment of (Ti+t0+tb) may be multiple times or once. In the case of multiple times, which measurement result is taken as the final result of the optical signal received by R2 can be found in the aforementioned measurement result of the optical signal received by R1 and R2 during the period from time Ti to time (t0-ta). The similar treatment is omitted here.
S408:控制OLP2维持在主用链路进行业务光信号的传输;S408: Control OLP2 to maintain the transmission of service optical signals on the primary link;
S409:控制OLP2从主用链路切换至备用链路以进行业务光信号的传输。S409: Control the OLP2 to switch from the main link to the backup link to perform service optical signal transmission.
前述的S401~S409的执行主体可以均为OLP2、具体是OLP2的处理器如MCU。The execution subject of the foregoing S401 to S409 may all be OLP2, specifically an OLP2 processor such as an MCU.
前述方案中,相当于打破了相关技术中在OLP2开始从0计时并计时到t0时刻到来也即R2率先出现光信号时即发生传输链路的切换的方案,本申请实施例,在Ti到(t0-ta)这个时间段内对OLP2的R1、R2接收到的光信号至少进行一次测量,也即第一次测量需发生在Ti到(t0-ta)这个时间段内。在(Ti+t0+tb)时刻之后对OLP2的R1接收到的光信号至少再进行一次测量。也即第二次测量发生在(Ti+t0+tb)时刻之后。将在这两个时间段测量的结果与各自的阈值进行比较,根据比较结果,确定是否进行传输链路的切换。可看作是根据比较结果判断OLP2的输入端未接收到信号是由于输入端故障导致的还是由于OLP1发生传输链路的切换导致的,如果是因为OLP1发生传输链路的切换导致的,则OLP2不需要进行传输链路的控制,如果不是因为OLP1发生传输链路的切换导致的,则为保证光信号在各级OLP间的正常传输,则需进行OLP2传输链路的切换。进而可避免OLP2发生无效切换。此外,为提高准确度,本申请实施例中相当于规定了测量信号的时间信息,并基于在规定的时间段内测量的光信号的大小与各自阈值的判断结果,进行是否确定传输链路的切换,使得切换条件更加严紧,可有效避免发生无效切换。In the foregoing scheme, it is equivalent to breaking the scheme in the related art that the transmission link switching occurs when OLP2 starts timing from 0 and timing to the arrival of t0, that is, when the optical signal first appears in R2. In the embodiment of this application, the time from Ti to ( t0-ta) In this time period, the optical signals received by R1 and R2 of OLP2 shall be measured at least once, that is, the first measurement needs to occur in the time period from Ti to (t0-ta). After (Ti+t0+tb), the optical signal received by R1 of OLP2 is measured at least once. That is, the second measurement occurs after the moment (Ti+t0+tb). The results measured in these two time periods are compared with their respective thresholds, and according to the comparison results, it is determined whether to switch the transmission link. It can be regarded as judging based on the comparison result whether the input of OLP2 did not receive the signal due to the failure of the input terminal or the switching of the transmission link of OLP1. If it is caused by the switching of the transmission link of OLP1, then OLP2 There is no need to control the transmission link. If it is not caused by the switching of the transmission link in OLP1, in order to ensure the normal transmission of the optical signal between all levels of OLP, the OLP2 transmission link needs to be switched. In turn, invalid switching of OLP2 can be avoided. In addition, in order to improve the accuracy, the embodiment of the present application is equivalent to specifying the time information of the measurement signal, and based on the judgment result of the size of the optical signal measured in the specified time period and the respective threshold value, whether to determine the transmission link is performed Switching makes the switching conditions more stringent and can effectively avoid invalid switching.
前述方案中,在(Ti+t0+tb)时刻之后,是根据对R1接收到的光信号的判断结果进行的说明。为保证准确性,还可以在(Ti+t0+tb)时刻之后,对R2接收到的光信号也进行测量。并结合R2的测量结果与第三阈值之间的大小关系进行是否进行传输链路的切换。具体的,如果在(Ti+t0+tb)时 刻之后测量的R1接收到的光信号大于等于第二阈值,则不进行OLP2的传输链路的切换,仍然维持在主用链路进行光信号的传输。如果在(Ti+t0+tb)时刻之后测量的R1接收到的光信号小于第二阈值且R2接收到的光信号大于等于第三阈值,则控制OLP2从主用链路传输至备用链路。In the foregoing solution, after the time (Ti+t0+tb), the description is based on the judgment result of the optical signal received by R1. To ensure accuracy, the optical signal received by R2 can also be measured after the time (Ti+t0+tb). And combined with the magnitude relationship between the measurement result of R2 and the third threshold, whether to switch the transmission link. Specifically, if the optical signal received by R1 measured after the moment (Ti+t0+tb) is greater than or equal to the second threshold, the OLP2 transmission link is not switched, and the optical signal is still maintained on the primary link. transmission. If the optical signal received by R1 measured after the moment (Ti+t0+tb) is less than the second threshold and the optical signal received by R2 is greater than or equal to the third threshold, control OLP2 to be transmitted from the primary link to the backup link.
如果在(Ti+t0+tb)时刻之后测量的R1接收到的光信号小于第二阈值且R2接收到的光信号小于第三阈值,则仍然维持在主用链路进行光信号的传输。其中,第三阈值可视为预先测量到的R2信号从OLP1的业务中断开始的未出现或出现很小值到出现光信号且光信号出现稳定情况下R2接收到的光信号的合理取值如第三阈值为-3dBm。其中,对R1、R2的测量可以同时进行、也可以不同时进行,优选为同时进行。前述相当于结合了在(Ti+t0+tb)时刻之后测量的R2接收到的光信号与相应阈值的判断结果决定是否进行传输链路的切换,使得切换条件更加严紧,可大大避免判断出错的情形,进而可有效识别出OLP2的两个输入端在Ti到(t0-ta)时间段内未出现光信号或者出现很小的光信号是否是由于前级OLP1的业务中断而导致的,进而可实现OLP2的有效切换,避免无效切换。If the optical signal received by R1 measured after the moment (Ti+t0+tb) is less than the second threshold and the optical signal received by R2 is less than the third threshold, the optical signal transmission is still maintained on the main link. Among them, the third threshold can be regarded as the reasonable value of the optical signal received by R2 when the pre-measured R2 signal starts from the interruption of the service of OLP1, which does not appear or appears very small, to when the optical signal appears and the optical signal is stable. The third threshold is -3dBm. Among them, the measurement of R1 and R2 may be performed at the same time or at different times, and it is preferably performed at the same time. The foregoing is equivalent to combining the optical signal received by R2 measured after the time (Ti+t0+tb) with the corresponding threshold judgment result to determine whether to switch the transmission link, making the switching conditions more stringent and greatly avoiding judgment errors. Circumstances, it can effectively identify whether the two input terminals of OLP2 have no optical signal during the time period from Ti to (t0-ta) or whether the small optical signal is caused by the service interruption of the previous stage OLP1. Realize the effective switching of OLP2 and avoid invalid switching.
可以理解,前述t0、ta、tb可以为数值范围,也可以为具体数值,具体不做限定。在一个实施例中,为数值范围,如t0为50ms(毫秒),ta为20ms,tb为8ms。为了准确判断是否进行传输链路的切换,理论上需要测量R1、R2接收到的光信号的时间控制在第一时间和第二时间之间,即t0与ta未重叠的时间段。此外,为了判断主路是否能够恢复正常工作,至少对R1的再次测量的时间点需发生在第三时间之后,即tb时间段之后;如此,便可大大识别出在第一时间和第二时间之间R1、R2未出现光信号或出现很小的光信号是否是由于前级OLP1的发生业务中断导致的还是由于R1、R2输入端发生故障导致的,进而可实现OLP2传输链路的有效切换,避免无效切换。It can be understood that the aforementioned t0, ta, and tb may be numerical ranges or specific numerical values, which are not specifically limited. In one embodiment, it is a numerical range, for example, t0 is 50ms (milliseconds), ta is 20ms, and tb is 8ms. In order to accurately determine whether to switch the transmission link, in theory, the time for measuring the optical signals received by R1 and R2 should be controlled between the first time and the second time, that is, the time period when t0 and ta do not overlap. In addition, in order to determine whether the main circuit can resume normal operation, at least the time point of the re-measurement of R1 needs to occur after the third time, that is, after the tb time period; in this way, it can be greatly identified between the first time and the second time. Whether there is no optical signal or very small optical signal between R1 and R2 is caused by the business interruption of the previous stage OLP1 or caused by the failure of the input terminals of R1 and R2, and then the effective switching of the OLP2 transmission link can be realized , To avoid invalid switching.
可以理解,前述第一阈值、第二阈值、第三阈值为绝对阈值,根据第 一阈值、第二阈值、第三阈值确定OLP2是否从主用链路切换到备用链路,是一种基于绝对阈值的切换方式。在一个实施例里,所述第一阈值、第二阈值、第三阈值也可以是基于相对阈值的切换方式,根据第一阈值、第二阈值、第三阈值确定OLP2是否从主用链路切换到备用链路,这种方式下,可以将第一阈值、第二阈值、第三阈值选在合适的数值范围内,单位为dB。所述绝对阈值的切换方式,具体为第一信号的信号值与第二信号的信号值与各自设定的阈值进行比较得到判断结果,确定是否执行第一传输链路到第二传输链路的切换;所述相对阈值方式为第一信号的信号值与第二信号的信号值的差值与设定的几个阈值比较得到判断结果,确定是否执行第一传输链路到第二传输链路的切换。It can be understood that the aforementioned first threshold, second threshold, and third threshold are absolute thresholds. According to the first threshold, second threshold, and third threshold, determining whether OLP2 is switched from the main link to the backup link is a kind of absolute threshold. How to switch the threshold. In an embodiment, the first threshold, the second threshold, and the third threshold may also be a switching method based on a relative threshold. According to the first threshold, the second threshold, and the third threshold, it is determined whether OLP2 is switched from the main link. To the backup link, in this way, the first threshold, the second threshold, and the third threshold can be selected within a suitable numerical range, and the unit is dB. The switching method of the absolute threshold is specifically that the signal value of the first signal and the signal value of the second signal are compared with the respective set thresholds to obtain the judgment result, and it is determined whether to perform the first transmission link to the second transmission link. Switch; the relative threshold mode is that the difference between the signal value of the first signal and the signal value of the second signal is compared with the set thresholds to obtain the judgment result, and it is determined whether to execute the first transmission link to the second transmission link Switch.
可以理解,前述方案中,是以R1接收到的光信号为主用业务光信号,R2接收到的光信号为备用业务光信号,第一传输链路为主用链路、第二传输链路为备用链路为例进行的说明,此外,还可以预先定义:R2接收到的光信号为主用业务光信号,R1接收到的光信号为备用业务光信号,第二传输链路为主用链路、第一传输链路为备用链路。本领域技术人员应该而知,任何合理的变换、变形均位于本发明实施例的保护范围内。It can be understood that in the foregoing solution, the optical signal received by R1 is the main service optical signal, the optical signal received by R2 is the standby service optical signal, the first transmission link is the main link, and the second transmission link is the main service optical signal. Take the backup link as an example. In addition, you can also predefine: the optical signal received by R2 is the main service optical signal, the optical signal received by R1 is the backup service optical signal, and the second transmission link is the main service optical signal. The link and the first transmission link are backup links. Those skilled in the art should know that any reasonable changes and modifications fall within the protection scope of the embodiments of the present invention.
本领域技术人员应该理解,理论情况下采用级联方式进行连接的各个OLP均可采用本申请实施例中的切换方法以避免OLP产生无效切换。在实际应用中,对于采用级联方式进行连接的第一个OLP,由于前级没有其它OLP与其进行连接,自然不会产生无效切换的情况,自然无需避免无效切换的产生。Those skilled in the art should understand that, in theory, each OLP connected in a cascade manner can adopt the switching method in the embodiment of the present application to avoid invalid switching of the OLP. In practical applications, for the first OLP connected in a cascaded manner, since there is no other OLP connected to it in the previous stage, there will be no invalid handover, and there is no need to avoid invalid handover.
本发明实施例提供的一种OLP传输链路的切换装置,如图6所示,还包括:An OLP transmission link switching device provided by an embodiment of the present invention, as shown in FIG. 6, further includes:
第一获取模块61、第二获取模块62、第三获取模块63及确定模块64;所述OLP包括配置为接收第一信号的第一输入端61a和配置为接收第二信号 的第二输入端61b;其中,The first acquiring module 61, the second acquiring module 62, the third acquiring module 63, and the determining module 64; the OLP includes a first input terminal 61a configured to receive a first signal and a second input terminal configured to receive a second signal 61b; where,
所述第一获取模块61,配置为获取所述第一信号和所述第二信号的信号值均小于各自的第一阈值的第一时间信息;The first acquiring module 61 is configured to acquire first time information in which the signal values of the first signal and the second signal are both smaller than the respective first threshold;
所述第二获取模块62,配置为在所述第一时间至第二时间内,获取所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;以及The second acquisition module 62 is configured to acquire the first signal value of the first signal and the second signal value of the second signal during the first time to the second time; wherein the second signal Time is the time when the signal value of the second signal received by the second input terminal reaches the first threshold set for the second signal; and
所述第三获取模块63,配置为在第三时间之后,至少获取所述第一信号的第三信号值,其中所述第三时间为在所述第二时间之后所述第一信号的数值达到第二阈值的时间信息;The third acquiring module 63 is configured to acquire at least a third signal value of the first signal after a third time, where the third time is the value of the first signal after the second time Time information when the second threshold is reached;
所述确定模块64,配置为根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。The determining module 64 is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value .
上述方案中,所述确定模块64,配置为:In the above solution, the determining module 64 is configured to:
判断所述第一信号值和第二信号值与各自的第一阈值之间的大小关系,得到第一判断结果;以及Judging the magnitude relationship between the first signal value and the second signal value and the respective first thresholds to obtain a first judgment result; and
判断所述第三信号值与所述第二阈值之间的大小关系,得到第二判断结果;Judging the magnitude relationship between the third signal value and the second threshold to obtain a second judgment result;
根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路。According to the first judgment result and the second judgment result, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
上述方案中,所述确定模块64,还配置为:In the above solution, the determining module 64 is further configured to:
在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值大于等于所述第二阈值的情况下,控制所述OLP维持在所述第一传输链路;The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is greater than or equal to the second threshold value Next, control the OLP to maintain the first transmission link;
在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的 第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值的情况下,控制所述OLP从所述第一传输链路切换至所述第二传输链路。In the case where the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value , Controlling the OLP to switch from the first transmission link to the second transmission link.
在一个方案中,在第三时间后获得的第一信号的第三信号值小于第二阈值,有较小的可能性出现第二传输链路发生故障的情况,这时级联OLP发生切换,会从第一传输链路切换到故障的第二传输链路,为保证这种无效切换不发生,所述装置还包括:In one solution, the third signal value of the first signal obtained after the third time is less than the second threshold, there is a small possibility that the second transmission link will fail, and then the cascaded OLP will be switched. It will switch from the first transmission link to the failed second transmission link. To ensure that such invalid switching does not occur, the device further includes:
第四获取模块,配置为在第三时间之后,获得所述第二信号的第四信号值;A fourth obtaining module, configured to obtain a fourth signal value of the second signal after a third time;
相应的,所述确定模块64,配置为根据第一判断结果、第二判断结果和第三判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路。Correspondingly, the determining module 64 is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result, the second judgment result, and the third judgment result.
在一个方案中,所述确定模块64,还配置为:In one solution, the determining module 64 is further configured to:
在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值大于等于所述第二阈值以及第三判断结果表征所述第四信号值小于第三阈值的情况下,控制所述OLP维持在所述第一传输链路。The first judgment result characterizes that the first signal value and the second signal value are both smaller than the respective first threshold values, and the second judgment result characterizes that the third signal value is greater than or equal to the second threshold value and the first threshold value. Three judgment results indicate that the fourth signal value is less than a third threshold, controlling the OLP to maintain the first transmission link.
在一个方案中,所述确定模块64,还配置为:In one solution, the determining module 64 is further configured to:
在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值以及第三判断结果表征所述第四信号值大于等于第三阈值的情况下,控制所述OLP从所述第一传输链路切换至第二传输链路。The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold and the third When the judgment result indicates that the fourth signal value is greater than or equal to a third threshold, the OLP is controlled to switch from the first transmission link to the second transmission link.
本发明实施例中,所述OLP传输链路的切换装置中的第一获取单元32、第二获取单元33、第三获取单元34和确定单元35,在实际应用中均可由所述OLP中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit) 或可编程门阵列(FPGA,Field-Programmable Gate Array)实现。In the embodiment of the present invention, the first obtaining unit 32, the second obtaining unit 33, the third obtaining unit 34, and the determining unit 35 in the device for switching the OLP transmission link can be used in practical applications. Central processing unit (CPU, Central Processing Unit), digital signal processor (DSP, Digital Signal Processor), microcontroller unit (MCU, Microcontroller Unit) or programmable gate array (FPGA, Field-Programmable Gate Array) are implemented.
需要说明的是,本申请实施例的OLP传输链路的切换装置,由于该OLP传输链路的切换装置解决问题的原理与前述的OLP传输链路的切换方法相似,因此,OLP传输链路的切换装置的实施过程及实施原理均可以参见前述OLP传输链路的切换方法的实施过程及实施原理描述,重复之处不再赘述。It should be noted that the switching device of the OLP transmission link in the embodiment of the present application, because the principle of the switching device of the OLP transmission link to solve the problem is similar to the aforementioned switching method of the OLP transmission link, therefore, the switching method of the OLP transmission link For the implementation process and implementation principle of the switching device, please refer to the foregoing description of the implementation process and implementation principle of the switching method of the OLP transmission link, and the repetition will not be repeated.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时至少用于执行图2至图6任一所示方法的步骤。所述计算机可读存储介质具体可以为存储器。The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, it is used to perform at least the steps of any one of the methods shown in FIGS. 2 to 6. The computer-readable storage medium may specifically be a memory.
本发明实施例还提供了一种OLP。图7为本发明实施例的OLP的硬件结构示意图,如图7所示,该OLP包括:用于进行数据传输的通信组件73、至少一个处理器71和用于存储能够在处理器71上运行的计算机程序的存储器72。终端中的各个组件通过总线系统74耦合在一起。可理解,总线系统74用于实现这些组件之间的连接通信。总线系统74除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统74。The embodiment of the present invention also provides an OLP. FIG. 7 is a schematic diagram of the hardware structure of an OLP according to an embodiment of the present invention. As shown in FIG. 7, the OLP includes: a communication component 73 for data transmission, at least one processor 71, and storage capable of running on the processor 71 The memory 72 of the computer program. The various components in the terminal are coupled together through the bus system 74. It can be understood that the bus system 74 is used to implement connection and communication between these components. In addition to the data bus, the bus system 74 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear description, various buses are marked as the bus system 74 in FIG. 7.
其中,所述处理器71执行所述计算机程序时至少执行图2至图6任一所示方法的步骤。Wherein, the processor 71 executes at least the steps of any one of the methods shown in FIG. 2 to FIG. 6 when executing the computer program.
可以理解,存储器72可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash  Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器72旨在包括但不限于这些和任意其它适合类型的存储器。It is understood that the memory 72 may be a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read- Only Memory, Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or CD-ROM (Compact Disc Read-Only Memory); magnetic surface memory can be magnetic disk storage or tape storage. The volatile memory may be a random access memory (RAM, Random Access Memory), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), and dynamic random access memory. Memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Type synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous connection dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory) ). The memory 72 described in the embodiment of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
上述本发明实施例揭示的方法可以应用于处理器71中,或者由处理器71实现。处理器71可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器71中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器71可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器71可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器72,处理器71读取存储器72中的信 息,结合其硬件完成前述方法的步骤。The method disclosed in the foregoing embodiment of the present invention may be applied to the processor 71 or implemented by the processor 71. The processor 71 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 71 or instructions in the form of software. The aforementioned processor 71 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the like. The processor 71 may implement or execute various methods, steps, and logical block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present invention may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, and the storage medium is located in the memory 72. The processor 71 reads the information in the memory 72 and completes the steps of the foregoing method in combination with its hardware.
在示例性实施例中,OLP传输链路的切换装置可以被一个或多个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述的OLP传输链路的切换方法。In an exemplary embodiment, the switching device of the OLP transmission link can be implemented by one or more application specific integrated circuits (ASIC, Application Specific Integrated Circuit), DSP, Programmable Logic Device (PLD, Programmable Logic Device), and complex programmable logic device. Logic device (CPLD, Complex Programmable Logic Device), FPGA, general-purpose processor, controller, MCU, microprocessor (Microprocessor), or other electronic components are implemented to implement the foregoing OLP transmission link switching method.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, such as: multiple units or components can be combined, or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, the functional units in the embodiments of the present invention can be all integrated into one processing unit, or each unit can be individually used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be implemented in the form of hardware, or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤; 而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the above method embodiments can be implemented by a program instructing relevant hardware. The foregoing program can be stored in a computer readable storage medium. When the program is executed, it is executed. Including the steps of the foregoing method embodiment; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc. A medium that can store program codes.
或者,本发明实施例上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the aforementioned integrated unit in the embodiment of the present invention is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention can be embodied in the form of a software product in essence or a part that contributes to related technologies. The computer software product is stored in a storage medium and includes a number of instructions to enable A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in the various embodiments of the present invention. The aforementioned storage media include: removable storage devices, ROM, RAM, magnetic disks, or optical disks and other media that can store program codes.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in the several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
工业实用性Industrial applicability
本发明实施例通过获得第一时间信息,在第一时间至第二时间内,对第一信号和第二信号的信号值进行获取,并在第三时间之后,至少对第一信号的取值再次进行获取,并通过在第一时间至第二时间内获取的第一信 号和第二信号的信号值以及在第三时间之后获取的第一信号的信号值,确定是否进行OLP的传输链路的切换。这种根据在规定的时间内获取的信号值进行是否进行传输链路的切换的方案,至少可避免由于前级OLP的切换而导致的本级OLP发生无效的切换,解决了相关技术中由于前级OLP切换、导致级联OLP发生无意义切换的技术问题。In the embodiment of the present invention, by obtaining the first time information, the signal values of the first signal and the second signal are obtained from the first time to the second time, and after the third time, at least the value of the first signal is obtained Acquire again, and determine whether to perform the OLP transmission link through the signal values of the first signal and the second signal acquired from the first time to the second time and the signal values of the first signal acquired after the third time Switch. This scheme of whether to switch the transmission link based on the signal value obtained within the specified time can at least avoid the invalid switching of the OLP at the current level caused by the switch of the previous level OLP, and solves the problem of the previous level in the related technology. Level OLP switching, a technical problem that causes meaningless switching of cascaded OLP.

Claims (10)

  1. 一种OLP传输链路的切换方法,包括:针对至少两个通过级联方式进行连接的OLP中的至少一个OLP,所述至少一个OLP包括用于接收第一信号第一输入端和用于接收第二信号的第二输入端;An OLP transmission link switching method includes: for at least one OLP of at least two OLPs connected in a cascade manner, the at least one OLP includes a first input terminal for receiving a first signal and a first input terminal for receiving a first signal. The second input terminal of the second signal;
    获得第一信号和第二信号的信号值均小于各自的第一阈值的第一时间信息;Obtaining first time information in which signal values of the first signal and the second signal are both smaller than the respective first threshold;
    在所述第一时间至第二时间内,获得所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;In the first time to the second time, the first signal value of the first signal and the second signal value of the second signal are obtained; wherein the second time is determined by the second input terminal The time when the received signal value of the second signal reaches the first threshold set for the second signal;
    在第三时间之后,至少获得所述第一信号的第三信号值,其中,所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;After the third time, at least the third signal value of the first signal is obtained, where the third time is the value of the first signal from the first signal set for the first signal after the second time. Time information when the threshold reaches the second threshold;
    根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。According to the first signal value, the second signal value, and the third signal value, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
  2. 根据权利要求1所述的方法,其中,所述根据所述第一信号值与第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:The method according to claim 1, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link based on the first signal value and the second signal value, and the third signal value Transmission link, including:
    判断所述第一信号值和第二信号值与各自的第一阈值之间的大小关系,得到第一判断结果;以及Judging the magnitude relationship between the first signal value and the second signal value and the respective first thresholds to obtain a first judgment result; and
    判断所述第三信号值与所述第二阈值之间的大小关系,得到第二判断结果;Judging the magnitude relationship between the third signal value and the second threshold to obtain a second judgment result;
    根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路。According to the first judgment result and the second judgment result, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
  3. 根据权利要求2所述的方法,其中,所述根据第一判断结果和第二 判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:The method according to claim 2, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result comprises:
    在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值大于等于所述第二阈值的情况下,控制所述OLP维持在所述第一传输链路。The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is greater than or equal to the second threshold value Next, controlling the OLP to maintain the first transmission link.
  4. 根据权利要求2所述的方法,其中,所述根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:The method according to claim 2, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result comprises:
    在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值的情况下,控制所述OLP从所述第一传输链路切换至所述第二传输链路。In the case where the first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first threshold value, and the second judgment result indicates that the third signal value is smaller than the second threshold value , Controlling the OLP to switch from the first transmission link to the second transmission link.
  5. 根据权利要求2至4任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 2 to 4, wherein the method further comprises:
    在第三时间之后,获得所述第二信号的第四信号值;After the third time, obtain the fourth signal value of the second signal;
    判断第四信号值与第三阈值之间的大小关系,得到第三判断结果;Judging the magnitude relationship between the fourth signal value and the third threshold, and obtaining a third judgment result;
    相应的,所述根据第一判断结果和第二判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:Correspondingly, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result and the second judgment result includes:
    根据第一判断结果、第二判断结果和第三判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路。According to the first judgment result, the second judgment result, and the third judgment result, it is determined whether to switch the OLP from the first transmission link to the second transmission link.
  6. 根据权利要求5所述的方法,其中,所述根据第一判断结果、第二判断结果和第三判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:The method according to claim 5, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result, the second judgment result, and the third judgment result, comprises :
    在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值以及第三判断结果表征所述第四信号值小于第三阈值的情况下,控制所述OLP维持在所述第一传输链路。The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold and the third When the judgment result indicates that the fourth signal value is less than a third threshold, control the OLP to maintain the first transmission link.
  7. 根据权利要求5所述的方法,其中,所述根据第一判断结果、第二判断结果和第三判断结果,确定是否将所述OLP从第一传输链路切换到第二传输链路,包括:The method according to claim 5, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first judgment result, the second judgment result, and the third judgment result, comprises :
    在所述第一判断结果表征所述第一信号值、第二信号值均小于各自的第一阈值,且所述第二判断结果表征所述第三信号值小于所述第二阈值以及第三判断结果表征所述第四信号值大于等于第三阈值的情况下,控制所述OLP从所述第一传输链路切换至第二传输链路。The first judgment result indicates that the first signal value and the second signal value are both smaller than the respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold and the third When the judgment result indicates that the fourth signal value is greater than or equal to a third threshold, the OLP is controlled to switch from the first transmission link to the second transmission link.
  8. 一种OLP传输链路的切换装置,其中,所述装置包括:第一获取模块、第二获取模块、第三获取模块及确定模块;所述OLP包括配置为接收第一信号的第一输入端和配置为接收第二信号的第二输入端;其中,An OLP transmission link switching device, wherein the device includes: a first acquisition module, a second acquisition module, a third acquisition module, and a determination module; the OLP includes a first input terminal configured to receive a first signal And a second input terminal configured to receive a second signal; wherein,
    所述第一获取模块,配置为获取所述第一信号和所述第二信号的信号值均小于各自的第一阈值的第一时间信息;The first acquiring module is configured to acquire first time information whose signal values of the first signal and the second signal are both smaller than the respective first threshold;
    所述第二获取模块,配置为在所述第一时间至第二时间内,获取所述第一信号的第一信号值和所述第二信号的第二信号值;其中所述第二时间为由所述第二输入端所接收的所述第二信号的信号值达到为第二信号设置的第一阈值的时间;The second acquisition module is configured to acquire the first signal value of the first signal and the second signal value of the second signal during the first time to the second time; wherein the second time Is the time when the signal value of the second signal received by the second input terminal reaches the first threshold set for the second signal;
    所述第三获取模块,配置为在第三时间之后,至少获取所述第一信号的第三信号值,其中所述第三时间为在所述第二时间之后所述第一信号的数值从为第一信号设置的第一阈值达到第二阈值的时间信息;The third acquisition module is configured to acquire at least a third signal value of the first signal after a third time, where the third time is the value of the first signal after the second time Time information when the first threshold set for the first signal reaches the second threshold;
    所述确定模块,配置为根据所述第一信号值与所述第二信号值、和所述第三信号值,确定是否将所述OLP从第一传输链路切换到第二传输链路。The determining module is configured to determine whether to switch the OLP from the first transmission link to the second transmission link according to the first signal value, the second signal value, and the third signal value.
  9. 一种计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现权利要求1至7任一所述方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the steps of the method described in any one of claims 1 to 7.
  10. 一种OLP,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现权利要求1 至7任一所述方法的步骤。An OLP includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 7 when the processor executes the program.
PCT/CN2019/124924 2019-11-15 2019-12-12 Switching method and apparatus of olp transmission link, storage medium and olp WO2021093072A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911118504.2 2019-11-15
CN201911118504.2A CN110995336B (en) 2019-11-15 2019-11-15 OLP transmission link switching method and device, storage medium and OLP

Publications (1)

Publication Number Publication Date
WO2021093072A1 true WO2021093072A1 (en) 2021-05-20

Family

ID=70084313

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124924 WO2021093072A1 (en) 2019-11-15 2019-12-12 Switching method and apparatus of olp transmission link, storage medium and olp

Country Status (2)

Country Link
CN (1) CN110995336B (en)
WO (1) WO2021093072A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890599B (en) * 2021-09-27 2023-05-05 武汉光迅科技股份有限公司 Optical path protection device, optical path protection method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931486A (en) * 2009-10-27 2010-12-29 武汉光迅科技股份有限公司 Optical fiber line warning door line protection method of wavelength division system
CN102064901A (en) * 2010-12-29 2011-05-18 烽火通信科技股份有限公司 Method for compensating asymmetric line delay caused by OLP (Optical Line Protection) switching
CN105591688A (en) * 2015-12-23 2016-05-18 广东倍增通信设备有限公司 Fiber switching protection system suitable for fiber switching protection device
US20170346549A1 (en) * 2016-05-31 2017-11-30 Alibaba Group Holding Limited System and method for enhancing reliability in a transport network

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370702C (en) * 2004-09-10 2008-02-20 华为技术有限公司 Automatic protected switch system and method thereof
CN101374070B (en) * 2007-08-23 2011-10-26 中国移动通信集团公司 Method, system and control device for protecting multi-section cascade transmission network
CN101626272B (en) * 2008-07-10 2013-03-20 中兴通讯股份有限公司 Method for realizing error connection prevention in optical network
CN201571061U (en) * 2009-12-15 2010-09-01 汕头高新区亚威科技有限公司 Dual-channel backup optical receiver for fiber-optic transmission system
CN101848034B (en) * 2010-05-05 2014-12-17 中兴通讯股份有限公司 Optical path protecting device and method
CN102136876B (en) * 2011-02-11 2014-12-31 华为技术有限公司 Light line protection acceleration circuit, light line protection system and method
EP2688230B1 (en) * 2011-06-21 2016-04-27 Huawei Technologies Co., Ltd. Optical line transmission protection system and method
CN103313148B (en) * 2012-03-13 2018-08-14 中兴通讯股份有限公司 Method, apparatus, network element and the network that expense is changed and prevents subnet while switching
CN102611499B (en) * 2012-04-05 2015-01-14 烽火通信科技股份有限公司 Method for realizing ODUK (Optical Channel Data Unit) protection switching by crossed disc of OTN (Optical Transport Network) equipment
US9690049B2 (en) * 2013-07-01 2017-06-27 Tongqing Wang Optical line protection with digital dispersion compensation module
ES2634242T3 (en) * 2014-03-05 2017-09-27 Huawei Technologies Co., Ltd. Method, device and link switching system
EP3139527B1 (en) * 2014-05-08 2018-08-15 Huawei Technologies Co., Ltd. Protection switching method, node and control device
CN104660326A (en) * 2015-02-13 2015-05-27 田勐 High-speed and automatic SDH (synchronous digital hierarchy) switching method and device based on channel quality
CN106301537A (en) * 2015-05-13 2017-01-04 中兴通讯股份有限公司 A kind of realize the method for APS, this end node and peer node
CN204615828U (en) * 2015-05-20 2015-09-02 广州杰鑫通讯技术有限公司 Intelligent optical circuit automatic switching protection equipment
CN105871455B (en) * 2016-05-31 2018-08-28 国网新疆电力公司阿勒泰供电公司 The EDFA devices of band OSC amplifications for optical link protecting system
WO2018042937A1 (en) * 2016-08-30 2018-03-08 パナソニックIpマネジメント株式会社 Switching power supply device and semiconductor device
CN206323137U (en) * 2016-11-25 2017-07-11 广东电网有限责任公司湛江供电局 Circuit switching monitoring device and circuit switching system
CN107547249A (en) * 2017-06-15 2018-01-05 新华三技术有限公司 Link switch-over method, device, SDN switch, controller and storage medium
CN110266373B (en) * 2018-03-12 2021-01-22 中兴通讯股份有限公司 Optical network protection switching control method, device and system
CN109361597B (en) * 2018-12-14 2021-06-04 武汉光迅信息技术有限公司 Multi-route selection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931486A (en) * 2009-10-27 2010-12-29 武汉光迅科技股份有限公司 Optical fiber line warning door line protection method of wavelength division system
CN102064901A (en) * 2010-12-29 2011-05-18 烽火通信科技股份有限公司 Method for compensating asymmetric line delay caused by OLP (Optical Line Protection) switching
CN105591688A (en) * 2015-12-23 2016-05-18 广东倍增通信设备有限公司 Fiber switching protection system suitable for fiber switching protection device
US20170346549A1 (en) * 2016-05-31 2017-11-30 Alibaba Group Holding Limited System and method for enhancing reliability in a transport network

Also Published As

Publication number Publication date
CN110995336A (en) 2020-04-10
CN110995336B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US20220075698A1 (en) Method and Apparatus for Redundancy in Active-Active Cluster System
CN108809617B (en) Time delay compensation method and terminal
US11422960B2 (en) Interrupt monitoring systems and methods for failure detection for a semiconductor device
WO2021093072A1 (en) Switching method and apparatus of olp transmission link, storage medium and olp
CN101119192A (en) Clock synchronization method and system
CN110572228B (en) Synchronous information transmission method, device, related equipment and storage medium
US20200281039A1 (en) Information processing method, high-layer functional entity and computer storage medium
CN109729235B (en) Clock backup circuit in video processor and video processor
CN107547260B (en) Long-distance infiniband link detection, switching and repair method
KR102502982B1 (en) Data logging apparatus
CN112817368B (en) Chip synchronization method and related device
CN114095462A (en) Fault tolerance method and system for SRIO communication system of radar processor
CN103001789B (en) Clock switch method and device
US20180123871A1 (en) Information processing device, repeating device, information processing system and method, and program
JPS6161140B2 (en)
US20170125126A1 (en) Transmission apparatus, diagnosis method, computer-readable recording medium
EP4391425A1 (en) Communication apparatus, control method therefor, and computer program
JPH06204993A (en) Clock interruption detection circuit
JPS63108828A (en) Monitoring method for digital line
US4121047A (en) Circuit arrangement for the switching on and off of a teleprinter PBX exchange
US9261557B1 (en) Semiconductor apparatus and test device therefor
JPS60134550A (en) Fault detecting system of time division multiplex highway
WO2017185967A1 (en) Mcu cascade structure and control method, system and storage medium
CN116821247A (en) Data synchronization method, device, equipment and storage medium
CN117856951A (en) Time setting method and device based on hardware clock, storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19952718

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19952718

Country of ref document: EP

Kind code of ref document: A1