Community discussions

MikroTik App
 
LunaticRv
newbie
Topic Author
Posts: 42
Joined: Mon Dec 31, 2018 8:50 am

Best Method for 10 Equal WAN Load Balancing

Mon Jan 24, 2022 10:28 am

Hello,

I am trying to figure out which Load Balancing method is best for combining 10 equal WAN into single Uplink. What I tried is to use PCC and simple firewall marking method but it looks like I lose almost 25-30% of the total traffic.

I have 10 physically separate WAN with equal speed; 100 Mbps. I would appreciate to know which method is best for me to gain maximized speed without any interruption on my customers.

Thanks in advance.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19322
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Best Method for 10 Equal WAN Load Balancing

Mon Jan 24, 2022 2:10 pm

PCC load balancing...... if done correctly should work.
However what is the device doing the work ??
 
LunaticRv
newbie
Topic Author
Posts: 42
Joined: Mon Dec 31, 2018 8:50 am

Re: Best Method for 10 Equal WAN Load Balancing

Mon Jan 24, 2022 4:06 pm

PCC load balancing...... if done correctly should work.
However what is the device doing the work ??

Hi, thanks for reply.
I have tested with CCR1036-12G-4S with both ROS6 and ROS7. My sample config for ROS6 can be seen below;

/ip address
add address=192.168.100.1/224 network=192.168.100.0 interface=LAN
add address=192.168.1.1/30 network=192.168.1.0 interface=ether1
add address=192.168.2.1/30 network=192.168.2.1 interface=ether2
... to 10.1 - ether10

/ip firewall mangle
add chain=prerouting dst-address=192.168.1.0/30  action=accept in-interface=LAN
add chain=prerouting dst-address=192.168.2.0/30  action=accept in-interface=LAN
... to 10.0/30

/ip firewall mangle
add chain=prerouting in-interface=ether1 connection-mark=no-mark action=mark-connection new-connection-mark=ISP1_conn
add chain=prerouting in-interface=ether2 connection-mark=no-mark action=mark-connection new-connection-mark=ISP2_conn
... to ether10 - ISP10_conn

/ip firewall mangle
add chain=prerouting in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:10/0 action=mark-connection new-connection-mark=ISP1_conn
add chain=prerouting in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:10/1 action=mark-connection new-connection-mark=ISP2_conn
... to 10/9 - ISP10_conn

/ip firewall mangle
add chain=prerouting connection-mark=ISP1_conn in-interface=LAN action=mark-routing new-routing-mark=to_ISP1
add chain=prerouting connection-mark=ISP2_conn in-interface=LAN action=mark-routing new-routing-mark=to_ISP2
... to ISP10_conn - to_ISP10

add chain=output connection-mark=ISP1_conn action=mark-routing new-routing-mark=to_ISP1    
add chain=output connection-mark=ISP2_conn action=mark-routing new-routing-mark=to_ISP2
... to ISP10_conn - to_ISP10

/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade
add chain=srcnat out-interface=ether2 action=masquerade
... to ether10

/ip route
add check-gateway=ping distance=1 gateway=192.168.1.1 routing-mark=to_ISP1 scope=255
add check-gateway=ping distance=2 gateway=192.168.2.1 routing-mark=to_ISP2 scope=255
... to to_ISP10

add check-gateway=ping distance=1 gateway=192.168.1.1 scope=255
add check-gateway=ping distance=2 gateway=192.168.2.1 scope=255
... to distance=10 - 10.1

Who is online

Users browsing this forum: GoogleOther [Bot] and 36 guests