It is currently Fri Mar 12, 2010 2:06 am


All times are UTC [ DST ]


Ask on Codemiles community and get answers Free and Fast :

ATM,CSMA,LAN,MAN,WAN,VLAN,ROUTER,HUB
,SWITCH,RING,BUST,TOPOLGY,DSL,VDSL,SDSL,
CABLE,MODEM,FIREWALL,PROXY

Our guest share with us your code snippets , your programming problems , your open source projects ,read articles and post yours .



Registration to Codemiles.com is FAST and FREE. Join Now!





Post new topic Reply to topic  [ 1 post ] 
  Print view Previous topic | Next topic 
Author Message
 Post subject: Spanning Tree Algorithm
PostPosted: Wed Nov 26, 2008 11:04 pm 
Offline
Beginner
User avatar

Joined: Sun May 25, 2008 5:34 pm
Posts: 95
Has thanked: 2 time
Have thanks: 0 time
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 .


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

Attachment:
File comment: Example Spanning Tree cont
untitled.JPG
untitled.JPG [ 31.24 KiB | Viewed 474 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!
Attachment:
File comment: Example Spanning Tree cont2
untitled.JPG
untitled.JPG [ 33.9 KiB | Viewed 472 times ]


Spanning Tree Requirements

1. Each bridge has a unique identifier
2. A broadcast address for bridges on a LAN
3. 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)



TOP
 Profile Send private message  
 
| More
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


 Similar topics
 Topic title   Forum   Author   Replies 
 java code for decision tree algorithm  Java  PERRYS  1
 apriori algorithm java code  Java  yuva  1
 Display data from database as Tree Structure in JSP  Servlets / JSP  AskBot  4
 need a java code for hungarian algorithm  Java  ips1  0
 need help for creatinb binary tree in php  PHP  sarika  0

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  









Home
General Talks
Finished Projects
Code Library
Games
Tutorials
Programming help
Java
C/C++
C-sharp
Web Development
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
SEO
Google SEO
Others
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2009
mileX v1.0 designed by codemiles team