Inline P4 Mirroring or Passive Taps: Where Spine Failure Decides the Packet Broker
The question is whether visibility runs on the spine pipeline or beside it. Folding broker functions into the P4 fabric removes a tier, removes optical taps and puts filtering next to forwarding, which looks cheaper and cleaner until a spine fails. Then the fabric loses capacity and telemetry at the same moment, and the surviving spines must carry rerouted production traffic plus the mirror copies that operations needs to diagnose the incident. The design flips on one quantity: the headroom left on a surviving spine after reconvergence.
Two failure domains, or one
In the integrated option, each spine runs a P4 program that forwards, truncates, samples and steers mirror sessions to collector ports, so the broker is simply more match-action stages on hardware you already own. That gives per-flow selection at line rate and in-band telemetry without a separate chassis, but it couples fate: a bad pipeline compile, a control-plane restart or a silicon fault takes forwarding and observability down together. The dedicated option puts passive optical taps on the spine uplinks and feeds an out-of-band broker tier. A tap has no power and no software, so it fails open by physics, and a dead broker never touches production. The price is optical: a 70/30 split adds roughly 1.5 to 2 dB of insertion loss on the live path, and on 800G short-reach links built to Ethernet optical PMD specifications such as IEEE 802.3, that loss can consume most of the margin a reach-limited link was designed with.
What happens during reconvergence
When one of N spines drops, ECMP rehashes its flows across the survivors, and each one jumps from utilization u to about u·N/(N−1), and the mirror copies redistribute with them. On a P4 spine those copies compete for the same egress buffers and replication bandwidth, so the switch does exactly what it is configured to do under pressure: it drops mirror traffic first to protect production, or, worse, it protects mirror sessions badly and lets them inflate microbursts during the rehash. Either way, the failure mode is a gap in capture covering precisely the seconds when ECMP polarization, black holes and asymmetric loss would have been visible. Taps do not have this problem, because the copy is made in glass, before any queue, and broker overload stays on the broker.
The decision rule
Compute u·N/(N−1) + m for a surviving spine, where m is the mirror load as a fraction of spine capacity, and if the result stays below about 0.85 the integrated P4 fabric wins, while above it you should buy the taps and the broker tier.
Where it lands in practice
Spine count does most of the work. As an estimate, a four-spine fabric running at 60 percent climbs to 80 percent after one failure, and any meaningful mirror load pushes it past the line, so small high-throughput spines favour passive taps despite the dB penalty. With 16 or more spines the rehash factor shrinks toward 1, the headroom absorbs both production and mirror, and integration wins because the tap loss and the extra chassis no longer buy you anything. The risk that remains in the integrated case is shared software fate, which you contain with staged P4 program rollout and a hitless fallback image, not with more bandwidth.
Technical FAQ: Can we start integrated and add taps later?
Only if you reserve the optical budget now: retrofitting a tap means re-qualifying every link it sits on, so if the link design has no spare margin for the split, that path is closed after the design freeze.