Inside the Control Plane

Site Admin · 3 Dec 2026 · Network Hardware & NOS

switchd programs the ASIC, FRR holds the sessions, NVUE turns intent into state. The advertisement path ends in a duplicate-suppression record that has to be invalidated on withdrawal — and isn't.

Cumulus is four daemons and a kernel pretending to be one switch. The bug is
in the layer that decides what to advertise — and the layer that forgets what
it already said.

The pieces

switchd is the ASIC driver. It takes the kernel's forwarding state and
programs the hardware tables. If switchd dies, the data plane does not
necessarily stop — the ASIC keeps forwarding what it has — but the switch
stops learning, and the control plane loses its hands.

FRR is the routing suite. bgpd holds the BGP sessions, parses UPDATEs,
runs policy, maintains the RIB, and decides what to advertise. The other FRR
daemons (zebra, ospfd, bgpd) share the routing table.

NVUE is the configuration and API layer. It turns declarative intent into
FRR and kernel state. Automation talks to NVUE, not to the FRR CLI.

The kernel holds the routing table and the neighbour state; switchd
translates it to the ASIC. This split is what lets a Linux box behave like a
switch: the control plane is ordinary Linux, the forwarding plane is not.

The advertisement path

When bgpd decides a prefix should go to a peer, it goes through four stages:

  1. Best-path selection in the RIB — choose one route per prefix.
  2. Export policy — permit, deny, or modify attributes.
  3. Adjacency advertisement — build the UPDATE for the peer.
  4. Duplicate suppression — if the resulting UPDATE is identical to the
    last one sent to that peer, skip it.

The fourth stage is the optimisation at the centre of this series. It is
implemented in FRR as bgp suppress-duplicates, and Cumulus enables it by
default.

What the suppression record has to remember

To skip a duplicate, the daemon needs a memory of what it last sent each peer:
a tuple of prefix, attributes, and peer. That memory is only valid while the
peer's view matches it.

Three events invalidate the memory:

The third is the one the bug misses. The withdrawal is sent correctly and
unconditionally; the record is not cleared. When the route returns with the
same attributes, the daemon compares against a memory that describes a state
the peer is no longer in, and sends nothing.

Why this is hard to see

Every layer reports health:

The only place the failure exists is the gap between "what I advertise" and
"what the peer received". That gap is not a local counter. It has to be
measured from the peer's side, or inferred from a monotonic drop in received
prefixes.

Where the design allowed it

Duplicate suppression is a performance feature. Performance features tend to be
written for the steady state and tested for the steady state. The invalidation
path is the part that only matters when things change — and "when things
change" is exactly when a fabric is least observable.

The next part climbs the ladder of smaller Cumulus failures that share this
shape: a control-plane state that looks healthy while the forwarding state it
represents is wrong.

Next: Part 6 — the small failures first: switchd crash loops, boot
corruption, and sessions that stay up while the routes are broken.