Skip to main content

Basic Network Fundamental - BPDU (Bridge Protocol Data Unit) priciple, Bridge ID, Bridge Priority Calculation, Pre-Vlan Spanning Tree

Introduction:

Understanding network fundamentals is essential for anyone learning networking or preparing for certifications like CCNA. In this guide, we explain Broadcast Storms, MAC Address Flapping, Spanning Tree Protocol (STP), STP Working, and Bridge Protocol Data Units (BPDUs) in simple words with easy examples.


1) What exactly are these BPDUs used for?



• Bridge Protocol Data Units (BPDUs) are the messages that are transmitted across LAN networks to enable switches to participate in Spanning Tree Protocol (STP) by gathering information about each other.

• It contains information regarding switch ports such as port ID, port priority, port cost, and MAC addresses.

• A switch sends BPDUs from their origin port to a multicast address with a destination MAC address.

• Switches use one field in the STP BPDU, the Bridge ID field, to elect a root bridge for the network.

• The switch with the lowest Bridge ID becomes the root bridge.

• All ports on the root bridge are put in a forwarding state.


2) What is the Bridge ID field?



• There is a bridge priority field, which is 16 bits in length, and then there is the MAC address of the switch, which is 48 bits in length.

• The default bridge priority is 32768 on all switches, so by default the MAC address is used as the tie-breaker (lowest MAC address becomes the root bridges).

• Therefore, by default switch with the lowest MAC address becomes the root bridge.


3) Bridge priority calculations?



• Bridge priority + extended system ID and the default bridge priority is 32768 on all switches.

• It’s because this field is 16 bits in length, and the most significant bit is set 1 by default. Therefore, the default bridge priority was 32768.


4) What is the PVST (Pre-Vlan Spanning Tree)?



• PVST stands for Per-VLAN spanning Tree and Its Cisco Proprietary protocol.

• PVST runs a separate STP ‘instance’ in each VLAN, so in each VLAN different interfaces can be forwarding or blocking.

• Example: One interface could be forwarding in VLAN1 but blocking in VLAN2 for example.

• By adding the VLAN ID into the bridge priority, the switch will have a different bridge ID in each VLAN.

• The max age timer is 20 seconds, and the listening and learning states are 15 seconds each, so it can take up to 50 seconds to respond to changes in the network.

Comments

Popular posts from this blog

Basic Network Fundamental - Network Switch Working principle, Half Duplex & Full Duplex, Difference between Switch vs Router

1 ) How Network Switch Work • When a device send frame to another device via switch, switch will receive the frame and check the source mac address availability in MAC Address table. • If it’s not available, then it will add the source MAC address into switch MAC address table. • Then switch check the destination device MAC address in the MAC address table, if its not available then the switch will flood the frame into all interfaces except source device connected interface. It’s called unknown unicast frame. • Once Frame reach the destination device, then destination device will reply to the switch. • Then switch will add the destination device MAC address into switch MAC Address table. • Then switch will forward the reply frame into source device interface, it’s called known unicast frame. 2) Different between Switch and Router • Switches keep a MAC address table with their known destination MAC addresses and routers keep a routing table with their known destination networks. •...

Basic Network Fundamental - VLAN, Broadcast Domain, Benefits of using the VLAN, Inter Vlan Routing Detail

1) What is the VLAN? • VLAN is partitioned and isolated broadcast domain into separate LAN network at Layer 2 (Data Link Layer). • The switch will consider each VLAN as a separate LAN and it will not forward traffic between VLAN’s. 2) What is the Broadcast Domain? • LAN is a group of devices (PCs, Servers, routers, switches, etc.) in a single location (home, office, etc.) • A LAN is a single broadcast domain, including all devices in that broadcast domain. 3) What is the benefit to using the VLAN? • When it comes to Performance - lots of unnecessary broadcast traffic can reduce network performance. • Whether it’s a broadcast from one end host or a switch that doesn’t know how to reach the destination MAC address, so it floods the frame, we should minimize unnecessary traffic in our network. • When it comes to Security – Even within the same office, you want to limit who has access to what. You can apply security policies on a router/firewall. • Because this is one LAN, PCs can reach ea...