CN117880666A - Method and device for realizing Link Up Delay of optical module - Google Patents

Method and device for realizing Link Up Delay of optical module Download PDF

Info

Publication number
CN117880666A
CN117880666A CN202410006040.0A CN202410006040A CN117880666A CN 117880666 A CN117880666 A CN 117880666A CN 202410006040 A CN202410006040 A CN 202410006040A CN 117880666 A CN117880666 A CN 117880666A
Authority
CN
China
Prior art keywords
switch
alarm
optical module
duration
issuing
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.)
Pending
Application number
CN202410006040.0A
Other languages
Chinese (zh)
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 CN202410006040.0A priority Critical patent/CN117880666A/en
Publication of CN117880666A publication Critical patent/CN117880666A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and a device for realizing Link Up Delay of an optical module, wherein after a switch is butted with the optical module, the optical module frequently issues an alarm to the switch, after the duration of the issued continuous alarm exceeds a certain duration, the optical module issues the alarm too frequently, so as to avoid frequent interruption and recovery of a service path of the switch caused by repeated issuing of the subsequent alarm, when the continuous alarm is temporarily ended, the service path is actively interrupted for a preset duration, and after the preset duration of the service path interruption, whether the frequent issuing of the continuous alarm is ended is judged according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path, thereby recovering or continuing to interrupt the service path until the most frequent stage of issuing the alarm is spent, and avoiding the occurrence of abnormality of the switch caused by frequent interruption and recovery of the service path.

Description

