sundar.palaniappan Fri, 04/04/2008 - 07:35
User Badges:
  • Green, 3000 points or more

Q. How does OSPF calculate its metric or cost?


A. OSPF uses a reference bandwidth of 100 Mbps for cost calculation. The formula to calculate the cost is reference bandwidth divided by interface bandwidth. For example, in the case of Ethernet, it is 100 Mbps / 10 Mbps = 10.


Note: If ip ospf cost cost is used on the interface, it overrides this formulated cost.


OSPF FAQ:


http://www.cisco.com/warp/public/104/9.html


HTH


Sundar

Joseph W. Doherty Fri, 04/04/2008 - 16:53
User Badges:
  • Super Bronze, 10000 points or more

An additional note


Cisco behaves as Sundar's notes, but OSPF cost is not defined as such by the standard. Other brand equipment either does not auto cost on link banwidth, or uses a different base metric. (NB: There's a command to adjust the auto cost base OSPF bandwidth metric on Cisco.)

Actions

This Discussion