14
Spanning Tree Spanning Tree Protocol Protocol STP STP 1

Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Embed Size (px)

Citation preview

Page 1: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Spanning Tree ProtocolSpanning Tree Protocol

STPSTP

1

Page 2: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

TopicsTopics

2

• REDUNDANT LINKSREDUNDANT LINKS

• Issues (layer2 loop - broadcast storm - Duplicate Unicast Issues (layer2 loop - broadcast storm - Duplicate Unicast frame)frame)

• Spanning tree algorithmSpanning tree algorithm

• Choose the root bridgeChoose the root bridge

• Select root portsSelect root ports

Page 3: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

REDUNDANT LINKSREDUNDANT LINKS

3

Page 4: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

layer2 looplayer2 loop

4

Page 5: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

broadcast stormbroadcast storm

5

A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available bandwidth is consumed.

1

2

12

1

2

3

1

1

2

2

Page 6: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Duplicate Unicast frameDuplicate Unicast frame

6

Page 7: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

BPDUBPDU

7

3276932769 000A00222222000A00222222

BRIDGE PROTOCOL DATA BRIDGE PROTOCOL DATA UNITUNIT

Page 8: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Choose the root bridgeChoose the root bridge

8

• Each switch has a bridge ID (BID) of priority value followed by MAC address

• Switches exchange Bridge Protocol Data Units (BPDUs) to compare bridge IDs

• The switch with the lowest bridge ID becomes the root bridge

• Administrator can set the priority to fix the selection

Page 9: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Spanning tree algorithmSpanning tree algorithm

9

The switches use this algorithm to decide which ports should be shut down.

1. Choose one switch to be “root bridge”

2. Choose a “root port” on each other switch

3. Choose a “designated port” on each segment.

4. Close down all other ports.

Page 10: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

• Every non-root bridge (Switch) selects a root port

• This is the port with the lowest cost path to the root bridge

Select root portsSelect root ports

Set by IEEE

Page 11: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Choose the port on the switch with the lower bridge ID.

Suppose this is switch B.

If the cost is same and Close down If the cost is same and Close down redundant linksredundant links

Page 12: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Best pathBest path

Page 13: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

13

Page 14: Spanning Tree Protocol STP STP 1. 2 3 4 5 A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available

Video

14

https://www.youtube.com/watch?v=ihF_78oIaDI