(English Language)
MSTP (Multiple Spanning Tree Protocol - IEEE 802.1s) is a standard spanning tree protocol designed to solve the CPU and memory overhead issues that can occur when running a separate STP instance per VLAN (such as in PVST+) across networks with many VLANs.
MSTP maps multiple VLANs into a smaller number of MSTIs (Multiple Spanning Tree Instances) and computes a separate spanning tree topology (Root Bridge, Root Port, Designated Port, and blocked/alternate ports) for each instance. It also incorporates RSTP (IEEE 802.1w) rapid convergence mechanisms for fast failover.
Below is a step-by-step guide to understanding and deploying MSTP.
-------------------------------------------
Step 1: Configure the MST Region (Region Name, Revision Number, VLAN-to-Instance Mapping)
For switches to belong to the same MST Region, three parameters must match identically across all switches in that region:
1. Region Name: Exact string match (typically case-sensitive, so uppercase and lowercase letters must match).
2. Revision Number: Exact numeric match (for example, Revision 1).
3. VLAN-to-Instance Mapping Table: Exact match of which VLANs are mapped to which MSTIs.
* Default Instance (IST / MSTI 0): Any VLAN not explicitly mapped to a custom instance automatically belongs to Instance 0, known as the IST (Internal Spanning Tree).
* Custom Instances (e.g., MSTI 1, MSTI 2): Mapping VLAN 10 and 20 to MSTI 1 and VLAN 30 and 40 to MSTI 2 allows traffic to be load-balanced across multiple paths.
Note: If any of these three attributes differ between switches, they are treated as being in different MST Regions and communicate across the region boundary using CST (Common Spanning Tree) rules.
-------------------------------------------
Step 2: Elect a Root Bridge for Each Instance
Within an MST Region, each MSTI elects its own independent Root Bridge.
* Root Bridge for MSTI 1: For example, configure Core Switch 1 (SW1) with a lower priority (such as 4096) to act as the Root Bridge for MSTI 1.
* Root Bridge for MSTI 2: For example, configure Core Switch 2 (SW2) with a lower priority (such as 4096) to act as the Root Bridge for MSTI 2.
* Result: Traffic for VLANs in MSTI 1 can favor SW1 while traffic for VLANs in MSTI 2 can favor SW2, achieving active-active link utilization across redundant uplinks.
-------------------------------------------
Step 3: Determine Port Roles per Instance (RSTP-Based)
Because MSTP builds on RSTP principles, each port can have a different role in each MSTI:
* Root Port (RP): On a non-root switch, the port with the lowest root path cost back to the Root Bridge for that specific instance.
* Designated Port (DP): The port on a network segment that forwards traffic for that instance (all active ports on the Root Bridge for that instance are Designated Ports).
* Alternate Port: A backup path to the Root Bridge that remains in Discarding state during normal operation and can transition quickly if the active Root Port fails.
* Backup Port: A backup port for a Designated Port (typically seen on shared segments) that remains in Discarding state during normal operation.
------------------------------------------
Step 4: Forward Traffic Using RSTP Port States
Instead of classic 802.1D states (Blocking, Listening, Learning, Forwarding taking 30-50 seconds), MSTP uses RSTP port states for rapid convergence:
1. Discarding: Does not forward user data frames and does not learn MAC addresses (combines 802.1D Disabled, Blocking, and Listening states).
2. Learning: Does not forward user data frames yet, but begins populating the MAC address table.
3. Forwarding: Normal operation; forwards user data frames and learns MAC addresses.
-------------------------------------------
Step 5: Interoperate with External Networks via CIST (Common and Internal Spanning Tree)
In addition to the IST (Instance 0) inside a region, MSTP uses the CIST (Common and Internal Spanning Tree) to maintain a loop-free topology when connecting to other MST Regions, PVST+ switches, or legacy 802.1D/802.1w switches.
* CIST Root: The single Root Bridge for the CIST across the entire interconnected network.
* Regional Root: The switch within an MST Region that serves as the root bridge for CIST traffic inside that region.
-------------------------------------------
Step 6: Follow Best Practices for Production Deployment
1. Keep Region Settings Identical: Ensure Region Name, Revision Number, and VLAN-to-Instance mappings match 100% across all switches intended to be in the same region.
2. Explicitly Set Root Bridges: Manually assign bridge priorities for each instance rather than relying on default priorities and base MAC addresses.
3. Enable Edge Port / PortFast and BPDU Guard on Access Ports: Configure edge ports for end devices and enable BPDU Guard to shut down ports if unexpected BPDUs arrive.
4. Use Root Guard and Loop Guard: Protect critical root placements with Root Guard and guard against unidirectional link loop conditions with Loop Guard.
-------------------------------------------
Example Scenario (VLAN 10 & VLAN 20)
* Region: DC-MSTP-REGION, Revision 1
* Instance 1: VLAN 10 -> Primary Root = SW-Core-1
* Instance 2: VLAN 20 -> Primary Root = SW-Core-2
* Benefit: Both uplinks can carry active VLAN traffic concurrently instead of leaving one completely idle, while failing over rapidly if a link goes down.
Multiple Spanning Tree Protocol (MSTP - IEEE 802.1s) Step-by-Step Guide
(Burmese Language)
MSTP (Multiple Spanning Tree Protocol - IEEE 802.1s) ဆိုတာ Layer 2 Network တွေမှာ VLAN အများကြီး ရှိနေတဲ့အခါ VLAN တစ်ခုချင်းစီအတွက် STP Instance သီးခြားခွဲရင် (PVST+ လိုမျိုး) Switch ရဲ့ CPU နဲ့ Memory ဝန်ပိနိုင်တာကို ဖြေရှင်းပေးတဲ့ Standard STP မျိုးကွဲတစ်ခု ဖြစ်ပါတယ်။
MSTP က VLAN အများအပြားကို MSTI (Multiple Spanning Tree Instance) အနည်းငယ်ထဲ စုစည်းထည့်သွင်း (Map) ပြီး Instance တစ်ခုချင်းစီအတွက် သီးခြား Spanning Tree (Root Bridge, RP, DP, Blocking Port) တွက်ချက်ပေးပါတယ်။ ဒါ့အပြင် RSTP (802.1w) ရဲ့ Rapid Convergence (မြန်ဆန်စွာ လမ်းကြောင်းပြောင်းလဲခြင်း) ကိုလည်း ပေါင်းစပ်ထည့်သွင်းထားပါတယ်။
MSTP ကို စနစ်တကျ နားလည်ပြီး လက်တွေ့အသုံးချနိုင်ဖို့ Step-by-Step ရှင်းပြပေးထားပါတယ်။
-------------------------------------------
Step 1: MST Region (Region Name, Revision Number, VLAN-to-Instance Mapping) သတ်မှတ်ခြင်း
MSTP မှာ Switch တွေဟာ တူညီတဲ့ MST Region ထဲမှာ ရှိနေဖို့ လိုအပ်ပါတယ်။ Switch ၂ လုံးက Region တစ်ခုတည်း ဖြစ်ဖို့ အောက်ပါ (၃) ချက် အတိအကျ တူညီရပါမယ်။
1. Region Name: String အတိအကျ တူညီရမယ် (Case-sensitive ဖြစ်နိုင်တဲ့အတွက် စာလုံးအကြီး/အသေးပါ အတိအကျ တူအောင် ထားရပါတယ်)။
2. Revision Number: Number တန်ဖိုး တူညီရမယ် (ဥပမာ - Revision 1)။
3. VLAN-to-Instance Mapping Table: ဘယ် VLAN တွေကို ဘယ် Instance (MSTI) ထဲ ထည့်ထားလဲဆိုတဲ့ ဇယား အတိအကျ တူညီရပါမယ်။
* Default Instance (IST / MSTI 0): ဘယ် MSTI မှ သီးခြား Map မလုပ်ထားတဲ့ VLAN အားလုံးဟာ အလိုအလျောက် Instance 0 (IST - Internal Spanning Tree) ထဲ ရောက်သွားပါတယ်။
* Custom Instances (ဥပမာ MSTI 1, MSTI 2): VLAN 10, 20 ကို MSTI 1 ထဲ ထည့်ပြီး၊ VLAN 30, 40 ကို MSTI 2 ထဲ ထည့်ခြင်းဖြင့် Traffic ကို Link နှစ်ခုပေါ်မှာ Load Balancing ခွဲဝေပေးနိုင်ပါတယ်။
မှတ်ချက်: အထက်ပါ ၃ ချက်ထဲက တစ်ခုခု ကွဲလွဲနေရင် Switch နှစ်လုံးဟာ Different MST Regions အဖြစ် သတ်မှတ်ခံရပြီး Region Boundary မှာ CST (Common Spanning Tree) လိုမျိုး ချိတ်ဆက်သွားပါလိမ့်မယ်။
-------------------------------------------
Step 2: Instance တစ်ခုချင်းစီအတွက် Root Bridge ရွေးချယ်ခြင်း
MSTP Region ထဲမှာ MSTI တစ်ခုစီတိုင်းအတွက် သီးခြား Root Bridge ရွေးချယ်ပါတယ်။
* MSTI 1 အတွက် Root Bridge: ဥပမာ Core Switch 1 (SW1) ကို Priority နိမ့် (ဥပမာ 4096) ထားပြီး MSTI 1 Root အဖြစ် သတ်မှတ်နိုင်ပါတယ်။
* MSTI 2 အတွက် Root Bridge: ဥပမာ Core Switch 2 (SW2) ကို Priority နိမ့် (ဥပမာ 4096) ထားပြီး MSTI 2 Root အဖြစ် သတ်မှတ်နိုင်ပါတယ်။
* ရလဒ်: VLAN 10, 20 (MSTI 1) Traffic က SW1 ဘက်ကို အဓိက သွားပြီး၊ VLAN 30, 40 (MSTI 2) Traffic က SW2 ဘက်ကို အဓိက သွားတဲ့အတွက် Active-Active Link Utilization ရရှိစေပါတယ်။
------------------------------------------
Step 3: Instance တစ်ခုချင်းစီအတွက် Port Roles (RP, DP, Alternate/Backup) တွက်ချက်ခြင်း
RSTP အခြေခံ ယူထားတဲ့အတွက် MSTP မှာလည်း Instance တစ်ခုချင်းစီအလိုက် Port Roles တွေကို တွက်ချက်ပါတယ်။
* Root Port (RP): Non-Root Switch တွေမှာ သက်ဆိုင်ရာ Instance ရဲ့ Root Bridge ဆီကို Root Path Cost အနည်းဆုံး လမ်းကြောင်းဖြစ်တဲ့ Port။
* Designated Port (DP): Segment တစ်ခုချင်းစီမှာ သက်ဆိုင်ရာ Instance အတွက် Traffic Forward လုပ်ပေးမယ့် Port (Root Bridge ရဲ့ Port တွေဟာ DP တွေဖြစ်ပါတယ်)။
* Alternate Port: Root Port အတွက် Backup လမ်းကြောင်းအဖြစ် အသင့်ရှိနေပြီး ပုံမှန်အခြေအနေမှာ Discarding State မှာ ရှိနေတဲ့ Port (Root Port Down သွားရင် ချက်ချင်း ပြန်ဖွင့်ပေးနိုင်တယ်)။
* Backup Port: Designated Port အတွက် Backup အဖြစ် ရှိနေတဲ့ Port (Shared/Hub segment တွေမှာ တွေ့ရတတ်ပြီး ပုံမှန်အခြေအနေမှာ Discarding State မှာ ရှိပါတယ်)။
------------------------------------------
Step 4: Port States (RSTP Based) ဖြင့် Data Forward လုပ်ခြင်း
MSTP သည် Classic 802.1D လို Blocking / Listening / Learning / Forwarding (စက္ကန့် ၃၀-၅၀) အဆင့်ဆင့် မဟုတ်ဘဲ RSTP အတိုင်း အောက်ပါ State (၃) မျိုးဖြင့် မြန်မြန်ဆန်ဆန် အလုပ်လုပ်ပါတယ်။
1. Discarding: User Data Frame တွေကို Forward မလုပ်ပါ၊ MAC Address မသင်ယူပါ (802.1D ရဲ့ Disabled, Blocking, Listening ကို ပေါင်းထားတဲ့ State ဖြစ်ပါတယ်)။
2. Learning: Data Frame မပို့သေးဘဲ MAC Address Table ကို စတင် မှတ်သားပါတယ်။
3. Forwarding: User Data Frame များကို ပုံမှန် ပို့ဆောင်ခြင်း၊ လက်ခံခြင်း ပြုလုပ်ပါတယ်။
-------------------------------------------
Step 5: CST / CIST (Common and Internal Spanning Tree) ဖြင့် Region ပြင်ပနှင့် ချိတ်ဆက်ခြင်း
MSTP Network မှာ Region အတွင်းပိုင်း အတွက် IST (Internal Spanning Tree - Instance 0) ရှိသလို၊ တခြား MST Region တွေ၊ PVST+ Switch တွေ၊ ဒါမှမဟုတ် Legacy 802.1D/802.1w Switch တွေနဲ့ ချိတ်ဆက်တဲ့အခါ Loop မဖြစ်အောင် CIST (Common and Internal Spanning Tree) ကို အသုံးပြုပြီး ချိတ်ဆက်ထိန်းညှိပေးပါတယ်။
* CIST Root: Network တစ်ခုလုံးရဲ့ CIST အတွက် Root Bridge ဖြစ်ပါတယ်။
* Regional Root: MST Region တစ်ခုစီအတွင်းမှာ CIST Traffic တွေအတွက် Root Bridge အဖြစ် ဆောင်ရွက်တဲ့ Switch ဖြစ်ပါတယ်။
-------------------------------------------
Step 6: လက်တွေ့ Configure လုပ်ရာတွင် လိုက်နာရမည့် Best Practices
1. Region Configuration တူညီအောင် ထားပါ: MST Region ထဲမှာ ပါဝင်မယ့် Switch တွေအားလုံးမှာ Region Name၊ Revision Number နဲ့ VLAN-to-Instance Mapping တို့ကို 100% တူညီအောင် ထည့်သွင်းပါ။
2. Root Bridge ကို Explicit သတ်မှတ်ပါ: Instance တစ်ခုချင်းစီအတွက် Root Bridge ကို Priority ချိန်ပြီး Manual သတ်မှတ်ပါ (Random MAC အပေါ် မမှီခိုပါနှင့်)။
3. Edge Ports (Access Ports) တွင် PortFast / Edge Port ဖွင့်ပါ: End Device ချိတ်ထားတဲ့ Port တွေကို Edge Port အဖြစ် သတ်မှတ်ပြီး BPDU Guard ဖွင့်ထားပါ။
4. Root Guard / Loop Guard သုံးပါ: မလိုလားအပ်ဘဲ Root ပြောင်းလဲမှု (Root Guard) နဲ့ Unidirectional Link ပြဿနာကြောင့် Loop ဖြစ်မှု (Loop Guard) တို့ကို ကာကွယ်ထားပါ။
-------------------------------------------
ဥပမာတစ်ခုဖြင့် ကြည့်ကြည့်ရအောင် (VLAN 10 & VLAN 20)
* Region: DC-MSTP-REGION, Revision 1
* Instance 1: VLAN 10 -> Primary Root = SW-Core-1
* Instance 2: VLAN 20 -> Primary Root = SW-Core-2
* အကျိုးကျေးဇူး: Uplink Link ၂ ကြိုးစလုံးကို အလဟဿ ပိတ်မထားဘဲ VLAN 10 နဲ့ VLAN 20 အလိုက် လမ်းကြောင်းခွဲပြီး အသုံးချနိုင်သလို၊ Link တစ်ကြိုး ပြတ်သွားရင်လည်း RSTP မူအတိုင်း စက္ကန့်ပိုင်းအတွင်း ပြန်လည် ချိတ်ဆက်နိုင်ပါတယ်။
Note by Myat Than Tint
#NetworkingNote
#24 Nov 2026
0 Comments