Method and device for realizing Link Up Delay of optical module
Technical Field
The invention relates to the technical field of communication management of switches, in particular to a method and a device for realizing Link Up Delay of an optical module.
Background
In the prior art, when the switch and the optical module are initially connected, a large number of alarms usually appear in a certain time, and most of the alarms are issued to the switch by the optical module, and the optical module automatically issues local faults (local fault) to the switch when issuing alarms to the switch, so that a service path in the switch is interrupted, and the problem that the service path is still executed in the alarm process, thereby causing service errors is avoided. When the optical module does not send an alarm to the switch, the optical module automatically sends an idle sequence frame (idle) to the switch to restore a service path in the switch; repeated occurrence of a large amount of alarms within a certain time can lead to repeated interruption and restoration of a service path in the switch, on one hand, the total interruption time and restoration time of the service are longer, and on the other hand, frequent interruption and restoration of the service path easily lead to abnormality of the switch.
In view of this, overcoming the drawbacks of the prior art is a problem to be solved in the art.
Disclosure of Invention
The invention aims to solve the technical problem of how to avoid the abnormal occurrence of the switch caused by frequent interruption and recovery of a service path due to the alarm when the optical module frequently gives the alarm to the switch.
In a first aspect, a method for implementing Link Up Delay of an optical module is provided, a switch receives continuous alarms issued by the optical module, a service path of the switch is automatically interrupted, and a circulation period is entered when the duration of the continuous alarms is greater than or equal to a first preset duration; in each cycle period, the Link Up Delay implementation method comprises the following steps:
when the continuous alarm is finished, the optical module actively interrupts the service path of the switch;
when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path.
Preferably, the switch receives the continuous alarm issued by the optical module, and the service path of the switch is automatically interrupted, which specifically includes:
when the switch does not receive the alarm from the optical module, the optical module automatically transmits an idle to the switch, and the service paths in the switch are communicated;
when the switch receives one or more alarms from the LOS, LOCK and LOF of the optical module, the optical module automatically issues a local fault to the switch to interrupt the service path in the switch.
Preferably, when the continuous alarm is finished, the optical module actively interrupts the service path of the switch, which specifically includes:
when the switch stops receiving the continuous alarm of the optical module, the optical module forcibly issues a local fault to the switch, and the service path in the switch is prevented from being recovered.
Preferably, when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the duration of the no alarm during the active interruption of the service path, including:
when the active interruption time length of the service path is greater than or equal to the preset interruption time length, judging whether continuous alarms exist currently;
when continuous alarms exist, the optical module stops forcibly issuing the local fault to the switch, and is converted into automatically issuing the local fault to the switch, and the next round of cycle period is entered;
and when no continuous alarm exists, the optical module stops forcibly issuing the local fault to the switch, and is converted into the optical module to automatically issue the idle to the switch, and the circulation period is ended.
Preferably, when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the duration of the no alarm during the active interruption of the service path, including:
Counting the alarm-free time length in the process of actively interrupting the service path;
judging whether the alarm-free duration is greater than or equal to the preset interrupt duration;
when the alarm-free time length is greater than or equal to the preset interrupt time length, the optical module stops forcibly issuing the local fault to the switch, and the optical module is converted into automatically issuing an idle to the switch, so that the cycle period is ended;
and when the alarm-free duration is smaller than the preset interrupt duration, judging whether to enter the next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module at the current time and/or the subsequent time.
Preferably, when the alarm-free duration is less than the preset interrupt duration, determining whether to enter a next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module at the current time and/or the subsequent time, including:
when the current switch receives the alarm of the optical module, the module stops forcibly issuing the local fault to the switch, and the module is converted into the optical module to automatically issue the local fault to the switch and enter the next round of circulation period;
when the current switch does not receive the alarm of the optical module, the optical module continuously and forcedly issues the local fault to the switch within at most a second preset time period, and whether to enter the next cycle period or end the cycle period is judged according to whether the switch receives the alarm of the optical module within the second preset time period.
Preferably, when the current switch does not receive the alarm of the optical module, the optical module continuously issues the local fault to the switch in a forced manner within a second preset time period at most, and judges whether to enter a next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module within the second preset time period, which specifically includes:
when the switch receives the alarm of the optical module within the second preset time length, the optical module stops forcibly issuing the local fault to the switch when the switch receives the alarm of the optical module, and the switch is converted into automatically issuing the local fault to the switch, and the next round of circulation period is entered;
and when the switch does not receive the alarm of the optical module within the second preset time period, the optical module stops forcibly issuing the local fault to the switch, and the optical module is converted into automatically issuing an idle to the switch, so that the cycle period is ended.
In a second aspect, a device for implementing Link Up Delay of an optical module is used to apply a method for implementing Link Up Delay of the optical module, including: an active issuing module 1 and an automatic issuing module 2, wherein:
the switch is in butt joint with the optical module, the switch receives continuous alarms issued by the optical module, the automatic issuing module 2 is used for automatically issuing local fault to the switch when the optical module issues the continuous alarms to the switch, and the service path of the switch is automatically interrupted; the automatic issuing module 2 is further configured to automatically issue an idle to the switch when the optical module stops issuing the continuous alarm to the switch, and a service path of the switch is automatically recovered;
When the duration of the continuous alarm is greater than or equal to the first preset duration, entering a circulation period, wherein each circulation period is as follows:
when the continuous alarm is finished, the active issuing module 1 is used for forcibly issuing a local fault to the switch and actively interrupting the service path of the switch;
when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path.
Preferably, the device for implementing Link Up Delay of the optical module further includes: a device activation module 3, wherein:
the automatic issuing module 2 is configured to activate the active issuing module 1 when the duration of the continuous alarm is greater than or equal to a first preset duration.
Preferably, the device for implementing Link Up Delay of the optical module further includes: a timer module 4, wherein:
the timer module 4 is configured to time a duration of continuous alarm and a duration of no alarm, and the active issuing module 1 issues a local fault according to the duration of continuous alarm and/or the duration of no alarm, so as to actively interrupt a service path of the switch.
The invention provides a method and a device for realizing Link Up Delay of an optical module, wherein after a switch is butted with the optical module, the optical module frequently issues an alarm to the switch, after the duration of the issued continuous alarm exceeds a certain duration, the optical module issues the alarm too frequently, so as to avoid frequent interruption and recovery of a service path of the switch caused by repeated issuing of the subsequent alarm, when the continuous alarm is temporarily ended, the service path is actively interrupted for a preset duration, and after the preset duration of the service path interruption, whether the frequent issuing of the continuous alarm is ended is judged according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path, thereby recovering or continuing to interrupt the service path, and further passing the most frequent stage of the issuing of the alarm, and avoiding the occurrence of abnormality of the switch caused by frequent interruption and recovery of the service path.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are required to be used in the embodiments of the present invention will be briefly described below. It is evident that the drawings described below are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a method flowchart of a method for implementing Link Up Delay of an optical module according to an embodiment of the present invention;
fig. 2 is an application scenario block diagram of a method for implementing Link Up Delay of an optical module according to an embodiment of the present invention;
fig. 3 is a method flowchart of one implementation method of a Link Up Delay implementation method of an optical module according to an embodiment of the present invention;
FIG. 4 is a method flowchart of another implementation method of the Link Up Delay implementation method of an optical module according to an embodiment of the present invention;
fig. 5 is a device block diagram of a device for implementing Link Up Delay of an optical module according to an embodiment of the present invention;
wherein, the reference numerals are as follows:
an active issuing module 1; an automatic issuing module 2; a device activation module 3; a timer module 4.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the description of the present invention, the terms "inner", "outer", "longitudinal", "transverse", "upper", "lower", "top", "bottom", etc. refer to an orientation or positional relationship based on that shown in the drawings, merely for convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
The terms "first," "second," and the like herein are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", etc. may explicitly or implicitly include one or more such feature. In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the present invention, unless explicitly specified and limited otherwise, the term "connected" is to be construed broadly, and for example, "connected" may be either fixedly connected, detachably connected, or integrally formed; can be directly connected or indirectly connected through an intermediate medium. Furthermore, the term "coupled" may be a means of electrical connection for achieving signal transmission.
In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
Example 1:
the embodiment of the invention provides a method for realizing Link Up Delay of an optical module, as shown in FIG. 1, the method comprises the following steps:
in step 101, the switch receives a continuous alarm issued by the optical module, and the service path of the switch is automatically interrupted, and when the duration of the continuous alarm is greater than or equal to a first preset duration, a cycle period is entered.
In this embodiment, when the switch and the optical module are initially docked, a large number of alarms usually occur within a certain time, and most of the alarms are issued to the switch by the optical module, and when the optical module issues the alarms to the switch, the optical module automatically issues a local fault (local fault) to the switch to interrupt a service path in the switch, so as to avoid that the service path is still executed in the alarm process, resulting in service errors, and when the optical module does not issue the alarms to the switch, the optical module automatically issues an idle to the switch to restore the service path in the switch; the frequent repeated occurrence of a large number of alarms within a certain time can lead to repeated interruption and restoration of the service paths in the switch, which can be called as an alarm storm in the embodiment, wherein the alarm storm leads to the total interruption time and the longer restoration time of the service on one hand, and the frequent interruption and restoration of the service paths easily leads to the occurrence of abnormality of the switch on the other hand.
In this embodiment, the continuous alarms may refer to a large number of continuous alarms without intervals therebetween, and in the duration of a single continuous alarm, the switch continuously receives the alarms from the optical module, and in the duration of a single continuous alarm, the switch automatically and continuously interrupts; one or more continuous alarms and/or one or more alarms may be included in the alarm storm, and a certain time interval may exist between different continuous alarms and/or alarms, so that during the duration of the alarm storm, the service path in the switch is repeatedly interrupted and restored.
Note that in this embodiment, the local fault or idle is automatically issued to the switch as follows: taking whether the switch receives the alarm as a judging standard, when the switch receives the alarm, issuing a local fault to the switch, and when the switch does not receive the alarm, issuing an idle to the switch; the local fault refers to the switch by force: irrespective of whether the switch receives the alarm or not, link Up Delay according to this embodiment issues a local fault to the switch.
In this embodiment, when the optical module issues an alarm to the switch, the timer is started, the duration of the continuous alarm is counted by the timer, when the duration of the continuous alarm exceeds the first preset duration, the alarm storm can be regarded as occurring, the occurrence frequency of the alarm is too high, and at this time, frequent interruption and recovery of the service path due to the alarm need to be avoided, so that a subsequent cycle period is entered to avoid frequent interruption and recovery of the service path due to the continuous alarm. In this embodiment, the first preset duration is set by a person skilled in the art according to the actual situation, and the first preset duration may be 200ms.
In the application scenario in this embodiment, as shown in fig. 2, the switch a is connected with an optical module in the downlink control information (Downlink Control Information, abbreviated as DCI) electrical layer board a, and then the optical module in the DCI electrical layer board B at the opposite end and the switch B at the opposite end are connected in sequence to perform signal transmission by an optical fiber line automatic switching protection device (Optical Fiber Line Auto Switch Protection Equipment, abbreviated as OLP) a protection line and an optical fiber line automatic switching protection device B at the opposite end; when the switch a is in butt joint with an optical module in the DCI electrical layer board a, and when the switch B is in butt joint with an optical module in the DCI electrical layer board B, a large number of alarms are easy to be frequently generated.
In this embodiment, the alarms may be Loss Of Signal (LOS), LOCK, and frame Loss (LOS Of Fas, LOF).
In each cycle, the following steps are performed:
in step 102, when the continuous alarm is over, the optical module actively interrupts the service path of the switch.
It should be noted that the end of the continuous alarm refers to the end of the duration of a single continuous alarm in the alarm storm, the alarm storm may not end, other alarms or continuous alarms may be sent out in a short time, and the active interruption of the service path of the switch is to actively pass the duration of the alarm storm which may not end.
In this embodiment, when the optical module issues an alarm to the switch, the service path in the switch will be automatically interrupted, and when the continuous alarm continues for a first preset duration, the alarm issue is too frequent at this time, that is, the continuous alarm is interrupted in a short time, and the alarm will still occur frequently in a high probability later.
It should be noted that, in the issue of local fault, the difference between this embodiment and the prior art is that: in the prior art, only when an optical module sends an alarm to an exchanger, a local fault is automatically issued, the service path of the exchanger is interrupted, when the exchanger does not receive the alarm, an idle is automatically issued, the service path of the exchanger is communicated, and when an alarm storm occurs, the method can cause frequent interruption and communication of the service path; in this embodiment, after the alarm storm occurs through the continuous alarm judgment, when the continuous alarm stops, the original service path is returned to be connected, but in this embodiment, local fault is forcedly issued to the switch, so that the interruption of the service path is still maintained under the condition that the alarm is not received currently, and the interruption is continued for a period of time, and the alarm storm is avoided to the greatest extent in this state, so that frequent interruption and restoration of the service path are avoided.
In step 103, when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, whether to enter the next cycle period or end the cycle period is determined according to the existence of the current continuous alarm and/or the duration of the no alarm during the active interruption of the service path.
Further, after the service path of the switch is actively interrupted for a preset interruption time period, whether the frequent issuing of the continuous alarm is finished needs to be judged, so that whether the frequent issuing of the continuous alarm is finished or not needs to be judged according to the issuing condition of the alarm after the preset interruption time period and/or the alarm issuing condition during the active interruption of the service path, if the frequent issuing of the continuous alarm is finished, the cycle can be finished, normal service work between the switch and the optical module is performed, and if the frequent issuing of the continuous alarm is not finished, the cycle needs to be repeated until the frequent issuing of the continuous alarm is finished. In this embodiment, the preset interrupt duration is set by those skilled in the art according to the actual situation.
In this embodiment, after the switch is butted with the optical module, the optical module frequently issues an alarm to the switch, and after the duration of the issued continuous alarm exceeds a certain period, the optical module issues the alarm too frequently at this time, so as to avoid the repeated issuing of the subsequent alarm, which results in frequent interruption and restoration of the service path of the switch, so that when the continuous alarm is temporarily ended, the service path is actively interrupted for a preset period of time, and after the preset period of time of the service path interruption, whether the frequent issuing of the continuous alarm has ended is determined according to the presence or absence of the current continuous alarm and/or the alarm-free period of time during the active interruption of the service path, thereby restoring or continuing to interrupt the service path, so as to avoid the occurrence of abnormality of the switch due to frequent interruption and restoration of the service path.
In this embodiment, after the service path is actively interrupted for a preset interruption time, whether the frequent issuing of the continuous alarm is finished is judged by detecting whether the switch receives the alarm at this time, so the present embodiment further relates to the following design:
when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the duration of the no alarm during the active interruption of the service path, wherein the method specifically comprises the following steps:
as shown in fig. 3, the method flow includes:
in step 201, when the active interruption time length of the service path is greater than or equal to the preset interruption time length, it is determined whether a continuous alarm exists currently.
In step 202, when there is a continuous alarm, the optical module stops forcibly issuing the local fault to the switch, and changes to automatically issue the local fault to the switch, and enters the next round of cycle.
In step 203, when there is no continuous alarm, the optical module stops to send out the local fault to the switch, and changes to the optical module to send out the idle to the switch automatically, and ends the cycle period.
In this embodiment, the optical module forcibly issues a local fault to the switch, actively interrupts a service path of the switch, then, clocks the switch by using a timer, detects the duration of actively interrupting the service path, and when the timing duration of the timer is greater than or equal to the preset interrupt duration, determines whether the switch still receives an alarm from the optical module at this time.
If the alarm still exists, the frequent issuing of the alarm is not finished, but because the alarm exists at the moment, the service path is interrupted due to the alarm, so that the active interruption of the service path is stopped at the moment, the automatic interruption of the service path by the alarm is received instead, and the previous period is repeated until the frequent issuing of the alarm is finished.
If no alarm exists, the frequent issuing of the alarm is finished, so that the active interruption of the service path is stopped at the moment, and the following steps are changed: when no alarm is sent, the optical module automatically sends down the idle to the switch to ensure the communication of the service paths, when the alarm is sent, the optical module automatically sends down the local fault to the switch to ensure the interruption of the service, and the cycle period is ended to realize the normalization of the subsequent service paths.
Note that in this embodiment, the local fault or idle is automatically issued to the switch as follows: taking whether the switch receives the alarm as a judging standard, when the switch receives the alarm, issuing a local fault to the switch, and when the switch does not receive the alarm, issuing an idle to the switch; the local fault refers to the switch by force: irrespective of whether the switch receives the alarm or not, link Up Delay according to this embodiment issues a local fault to the switch.
In order to more clearly demonstrate the method of the present embodiment, the following actual scenario examples are performed:
in an actual scenario, the first preset duration is 200ms, and the preset interrupt duration is 20s.
When the timer monitors that the continuous alarm time length received by the switch is 300ms and is greater than 200ms of the first preset time length, the timer judges that the alarm is frequently issued and activates Link Up Delay.
When the continuous alarm is finished, the local fault is forcibly issued, the service path in the switch is interrupted, and the interruption duration is continuously preset for 20s.
When the preset interrupt duration is over, judging whether an alarm is issued currently, and when the alarm is not issued, stopping compulsory issuing local fault, and judging that the frequent issuing of the alarm is over; when the alarm is issued, stopping forcibly issuing the local fault, converting into automatically issuing the local fault, and entering the next round of circulation period until the alarm is frequently issued.
Example 2:
embodiment 2 of the present invention provides another implementation method of Link Up Delay of an optical module based on embodiment 1, and compared with the scene considered in embodiment 1, the difference of this embodiment 2 is that:
in embodiment 1, after frequent issuing of an alarm occurs, actively interrupting a service path for a preset interrupt duration, and judging whether the frequent issuing of the alarm is finished by whether the alarm exists currently after the preset interrupt duration; in the existing scene of the butt joint of the switch and the optical module, the time length for frequently issuing the alarm is not long, so that the preset interrupt time length is set to be larger under most conditions, and the preset interrupt time length can be enabled to exceed the time period for frequently issuing the alarm.
However, there may be some extreme cases, in the preset interrupt duration of the active interrupt service path, there may still be an alarm to be issued most of the time, but only when no alarm appears at a time point near the end of the preset interrupt duration, the alarm is frequently issued and not ended, but in the above method, since no alarm is received at the end of the preset interrupt duration, the alarm is judged to be frequently issued and ended, so as to stop Link Up Delay, but in fact, the alarm is frequently issued and not ended, and the switch may still be alerted in a short time, so that the method in embodiment 1 has a risk of misjudgment in some extreme cases, and therefore the present embodiment provides the following preferred design, as shown in fig. 4, the method flow is as follows:
when the active interruption time length of the service path is greater than or equal to the preset interruption time length, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the alarm-free time length during the active interruption of the service path, wherein the method specifically comprises the following steps:
in step 301, in the process of actively interrupting the service path, the duration without alarm is counted.
The optical module forcibly issues a local fault to the switch and continuously presets the interrupt duration, monitors the received alarm during the period, and clocks the total duration of the switch without the alarm by a timer to obtain the duration without the alarm.
In step 302, it is determined whether the alarm-free duration is greater than or equal to the preset interrupt duration.
When the duration of the active interruption of the service path reaches the preset interruption duration, obtaining the alarm-free duration according to a timer; when the alarm-free time length is greater than or equal to the preset interrupt time length, namely the switch does not receive the alarm from the optical module within the preset interrupt time length; and when the alarm-free time is smaller than the preset interrupt time, namely the switch receives the alarm from the optical module within the preset interrupt time.
In step 303, when the alarm-free time period is longer than or equal to the preset interrupt time period, the optical module stops forcibly issuing the local fault to the switch, and turns into automatic issuing of the idle to the switch by the optical module, and ends the cycle period.
When the switch does not receive the alarm from the optical module within the preset interrupt duration, the frequent issuing of the alarm can be considered to be finished, so that the local fault is not required to be issued forcefully, and the switch is restored to automatically respond to the interrupt and communication service paths according to whether the alarm is received or not.
In step 304, when the alarm-free duration is less than the preset interrupt duration, it is determined whether to enter the next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module at the current time and/or the subsequent time.
When the switch receives the alarm from the optical module within the preset interrupt duration, the risk that the alarm is frequently issued and not ended still exists at the moment, namely the phenomenon of frequently issued alarm still possibly occurs in the follow-up process, the frequent issue of the alarm is also possibly ended, at the moment, the current time point of ending the preset interrupt duration needs to be directly judged, whether the switch receives the alarm from the optical module or not is needed, if the alarm is received, the frequent issue of the alarm can be directly judged to be not ended yet, and if the alarm is not received, the condition that the switch receives the alarm within a certain time is needed to be acquired to judge whether the frequent issue of the alarm is ended or not, and the embodiment also relates to the following flow design:
when the alarm-free duration is smaller than the preset interrupt duration, judging whether to enter a next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module at the current time and/or the subsequent time, wherein the method specifically comprises the following steps:
in step 305, when the current switch receives the alarm of the optical module, the module stops forcibly issuing the local fault to the switch, and changes to automatically issue the local fault to the switch by the optical module, and enters the next round of cycle.
At the current time point when the preset interrupt duration is ended, when the switch receives the alarm of the optical module, the switch can directly judge that the frequent issuing of the alarm is not ended yet, so that the switch is restored to be automatically issued with the local fault by the alarm, and the next round of circulation period is started until the frequent issuing of the alarm is ended.
In step 306, when the current switch does not receive the alarm of the optical module, the optical module continuously issues a local fault to the switch in a second preset time duration at most, and determines whether to enter the next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module in the second preset time duration.
At the current time point when the preset interruption duration is finished, if the switch does not receive the alarm of the optical module at the moment, the phenomenon that the alarm is frequently issued still possibly occurs later, and the alarm is also likely to be frequently issued and finished; therefore, in this embodiment, whether the switch receives the alarm of the optical module in a certain time is monitored, when the switch still receives the alarm of the optical module in a certain time, it can be judged that the frequent issuing of the alarm has not been completed, the next cycle period is required, and when the switch does not receive the alarm of the optical module in a certain time, it can be judged that the frequent issuing of the alarm has been completed, and the cycle period can be completed; for the judgment processing method described above, the present embodiment provides the following preferred design:
When the current switch does not receive the alarm of the optical module, the optical module continuously and forcedly issues the local fault to the switch within a second preset time period at most, and judges whether to enter the next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module within the second preset time period, which specifically comprises:
in step 307, when the switch receives the alarm of the optical module within the second preset duration, the optical module stops forcibly issuing the local fault to the switch while the switch receives the alarm of the optical module, and changes to automatically issue the local fault to the switch, and enters the next round of cycle period.
In step 308, when the switch does not receive the alarm of the optical module within the second preset time period, the optical module stops forcibly issuing the local fault to the switch, and turns into the optical module to automatically issue the idle to the switch, and the cycle period is ended.
In this embodiment, the second preset time period is set by those skilled in the art according to the actual situation.
In order to more clearly demonstrate the method of the present embodiment, the following actual scenario examples are performed:
in an application scenario, the first preset duration is 200ms, the preset interrupt duration is 20s, and the second preset duration is 10s.
When the timer monitors that the continuous alarm time length received by the switch is 300ms and is greater than 200ms of the first preset time length, the timer judges that the alarm is frequently issued and activates Link Up Delay.
When the continuous alarm with the duration of 300ms is finished, the local fault is forcibly issued, the service path in the switch is interrupted, and the interruption duration is continuously preset for 20s.
When the preset interrupt duration is over, judging whether an alarm is issued currently or not:
when the alarm is issued, judging that the frequent issuing of the alarm is not finished, stopping forcibly issuing the local fault, converting into automatically issuing the local fault, and entering the next round of circulation period until the frequent issuing of the alarm is finished.
When no alarm is issued at this time, keeping the second preset duration of the forced issuing of the local fault to be 10s, and judging that the frequent issuing of the alarm is finished if no alarm is issued in the process; if the alarm is issued in the process, judging that the frequent issuing of the alarm is not finished, stopping forcibly issuing the local fault, converting into automatically issuing the local fault, and entering the next round of cycle period until the frequent issuing of the alarm is finished.
Example 3:
the embodiment 3 of the present invention provides a device for implementing Link Up Delay of an optical module based on the embodiments 1 and 2, which is used in the method for implementing Link Up Delay of an optical module described in the embodiments 1 and 2, where the device for implementing Link Up Delay is disposed in an optical module.
As shown in fig. 5, includes: an active issuing module 1 and an automatic issuing module 2, wherein:
the switch is in butt joint with the optical module, the switch receives continuous alarms issued by the optical module, the automatic issuing module 2 is used for automatically issuing local fault to the switch when the optical module issues the continuous alarms to the switch, and the service path of the switch is automatically interrupted; the automatic issuing module 2 is further configured to automatically issue an idle to the switch when the optical module stops issuing the continuous alarm to the switch, and a service path of the switch is automatically recovered.
And when the duration of the continuous alarm is greater than or equal to the first preset duration, entering a circulation period.
In this embodiment, when the switch and the optical module are initially docked, a large number of alarms usually occur within a certain time, and most of the alarms are issued to the switch by the optical module, and when the optical module issues the alarms to the switch, the automatic issuing module 2 automatically issues a local fault to interrupt a service path in the switch, so as to avoid that the service path is still executed in the alarm process, resulting in service errors, and when the optical module does not issue the alarms to the switch, the automatic issuing module 2 automatically issues an idle to restore the service path in the switch; repeated occurrence of a large number of alarms within a certain time can lead to repeated interruption and recovery of a service path in the switch, on one hand, the total interruption time and recovery time of the service are longer, and on the other hand, frequent interruption and recovery of the service path easily lead to abnormality of the switch; therefore, in order to avoid frequent interruption of the service path caused by continuous alarm when the switch is in butt joint with the optical module, in this embodiment, when the optical module issues an alarm to the switch, the timer is started, the duration of the continuous alarm is counted by the timer, when the duration of the continuous alarm exceeds the first preset duration, the alarm storm appears, at this time, the occurrence frequency of the alarm is too high, at this time, frequent interruption and recovery of the service path due to the alarm need to be avoided, and therefore, the subsequent cycle period is entered to avoid frequent interruption and recovery of the service path due to the continuous alarm. In this embodiment, the first preset duration is set by a person skilled in the art according to the actual situation, and the first preset duration may be 200ms.
In this embodiment, the alarms may be LOS, LOCK, and LOF.
In each cycle:
when the continuous alarm is finished, the active issuing module 1 is used for forcibly issuing a local fault to the switch and actively interrupting the service path of the switch.
In this embodiment, when the optical module issues an alarm to the switch, the service path in the switch will be automatically interrupted, and when the continuous alarm continues for the first preset duration, the alarm issue is too frequent at this time, that is, the alarm is frequently occurred after a large probability of being interrupted in a short time, so in order to avoid frequent interruption and restoration of the service path of the switch, in this embodiment, when the continuous alarm which continues for the first preset duration is ended, the active issue module 1 issues a local fault forcedly, preventing the restoration of the service path in the switch, and actively interrupting the service path of the switch for a certain duration, thereby spending the most frequent stage of the alarm issue and avoiding frequent interruption and restoration of the service path.
When the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path.
Further, after the service path of the switch is actively interrupted for a preset interruption time period, whether the frequent issuing of the continuous alarm is finished needs to be judged, so that whether the frequent issuing of the continuous alarm is finished is judged according to the condition below the alarm after the preset interruption time period and/or the alarm issuing condition during the service path is actively interrupted, if the frequent issuing of the continuous alarm is finished, the cycle can be ended, the operation of the continuous operation between the switch and the optical module is performed, and if the frequent issuing of the continuous alarm is not finished, the cycle needs to be repeated until the frequent issuing of the continuous alarm is finished. In this embodiment, the preset interrupt duration is set by those skilled in the art according to the actual situation.
As shown in fig. 5, the device for implementing Link Up Delay of the optical module further includes: a device activation module 3, wherein:
the automatic issuing module 2 is configured to activate the active issuing module 1 when the duration of the continuous alarm is greater than or equal to a first preset duration.
In this embodiment, the time unit of the device activation module 3 may be 10ms, and when the first preset duration needs to be set to 200ms, 20 may be set in the device activation module 3, and the first preset duration may be set to 200ms.
As shown in fig. 5, the device for implementing Link Up Delay of the optical module further includes: a timer module 4, wherein:
the timer module 4 is configured to time a duration of continuous alarm and a duration of no alarm, and the active issuing module 1 issues a local fault according to the duration of continuous alarm and/or the duration of no alarm, so as to actively interrupt a service path of the switch.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. A method for realizing Link Up Delay of an optical module is characterized in that a switch receives continuous alarms issued by the optical module, a service path of the switch is automatically interrupted, and a circulation period is entered when the duration of the continuous alarms is greater than or equal to a first preset duration; in each cycle period, the Link Up Delay implementation method comprises the following steps:
when the continuous alarm is finished, the optical module actively interrupts the service path of the switch;
when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path.
2. The method for implementing Link Up Delay of optical module according to claim 1, wherein the switch receives the continuous alarm issued by the optical module, and the service path of the switch is automatically interrupted, specifically comprising:
when the switch does not receive the alarm from the optical module, the optical module automatically transmits an idle to the switch, and the service paths in the switch are communicated;
when the switch receives one or more alarms from the LOS, LOCK and LOF of the optical module, the optical module automatically issues a local fault to the switch to interrupt the service path in the switch.
3. The method for implementing Link Up Delay of optical module according to claim 1, wherein when the continuous alarm is finished, the optical module actively interrupts the service path of the switch, specifically comprising:
when the switch stops receiving the continuous alarm of the optical module, the optical module forcibly issues a local fault to the switch, and the service path in the switch is prevented from being recovered.
4. The method for implementing Link Up Delay of an optical module according to claim 1, wherein when the duration of active interruption of a service path is greater than or equal to a preset interruption duration, determining whether to enter a next cycle period or end the cycle period according to the presence or absence of a current continuous alarm and/or the duration of no alarm during active interruption of the service path, includes:
When the active interruption time length of the service path is greater than or equal to the preset interruption time length, judging whether continuous alarms exist currently;
when continuous alarms exist, the optical module stops forcibly issuing the local fault to the switch, and is converted into automatically issuing the local fault to the switch, and the next round of cycle period is entered;
and when no continuous alarm exists, the optical module stops forcibly issuing the local fault to the switch, and is converted into the optical module to automatically issue the idle to the switch, and the circulation period is ended.
5. The method for implementing Link Up Delay of an optical module according to claim 1, wherein when the duration of active interruption of a service path is greater than or equal to a preset interruption duration, determining whether to enter a next cycle period or end the cycle period according to the presence or absence of a current continuous alarm and/or the duration of no alarm during active interruption of the service path, includes:
counting the alarm-free time length in the process of actively interrupting the service path;
judging whether the alarm-free duration is greater than or equal to the preset interrupt duration;
when the alarm-free time length is greater than or equal to the preset interrupt time length, the optical module stops forcibly issuing the local fault to the switch, and the optical module is converted into automatically issuing an idle to the switch, so that the cycle period is ended;
And when the alarm-free duration is smaller than the preset interrupt duration, judging whether to enter the next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module at the current time and/or the subsequent time.
6. The method for implementing Link Up Delay of optical module according to claim 5, wherein when the alarm-free duration is less than the preset interrupt duration, determining whether to enter a next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module at the current time and/or the subsequent time, specifically includes:
when the current switch receives the alarm of the optical module, the module stops forcibly issuing the local fault to the switch, and the module is converted into the optical module to automatically issue the local fault to the switch and enter the next round of circulation period;
when the current switch does not receive the alarm of the optical module, the optical module continuously and forcedly issues the local fault to the switch within at most a second preset time period, and whether to enter the next cycle period or end the cycle period is judged according to whether the switch receives the alarm of the optical module within the second preset time period.
7. The method for implementing Link Up Delay of optical module according to claim 6, wherein when the current switch does not receive the alarm of the optical module, the optical module continuously issues a local fault to the switch for at most a second preset duration, and judges whether to enter a next cycle period or end the cycle period according to whether the switch receives the alarm of the optical module for the second preset duration, which specifically includes:
When the switch receives the alarm of the optical module within the second preset time length, the optical module stops forcibly issuing the local fault to the switch when the switch receives the alarm of the optical module, and the switch is converted into automatically issuing the local fault to the switch, and the next round of circulation period is entered;
and when the switch does not receive the alarm of the optical module within the second preset time period, the optical module stops forcibly issuing the local fault to the switch, and the optical module is converted into automatically issuing an idle to the switch, so that the cycle period is ended.
8. A Link Up Delay realizing device of an optical module, configured to apply a method for realizing Link Up Delay of an optical module according to any one of claims 1-7, comprising: an active issuing module (1) and an automatic issuing module (2), wherein:
the switch is in butt joint with the optical module, the switch receives continuous alarms issued by the optical module, the automatic issuing module (2) is used for automatically issuing local fault to the switch when the optical module issues the continuous alarms to the switch, and the service path of the switch is automatically interrupted; the automatic issuing module (2) is further used for automatically issuing an idle to the switch when the optical module stops issuing continuous alarms to the switch, and the service path of the switch is automatically recovered;
When the duration of the continuous alarm is greater than or equal to the first preset duration, entering a circulation period, wherein each circulation period is as follows:
when the continuous alarm is finished, the active issuing module (1) is used for forcibly issuing a local fault to the switch and actively interrupting the service path of the switch;
when the duration of the active interruption of the service path is greater than or equal to the preset interruption duration, judging whether to enter the next cycle period or end the cycle period according to the existence of the current continuous alarm and/or the alarm-free duration of the active interruption of the service path.
9. The device for implementing Link Up Delay of an optical module according to claim 8, wherein the device for implementing Link Up Delay of an optical module further comprises: -a device activation module (3), wherein:
the automatic issuing module (2) is used for activating the active issuing module (1) when the duration of the continuous alarm is greater than or equal to a first preset duration.
10. The device for implementing Link Up Delay of an optical module according to claim 9, wherein the device for implementing Link Up Delay of an optical module further comprises: a timer module (4), wherein:
The timer module (4) is used for timing the duration of continuous alarm and the duration of non-alarm, and the active issuing module (1) issues a local fault according to the duration of continuous alarm and/or the duration of non-alarm to actively interrupt the service path of the switch.
CN202410006040.0A 2024-01-03 2024-01-03 Method and device for realizing Link Up Delay of optical module Pending CN117880666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410006040.0A CN117880666A (en) 2024-01-03 2024-01-03 Method and device for realizing Link Up Delay of optical module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410006040.0A CN117880666A (en) 2024-01-03 2024-01-03 Method and device for realizing Link Up Delay of optical module

