Skip to main content
QUICK REVIEW

[Paper Review] Inherent Diversity in Replicated Architectures

Peter Okech, Nicholas McGuire|arXiv (Cornell University)|Oct 7, 2015
Distributed systems and fault toleranceComputer Science11 references7 citations
TL;DR

This paper demonstrates that inherent non-determinism in modern hardware/software execution platforms—particularly in kernel-level execution paths—can be leveraged to generate runtime diversity in replicated architectures. By tracing kernel execution across repeated and parallel executions of identical programs, the authors show measurable path variability, enabling fault detection in safety-critical systems through 2-out-of-2 redundancy, even when residual OS faults exist in rarely executed code paths.

ABSTRACT

In this paper, we report our ongoing investigations of the inherent non-determinism in contemporary execution environments that can potentially lead to divergence in state of a multi-channel hardware/software system. Our approach involved setting up of experiments to study execution path variability of a simple program by tracing its execution at the kernel level. In the first of the two experiments, we analyzed the execution path by repeated execution of the program. In the second, we executed in parallel two instances of the same program, each pinned to a separate processor core. Our results show that for a program executing in a contemporary hardware/software platform , there is sufcient path non-determinism in kernel space that can potentially lead to diversity in replicated architectures. We believe the execution non-determinism can impact the activation of residual systematic faults in software. If this is true, then the inherent diversity can be used together with architectural means to protect safety related systems against residual systematic faults in the operating systems.

Motivation & Objective

  • To investigate whether inherent non-determinism in contemporary hardware/software platforms can generate runtime diversity in replicated systems.
  • To assess the potential of using this diversity as an architectural mechanism to detect residual systematic faults in operating systems.
  • To evaluate whether path variability in kernel space can be exploited to improve fault tolerance in safety-related systems without requiring changes to the application or OS.
  • To validate that execution path divergence in parallel, identical program instances on separate cores can be used for fault detection in 2-out-of-2 configurations.
  • To provide empirical evidence that non-determinism in complex platforms can be harnessed for fault coverage, especially for rare-path faults in OS code.

Proposed method

  • Conducted kernel-level tracing of system calls using dynamic program analysis to observe execution paths during program execution.
  • Executed a simple program repeatedly in a loop to analyze path variability in kernel space under identical inputs.
  • Pinned two identical program instances to separate processor cores in a dual-core system to compare kernel execution paths during parallel execution.
  • Used trace data to compare execution paths across multiple runs and parallel instances, identifying divergence in path selection.
  • Analyzed path frequency and identified rare paths as high-probability locations for residual systematic faults.
  • Proposed a 2-out-of-2 fault detection model based on path diversity, assuming independence of path selection across replicas.

Experimental results

Research questions

  • RQ1To what extent does kernel-level execution path selection vary across repeated executions of the same program on a modern platform?
  • RQ2How does path variability manifest when two identical programs are executed in parallel on separate cores?
  • RQ3Can the observed non-determinism in kernel execution paths be used to generate effective diversity in replicated architectures?
  • RQ4Is the probability of both replicas taking the same rare, faulty path low enough to enable fault detection in a 2-out-of-2 configuration?
  • RQ5Can inherent execution non-determinism serve as a viable architectural mechanism for detecting residual faults in safety-critical systems?

Key findings

  • Repeated execution of the same program on a modern platform results in measurable variability in kernel-level execution paths, even with identical inputs.
  • When two instances of the same program are executed in parallel on separate cores, their kernel execution paths diverge significantly, indicating inherent non-determinism.
  • The non-determinism in execution paths is attributed to complex interactions in modern hardware and software stacks, including caching, branch prediction, and scheduling.
  • The likelihood of both replicas taking the same rare, faulty path is low, supporting the feasibility of 2-out-of-2 fault detection using inherent diversity.
  • Residual systematic faults in rarely executed code paths are likely to be activated independently in different replicas, enabling detection via comparison.
  • The study confirms that inherent diversity from execution non-determinism can be exploited as an architectural fault detection mechanism in safety-critical systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.