cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
6549
Views
45
Helpful
9
Replies

OSPF unequal cost load sharing

er.vansh17091
Level 1
Level 1

Hello Connections,

 

I've never seen unequal cost load sharing or unequal balancing in prod infra for OSPF.

 

I want to know do we have such kind of process or can we achieve this ?

 

If yes what's commands we can use ?

 

9 Replies 9

Sergey Lisitsin
VIP Alumni
VIP Alumni

Hello,

 

OSPF doesn't support unequal cost load sharing. And in all honesty, that usually not a good idea even in EIGRP that does support it. You want consistency for your traffic flows, whereas different cost/metric links will have inconsistent delay as well, which is bad.

balaji.bandi
Hall of Fame
Hall of Fame

OSPF is wrong protocol for unequal LB, if that is requiredment use EIGRP does that work.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

OSPF only does equal-cost load balancing indeed, but you can 'trick' it into believing that multiple links have the same cost by using the 'bandwidth' or the 'ip ospf cost' command on the interface, using the same values.

 

Beware of the unpredictable results mentioned in Sergey's post.

OSPF not support unequal 
EIGRP support unequal 

OSPF not support unequal 
EIGRP support equal 

EIGRP support un-equal paths (hope you meant to say this i guess.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Joseph W. Doherty
Hall of Fame
Hall of Fame

I believe PfR-PIRO is capable of providing unequal load balancing while using OSPF.  NB: PfR is an additional feature on some IOS and likely will require a more feature set version of IOS and/or an additional license.

Hi,

Can you pls explain it bit more?

PfR has the ability to dynamically load balance (i.e. actual link load) in proportion to link capacity.  I.e. It will attempt to insure link loading is the same percentage on the links it controls.  It doesn't really care how the routing protocol balances, or not, the links.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/pfr/configuration/xe-3s/PfR_Protocol_Independent_Route_Optimization.html

Before PIRO, PfR could only move flows about using static routes or BGP.