10-23-2011 02:55 PM - edited 03-07-2019 03:00 AM
Hello Guys,
I think my old account was deleted or something happaned to it.
So my question is 1. How does OSPF calculate what is the cost of the link if it is > 100M, lets say we have two links 1g and 10g, the cost in each cases will be 1, right, 10^8/bw? how does ospf select which one to select and how?
2. I am sure there are some junos experts here, how does ospf in juniper calculate cost? is it the same bw?
Thanks,
SS
10-23-2011 03:04 PM
10-24-2011 07:56 AM
Hi, thanks for your replies,
I think we can also manually change the cost. havent tried that yet.
10-23-2011 03:16 PM
Hi SS,
Juniper calculates the cost the same as Cisco devices. It uses the same formula you provided
Now, if you want Junos to prefer a 10Gig link vs a 1 Gig link, you need to use this command:
set protocol ospf reference-bandwidth
More info:
HTH
10-23-2011 05:52 PM
Reza marketing Junipers on cisco forums Hehee kidding.
10-23-2011 04:39 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
So my question is 1. How does OSPF calculate what is the cost of the link if it is > 100M, lets say we have two links 1g and 10g, the cost in each cases will be 1, right, 10^8/bw? how does ospf select which one to select and how?
Cisco OSPF would, by default, would consider both the gig and 10 gig links (and 100 Mbps) as equals. To have it do otherwise, you'll need to modify the metrics for the two links. One method would be to change the default reference bandwidth from 100 Mbps to 10 gig.
10-24-2011 03:11 AM
Currently Being Moderated
OSPF routing
Hello Guys,
I think my old account was deleted or something happaned to it.
So my question is 1. How does OSPF calculate what is the cost of the link if it is > 100M, lets say we have two links 1g and 10g, the cost in each cases will be 1, right, 10^8/bw? how does ospf select which one to select and how?
2. I am sure there are some junos experts here, how does ospf in juniper calculate cost? is it the same bw?
Thanks,
SS
Hi SS,
Mathematically 1g should equal .1 but with reference bandwidth you can't go lower then 1. Hence the problem with the default settings if you have 100mb/s and 1gb/s links in your network, by default OSPF is going to see the two as the same cost and route accordingly.
A routers' IOS, relative to caculating OSPF cost, will never calculate a cost less than 1. So for an interface running above 100 Mbps, one would need to utlize the auto-cost reference-bandwidth command in order to take advantage of the difference in the size of the pipes.
Junos ios also uses the same type of cost calculation.
Hope to Help !!
Ganeshh Iyer
10-24-2011 08:08 AM
Thanks guys for giving these answers, most of them helped
have a good one,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide