CN110995336B - OLP transmission link switching method and device, storage medium and OLP - Google Patents

OLP transmission link switching method and device, storage medium and OLP Download PDF

Info

Publication number
CN110995336B
CN110995336B CN201911118504.2A CN201911118504A CN110995336B CN 110995336 B CN110995336 B CN 110995336B CN 201911118504 A CN201911118504 A CN 201911118504A CN 110995336 B CN110995336 B CN 110995336B
Authority
CN
China
Prior art keywords
signal
olp
transmission link
time
signal value
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911118504.2A
Other languages
Chinese (zh)
Other versions
CN110995336A (en
Inventor
於俊成
喻杰奎
罗清
王文忠
陈元
张颖
陈文�
黎奇
刘海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Accelink Technologies Co Ltd
Original Assignee
Accelink Technologies Co Ltd
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 Accelink Technologies Co Ltd filed Critical Accelink Technologies Co Ltd
Priority to CN201911118504.2A priority Critical patent/CN110995336B/en
Priority to PCT/CN2019/124924 priority patent/WO2021093072A1/en
Publication of CN110995336A publication Critical patent/CN110995336A/en
Application granted granted Critical
Publication of CN110995336B publication Critical patent/CN110995336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The embodiment of the application discloses a switching method and a switching device for an OLP transmission link of an optical fiber automatic switching protection system, a storage medium and an OLP; wherein the method is for: for at least one OLP of at least two OLPs connected in a cascaded manner, the at least one OLP comprising a first input for receiving a first signal and a second input for receiving a second signal; obtaining first time information that the signal values of the first signal and the second signal are smaller than respective first threshold values; obtaining a first signal value of the first signal and a second signal value of the second signal within the first time to a second time; after a third time, at least a third signal value of the first signal is obtained, and it is determined 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.

Description

OLP transmission link switching method and device, storage medium and OLP
Technical Field
The present invention relates to an Optical Fiber automatic Switch Protection system (OLP) technology, and in particular, to a method and an apparatus for switching an OLP transmission link, a storage medium, and an OLP.
Background
The OLP as a system on an optical cable link has the characteristics of independent and transparent data transmission, high safety and quick fault recovery, and can be matched with equipment or devices in other optical networks to construct an optical communication network system which has no blocking, high reliability, safety, flexibility and strong disaster resistance.
The OLP has two transmission links, a primary link and a backup link. OLP can use at least one of these two transmission links for the transmission of optical signals. The OLP switching protection method includes a 1+1 protection method and a 1:1 protection method, and the 1+1 protection method has a faster OLP switching speed, so the OLP switching method is more common.
In an optical network in which at least two OLPs are connected in a cascade manner, as shown in fig. 1, a circuit diagram in which three OLPs are cascaded is shown. In the 1+1 protection mode, the output terminal T1 of the preceding stage OLP-OLP1 outputs data (optical signal) received by the input terminal R1, and the data output from the output terminal T1 is transmitted to the input terminal R1 of the next stage OLP-OLP2 by using the active link. The main input Rx of the OLP1 needs to be connected to the R1 through the optical switch unit (103) to send the data received from the input R1 to the output T1 inside the OLP 1. Each OLP is split by a splitter (101) into two optical signals, which are output via T1 and T2, respectively. An Erbium Doped Fiber Amplifier (EDPA) (102) is used to amplify an optical signal to prevent the optical signal from being excessively attenuated during transmission. It can be understood that, by default, data is transmitted between each stage of OLP stage by stage through the active link, but it is noted that in the 1+1 protection mode, the T2 output end of the OLP1 also outputs an optical signal and transmits the optical signal through the standby link to wait for the reception of the OLP 2. When the former-stage OLP has a link switching requirement, if there is a failure, the former-stage OLP will perform an operation of switching from the active link to the standby link. The operation is as follows: the optical switch unit (103) of the previous stage OLP such as OLP1 operates to disconnect between R1 and Rx and connect the other input terminal R2 to Rx, and the data received by the input terminal R2 is output via the output terminal T2 and transmitted to the next stage OLP such as OLP2 using the backup link. However, in practical applications, when a link switch occurs in a previous stage OLP, a service interruption of millisecond level may occur, and a service interruption of a previous stage OLP such as OLP1 causes a receiving end of an active link of a next stage OLP such as R1 of OLP2 to fail to generate an optical signal, and because a backup link of OLP1 is shorter than the active link or because a characteristic difference of EDFAs (102) generates different delays, an optical signal transmitted from the backup link of OLP1 may reach OLP2 first, that is, for a phenomenon that a service of OLP1 is interrupted, an input end R2 of OLP2 may generate an optical signal before R1, and in this case, an optical switch unit (103) of OLP2 originally using the active link for transmission may be switched from R1 to R2, and a transmission link of OLP2 may be switched from the active link to the backup link. It can be understood that such switching of the transmission link of the OLP2 occurs due to the switching of the transmission link of the OLP1, and not due to its own reason, such as the failure of its own main link, and it is not expected in practical applications that the switching of the OLP2 also occurs along with the switching of the transmission link of the OLP 1. In the related art, this kind of switching of the OLP2 transmission link is referred to as an invalid switching. Therefore, how to avoid the invalid switching of the next stage OLP under the condition that the transmission link switching of the former stage OLP occurs becomes a technical problem to be solved urgently.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for switching an OLP transmission link, a computer storage medium, and an OLP.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a switching method of an OLP transmission link, which comprises the following steps: for at least one OLP of at least two OLPs connected in a cascaded manner, the at least one OLP comprising a first input for receiving a first signal and a second input for receiving a second signal;
obtaining first time information that the signal values of the first signal and the second signal are smaller than respective first threshold values;
obtaining a first signal value of the first signal and a second signal value of the second signal within the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal;
obtaining at least a third signal value of the first signal after a third time, wherein the third time is time information that a value of the first signal reaches a second threshold value from a first threshold value set for the first signal after the second time;
determining whether to switch the OLP from a first transmission link to a second transmission link based on the first and second signal values and the third signal value.
In the above solution, the determining 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 includes:
judging the magnitude relation between the first signal value and the second signal value and respective first threshold values to obtain a first judgment result; and
judging the magnitude relation between the third signal value and the second threshold value to obtain a second judgment result;
and 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.
In the foregoing solution, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result includes:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second determination result indicates that the third signal value is greater than or equal to the second threshold.
In the foregoing solution, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result includes:
and controlling the OLP to be switched from the first transmission link to the second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold.
In the above scheme, the method further comprises:
obtaining a fourth signal value of the second signal after a third time;
judging the magnitude relation between the fourth signal value and the third threshold value to obtain a third judgment result;
correspondingly, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result includes:
and 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.
In the foregoing solution, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result, the second determination result, and the third determination result includes:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is smaller than the second threshold, and the third determination result indicates that the fourth signal value is smaller than a third threshold.
In the foregoing solution, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result, the second determination result, and the third determination result includes:
and controlling the OLP to be switched from the first transmission link to a second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second judgment result indicates that the third signal value is smaller than the second threshold, and the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold.
The embodiment of the present invention further provides a device for switching an OLP transmission link, where the device includes: the device comprises a first acquisition module, a second acquisition module, a third acquisition module and a determination module; the OLP comprises a first input for receiving a first signal and a second input for receiving a second signal; wherein the content of the first and second substances,
the first obtaining module is configured to obtain first time information that signal values of the first signal and the second signal are both smaller than respective first threshold values;
the second obtaining module is configured to obtain a first signal value of the first signal and a second signal value of the second signal from the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal;
the third obtaining module is configured to obtain at least a third signal value of the first signal after a third time, where the third time is time information that a value of the first signal reaches a second threshold from a first threshold set for the first signal after the second time;
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.
In the foregoing solution, the determining module is configured to:
judging the magnitude relation between the first signal value and the second signal value and respective first threshold values to obtain a first judgment result; and
judging the magnitude relation between the third signal value and the second threshold value to obtain a second judgment result;
and 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.
In the foregoing solution, the determining module is further configured to:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second determination result indicates that the third signal value is greater than or equal to the second threshold.
In the foregoing solution, the determining module is further configured to:
and controlling the OLP to be switched from the first transmission link to the second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold.
In the above scheme, the apparatus further comprises:
a fourth obtaining module, configured to obtain a fourth signal value of the second signal after a third time;
correspondingly, 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 determination result, the second determination result, and the third determination result.
In the foregoing solution, the determining module is further configured to:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is smaller than the second threshold, and the third determination result indicates that the fourth signal value is smaller than a third threshold.
In the foregoing solution, the determining module is further configured to:
and controlling the OLP to be switched from the first transmission link to a second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second judgment result indicates that the third signal value is smaller than the second threshold, and the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold.
An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored.
Embodiments of the present invention further provide an OLP, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
The embodiment of the invention provides a switching method and device of an OLP transmission link, a computer storage medium and an OLP, wherein the switching method comprises the following steps: for at least one OLP of at least two OLPs connected in a cascaded manner, the at least one OLP comprising a first input for receiving a first signal and a second input for receiving a second signal; obtaining first time information that the signal values of the first signal and the second signal are smaller than respective first threshold values; obtaining a first signal value of the first signal and a second signal value of the second signal within the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal; obtaining at least a third signal value of the first signal after a third time, wherein the third time is time information that a value of the first signal reaches a second threshold value from a first threshold value set for the first signal after the second time; determining whether to switch the OLP from a first transmission link to a second transmission link based on the first and second signal values and the third signal value.
In the embodiment of the present application, whether to perform a switching of a transmission link of the OLP is determined according to the first signal value, the second signal value, and the third signal value. At least, the switching of the cascade OLP itself, which is invalid due to the switching of the previous stage OLP, can be avoided.
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 switching condition is more strict, and the invalid switching is greatly avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a circuit configuration of a cascaded OLP in the prior art;
fig. 2 is a schematic implementation flow diagram of a switching method of an OLP transmission link according to a first embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation of a second embodiment of the switching method for an OLP transmission link according to the present invention;
fig. 4 is a schematic flow chart illustrating an implementation of a third embodiment of a switching method for an OLP transmission link according to the present invention;
fig. 5 is a schematic diagram illustrating a principle of whether an OLP transmission link is switched according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a switching device of an OLP transmission link according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware configuration of an OLP according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The embodiment of the present invention provides a switching method for an OLP transmission link, which is applied to at least one OLP of at least two OLPs connected in a cascade manner, where the at least one OLP includes a first input end for receiving a first signal and a second input end for receiving a second signal. It can be understood that, for each OLP connected in a cascade manner, two inputs are included: a first input terminal and a second input terminal. The first input terminal may be understood as a receiving terminal for receiving an optical signal transmitted by the preceding stage OLP through the active link. The second input terminal can be understood as a receiving terminal for receiving the optical signal transmitted from the previous stage OLP through the backup link. Of course the opposite is also possible. Each OLP comprises a first transmission link and a second transmission link, and the second transmission link refers to a standby link under the condition that the first transmission link is a main link; in case the first transmission link is a standby link, the second transmission link is referred to as an active link.
As shown in fig. 2, the method for switching an OLP transmission link according to the embodiment of the present application includes:
step (S) 201: obtaining first time information that the signal values of the first signal and the second signal are smaller than respective first threshold values;
s202: obtaining a first signal value of the first signal and a second signal value of the second signal within the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal;
s203: obtaining at least a third signal value of the first signal after a third time, wherein the third time is time information that a value of the first signal reaches a second threshold value from a first threshold value set for the first signal after the second time;
s204: determining whether to switch the OLP from a first transmission link to a second transmission link based on the first and second signal values and the third signal value.
The main body for executing S201 to S204 is OLP.
In S201, a first threshold is set for each of the first signal and the second signal, where the first threshold may be a specific numerical value or a numerical range, and is not limited specifically. The first threshold values of the two signals may be the same or different in value. A time information (first time information) is obtained, which is a time when the signal values of the first signal and the second signal are both smaller than the respective first threshold values. It will be appreciated that in the case where the two signals are synchronised, this time information may be the time at which both signals are simultaneously less than the respective first threshold. In case the two signals are not synchronized, this time information may be the time when the last signal is less than its first threshold. The first time information may be a specific time, or may be a duration, depending on the actual usage.
In S202, acquisition of the signal values of the first signal and the second signal is performed during a period from the first time to a time (second time) at which the signal value of the second signal reaches the first threshold value.
In S203, the arrival of the time (third time) at which the value of the first signal reaches the second threshold value from the first threshold value is waited after the second time, and the signal value of the first signal is acquired again after the arrival of the third time.
In S204, it is determined whether to perform a switch of the OLP transmission link according to the two signal values of the first signal and the signal value of the second signal obtained within the foregoing several times.
To sum up, 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 at least the value of the first signal is obtained again after the third time, and whether to switch the transmission link of the OLP is determined according to the signal values of the first signal and the second signal obtained from the first time to the second time and the signal value of the first signal obtained after the third time. It can be understood that, in the embodiment of the present application, it is equivalent to perform the determination of whether to perform the OLP transmission link according to two signal values of the first signal and one signal value of the second signal, which are acquired within a specified time (e.g., after the first time to the second time and the third time). The scheme of performing whether to perform transmission link switching according to the signal value acquired within the specified time can at least avoid invalid switching of the current stage OLP due to switching of the previous stage OLP.
The present application provides another embodiment of a method for switching an OLP transmission link, as shown in fig. 3, the method includes:
s301: obtaining first time information that the signal values of the first signal and the second signal are smaller than respective first threshold values;
s302: obtaining a first signal value of the first signal and a second signal value of the second signal within the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal;
s303: obtaining at least a third signal value of the first signal after a third time, wherein the third time is time information that a value of the first signal reaches a second threshold value from a first threshold value set for the first signal after the second time;
s304: judging the magnitude relation between the first signal value and the second signal value and respective first threshold values to obtain a first judgment result;
s305: judging the magnitude relation between the third signal value and the second threshold value to obtain a second judgment result;
s306: and 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.
The main body for executing S301 to S306 is OLP. For the implementation processes of S301 to S303, please refer to the related descriptions of S201 to S203, and repeated descriptions are omitted. S304 to S306 are a specific implementation of S204. Wherein, S304 and S305 have no strict sequence, and can also be performed simultaneously.
In the foregoing scheme, 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 at least the value of the first signal is obtained again after the third time. And determining whether to switch the OLP transmission link according to the judgment results of the magnitude relation between the first signal value and the second signal value and the respective first threshold value and the judgment results of the magnitude relation between the third signal value and the second threshold value. The scheme of the embodiment of the application is equivalent to that on one hand, the time for acquiring when the first signal and the second signal value are performed is specified, and on the other hand, whether transmission link switching is performed is determined according to the judgment result of the magnitude relation between the signal value acquired within the specified time and the corresponding threshold, so that the acquisition time of the signal value and the condition for whether switching occurs become more strict.
In an alternative embodiment, S306: the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result may be implemented by one of the following manners:
the first method is as follows: and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second determination result indicates that the third signal value is greater than or equal to the second threshold.
The second method comprises the following steps: and controlling the OLP to be switched from the first transmission link to the second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold.
It can be understood that the first way is the situation where no transmission link switching occurs; the second way is the situation where the transmission link switching occurs. In the first and second manners, that is, no matter whether the handover occurs or does not need to occur, the first determination result is characterized in that the first signal value and the second signal value are both smaller than the respective first threshold, and the difference is the magnitude relationship between the third signal value and the second threshold. And if the second judgment result is characterized in that the third signal value is greater than or equal to the second threshold value, the OLP is maintained on the first transmission link without switching. And if the second judgment result is characterized in that the third signal value is smaller than the second threshold value, switching from the first transmission link to the second transmission link is required. The method determines whether to switch the transmission link according to the magnitude relation between the signal values of the first signal and the second signal and the corresponding threshold value and by combining the two judgment results, so that the scheme is more rigorous, the invalid switching of the current stage OLP caused by the switching of the previous stage OLP can be effectively avoided, and the non-switching which is not required to be switched can be avoided.
In the foregoing solution, whether to perform transmission link switching is determined according to a first signal value of a first signal, a second signal value of a second signal, and a third signal value of the first signal, that is, two values of the first signal and one value of the second signal, in addition, a third signal value of the first signal obtained after a third time is less than a second threshold, there is a low possibility that the second transmission link fails, when the cascade OLP is switched, the first transmission link is switched to the failed second transmission link, and in order to ensure that such invalid switching does not occur, in an optional embodiment, the switching method further includes:
obtaining a fourth signal value of the second signal after a third time;
judging the magnitude relation between the fourth signal value and the third threshold value to obtain a third judgment result;
correspondingly, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result includes:
and 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.
It can be understood that, in the foregoing solution, after the third time, the signal value of the second signal is also obtained again, and in the process of determining whether to perform the transmission link switching, in addition to the first and second determination results, a third determination result that determines the magnitude relationship between the fourth signal value and the third threshold is added, and the determination of whether to perform the transmission link switching is performed through the combination of the three determination results, i.e., the first to third determination results. The scheme is equivalent to the scheme for switching the transmission link based on the first and second judgment results, and the switching condition is more rigorous, so that whether the transmission link should be switched or not can be accurately judged, the switching or non-switching judgment is more accurate, and the invalid switching of the OLP at the current stage is avoided.
In an optional embodiment, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result, the second determination result, and the third determination result may be implemented by one of the following manners:
the first method is as follows: and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is greater than or equal to the second threshold, and the third determination result indicates that the fourth signal value is smaller than a third threshold.
The second method comprises the following steps: and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is greater than or equal to the second threshold, and the third determination result indicates that the fourth signal value is greater than or equal to a third threshold.
The third method comprises the following steps: and controlling the OLP to be switched from the first transmission link to a second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second judgment result indicates that the third signal value is smaller than the second threshold, and the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold.
The method is as follows: and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is smaller than the second threshold, and the third determination result indicates that the fourth signal value is smaller than a third threshold.
It can be understood that the first and second modes are the situation that the first transmission link works normally without transmission link switching, and the working state of the second transmission link does not need to be considered; the third mode is the situation that the first transmission link does not work normally and the second transmission link works normally and transmission link switching needs to occur; the fourth way is to avoid the situation that the second transmission link fails without transmission link switching.
It is to be understood that in the first and second modes, when the first signal value and the second signal value are both smaller than the respective first threshold, the determination of whether to switch or not to switch the transmission link can be made only according to the condition that the third signal value is greater than or equal to the second threshold, without taking care of the value of the fourth signal value. In the third and fourth modes, when the third signal value is smaller than the second threshold, it is further necessary to determine whether to perform handover or not in accordance with a magnitude relationship between the fourth signal value and the third threshold.
In the first, second, third, and fourth modes, that is, no matter whether the handover occurs or does not occur, the first determination result is characterized in that the first signal value and the second signal value are both smaller than the respective first threshold, and the difference is the magnitude relationship between the third signal value and the second threshold and the magnitude relationship between the fourth signal value and the third threshold. And if the second judgment result represents that the third signal value is greater than or equal to the second threshold value, controlling the OLP to be maintained in the first transmission link without switching transmission links. If the second judgment result indicates that the third signal value is smaller 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, the transmission link switching needs to occur. And if the second judgment result represents that the third signal value is smaller than the second threshold value and the third judgment result represents that the fourth signal value is smaller than the third threshold value, the OLP is controlled to be maintained in the first transmission link without switching the transmission link, so that invalid switching caused by the fault of the second transmission link is avoided. By acquiring the signal values of the first signal and the second signal at different specified times and judging the magnitude relation between the signal values and the corresponding threshold value, whether the transmission link is switched is determined, and the invalid switching of the OLP at the current stage can be greatly avoided.
The technical solution of the embodiment of the present application is further described below with reference to the schematic diagram shown in fig. 1, table 1, and fig. 4-5.
Each OLP connected in a cascade manner in the embodiment of the present application includes at least three Input terminals (inputs) and three Output terminals (outputs). The definition of each input and output is shown in table 1. The first signal is a main service optical signal, and the second signal is a standby service optical signal; the first input end R1 is an active service input port, the second input end R2 is a standby service input port, the total receiving port Rx is an optical receiving port for connecting a service signal, the total output port Tx is an optical transmitting port for connecting a service signal, the first output port T1 is an active service output port, and the second output port T2 is a standby service output port.
TABLE 1
Figure BDA0002274748740000141
Taking the three OLP cascade circuits shown in fig. 1 as an example, waveforms of R2, R1, and Rx are shown in fig. 5. The process of invalid switching of the current stage OLP such as OLP2 due to switching of the previous stage OLP such as OLP1 in the related art will be explained in detail with reference to fig. 1 and 5. As will be appreciated by those skilled in the art, since the standby link of each stage of OLP is shorter than the active link, after the service interruption time of the OLP1 caused by switching, the optical signal of the standby link of the OLP1 appears before the optical signal on the active link, and then the optical signal is received at the R2 input terminal of the next stage of OLP, i.e., the OLP2, of the OLP1 first. At this time, a situation may occur where there is no optical signal at the R1 input end of the OLP2 and there is an optical signal at the R2 input end (e.g. during the period ta in fig. 5), and the OLP2 controls the optical switch unit (103) to disconnect the R1 from the Rx and connect the R2 to the Rx, so as to generate the invalid switching of the OLP 2. For convenience of description, it is noted that the time for generating this switching operation is t3, and it can be seen from fig. 5 that a rising edge signal is generated by Rx at time t3, and the reason for generating the rising edge signal is that Rx switches to R2 that received the optical signal first due to the interruption of the traffic signal caused by the switching of OLP1 in the case of originally connecting with R1. It can be understood that, in the related art, in the case where the OLP1 has a traffic interruption due to its switching, the switching of the invalid link occurs as long as the stable optical signal occurs in R2 (both R1 and R2 slowly occur and tend to be stable).
In the foregoing scheme, it can be understood that in a scenario where there is an invalid handover in OLP2, waveforms of interfaces R1, R2 and Rx when OLP2 is handed over due to OLP1 handover are measured. The waveforms of the R1 and R2 interfaces are simplified waveforms, and the waveform of the Rx interface is an ideal square wave. When the waveform of the Rx interface has a falling edge, the service interruption is shown, and when the waveform of the Rx interface has a rising edge, the optical switch unit (103) is disconnected from the Rx and R1 and then is switched to be connected with R2. That is, the above is to analyze the reason for the occurrence of the invalid handover in the scenario where the OLP2 has the invalid handover. In the embodiment of the application, the generation of invalid switching is avoided by utilizing the rule in the scene of the invalid switching.
In the process of implementing the present invention, the inventor finds that R2 and R1 have a certain time interval from the interruption of the service of OLP1 to the occurrence of the service, measures the time interval in advance, and estimates a reasonable value of the time interval, which is denoted as ta. The time when the Rx is disconnected from the R1 and then connected with the R2 and the time when the R1 optical signal tends to be stable have a certain time interval, a plurality of measurements of the time interval are carried out in advance, and a reasonable value of the time interval is estimated and is recorded as tb. Meanwhile, the time interval from the time when the R1 and R2 cannot receive the optical signal due to service interruption of the OLP1 to the time when the Rx is disconnected from the R1 and then connected to the R2 is measured in advance, a plurality of measurements of the time interval are performed in advance, a reasonable value of the time interval is estimated, and the time interval is recorded as t 0. It is understood that the time intervals ta, tb and t0 are all time interval values, which can be a specific numerical value, or a range of values, and are not limited specifically.
The technical solution in the present application scenario will be described with reference to fig. 4 and 5.
S401: by default, the OLP1 uses a main path and a backup path to transmit optical signals, the OLP2 uses an input terminal R1 to receive optical signals transmitted by the OLP1 through the main path, and uses an input terminal R2 to receive optical signals transmitted by the OLP1 through the backup path.
It can be understood that, in the 1+1 protection mode of OLP, Rx of OLP1 is connected to R1 thereof through an optical switch unit (103), an optical signal input to OLP1 from an external device is received by R1 of OLP1, the received optical signal is split by Rx, Tx and a splitter to obtain two output signals, one of which is output through an output terminal of T1 and transmitted to R1 of OLP2 through a main link of OLP 1. The other path is output through the output terminal of T2 and transmitted to R2 of OLP2 through the backup link of OLP 1. As will be understood by those skilled in the art, since Rx of the OLP2 is connected to the input terminal R1 and not connected to R2, the optical signal received by the OLP2 is the optical signal input from R1. The optical signal appearing at the input of R2 is an optical signal transmitted from the backup link of OLP1, and since Rx of OLP2 is not connected to R2, the signal received at the input of R2 is saved.
S402: monitoring the magnitude of the optical signal received at R1 and R2 during the process of receiving the optical signal by the OLP 2;
in this step, the optical signal on the primary link from the OLP1 (primary service optical signal) received by R1 and the optical signal on the backup link from the OLP1 (backup service optical signal) received by R2 are monitored. It is understood that the magnitude of the optical signal is specifically the optical power value of the optical signal.
S403: recording time information (first time information) that at least the last optical signal in the main service optical signal and the standby service optical signal is smaller than a first threshold set for the last optical signal, and recording the first time as Ti;
here, when the transmission link failure does not occur in the OLP1, the input end of the OLP2 receives the primary service optical signal and the backup service optical signal, both of which have optical power values within a stable range. In case of a transmission link failure in the OLP1 requiring a switch from the active link to the standby link, the input of the OLP2 will receive no or very small, preferably no, optical signal during the time of service interruption in the OLP 1. That is, once it is detected that the active service optical signal input by R1 is smaller than the first threshold (for example, 0dBm) set for it, it is considered that a fault occurs, which may be caused by a transmission link switching and a temporary interruption of service transmission of the previous stage OLP such as OLP1, or may be caused by a fault of R1. Here, it is considered that the two input terminals of the OLP2 may or may not receive the respective optical signals synchronously, and synchronous reception is preferred. In technical implementation, if it is monitored that the optical signal input by which input terminal is smaller than the first threshold set for the input terminal, time information that the optical signal is smaller than the first threshold is recorded for the input terminal, and then two pieces of such time information are recorded for the two input terminals. From the two recorded time information, the information after the time is selected as the first time information in the embodiment of the present application.
In fig. 5, it is assumed that the two pieces of time information recorded by the OLP2 are the same and both are time Ti.
It should be noted that the first threshold set for the active service optical signal and the standby service optical signal may be a specific numerical value, or may also be a range value, and these two first thresholds may be the same or different, and are flexibly set according to the actual use condition. From the time when the time Ti is measured, the OLP2 starts timing.
S404: during the period from Ti to (t0-ta), the magnitude of the optical signal received by R1, R2 of the OLP2 is measured;
wherein ta is a pre-estimated time for the backup service optical signal input by R2 to reach a first threshold from a first threshold smaller than itself; t0 is the time period from the interruption of traffic of OLP1 to the interruption of Rx of OLP2 from R1 and then to R2, so the time period t0-ta can be regarded as the time period when no optical signal or a small optical signal is received at the input ends of R1 and R2 due to the interruption of traffic of OLP1, which is obtained from the result of the previous measurement.
S405: determining a magnitude relation between the optical signals received by R1, R2 of the OLP2 measured during the period from Ti to (t0-ta) and the first threshold values set for each;
if the two are judged to be smaller than the respective first threshold values, the following processes are continuously executed;
otherwise, switching according to normal logic. The normal logic is switched to: if the measured value of the optical signal received by R1 is greater than or equal to the second threshold set for it, the OLP2 continues to receive the optical signal of R1 and continues to use the active link to transmit the received optical signal to a next stage OLP, such as OLP3, through the active 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, OLP2 will disconnect between R1 and Rx and continue to connect R2 to Rx to switch OLP2 from the original active link to the backup link and transmit its received optical signal to OLP3 over the backup link. It is required that 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, the OLP2 does not perform the handover, and continues to transmit the optical signal received by R1 to the OLP3 using the active link.
It should be noted that, in the time period from the time Ti to the time Ti + (t0-ta), the measurement of the optical signals received by the R1 and the R2 may be one time or multiple times. In the case of one measurement, the measurement of the optical signal may be performed at any one time within the period from the time Ti to the time Ti + (t 0-ta); a (preferred) measurement time point may also be preset, and the optical signal may be measured when the (preferred) measurement time point arrives, for example, a middle time point of the time period from the time Ti to the time Ti + (t0-ta) may be taken as the aforementioned (preferred) measurement time point, and the signal values of the two input terminals may be measured when the (preferred) measurement time point arrives. For the case where multiple measurements are required, the optical signal may be measured at any two or more times during the period from time Ti to time Ti + (t0-ta), and the results of the measurements at each time may be averaged to obtain an optical signal value that may be compared with the respective first threshold value. Any one of the multiple measurements can also be selected as the optical signal which can finally be compared with the respective first threshold value. In practical applications, since the processor such as MCU mainly performing the scheme of the foregoing steps is OLP2, specifically OLP2, the MCU usually has a certain sampling frequency, and for the case of multiple measurements, the frequency of the multiple measurements performed in the time period from time Ti to time Ti + (t0-ta) is preferably less than the sampling frequency of the MCU. In the embodiment of the application, single measurement or multiple measurements are adopted, and the specific situation can be flexibly set according to practical application.
In the foregoing solution, t0, ta, and tb are obtained by measuring and estimating in advance before executing the solution of the embodiment of the present application, for example, before executing S401, and furthermore, t0, ta, and tb may also be obtained by measuring the optical signal values at the two input ends and measuring the corresponding measurement time during executing the solution. In particular, 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 a certain number of signal values of R1 and R2 and corresponding points in time may be recorded. A time period from the time Ti to a time point at which normal operation of R2 (at least a state of R2 when the light signal value reaches the first threshold value) is detected is t 0; the time period ta between the point of time when the optical signal value of R1 is detected to be smaller than the first threshold value thereof for the first time and the optical signal value of R2 is greater than or equal to the first threshold value thereof to the point of time when the signal value of R2 is detected to be greater than or equal to the third threshold value thereof; the time period from the point in time when the signal value of R2 is detected to be greater than or equal to its third threshold value to the point in time when the signal value of R1 is greater than or equal to its second threshold value is denoted tb. That is, t0, ta, and tb are calculated from the change of the optical signal in a fixed amount of data to be recorded and the time point corresponding to the change. In the case where t0, ta, and tb are calculated, the second time information and the third time information can be reasonably calculated. It is not specifically limited, and is determined according to actual conditions, whether t0, ta, and tb in the embodiment of the present application are estimated in advance or calculated in real time according to the measured optical signal change condition and the time information corresponding to the change condition in the process of executing the recipe.
S406: when the OLP2 counts from 0 to (Ti + t0+ tb) from the time of Ti, the R1 of the OLP2 receives the optical signal after (Ti + t0+ tb);
in this step, tb is the time length that the time when Rx takes off R1 and then connects R2 and the time when the R1 optical signal tends to be stable have, i.e., the time period when Rx takes off R1 and then recovers from the connection of R2 to R1 optical signal; the signal size when the R1 tends to be stable is measured in advance, and the second threshold is set to be a reasonable value such as-2 dBm of the measured signal size when the R2 tends to be stable.
S407: determining a magnitude relation of the optical signal received for the measured R1 of the OLP2 after the time (Ti + t0+ tb) with the second threshold;
if it is determined that the optical signal received by R1 is equal to or greater than the second threshold value, step S408 is executed;
if it is determined that the optical signal received by R1 is lower than the second threshold, step S409 is executed;
note that the optical signal received by R1 of the OLP2 may be measured multiple times or once after the time (Ti + t0+ tb). In the case of multiple times, which measurement result is taken as the final result of the optical signal received by R2 can be referred to the similar processing of the measurement results of the optical signals received by R1 and R2 in the time period from the time Ti to the time (t0-ta), which is not repeated.
S408: controlling the OLP2 to maintain the main link for transmitting the service optical signal;
s409: the OLP2 is controlled to switch from the active link to the standby link for transmission of traffic optical signals.
The executing subjects of the foregoing S401 to S409 may all be processors of the OLP2, specifically, the OLP2, such as MCU.
In the foregoing solution, the solution is equivalent to breaking the prior art that the transmission link switching occurs when the OLP2 starts to time from 0 and times to t0, that is, when an optical signal first appears in R2, in the embodiment of the present application, at least one measurement is performed on the optical signal received by R1 and R2 of the OLP2 in the time period from Ti to (t0-ta), that is, the first measurement needs to occur in the time period from Ti to (t 0-ta). The optical signal received at R1 of OLP2 is measured at least once more after the time (Ti + t0+ tb). I.e., the second measurement occurs after time (Ti + t0+ tb). The results measured in these two periods of time are compared with respective thresholds and, depending on the comparison, it is determined whether a switching of the transmission link is to be performed. It can be seen that whether the signal not received at the input end of the OLP2 is caused by the input end fault or the transmission link switching of the OLP1 is determined according to the comparison result, if the signal is caused by the transmission link switching of the OLP1, the OLP2 does not need to control the transmission link, and if the signal is not caused by the transmission link switching of the OLP1, the transmission link switching of the OLP2 is needed to ensure the normal transmission of the optical signal between the OLPs of the respective stages. Thereby avoiding invalid handover of OLP 2. In addition, in order to improve the accuracy, in the embodiment of the present application, time information of the measurement signal is specified, and whether to determine the switching of the transmission link is performed based on the judgment results of the magnitude of the optical signal measured in the specified time period and the respective threshold values, so that the switching condition is tighter, and the occurrence of invalid switching can be effectively avoided.
In the above embodiment, the description is made based on the determination result of the optical signal received by R1 after the time (Ti + t0+ tb). To ensure accuracy, the optical signal received at R2 may also be measured after time (Ti + t0+ tb). And the magnitude relation between the measurement result of the R2 and the third threshold value is combined to carry out whether the transmission link is switched. Specifically, if the optical signal received by the R1 measured after the time (Ti + t0+ tb) is equal to or greater than the second threshold, the transmission link of the OLP2 is not switched, and the transmission of the optical signal is still maintained in the active link. And controlling the OLP2 to be transmitted from the active link to the standby link if the optical signal received by the R1 measured after the time (Ti + t0+ tb) is less than the second threshold and the optical signal received by the R2 is equal to or greater than the third threshold.
If the optical signal received at R1 measured after time (Ti + t0+ tb) is less than the second threshold and the optical signal received at R2 is less than the third threshold, then transmission of the optical signal on the active link is still maintained. The third threshold may be regarded as a reasonable value of the optical signal received by R2 when the pre-measured R2 signal is not present or appears a small value from the beginning of the service interruption of the OLP1 to the optical signal appears and the optical signal appears stable, such as-3 dBm. The measurement of R1 and R2 may be performed simultaneously or not, and preferably performed simultaneously. The foregoing is equivalent to combining the judgment result of the optical signal received by R2 measured after the time (Ti + t0+ tb) and the corresponding threshold to determine whether to perform the transmission link switching, so that the switching condition is more strict, and the situation of a judgment error can be greatly avoided, and further it can be effectively identified whether the optical signal does not appear or a very small optical signal appears at the two input ends of the OLP2 in the time period from Ti to (t0-ta) is caused by the service interruption of the preceding stage OLP1, and further, the effective switching of the OLP2 can be realized, and the invalid switching is avoided.
It is to be understood that t0, ta, tb may be a numerical range, may be a specific numerical value, and is not particularly limited. In an alternative embodiment, the value ranges, e.g., t0 is 50ms (milliseconds), ta is 20ms, and tb is 8 ms. In order to accurately judge whether to perform switching of transmission links, the time for measuring the optical signals received by R1 and R2 is theoretically controlled between the first time and the second time, i.e., the time period when t0 and ta are not overlapped. Furthermore, in order to determine whether the main road can resume normal operation, at least the point in time of the remeasurement of R1 needs to occur after a third time, i.e., after a time period tb; therefore, whether the optical signals do not appear or the small optical signals appear in the R1 and the R2 between the first time and the second time is caused by service interruption of the front-stage OLP1 or failure of the input ends of the R1 and the R2 can be greatly identified, and effective switching of the OLP2 transmission link can be realized, so that ineffective switching is avoided.
It can be understood that the first threshold, the second threshold, and the third threshold are absolute thresholds, and determining whether to switch the OLP2 from the active link to the standby link according to the first threshold, the second threshold, and the third threshold is a switching manner based on absolute thresholds. In an optional embodiment, the first threshold, the second threshold, and the third threshold may also be based on a relative threshold switching manner, and it is determined whether the OLP2 is switched from the active link to the standby link according to the first threshold, the second threshold, and the third threshold, in this manner, the first threshold, the second threshold, and the third threshold may be selected within a suitable range of values, and the unit is dB. The switching mode of the absolute threshold is specifically that a signal value of the first signal and a signal value of the second signal are compared with respective set thresholds to obtain a judgment result, and whether to execute switching from the first transmission link to the second transmission link is determined; the relative threshold mode is that the difference value of the signal value of the first signal and the signal value of the second signal is compared with a plurality of set thresholds to obtain a judgment result, and whether the switching from the first transmission link to the second transmission link is executed or not is determined.
It can be understood that, in the foregoing solution, the optical signal received by R1 is an active service optical signal, the optical signal received by R2 is a standby service optical signal, the first transmission link is an active link, and the second transmission link is a standby link, which are taken as examples for explanation, and in addition, the following may be defined in advance: the optical signal received by R2 is a main service optical signal, the optical signal received by R1 is a standby service optical signal, the second transmission link is a main link, and the first transmission link is a standby link. Those skilled in the art should understand that any reasonable variation and modification are within the protection scope of the embodiments of the present application.
It should be understood by those skilled in the art that, theoretically, each OLP connected in a cascade manner may use the switching method in the embodiment of the present application to avoid invalid switching of the OLPs. In practical application, for the first OLP connected in the cascade manner, since no other OLP is connected to the first OLP at the previous stage, the invalid handover is naturally not generated, and the generation of the invalid handover is naturally not required to be avoided.
As shown in fig. 6, the apparatus for switching an OLP transmission link according to an embodiment of the present invention further includes: a first obtaining module 61, a second obtaining module 62, a third obtaining module 63 and a determining module 64; the OLP comprises a first input 61a for receiving a first signal and a second input 61b for receiving a second signal; wherein the content of the first and second substances,
the first obtaining module 61 is configured to obtain first time information that signal values of the first signal and the second signal are both smaller than respective first threshold values;
the second obtaining module 62 is configured to obtain a first signal value of the first signal and a second signal value of the second signal from the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal; and
the third obtaining module 63 is configured to obtain at least a third signal value of the first signal after a third time, where the third time is time information that a value of the first signal reaches a second threshold after the second 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 signal value, the second signal value and the third signal value.
In the foregoing solution, the determining module 64 is configured to:
judging the magnitude relation between the first signal value and the second signal value and respective first threshold values to obtain a first judgment result; and
judging the magnitude relation between the third signal value and the second threshold value to obtain a second judgment result;
and 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.
In the foregoing solution, the determining module 64 is further configured to:
controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second determination result indicates that the third signal value is greater than or equal to the second threshold;
and controlling the OLP to be switched from the first transmission link to the second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold.
In an optional scheme, a third signal value of the first signal obtained after the third time is smaller than the second threshold, and there is a lower possibility that the second transmission link fails, when the cascade OLP is switched, the cascade OLP is switched from the first transmission link to the failed second transmission link, and to ensure that the invalid switching does not occur, the apparatus further includes:
a fourth obtaining module, configured to obtain a fourth signal value of the second signal after a third time;
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 determination result, the second determination result, and the third determination result.
In an optional aspect, the determining module 64 is further configured to:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is greater than or equal to the second threshold, and the third determination result indicates that the fourth signal value is smaller than a third threshold.
In an optional aspect, the determining module 64 is further configured to:
and controlling the OLP to be switched from the first transmission link to a second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second judgment result indicates that the third signal value is smaller than the second threshold, and the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold.
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 switching device of the OLP transmission link may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), a Micro Control Unit (MCU), or a Programmable Gate Array (FPGA) in the OLP in practical application.
It should be noted that, in the switching device of the OLP transmission link according to the embodiment of the present application, because the principle of solving the problem of the switching device of the OLP transmission link is similar to the aforementioned switching method of the OLP transmission link, the implementation process and the implementation principle of the switching device of the OLP transmission link can be referred to the implementation process and the implementation principle description of the aforementioned switching method of the OLP transmission link, and repeated parts are not described again.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is configured to, when executed by a processor, perform at least the steps of the method shown in any one of fig. 2 to 6. The computer readable storage medium may be specifically a memory.
The embodiment of the invention also provides an OLP. Fig. 7 is a schematic diagram of a hardware structure of an OLP according to an embodiment of the present invention, and as shown in fig. 7, the OLP includes: a communication component 73 for data transmission, at least one processor 71 and a memory 72 for storing computer programs capable of running on the processor 71. The various components in the terminal are coupled together by a bus system 74. It will be appreciated that the bus system 74 is used to enable communications among the components of the connection. The bus system 74 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 74 in fig. 7.
Wherein the processor 71 executes the computer program to perform at least the steps of the method of any of fig. 2 to 6.
It will be appreciated that the memory 72 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 72 described in embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiments 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 having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 71. The processor 71 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 71 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 72, and the processor 71 reads the information in the memory 72 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the switching Device of the OLP transmission link may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, MCUs, microprocessors (microprocessors), or other electronic components, for executing the aforementioned switching method of the OLP transmission link.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A method for switching an OLP transmission link is characterized by comprising the following steps: for at least one OLP of at least two OLPs connected in a cascaded manner, the at least one OLP comprising a first input for receiving a first signal and a second input for receiving a second signal;
obtaining first time information that the signal values of the first signal and the second signal are smaller than respective first threshold values;
obtaining a first signal value of the first signal and a second signal value of the second signal within the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal;
obtaining at least a third signal value of the first signal after a third time, wherein the third time is time information that a value of the first signal reaches a second threshold value from a first threshold value set for the first signal after the second time;
judging the magnitude relation between the first signal value and the second signal value and respective first threshold values to obtain a first judgment result; and
judging the magnitude relation between the third signal value and the second threshold value to obtain a second judgment result;
and 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.
2. The method of claim 1, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result comprises:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second determination result indicates that the third signal value is greater than or equal to the second threshold.
3. The method of claim 1, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result comprises:
and controlling the OLP to be switched from the first transmission link to the second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, and the second judgment result indicates that the third signal value is smaller than the second threshold.
4. The method according to any one of claims 1 to 3, further comprising:
obtaining a fourth signal value of the second signal after a third time;
judging the magnitude relation between the fourth signal value and the third threshold value to obtain a third judgment result;
correspondingly, the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result and the second determination result includes:
and 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.
5. The method of claim 4, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result, the second determination result and the third determination result comprises:
and controlling the OLP to be maintained in the first transmission link when the first determination result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second determination result indicates that the third signal value is smaller than the second threshold, and the third determination result indicates that the fourth signal value is smaller than a third threshold.
6. The method of claim 4, wherein the determining whether to switch the OLP from the first transmission link to the second transmission link according to the first determination result, the second determination result and the third determination result comprises:
and controlling the OLP to be switched from the first transmission link to a second transmission link when the first judgment result indicates that the first signal value and the second signal value are both smaller than respective first thresholds, the second judgment result indicates that the third signal value is smaller than the second threshold, and the third judgment result indicates that the fourth signal value is greater than or equal to a third threshold.
7. An apparatus for switching an OLP transmission link, the apparatus comprising: the device comprises a first acquisition module, a second acquisition module, a third acquisition module and a determination module; the OLP comprises a first input for receiving a first signal and a second input for receiving a second signal; wherein the content of the first and second substances,
the first obtaining module is configured to obtain first time information that signal values of the first signal and the second signal are both smaller than respective first threshold values;
the second obtaining module is configured to obtain a first signal value of the first signal and a second signal value of the second signal from the first time to a second time; wherein the second time is a time at which a signal value of the second signal received by the second input terminal reaches a first threshold value set for the second signal;
the third obtaining module is configured to obtain at least a third signal value of the first signal after a third time, where the third time is time information that a value of the first signal reaches a second threshold from a first threshold set for the first signal after the second time;
the determining module is configured to determine a magnitude relationship between the first signal value and the second signal value and respective first threshold values, so as to obtain a first determination result; judging the magnitude relation between the third signal value and the second threshold value to obtain a second judgment result; and 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.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
9. An OLP comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any of claims 1 to 6 when executing the program.
CN201911118504.2A 2019-11-15 2019-11-15 OLP transmission link switching method and device, storage medium and OLP Active CN110995336B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911118504.2A CN110995336B (en) 2019-11-15 2019-11-15 OLP transmission link switching method and device, storage medium and OLP
PCT/CN2019/124924 WO2021093072A1 (en) 2019-11-15 2019-12-12 Switching method and apparatus of olp transmission link, storage medium and olp

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN110995336A CN110995336A (en) 2020-04-10
CN110995336B true CN110995336B (en) 2021-05-11

