Proving NVMe-oF Failover Under Saturation, One Tagged Block at a Time

A multipath NVMe-oF fabric that fails over cleanly at idle tells you very little about how it fails over at saturation. Under load, several things happen at once and compete for the same controller CPU and queue slots: the path loss, the ANA state transition, the new encrypted session and the drain of in-flight commands. That contention is where the outage happens. A qualification plan for a sovereign storage fabric has to cause that contention on purpose. It should pass only if every acknowledged write survives intact, not merely if no error message appears.

Why an idle failover proves nothing

In a hardware-encrypted fabric, losing a path is more than a routing event. The surviving controller has to take over the orphaned queues, and the host has to set up an authenticated, encrypted session on the alternate port. If an external key manager wraps the media keys, the unwrap may also sit on the critical path. At idle each step finishes quickly and in order. At saturation each one waits behind real I/O. The survivor is already near its command ceiling, its crypto engine is busy with data traffic, and the key manager may be answering every host in the enclave at once because they all lost the same switch. The result is a specific failure mode. In-flight commands on the dead path outlive the host's keep-alive timeout, so the host declares the controller lost and retries on the survivor while the originals may still be in flight. A stale retry can then overwrite a newer version of the same block that was already acknowledged.

The test that catches it

Run a sustained mixed workload that keeps the surviving controller near saturation, using a realistic read and write mix rather than a synthetic burst. Every write carries a tag with its logical address, a monotonic sequence number and a checksum, so later reads can prove which version of each block survived. While that load runs, cut one fabric path at the physical layer. Let the harness time the cut to a moment of high in-flight depth rather than a fixed clock time, because a cut during a lull only tests the easy case. Repeat the cut against the key manager link, against a single controller, and against a switch shared by several hosts. The shared switch matters most, because that is where session setups and key unwraps from many hosts pile up together. After each event, read back the entire written range and check the tags. A missing sequence number is lost data, and an older sequence number found where a newer write was acknowledged is a reordering bug. Either one disqualifies the configuration, however fast the fabric recovered. Log the completion latency of every individual I/O instead of averages, because the evidence you need is the slowest command that finished during the transition.

The decision rule is blunt: if the slowest I/O completed during any injected fault comes within half of the host's keep-alive timeout, which Linux fabrics hosts set to 5 s by default, or if a single tag fails verification, the configuration does not qualify, however good its steady-state numbers look.

What the margin buys and what it costs

There are two ways to keep failover latency well under the timeout. You can reserve headroom on each controller, which is capacity you pay for and never use in normal operation, or you can lengthen the timeout, which makes the host slower to notice a path that really is dead. Sovereign deployments add a third constraint. Cryptographic modules validated under schemes such as FIPS 140 or their national equivalents usually cannot be reconfigured freely after certification, so a firmware change that speeds up session setup can reopen the validation. As an estimate, fabrics that pass this test with the key manager on the failover path end up reserving between a quarter and a third of controller capacity as standing headroom. The next decision is whether to keep the media keys in the controller's local HSM, which removes the key manager from the failover path but gives up central, immediate revocation. Run the same tagged fault campaign against both designs before you choose, because the gap between them only appears under load.

Is disabling a switch port in software an acceptable substitute for pulling a cable?

It works for the many repetitions you need to find intermittent reordering. The runs that sign off qualification should still use physical pulls or optic failures, because an administrative shutdown gives the host a clean link-down signal that a dying transceiver never sends, and that missing signal is what stretches the time before the host notices the path is gone.

Back to SovereignSAN · Domains

← Back to SovereignSAN
Engineering & Architecture Brief

Proving NVMe-oF Failover Under Saturation, One Tagged Block at a Time

A multipath NVMe-oF fabric that fails over cleanly at idle tells you very little about how it fails over at saturation. Under load, several things happen at once and compete for the same controller CPU and queue slots: the path loss, the ANA state transition, the new encrypted session and the drain of in-flight commands. That contention is where the outage happens. A qualification plan for a sovereign storage fabric has to cause that contention on purpose. It should pass only if every acknowledged write survives intact, not merely if no error message appears.

Why an idle failover proves nothing

In a hardware-encrypted fabric, losing a path is more than a routing event. The surviving controller has to take over the orphaned queues, and the host has to set up an authenticated, encrypted session on the alternate port. If an external key manager wraps the media keys, the unwrap may also sit on the critical path. At idle each step finishes quickly and in order. At saturation each one waits behind real I/O. The survivor is already near its command ceiling, its crypto engine is busy with data traffic, and the key manager may be answering every host in the enclave at once because they all lost the same switch. The result is a specific failure mode. In-flight commands on the dead path outlive the host's keep-alive timeout, so the host declares the controller lost and retries on the survivor while the originals may still be in flight. A stale retry can then overwrite a newer version of the same block that was already acknowledged.

The test that catches it

Run a sustained mixed workload that keeps the surviving controller near saturation, using a realistic read and write mix rather than a synthetic burst. Every write carries a tag with its logical address, a monotonic sequence number and a checksum, so later reads can prove which version of each block survived. While that load runs, cut one fabric path at the physical layer. Let the harness time the cut to a moment of high in-flight depth rather than a fixed clock time, because a cut during a lull only tests the easy case. Repeat the cut against the key manager link, against a single controller, and against a switch shared by several hosts. The shared switch matters most, because that is where session setups and key unwraps from many hosts pile up together. After each event, read back the entire written range and check the tags. A missing sequence number is lost data, and an older sequence number found where a newer write was acknowledged is a reordering bug. Either one disqualifies the configuration, however fast the fabric recovered. Log the completion latency of every individual I/O instead of averages, because the evidence you need is the slowest command that finished during the transition.

The decision rule is blunt: if the slowest I/O completed during any injected fault comes within half of the host's keep-alive timeout, which Linux fabrics hosts set to 5 s by default, or if a single tag fails verification, the configuration does not qualify, however good its steady-state numbers look.

What the margin buys and what it costs

There are two ways to keep failover latency well under the timeout. You can reserve headroom on each controller, which is capacity you pay for and never use in normal operation, or you can lengthen the timeout, which makes the host slower to notice a path that really is dead. Sovereign deployments add a third constraint. Cryptographic modules validated under schemes such as FIPS 140 or their national equivalents usually cannot be reconfigured freely after certification, so a firmware change that speeds up session setup can reopen the validation. As an estimate, fabrics that pass this test with the key manager on the failover path end up reserving between a quarter and a third of controller capacity as standing headroom. The next decision is whether to keep the media keys in the controller's local HSM, which removes the key manager from the failover path but gives up central, immediate revocation. Run the same tagged fault campaign against both designs before you choose, because the gap between them only appears under load.

Technical FAQ: Is disabling a switch port in software an acceptable substitute for pulling a cable?

It works for the many repetitions you need to find intermittent reordering. The runs that sign off qualification should still use physical pulls or optic failures, because an administrative shutdown gives the host a clean link-down signal that a dying transceiver never sends, and that missing signal is what stretches the time before the host notices the path is gone.

Related Architecture Specifications (SOVEREIGNINFO): sovereigncan.com · sovereignsdn.com · digitalgeopatriation.com

More Technical Articles on sovereignsan.com

Comparative IOPS and IO Latency Profiling: NVMe-oF RoCEv2 vs Legacy Fibre Channel SANs →Evaluating Hardware-Enforced Namespace Isolation Against Storage Side-Channel Exfiltration →Fault Injection Under Saturation in Hardware-Encrypted NVMe-oF Fabrics →