Total members 11864 |It is currently Thu Dec 09, 2021 5:09 am Login / Join Codemiles














R Scripts


Spanning Tree Concepts :

1.Path Cost

  • A cost associated with each port on each bridge ("weight" of the segment)
    default is 1
  • The cost associated with transmission onto the LAN connected to the port
    • Can be manually or automatically assigned
    • Can be used to alter the path to the root bridge

2.Root Port

  • Each non-root bridge has a Root port: The port on the path towards the root bridge .
    parent pointer
  • The root port is part of the lowest cost path towards the root bridge If port costs are equal on a bridge, the port with the lowest ID becomes root port .

File comment: Example Spanning Tree
untitled.JPG [ 27.35 KiB | Viewed 8020 times ]

File comment: Example Spanning Tree cont
untitled.JPG [ 31.24 KiB | Viewed 7979 times ]

3.Designated Port
  • Each LAN has a single designated port
  • This is the port reporting minimum cost path to the root bridge for the LAN
  • Only designated and root ports remain active!
File comment: Example Spanning Tree cont2
untitled.JPG [ 33.9 KiB | Viewed 7977 times ]

Spanning Tree Requirements

  • Each bridge has a unique identifier
  • A broadcast address for bridges on a LAN
  • A unique port identifier for all ports on all bridges
--> Bridge id + port number

Spanning Tree Algorithm: Implementation

Keep pumping a single message: (my root ID, my cost to root, my ID)
BPDU: Bridge Protocol Data Unit
Update var's when receiving:
My_root_ID: smallest seen so far
My_cost_to_root: smallest received to my_root + link cost
Break ties by ID
That's enough!

Select Designated Bridges

Bridges send BPDU frames to its attached LANs
  • sender port ID
  • bridge and port ID of the bridge the sending bridge considers root
root path cost for the sending bridge
3. Best bridge wins, and it knows it (and winning port)
(lowest ID/cost/priority)

Please recommend my post if you found it helpful

User avatar Posts: 95
Have thanks: 2 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Spanning Tree Algorithm
 java code for decision tree algorithm     -  
 Take tree nodes then create new tree with another root     -  
 decision tree     -  
 need help for creatinb binary tree in php     -  
 java tree problem     -  
 Binary search tree C++     -  
 Java Binary Tree     -  
 JTree Usage example , Tree nodes     -  
 Display data from database as Tree Structure in JSP     -  
 Transformations in 3D (Simple EX. Rotated Tree (J2SE)     -  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to 2007-2011
mileX v1.0 designed by codemiles team is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to