MikroTik Certified Switching Engineer (MTCSWE)
1 Introduction to Networking
1-1 Basic Networking Concepts
1-2 OSI Model
1-3 TCPIP Model
1-4 Network Devices
2 MikroTik RouterOS Basics
2-1 Introduction to RouterOS
2-2 RouterOS Interface Types
2-3 Basic Configuration
2-4 User Management
2-5 System Logging
3 Switching Fundamentals
3-1 Introduction to Switching
3-2 MAC Addresses
3-3 Ethernet Frame Structure
3-4 VLAN Basics
3-5 Trunking and Inter-VLAN Routing
4 MikroTik SwitchOS Basics
4-1 Introduction to SwitchOS
4-2 SwitchOS Interface Types
4-3 Basic Configuration
4-4 User Management
4-5 System Logging
5 VLAN Configuration
5-1 VLAN Creation and Configuration
5-2 VLAN Trunking Protocol (VTP)
5-3 Inter-VLAN Routing
5-4 VLAN Security
6 Spanning Tree Protocol (STP)
6-1 Introduction to STP
6-2 STP Operation
6-3 Rapid Spanning Tree Protocol (RSTP)
6-4 Multiple Spanning Tree Protocol (MSTP)
6-5 STP Configuration
7 Link Aggregation
7-1 Introduction to Link Aggregation
7-2 Link Aggregation Control Protocol (LACP)
7-3 Static Link Aggregation
7-4 Link Aggregation Configuration
8 Quality of Service (QoS)
8-1 Introduction to QoS
8-2 QoS Models
8-3 Traffic Shaping and Policing
8-4 QoS Configuration
9 Security Features
9-1 Introduction to Network Security
9-2 Port Security
9-3 Access Control Lists (ACLs)
9-4 DHCP Snooping
9-5 Dynamic ARP Inspection (DAI)
10 Advanced Switching Topics
10-1 Layer 3 Switching
10-2 Multicast Routing
10-3 Link Layer Discovery Protocol (LLDP)
10-4 Power over Ethernet (PoE)
11 Troubleshooting and Maintenance
11-1 Common Switching Issues
11-2 Troubleshooting Tools
11-3 Switch Maintenance
11-4 Backup and Restore
12 MikroTik Certification Exam Preparation
12-1 Exam Overview
12-2 Study Tips
12-3 Practice Questions
12-4 Exam Registration and Scheduling
6 Spanning Tree Protocol (STP) Explained

6 Spanning Tree Protocol (STP) Explained

1. Key Concepts of Spanning Tree Protocol (STP)

Spanning Tree Protocol (STP) is a network protocol that ensures a loop-free topology for Ethernet networks. Key concepts include:

2. Root Bridge

The Root Bridge is the central switch in the STP topology. All other switches in the network use the Root Bridge as a reference point to determine the best path to reach it. The Root Bridge is chosen based on the lowest Bridge ID.

Example: In a network with three switches, the switch with the lowest Bridge ID (e.g., priority 32768 and MAC address 00:1A:2B:3C:4D:5E) will be elected as the Root Bridge. This switch will then serve as the central point for all STP calculations.

3. Bridge ID

The Bridge ID is a unique identifier for each switch, consisting of an 8-bit priority value and a 48-bit MAC address. The priority value can be manually configured, and the MAC address is unique to each switch. The switch with the lowest Bridge ID is elected as the Root Bridge.

Example: If two switches have the same priority (e.g., 32768), the switch with the lower MAC address (e.g., 00:1A:2B:3C:4D:5E vs. 00:23:45:67:89:AB) will be chosen as the Root Bridge.

4. Port Roles

Port roles determine how each switch port participates in the STP topology. Common port roles include:

Example: In a network with three switches connected in a triangle, each switch will have one Root Port pointing towards the Root Bridge, one Designated Port facing away from the Root Bridge, and one Alternate Port in the Blocking state to prevent loops.

5. Port States

Port states define the operational status of a switch port in the STP process. Common port states include:

Example: When a new switch is connected to the network, its ports will initially be in the Blocking state. After exchanging BPDU messages, the ports will transition to Listening, then Learning, and finally to Forwarding, allowing traffic to flow.

6. BPDU (Bridge Protocol Data Unit)

BPDU messages are exchanged between switches to determine the STP topology. These messages contain information about the switch's Bridge ID, Root Bridge ID, and path cost. BPDUs help switches make decisions about which ports to block, listen, learn, or forward.

Example: When a switch receives a BPDU with a lower Root Bridge ID than its own, it will update its Root Bridge ID and recalculate the best path to the Root Bridge. This process ensures that the network remains loop-free and optimized.

7. Convergence

Convergence is the process by which the network stabilizes after a change, such as a link failure or the addition of a new switch. During convergence, switches exchange BPDUs and update their port roles and states to maintain a loop-free topology.

Example: If a link to the Root Bridge fails, the switches will enter a convergence phase. During this phase, they will exchange BPDUs to determine the new best path to the Root Bridge, update their port roles, and transition their ports to the appropriate states to maintain network connectivity.