chapter 2 implementing spanning tree
play

Chapter 2: Implementing Spanning Tree CCNP-RS SWITCH Ali Aydemir - PowerPoint PPT Presentation

Chapter 2: Implementing Spanning Tree CCNP-RS SWITCH Ali Aydemir Chapter 2 Objectives Describe spanning tree protocols. Describe and configure RSTP. Describe and configure MST. Configure STP features to enhance resiliency and


  1. Chapter 2: Implementing Spanning Tree  CCNP-RS SWITCH Ali Aydemir

  2. Chapter 2 Objectives  Describe spanning tree protocols.  Describe and configure RSTP.  Describe and configure MST.  Configure STP features to enhance resiliency and prevent forwarding loops.  Explain recommended STP configurations and practices.  Troubleshoot spanning tree issues. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 2

  3. Spanning Tree Protocol Basics CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 3

  4. Spanning Tree History  STP was invented in 1985 by Radia Perlman at the Digital Equipment Corporation.  In 1990, IEEE published the first standard for the protocol as 802.1D.  Common Spanning Tree (CST) -> Cisco PVST+ -> Rapid STP (RSTP) or IEEE 802.1w -> Cisco PVRST+ -> Multiple Spanning Tree (MST) or IEEE 802.1s -> STP security enhancements CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 4

  5. STP Operation 1 (Review from CCNA) CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 5

  6. STP Operation 2 (Review from CCNA) All links are 100 Mb/s. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 6

  7. Rapid Spanning Tree Protocol CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 7

  8. RSTP Operation – Port States Port State Description This state is seen in both a stable active topology and during topology Discarding synchronization and changes. The discarding state prevents the forwarding of data frames, thus “breaking” the continuity of a Layer 2 loop. This state is seen in both a stable active topology and during topology Learning synchronization and changes. The learning state accepts data frames to populate the MAC table to limit flooding of unknown unicast frames. This state is seen only in stable active topologies. The forwarding switch ports Forwarding determine the topology. Following a topology change, or during synchronization, the forwarding of data frames occurs only after a proposal and agreement process. Operational STP Port State RSTP Port State Port Included in Status Active Topology Enabled Blocking Discarding No Enabled Listening Discarding No Enabled Learning Learning Yes Enabled Forwarding Forwarding Yes Disabled Disabled Discarding No CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 8

  9. RSTP Operation – Port Roles STP Port Role RSTP Port STP Port RSTP Port Role State State Root port Root port Forwarding Forwarding Designated port Designated Forwarding Forwarding port Nondesignated Alternate or Blocking Discarding port backup port Disabled Disabled - Discarding Transition Transition Listening Learning Learning CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 9

  10. RSTP Operation – Rapid Transition to Forwarding – Link Type Link Description Type Point-to- Port operating in full- point duplex mode. It is assumed that the port is connected to a single switch device at the other end of the link. Shared Port operating in half- duplex mode. It is assumed that the port is connected to shared media where multiple switches might exist. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 10

  11. RSTP Operation – Rapid Transition to Forwarding – Edge Ports  An RSTP edge port is a switch port that is never intended to be connected to another switch device. It immediately transitions to the forwarding state when enabled.  Neither edge ports nor PortFast- enabled ports generate topology changes when the port transitions to disabled or enabled status. Unlike PortFast, an edge port that receives a BPDU immediately loses its edge port status and becomes a normal spanning-tree port. When an edge port receives a BPDU, it generates a topology change notification (TCN). CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 11

  12. RSTP Operation – Proposal and Agreement CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 12

  13. RSTP Operation – Topology Change (TC) Mechanism  Only non-edge ports that are moving to the forwarding state cause a topology change. A port that is moving to blocking does not cause the respective bridge to generate a TC BPDU. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 13

  14. RSTP Operation – Bridge Identifier for PVRST+  Only four high-order bits of the 16-bit Bridge Priority field affect the priority. Therefore, priority can be incremented only in steps of 4096, onto which are added the VLAN number. For example, for VLAN 11: If the priority is left at default, the 16-bit Priority field will hold 32768 + 11 = 32779. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 14

  15. RSTP and 802.1D STP Compatibility  RSTP can operate with 802.1D STP. However, 802.1w’s fast-convergence benefits are lost when interacting with 802.1D bridges.  Each port maintains a variable that defines the protocol to run on the corresponding segment. If the port receives BPDUs that do not correspond to its current operating mode for two times the hello time, it switches to the other STP mode. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 15

  16. Default STP Configuration on Cisco Switch  PVST+  Bridge priority 32,768 for each VLAN CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 16

  17. Spanning Tree PortFast  Bypass 802.1D STP listening and learning states (blocking state forwarding state)  Ports connected to end stations  Prevents DHCP timeouts  May create bridging loops if enabled on trunk port CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 17

  18. Configuring PortFast on Access Ports  Use the spanning-tree portfast interface command to enable the PortFast feature. Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface FastEthernet 3/27 Switch(config-if)# spanning-tree portfast %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION %Portfast has been configured on FastEthernet3/27 but will only have effect when the interface is in a non-trunking mode. Switch(config-if)# end Switch# Switch# show spanning-tree interface FastEthernet 3/27 portfast VLAN0001 enabled CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 18

  19. Configuring PortFast Globally  Use the spanning-tree portfast default global configuration mode command to enable the PortFast feature on all nontrunking interfaces. Switch(config)# spanning-tree portfast default CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 19

  20. Configuring PortFast on Trunk Ports  Use the spanning-tree portfast trunk interface command to enable the PortFast feature on a trunk port. Switch(config)# spanning-tree portfast trunk CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 20

  21. Configuring Access Port Macro  Use the switchport host macro command on an interface connecting to an end station. Switch(config-if)# switchport host switchport mode will be set to access spanning-tree portfast will be enabled channel group will be disabled Switch(config-if)# end Switch# CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 21

  22. Implementing PVRST+ 1. Enable PVRST+ globally. PVRST+ should be configured on all switches in the broadcast domain. 2. Designate and configure a switch to be the root bridge. 3. Designate and configure a switch to be the secondary (backup) root bridge. 4. Ensure load sharing on uplinks using priority and cost parameters. 5. Verify the configuration. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 22

  23. Verifying PVRST+  The output below illustrates how to verify the RSTP configuration for VLAN2 on a nonroot switch in a topology. Switch# show spanning-tree vlan 2 VLAN0002 Spanning tree enabled protocol rstp Root ID Priority 32768 Address 000b.fcb5.dac0 Cost 38 Port 7 (FastEthernet0/7) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32770 (priority 32768 sys-id-ext 2) Address 0013.5f1c.e1c0 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- -------- -------- --------------- -- Fa0/7 Root FWD 19 128.7 P2p Fa0/8 Root FWD 19 128.8 P2p CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 23

  24. Multiple Spanning Tree CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 24

  25. MST Motivation  Above: 2 links – 1000 VLANs – 2 MST instances.  Each switch maintains only two spanning trees, reducing the need for switch resources.  Concept extendable to 4096 VLANs: VLAN load balancing.  MST converges faster than PVRST+ and is backward compatible with 802.1D STP and 802.1w. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 25

  26. MST Instances  2 distinct STP topologies require 2 MST instances (500 per instance here).  Load-balancing works because half of the VLANs follow each separate instance.  Switch utilization is low because it only has to handle two instances.  MST is the best solution for this scenario.  Considerations: MST is more complex than 802.1D and 802.1w, so it requires additional training. Interaction with legacy bridges can be challenging. CCNP-RS SWITCH v2.0 Chapter 2 Ali Aydemir 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend