Root bridge, root port and designated port: how STP decides
Sign in to read this lesson
STP first elects a root bridge: the switch with the lowest Bridge ID. When the priorities are equal, the lowest MAC wins. All root bridge ports are designated and forwarding. Then every non-root switch picks its cheapest path to the root bridge: the root port. The path cost is the sum of costs that depend on interface speed (10 Mbit = 100, 100 Mbit = 19, 1 Gbit = 4, 10 Gbit = 2). Every link has one designated port. The remaining port is non-designated (alternate) and is blocked. Tie-breakers, in order: lowest root path cost, lowest sender Bridge ID, lowest sender port ID.
What you will learn
- Step 1: the root bridge. The switch with the lowest Bridge ID becomes the root bridge. The priority is 32768 on every switch by default, so the lowest MAC usually wins.
- All root bridge ports are designated (D) and forwarding.
- Step 2: the root port (R). Every non-root switch picks the port with the lowest total cost to the root bridge. Cost: 10 Mbit = 100, 100 Mbit = 19, 1 Gbit = 4, 10 Gbit = 2.
- Step 3: one designated port per link. On each link, the port of the switch with the cheaper path to the root (on a tie, the lower Bridge ID) becomes designated. The other port becomes non-designated (alternate) and is blocked.
- Tie-breakers: 1) lowest root path cost, 2) lowest sender Bridge ID, 3) lowest sender port ID (port priority + number).
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.