Header
Home | Set as homepage | Add to favorites
  Search the Site     » Advanced Search
Sections
Syndication


Blogroll:

||||| ALL Cisco-Network ARTICLES |||||  
CCIE Journey,
The CCIE Journey,


SPF Tree Calculation

Nov 28,2008 by alperen

image

SPF Tree Calculation
Shortest Path First (SPF) trees are paths through the network to any given destination. A separate
path exists for each known destination. Chapter 6 goes into complete detail about the
types of destinations and their advertisements.
Once all of the OSPF routers have synchronized link-state databases, each router is responsible
for calculating the SPF tree for each known destination. This calculation is done using the
Dijkstra algorithm. In order to do calculations, metrics for each link are required.
NBMA Environments 155
OSPF Metrics
OSPF uses a metric referred to as cost. A cost is associated with every outgoing interface along
an SPF tree. The cost of the entire path is the sum of costs of the outgoing interfaces along the
path. Because cost is an arbitrary value as defined in RFC 2328, Cisco had to implement its own
method of calculating the cost for each OSPF-enabled interface. Cisco uses a simple equation of
108/bandwidth. The bandwidth is the configured bandwidth for the interface.
This value may be overridden by using the ip ospf cost command. The cost is manipulated
by changing the value to a number within the range of 1 to 65,535. Because the cost is assigned
to each link, the value must be changed on each interface.
Cisco bases link cost on bandwidth. Other vendors may use other metrics to
calculate the link’s cost. When connecting links between routers from different
vendors, you may have to adjust the cost to match the other router. If both routers
do not assign the same cost to a link, it can result in suboptimal routing.
577 times read

Related news

» Adjusting OSPF Costs
by admin posted on Jul 21,2008
» Redundant Link Calculation
by alperen posted on Nov 27,2008
» STP Link Cost
by alperen posted on Dec 09,2008
» Selecting the Root Port
by alperen posted on Dec 09,2008
» IPv6 Route Filtering and Metric Manipulation in OSPF
by admin posted on Jul 21,2008
Did you enjoy this article?
(total 0 votes)

comment Comments (0 posted) 

More Top News
CCSP-Cisco Certified Security Professional
Most Popular
Most Commented
Featured Author