BPDU
Un BPDU ou “Bridge Protocol Data Unit” est le type de transmission qu’utilisent les switchs, bridges et points d’accès pour déterminer quels liens prioriser et quels liens désactiver. Un BPDU contient l'identité d'une switch (spécifiquement son adresse MAC de base) ainsi que la priorité configurée sur le bridge/commutateur. Lorsqu'il s'agit d'un BPDU pour un protocol agnostique aux VLANs, il sera acheminé sur le VLAN natif (VLAN 1) tandis que s'il s'agit d'un BPDU d'un protocole permettant l'établissement de ponts racine différents par VLANs, il circulera avec son identifiant de VLAN.
Dans l'exemple suivant, le BPDU indique que l'appareil élu comme pont racine est le bridge avec l'adresse MAC aa:bb:cc:00:01:00 et que le coût pour le rejoindre par ce chemin est 100.
Spanning Tree Protocol
Protocol Identifier: Spanning Tree Protocol (0x0000)
Protocol Version Identifier: Spanning Tree (0)
Root Identifier: 4096 / 1 / aa:bb:cc:00:01:00
Root Path Cost: 100
Bridge Identifier: 32768 / 1 / aa:bb:cc:00:02:00
Port identifier: 0x8010
Hello Time: 2
Forward Delay: 15
Dans l'exemple suivant, l'appareil est directement connecté au pont racine, le coût est donc de 0 ici.
Spanning Tree Protocol
Protocol Identifier: Spanning Tree Protocol (0x0000)
Protocol Version Identifier: Spanning Tree (0)
Root Identifier: 4096 / 1 / aa:bb:cc:00:01:00
Root Path Cost: 0
Bridge Identifier: 4096 / 1 / aa:bb:cc:00:01:00
Hello Time: 2
Forward Delay: 15