Which loadbalancing config is proper for those requirements?

Hello people,

I have just bought and installed a Routerboard 450G.

I want to use the router as follows:
A) Eth1 LAN port
B) Eth2,3,4,5 will be used as WAN1, WAN2, WAN3 and WAN4 connected to 4 ADSL lines.

My requirements;

  • Load balance the 4 ADSL lines, based on their capacity. For example, incoming packet goes to WAN1, if the link is not 100% used then the packet should proceed, if not, the packet should go to WAN2 etc.
  • Assuming the previous packet went to WAN1, the next should start from WAN2 and do the same process. I believe this is called Round Robin, however I’ve been told that what I need is Weighted Round Robin.
  • Last, the process should check and provide fail-over (with ping-check I assume?).

Is this possible? And is yes, is there somewhere a how-to example that I can follow?

So far I have managed to boot up successfully my routerboard with this config however this is quite far from my requirement :frowning:
http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways


Much appreciated,
Rgds
Bill

You have to use PCC
http://wiki.mikrotik.com/wiki/Manual:PCC

Per packet load balancing is not possible in this case, it will break connections.

Hi there and thank you for the support.
A couple of questions and seems like I'm done with this.

Question 1:
In the example link you provided it has the following lines:

--
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0
action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1
action=mark-connection new-connection-mark=wlan2_conn passthrough=yes

The above rule is assuming two wlan connections.
Will the following rule syntax be ok in my case (with 4 wlans) ?

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:4/0
action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:4/1
action=mark-connection new-connection-mark=wlan2_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:4/2
action=mark-connection new-connection-mark=wlan3_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:4/3
action=mark-connection new-connection-mark=wlan4_conn passthrough=yes





Question 2:
The example you provided although it provides protection for failover it does not check the links for capacity.
For example a link should not be used if it has reached 95% usage.
Any ideas how I can setup up the routerboard to do this as well?

Thank you in advance,
Bill

  1. yep, something like that

  2. maybe look at Tools → Traffic Monitor