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.2 STP Operation Explained

6.2 STP Operation Explained

Key Concepts of STP Operation

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

Root Bridge

The Root Bridge is the central switch in the STP topology. It is chosen based on the lowest Bridge ID, which is a combination of the switch's priority and MAC address. All other switches in the network will forward traffic to the Root Bridge.

Example: In a network with multiple switches, the switch with the lowest Bridge ID will be elected as the Root Bridge. This switch will become the central point for all STP calculations and traffic forwarding.

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 switch with the lowest Bridge ID is elected as the Root Bridge. Administrators can manually configure the priority to influence the Root Bridge election.

Example: If two switches have the same priority, the switch with the lower MAC address will be elected as the Root Bridge. This ensures a deterministic and consistent Root Bridge election process.

Path Cost

Path Cost is the cost associated with each link between switches. Lower costs indicate better paths. The Path Cost is calculated based on the link speed, with faster links having lower costs. Switches will choose the path with the lowest cumulative Path Cost to the Root Bridge.

Example: A 1 Gbps link might have a Path Cost of 4, while a 100 Mbps link has a Path Cost of 19. Switches will prefer the 1 Gbps link over the 100 Mbps link when calculating the best path to the Root Bridge.

Port Roles

Port Roles define the function of each port on a switch. The main roles are:

Example: In a network with redundant links, the Root Port on each switch will be the one with the lowest Path Cost to the Root Bridge. The Designated Port on each segment will be the one that forwards traffic to the Root Bridge, while Alternate Ports will be blocked to prevent loops.

Port States

Port States define the operational status of each port. The main states are:

Example: When a switch is powered on, its ports enter the Blocking state to prevent loops. After a period, they transition to Listening, then Learning, and finally Forwarding. This ensures that the network is loop-free before traffic begins to flow.