In traditional STP, convergence was very slow because of the default Forward Delay and Max Age timers. In order to speed up convergence in 802.1D networks, administrators manually decreased the default timers, allowing for faster transition into the Forwarding state.
The rapid transition feature allows RSTP to place ports into a Forwarding state without having to rely on any timer configuration, such as that used in traditional STP. In order to achieve fast convergence on a port, the protocol relies upon two new variables: edge ports and the link type. Both are described in detail in the following sub-sections.
Edge Ports
An edge port is simply a port at the edge of the Spanning Tree network. Edge ports are typically connected to network hosts and typically have the PortFast feature enabled. This feature is integrated into RSTP, so such ports are immediately placed into a Forwarding state. In the event that the port receives a BPDU, the edge port status is removed and the port becomes a normal STP port type.
Link Type
Rapid Spanning Tree Protocol supports two different link types that are determined by the duplex setting on the specified port. These two link types are point-to-point and shared. By default, a port that operates in full-duplex mode is considered a point-to-point link, while a port that operates in half-duplex mode is considered a shared port. The following output shows an interface (port) that is operating in full-duplex mode:
| VTP-Server-1#show interfaces fastethernet 0/23 FastEthernet0/23 is up, line protocol is up (connected) Hardware is Fast Ethernet, address is 000d.bd06.4117 (bia 000d.bd06.4117) MTU 1500 bytes, BW 100000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s input flow-control is off, output flow-control is off ARP type: ARPA, ARP Timeout 04:00:00 Last input 01:03:21, output 00:00:00, output hang never Last clearing of ‘show interface’ counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo … [Truncated Output] |
The RSTP port type for this interface can be validated by using the show spanning-tree interface [name] [detail] command. This is illustrated in the following output:
| VTP-Server-1#show spanning-tree interface fastethernet 0/23Vlan Role Sts Cost Prio.Nbr Type —————- —- — ——— ——– ——————————– VLAN0010 Desg FWD 19 128.23 P2p |
The detailed output of this command confirms the same, as seen in the following output:
| VTP-Server-1#show spanning-tree interface fastethernet 0/23 detail Port 23 (FastEthernet0/23) of VLAN0010 is designated forwarding … [Truncated Output] Link type is point-to-point by default BPDU: sent 74, received 0 |
Despite the default settings, it is important to keep in mind that Cisco IOS software allows administrators to override this default selection via the spanning-tree link-type [point-to-point|shared] interface configuration command as illustrated in the following output:
| VTP-Server-1#conf t Enter configuration commands, one per line. End with CNTL/Z. VTP-Server-1(config)#interface fastethernet 0/23 VTP-Server-1(config-if)#spanning-tree link-type ? point-to-point Consider the interface as point-to-point shared Consider the interface as shared |
RSTP considers half-duplex ports as ports that reside on shared medium, such as a network hub, and the segment contains two or more switches. Because of this, 802.1D traditional convergence is used on such ports, instead of the RSTP rapid transition mechanism.
It should be noted that most switches are connected using point-to-point links, and therefore it is very rare to ever see a shared link type. However, sometimes auto-negotiation may result in half-duplex operation for the point-to-point link between two switches. It is therefore good practice to always manually set the speed and duplex of FastEthernet links used for trunking in production networks; otherwise, this could affect RSTP operation and convergence. |
