Testing Emergency Preemption While the Digital Twin Is Drowning
Emergency preemption in a municipal C-ITS hub rarely fails on a quiet bench. It fails at evening peak, when the twin ingestion pipeline is saturated and a broker node or twin shard has just died. The qualification plan has to create that combination on purpose, because functional testing on an idle system will never show a priority request stuck behind a backlog of vehicle position updates. One test, run many times, tells you whether the preemption path is really isolated from the rest of the hub.
The failure you are hunting
The failure is head-of-line blocking after a partial failure. When a broker node or twin shard drops, clients reconnect and replay, consumers rebalance, and for a while the surviving nodes take a burst well above steady load. Signal priority requests travel in the ETSI and SAE message families for signal phase, intersection map and priority request and status. If they share partitions, worker pools or database connections with bulk telemetry and pricing events, they wait inside that burst. The controller gets the request too late, the ambulance reaches a red phase, and every dashboard still shows every component as healthy. Nothing crashed, which is exactly why this gets past functional testing.
Building the load that matters
Replay recorded peak traffic at a faster rate. Roughly three times the busiest observed hour is a reasonable starting envelope, though that figure is an estimate to tune against your own city. The replay has to include pricing gantry events and roadside sensor feeds, not only vehicle awareness messages. Into that stream, inject synthetic emergency vehicles on scripted routes that send priority requests through real roadside units or a faithful emulator, so each request crosses the same radio, backhaul and ingestion layers a real ambulance would. Then, at a random moment while the system is saturated, kill the leader of the partition that carries the busiest intersection cluster, or the twin shard that owns it. Repeat the run with a network partition instead of a clean kill, because a half-alive node that keeps accepting connections but stops acknowledging them causes worse backpressure than a dead one.
The pass criterion
Measure the time from the request leaving the vehicle to the acknowledgement at the signal controller interface, and fail the build if any request in the failover window takes longer than 1 s, or if the latency distribution moves at all between healthy and degraded runs, because any movement proves the preemption path shares a resource it should not.
What the same run tells you about pricing
Congestion pricing has the opposite tolerance: it can be late, but it must not be wrong. After the failover, check every charged trip against the ground truth of the injected scenario. Look for double charges caused by redelivered gantry events, and for missing charges from events that were acknowledged but never committed. If you find duplicates, the idempotency key is probably built from something that changes on redelivery, such as the broker offset or the arrival timestamp. One trade-off remains open. Giving preemption its own dedicated capacity means paying for hardware that sits idle almost all the time, while the cheaper option, priority queues on shared infrastructure, only passes this test if the priority still holds after the rebalance, so make that choice before the test bench is built, because the bench topology has to match it.
Technical FAQ: Why not rely on the controller's local detection as the safety net and skip this test?
Local optical or radio detection at the intersection is the right fallback, but you only benefit from it if the hub fails cleanly into it. A hub that is late but still answering can hold the controller waiting on a remote grant, and local detection never takes over. Run the same failover trial with an assertion that the controller drops to local preemption when the hub's acknowledgement misses its deadline. That handover is the part of the system that has to keep working when the central platform does not.