這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
network:link:spanningtreefamily [2014/07/20 08:07] ali88 [RSTP] |
network:link:spanningtreefamily [2014/08/21 02:36] (目前版本) ali88 [RSTP] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ======STP RSTP MSTP====== | + | ======STP RSTP====== |
STP,RSTP及MSTP一開始設計就是要**防止Level 2 switch網路造成迴圈(Loop)**和**實現鏈路冗餘(redundancy)**。 | STP,RSTP及MSTP一開始設計就是要**防止Level 2 switch網路造成迴圈(Loop)**和**實現鏈路冗餘(redundancy)**。 | ||
* 網路造成迴圈(Loop)<code>當網路發生Loop時,透過STP演算法適當地將其它界面Broke掉。如下圖 會將左邊switch Fa0/2 Block</code> | * 網路造成迴圈(Loop)<code>當網路發生Loop時,透過STP演算法適當地將其它界面Broke掉。如下圖 會將左邊switch Fa0/2 Block</code> | ||
行 23: | 行 23: | ||
======RSTP====== | ======RSTP====== | ||
為要解決STP收斂過慢問題,IEEE在2001年制定IEEE 802.1w的RSTP(Rapid Spanning Tree Protocol)標準,透過減少Bridge Port Status 轉換時間及新增Alternate port及Backup Port兩種角色來減少收斂時間。通常約1秒內即可收斂。 | 為要解決STP收斂過慢問題,IEEE在2001年制定IEEE 802.1w的RSTP(Rapid Spanning Tree Protocol)標準,透過減少Bridge Port Status 轉換時間及新增Alternate port及Backup Port兩種角色來減少收斂時間。通常約1秒內即可收斂。 | ||
- | * Root Port | + | * Root Port(根阜) —>可以轉送使用者傳來的訊框(Frame) |
- | * | + | * Designated Port(委任阜) —>可以轉送使用者傳來的訊框(Frame) |
+ | * Disabled Port —>無法轉送使用者傳來的訊框(Frame) | ||
+ | * Alternate port —>無法轉送使用者傳來的訊框(Frame) | ||
+ | * Backup Port —>無法轉送使用者傳來的訊框(Frame) | ||
===Alternate port及Backup Port=== | ===Alternate port及Backup Port=== | ||
- | * Alternate port | + | * Alternate port<code>參考下圖所示,當Bridge B失效時,Bridge A的Alternate port就會接管該區域的委任阜角色 |
+ | (Designated Port),以提供Root Bridge 另一個替代路徑。</code>{{:network:link:rstp_alternate_port.png|}} | ||
+ | (資料來源:[[http://routemyworld.com/2009/06/18/bcmsn-rapid-spanning-tree-protocol-802-1w/|routemyworld-Alternate Port vs Backup Port]]) | ||
+ | * Backup Port<code>參考下圖所示,當同一個Bridge B 的委任阜(Designated Port)失效時,備份阜(Backup Port) | ||
+ | 就馬上接管原本Designated Port角色。備份阜的Port id 會比委任阜來的大</code>{{:network:link:rstp_backup_port.png|}} | ||
+ | (資料來源:[[http://routemyworld.com/2009/06/18/bcmsn-rapid-spanning-tree-protocol-802-1w/|routemyworld-Alternate Port vs Backup Port]]) | ||
+ | ===RSTP Port Status vs STP Port Status=== | ||
+ | 如下表所示,RSTP只有三種 Port Status,**disable,Learning及Forwarding**。傳統的STP(802.1d) port Status,disable,Blocking及Listening都統一由RSTP(802.1w)取代成disable。 | ||
+ | (此表資料來源:[[http://baike.baidu.com/view/123854.htm|百度-RSTP]]) | ||
+ | ^STP Port Status^RSTP Port Status^Port 是否為Active狀態^Port 是否學習來源Mac Address^ | ||
+ | |disable |disable |NO |NO | | ||
+ | |Blocking |disable |NO |NO | | ||
+ | |Listening |disable |YES |NO | | ||
+ | |Learning |Learning |YES |YES | | ||
+ | |Forwarding |Forwarding |YES |YES | | ||
+ | ===RSTP Port Costs及Dell Force 10 相關指令=== | ||
+ | (此表資料來源: Dell Taiwan Networking Partner Training Book-A) | ||
+ | ^Link Speed^Default Cost STP^Default Cost RSTP^ | ||
+ | |100M |19 |200000 | | ||
+ | |1G |4 |20000 | | ||
+ | |10G |2 |2000 | | ||
+ | |100M LAG |18 |180000 | | ||
+ | |1G LAG |3 |18000 | | ||
+ | |10G LAG |1 |1800 | | ||
+ | |||
+ | (此表資料來源: Dell Taiwan Networking Partner Training Book-A) | ||
+ | ^Task^Command Syntax^Command Mode^ | ||
+ | |Default Port Cost:如上表所示|**spanning-tree rstp cost** cost|INTERFACE| | ||
+ | |改變Port Cost Range:0-65535|::: | ::: | | ||
+ | |改變port介面的優先權,Default為128|**Spanning-tree rstp** **priority** priority-value|INTERFACE| | ||
+ | |改變Port Cost Range:0-25|:::|:::| | ||
+ | ======MSTP====== | ||
+ | 當網路規模較很大需要Switch特別多時,使用RSTP還是會導致較長收斂時間,若是將網路架構用VLAN方式切割成多個VLAN,或需是可以解決 | ||
+ | 的方法,但實際上RSTP及STP無法跨越不同VLAN來運作,因為以RSTP及STP觀點來看,雖然切割成不同VLAN,不同Vlan之間還是共用一樣的Spanning Tree。 | ||
======參考資料====== | ======參考資料====== | ||
* [[http://en.wikipedia.org/wiki/Rapid_Spanning_Tree_Protocol#Rapid_Spanning_Tree_Protocol|Spanning Tree Protocol]] | * [[http://en.wikipedia.org/wiki/Rapid_Spanning_Tree_Protocol#Rapid_Spanning_Tree_Protocol|Spanning Tree Protocol]] |