Relay auto-election, make-before-break: both ends meet at the best relay they share
Each end STUN-sweeps its relay candidates and advertises to the peer, over the relay control channel, its RTT to every relay that is still answering — a relay that stopped answering leaves the vector, so the peer stops ranking it too. Both then rank the relays they hold in common by the combined round trip — my leg plus your leg, the cost a relayed packet actually pays — with a hash tie-break, and arrive at the same answer independently, with no negotiation. Exactly relay_paths sessions stay active. When a relay stops answering, both sides drop it within two sweeps and elect the same next-best relay; when one is replaced while still working, the outgoing relay keeps carrying for a 20 s grace, make-before-break. With a punched direct path up, killing both relays cost 0% loss over 123 seconds — relays are warm standbys, not the path. Measured