Step by step Load balancing in v4.4 helpfull for many users.

HI,

First of all many thanks to Mikrotik professionals and from a long time there is a many problem by the user in implementing the right and exact load balancing i will explain my network senario with image and also i will give the requests below what i exactly nedded

sorry for my bad diagram but i think u guys will understand, I came to know tht ECMP will drop the connections on masquerade network , So please give me the detailed GUI config if possible , if cant atlease command line config but please give the step by step detailed

Once again i appreciate the experts and professional for making this forum success

Thanks,
Sathish

You could do policy based load balancing. Eg. splitting the 300 users into 3 groups of 100 - 1 group per WAN connection. See http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways
This is not the ideal solution though.

Here’s an old forum thread where persistent load balancing using ECMP has been discussed:
http://forum.mikrotik.com/t/ecmp-over-2-adsl-gateways/26226/1

Please give me the response , as iam waiting for the solution from along time

Thanks,
Sathish

http://wiki.mikrotik.com/wiki/PCC#Application_Example_-_Load_Balancing

Thanks for your kind reply Chupka, As i heard ECMP will flush routing table and disconnect clients for every 10min

and NTH is not a perfect load balance as we specify one fied GW for each clients if load on one GW will not be balanced automatically as this leads to bandwidth wastage on another GW

please try to help me in configuring ECMP like balancing without Dropping the connections for evry couple of minutes
Thanks in advance for skillfull answer , as there is no scope of using fully routed network in my case

Thanks,
Sathish

http://wiki.mikrotik.com/wiki/PCC#Application_Example_-_Load_Balancing have nothing to do with ECMP and Nth

you may use per-connection-classifier=both-addresses-and-ports for ECMP-like balancing, but without flushes

Thanks,let me try it out soon

Sathish

Chupka iam having A small doubt in the above concept iwant use seperate Routerboard for load balance
i want to do the load balance through tht dedicated


WAN’s > Routerboard (PCC) > Mikrotik main server > local network

So after the routerboard i will attach my server, so will it work i mean PCC load balance because all the requests will come from only one IP from mikrotik main server

the above senario works, please suggest me

Thanks
sathish

sure it will work, if you will use ‘both-addresses-and-ports’ classifier

but be aware about ECMP problems: banking sites may deny your users, etc…

ECMP ? i dont want to configure ECMP i want follow your instruction and want to implement PCC, dou you mean banking sites also denies the users if i use PCC ?

And also please explain how to configure with example , please this may help the people a lot

i mean you said clasifier etc please explain cleary thanks

do you do NAT on ‘Mikrotik main server’?

explaination is in Manual: http://wiki.mikrotik.com/wiki/PCC#Theory

Yes , i do NATing

And also if i use 8 WAns how many group i have to divide

8/0 to 8/7

is the above senario is correct

Thanks

hmmm… to what addresses do you perform NATting?.. if those lines are adsl lines - you should NAT on the router the lines are connected to…

I will get 8 WANS which are directly connected to internet cloud or may be ADSL but i will terminate and connect with the ADSL routers (DLINK) because in our location ADSL are provide through 1 pair copper ordinary telephone line which cant connect to Mikrotik directly So we will use some kind of ADSL routers and will dail automatically connects when they are switched on

So please proceed with the solution

My local network should be like 10.10.0.0/16

and WAN’s Like 192.168.1.1 2.1 3.1 4.1 5.1 6.1…etc

So ihave to masquerade the connection

please post the solution
Thanks

so, you will NAT twice: first on router, then on modem… it’s not good practice :slight_smile: I think, you should move PCC to your main router. but if you will do your scheme - then use ‘action=same’ instead of ‘action=srcnat’ on the main router - and all should work fine, on RB you should just mark routing according to PCC with ‘both-addresses’ classifier

Sorry confused , can u please tell me with much more clarity, iwill explain below which i understand please confirm me y or n

And abt my network info. i have to do natting compulsory in ADSL router as because my telecom people assigns public IP to DLink through PPPOE from normal telephone cable which i cant connect directly to mikrotik

and after tht please explain me how to skip 2nd natting in main mikrotik router, But should assign same network to all the lan people with perfect load balance

And i skipped RB in the middle because as u suggested to lower thr lookup’s , as i came to know tht mikrotik has realsed 4port ethernet card so i skipped RB in the middle and i want to directly connect to main router

So, please give me much more suggestins to run my network reliably
Thank you very much for having much more time on my problem
i appreciate you tht u are giving more solution to the questions which are posing in this forums

your modems should be in Bridge mode, so that your router can establish PPPoE connections by himself

to connect many modems in Bridge mode, you need either many ethernet interfaces, or just a switch that supports VLANs =)

Thank you very much , i will get the modem which supports Bridge mode which assigns public ip directly to Mikrotik router

i will attach 2 * 4 port ethernet cards and there will be one onboard ethernet card which will used for lan connections

and 8 ports for wans and will do natting in the main router only let me find how it goes , if anything doubtfull please support me

Thanks,
Sathish

Thank you very much , i will get the modem which supports Bridge mode which assigns public ip directly to Mikrotik router

i will attach 2 * 4 port ethernet cards and there will be one onboard ethernet card which will used for lan connections

and 8 ports for wans and will do natting in the main router only let me find how it goes , if anything doubtfull please support me

Thanks,
Sathish