cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
3494
Views
0
Helpful
5
Replies

OSPF loadbalancing

bapatsubodh
Level 1
Level 1

hi

is it possible to load balance between tow paths between two routers with OSPF running on them?

Case 1 :If cost of each link is different ?

Case  2: If cost of links are same ? yes by default.

Case 3 : If cost of each link is manually adjusted to be same ?

Please share the experience

Thanks

Subodh

5 Replies 5

paolo bevilacqua
Hall of Fame
Hall of Fame

Have you tried reading the documentation or using the search button before asking ?

yes.

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Subodh,

1) no unless in an MPLS traffic engineering context using Traffic engineering OSPF extensions

2) yes

3) not recommended unless the true speeds of the two links are very close.

A possible approach when there is a 2:1 ratio in speed or 3:1 ratio in speed between the two links is to logically divide the faster link in 2 or 3 logical links (using Vlan subinterfaces or FR PVCs and subinterfaces, L2 dependent).

After having done this the 2+1 links or 3+1 links can have OSPF metric adjusted to build equal cost paths.

This approach can be possible or not depending on the L2 technology in use.

Hope to help

Giuseppe

Ganesh Hariharan
VIP Alumni
VIP Alumni

hi

is it possible to load balance between tow paths between two routers with OSPF running on them?

Case 1 :If cost of each link is different ?

Case  2: If cost of links are same ? yes by default.

Case 3 : If cost of each link is manually adjusted to be same ?

Please share the experience

Thanks

Subodh

Hi Subodh,

Yes, OSPF supports equal cost load balancing.If the cost of the links are the same, OSPF will insert both routes into the routing table. Also you can force the cost of the links (even if the links are not equal cost) so that both routes are accepted as equal cost routes.The route that will be selected for sending a packet will ultimately depend on the switching type.You can do per packet or per destination load balancing, i think by default on a router fast switching is enabled which means load balancing is done per destination.  If you want per packet you can turn off fast switching on the interface in question using "no ip route-cache".

Hope to help

Ganesh.H

Hi Ganesh.Iyer

Ya, I did adjust the costs of WAN links so that those appear as same cost to ospf. It is installing two routes in routing table. ( As recomended in Giusplar post there is not much difference in two links bandwidth ).

I will try with changing switching method.

I was wondering if we can add these two links in one logical multilink interface at both end of routers and run OSPF. Then i think load balancing will be taken care by multilink.

But that may or may not be the case, as I may require one of WAN link to use for some another activity.

I will try with changing switching method.

Thanks

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card