Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol (STP) ป้องกัน Layer 2 loops ใน switched networks โดยสร้าง loop-free logical topology จาก physical topology ที่มี redundant links STP (802.1D) เป็น original version ที่ converge ช้า (30-50 วินาที) RSTP (802.1w) converge เร็วกว่า (~1-2 วินาที) และ MSTP (802.1s) รองรับ multiple VLANs ใน spanning tree instances ที่ต่างกัน

Layer 2 loop เป็น ปัญหาร้ายแรงที่สุดใน switched network — broadcast storm ทำให้ network ล่มทั้งหมดภายในวินาที เพราะ frames ถูก replicate ไม่สิ้นสุด CPU utilization ของ switches พุ่ง 100% MAC address table unstable STP ป้องกันปัญหานี้โดย block redundant ports แต่ยังคง redundant paths สำหรับ failover

Layer 2 Loop Problem

Problem สาเหตุ ผลกระทบ
Broadcast Storm Broadcast frames วน loop ไม่สิ้นสุด Bandwidth เต็ม 100%, network ล่ม
MAC Table Instability MAC address เรียนรู้จากหลาย ports Unicast flooding, switch confused
Duplicate Frames Same frame ถูก deliver หลายครั้ง Application errors, data corruption

STP (802.1D) Basics

Concept รายละเอียด
Root Bridge Switch ที่มี lowest Bridge ID (priority + MAC) เป็น center ของ tree
Root Port (RP) Port บน non-root switch ที่ใกล้ Root Bridge ที่สุด (best path)
Designated Port (DP) Port ที่ forward traffic บนแต่ละ segment (best port per segment)
Blocked Port Port ที่ถูก block เพื่อป้องกัน loop (ไม่ forward data)
BPDU Bridge Protocol Data Unit — messages ที่ switches ส่งหากัน
Bridge ID Priority (default 32768) + MAC address
Path Cost Cost ของ link (10G=2, 1G=4, 100M=19, 10M=100)

STP Port States (802.1D)

State Learn MAC? Forward Data? Duration
Blocking No No 20 sec (max age)
Listening No No 15 sec (forward delay)
Learning Yes No 15 sec (forward delay)
Forwarding Yes Yes Stable state
Disabled No No Admin disabled

STP Convergence Time

Event Time
Max Age (BPDU timeout) 20 seconds
Forward Delay (Listening) 15 seconds
Forward Delay (Learning) 15 seconds
Total Convergence 30-50 seconds (unacceptable for modern networks)

RSTP (802.1w) — Rapid Spanning Tree

Feature STP (802.1D) RSTP (802.1w)
Convergence 30-50 seconds 1-2 seconds
Port States 5 (Blocking, Listening, Learning, Forwarding, Disabled) 3 (Discarding, Learning, Forwarding)
Port Roles Root, Designated, Blocked Root, Designated, Alternate, Backup
BPDU Processing Only Root Bridge generates BPDUs All switches generate BPDUs
Proposal/Agreement ไม่มี Rapid convergence mechanism
Edge Port PortFast (Cisco) Edge port (immediate forwarding)
Backward Compatible Yes (fallback to STP)

RSTP Port Roles

Role ความหมาย
Root Port Best path to Root Bridge (เหมือน STP)
Designated Port Best port per segment (เหมือน STP)
Alternate Port Backup path to Root Bridge (ready to become Root Port)
Backup Port Backup for Designated Port on same segment (rare)

MSTP (802.1s) — Multiple Spanning Tree

Feature รายละเอียด
คืออะไร Map multiple VLANs เข้า spanning tree instances (ลดจำนวน STP instances)
MST Instance กลุ่มของ VLANs ที่ share spanning tree topology เดียวกัน
MST Region กลุ่มของ switches ที่มี MST config เหมือนกัน (name, revision, VLAN-to-instance mapping)
IST (Instance 0) Internal Spanning Tree — default instance สำหรับ VLANs ที่ไม่ถูก map
ข้อดี ลด CPU/memory (ไม่ต้อง run STP per VLAN), load balance VLANs across instances

PVST+ vs RSTP vs MSTP

Feature PVST+ (Cisco) RSTP (802.1w) MSTP (802.1s)
STP Instance 1 per VLAN 1 for all VLANs 1 per instance (group of VLANs)
Load Balancing Per VLAN (different root per VLAN) ไม่มี (single tree) Per instance (group of VLANs)
Scalability ไม่ดี (100 VLANs = 100 instances) ดี (1 instance) ดีมาก (few instances for many VLANs)
CPU Usage สูง (per VLAN processing) ต่ำ ต่ำ
Standard Cisco proprietary IEEE 802.1w IEEE 802.1s

STP Protection Features

Feature ป้องกันอะไร วิธีทำงาน
PortFast / Edge Port Slow convergence บน access ports Skip Listening/Learning → immediate Forwarding
BPDU Guard Rogue switch บน access port Shutdown port ถ้าได้รับ BPDU (ใช้กับ PortFast ports)
Root Guard Unauthorized Root Bridge Block port ที่ได้รับ superior BPDU (ป้องกัน Root Bridge change)
Loop Guard Unidirectional link failure ป้องกัน blocked port เปลี่ยนเป็น forwarding เมื่อหยุดได้รับ BPDUs
BPDU Filter BPDU sending on edge ports ไม่ส่ง/รับ BPDU บน port (use carefully)
Storm Control Broadcast/multicast storms Limit broadcast/multicast traffic % per port

Best Practices

Practice รายละเอียด
ใช้ RSTP หรือ MSTP อย่าใช้ STP (802.1D) — convergence ช้าเกินไป
กำหนด Root Bridge Set priority lowest บน core switch (อย่าปล่อยให้ elect เอง)
PortFast + BPDU Guard ทุก access port ควรเปิด PortFast + BPDU Guard
Root Guard บน edge ป้องกัน rogue switch become Root Bridge
Document topology วาด STP topology + root bridge + blocked ports
Monitor Monitor STP topology changes (TCN) → alert เมื่อ topology change

ทิ้งท้าย: STP = Loop-Free Layer 2

Spanning Tree ป้องกัน L2 loops ด้วย Root Bridge + Root/Designated/Blocked ports STP (802.1D) = 30-50 sec convergence (legacy) RSTP (802.1w) = 1-2 sec convergence (recommended) MSTP (802.1s) = multiple VLANs per instance (scalable) PortFast + BPDU Guard บนทุก access port = best practice กำหนด Root Bridge อย่างชัดเจน (ไม่ปล่อยให้ elect เอง)

อ่านเพิ่มเติมเกี่ยวกับ EVPN-VXLAN และ Data Center Network Design ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com

อ่านเพิ่มเติม: ปฏิทินข่าว Forex | Panel SMC MT5

อ่านเพิ่มเติม: เทรดทองคำ XAU/USD | Panel SMC MT5

อ่านเพิ่มเติม: EA Forex ฟรี | กลยุทธ์เทรดทอง

อ่านเพิ่มเติม: ปฏิทินข่าว Forex | ดาวน์โหลด EA ฟรี

อ่านเพิ่มเติม: เทรดทองคำ XAU/USD | ดาวน์โหลด EA ฟรี

อ่านเพิ่มเติม: เทรดทองคำ XAU/USD | XM Signal EA

อ่านเพิ่มเติม: วิเคราะห์ทองคำ | Panel SMC MT5

FAQ

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention คืออะไร?

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention เป็นหัวข้อสำคัญในวงการเทคโนโลยีที่ช่วยให้การทำงานมีประสิทธิภาพมากขึ้น ไม่ว่าจะเป็นด้าน IT, Network หรือ Server Management

ทำไมต้องเรียนรู้เรื่อง Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention?

เพราะ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention เป็นทักษะที่ตลาดต้องการสูง และช่วยให้คุณแก้ปัญหาในงานจริงได้อย่างมืออาชีพ การเรียนรู้ตั้งแต่วันนี้จะเป็นประโยชน์ในระยะยาว

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention เหมาะกับผู้เริ่มต้นไหม?

ได้แน่นอนครับ บทความนี้เขียนให้เข้าใจง่าย เหมาะทั้งผู้เริ่มต้นและผู้มีประสบการณ์ มี step-by-step guide พร้อมตัวอย่างให้ทำตามได้ทันที

สิ่งที่คุณจะได้เรียนรู้จากบทความนี้

บทความ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention นี้ครอบคลุมทุกอย่างที่คุณต้องรู้ ตั้งแต่พื้นฐานไปจนถึงการนำไปใช้จริง เขียนจากประสบการณ์จริง ไม่ใช่แค่ทฤษฎี มีตัวอย่างและ step-by-step guide ให้ทำตามได้ทันที

ทำไม Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention ถึงน่าสนใจ?

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention เป็นหัวข้อที่กำลังได้รับความสนใจสูงมากในปี 2569 ทั้งจากมือใหม่และผู้เชี่ยวชาญ เพราะมีการเปลี่ยนแปลงและพัฒนาใหม่ๆ อยู่ตลอด การติดตามข้อมูลล่าสุดเป็นสิ่งสำคัญ

FAQ

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention คืออะไร?

อ่านรายละเอียดทั้งหมดในบทความนี้ ครอบคลุมตั้งแต่พื้นฐานไปจนถึงขั้นสูง

iCafeForex | SiamLanCard | Siam2R | XM Signal

สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง

อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R

สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง

อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R

สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง

อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R

สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง

อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R

สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention

Spanning Tree Protocol: STP, RSTP, MSTP และ Loop Prevention ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง

อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R

จัดส่งรวดเร็วส่งด่วนทั่วประเทศ
รับประกันสินค้าเคลมง่าย มีใบรับประกัน
ผ่อนชำระได้บัตรเครดิต 0% สูงสุด 10 เดือน
สะสมแต้ม รับส่วนลดส่วนลดและคะแนนสะสม

© 2026 SiamLancard — จำหน่ายการ์ดแลน อุปกรณ์ Server และเครื่องพิมพ์ใบเสร็จ

SiamLancard
Logo
Free Forex EA — XM Signal · SiamCafe Blog · SiamLancard · Siam2R · iCafeFX
iCafeForex.com - สอนเทรด Forex | SiamCafe.net
Shopping cart