BPDU filter

term

networking

Kept in this browser · My desk

A switch setting that stops a port from sending or receiving spanning tree BPDUs, which in effect takes the port out of spanning tree.

Cisco's Catalyst guide is blunt: enabling BPDU filtering on an interface is the same as disabling spanning tree on it and can result in loops; it is disabled by default. The Linux bridge documentation describes its disabled port state as also called BPDU filter, for an untrusted port such as a leaf virtual device. Juniper's nearest equivalent is BPDU protection with action drop, which keeps a port up while dropping BPDUs and is not supported on edge ports.

What it is. BPDU filtering is a switch port setting that stops the port from sending, and usually from receiving and processing, spanning tree BPDUs (bridge protocol data units), which in effect takes the port out of spanning tree. Its legitimate use is narrow: a port facing an end device that must never hear or speak spanning tree. Its danger is broad, because the BPDUs it hides are the only way the switch can notice that a second path to the same segment has appeared.

What the vendors say. Cisco's Catalyst guide is blunt: enabling BPDU filtering on an interface is the same as disabling spanning tree on it and can result in loops; it is disabled by default. In Cisco's description it keeps interfaces that are in a PortFast operational state from sending or receiving BPDUs. The Linux bridge documentation describes its disabled port state as also called BPDU filter, for an untrusted port such as a leaf virtual device. Juniper's nearest equivalent is BPDU protection with action drop, which keeps a port up while dropping BPDUs and is not supported on edge ports. The IEEE (Institute of Electrical and Electronics Engineers) 802.1Q management model has no filter setting at all; it defines how a port detects bridges, not how to stop hearing them.

Where BPDUs go when nobody runs the protocol. BPDUs are sent to the Bridge Group Address 01-80-C2-00-00-00, one of the reserved link-local addresses 01-80-C2-00-00-00 to 0F that the Linux source lists with their users (802.3 MAC Control, link aggregation, 802.1X port access, and 802.1AB LLDP (Link Layer Discovery Protocol) at 0E). A bridge that runs spanning tree consumes them. A bridge that does not run it has a choice, and the choice decides whether loops stay visible: Linux forwards the Bridge Group Address when STP (Spanning Tree Protocol) is off, with a source comment saying it must, to keep loop detection; Fortinet's FortiSwitchOS blocks STP packets arriving at any port unless the administrator ticks Flood BPDU Packets, an option offered only when MSTP (Multiple Spanning Tree Protocol) is disabled. A switch that passes BPDUs is transparent to the outer tree, which still sees and blocks a loop through it; a switch that drops them behaves like an unconfigured BPDU filter, which is exactly the case Aruba gives for adding probe-based loop protection.

A worked case. Access switch S has ports 7 and 8 cabled, by mistake, to the same small desk switch. With nothing configured, S sends BPDUs out of port 7, receives them back on port 8, sees two paths to the same segment and blocks one port. With BPDU guard on both ports, the first BPDU that arrives shuts the port. With BPDU filtering on both, S neither sends nor receives BPDUs there, both ports forward, and the first broadcast circulates: the filter has converted a recoverable mistake into a bridging loop.

Not a guard. A filter makes a rogue device's BPDUs disappear, and with them the switch's only way of noticing that a second path to the same segment has appeared, such as a second cable from the same desk or a small switch looped back on itself. BPDU guard, which disables the port when a BPDU arrives, and root guard, which blocks it only against a superior root claim, protect the tree; a filter switches the tree off for that port. Juniper's action drop sits in between: the port stays up, the BPDUs are dropped, and the operator relies on something else to find a loop.

When it is used anyway. Filtering appears where BPDUs would cause harm or noise: ports facing virtual machines and other leaf devices that should never take part, the Linux documentation's example of an untrusted port. In every such case the loop protection has to come from somewhere else: probe-based loop detection, storm control, a single cable by design, or a protocol that does not rely on the bridge tree.

What goes wrong. The classic failure is a filter left on a port that later faces a switch: the network works until someone adds a second cable. And because no error appears, a filter is easy to forget in an audit. Neighbours: BPDU, spanning tree, STP, root guard, BPDU guard, loop guard, loop detection and broadcast storm.

Also known as: bpdu filter, bpdu filtering, bpdufilter, filtro de bpdu

Sources

← Back to B Back to the glossary