Top Banner
Switching Topic 6 Rapid spanning tree protocol
24

Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Jan 17, 2016

Download

Documents

Angel Farmer
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Switching

Topic 6Rapid spanning tree protocol

Page 2: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Agenda

• RSTP features– Port states– Port roles– BPDU format– Edge ports and link types– Proposals and agreements– Topology changes– Configuration and issues

Page 3: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP features• Rapid spanning tree protocol• IEEE 802.1w standard• New port states– discarding, learning and forwarding

• Much faster convergence after topology change – An alternate or backup port can immediately change to

forwarding state– Does not use 802.1d timers– All switches sends BPDUs every two seconds (hello

interval)– Fast aging if three consecutive hello BPDUs are missed

• Same BPDU format as STP– uses version 2, backwardly compatible with 802.1d

Page 4: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP port states• Discarding– Prevents layer 2 loops – Does not forward data frames or learn MAC addresses– Equivalent to blocking and listening in STP

• Learning– Accepts frames to learn MAC addresses and populates

the MAC address table– Does not forward data frames

• Forwarding– Does forward data frames – Proposal and agreement process to transition to

forwarding

Page 5: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP port roles• Root root

– The port on each non-root switch which receives the best BPDU– The best BPDU has the lowest path cost to the root bridge– Forwards data

• Designated port– The designated port is the port that sends the best BPDU– Forwards data (receives frames that are destined for the root

bridge)• Alternate port

– Offers an alternative path to the root bridge– A better BPDU has been received from a port on another switch– The alternate port blocks

• Backup port– An alternative path on the same switch– If the forwarding port fails, the backup port on the same switch

takes over

Page 6: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

BPDU format• BPDU version = 2• Flag fields include the port role• Flag fields include a status for learning and forwarding

2Topology ChangeProposalPort RoleLearningForwardingAgreementTopology Change ACK

Page 7: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Rapid transition to forwarding

• BPDUs are sent by all switches every two seconds– STP BPDUs are generated by the root bridge and

relayed by the non root bridges• Faster aging of information– three missed hellos– STP waits 20 seconds for max age timer

• Accepts inferior BPDUs– Primary link goes down and hellos fail three times– Designated switch sends a BPDU with a path to root– BPDU is accepted and link transitions immediately

Page 8: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Edge ports• The PortFast feature• Access ports connected to hosts will never create

layer 2 loops• Edge port can transition immediately to

forwarding• If an RSTP edge port receives a BPDU it becomes

a normal spanning tree port• To configure an edge port– (config-if)# spanning-tree portfast

• Important to support DHCP

Page 9: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Link types• Rapid transitioning on root ports and designated

ports if they are point-to-point links or edge ports• Two link types for non-edge ports:– Point-to-point • Full duplex

– Shared• Half duplex

Page 10: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposal and agreement• A topology change occurs

– On STP the port waits forward delay before transitioning to forwarding• On RSTP

– A switch sends a proposal BPDU to the other switch – If the proposal contains a lower path cost to the root the receiving port

still blocks, but is assigned the root port role– The switch syncs its ports – edge ports keep forwarding, designated

and alternate ports block– As soon as ports are in sync the root port comes up and starts

forwarding • No timers

– Switch sends a proposal to downstream switches on designated ports and the process repeats

Page 11: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposals

Page 12: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposals

Page 13: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposals

Page 14: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposal

Page 15: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposals

Page 16: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposals

Page 17: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP proposal

Page 18: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

RSTP topology

Page 19: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Topology Change Notification• When the topology changes and ports change state, paths to

hosts change and MAC address tables will contain wrong information– If a switch receives a topology change notification BPDU– Switch flushes MAC addresses associated with designated and

root ports (not edge ports)– Switch starts a timer = twice the hello time and while this timer is

on it sends BPDUs with TC bit set, to the root bridge and to neighbour switches

– Neighbours flush MAC addresses associated with designated and root ports

– Neighbours start the TC while timer and send BPDUs with TC bit set to the root bridge and to their neighbours while the TC while timer is running

• Faster flushing of MAC address tables than 802.1D and does not rely on the root bridge initiating the process

Page 20: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Rapid PVST+

• Cisco® version of RSTP• Set Rapid PVST+ globally for the switch

(config)#spanning-tree mode rapid-pvst(config)# Int fa0/1(config-if)# spanning-tree link-type point-to-point(config-if)# spanning-tree bpduguard enable(config-if)#exit(config)# clear spanning-tree detected-protocols(config)# show spanning-tree vlan VID

Page 21: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Selecting the root bridge• For each VLAN, identify which switch will be the root

– Choose a powerful switch in centre of network with direct connection to routers and servers

– Configure the root bridge primary switch and select and configure the backup root bridge secondary

• Decide which links will be redundant blocked links– Minimise the number of blocked links so there is less surface for errors

(two redundant links is enough)• Prune any VLANS not needed off trunks

– Trunk all VLANS over core but prune VLANS in single locations at distribution switches

• Use layer 3 switching to avoid having STP blocked ports– Layer 3 switching is routing at switch speed– Redundancy by routing protocols

• Don’t turn off STP – its there to protect from layer 2 loops if cables or switches are added in error

Page 22: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Troubleshooting

• Keep good documentation– Topology of bridge network– Location of root bridge– Location of blocked ports and redundant links

• Port fast configured on a trunk link will create looping traffic and delay

• STP is optimised for a network diameter of 7 – more than 7 and max age timer which is incremented in the BPDU by each switch that is crossed causes BPDU to be discarded too soon

Page 23: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Agenda

• RSTP features– Port states– Port roles– BPDU format– Edge ports and link types– Proposals and agreements– Topology changes– Configuration and issues

Page 24: Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.

Switching

Topic 6Rapid spanning tree protocol