+ All Categories
Home > Education > Icnd210 s02l02

Icnd210 s02l02

Date post: 06-Aug-2015
Category:
Upload: computerlenguyen
View: 77 times
Download: 1 times
Share this document with a friend
Popular Tags:
30
© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-1 Medium-Sized Switched Network Construction Improving Performance with Spanning Tree
Transcript
Page 1: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-1

Medium-Sized Switched Network Construction

Improving Performance with Spanning Tree

Page 2: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-2

Interconnection Technologies

Technology Use

Fast Ethernet Connects end-user devices to the access layer switch

Gigabit Ethernet Connects access switch to distribution switch and high use servers to switches

10-Gigabit Ethernet

Provides high-speed switch to switch links, backbones

EtherChannel Provides high-speed switch to switch links, backbones with redundancy

Page 3: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-3

Determining Equipment and Cabling Needs

Each link provides adequate bandwidth for the total aggregate traffic over that link.

Page 4: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-4

Advantages of EtherChannel

Logical aggregation of similar links between switches

Load-shares across links

Viewed as one logical port to STP

Redundancy

Page 5: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-5

Redundant Topology

Redundant topology eliminates single points of failure.

Redundant topology causes broadcast storms, multiple frame copies, and MAC address table instability problems.

Page 6: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-6

Station D sends a broadcast frame.

Broadcast frames are flooded to all ports except the originating port.

Broadcast Frames

Page 7: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-7

Broadcast Storms

Host X sends a broadcast. Switches continue to propagate

broadcast traffic over and over.

Page 8: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-8

Multiple Frame Copies

Host X sends a unicast frame to router Y. The MAC address of router Y has not been

learned by either switch. Router Y will receive two copies of the same frame.

Page 9: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-9

Host X sends a unicast frame to router Y. The MAC address of router Y has not been learned by either switch. Switches A and B learn the MAC address of host X on port 1. The frame to router Y is flooded. Switches A and B incorrectly learn the MAC address of host X on port 2.

MAC Database Instability

Page 10: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-10

Provides a loop-free redundant network topology by placing certain ports in the blocking state

Published in the IEEE 802.1D specification

Enhanced with the Cisco PVST+ implementation

Loop Resolution with STP

Page 11: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-11

Spanning-Tree Operation One root bridge per broadcast domain.

One root port per nonroot bridge.

One designated port per segment.

Nondesignated ports are unused.

Page 12: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-12

STP Root Bridge Selection

BPDU (default = sent every 2 seconds)

Root bridge = bridge with the lowest bridge ID

Bridge ID =BridgePriority

MACAddress

Page 13: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-13

Spanning tree transits each port through several different states:

Spanning-Tree Port States

Page 14: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-14

Describing PortFast

PortFast is configured on access ports, not trunk ports.

Page 15: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-15

Configuring and Verifying PortFast

spanning-tree portfast

SwitchX(config-if)#

Configures PortFast on an interface

spanning-tree portfast default

SwitchX(config)#

Enables PortFast on all non-trunking interfaces

show running-config interface interface

SwitchX#

Verifies that PortFast has been configured on an interface

OR

Page 16: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-16

Spanning-Tree Operation Example

Page 17: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-17

Spanning-Tree Path Cost

Link SpeedCost (Revised IEEE

Specification)Cost (Previous IEEE

Specification)

10 Gb/s 2 1

1 Gb/s 4 1

100 Mb/s 19 10

10 Mb/s 100 100

Page 18: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-18

Spanning-Tree Recalculation

Page 19: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-19

Per VLAN Spanning Tree Plus

Page 20: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-20

PVST+ Extended Bridge ID

Bridge ID without the extended system ID

Extended bridge ID with system ID

System ID = VLAN

Page 21: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-21

Rapid Spanning Tree Protocol

Page 22: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-22

Default Spanning-Tree Configuration

Cisco Catalyst switches support three types of STPs:

– PVST+

– PVRST+

– MSTP

The default STP for Cisco Catalyst switches is PVST+ :

– A separate STP instance for each VLAN

– One root bridge for each VLANs

– Load sharing

Page 23: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-23

PVRST+ Configuration Guidelines

1. Enable PVRST+.

2. Designate and configure a switch to be the root bridge.

3. Designate and configure a switch to be the secondary root bridge.

4. Verify the configuration.

Page 24: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-24

PVRST+ Implementation Commands

spanning-tree mode rapid-pvst

SwitchX(config)#

Configures PVRST+

show spanning-tree vlan vlan# [detail]

SwitchX#

Verifies the spanning-tree configuration

debug spanning-tree pvst+

SwitchX#

Displays PVST+ event debug messages

Page 25: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-25

Verifying PVRST+

The spanning-tree mode is set to PVRST.

SwitchX# show spanning-tree vlan 30 VLAN0030Spanning tree enabled protocol rstpRoot ID Priority 24606Address 00d0.047b.2800This bridge is the rootHello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 24606 (priority 24576 sys-id-ext 30) Address 00d0.047b.2800Hello Time 2 sec Max Age 20 sec Forward Delay 15 secAging Time 300Interface Role Sts Cost Prio.Nbr Type-------- ----- --- --- -------- ----Gi1/1 Desg FWD 4 128.1 P2pGi1/2 Desg FWD 4 128.2 P2pGi5/1 Desg FWD 4 128.257 P2p

Page 26: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-26

Configuring the Root and Secondary Bridges

Page 27: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-27

Configuring the Root and Secondary Bridges: SwitchA

spanning-tree vlan 1 root primary

This command forces this switch to be the root for VLAN 1.

spanning-tree vlan 2 root secondary

This command configures this switch to be the secondary root for VLAN 2.

OR

spanning-tree vlan # priority priority

This command statically configures the priority (increments of 4096).

SwitchA(config)#

SwitchA(config)#

SwitchA(config)#

Page 28: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-28

Configuring the Root and Secondary Bridges: SwitchB

spanning-tree vlan 2 root primary

This command forces the switch to be the root for VLAN 2.

spanning-tree vlan 1 root secondary

This command configures the switch to be the secondary root VLAN 1.

OR

spanning-tree vlan # priority priority

This command statically configures the priority (increments of 4096).

SwitchB(config)#

SwitchB(config)#

SwitchB(config)#

Page 29: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-29

Summary

A redundant switched topology includes multihomed switches and EtherChannel.

A redundant switched topology causes looping issues such as broadcast storms.

The 802.1D STP establishes a loop-free network.

The original STP has been enhanced by PVST+ and RSTP.

Page 30: Icnd210 s02l02

© 2007 Cisco Systems, Inc. All rights reserved. ICND2 v1.0—2-30


Recommended