
A SONiC switch is rarely just a switch. It is a leaf, a spine, a storage fabric, an AI back-end, a mirror aggregation point and a CI target — often in the same rack. Every additional role adds state that a warm reboot has to bring back intact.
The roles
Top-of-rack leaf. The most common deployment. A 32- or 64-port 100/400G box sits at the top of a rack, runs BGP to the spines, and carries server traffic in a VXLAN EVPN fabric. The routing stack is FRR in a container; the ASIC does the encap and decap.
Spine. Fewer ports, higher speed, more buffers. The spine's job is to move east-west traffic between leaves and to hold the BGP route reflector or the fabric's anycast gateway. A spine failure is a fabric event, not a rack event.
Storage and AI back-end fabric. RoCEv2 is the standard for GPU clusters and scale-out storage. That makes the switch responsible for lossless behaviour: PFC, ECN, buffer thresholds and QoS schedulers. This is the role where the Mellanox scheduler overwrite stops being cosmetic.
Security and monitoring aggregation. SPAN and ERSPAN sessions copy traffic to analysers, intrusion detection and packet capture. The mirror session is ASIC state. It is also the only record of what happened on the wire after an incident. This is the role where a warm reboot that deletes mirror sessions turns a switch into a blind forwarding device.
Edge and DCI. A smaller but growing role: SONiC as the provider edge or the data-centre interconnect, running BGP with MPLS or SRv6, often on the same whitebox hardware as the leaf.
CI and validation. Every vendor and every large operator runs sonic-mgmt against a lab DUT. That is a role too, and it is where the fourth bug lives: a test that reboots the device to prove a BGP session survives an interface flap.
One day in the life
A packet arrives on Ethernet0. The ASIC, programmed by syncd, matches the destination MAC or the route, applies the egress queue and scheduler, and sends it out Ethernet52. Above that, orchagent keeps the ASIC view in sync with CONFIG_DB; FRR keeps BGP sessions up; LLDP advertises the port; the telemetry container samples counters; the mirror session copies a fraction of the flow to a capture host.
All of those are separate containers, separate processes, separate failure domains. All of them depend on the same ASIC programming path. That is the design's strength — you can restart BGP without touching forwarding — and its weakness — a stale mirror session or a rewritten scheduler is not a container crash, so nothing alerts.
Which defect bites which role
syncdfails to start on Marvell Prestera. Every role. Ifsyncdis down, no port is programmed. The switch is a chassis with fans and a login prompt.- Warm-reboot mirror deletion. The monitoring role. The switch keeps forwarding; the analysers stop receiving. Nothing in the forwarding plane notices.
- QoS probe scheduler overwrite. The storage and AI role. Latency-sensitive traffic degrades, and the first hypothesis is always capacity, not configuration loss.
- Test-triggered warm reboot on an ISSU-disabled DUT. The CI role. A test that was supposed to flap one interface reboots the box and drops every BGP session.
Why the role list is the risk list
Each role adds state that must survive a control-plane restart: routes, neighbours, mirror sessions, QoS schedulers, ACLs, buffer profiles, telemetry subscriptions. Warm reboot is a promise that all of it comes back. The promise is only as good as the least-tested subsystem.
A leaf that only forwards IP traffic can survive a sloppy warm reboot. A leaf that also mirrors, shapes and meters cannot. The more successful SONiC becomes, the more roles each switch takes on, and the larger the state surface that the next upgrade has to preserve.

Next: Part 4 — the price of open: how SONiC compares with Cumulus, Arista EOS, NX-OS and Junos, and where each alternative honestly wins.

Comments (0)