//www.cisco.com/c/en/us/support/docs/lan-switching/spanning-tree-protocol/5234-5.html
Under standingand Configuring Spanning Tree Protocol (STP) on Catalyst Switches
Spanning Tree Protocol (STP) is a Layer 2 protocol that runs on bridges and switches.
Spanning Tree Protocol (STP) เป็น Protocol ระดับ Layer 2 ที่ทำงาน (run) อยู่บน bridges และ switch
The specification for STP is IEEE 802.1D.
ข้อกำหนดสำหรับ STP ก็คือ IEEE 802.1D.
The main purpose of STP is to ensure that you do not create loops when you have redundant paths in your network.
วัตถุประสงค์หลักของ STP ก็คือ เพื่อให้แน่ใจว่าคุณจะไม่สร้าง loop เมื่อคุณมีเส้นทางสำรองใน network ของคุณ
Loops are deadly to a network.
Loops จะมีความร้ายแรงต่อ network (Loops เป็นความตายของ network)
This document uses this network setup:
เอกสารชุดนี้จะใช้การ setup ของ network นี้ (ในการอธิบาย):
STP runs on bridges and switches that are 802.1D-compliant.
STP ทำงานอยู่บน bridges และ switches ที่ไปตามมาตรฐานของ 802.1D
There are different flavors of STP, but 802.1D is the most popular and widely implemented.
มีลักษณะเฉพาะที่มีความแตกต่างกันของ STP (802.1D, Rapid STP, MSTP) , แต่ 802.1D ก็เป็นที่นิยมมากที่สุด และก็มีการนำมาใช้กันอย่างแพร่หลาย
You implement STP on bridges and switches in order to prevent loops in the network.
คุณใช้ STP บน bridges และ switches เพื่อที่จะป้องกันการเกิด loop ใน network
Use STP in situations where you want redundant links, but not loops.
ให้ใช้ STP ในสถานการณ์ที่คุณต้องการ link ที่มีการ redundant กัน แต่ไม่ทำให้เกิด loop
Redundant links are as important as backups in the case of a failover in a network.
Link ที่มีการทำ Redundant มีความสำคัญเหมือนกับการ backups ในกรณีที่มีการ failover เกิดขึ้นใน network
A failure of your primary activates the backup links so that users can continue to use the network.
การfailure ของ link หลัก (ของคุณ) เป็นการไป active หรือไปกระตุ้น backup link ให้ทำงาน เพื่อที่ว่า users จะสามารถใช้ network ได้อย่างต่อเนื่อง
Without STP on the bridges and switches, such a failure can result in a loop.
หากปราศจาก STP บน bridges และ switches แล้ว, การ failure ดังกล่าว จะสามารถส่งผลในการเกิด loop ได้
If two connected switches run different flavors of STP, they require different timings to converge.
ถ้า switches สองตัวที่ถูก connect กันอยู่ run STP ที่มีลักษณะเฉพาะที่แตกต่างกันแล้ว (ฝั่งนึงอาจจะ run 802.1D แต่อีกฝั่งอาจจะ run Rapid STP), พวกมันก็จะต้องใช้ timings ในการ converge ที่แตกต่างกัน
Note เสริม: Timing ในการ converge คือ ช่วงเวลาที่ STP มีการ learn จนกระทั่ง STP สามารถ learn ได้อย่างสมบูรณ์แบบแล้ว โดยมี port stateที่เป็น forwarding และ blocking อย่างแน่นอนแล้ว (ไม่ได้อยู่ใน state listening หรือ learning)
When different flavors are used in the switches, it creates timing issues between Blocking and Forwarding states.
เมื่อลักษณะเฉพาะที่แตกต่างกันถูกใช้อยู่ใน switches แล้ว, มันก็จะสร้างปัญหาของ timing ระหว่าง Blocking state และ Forwarding state
Therefore, it is recommended to use the same flavors of STP.
ดังนั้น, จึงแนะนำให้ใช้ STP ที่มีลักษณะเฉพาะที่เหมือนๆ กัน (แนะนำให้ใช้ STP ประเภทเดียวกัน)
Consider this network:
ให้ท่านทำการพิจารณา network นี้:
In this network, a redundant link is planned between Switch A and Switch B.
สำหรับnetwork นี้แล้ว, link ที่มีการทำ redundant ได้ถูกวางแผนเอาไว้ระหว่าง Switch A กับ Switch B.
However,this setup creates the possibility of a bridging loop.
อย่างไรก็ตาม, การsetup นี้ จะสร้างความเป็นไปได้ที่จะทำให้เกิด bridging loop
For example, a broadcast or multicast packet that transmits from Station M and is destined for Station N simply continues to circulate between both switches.
สำหรับตัวอย่างแล้ว,broadcast หรือ multicast packet ที่ส่งจาก Station M และถูกกำหนดให้ไปยัง Station N จะหมุนเวียนแบบต่อเนื่อง เพียงแค่ระหว่าง switch ทั้งสอง
Note เสริม: broadcast หรือ multicast packet จะถูก copy แล้วส่งแบบflood ออกทุกๆ port ยกเว้น port ที่รับเข้ามา จึงส่งผลให้เกิดการไหลเวียนระหว่างswitch ทั้งสอง (เกิด bridging loop)
However,when STP runs on both switches, the network logically looks like this:
อย่างไรก็ตาม, เมื่อ STP (Spanning Tree Protocol) ได้ runs อยู่บน switches ทั้งสองแล้ว, network จะมองคล้ายๆ ดังภาพข้างล่างนี้ แบบ logically
This information applies to the scenario in the Network Diagram:
Information ข้างล่างนี้นำไปใช้กับสถานการณ์ใน Network Diagram (ภาพบนสุด):
· Switch 15 is the backbone switch.
· Switch 15 (Switch ตัวกลาง) เป็น backbone switch
· Switches 12, 13, 14, 16, and 17 are switches that attach to workstations and PCs.
· Switch 12, 13, 14, 16 และ 17 เป็น switches ที่ต่ออยู่กับ workstations และ PCs
· The network defines these VLANs:
· Network ได้มีการกำหนด VLANs เหล่านี้เอาไว้:
· 1
· 200
· 201
· 202
· 203
· 204
· The VLAN Trunk Protocol (VTP) domain name is STD-Doc.
· VLAN Trunk Protocol (VTP) domain name คือ STD-Doc
Node เสริม: ท่านใดที่สนใจเรื่องของ VTP ท่านสามารถเข้าไปดูหรือศึกษาได้ตาม Clip VDO ที่ผมได้อัดเอาไว้ตาม link นี้ครับ โดยให้ดูที่ Vol 4-1 และ Vol 4-2 ครับ
//www.bloggang.com/viewblog.php?id=likecisco&date=31-05-2014&group=8&gblog=3
In order to provide this desired path redundancy, as well as to avoid aloop condition, STP defines a tree that spans all the switches in an extended network.
เพื่อที่จะ ให้บริการ(provide) ในเรื่องของ การสำรอง (redundancy) เส้นทางตามความต้องการแล้ว (ซึ่งรวมไปถึงการหลีกเลี่ยงสภาวะการเกิด loop) STP จะกำหนด tree ที่คลอบคลุมไปยัง switch ทุกๆ ตัวที่อยู่ใน network ที่มีการขยาย
STP forces certain redundant data paths into a standby (blocked) state and leaves other paths in a forwarding state.
STP จะบังคับให้เส้นทางการส่งข้อมูลที่มีการสำรองบางเส้นทางให้เข้าไปอยู่ในสถานะที่เป็น standby state (หรือ blocked state) และปล่อยให้เส้นทางอื่นๆอยู่ในสถานะ forwarding state
If a link in the forwarding state becomes unavailable, STP reconfigures the network and reroutes data paths through the activation of the appropriate standby path.
ถ้า link ที่อยู่ในสถานะ fowarding state เปลี่ยนไปเป็นสภาวะที่ไม่สามารถใช้งานได้แล้ว, STP ก็จะทำการกำหนดค่าของ network ให้ใหม่ และทำการเปลี่ยนเส้นทางของการส่งข้อมูลผ่านการเปิดใช้งาน standby path ที่เหมาะสม
TO BE CONTINUED ...... ---->
จะกลับมาเขียนต่อนะครับ ขอให้ท่านฝึกอ่าน ฝึกแปลจากประโยคแรกๆ ไปก่อน
แต่ถ้าใครจะลองฝึกแปลก่อน แล้วรอดูของผม ก็แนะนะให้เข้าไป web cisco.com ตาม link ที่แจ้งไปแล้วนะครับ
ขอบคุณครับ
โก้-ชัยวัฒน์