A METHOD FOR RECOVERING A FAULTY UNIT AND A RECOVERY SYSTEM

Abstract: This invention relates to a method for recovering a faulty unit, comprising the steps of taking a faulty unit out of operation, recovering the unit and bringing the unit back into operation if the tests that have been carried out indicate that it is in condition. For preventing "bouncing" of the unit and an unnecessary load caused to the system, a predetermined number of recovery periods, the length of each recovery period and the maximum number of the recovery acts to be carried out during each recovery period are defined. The recovered unit is set under monitoring for the duration of the recovery period, whereby the monitored unit is re-recovered if necessary if the number of the recovery acts carried out during a recovery period does not reach the maximum number determined for the period. On termination of the recovery period, the unit is set under monitoring for the duration of the new recovery period if the unit has been recovered at least once during the terminated recovery period and if the terminated recovery period was not the last determined recovery period, and after the termination of the last recovery period the unit is no longer recovered. The invention further relates to a recovery method.

Description: A method for recovering a faulty unit and a recovery system Field of Invention This invention relates to a method for recovering a faulty unit, comprising the steps of defining a predetermined number of recovery periods and the maximum number of times a recovery act is carried out during a recovery period; taking a faulty unit out of operation, recovering the unit, bringing the unit back into operation if tests that have been carried out indicate that it is in condition, and setting the recovered unit under monitoring for the time of a recovery period, whereby the monitored unit is re- recovered if necessary provided that the number of the recovery acts carried out during the recovery period does not exceed the maximum number predetermined for the period. The invention further relates to a recovery system for recovering a faulty unit, comprising: recovery means for testing the operation of the faulty unit and recovering the unit if the tests that have been carried out indicate that it is in condition, a recovery act counter for counting the number of recovery acts that have been carried out for the unit, whereby the recovery means are arranged to monitor the operation of the unit and re-recover the faulty unit if necessary, and to change the value of the recovery act counter, if the recovery act counter has not reached a predetermined threshold value. The term recovery refers herein to testing the operation of the faulty unit whereafter the unit is brought back into operation if it is in condition according to the tests that have been carried out. If the tests show that the unit cannot be recovered, it will be left in an inoperative state until the maintenance personnel take over the situation. Background Art This invention is closely connected with an automatic maintenance system, e.g. in a telephone exchange where the maintenance system continuously monitors the operation of the units included in the system. If the maintenance system detects that one of the units is faulty, it will immediately send an alarm to the recovery system. The recovery system will then take the faulty unit out of operation, by replacing it e.g. with another unit of a similar type if the faulty unit is doubled. In case the faulty unit is not doubled, the operation of the system (e.g. the telephone exchange) will be interrupted in this respect until the faulty unit is repaired or replaced with another unit. Once the recovery system has taken the faulty unit out of operation, it tests the functions of the faulty unit by means of predetermined test procedures. If the tests show that the faulty unit is in condition, the recovery system will automatically bring the unit back into operation (at least in the case where the unit is not doubled). In another case, i.e. if the tests indicate that the unit is faulty, the unit will be taken out of operation permanently, until the maintenance staff take over the situation. The weakness of the prior art recovery system described above is that it loads the system unnecessarily much in cases where the fault occurring in the unit is of such a type that the recovery system cannot detect it on the basis of the tests carried out by it. In this case, the recovery system repeatedly indicates that the unit is in condition, and brings it back into operation after the tests. The maintenance system, in turn, re-detects a fault immediately once the recovered unit has been taken back into operation and sends a new alarm to the recovery system. The unit thus "bounces" back and forth in an uncontrolled manner, which causes an unnecessary load both to the maintenance system and the recovery system. Summary of the Invention The object of this invention is to solve the problem mentioned above and provide a method for recovering a unit and a recovery system which will make it possible to reduce bouncing described above and thus avoid unnecessary loading of the maintenance system. These objects are achieved with the method of the invention which is characterized in that in said method the length of each recovery period is determined, whereby on termination of a recovery period, the unit is set under monitoring for the duration of a new recovery period provided that the unit has been recovered at least once during the terminated recovery period and that the terminated recovery period was not the last defined recovery period, and after the termination of the last defined recovery period the unit is no longer recovered. The invention further relates to a recovery system in which the method of the invention may be applied. The system of the invention is characterized by further comprising: a timer means for measuring a recovery period; a recovery period counter for counting the recovery periods, whereby the recovery means are arranged to initialize the timer means, the recovery period counter and the recovery act counter to predetermined initial values after the first recovery act, and upon the timer means reaching a predetermined threshold value, the recovery means are adapted to: - change the value of the recovery period counter and initialize the timer means and the recovery act counter to initial values corresponding to the new value of the recovery period counter if the value of the recovery act counter deviates from its initial value and the recovery period counter has not reached a predetermined threshold value, - take the unit out of monitoring if the value of the recovery act counter corresponds to its initial value, and - prevent the recovery of the unit in future if the value of the recovery act counter deviates from the initial value of the terminated recovery period and the recovery period counter reaches the predetermined threshold value. The invention is based on the idea that when the recovered unit is set under monitoring, whereby the number of the recovery acts carried out during a recovery period of a predetermined length is limited to a predetermined value, the bouncing of the faulty unit and thus the unnecessary loading of the maintenance system and the recovery system will be reduced. The most remarkable advantages of the recovery system of the invention are thus effective reduction of bouncing of the faulty unit (i.e. shifting from an active state into a passive state) and savings in the resources of the maintenance system, and the possibility that the maintenance personnel can take over the situation manually at any time by replacing the faulty unit with another one, for example, whereafter the recovery system automatically recovers the new unit after a while and detects that it is operative (without detecting that it is actually a question of another unit) . In a preferred embodiment of the invention, the number of successive recovery periods is limited to a predetermined value and the length of the recovery periods and the number of the recovery acts are simultaneously increased at the beginning of each recovery period, which results in accomplishing a recovery system having a highly efficient filtering condition. In other words, the time between the recovery acts is increased each time when shifting from one recovery period to another with the result that the more time has passed from the first recovery act of the unit, the less load is caused on the system by the recovery measures. Thus, the system is allowed sufficient time to recover after a very long interference period, (i.e. the total duration of the recovery periods is relatively long). The operator of the system may also alter the filtering condition of the system quite easily, only by altering the set threshold values. Brief Description of the Drawings The preferred embodiments of the method and the system of the invention appear from the attached dependent claims 2 - 3 and 5 - 7. In the following, the invention will be described in greater detail with reference to the accompanying figures, in which Figure 1 shows a flow diagram of a first preferred embodiment of the method of the invention, Figure 2 shows a block diagram of a first preferred embodiment of the recovery system of the invention, and Figure 3 illustrates the behaviour of a bouncing unit when the recovery system of Figure 2 is utilized. Description of a Preferred Embodiment Figure 1 shows a flow diagram of the first preferred embodiment of the method of the invention. In block A, an alarm of a certain unit is received. In block B, predetermined tests are carried out for a faulty unit for locating the fault. If the tests that have been carried out show that the unit is in condition, it will be recovered. The recovered unit is set under monitoring. For carrying out this procedure, a recovery period counter Cl is set to a predetermined initial value Cl 0 (preferably = 1). In block C of Figure 1 a recovery act counter C2 and a timer T are initialized to initial values C2=C2 0 and T=T 0 corresponding to the value of the recovery period counter Cl. These initial values may be e.g. the following: Value of Cl To C2 0 1 15 (min) 1 2 30 2 3 60 4 4 120 7 In block D, the operation of the recovered unit is monitored. If the unit fails again, i.e. a new alarm is received of it, the procedure shifts from block D via block E to block F. In block F it is checked whether the recovery act counter C2 has reached the threshold value C2 R (preferably 0) given to it, i.e. whether all recovery acts defined to the recovery period in question are already completely used. If this is the case, the procedure returns to block D. If there are still recovery acts available, the procedure shifts to block G where the unit is re-recovered (if possible according to the tests), whereafter the value of the recovery act counter C2 is decreased by one. From block G the procedure returns to block D where the operation of the unit is further monitored. When the timer T reaches the threshold value T R (preferably 0 min) set to it, i.e. the ongoing recovery period terminates, the procedure shifts via block H to block I. In block I it is checked whether the value of counter C2 corresponds to the initial value C2 0 given to it. If this is the case, it indicates that the unit has not been recovered at all during the recovery period, i.e. it has been operating faultlessly. In that case, the procedure shifts to block K where the monitoring of the unit is terminated. If the value of counter C2, however, does not correspond to its initial value C2 0 in block I, the procedure shifts to block J where it is checked whether the recovery period counter Cl has reached the predetermined threshold value Cl„ (preferably 4). If this is the case, it indicates that the terminated recovery period was the last recovery period, and the procedure shifts to block L where the recovery of the unit is terminated "permanently", i.e. until the maintenance personnel take over the situation. If it is detected in block J, however, that the recovery period counter Cl has not reached the threshold value C1 R , the procedure shifts to block where the value of the recovery period counter Cl is increased by one. After this, the procedure returns to block C, where the recovery act counter C2 and the timer are initialized to values corresponding to the new value of the recovery period counter Cl, whereafter a new recovery period follows as described above. Figure 2 shows a block diagram of the first preferred embodiment of the recovery system of the invention. The recovery system shown in Figure 2 functions in the way shown by the flow diagram in Figure 1. Figure 2 shows unit 3 that may be e.g. a part of a telephone exchange. The operation of unit 3 is controlled and monitored by an operation and maintenance unit (O U) 1. When the operation and maintenance unit 1 detects a malfunction in unit 3, it immediately alerts the recovery system to the matter. A recovery unit 2 included in the recovery system then immediately takes the faulty unit out of operation after having received an alarm of the unit. Once the faulty unit is taken out of operation, the recovery unit 2 directs unit 3 into a testing state and activates a diagnostics for the unit for testing unit 3 in order to locate the fault. If the tests show that unit 3 is faulty, the recovery unit 2 takes it permanently out of operation until the maintenance personnel take over the situation. In another case, i.e. if the faulty unit is proved to be in condition on the basis of the tests, the recovery unit 2 automatically returns unit 3 into operation simultaneously when it initializes the timer T, the recovery period counter Cl and the recovery act counter C2 to predetermined initial values T 0 , Cl 0 and C2 0 . These initial values may be for instance: T 0 = 15 (min), Cl 0 = 1 and C2 0 = 1. In the case shown in Figure 2, the recovery unit 2 is arranged to increase the value of the recovery period counter Cl by one at the beginning of each new recovery period. The timer T is arranged to measure proceeding of a recovery period by decreasing its value, and the recovery unit is arranged to maintain the recovery act counter C2 so that the value of the counter is decreased by one each time when unit 3 is recovered. Once unit 3 has been recovered for the first time, the recovery unit 2 starts monitoring the operation of unit 3. If the operation and maintenance system 1 repeatedly signals an alarm of unit 3 to the recovery system (which is possible if the fault is of such a type that cannot be detected by the recovery unit 2 by means of the tests), the recovery unit 2 will not automatically recover unit 3, but it first checks whether the number of recovery acts predetermined for the recovery period in question has already been completed, i.e. whether the recovery act counter C2 has already reached the predetermined threshold value C2 R (preferably = 0). Only after this check, the recovery unit 2 activates the diagnostics for unit 3, and recovers it if possible. After the recovery act, the recovery unit 2 changes the value of the recovery act counter C2 by decreasing it by one. When the timer T reaches the predetermined threshold value T R (preferably = 0 min), the recovery unit 2 checks the values of the recovery period counter Cl and the recovery act counter C2, and: - if C2 ≠ C2 0 and Cl ≠ C1 R , the recovery unit 2 increases the value of the recovery period counter by one, and initializes the recovery act counter C2 and the timer means T to the initial values C2 0 and T 0 corresponding to the new value of the recovery period counter, - if C2 = C2 0 , the recovery unit takes the unit 3 out of monitoring (the unit is operating normally), and - if Cl = C1 R and C2 ≠ C2 0 , the recovery unit interrupts the recovery procedure of unit 3 "permanently", i.e. until the maintenance staff take over the situation. By employing several recovery periods different in duration and by limiting the number of the recovery acts during a period, a recovery system is achieved that is capable of managing a bouncing unit so that a minimum load is caused to the operation and maintenance unit. If the recovery system is used for monitoring several units, a separate recovery period counter and a recovery act counter are used for each unit. In this case, the timer shown in Figure 2 is preferably replaced with a unit-specific counter, and a timer common to all monitored units. The common timer then constantly measures periods of a certain duration, e.g. of 15 min, whereafter the unit-specific counter/counters are updated each time when the timer indicates that a period of a certain duration has terminated. In other words, if a recovery period of e.g. 45 minutes is to be measured for a certain unit, the unit-specific counter of the unit is given the value 3, subsequent to which the value of the unit-specific counter is decreased by one each time when the timer indicates that a period of 15 minutes has passed, until the unit-specific counter reaches the value 0, which indicates that the recovery period has terminated. Figure 3 illustrates the behaviour of a bouncing unit 3 when the recovery system shown in Figure 2 is employed. Figure 3 shows the behaviour of unit 3 during the first three recovery periods. At the point of descending edges of the curve shown in Figure 3 the recovery system takes the unit out of operation owing to a fault detected in it, and accordingly, at ascending edges, the unit is recovered and brought back into operation. The recovery acts to be performed during recovery periods 1 - 3 are marked with arrows in Figure 3. In the situation shown in Figure 3, the unit has such a fault that cannot be detected by the tests carried out by the recovery system, owing to which the recovery system repeatedly makes an attempt to recover the unit. Since the fault has not been eliminated from the unit after the recovery procedure either, the operation and maintenance unit repeatedly gives the recovery system a new alarm of the unit in question, which causes "bouncing" of the unit between the operative and the inoperative state. It appears from Figure 3 that, subsequent to the first recovery act, the recovery unit 2 (shown in Figure 2) starts the timer T for measuring the first recovery act. Subsequent to the first recovery act, however, the unit immediately "fails" again, owing to which it is taken out of operation almost immediately. Since the recovery system cannot detect the fault, it will recover the unit again immediately after the beginning of the first recovery period. It appears from Figure 3, however, that the unit is still not in condition, but it fails again. During the first recovery period, however, the number of the recovery acts is limited to one, whereafter the unit will remain in an inoperative state until the termination of the recovery period. The length of the first recovery period is 15 min. The unit thus remains out of operation until the beginning of the second recovery period, during which the unit is recovered twice, but it still does not operate, and repeatedly fails again. The unit remains again in an inoperative state until the termination of the second recovery period, whereby it is re-recovered four times during the third recovery period. Since the unit still does not operate, the fourth recovery period (not shown in the Figure), 120 min. in duration follows after the third recovery period. The unit is recovered 7 times during the fourth recovery period. On termination of the fourth recovery period, the unit will be left in an inoperative state, and recovery attempts are interrupted until the maintenance personnel take over the situation. However, if the unit remains in operation after the recovery carried out during the third recovery period, and there is no need to recover it during the fourth recovery period, the unit is detected to be in an operative state and the monitoring is terminated. If the unit which has once been taken out of the monitoring state fails again later, the recovery of the unit will be started from the beginning, i.e. from the first recovery period. It should be understood that the above description and the figures associated therewith are only intended to illustrate the present invention. The lengths and the number of the recovery periods, and the number of the recovery acts carried out during them may vary. Different modifications and variations will be obvious for a person skilled in the art without deviating from the scope and the spirit of the invention set forth in the attached claims.

