ccna 3 v3.1 module 7 spanning tree protocol

28
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 7 Spanning Tree Protocol

Upload: maylin

Post on 10-Jan-2016

101 views

Category:

Documents


5 download

DESCRIPTION

CCNA 3 v3.1 Module 7 Spanning Tree Protocol. Objectives. Redundancy. Redundant networking topologies are designed to ensure that networks continue to function in the presence of single points of failure. Redundant Topologies. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

1© 2004, Cisco Systems, Inc. All rights reserved.

CCNA 3 v3.1 Module 7 Spanning Tree Protocol

Page 2: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

222© 2004, Cisco Systems, Inc. All rights reserved.

Objectives

Page 3: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

333© 2004, Cisco Systems, Inc. All rights reserved.

Redundancy

Redundant networking topologies are designed to ensure that networks continue to function in the presence of single points of failure.

Page 4: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

444© 2004, Cisco Systems, Inc. All rights reserved.

Redundant Topologies

• A goal of redundant topologies is to eliminate network outages caused by a single point of failure.

• All networks need redundancy for enhanced reliability.

Page 5: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

555© 2004, Cisco Systems, Inc. All rights reserved.

Simple Redundant Switched Topology

Page 6: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

666© 2004, Cisco Systems, Inc. All rights reserved.

Broadcast Storm

Page 7: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

777© 2004, Cisco Systems, Inc. All rights reserved.

Multiple Frame Transmissions

Y’s MAC addressis not on the MACaddress table

X sends to Y

frame flooded

frame flooded

Page 8: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

888© 2004, Cisco Systems, Inc. All rights reserved.

Media Access Control Database Instability

Y’s MAC addressis not on the MACaddress table

X sends to Y

frame forwarded

A and B incorrectlylearn X’s MAC addresson port 1

Page 9: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

999© 2004, Cisco Systems, Inc. All rights reserved.

Using Bridging Loops for Redundancy

allow physical loops, but create a loop free logical topology

Page 10: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

101010© 2004, Cisco Systems, Inc. All rights reserved.

Spanning-Tree Protocol

Data frames received on blocked links are dropped.

Page 11: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

111111© 2004, Cisco Systems, Inc. All rights reserved.

Spanning-Tree Protocol (STP): IEEE 802.1d

1. Selection of root bridge

2. Configurations are made by the other switches and bridges, using the root bridge as a reference point.

3. Each bridge or switch now determines which of its own ports offers the best path to the root bridge (root port).

4. The logical loop is removed by one of the switches or bridges by blocking the port that creates the logical loop. Blocking is done by calculating costs for each port in relation to the root bridge. Then the port with the highest cost is disabled.

Page 12: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

121212© 2004, Cisco Systems, Inc. All rights reserved.

Spanning Tree Link Costs

Page 13: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

131313© 2004, Cisco Systems, Inc. All rights reserved.

A Spanning Tree

One Designated Port per segment. Through this port the segment has the minimum cost to the root bridge.

The switch that has a designated port for some segment is the Designated Bridge for that segment.

Page 14: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

141414© 2004, Cisco Systems, Inc. All rights reserved.

Spanning-Tree Operation

• One root bridge per network.

• One root port per nonroot bridge.

• One designated port per segment.

• Nondesignated ports are unused.

designated switch handles all communication from that LAN segment towards the root bridge.

Page 15: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

151515© 2004, Cisco Systems, Inc. All rights reserved.

Bridge Protocol Data Unit (BPDU)

Bridge protocol data unit (BPDU)

Page 16: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

161616© 2004, Cisco Systems, Inc. All rights reserved.

Bridge IDs

Page 17: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

171717© 2004, Cisco Systems, Inc. All rights reserved.

Inferior BPDU

When a switch first starts up, it assumes it is the root switch and sends BPDUs that contain the switch MAC address in both the root and sender BID.

Page 18: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

181818© 2004, Cisco Systems, Inc. All rights reserved.

5

21

13 7

4

9

BID=21BID=21

Each switch sends BPDUs that contain the switch MAC address in both the Root and Sender BID.

BID=4BID=13

BID=9

BID=9

Electing the Root Bridge (1)

BID=4

BID=13

No sending

No sending

Page 19: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

191919© 2004, Cisco Systems, Inc. All rights reserved.

5

21

13 7

4

9

A switch receiving the BPDU checks if the Root BID attached with BPDU is less than the Root BID it has recognized.

Electing the Root Bridge (2)

4<7<13

4<9<21

9<21

5<13<21

Page 20: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

202020© 2004, Cisco Systems, Inc. All rights reserved.

5

21

13 7

4

9

BID=9

If a new Root BID is found, the switch sends out a new BPDU containing the new Root BID to all ports except the one the new Root BID was received.

BID=5

BID=4

BID=4

Electing the Root Bridge (3)

BID=5

Page 21: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

212121© 2004, Cisco Systems, Inc. All rights reserved.

5

21

13 7

4

9

A switch receiving the BPDU checks if the Root BID attached with BPDU is less than the Root BID it has recognized.

Electing the Root Bridge (4)

4<5<9

4<5<13

Page 22: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

222222© 2004, Cisco Systems, Inc. All rights reserved.

5

21

13 7

4

9

BID=4

All switches receive the BPDUs and determine that the switch with the lowest root BID value will be the root bridge.

Electing the Root Bridge (5)

BID=4

Page 23: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

232323© 2004, Cisco Systems, Inc. All rights reserved.

Spanning-Tree Port States

Ports can only receive BPDUs.Data frames are discarded and no addresses can be learned.

Determine if there are any other paths to the root bridge.

Data is not forwarded, but MAC addresses are learned

For details go into Interactive Media Activity in 7.2.5

Page 24: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

242424© 2004, Cisco Systems, Inc. All rights reserved.

Spanning-Tree Recalculation

A switched internetwork has converged when all the switch and bridge ports are in either the forwarding or blocked state (can take up to 50 seconds with 802.1d).

Page 25: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

252525© 2004, Cisco Systems, Inc. All rights reserved.

Rapid Spanning-Tree Protocol

• The standard and protocol introduce the following:

Clarification of port states and roles

Definition of a set of link types that can go to forwarding state rapidly

Allowing switches, in a converged network, to generate their own BPDUs rather than relaying root bridge BPDUs

Page 26: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

262626© 2004, Cisco Systems, Inc. All rights reserved.

The blocking state of a port is renamed as the discarding state. The role of a discarding port is that of an alternate port. The discarding port can become the designated port if the designated port of the segment fails.

Page 27: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

272727© 2004, Cisco Systems, Inc. All rights reserved.

Rapid Spanning-Tree Port Designations

The Rapid Spanning Tree Protocol, IEEE 802.1w, will eventually replace the Spanning Tree Protocol, IEEE 802.1D.

Link types have been defined as point-to-point, edge-type, and shared.

Point-to-point links and edge-type links can go to the forwarding state immediately.

Page 28: CCNA 3 v3.1 Module 7  Spanning Tree Protocol

282828© 2004, Cisco Systems, Inc. All rights reserved.

Summary