Green Liveliness, Stale Data: Reading Middleware Health Telemetry Under Partial Failure

When a DDS participant reports itself alive, it has proven one thing only: some thread in that process can still put heartbeats on the network. That does not show that the sensor fusion loop behind it is producing samples, or that those samples are fresh. Most bench and fleet dashboards merge these two facts into one green tile. That merge is where design reviews start trusting numbers they should not.

What the liveliness bit actually measures

With AUTOMATIC liveliness, the DDS implementation asserts liveliness for every writer in the participant, and it does so from its own internal thread. That is measured data, and it is reliable for what it covers: the process exists, its network stack works, and discovery is intact. The dashboard invites a further conclusion, that the application is healthy, and nothing in the protocol supports it. Zenoh liveliness tokens and the service discovery offers inside AUTOSAR Adaptive stacks work the same way, because the middleware runtime owns them, not the code that computes the payload. So when the application thread deadlocks on a mutex or spins in a degraded state, the runtime keeps talking and the tile stays green.

The failure that hides behind a healthy tile

Take a perception node whose callback blocks inside a driver call. Its iceoryx publisher stops loaning chunks, while the gateway that bridges it onto DDS keeps asserting liveliness on its behalf. A subscriber with KEEP_LAST history and depth one that polls instead of waiting for new data gets handed the last valid object list on every read, and the planner keeps acting on a scene that no longer exists. The telemetry does contain the truth: the sample sequence number has stopped, and the source timestamp is frozen. What the dashboard shows is a rate averaged over a window, and that average decays slowly enough to look like a brief dip rather than a dead producer. The measured facts are the frozen counter and timestamp. The reassuring part is inference drawn from a smoothed aggregate.

A rule for the review

If the signal that says a component is healthy comes from a different thread, process or runtime than the one that produces the data, treat that signal as inference, and before you approve any fallback that depends on it, ask for a measurement taken on the data path itself, such as a deadline miss count or the age of the source timestamp.

Binding health to the data path

Deadline QoS is the cheapest way to turn absence into a measurement. If both writer and reader declare a period of 20 ms, the reader raises a requested deadline missed status whenever no new sample arrives in time, and no heartbeat thread can fake that event. MANUAL_BY_TOPIC liveliness goes further, because the application asserts it only after a computation succeeds, so the liveness signal and the payload share the same fate. Functional safety standards such as ISO 26262 already push in this direction through end-to-end protection counters and receiver timeouts. Many teams treat those as a checkbox for the safety case, when they are the most honest freshness telemetry the system has. iceoryx's RouDi daemon helps with a different failure: it detects processes that have actually died and reclaims their chunks, which protects the shared memory pool, but it cannot see a process that is alive and hung. The cost is false degradations. My estimate is that a deadline set close to the nominal period will trip under ordinary CPU contention on a loaded zonal controller, so teams usually start around twice the period and tighten it from measured jitter. Detection is the easy half, though. The next decision is which component owns the reaction to a missed deadline, because detection without a defined degraded mode only pushes the silent failure one layer down.

Does a steady sample rate on the dashboard prove the data is fresh?

No. A rate counts arrivals at the subscriber, and a bridge or recorder republishing a cached sample can keep that count steady. Freshness is proven only by comparing the source timestamp or the end-to-end counter against the reader's clock, with a known bound on the clock offset between the two ECUs.

Back to SDVMiddleware · Domains

← Back to SDVMiddleware
Engineering & Architecture Brief

Green Liveliness, Stale Data: Reading Middleware Health Telemetry Under Partial Failure

When a DDS participant reports itself alive, it has proven one thing only: some thread in that process can still put heartbeats on the network. That does not show that the sensor fusion loop behind it is producing samples, or that those samples are fresh. Most bench and fleet dashboards merge these two facts into one green tile. That merge is where design reviews start trusting numbers they should not.

What the liveliness bit actually measures

With AUTOMATIC liveliness, the DDS implementation asserts liveliness for every writer in the participant, and it does so from its own internal thread. That is measured data, and it is reliable for what it covers: the process exists, its network stack works, and discovery is intact. The dashboard invites a further conclusion, that the application is healthy, and nothing in the protocol supports it. Zenoh liveliness tokens and the service discovery offers inside AUTOSAR Adaptive stacks work the same way, because the middleware runtime owns them, not the code that computes the payload. So when the application thread deadlocks on a mutex or spins in a degraded state, the runtime keeps talking and the tile stays green.

The failure that hides behind a healthy tile

Take a perception node whose callback blocks inside a driver call. Its iceoryx publisher stops loaning chunks, while the gateway that bridges it onto DDS keeps asserting liveliness on its behalf. A subscriber with KEEP_LAST history and depth one that polls instead of waiting for new data gets handed the last valid object list on every read, and the planner keeps acting on a scene that no longer exists. The telemetry does contain the truth: the sample sequence number has stopped, and the source timestamp is frozen. What the dashboard shows is a rate averaged over a window, and that average decays slowly enough to look like a brief dip rather than a dead producer. The measured facts are the frozen counter and timestamp. The reassuring part is inference drawn from a smoothed aggregate.

A rule for the review

If the signal that says a component is healthy comes from a different thread, process or runtime than the one that produces the data, treat that signal as inference, and before you approve any fallback that depends on it, ask for a measurement taken on the data path itself, such as a deadline miss count or the age of the source timestamp.

Binding health to the data path

Deadline QoS is the cheapest way to turn absence into a measurement. If both writer and reader declare a period of 20 ms, the reader raises a requested deadline missed status whenever no new sample arrives in time, and no heartbeat thread can fake that event. MANUAL_BY_TOPIC liveliness goes further, because the application asserts it only after a computation succeeds, so the liveness signal and the payload share the same fate. Functional safety standards such as ISO 26262 already push in this direction through end-to-end protection counters and receiver timeouts. Many teams treat those as a checkbox for the safety case, when they are the most honest freshness telemetry the system has. iceoryx's RouDi daemon helps with a different failure: it detects processes that have actually died and reclaims their chunks, which protects the shared memory pool, but it cannot see a process that is alive and hung. The cost is false degradations. My estimate is that a deadline set close to the nominal period will trip under ordinary CPU contention on a loaded zonal controller, so teams usually start around twice the period and tighten it from measured jitter. Detection is the easy half, though. The next decision is which component owns the reaction to a missed deadline, because detection without a defined degraded mode only pushes the silent failure one layer down.

Technical FAQ: Does a steady sample rate on the dashboard prove the data is fresh?

No. A rate counts arrivals at the subscriber, and a bridge or recorder republishing a cached sample can keep that count steady. Freshness is proven only by comparing the source timestamp or the end-to-end counter against the reader's clock, with a known bound on the clock offset between the two ECUs.

Related Architecture Specifications (AUTOMOTIVESDV): chargingos.com · isacdrive.com · mobilitytwins.com

More Technical Articles on sdvmiddleware.com

AUTOSAR Adaptive ara::com vs Native OMG DDS: Performance and Safety →Zero-Copy Shared Memory IPC with Eclipse iceoryx: Sub-Microsecond Video Transfer →Bridging Zonal ECUs to Central Compute: Deploying Eclipse Zenoh as a Scalable Router →