Docsity

Mobile Computing - The Mobile Agent Fault Tolerance, Study notes of Mobile Computing

Toggle sidebar
bg1
11/26/14 1
Fault Tolerance
•Fault tolerance is the ability of a system to perform its
function correctly even in the presence of internal faults.
The purpose of fault tolerance is to increase the
dependability of a system. A complementary but separate
approach to increasing dependability is fault prevention.
This consists of techniques, such as inspection, whose
intent is to eliminate the circumstances by which faults
arise.
•A failure occurs when an actual running system deviates
from his specified behavior. The cause of a failure is called
an error. An error represents an invalid system state, one
that is not allowed by the system behavior specification.
The error itself is the result of a defect in the system or
fault. In other words, a fault is the root cause of a failure.
That means that an error is merely the symptom of a fault.
A fault may not necessarily result in an error, but the same
fault may result in multiple errors. Similarly, a single error
may lead to multiple failures.
pf3
pf4
pf5

Partial preview of the text

Download Mobile Computing - The Mobile Agent Fault Tolerance and more Study notes Mobile Computing in PDF only on Docsity!

Fault Tolerance

  • (^) Fault tolerance is the ability of a system to perform its

function correctly even in the presence of internal faults.

The purpose of fault tolerance is to increase the

dependability of a system. A complementary but separate

approach to increasing dependability is fault prevention.

This consists of techniques, such as inspection, whose

intent is to eliminate the circumstances by which faults

arise.

  • (^) A failure occurs when an actual running system deviates

from his specified behavior. The cause of a failure is called

an error. An error represents an invalid system state, one

that is not allowed by the system behavior specification.

The error itself is the result of a defect in the system or

fault. In other words, a fault is the root cause of a failure.

That means that an error is merely the symptom of a fault.

A fault may not necessarily result in an error, but the same

fault may result in multiple errors. Similarly, a single error

may lead to multiple failures.

General Fault Tolerance Procedure

  • (^) Error detection is the process of identifying that the system is in an invalid state. This means that some component in the system has failed. To ensure that the effects of the error are limited, it is necessary to isolate the failed component so that its effects are not propagated further. This is known as damage confinement. In the error recovery phase, the error and -- more importantly -- its effects, are removed by restoring the system to a valid state. Finally, in fault treatment , we go after the fault that caused the error so that it can be isolated. In other words, we first treat the symptoms and then go after the underlying cause. While it may seem more appropriate to go after the fault immediately, this is often not practical, since diagnosing the true cause of an error can be a very complex and lengthy process. In a software system, it is typical for a single fault to cause many cascading errors that are reported independently. Correlating and tracing through a potential multitude of such error reports often requires sophisticated reasoning.

Damage Confinement

  • (^) This consists of first determining the extent to which an error has spread (because time may have passed between the time the error occurred and the time it is detected). It requires understanding the flow of information in a system and following it -- starting from a known failed component. Each component along such flows is checked for errors, and the boundary is determined. Once this boundary is known, that part of the system is isolated until it can be fixed.
  • (^) To assist with damage confinement, special "firewalls" are often constructed between components. This implies a loose coupling between components so that components outside of the firewall can be easily de- coupled from the faulty components inside and re- coupled to an alternative, error-free redundant set. The cost of this is system overhead, both in performance (communication through a firewall is typically slower) and memory

Error Recovery

  • (^) To recover from an error, the system needs to be restored to a

valid state. There are two general approaches to achieving this.

In backward error recovery, the system is restored to a

previous known valid state. This often requires checkpointing

the system state and, once an error is detected, rolling back the

system state to the last checkpointed state. Clearly, this can be

a very expensive capability. Not only is it necessary to keep

copies of previous states, but also it is necessary to stop the

operation of the system during checkpointing to ensure that the

state that is stored is consistent. In many cases, this is not

viable, since it may not be possible to restore the environment in

which the system is operating to the state that corresponds to

the checkpointed state.

  • (^) For such cases, forward error recovery is more appropriate.

This involves driving the system from the erroneous state to a

new valid state. It may be difficult to do unless the fault that

caused the error is known precisely and is well isolated, so that it

does not keep interfering. Because it is tricky, forward error

recovery is not used often in practice.