Disclaimer - this is my best attempt to mimic MRC in a virtual lab. Real MRC lives in NIC hardware and detects a dead path within microseconds. Here the NIC is a small self-made Python app, so I call it mrc-style. Everything runs on veth links in containerlab, far from real hardware timing.

After reading about OpenAI’s MRC (previous posts) I wanted to see how the idea behaves next to a classic rail-optimized fabric.

The two labs

topologies

  • rail - 18 FRR switches, eBGP unnumbered, BFD 50 ms x3, per-flow ECMP. A server is 8 GPUs with one NIC each, GPU n talks to GPU n over rail n

rail full topology and configs

  • mrc-style - 32 FRR switches with static routes and one uN SID each, no routing protocol. A server is one NIC split into 8 ports, one per plane. The host writes the whole path into the IPv6 destination address, every switch shifts 16 bits and forwards

mrc-style full topology and configs

The Python app sends every packet on the next of 16 paths and probes each path every 50 ms. 3 lost probes in a row and the path is dropped, about the same budget as BFD on the rail side. Traffic is 32 QPs from srv1 to srv2, 1000 packets per second each, so 1 lost packet = 1 ms of that QP.

what the python app does

First runs

The first version had only spray (no outage), link (link drops traffic) and switch (switch control plane up, but the device drops 100% of its traffic).

first runs

What caught my eye : in link both lose about the same in total, but rail puts it all on 2 QPs. In switch rail lost half the QPs for the full 10 s every time, mrc-style had a ~190 ms blip. So I added two more fault scenarios.

The tests

  • spray - no fault, where does the traffic go spray
  • link - a T0-T1 link drops everything for 10 s, link stays up link
  • switch - a T1 stops forwarding data traffic(nft tables drop rule), BGP and BFD keep running on it switch
  • flap - the same link loses carrier for 2 s every 10 s, four times flap
  • t0down - a whole T0 goes down for 10 s t0down

Results

Two rounds. First the default detection on both sides, BFD 50 ms x3 on rail and a probe every 50 ms on mrc-style, 11 runs. Then both as fast as this lab allows : BFD 10 ms x3 and a probe every 1 ms, with the Python sender busy-looping on its own CPU core.

results

With 50 ms probes most of the mrc-style loss is the probing itself. With 1 ms probes a dead path is gone after 3-4 ms and the worst QP loses 1-2 packets.

Conclusions

  • the main difference is how traffic is spread. In mrc-style every QP is sprayed over all 16 paths, so a link, a T1 or a T0 only carries a slice of each QP. Losing one costs every QP a few packets, which MRC resends selectively. In rail a link, spine or leaf carries whole QPs, so losing one cuts those QPs off completely - 2 QPs for a link, half of them for a spine, a whole rail for a leaf
  • detection speed is everything for mrc-style. At 1 ms it loses 1-2 packets per QP in every fault, even flap is close to rail now, ~6 packets per flap against 0 (so on real hw this would be looking much better, while path probing is operating under 1ms)
  • 1 ms is about the floor of a Python app on veth links, and UDP instead of RDMA means retransmits aren’t in the numbers. Real MRC detects per packet in the NIC within microseconds
  • quite impressive to see the capabilities of the SRv6 approach here

What this virtual env. lab test doesn’t show

  • RDMA - traffic is UDP, lost packets are counted, retransmits aren’t modelled
  • congestion, buffers, PFC, incast, trimming
  • real timing - software forwarding on veth, milliseconds at best

Run it yourself

git clone https://github.com/punt2cpu/mrc-vs-rail.git && cd mrc-vs-rail
sudo ./lab.sh all                                 # default, 50 ms on both sides
sudo PROBE_MS=1 SPIN=1 BFD_MS=10 ./lab.sh all     # fast detection

Installs docker and containerlab if missing, builds the image, runs both labs and all tests. Needs kernel 6.1 or newer, Ubuntu 24.04 works. ./lab.sh watch rail in a second terminal shows the QPs live.