802.1D STP Port States(端口状态)
注:使用生成树的目的是为了选出Blocking Port(阻塞端口)
1.Disabled(is shutdown,未开启STP或者端口down)
2.Blcoking(receive only BPDUs)
3.Listening(send and receive BPDUs)
4.Learning (send and receive BPDUs,can learn MAC Address)
5.Forwarding(send and receive user data)
STP参数总结:
Hello Time : Root Bridge每隔2秒发送一次BPDU,用于维护生成树的状态
Max age : BPDU的信息会保存在交换机中20秒(也称为BPDU的老化时间)
Forward delay : Listening到Learning或Leaning到forwarding的时间(15秒)
802.1D STP converge(生成树收敛)
三种收敛时间:
1.50秒
如果SWA和SWB之间的链路down掉,重新收敛需要50秒
2.30秒
如果SWA和SWC之间的链路down掉,重新收敛需要30秒