Sizing a Neural Ingest Path That Survives Losing a Link
Size the ingest fabric for the state after the first failure, not for the healthy steady state. A multi-thousand-channel ECoG stream has no retransmission budget worth relying on, because the decoder downstream is waiting on every frame. The real work is to find out what the surviving links, buffers and compression stages must absorb once one element drops out, and then to make that degraded state the design point.
The one calculation, start to finish
Start from the per-channel sampling rate of 30 kHz. This is the only fixed parameter here, and everything else follows from it. The raw aggregate is R = channels × f_s × word width, and the wire rate is R(1 + o), where o covers framing, timestamps and sequence counters. Estimate one: ten thousand channels at 16-bit words give R ≈ 4.8 Gbit/s raw, with an error bar of roughly ±15% once overhead and a realistic choice of word width are included. With N parallel links of capacity C each, the healthy per-link load is R(1 + o)/N. The load that matters is R(1 + o)/(N minus 1), and it has to stay below ρC, where ρ is the utilization ceiling above which your switch or NIC starts dropping frames under bursty interrupt load.
Buffers cover the blackout, links cover the aftermath
Link redundancy does nothing during the interval between failure and reroute. In that window only buffering on the acquisition side keeps samples from being lost. The required depth is B = R(1 + o) × t_f, where t_f is detection plus failover time. Estimate two: if you assume a failover window of about half a second, which is plausible for link loss detection and path reconvergence but optimistic for a full ingest node restart, then B ≈ 300 MB per array, and the error bar is dominated by t_f rather than by R. If the headstage or aggregation FPGA cannot hold that much memory, the failure mode is a silent gap. The stream keeps flowing after reroute, but a block of samples is gone, and spike sorters and closed-loop decoders will treat that block as neural silence unless sequence counters flag the hole explicitly.
Compression as the reserve capacity
When the inequality R(1 + o)/(N minus 1) ≤ ρC fails, adding a link is not the only remedy. A switchable compression stage can be the margin. Lossless coding of the wideband signal gives a variable ratio that depends on noise floor and electrode impedance, so it cannot be counted on as capacity. A lossy fallback that keeps spike band features and decimates the local field potential gives a bounded rate you can actually put in a budget. The trade-off is that the degraded mode now changes what the decoder sees, and that becomes a validation question rather than a networking one. Under medical device safety and software lifecycle standards such as IEC 60601 and IEC 62304, a mode switch that alters the clinical signal has to be specified, tested and logged as a defined operating state, not left as an emergent behaviour.
The decision rule is to provision N so that any single link or ingest node can be lost with the survivors still under ρC at the upper error bar of R, to size the acquisition buffer for the worst credible t_f rather than the typical one, and to use the lossy fallback only to cover the gap between those two when board space or power rules out another lane.
Technical FAQ: Should the error bar on R or on t_f drive the margin?
t_f, in most designs. R is bounded by channel count and word width, which you control, while failover time depends on switch firmware, node restart behaviour and driver timeouts that you can only measure. Characterize t_f on the actual hardware under load before freezing buffer depth, because a buffer sized from a datasheet number is where samples get lost.