Sub topic 13
Proposal/agreement handshake and link types
This chapter assumes you know how the root bridge is elected, what the RSTP port roles are (root, designated, alternate, backup), and how to read show spanning-tree output. It covers how Rapid STP (802.1w) moves a port to forwarding without waiting for timers.
Why a handshake replaces timers
Classic 802.1D moves a designated port through listening and learning, with a 15-second forward delay for each. That delay exists because a switch cannot know whether its neighbor will create a loop. RSTP removes the guesswork. Two switches on a link negotiate directly, and the port forwards as soon as both sides agree it is safe.
The proposal/agreement exchange
The exchange runs on a new link between two switches, or when a better root appears.
- The switch with the designated port sends a BPDU with the proposal flag set. It also puts that port in discarding state.
- The neighbor receives the proposal and sees it is superior. It makes that port its root port.
- Before answering, the neighbor syncs. It blocks every other non-edge port, which makes those ports discarding. Edge ports are not touched. This guarantees no loop can form downstream.
- The neighbor sends a BPDU with the agreement flag set.
- The first switch moves its designated port to forwarding immediately.
The sync step then repeats one hop further down the tree, so the handshake spreads away from the root like a wave.
Link types
RSTP uses the link type to decide whether the handshake is allowed.
| Link type | How it is determined | Rapid transition |
|---|---|---|
| Point-to-point | Full-duplex port (default) | Yes, by handshake |
| Shared | Half-duplex port (default) | No, falls back to timers |
| Edge | PortFast configured or detected | Yes, immediately |
A half-duplex link usually means a hub or shared medium with more than two devices. A handshake only makes sense between exactly two switches, so shared links use the slower classic behavior.
On Cisco IOS, the link type is inferred from duplex. You can override it when duplex does not match reality, for example on a full-duplex link whose neighbor you want treated as shared:
configure terminal
interface GigabitEthernet0/1
spanning-tree link-type point-to-point
end
show spanning-tree interface GigabitEthernet0/1 detailIn show spanning-tree output, the Type column shows P2p, Shr, or P2p Edge.
Common errors
- Duplex mismatch. A port that falls back to half duplex is treated as shared, so it converges slowly. Fix the duplex setting.
- Forcing point-to-point on a shared segment. The handshake can complete while a third device is still on the segment, which can cause a temporary loop.
- Non-RSTP neighbors. If the neighbor sends 802.1D BPDUs, the port reverts to classic behavior and uses timers.
Exercise
Switch A connects to Switch B over a full-duplex link. A new link comes up and A's port is designated. What must B do before it sends an agreement, and why?
Show answer
B must sync, which means putting its other non-edge ports into discarding. This ensures that when A's port starts forwarding, no frame can loop back through B's other links.
Exercise
A link between two RSTP switches converges in about 30 seconds instead of under a second. Show output lists the port type as Shr. What is the likely cause, and what is the fix?
Show answer
The port is half duplex, perhaps from a duplex mismatch, so RSTP treats it as shared and uses timers. Fix the duplex setting so the link is full duplex. If the link really is point-to-point, set spanning-tree link-type point-to-point.