Family

ID=70084313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911118504.2A Active CN110995336B (en) 2019-11-15 2019-11-15 OLP transmission link switching method and device, 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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2688230A4 (en) * 2011-06-21 2014-05-07 Huawei Tech Co Ltd Optical line transmission protection system and method
CN206323137U (en) * 2016-11-25 2017-07-11 广东电网有限责任公司湛江供电局 Circuit switching monitoring device and circuit switching system

Family Cites Families (23)

* 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
CN101931486B (en) * 2009-10-27 2014-12-31 武汉光迅科技股份有限公司 Optical fiber line warning door line protection method of wavelength division system
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
CN102064901B (en) * 2010-12-29 2013-10-02 烽火通信科技股份有限公司 Method for compensating asymmetric line delay caused by OLP (Optical Line Protection) switching
CN102136876B (en) * 2011-02-11 2014-12-31 华为技术有限公司 Light line protection acceleration circuit, light line 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
CA2941538C (en) * 2014-03-05 2017-09-19 Huawei Technologies Co., Ltd. Link switching method, device, and system
WO2015168892A1 (en) * 2014-05-08 2015-11-12 华为技术有限公司 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
CN105591688B (en) * 2015-12-23 2017-12-01 广东倍增通信设备有限公司 A kind of optical fiber switch protecting system suitable for optical fiber switch protecting equipment
CN105871455B (en) * 2016-05-31 2018-08-28 国网新疆电力公司阿勒泰供电公司 The EDFA devices of band OSC amplifications for optical link protecting system
US10476587B2 (en) * 2016-05-31 2019-11-12 Alibaba Group Holding Limited System and method for enhancing reliability in a transport network
JP6796136B2 (en) * 2016-08-30 2020-12-02 ヌヴォトンテクノロジージャパン株式会社 Switching power supply and semiconductor device
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2688230A4 (en) * 2011-06-21 2014-05-07 Huawei Tech Co Ltd Optical line transmission protection system and method
CN206323137U (en) * 2016-11-25 2017-07-11 广东电网有限责任公司湛江供电局 Circuit switching monitoring device and circuit switching system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于选发选收方案的OLP系统的设计与实现;罗清, 胡强高, 喻杰奎, 施伟;《光通信研究》;20080610;全文 *
易琨,唐路,程娟,崔光宇,陈静;光纤自动切换保护系统的原理及保护方式浅析;《江西电力》;20190825;全文 *

