Root Port
Definition
A Root Port is the best port on a non-root switch that provides the lowest-cost path to the Root Bridge. Every non-root switch has exactly one Root Port. It is the switch's main route for reaching the Root Bridge.
The Problem That Led to It
After STP elects a Root Bridge, every other switch may have multiple paths to reach it. If every path were used at the same time, loops would occur. Switches needed a way to choose only one preferred path.
What Problem It Solves
It ensures every switch has one reliable path to the Root Bridge, creating a loop-free network.
What Happens If Not Used
A switch could forward traffic through multiple paths, causing broadcast storms and unstable MAC tables.
Easy Wording
A Root Port is a switch's favorite road to reach the Root Bridge.
Layman Example
If you're traveling to the capital city, you choose the fastest highway instead of driving on every road at once.
Technical Example
Before: S2 has two paths to the Root Bridge.
After: STP calculates the lowest-cost path and marks one port as the Root Port. All traffic toward the Root Bridge uses this port.
Limitation
A Root Port only tells a switch how it reaches the Root Bridge. It does not decide who forwards traffic on a shared cable.
Solution
Designated Port decides which switch forwards traffic on each network segment.