細究STP根端口和指定端口的選舉過程

好像各種書寫的不是很一樣。連<考試指南>也寫得比較文模糊了。因爲沒有提到端口優先級,估計是合併到端口ID去了。

而<學習指南>裏的是:

1.最低的根網橋ID

2.最低的到達根網橋的路徑開銷

3.最低的發送方網橋ID

4.最低的端口優先級

5.最低的端口ID(個人認爲改爲&ldquo;端口號&rdquo;比較合適,&ldquo;端口ID&rdquo;應該是&ldquo;優先級+端口號&rdquo;)

 

其中4和5的端口指的是發送方的端口。而不是本網橋端口

 

 

這是CCIE RS最新官方教材的說法:(感覺是寫得最清楚的)

選根端口:

1. Pick the lowest value of the forwarding switch&rsquo;s bridge ID.
2. Use the lowest port priority of the neighboring switch. The neighboring switch added its own port priority to the Hello before forwarding it.
3. Use the lowest internal port number (of the forwarding switch) as listed inside the received Hellos.

選指定端口:

When the cost is a tie, STP uses the same tiebreakers to choose the DP as when choosing an RP: lowest forwarder&rsquo;s bridge ID, lowest forwarder&rsquo;s port priority, and lowest forwarder&rsquo;s port number.

 

 指定橋,就是設備上行連接的一個設備

           SW1

           /    \

         /     \

        /       \

       /         \

  port A /          \

    SW2           SW3

  port B |            |

     |            |

     |            |

     |            |

 port C |            |

    SW4           SW5

在上圖中,SW1是根橋,SW2是SW4的指定橋,port A是SW2的根端口,port B是SW2的指定端口,port C是SW4的根端口。

 

1、BPDU中根橋ID最小的最好

2、如果根橋ID相同,根路徑開銷最小的最好

3、如果根路徑開銷也相同,指定橋ID最小的最好

4、如果指定橋ID也相同,那麼指定橋的指定端口最小的BPDU最好

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章