Why We Did Not Put the Hardware Bench Inside the Global Lockstep
The decision under review is how the city-scale traffic and radio simulation shares time with the physical onboard units on the hardware-in-the-loop bench. We rejected a single conservative lockstep across every federate. Instead, the bench runs on wall clock inside a local bubble, and the bubble consumes the large-scale world through a bounded-staleness interface. The reason is failure behaviour: when one partition stalls, the hardware partition has to keep producing valid evidence, or at least know exactly when it stopped.
The option we turned down, stated at its best
Global lockstep is the cleanest design on paper. Traffic microsimulation, the network simulator, the ray-traced channel model for urban canyons and the HIL gateway all advance through one synchronization barrier with a 10 ms step, so every message an onboard unit receives is causally consistent with the exact vehicle positions and fading state of that step. Results can be reproduced to the bit, a defect found in the field can be replayed with identical timing, and the whole federation fits neatly into co-simulation interface standards such as FMI, which our tooling and our auditors already understand. For pure software runs this is still the configuration we use, and nothing in this record argues against it there.
Where lockstep breaks once real silicon joins
A barrier is only as fast as its slowest member, and in our workload the slowest member is not stable. Channel computation spikes whenever a dense intersection fills with reflectors, and the network simulator spikes when channel congestion control kicks in across thousands of transmitters at once. In software, a late step just stretches simulated time. On the bench, the onboard unit cannot be paused: its message scheduler, its certificate checks and its misbehaviour detection all run on their own clocks, so a stalled barrier turns into missing receptions, expired neighbour tables and a device that correctly concludes the world has gone silent. The failure mode we kept seeing was exactly that: one federate overruns, the barrier holds, the hardware logs a perfectly legitimate fault that never happened in the scenario, and the run is silently invalid because nothing upstream flagged the overrun.
What the chosen design does when a partition fails
The bench owns a local bubble, an estimated few hundred vehicles within radio range of the device under test, simulated in real time at lower fidelity, while the large-scale world feeds it states and channel parameters asynchronously. If the large-scale partition falls behind, the bubble dead-reckons the affected vehicles and keeps the last valid fading statistics, so the onboard unit keeps seeing a plausible neighbourhood instead of silence. Every sample produced on extrapolated input carries a staleness tag, and once staleness crosses a threshold set per test case, the gateway marks the segment as non-evidence rather than letting it pass as a clean result. If the bubble itself fails, the gateway stops transmission outright, because a device receiving nothing is a recognisable state, while a device receiving wrong data is not. We gave up bit-exact reproducibility across the coupling interface; replays are now reproducible within the bubble and statistically consistent outside it, and that cost has to be accepted in the test plan, not discovered later.
The condition that would have reversed this decision is measurable, so we apply it as a rule: if the slowest federate's step time at the 99.9th percentile, measured on our densest target scenario, stays comfortably below the 10 ms synchronization step (our estimate of comfortable is half the step), lockstep with hardware wins on reproducibility, and we should switch back, because then the stall that drives the whole bubble design simply stops happening; until that holds, the open question for the freeze is who owns the per-test staleness threshold, since setting it too loose launders extrapolated data into certification evidence and setting it too tight throws away most of the dense-traffic runs we built the platform for.
Technical FAQ: Does the bubble make results incomparable with pure software runs?
Only across the coupling boundary. Inside the bubble the device sees deterministic inputs, and any segment that ran on extrapolated large-scale data is tagged, so comparisons against software lockstep runs should be restricted to untagged segments.