Community discussions

MikroTik App
 
cleistonrs
newbie
Topic Author
Posts: 25
Joined: Mon Sep 17, 2012 1:14 am

Bonding with OSPF

Sun Feb 03, 2013 7:20 pm

Hi,
Is it possible to make some kind of bonding between two interfaces (ether1 and ether2 both with rocket m5 in a ptp on both sides)using OSPF but with redundance.
My goal is distribute the traffic between the two rockets titannium that I have but with redundance in case if one of them goes down.
How can I do that?

Best regards!
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sat Aug 05, 2017 6:23 pm

Anybody has the anwser?
 
User avatar
Cha0s
Forum Guru
Forum Guru
Posts: 1162
Joined: Tue Oct 11, 2005 4:53 pm

Re: Bonding with OSPF

Sat Aug 05, 2017 9:56 pm

Why do you need bonding for that?

OSPF can do "failover" and ECMP to utilize both links.
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sat Aug 05, 2017 10:36 pm

But I cant understand. Can ospf double bandwidth using 2 o 3 interface using rocket radios?
 
teamer
just joined
Posts: 21
Joined: Mon Sep 12, 2016 9:18 am

Re: Bonding with OSPF

Sun Aug 06, 2017 1:15 am

OSPF don't, but ECMP do.
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 2:02 am

 
teamer
just joined
Posts: 21
Joined: Mon Sep 12, 2016 9:18 am

Re: Bonding with OSPF

Sun Aug 06, 2017 10:54 am

Are you really understand picture provided in the article? OSPF is only tool, convenient but not necessary here.

And so, ECMP has nothing to do with it.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 3042
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Bonding with OSPF

Sun Aug 06, 2017 11:25 am

Victors0991 ... the manual from Wiki is not fake.
Do you see "to be continued? ... Complete similar ...".

OSPF is universal tool for path finding.

It can be tailored to push data to particular interfaces so if you tailor it to push data from side "left" to to"right" ("left" and "right" is as on the picture in this manual) with upper lin and data from "right" to left with bottom link you will notice better bandwith for radio links. For radio it makes sense as transmission for radio is "one way". You can not transmit data in both ways at the sime time so splliting transmission to two links make better bandwith.
Same effect could be achieve with different methods but OSPF gives you in addition the redundancy. If one link fails then the transmission will go with one link.

However OSPF does not double bandwith ... it is side effect of pushing data with two links.
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 6:41 pm

But in page that I give you said that ospf with that scenario can souble bandwidth
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Bonding with OSPF

Sun Aug 06, 2017 8:40 pm

ECMP is a feature of IP routing, OSPF is a dynamic routing protocol.

ECMP:
Equal-cost multi-path routing (ECMP) is a routing strategy where next-hop packet forwarding to a single destination can occur over multiple "best paths" which tie for top place in routing metric calculations. Multi-path routing can be used in conjunction with most routing protocols, because it is a per-hop decision limited to a single router. It can substantially increase bandwidth by load-balancing traffic over multiple paths; however, there may be significant problems in deploying it in practice.[1] RFC 2991 discusses multi-path routing in general.
Image

So, in certain situations, ECMP can be leveraged to automatically use n number or links between two given sites, with the effect of load balancing, or spreading traffic amongst all of them, effectively enhancing throughput between two given points.

Image

What BartoszP pointed is that as PTPs are half-duplex radio links, OSPF can be used to artificially create a full duplex link, by making OSPF not to use ECMP as it would in a scenario like this image depicts, but actually manipulate interface costs, so that traffic flows like this:

Bridge A ========> Bridge C
Bridge B <======== Bridge D

This way radio A is always Tx'ing to Radio C, and Radio D is Tx'ing to Radio B.

This doesn't double bandwith for a given direction, but as you move Upload/Download traffic to each link, capacity and specially latency is enhanced for both.

So going back to your question:
My goal is distribute the traffic between the two rockets titannium that I have but with redundance in case if one of them goes down.
How can I do that?
You can use either:

A) Bonding

or

B) OSPF to leverage ECMP so that traffic flows amongst both links.

but not the two at the same time. i.e. OSPF is not needed if you use bonding.
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 9:30 pm

Oooh I understand but wheb we need to use bonding or ospf?
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 9:31 pm

Becauuse I read that bonding is possivle when link are equsl in badwidh and latency
 
User avatar
Cha0s
Forum Guru
Forum Guru
Posts: 1162
Joined: Tue Oct 11, 2005 4:53 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 9:52 pm

Yes it is possible. But is it the best way to do it?

I'd say try both in your lab (you can setup 4 CHR VMs or a GNS3 lab to emulate the examples you found on wiki) and see what fits better for your situation. There isn't a default answer to all use cases.

Trying it first in a non production environment, not only you will get familiar with both technologies but you can also perform tests to see how both behave during degradation etc, and know what to expect and how to troubleshoot when you put it in production. And finally this way you can see what fits your setup (and knowledge) better.

Implementation of a technology is only half the job done. You also need troubleshooting and maintenance experience.
Hands on practice is irreplaceable!

To partly answer your question, my instinct says to avoid bonding on wifi links on ISM bands. You need rock solid latency for bonding to work best. And wifi has a lot of jitter, especially when there's interference. With a little interference the bonding will be worse than having 1 link only without bonding!

OSPF on the other hand is a link state protocol. It doesn't know if a link is lagging or not. As long as it can communicate with the adjacent router over the link it will consider it good for forwarding packets over it. So it's not ideal either - but potentially better compared to bonding.

If I were to choose I would prefer a dynamic routing protocol (BGP or OSPF) rather than bonding.

In general, there is no dynamic routing protocol in Mikrotik that will take into consideration the quality of a link so all solutions are susceptible to interference problems. Unless you do some custom work with scripting to automatically remove a link from forwarding packets if it becomes congested due to interference etc.
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 10:45 pm

Becauuse I read that bonding is possivle when link are equsl in badwidh and latencyiñ
 
victors0991
newbie
Posts: 32
Joined: Wed Aug 02, 2017 6:42 pm

Re: Bonding with OSPF

Sun Aug 06, 2017 10:49 pm

But if I have a radio link that give me 30mbps and I want 60 mbps. How can I double the bandwidth to gebt more ?
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Bonding with OSPF

Mon Aug 07, 2017 10:31 am

Oooh I understand but wheb we need to use bonding or ospf?
Don't look at it as which or both would we deploy, but what's actually more suitable or comfortable for you; as both will aggregate both links.

Bonding may not be seen as ideal, but as Cha0s wisely said:
Implementation of a technology is only half the job done. You also need troubleshooting and maintenance experience.
Hands on practice is irreplaceable!
So being much easier to setup, bonding would be the first I would try in your situation. OSPF requires understanding and knowledge; if you deploy it by copying & pasting from some internet "recipe", you'll be lost in case problems arise.