CCNA 3 v3.1 Module 7 Spanning Tree Protocol

Post on 10-Jan-2016

81 views 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 of 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

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

Objectives

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.

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.

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

Simple Redundant Switched Topology

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

Broadcast Storm

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

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

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

Using Bridging Loops for Redundancy

allow physical loops, but create a loop free logical topology

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

Spanning-Tree Protocol

Data frames received on blocked links are dropped.

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.

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

Spanning Tree Link Costs

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.

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.

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

Bridge Protocol Data Unit (BPDU)

Bridge protocol data unit (BPDU)

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

Bridge IDs

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.

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

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

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

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

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

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

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).

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

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.

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.

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

Summary