existRSTP (Rapid Spanning Tree Protocol)Learning which,We will know RSTP different fromPVST (Per Vlan Spanning Tree)One of the places,It isPort Roles difference。As different port states believe everyone is familiar with,But the problem of port role,Many books and tutorial included in the classroom are a passing,In retrospect,Students can not help knowing a lot of questions,Let's take a look at this,Among the Rapid Spanning Tree Protocol,Exactly what role the port and the two often talked aboutAlternate ports and backup portsWhat is emerging。
Rapid Spanning Tree Protocol RSTP port role of
- Root Port
- Designated Port
- Alternate and Backup Port
According to the official White Paper Cisco《Understanding Rapid Spanning Tree Protocol (802.1in)》View,RSTP port role has above four。
With port and designated port will not say,This and PVST same,Nor is it the place we are interested in。Next we sayAlternate and Backup Port,Alternate ports and backup ports。
source
In PVST each Vlan Spanning Tree Protocol is in 802.1D,There is a blocking state,In fact, the alternate port and backup port is corresponding to the state,802.1w introduces these two roles。
effect
When a port receives fromNon-selfThe BPDU,And this BPDU priority than the specified port to receive only the difference,Then the port will be transformed into alternate ports,As an alternative route to the bridge with,Once the route designated port failure,Then this will immediately enable alternative path。
When a port receives fromitselfThe BPDU,And this carries a higher priority BPDU,The port will be transformed into a backup port,As a gateway to a network backup path,This is not the path to a backup path to the root oh。
So this time it was said,Two switches using two wires inserted together how it is to replace the port,In order to see how the backup port it? Actually,You just need to switch any two cable shorted interfaces,Then modify the duplex to half, you can see the ~
Keke,In fact, in a shared network,Backup ports occur only possible,Because it may appear that the switch network to a network with redundant line,of course,Duplex mode switch is judged,Full duplex - point;Half-duplex - sharing network。
verification
it is good,Then we do a few small experiments to verify the backup port role。
I use a switch a hub,I used them between two straight-through cable,And the spanning-tree mode switch to Rapid Spanning Tree Protocol,Wait convergence。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
VLAN0001 Spanning tree enabled protocol rstp Root ID Priority 32769 Address 00D0.BCEA.E8DE This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 00D0.BCEA.E8DE Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/6 Back BLK 19 128.6 Shr Fa0/5 Desg FWD 19 128.5 Shr |
f0 switch / 6 connectors received f0 / 5 port BPDU,Because of its higher priority,So f0 / 6 entered a backup port role。This time we try to change the priority f0 / 5 port:
1 2 3 4 5 6 7 |
Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/6 Desg FWD 19 128.6 Shr Fa0/5 Back BLK 19 240.5 Shr |
This is the time to see f0 / 5 has become a backup port。
Because I was lazy ah ...... ...... so do not replace port verified ............ ah。
《Understanding Rapid Spanning Tree Protocol (802.1in)"allowableHereDownload inside a detailed graphic description of it,Baidu LibraryYou can find the official Chinese version。
[warning]Another:Why, in the ieee will have to replace the role of the port of existence? Because now all Cisco devices running 802.1D802.1w The 802.1D compatibility mode [/warning]
Original article written by LogStudio:R0uter's Blog » Port roles RSTP Rapid Spanning Tree Protocol:Alternate ports and backup ports
Reproduced Please keep the source and description link:https://www.logcg.com/archives/269.html