Skip to main content
QUICK REVIEW

[Paper Review] Xronos: Predictable Coordination for Safety-Critical Distributed Embedded Systems

Soroush Bateni, Marten Lohstroh|arXiv (Cornell University)|Jul 19, 2022
Distributed systems and fault toleranceComputer Science5 citations
TL;DR

Xronos is a deterministic, open-source middleware framework for safety-critical distributed embedded systems that replaces nondeterministic pub-sub coordination with time-ordered, logical execution semantics based on LINGUA FRANCA. It ensures predictable behavior under timing assumptions, detects violations via application-specific fault handlers, and achieves throughput comparable to ROS 2 and MQTT with manageable latency overhead across diverse hardware platforms.

ABSTRACT

Asynchronous frameworks for distributed embedded systems, like ROS and MQTT, are increasingly used in safety-critical applications such as autonomous driving, where the cost of unintended behavior is high. The coordination mechanism between the components in these frameworks, however, gives rise to nondeterminism, where factors such as communication timing can lead to arbitrary ordering in the handling of messages. In this paper, we demonstrate the significance of this problem in an open-source full-stack autonomous driving software, Autoware.Auto 1.0, which relies on ROS 2. We give an alternative: Xronos, an open-source framework for distributed embedded systems that has a novel coordination strategy with predictable properties under clearly stated assumptions. If these assumptions are violated, Xronos provides for application-specific fault handlers to be invoked. We port Autoware.Auto to Xronos and show that it avoids the identified problems with manageable cost in end-to-end latency. Furthermore, we compare the maximum throughput of Xronos to ROS 2 and MQTT using microbenchmarks under different settings, including on three different hardware configurations, and find that it can match or exceed those frameworks in terms of throughput.

Motivation & Objective

  • To address the nondeterminism in widely used pub-sub frameworks like ROS 2 and MQTT, which can lead to unpredictable behavior in safety-critical systems such as autonomous vehicles.
  • To design a coordination framework that guarantees deterministic execution despite variable communication delays and clock drift.
  • To provide mechanisms for detecting timing violations and enabling application-level fault handling when assumptions are breached.
  • To demonstrate that deterministic coordination can be achieved with acceptable performance overhead on real embedded platforms.
  • To enable seamless migration from ROS 2 by porting a full-stack autonomous driving system (Autoware.Auto) to Xronos with minimal refactoring.

Proposed method

  • Xronos uses logical time to enforce deterministic execution order across distributed components, ensuring that message processing is predictable and repeatable.
  • It integrates with physical time via clock synchronization, enabling real-time interaction with sensors and actuators while maintaining logical determinism.
  • The framework supports two coordination mechanisms: a decentralized coordinator emphasizing availability during network degradation, and a centralized coordinator emphasizing consistency under delayed inputs.
  • Fault detection is achieved by monitoring adherence to safe-to-process bounds; violations trigger user-defined fault handlers.
  • Xronos supports both logical and physical connections, with the latter offering up to 7x higher throughput in microbenchmarks.
  • It leverages the LINGUA FRANCA coordination language, which combines features from synchronous languages, actors, and discrete-event systems, with time as a first-class citizen.

Experimental results

Research questions

  • RQ1Can a pub-sub-based coordination model in ROS 2 lead to nondeterministic behavior in safety-critical autonomous driving systems?
  • RQ2To what extent can logical time-based coordination reduce nondeterminism in distributed embedded systems without sacrificing performance?
  • RQ3How does Xronos compare to ROS 2 and MQTT in terms of throughput and end-to-end latency across diverse hardware platforms?
  • RQ4Can fault detection and application-level recovery be effectively integrated into a real-time coordination framework?
  • RQ5What is the performance overhead of clock synchronization and fault detection mechanisms in Xronos?

Key findings

  • Xronos achieved maximum throughput of 10.14 Mbps in decentralized mode without clock synchronization, dropping to 7.54 Mbps with synchronization, indicating a low performance impact.
  • Throughput scaled roughly linearly with the number of federates and message size, demonstrating predictable and scalable performance.
  • Physical connections in Xronos delivered up to 7x higher throughput than logical connections in microbenchmarks.
  • Clock synchronization introduced a measurable but low overhead, with synchronization errors consistently below 10 microseconds.
  • The port of Autoware.Auto to Xronos successfully eliminated previously undetectable timing faults and enabled detection of violations of timing assumptions.
  • Xronos matched or exceeded ROS 2 and MQTT in maximum throughput across three hardware platforms: PC, NVIDIA Jetson AGX Xavier, and a heterogeneous two-node embedded system.

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.