Ward Gateway Pair or Bedside Gateways: Where Failover Time Decides It
A redundant ward gateway pair keeps the clinical data path alive only if its failover finishes inside the alarm propagation budget. The real failover time includes the devices' reconnection time, and that figure is usually missing from the design review. Bedside gateways avoid the problem by making each failure small, but you pay for that in fleet size and patching load. The choice flips at one measurable point, and you can find it before the design freeze.
Two ways to fail
Option A is an active/standby pair per ward. It terminates every monitor, pump and ventilator session, handles HL7, MLLP and MQTT translation in one place, and keeps the cryptographic enclave and patient isolation policy at a single boundary. Option B puts a small gateway at each bed. It parses vitals and evaluates alarms locally, then forwards normalized data upstream, so losing the upstream link takes away only aggregation and charting while the bedside alarm keeps working. When A fails, the whole ward loses its data path until the standby takes over. When B fails, one patient loses it. Both designs work. They break in different ways, and the alarm and networked medical device risk standards (the IEC 60601 and 80001 families) require you to show how the alarm path survives that break.
The number that flips the decision
Measure the worst-case end-to-end failover time of the ward pair and compare it with your alarm propagation budget, which is the maximum time from a device raising an alarm condition to an annunciator a clinician actually hears. Many hospitals' alarm risk analyses set that budget at 5 seconds. Failover time has three parts: detecting that the active node is dead, promoting the standby with its session and subscription state, and getting every bedside device to deliver data to the new node. The first two parts are under your control and usually take a second or two. The third depends on the device. Modern devices that publish over MQTT with a short keepalive come back almost immediately. Legacy monitors on persistent MLLP TCP sessions, or behind serial-to-Ethernet bridges, reconnect on their own backoff timers. By my estimate that takes 30 to 90 seconds on common installed bases, and firmware you cannot change sets that number, not you.
Gray failure is the case that hurts
The dangerous fault in the ward pair is an active node that keeps answering heartbeats while its parser queue has stopped, because a malformed DICOM header or an HL7 segment storm has stalled one worker thread. In that state the standby never takes over, the devices see healthy TCP acknowledgements, and alarms sit in a buffer that nobody is draining. Bedside gateways have the same fault, but it stays contained to one patient, and a local watchdog on alarm evaluation latency can catch it within the budget. For the ward pair the fix is to make liveness mean data flowing all the way through. Health probes should inject a synthetic vitals frame and time how long it takes to reach the alarm output. A process that merely responds does not count as alive.
The decision rule: if any device class on the ward needs longer to reconnect than your alarm budget minus network transit, use bedside gateways for those beds, and if every class reconnects inside the budget, the ward pair wins on cost, attack surface and patch logistics.
Technical FAQ: Can a hybrid layout avoid choosing at all?
Yes, and it is often the right answer. Put bedside gateways only on beds with session-bound legacy devices and terminate everything else on the ward pair. The cost is two isolation models and two firmware pipelines to validate, so check whether your verification team can actually maintain both before you commit to it.