Also Published As

Publication number Publication date
WO2021093072A1 (en) 2021-05-20
CN110995336A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
US20220400415A1 (en) Information reporting method, information receiving method, terminal and network device
CN108809617B (en) Time delay compensation method and terminal
US9013977B2 (en) Method and system for reducing traffic disturbance in a communication network caused by intermittent failure
CN110995336B (en) OLP transmission link switching method and device, storage medium and OLP
CN110708733A (en) Network connection control method and device, storage medium and electronic equipment
US9059899B2 (en) Method and system for interrupt throttling and prevention of frequent toggling of protection groups in a communication network
CN103916226A (en) Redundant backup method based on embedded equipment
CN102316038A (en) Method for determining hot backup main /standby switching time, apparatus and system thereof
CN104994173A (en) Message processing method and system
CN114095462B (en) Fault-tolerant method and system for SRIO communication system of radar processor
CN108599984B (en) Method for sharing port state, access equipment and system for supporting dual-homing protection
CN112817368B (en) Chip synchronization method and related device
US20220006722A1 (en) Transmission apparatus, transmission system and delay adjustment method
CN103378902B (en) The main/standby switching method of OLT system and OLT system
EP3726678B1 (en) Handling of lost time synchronization in a substation network
CN113315587A (en) Radio frequency link working state detection method, related detection device and system
JPH1041865A (en) Diversity receiving device
US11876192B2 (en) Assembled battery monitoring apparatus
CN113206710B (en) Power detection circuit, method and equipment of WLAN (Wireless local area network) equipment
CN114629088A (en) Power-loss protection method and system for line protection direct current screen
CN116742596A (en) Distributed feeder automatic protection method, distribution terminal, system and storage medium
CN114189647A (en) Terminal private line switching method, device, equipment and system
JPS5837743B2 (en) Automatic transmission line switching method
CN114189277A (en) Channel switching method based on channel quality
CN103684834A (en) Single board switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant