When One Echelon Stalls: Load Testing Time Management in a Supply Chain Twin
A conservative discrete-event federation can fail without crashing. One logical process stops granting time and global virtual time freezes. Every dashboard downstream keeps showing the last consistent state as if it were current. Functional tests never see this, because it only happens when event density gets high enough that lookahead windows shrink and one slow federate ends up setting the clock for the whole supply network.
Why the failure hides at low load
Under conservative synchronization, a logical process may only advance once every input channel guarantees that no earlier event can still arrive. Lookahead and null messages carry that guarantee. At test bench volumes the lookahead of a port or plant model is wide, so a federate that answers late still lands inside the window and the federation absorbs the delay. Replay a peak season scenario and the picture changes: purchase orders, carrier updates and stochastic disruption draws pile up close together in simulated time, effective lookahead narrows, and null message traffic grows faster than real traffic. The slowest federate's wall-clock response becomes the binding constraint. A tier-two supplier adapter waiting on an external ERP call can then hold back the entire multi-echelon run. Distributed simulation interoperability standards in the HLA family define how time is granted, but they don't say what a federation should do when a member stops asking for it, so that policy is yours to write and yours to verify.
The test: stall one federate at production event rates
Run the twin with the complete echelon topology instantiated, against a replayed peak demand trace at full production event rate, and inject a stall into one logical process. Do not kill it. Keep its network connection alive and leave its time advance request open. A crashed federate is caught by any heartbeat, but a stalled one passes every liveness probe, and that is the failure that happens in the field. Instrument global virtual time advance per wall-clock second at the federation layer, and record query latency and staleness stamps at the analytics layer. The test passes when, within the configured stall bound of 90 s of wall-clock time, the federation detects the frozen clock, removes the federate from the time-constrained set, and puts a surrogate in its place that samples the last calibrated lead-time distribution. Every risk output after that point must name the node that is running on the surrogate. The test fails if global virtual time stays flat while outputs keep arriving with fresh timestamps.
What the surrogate must not do
The surrogate keeps the twin answering, but it also erases the variance that made the stalled node worth modelling, so the test must also assert two things: bottleneck rankings computed with a surrogate in place are reported as conditional, and they never flow back into the calibration store as observed behaviour.
A decision rule for the qualification plan
Set the stall bound from the decision cadence the twin serves, not from what the infrastructure is comfortable with. If the expected recovery time of a stalled federate exceeds the time remaining before the decision the twin feeds, isolate and substitute. Otherwise, wait and flag the outputs as delayed. A correct expediting answer that arrives after the carrier cutoff is worth less than a flagged approximation that arrives before it. Repeat the injection across the topology, starting with high fan-in nodes such as consolidation hubs. As an estimate, a small handful of hubs carry most of the time coupling in a typical network, and stalling one of them behaves very differently from stalling a leaf supplier. Rejoin is still an open problem. A recovered federate is behind in simulated time and must either be fast-forwarded on reconstructed state or restarted from a checkpoint, and each path needs its own load test before the plan can claim the federation survives a partial failure.
Technical FAQ: Why inject a stall instead of terminating the federate process?
A terminated process trips heartbeats and connection timeouts, so most federations already handle it. A stalled process stays connected and looks healthy while holding global virtual time back, which is the condition your detection and isolation logic actually has to catch.