OSPF Costs Formula that include delay.

Erik Sundberg ESundberg at nitelusa.com
Fri Jan 24 20:26:39 UTC 2014

I understand OSPF default calculation for cost doesn't include delay. I am looking for a formula that I can use to manually set the OSPF costs that factors in delay.

When using OSPF's default costs, the shortest path is not always the optimal path.


New York to Los Angeles. Assuming all links are the same bandwidth and have a ospf cost of 1.

Path 1 (75ms) - OSPF Cost 2 - New York > Dallas > Los Angeles

Path 2 (65ms) - OSPF Cost 3 - New York > Chicago > Denver > Los Angeles

If I left the default cost's alone then path 1 would win because it has a lower ospf cost, however it take traffic 10ms longer to get there.

However I would like traffic to take Path 2 by adjusting the OSPF cost.

I am looking for a formula that other people are using .p



-----Original Message-----
From: Randy [mailto:randy_94108 at yahoo.com]
Sent: Thursday, January 23, 2014 9:03 PM
To: Erik Sundberg; nanog at nanog.org
Subject: Re: OSPF Costs Formula that include delay.

----- Original Message -----
> From: Erik Sundberg <ESundberg at nitelusa.com>
> To: "nanog at nanog.org" <nanog at nanog.org>
> Cc:
> Sent: Thursday, January 23, 2014 4:47 PM
> Subject: OSPF Costs Formula that include delay.
> What is everyone using for an OSPF cost formula that factors in a
> circuits delay and bandwidth (10M-100G)???
> Thanks in advance

umm..are you sure your question is not about EIGRP?
OSPF has no concept of interface-delays.

The default reference bandwidth for OSPF is 100M

In your case if you set your reference bandwidth to 100000 your 100G links would have a link cost of 1, 10G - 10, 1G-100, 100M-1000 and 10M-10000

A vendor specific list would be a better place to ask.



CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error please notify the sender immediately by replying to this e-mail. You must destroy the original transmission and its attachments without reading or saving in any manner. Thank you.

More information about the NANOG mailing list