AN ADAPTIVE DISTRIBUTED SYSTEM AND METHOD FOR FAULT TOLERANCE

Abstract: An adaptive distributed system and method for fault tolerance is provided in a network (12) of at least three nodes (14) that are able to execute a distributed diagnosis algorithm in communication with the network. Each node has a device (16, 18) for testing whether a node is in a desired state or an undesired state and for determining which node to test. The method begins by using a tester node to test another node, determining whether the other node is in a desired or undesired state. If the tested node is in an undesired state, the testing is repeated on at least one further node until a node in a desired state is tested. If the tested node is in a desired state, an activation signal is provided to the tested node, causing it to become the tester node.

Description: AN ADAPTIVE DISTRIBUTED SYSTEM AND METHOD FOR FAULT TOLERANCE FIELD OF THE INVENTION The present invention is related to system-level diagnosis. More specifically, the present invention is related to an adaptive distributed system and method for fault tolerance in a network of nodes. BACKGROUND OF THE INVENTION There has been significant theoretical research in the area of system level diagnosis. Necessary conditions for system level diagnosability were given in 1967 by Preparata, Metze and Chien; F.P. Preparata, G. Metze and R.T. Chien. On the Connection Assignment Problem of Diagnosable Systems. IEEE Transactions on Electronic Computing EC-16(12):848-854, December, 1967, and characterized in 1974 by Hakimi and Amin; S.L. Hakimi and A.T. Amin. Characterization of Connection Assignment of Diagnosable Systems. IEEE Transactions on Computers C-23 (l ) , January, 1974. Since that time, there has been a large body of further theoretical developments; E. Kreutzer and S.L. Hakimi. System-Level Fault Diagnosis: A Survey. Euromicro Journal 20(4,5) .323-330, May 1987, including the diagnosability of new failure modes; C . Yang and G.M. Masson. Hybrid Fault Diagnosability with Unreliable Communication Links. In Faul t-Tolerant Computing Systems, pages 226-231. IEEE, July, 1986, and the development of diagnosis algorithms; S.H. Hosseini, J.G. Kuhl and S.M. Reddy. A Diagnosis Algorithm for Distributed Computing Systems with Dynamic Failure and Repair. IEEE Transactions on Computers C-33(3) :223-233, March, 1984. Recently, a distributed diagnosis algorithm has been implemented and presented in R.P. Bianchini Jr., K. Goodwin and D.S. Nydick. Practical Application and Implementation of Distributed System-Level Diagnosis Theory. In Proceedings of the Twentieth Interna tional Symposium on Faul t-Tolerant Computing , pages 332-339. IEEE, June, 1990. The present invention involves a new distributed diagnosis algorithm, Adaptive DSD, and its implementation. The framework of Adaptive DSD is modeled after the NEW_SELF distributed self-diagnosable algorithm given by Hosseini, Kuhl and Reddy; S.H. Hosseini, J.G. Kuhl and S.M. Reddy. A Diagnosis Algorithm for Distributed Computing Systems with Dynamic Failure and Repair. IEEE Transactions on Computers C-33(3):223-233, March, 1984. In that work it is assumed that a node is capable of testing a fixed set of neighboring nodes. It is further assumed that fault-free nodes pass on results of these tests to other nodes in the network. No assumption is made about faulty nodes, which may distribute erroneous test results. Diagnostic messages containing test results flow between neighboring nodes and reach nonneighboring nodes through intermediate nodes. Each node determines independent diagnosis of the network utilizing the diagnostic messages it receives. The NEW_SELF algorithm was extended in R.P. Bianchini Jr., K. Goodwin and D.S. Nydick. Practical Application and Implementation of Distributed System-Level Diagnosis Theory. In Proceedings of the Twentieth International Symposium on Faul t-Tolerant Computing, pages 332-339. IEEE, June, 1990, by addressing the resource limitations of actual distributed systems. This new algorithm, called EVENT_SELF, utilizes "event driven" diagnostic messages to reduce the resource overhead of the NEW_SELF algorithm. The Adaptive DSD algorithm differs considerably from the SELF algorithms in that the testing structure is adaptive and determined by the fault situation. The algorithm handles node failures and repairs. Link failures are not considered in this implementation. The Adaptive DSD algorithm also differs from the SELF algorithms in that the number of nodes in the fault set is not bounded. The SELF algorithms bound the number of allowable faulty nodes to a predefined limit, t. In the Adaptive DSD algorithm, the fault set can include any number of nodes, including all but one as faulty. The remaining fault-free node will correctly diagnose all the other nodes as faulty. The algorithm is optimal in terms of the total number of tests required. For correct diagnosis, each node must be tested by at least one fault-free node. In the Adaptive DSD algorithm each node is tested by exactly one fault-free node. Each node typically tests one other node, but can be required to test multiple nodes, of which one must be fault-free. In addition, the algorithm requires the maintenance of less complex data structures than the SELF algorithms. All diagnostic information is contained in a single data structure stored at each node. SUMMARY OF THE INVENTION The present invention pertains to an adaptive distributed system for fault tolerance. The system is comprised of a network. The system is also comprised of N nodes, where N is greater than or equal to 3 and is an integer, and a node is able to execute an algorithm in communication with the network. Each of the N nodes is in communication with at least one other node by way of the network. Each node has means for testing whether a node is in a desired state or an undesired state and which node to test based on given circumstances at a corresponding time. The present invention also pertains to a method for determining whether N nodes of a network, where N is greater than or equal to 3 and is an integer are in a desired or undesired state. The method comprises the step of testing with the tester node another node to determine whether the other node is in a desired state or undesired state. Next, there is the step of providing an activation signal to the node being tested if it is in a desired state to cause it to become the tester node. Then there is the step of repeating the above steps on at least one. other node at another predetermined location, if the processor tested is in an undesired state until a processor in a desired state is tested. BRIEF DESCRIPTION OF THE DRAWINGS In the accompanying drawings, the preferred embodiments of the invention and preferred methods of practicing the invention are illustrated in which: Figures la and lb are block diagrams of an adaptive distributed system and method for fault tolerance. Figure 2 is a schematic representation of forward fault-free paths from N.. Figure 3 is a schematic representation of an example system S and tests set T(S) . Figure 4 is a schematic representation of an example system S consisting of eight nodes with T(S)=D 1 t+1 • Figures 5a and 5b are schematic representations of an event sequence for failing N, . Figures 6a, 6b, and 6c are schematic representations of a possible event sequence for repaired N-.. Figures 7a, 7b, 7c, and 7d are schematic representations of a modified event sequence for repaired N,. Figures 8a, 8b, and 8c are schematic representations of different information forwarding schemes. Figure 9 is a schematic representation of an asymmetric information forwarding scheme for faulted N.. Figure 10 is a graph depicting Scenario 1 on a 72-nσde testing network. Figure 11 is a graph depicting Scenario 2 on a 60-node testing network. Figure 12 is a graph depicting Scenario 3 on a 60-node testing network. Figure 13 is a graph depicting Scenario 4 on a 60-node testing network. Figure 14 is a graph depicting Scenario 5 on a 20-node testing network. Figure 15 is a graph depicting Scenario 6 on a 20-node testing network. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring now to the drawings wherein like reference numerals refer to similar or identical parts throughout the several views, and more specifically to figure 1 thereof, there is shown a schematic representation of an adaptive distributed system 10 for fault tolerance. The system 10 is comprised of a network 12. The system 10 is also comprised of N nodes, which are preferably processors 14, where N is greater than or equal to 3 and is an integer and a node is able to execute an algorithm, in communication with the network 12. Each of the N processors 14 are in communication with at least one other processor 14 by way of the network 12. Preferably, each processor 14 is in communication with every other processor 14. Each processor 14 has means for testing whether another processor 14 is in a desired state or an undesired state and which processor 14 to test based on given circumstances at a corresponding time. Preferably, the testing means tests another processor 14 and which other processor 14 to test. A desired state can be, for example, that the processor is operating within the acceptable bounds of error, and an undesired state can be the processor is operating outside the bounds of acceptable error. Preferably, the testing means includes a memory 16. The testing means preferably also includes a computer program 20 stored in the memory 18. The computer program 20 chooses at least one other processor 14 to test, and also tests the other processor 14. Preferably, the program 20 is comprised of the computer implemented steps of first testing whether another processor 14 at a predetermined position in the network 12 is in a desired state or an undesired state. Then there is the step of providing an activation signal to the processor 14 being tested if it is in a desired state to cause it to activate its computer program. Then, there can additionally be the step of providing a signal to the other processor 14 corresponding to the state of the processor 14 tested if it is in an undesired state. Next, there is the step of repeating the above steps on at least one other processor 14 at another predetermined location if the processor 14 tested is in an undesired state until a processor at a desired state is tested. It should be noted that from 1 to N of the processors 14 can be testing with the testing means the processors 14 of the network in parallel. The first testing step can include the step of testing another processor 14 to the immediate clockwise location on the network 12 of the testing processor 14. The second testing step can also include the step of testing another processor 14 to the immediate clockwise location of the last processor 14 tested. In general, a diagnosis system S consists of the triple (V(S), E(S), T(S)), where: V(S) = [n 0 ,n 1 , ...,n N _. J The set of nodes or vertices of system S, where n. represents the i-th node of an N node distributed system, 0 i N-l. E(S) = [...[n i ,n j ]...] The set of edges of system S, where [n.,n._ represents an undirected edge, or communication path between nodes n. and n.. Initially, S is assumed to be fully edge connected, or E(S)=E(K N ). It is shown below that the number of edges required in E(S) can be significantly reduced. T(S) = [ . . . ( n L , n . ) . . . ] The set of tests of system S, where (n.,n.) represents a directed edge, or test, from n. to n.. Note that T(S) is a directed subset of E(S), such that if (n.,n.) εE(S) Since T(S) is a directed subset of E(S), it is implied that if a node is able to test another node, then it can also communicate with that node. Previous work on distributed diagnosis fixes T(S) at system specification. In this work, T(S) is adaptive and varies at algorithm execution according to the fault situation. A fault situation F(S) defines the fault condition of the system: F(S) = t Q , s l t ...,s N _ 1 ] The fault condition of system S, where s. is assigned one of [faulty, fault-free]. The variable s. represents the state of node n.. Test results are assumed to fall within the PMC or "symmetric invalidation " model of system diagnosis; F.P. Preparata, G. Metze and R.T. Chien. On the Connection Assignment Problem of Diagnosable Systems. IEEE Transactions on Electronic Computing EC-16( 12):848-854, December, 1967. In this model, the results of tests performed by fault-free nodes are accurate, and the results of tests performed by faulty nodes may not be accurate and can lead to erroneous results. Test results are one of [faulty, fault-free]. For a node nx testing ny, the test result equals s if n is fault-free. If n is faulty, then the test result is arbitrary. The algorithm presented in S.H. Hosseini, J.G. Kuhl and S.M. Reddy. A Diagnosis Algorithm for Distributed Computing Systems with Dynamic Failure and Repair. IEEE Transactions on Computers C-33(3) :223-233, March, 1984, ensures information accuracy by restricting the flow of information between fault-free nodes. Specifically, a node will only accept information from other nodes that it tests and determines to be fault-free. As evident by this specification, valid diagnostic information flows between nodes in the reverse direction of tests between the nodes. The algorithm presented herein utilizes the following testing scheme as described in S.H. Hosseini, J.G. Kuhl and S.M. Reddy. A Diagnosis Algorithm for Distributed Computing Systems with Dynamic Failure and Repair. IEEE Transactions on Computers C-33(3) :223-233, March, 1984: 1. n. tests n. as fault-free, 2. n. receives diagnostic information from n . , 3. n 1. tests nj. as fault-free, 4. n. assumes the diagnostic information received in Step 2 is valid. This scheme requires n. to remain fault-free between the tests executed at Steps 1 and 3 above. The following assumption is required of a diagnosis system S for the above scheme to execute correctly: Assumption : A node cannot fail and recover from that failure in an undetected fashion, during the interval between two tests by another node. This can be accomplished by either recording and storing fault events until the second test occurs at Step 3 or by ensuring that the testing interval is small enough to detect all failures . Given the above definitions and assumptions a node can successfully identify other fault-free nodes by utilizing forward paths of fault-free test results. See Figure 2. Test results, identified by arcs, are labeled "0" if the result is fault-free and "1" if the result is faulty. Node n 1. tests both nι. and nκ, and determines n. to be fault-free and n, to be faulty. Since n. determines n. to be fault-free, n. can utilize diagnostic information from n . which includes test results performed by n .. Thus nl. can correctly diagnose nl, and nm as fault-free without directly testing those nodes. Since n. determines n. to be faulty, n. cannot diagnose the state of n . The algorithm presented below utilizes forward fault-free paths in this manner to identify fault-free nodes. An example of the data structure required by the Adaptive DSD algorithm is shown in Table 1. The array TESTED_UP is maintained at each node n . TESTED_UP contains N elements, indexed by node identifier, i, as TESTED_UP [i], for 0 _< i <_ N-l. Each element of TESTED_UP contains a node identifier. The entry TESTED_ "UPX[i] = j indicates that nΛ has received diagnostic information from a fault-free node specifying that n. has tested n. and found it to be fault-free. Table 1 shows the TESTED_UP- array maintained at n-, for an eight node system with n., n. , n- faulty. Note that "x" represents an entry that is arbitrary. TESTED_UP 2 [0] = 2 TESTED_UP 2 [1] = x TESTED_UP 2 [2] = 3 TESTED_UP 2 [3] = 6 TESTED_UP 2 [4] - x TESTED_UP 2 [5] = x TESTED__UP 2 [6] = 7 TESTED_UP 2 [7] = 0 Table 1: Data Structure Maintained At Node N- . The Adaptive DSD algorithm operates at each node by first identifying another unique fault-free node and then updating local diagnostic information with information from that node. Functionally, this is accomplished as follows. List the nodes in sequential order, as (n 0 ,n.,...n N _.) . Node n identifies the next sequential fault-free node in the list. This is accomplished at n by sequentially testing consecutive nodes n ., n 2 , etc., until a fault-free node is found. Diagnostic information received from the fault-free tested node is assumed to be valid and is utilized to update local information. All addition is modulo N so that the last fault-free node in the ordered list will identify the first fault-free node in the list. /* ADAPTIVE_DSD /* The following is executed at each n , 0 < X < N-l /* at predefined testing intervals. 1. y=x; 2. repeat [ 2 ' 1 ' - 7 " < - 7+ 1 >mod [ N ] ? 2.2. request n to forward TESTED UP to n ; y — y x 2.3. ] until (n tests n as "fault-free"); 3. TESTED_UP [χ]=y; 4. for i=0 to N-l 4.1. if (i=x) 4.1.1. TESTED_UPx[i] = TESTED UPy[i] ; Table 2: The Adaptive DSD Algorithm. Table 2 presents the Adaptive DSD algorithm. The algorithm is executed at each node n at predefined testing intervals. Instructions 1 and 2 identify n as the first y fault-free node after n X in the ordered node list. The test at Step 2.3 evaluates to "fault-free" if n has remained fault-free since the last test by n , including the period required for n to forward TESTED_UP in Step 2.2. This ensures that the diagnostic information included in TESTED__UP received at Step 2.2 is accurate. Instructions 3 and 4 update the local diagnostic information dependent on both the fault-free test of n and the diagnostic information received from n . Instruction 3 asserts TESTED_UPx[x] = y, which specifies that nx has tested n and determined it to be fault-free. In Instruction 4, all other elements of TESTED_UP are updated to the values of TESTED_UP . Thus, the diagnostic information contained in the TESTED_UP arrays is forwarded between nodes in the reverse direction of tests. In this example, the information is forwarded from n to n . Note that Step 4.1 prevents a node from replacing diagnostic information that it determines through normal testing procedures with information that it receives from other fault-free nodes. Since n continues testing nodes in Step 2 until a fault-free node is found, the test set T(S) is dependent on the fault situation, F(S). The test set T(S) of an example system of eight nodes is shown in Figure 3. In the example, n., n. and n.. are faulty. The Adaptive DSD algorithm specifies that a node sequentially tests consecutive nodes until a fault-free node is identified. For example, n„ tests n,, finds it to be faulty and continues testing. Subsequently, n Q tests node n_ , finds it to be fault-free and stops testing. Node n_ finds n, to be fault-free and stops testing immediately. Node n, must test three nodes before it tests a fault-free node. The TESTED_UP 2 array maintained at n_ for this example is shown in Table 1. Diagnosis is accomplished at any node by following the fault-free paths from that node to other fault-free nodes. The Diagnose algorithm to be executed by a node n X, is given in Table 3. The algorithm utilizes the information stored in TESTED_UP to determine its diagnosis of the system. Its results are stored in array STATE X, where STATEX[i] is one of [fault-free, faulty]. For correct diagnosis, STATE X[i] must equal s-L. for all i. The Diagnose algorithm utilizes the fault-free entries of TESTED_UP and operates as follows. Initially, all nodes are identified as faulty in Step 1. In Step 2, node_pointer is initially set to x, the identifier of the node executing Diagnose. Step 3 of the algorithm traverses the forward fault-free paths in T(S), labeling each of the nodes as fault-free. This accomplished by setting STATE [node_pointer] to fault-free and then, setting node_pointer to TESTED_UP„[node_pointer] , which identifies the next sequential fault-free node in V(S). Step 3 is continued until node_pointer is set to every fault-free node and returns to x. /* DIAGNOSE */ /* The following is executed at each n , 0 X <_ N-l */ /* when n desires diagnosis of the system. */ 1. for i=0 to N-l 1.1. STATE χ [i]=faulty; 2. node_pointer=x; 3. repeat [ 3.1. STATE [node_pointer]=fault free; 3.2. node_pointer TESTED_UP [node_pointer] ; 3.3. ] until (node_pointer==x) ; TABLE 3: The Diagnose Algorithm. The Adaptive DSD algorithm represents considerable improvements over previous distributed diagnosis algorithms in terms of diagnosability and the number of tests required. The Adaptive DSD algorithm requires N tests and is optimal since each node must be tested by one fault-free node. In addition, all fault sets can be diagnosed, including up to N-l faulty nodes. The remaining fault-free nodes can always form a directed cycle of fault-free tests, and thus can identify all fault-free nodes. The SELF algorithms [6,1] require Nt tests to diagnose all possible fault sets including at most t faulty nodes. Other work in system-level diagnosis; E. Kreutzer and S.L. Hakimi. System-Level Fault Diagnosis: A Survey. Euromicro Journal 20(4,5) :323-330, May 1987 and distributed diagnosis; S.H. Hosseini, J.G. Kuhl and S.M. Reddy. A Diagnosis Algorithm for Distributed Computing Systems with Dynamic Failure and Repair. IEEE Transactions on Computers C-33(3) :223-233, March, 1984, assumes a bound on the total number of faulty nodes. Consider a system S of N nodes, at most t < N/2 of which are faulty. In Adaptive DSD, each node sequentially tests consecutive nodes until a fault-free node is identified. If at most t nodes can be faulty, then any node will test at most t+1 nodes to find a fault-free node. Figure 4 illustrates the graph D.. -, presente in F.P. Preparata, G. Metze and R.T. Chien. On the Connection Assignment Problem of Diagnosable Systems. IEEE Transactions on Electronic Computing EC-16(12):848-854, December, 1967, on eight nodes, which consists of eight nodes and two forward arcs from each node to the next two sequential nodes. In Section 3.2, it is proven that if a system S is fully connected, i.e. E(S)=E(K-,), then Adaptive DSD can diagnose N-l failures. Given that at most t nodes can be faulty, the testing topology, T(S), of system S will always be a subset of D 1 t+1 - Thus, the E(S)=E(K N ) requirement can be reduced to D.. . with non-directed edges, or E(S)=E(H ) as shown in J.A. Bondy and U.S.R. Murty. Graph Theory and Applications . Elsevier North Holland, Inc., New York, N.Y., 1976, where m=N and n=t+l. Thus, for a system with N nodes and at most t failures, the communication topology, E(S), must include E(H N^t+1 ), i.e, E(H^ fc+1 ) E(S) . Previous work in adaptive system-level diagnosis, E. Schmeichel, S.L. Hakimi, M. Otsuka and G. Sullivan. A Parallel Fault Identification Algorithm. Journal of Algorithms (11), June 1990; S.L. Hakimi and E.F. Schmeichel. An Adaptive Algorithm for System Level Diagnosis. Journal of Algorithms (5), June, 1984, assumes that an external observer desires the diagnosis of the network. The observer is unable to test the nodes of the system, but can request the outcome of test results. Typically, the observer first identifies a single fault-free node, and then utilizes that node to determine the state of the remaining nodes . An algorithm can be specified for the central observer that models the distributed Adaptive DSD algorithm. The algoritlim specifies that each node sequentially test consecutive nodes until it finds a fault-free node. If any node determines the subsequent t nodes to be faulty, the observer assumes that the test of the next node will be fault-free. At completion, the largest cycle consisting of fault-free tests contains all of the fault-free nodes. This algorithm requires no more than N+Ft tests, where t is the maximum number of faults permitted and N is the number of nodes, of which F are faulty. This is shown since each node is tested once by a fault-free node and each faulty node can test up to t nodes each. In addition, testing is specified to occur in rounds, allowing a node to either test or be tested in a single round. The tests required in a given round are adaptively chosen utilizing the test results from previous rounds. The Adaptive DSD testing scheme can be specified in " testing stages " where each node is allowed to test and be tested in a single stage. In stage i, 1 £ i £ t, each n tests n + . if all previous test results reported by n X were faulty. This algorithm requires at most t testing stages. Since the testing topology specified in each stage is a directed cycle, each stage can be specified in at most 3 rounds. They are the even cycle edges; the odd cycle edges; the last edge, if an odd cycle. Thus, the number of testing rounds is at most 3t. The Adaptive DSD algorithm is optimal in terms of the total number of tests required. Several implementation enhancements are presented herein to reduce other algorithm resource requirements and increase performance. The first enhancement addresses the transient behavior of the algorithm. Although the algorithm is guaranteed to converge to the correct diagnosis, incorrect transient diagnosis is possible during the convergence period due to delays in real systems. The enhancement ensures correct transient diagnosis during the convergence period by the addition of a temporary extra test for each node whose state changes from faulty to fault-free. The second enhancement concerns non-test related communication overhead. Diagnostic information can be reduced for nodes whose state changes infrequently. The third enhancement concerns diagnosis latency, or the time required for the nodes to reach a correct diagnosis after a fault event. In this scheme, internode communication and tests are driven by system fault events, in addition to periodic tests. Finally, asymmetric information forwarding is presented to further reduce diagnosis latency. The Adaptive DSD algorithm yields provably correct diagnosis after N testing rounds following a fault event. However, correct diagnosis is not guaranteed during the N testing rounds immediately following the fault event. The problem occurs when faulty nodes are repaired and become fault-free. The newly repaired node requires a finite period to identify a single fault-free node, where the node reports invalid diagnostic information. This situation is identified by a break in the testing cycle in T(S) . This problem is aggravated in actual systems where the newly repaired node requires an appreciable amount of time to identify a fault-free node. Figure 5 illustrates a node failure sequence. In Figure 5a, all system nodes are fault-free. Node n, fails in Figure 5b. Node n_ then begins testing n.. The cycle of fault-free nodes is maintained, and the diagnostic information remains valid. Figure 6 illustrates a node repair sequence that exhibits incorrect transient diagnosis. Node n.. is faulty in Figure 6a, requiring n~ to test n- and n.. Node n-, detects that n, is repaired in Figure 6b and begins testing only n, . However, if n-, has not yet tested n. then TESTED_UP- is invalid. This causes a break in the testing cycle T(S). Since the Diagnose algorithm follows fault-free paths in T(S) it will determine an incorrect diagnosis of the fault situation. In Figure 6c, n- deter ines n. to be fault-free, thus restoring the testing cycle in T(S). At this time, the Diagnose algorithm correctly diagnoses the fault situation. This problem is avoided by requiring additional temporary tests by the Adaptive DSD algorithm. Examine the fault event sequence in Figure 7. Node n_ is faulty in Figure 7a and repaired in Figure 7b. As shown, n~ continues to test both n-. and n. until information is received by n 2 that n, tests n.. During this time, n- reports both nodes to be fault-free by specifying TESTED_UP-.[2]=[3 4]. In Figure 7c, n, begins testing n. and receives valid diagnostic information. Subsequently, as shown in Figure 7d, n_ can stop testing n. and reports TESTED_UP 2 [2]=[3] . A cycle is maintained in T(S) for the entire fault event sequence shown in Figure 7. Thus Diagnose correctly diagnoses the fault condition of the system at any instance during the sequence. This feature requires modification to both the Adaptive DSD and Diagnose algorithms. Adaptive DSD is modified to accept a list of node identifiers for each entry of the TESTED_UP array. In addition, Adaptive DSD executed at n. is modified to initialize TESTED_UP. [i]-i at program initialization to identify that n. can only identify itself as fault-free. The Diagnose algorithm is rewritten as a recursive function at Step 3.2 so that node_pointer is set to all of the entries in the TESTED_UP array. Step 3.3 is rewritten to identify either node_pointer=x, or TESTED_UP. [i]=i as terminating conditions. Although the Adaptive DSD algorithm is optimal in terms of test count, it requires more than the minimum number of diagnostic messages. After two testing rounds of Adaptive DSD, TESTED_UP [x]=y. The value remains constant for testing rounds 3 through N. However, n receives TESTED_~*~UPX[x]=y from nX for testing rounds 3 through N and uses it to update TESTED_UP [x] to the same value. In real systems, it is wasteful to utilize network resources to communicate duplicated information between nodes. A time stamping scheme like that presented in R.P. Bianchini Jr., K. Goodwin and D.S. Nydick. Practical Application and Implementation of Distributed System-Level Diagnosis Theory. In Proceedings of the Twentieth International Symposium on Faul t-Tolerant Computing, pages 332-339. IEEE, June, 1990, is employed to permit nodes to transfer new diagnosis information only during Step 2.2 of Adaptive DSD. The total message count is minimized using this scheme. Each node receives a single message for every change in TESTED_UP, and is thus minimum and optimal. Each node, n X, maintains a local time stamp, tsX. Adaptive DSD records the time stamp at each entry of TESTED_UP . Assume a new entry arrives to be inserted into TESTED_ ~~UPX[y] . Then ts X is incremented and recorded with the new TESTED_~""UPX[y] . When nf requests diagnostic information from nx, it sends ts 'x representing the time stamp at n X when n last requested to be updated. Node n simply forwards the entries of TESTED_UP that have time stamps larger that ts ' . Examine the following testing sequence example: 1. n. tests n. as fault-free, 2. n. sends reques (ts_ j =0) to n. , n. receives ts.=20 and entire TESTED UP.. 1 3 - . 3. n. tests n. as fault-free, n assumes above information valid. 4. n. sends request(ts .=20) to n . , 1 3 J n. receives ts.=30 and TESTED_UP . modified since ts .=20. 1 5. n. tests n. as fault-free, i 3 n. assumes above information valid. The first time n. requests information from n. in Step 2, it forwards ts.=0. This ensures that n. forwards every entry of TESTED_UP .. Node n. returns its current time stamp, ts.=20. The second time n. requests information from n. in Step 4, it forwards ts.=20. Node n. forwards all entries in TESTED_UP . that have time stamps greater than 20, and returns the current ts.=30. In this manner, only new diagnostic information is forwarded from n. to n.. A scheme is employed as shown in S.H. Hosseini, J.G. Kuhl and S.M. Reddy. A Diagnosis Algorithm for Distributed Computing Systems with Dynamic Failure and Repair. IEEE Transactions on Computers C-33(3):223-233, March, 1984, to ensure that the time stamps do not grow unbounded. This enhancement addresses the diagnosis latency of the algorithm and assumes the information updating enhancement. When a new diagnostic message arrives at n X , nX stores the message in TESTED_UP X. At this time, nX can determine correct diagnosis. Currently, the new information is not forwarded until a request for the information arrives from another node. However, if n X can identify the node that the message will be forwarded to, it can forward the message when it arrives . This scheme is termed Event Driven since information is forwarded when the event occurs. In the previous algorithm, information is forwarded only on request. Event Driven Adaptive DSD is implemented by adding a new array FORWARD_TO . New information arriving at n is forwarded to all the nodes in . Upon receiving the new information, these nodes immediately test n to validate it. The number of messages remains the same as the information updating scheme, however, diagnosis latency is reduced. In the previous algorithms, new information is stored at each node until other nodes request the diagnostic information. In this algorithm, the new information is forwarded immediately. A detailed analysis of the diagnosis latency is given below. Asymmetric information forwarding further reduces the diagnosis latency by forwarding diagnosis information along redundant communication paths, different from those utilized for testing. Different information . forwarding schemes are illustrated in Figure 8. Tests are identified by shaded arcs and diagnostic information is forwarded along solid arcs. The original Adaptive DSD algorithm is illustrated in Figure 4-4a. Diagnosis information is forwarded only in the reverse direction of the system tests. In the figure, n Q tests n. and detects it to have failed. Subsequently, n,. tests n-, determines it to be fault-free, then forwards that diagnostic information along the solid arc to n_. The diagnostic information traverses six arcs before it reaches n 2 - The different information forwarding schemes illustrated in Figure 8 optimize different system parameters. Three forwarding schemes are illustrated for the event of n n detecting n. as faulty. Figure 8a, as presented above, illustrates symmetric forwarding. This scheme requires the lowest number of diagnosis information messages forwarded from each node and the highest diagnosis latency. The forwarding scheme utilized by the SELF algorithms is illustrated in Figure 8b. Each node forwards diagnosis information to t other nodes. The scheme illustrated in Figure 8c requires high message count at n Q but has the minimum diagnosis latency of one message delay. The asymmetric information forwarding scheme utilized the final implementation of Adaptive DSD is illustrated in Figure 9. Using this scheme, n Q forwards the diagnostic information to n. and n_. Nodes n. and n.- each forward the information to two additional nodes. In this implementation, the information forwarded along the solid arcs requires only two arcs to reach n- . The structure represented by the solid arcs is a binary tree. The longest path in a binary tree is log-N. A binary tree is chosen as the forwarding structure since it requires that half of the nodes forward only one additional diagnostic message, yet reduces the path length a diagnostic message must travel from N to log_N. Table 4 classifies recent distributed system diagnosis algorithms. The algorithms are classified by two orthogonal characteristics. The columns distinguish between adaptive and non-adaptive algorithms. Column A identifies non-adaptive algorithms and Column B identifies the adaptive algorithms specified herein. The rows identify the diagnostic information handling scheme employed by the algorithms . Row 1 identifies algorithms that forward all diagnostic information in every algorithm testing round. Row 2 identifies algorithms that only forward information that has changed since the previous testing round. Row 3 identifies the most complicated information handling scheme, which involves using fault events to forward information rather than testing rounds. The algorithm identified in Row 4 forwards diagnosis information along different communication paths than those utilized for testing. Algorithm Classification A. Non-Adaptive B. Adaptive 1- All Diagnosis NEW_SELF Adaptive DSD Information 2. Diagnosis Information (none) Adaptive DSD Updating W/Update 3. Event Driven EVENT SELF Event Driven Diagnosis Information Adaptive DSD 4. Asymmetric Diagnosis (none) Asymmetric Information Forwarding Event Driven Adaptive DSD Table 4: Distributed System Diagnosis Algorithm Classification. Table 5(a) shows the diagnosability of the algorithms. Algorithm diagnosability is the maximum number of faulty nodes that are permitted for the algorithm to maintain correct diagnosis. The diagnosability of the SELF algorithms is predefined before algorithm execution, and is t. The testing topology is fixed prior to algorithm execution and is determined by t. The diagnosability of the Adaptive DSD algorithms is N-l, which specifies that any set of faulty nodes is acceptable. The remaining fault-free nodes will always determine correct diagnosis. Algorithm Diagnosability SELF Algorithms Adaptive DSD All Information t N-l Forwarding Schemes (a) Test count Per Testing Round SELF Algorithms Adaptive DSD All Information Nt N Forwarding Schemes (b ) ' Table 5: Algorithm Diagnosability and Test Count, Table 5(b) shows the number of tests required by each algorithm. The SELF algorithms require Nt tests since each node must be tested by t other nodes. The Adaptive algorithms require N tests. Since every node of any distributed diagnosis system must be tested by one of the fault-free nodes, N is the minimum number of tests possible. Thus, Adaptive DSD is optimal in terms of the number of tests required. Table 6 identifies the number of messages that contain algorithm diagnostic information. In the SELF algorithms, each message contains the triple, (A, B * , C) , where A, B, and C are node identifiers. The Adaptive DSD algorithm requires that each TESTED_UP array gets forwarded in a testing round. Thus N 2 messages of size N are required and recorded as N in Table 6. The message counts of the event driven and information updating schemes are functions of the number of fault events. Identify f as the number of faulty nodes, and Δf as the change in the number of faulty nodes, or fault events. Adaptive DSD with information updating forwards each __f fault event to each node, thus the total message count is NΔf. The message count is optimal since each node must receive at least one message for each fault event. This message count is the same for Event Driven Adaptive DSD. The asymmetric forwarding algorithm requires 1.5NΔ f messages since it forwards diagnosis information along redundant paths. Message Count Per Testing Round All Information Information Updating Event Driven Asymmetric Forwarding Table 6: Algorithm Message Count. Table 7 identifies the diagnosis latency of each algorithm. The diagnosis latency is the time required for all fault-free nodes in the diagnosis system to reach a correct diagnosis after a fault event. Adaptive DSD requires N testing rounds to get new diagnostic information to every node. Thus, the diagnosis latency is N(T ) , where T represents the time of a testing round. The SELF algorithms require N/ +1 testing rounds since there are multiple paths between nodes in the test set, including paths of length N/.+l. The diagnostic messages require less time to be forwarded to all nodes in the system. Worst Case Diagnosis Latency SELF Algorithms Adaptive DSD All Information N/ t +1 ( T ) N (T ) Information Updating - N (T ) Event Driven N/ t +l (T tββt ) N (T tβ8t ) Asymmetric Forwarding - log 2 N (T. __ t ) Table 7: Algorithm Diagnosis Latency. The event driven algorithms have significantly reduced diagnosis latency. In the non-event driven algorithms, the diagnostic information arrives at a node and is not forwarded until the information is requested during the next testing round. In the event driven schemes, the node receiving the information immediately validates it by testing the node that forwarded the information. Once validated, the information is immediately forwarded to subsequent nodes. Thus, the information is forwarded after the time required for a fault-free test, T.. . , which is significantly less than a testing cycle in our implementation. The asymmetric adaptive algorithm further reduces diagnosis latency by utilizing redundant shorter paths, the longest of which contains log-N nodes. In the operation of the preferred embodiment, Adaptive DSD has been running in the CMU ECE department since November 1990 on various workstations using the Ultrix operating system, including VAX and DEC 3100 RISC workstations. The algorithm consists of approximately 3000 lines of C code, written in modular form to make it easily portable. The network interface for this implementation uses the Berkeley socket interface; UNIX Programmer ' s Manual : Socket The University of California at Berkeley, 1986, and presently supports Ethernet IP/UDP protocols, The Ethernet : A Local Area Network 2.0 edition, Digital Equiptment Corp., Intel Corp., Xerox Corp., 1982. Data Link Layer and Physical Layer Specifications; J.B. Postel . Internet Protocol . Technical Report, NSF-Net RFC #791, September 1981. Appropriate modifications to the network module will allow the program to run on any system that has a C compiler. Adaptive DSD, like its predecessor EVENT_SELF, R.P. Bianchini Jr., K. Goodwin and D.S. Nydick. Practical Application and Implementation of Distributed System-Level Diagnosis Theory. In Proceedings of the Twentieth International Symposium on Faul t-Tolerant Computing, pages 332-339. IEEE, June, 1990, is implemented as a modular, event-driven program. A configuration file is read by each workstation at startup that identifies the complete list of workstations participating in system diagnosis, as well a specifying a number of tuning parameters. Algorithm tuning parameters include the maximum number of forward tests in a single test interval, various timeout values, and flags that enable or disable certain options, such as packet bundling. An activity scheduler plays a significant role in the implementation by permitting events such as workstation tests, packet retransmissions, and other timeouts to be scheduled for execution at a specified time. As with EVENT_SELF, the workstation test is implemented as a separate program that is spawned as a subprocess to test several of the hardware facilities of the workstation. Workstations participating in system diagnosis are initially sorted by Internet host address. Since this number is unique to each workstation, all workstations generate identical sorted lists. Testing occurs only in the forward direction of the sorted list; i.e. each workstation tests those workstations that follow it in the sorted list, modulo the number of workstations . Information forwarding occurs only in the reverse direction, or backwards in the sorted list. Due to Internet standard subnet routing, J.C Mogul, J.B. Postel . Internet Standard Subnetting Procedure . Technical Report, NSF-Net RFC #950, August, 1985, workstations with numerically similar host address will be located on a single subnet. The sorted arrangement of workstations tends to minimize the load on routers and bridges as a result of inter-subnet communication. The initial startup of Adaptive DSD is a source of concern. Each node attempts to find and maintain a cycle among all other fault-free nodes. The first node started essentially tests every other node in the network searching for a fault-free node. There are several approaches to reduce the number of tests in this situation. The first permits the node to test every other node in the network. This provides rapid diagnosis convergence during startup, but results in unmanageable message traffic, especially when a large number of nodes are involved. An alternate approach is to have each node test one node in a test interval in sequence, until it finds a fault-free node. This approach results in slow diagnosis convergence, since a large number of testing intervals might be required for each node to find a fault-free node. The strategy employed is compromise of these two approaches . Each node tests a subset of the total number of nodes in the network per testing interval. If a maximum of m nodes can be tested in each test interval, then a fault-free cy J cle must be found in at most N/m test intervals. This approach limits total algorithm communication to Nm tests per testing interval. The algorithm operation in the presence of many faulty nodes permits graceful degradation of diagnosis latency. If more than consecutive nodes are faulty, only m of them will be tested per test interval . Operation of the Adaptive DSD algorithm on the CMU ECE network focused on algorithm communication overhead, in terms of average packet count, and diagnosis latency, measured in seconds. Figures 10-15 graph the communication overhead as a function of experiment elapsed time. In addition, important events are marked, including fault occurrence and diagnosis. Figure 10 illustrates the execution of the Adaptive DSD algorithm with symmetric information forwarding. Figures 11-13 illustrate the performance of the Adaptive DSD algorithm with asymmetric forwarding. In each scenario, the diagnosis system consists of 60 nodes and the algorithm executes with a 30 second test interval. Packet bundling is employed. To reduce the amount of message traffic generated by a node returning to the network from a failure, a maximum of m=5 forward tests per test interval are permitted. Every node maintains its own data collection for the packet counts shown in the figures, which is collected at ten-second intervals throughout each experiment. Scenarios 1 and 2 demonstrate the difference between symmetric and asymmetric forwarding. See Figures 10 And 11. Both experiments involve the failure and subsequent recovery of a single node. Symmetric forwarding is utilized in Scenario 1 and asymmetric forwarding is utilized in Scenario 2. At 60 seconds during Scenario 1, a single node in the network fails. The faulted node is detected at 110 seconds, after it is tested and a test timeout period occurs. After 110 seconds, the fault information is forwarded to the remaining fault-free nodes. Since diagnosis information is validated by testing, the fault information will reach the farthest node from the failure only after all nodes between it and the fault are tested and found to be fault-free. Thus, at time 510, the node farthest from the fault receives the information indicating the node failure. This results in an overall diagnosis latency of 450 seconds. After the failure is detected, the detecting node begins testing the nodes that the faulty node tested before its failure. At 960 seconds the faulty node is repaired and returns to the network. The newly recovered node immediately performs forward tests up to the limit of five, as specified in the configuration file. This causes the sharp increase in packet count at time 960. At time 970, the recovered node is detected. This information is propagated backward through the path of fault-free nodes until it reaches the fault-free node farthest from the recovered node, at 1430 seconds. Correct diagnosis is achieved within 460 seconds. After 1430 seconds, the packet counts return to nominal levels . As shown in Scenario 1, the diagnosis latency of Adaptive DSD with symmetric forwarding is a linear function of the number of system nodes and can be significant for large systems. Scenario 2, shown in Figure 11, illustrates the same experiment with asymmetric forwarding. The diagnosis latency is significantly reduced. The diagnosis latency for the failure is 60 seconds for asymmetric forwarding versus 400 seconds for symmetric forwarding. The same diagnostic information is forwarded, except that it is forwarded closer to the fault event. This results in a higher peak message count with shorter duration. The same total messages are forwarded, but are forwarded throughout the network at a faster rate. The remaining experiment utilize asymmetric forwarding to provide faster diagnosis latencies. Scenario 3, shown in Figure 12, illustrates two distributed simultaneous failures in the network, followed by simultaneous recoveries. Figure 12 illustrates similar behavior as the single node failure, with the exception of higher average packet counts following the recovery. This occurs since the two recovered nodes each request complete diagnostic information from all of the nodes they initially test when they return to the network. For Scenario 3, the diagnosis latency of the failure is 50 seconds and the diagnosis latency of the recovery is 40 seconds. Figure 13 illustrates one advantage of Adaptive DSD over both of the SELF algorithms: the ability to correctly diagnose the state of a network under the presence of many faults. In Scenario 4, 50 of the 60 nodes experience simultaneous failures at 60 seconds. The average packet count initially reduces significantly since fifty nodes cease transmitting messages. The first faulty node is detected at 90 seconds, and the fault-free nodes attempt to re-establish a circuit among the remaining fault-free nodes. Following the first detected failure, a small subset of the remaining fault-free nodes re-establish a cycle in the test set. At this time, complete diagnostic information is forwarded among these nodes. At time 370, the cycle is increased to include all remaining fault-free nodes and additional diagnostic information is exchanged. After the 360 second diagnosis latency, the packet counts reduce to their new nominal values. At time 960, one of the fifty failed nodes returns to the network. The usual recovery detection occurs, and diagnostic information is exchanged. After only 90 seconds, complete diagnosis among the fault-free nodes is established. Figures 14 and 15 compare Adaptive DSD to the SELF algorithms for a single failure and subsequent recovery. Due to the high number of diagnostic messages generated by the NEW_SELF algorithm and the available network bandwidth, the diagnosis system is limited to twenty nodes. The algorithms executed in Scenario 5 shown in Figure 14 use the same configuration parameters as the first three experiments: 30 second test interval, packet bundling, asymmetric forwarding, and a maximum of m=5 forward tests per test interval. Adaptive DSD has lower communication overhead and faster diagnosis latency. This is verified in Table 7. Packet bundling is utilized in Scenarios 1 through 5 to reduce the total message count. Due to packet bundling, the packet counts do not reflect the actual number of diagnostic messages required by each algorithm. As shown in Table 6, the EVENT_SELF algorithm always requires fewer diagnostic messages than NEW_SELF. However, in Figure 14, its average packet count exceeds that of NEW_SELF after a fault event. This occurs because EVENT_SELF forwards a single diagnostic message without bundling at each fault event. NEW_SELF only forwards the message concerning the event at the end of the next testing interval bundled with other diagnostic messages . To better illustrate the actual number of diagnostic messages, packet bundling is not utilized in Scenario 6. See Figure 15. All other algorithm configuration parameters are maintained. As illustrated, Adaptive DSD requires fewer diagnostic messages than EVΕNT_SELF, which in turn requires fewer diagnostic messages than NEW_SELF. The message counts in Figure 15 reflect those calculated in Table 6. The Adaptive DSD algorithm has been specified and implemented. Adaptive DSD represents considerable improvements over previous distributed diagnosis algorithms. The algorithm is optimal in terms of the umber of tests, requiring N tests in each testing interval. The diagnosability of the algorithm is maximum and permits the fault-free nodes to diagnose any of up to N-l faulty nodes . In the Event Driven Adaptive DSD algorithm the total message count is NΔf and optimal. Each node receives one message for each fault event in the system. The initial Adaptive DSD algorithm suffers from increased diagnosis delay, in part due to the optimization of total message count. Correct diagnosis requires that algorithmic messages traverse a path that includes all fault-free nodes. The asymmetric Adaptive DSD algorithm permits a direct tradeoff between message count and diagnosis delay. By specifying redundant paths for message forwarding, diagnosis delay is reduced at the expense of additional algorithmic messages. The asymmetric Adaptive DSD algorithm presented requires 1.5N Δ f messages and has a diagnosis delay of 0(log 2 N). Since its inception at Carnegie Mellon, greater reliance has been placed on the DSD system by the system administrators. The current system is used to diagnose faulty workstations within a minute of failure. In addition, the system has been used to determine the cause of failures during the presence of increased fault activity. Although the invention has been described in detail in the foregoing embodiments for the purpose of illustration, it is to be understood that such detail is solely for that purpose and that variations can be made therein by those skilled in the art without departing from the spirit and scope of the invention except as it may be described by the following claims .

Claims: WHAT IS CLAIMED IS: 1. An adaptive distributed system for fault tolerance comprising: a network; N nodes, where N is greater than or equal to 4 and is an integer and a node is able to execute an algorithm, in communication via the network, each of the N nodes in communication with at least one other node by way of the network, each node having means for testing whether a node is in a desired state or an undesired state and which node to test based on given circumstances at a corresponding time. 2. A system as described in Claim 1 wherein each node is in communication with every other node. 3. A system as described in Claim 2 wherein the testing means tests another node, and which other node to test. 4. A system as described in Claim 3 wherein each node includes a processor. 5. A system as described in Claim 4 wherein said testing means includes a memory; and a computer program stored in said memory for choosing at least one other processor to test, and for testing the other processor. 6.. A system as described in Claim 5 wherein said program is comprised of the computer implemented steps of: testing whether another processor at a predetermined position in the network is in a desired state or an undesired state; providing an activation signal to the processor being tested if it is in a desired state to cause it to activate its computer program; providing a signal to the other processors corresponding to the state of the processor tested if it is in an undesired state; and repeating the above steps on other processor at another predetermined location if the processor tested is in an undesired state until a processor in a desired state is tested. 7. A system as described in Claim 6 wherein the first testing step includes the step of testing another processor to the immediate clockwise location on the network of the testing processor; and the second testing step includes the step of testing another processor to the immediate clockwise location of the last processor tested. 8.v An adaptive distributed system for fault tolerance comprising: a network; N nodes, where N=3 and is an integer and a node is able to execute an algorithm, in communication via the network, each of the N nodes in communication with at least one other node by way of the network, each node having means for testing whether a node is in a desired state or an undesired state and which node based on given circumstances at a corresponding time. 9. A method for determining whether N. nodes of a network, where N is greater than or equal to 3 and is an integer and a node is able to execute an algorithm, are in a desired or an undesired state comprising the steps of: testing with a node another node to determine whether the other node is in a desired state or an undesired state; providing an activation signal to the node being tested if it is in a desired state to cause it to become the tester node; and repeating the above steps on at least one other node at another predetermined location if the node tested is in an undesired state until a node in a desired state is tested. 10. A method as described in Claim 9 including after the providing step, there is the step of providing a signal to the other nodes corresponding to the state of the node tested if it is in an undesired state. 11. A method as described in Claim 10 wherein the first testing step includes the step of testing another node to the immediate clockwise location on the network of the testing node; and the repeating step includes the step of testing another node to the immediate clockwise location of the last node tested. 12. A method as described in Claim 11 wherein the nodes are processors.

Inventors: BIANCHINI RONALD P JR, BIANCHINI, RONALD, P., JR.
Applicants: UNIV CARNEGIE MELLON, CARNEGIE MELLON UNIVERSITY
Application year: 1992
Main classification: H04L12
IPC codes: G06F11, H04L12, H04L29