Publications (1)

Publication Number Publication Date
CN117880666A true CN117880666A (en) 2024-04-12

Family

ID=90589758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410006040.0A Pending CN117880666A (en) 2024-01-03 2024-01-03 Method and device for realizing Link Up Delay of optical module

Country Status (1)

Country Link
CN (1) CN117880666A (en)

Similar Documents

Publication Publication Date Title
CN111078453B (en) Method, device, computer equipment and storage medium for automatically fusing and recovering micro-service
EP2698948A1 (en) Method and device for determining failure elimination based on oam protocol
CN113194029B (en) Method, system, medium, and apparatus for automatically identifying and isolating service grid sidecar faults
CN117880666A (en) Method and device for realizing Link Up Delay of optical module
CN108429279B (en) Current-free protection method and system for flexible direct current transmission system
JP2004112271A (en) Remote monitoring system
CN110021917B (en) Fault isolation positioning system
CN113381802B (en) Intelligent light path switching system based on light exchange matrix
JP2004086520A (en) Monitoring control device and its method
CN115460635A (en) Fault detection method, device, equipment and computer storage medium
CN1328921C (en) Method for preventing erroneous detection of transmission output level error in a radio base station device and radio base station device
CN110912391B (en) Restarting method and restarting device for frequency converter
CN104780060A (en) Method and device applied to annunciator for controlling on/off of data link
JP3838772B2 (en) Communication device with power failure information notification function
JPH0581202A (en) Instantaneous fault detection system for communication network equipment
JPH06175887A (en) Fault monitoring/reporting system
JP3038118B2 (en) Emergency call device
KR100359908B1 (en) Device and method for watching call process impossible status of intelligent peripheral
JPH0734567B2 (en) Telephone terminal with data communication processing function
JP2004015661A (en) Fault monitoring device
CN115048262A (en) Method for detecting and monitoring whether APP stops running or not by intelligent terminal
JPH05325078A (en) Remote monitor device
CN117674389A (en) Dual-power-supply-based power distribution control method
CN117238717A (en) Relay power-down control method and device
JPH08274929A (en) Facsimile adaptor

Legal Events

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