Claims: Claims : 1. A method for recovering a faulty unit, comprising the steps of: defining a predetermined number of recovery periods and the maximum number of times a recovery act is carried out during a recovery period, taking a faulty unit out of operation, recovering the unit, bringing the unit back into operation if tests that have been carried out indicate that it is in condition, and setting the recovered unit under monitoring for the time of a recovery period, whereby the monitored unit is re-recovered if necessary provided that the number of the recovery acts carried out during the recovery period does not exceed the maximum number predetermined for the period, c h a r ¬ a c t e r i z e d in that in said method the length of each recovery period is determined, whereby on termination of a recovery period, the unit is set under monitoring for the duration of a new recovery period provided that the unit has been recovered at least once during the terminated recovery period and that the terminated recovery period was not the last defined recovery period, and after the termination of the last defined recovery period the unit is no longer recovered. 2. A method as claimed in claim 1, c h a r a c- t e r i z e d in that the first recovery period is determined to be the shortest in duration, and all the following recovery periods are determined to be longer in duration than the preceding recovery period. 3. A method as claimed in claim 1 or 2, c h a- r a c t e r i z e d in that the lowest maximum number of recovery acts is defined for the first recovery period and that a maximum number of recovery acts which is equal to or higher than the maximum number of recovery acts of the preceding recovery period is defined for the following recovery periods. 4. A recovery system for recovering a faulty unit (3), comprising: recovery means (2 ) for testing the operation of the faulty unit (3) and recovering the unit if the tests that have been carried out indicate that it is in condition, a recovery act counter (C2) for counting the number of recovery acts that have been carried out for the unit, whereby the recovery means (2) are arranged to monitor the operation of the unit and re-recover the faulty unit (3) if necessary, and to change the value of the recovery act counter, if the recovery act counter (C2 ) has not reached a predetermined threshold value (C2 R ), c h a r a c t e r i z e d by further comprising: a timer means (T) for measuring a recovery period; a recovery period counter (Cl ) for counting the recovery periods, whereby the recovery means (2) are arranged to initialize the timer means (T), the recovery period counter (Cl) and the recovery act counter (C2) to predetermined initial values (Cl 0 , C2 0 , T 0 ) after the first recovery act, and upon the timer means (T) reaching a predetermined threshold value (T R ) , the recovery means are adapted to: - change the value of the recovery period counter (Cl) and initialize the timer means (T) and the recovery act counter (C2 ) to initial values corresponding to the new value of the recovery period counter if the value of the recovery act counter (C2) deviates from its initial value (C2 0 ) and the recovery period counter (Cl) has not reached a predetermined threshold value (C1 R ), - take the unit (3) out of monitoring if the value of the recovery act counter (C2) corresponds to its initial value (C2 0 ), and - prevent the recovery of the unit (3) in future if the value of the recovery act counter (C2) deviates from the initial value (C2 0 ) of the terminated recovery period and the recovery period counter (Cl) reaches the predetermined threshold value (C1 R ). 5. A recovery system as claimed in claim 4, c h a r a c t e r i z e d in that, if the value of the recovery act counter (C2) deviates of its initial value (C2 0 ) and the recovery period counter (Cl ) has not reached the threshold value (Cl„) when the timer means (T) reaches the threshold value (T R ) , the recovery means (3) initialize the recovery act counter (C2) to an initial value (C2 0 ), which is equal to or greater than an initial value of the terminated recovery period, whereby the recovery means (3) are arranged to change the value of the recovery act counter (C2), by decreasing it by one in connection of each recovery act that takes place during each recovery period, until the recovery act counter (C2) reaches the threshold value (C2„). 6. A recovery system as claimed in claim 4 or 5, c h a r a c t e r i z e d in that, if the value of the recovery act counter (C2) deviates from its initial value (C2 0 ) and the recovery period counter (Cl) has not reached the threshold value (C1 R ) when the timer means (T) reaches the threshold value (T R ), the recovery means (3) initialize the timer means (T) to an initial value (T 0 ), which is equal to or greater than the initial value of the terminated recovery period, whereby the timer means (T) is arranged to measure the recovery period by decreasing its value at predetermined intervals, until it reaches the threshold value (T R ). 7. A recovery system as claimed in any of the claims 4 - 6, c h a r a c t e r i z e d by the timer means (T) consisting of a timer that measures periods of a fixed duration, and a counter, responsive to said timer, the value of said counter being changed in response to the termination of periods of a fixed duration, until the counter reaches a predetermined threshold value.

Inventors: HIRVONEN PEKKA, HYYRYNEN ALTTI, SARPOLA JUSSI, HIRVONEN, PEKKA, HYYRYNEN, ALTTI, SARPOLA, JUSSI
Applicants: HIRVONEN PEKKA, HYYRYNEN ALTTI, NOKIA TELECOMMUNICATIONS OY, SARPOLA JUSSI, HIRVONEN, PEKKA, HYYRYNEN, ALTTI, SARPOLA, JUSSI
Application year: 1995
Main classification: H02H3
IPC codes: H04M3, H04Q1