Community discussions

MikroTik App
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 01, 2016 11:54 am

Hi,
i have configured load balance pcc 3 wan on RB2011 (2 line 50mbits and 1 line 40mbits) and it worked fine.
Now i want to add 1 more wan line 40mbits. But after i added it and config on RB2011, the internet speed drop greatly (from 120~140mbit to 50~70mbits).
Here is my config.
[size=85][font=Helvetica Neue, Helvetica, Arial, sans-serif]/ip address[/font][/size]
add address=192.168.1.1/24 interface=bridge1 network=192.168.1.0
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=8.8.8.8 gateway=192.168.1.1
/ip firewall mangle
add chain=prerouting in-interface=wan1
add chain=prerouting in-interface=wan2
add chain=prerouting in-interface=wan3
add chain=prerouting in-interface=wan4
add action=mark-connection chain=input disabled=yes in-interface=wan1 \
    new-connection-mark=wan1_conn
add action=mark-connection chain=input disabled=yes in-interface=wan2 \
    new-connection-mark=wan2_conn
add action=mark-connection chain=input disabled=yes in-interface=wan3 \
    new-connection-mark=wan4_conn
add action=mark-connection chain=input disabled=yes in-interface=wan4 \
    new-connection-mark=wan3_conn
add action=mark-routing chain=output connection-mark=wan1_conn disabled=yes \
    new-routing-mark=to_wan1
add action=mark-routing chain=output connection-mark=wan2_conn disabled=yes \
    new-routing-mark=to_wan2
add action=mark-routing chain=output connection-mark=wan3_conn disabled=yes \
    new-routing-mark=to_wan3
add action=mark-routing chain=output connection-mark=wan4_conn disabled=yes \
    new-routing-mark=to_wan4
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface=bridge1 new-connection-mark=wan1_conn \
    per-connection-classifier=both-addresses-and-ports:4/0
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface=bridge1 new-connection-mark=wan2_conn \
    per-connection-classifier=both-addresses-and-ports:4/1
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface=bridge1 new-connection-mark=wan3_conn \
    per-connection-classifier=both-addresses-and-ports:4/2
add action=mark-connection chain=prerouting disabled=yes dst-address-type=\
    !local in-interface=bridge1 new-connection-mark=wan4_conn \
    per-connection-classifier=both-addresses-and-ports:4/3
add action=mark-routing chain=prerouting connection-mark=wan1_conn \
    in-interface=bridge1 new-routing-mark=to_wan1
add action=mark-routing chain=prerouting connection-mark=wan2_conn \
    in-interface=bridge1 new-routing-mark=to_wan2
add action=mark-routing chain=prerouting connection-mark=wan3_conn \
    in-interface=bridge1 new-routing-mark=to_wan3
add action=mark-routing chain=prerouting connection-mark=wan4_conn disabled=yes \
    in-interface=bridge1 new-routing-mark=to_wan4
/ip firewall nat
add action=masquerade chain=srcnat out-interface=wan1
add action=masquerade chain=srcnat out-interface=wan2
add action=masquerade chain=srcnat out-interface=wan3
add action=masquerade chain=srcnat out-interface=wan4
/ip route
add check-gateway=ping distance=1 gateway=wan1 routing-mark=to_wan1
add check-gateway=ping distance=1 gateway=wan2 routing-mark=to_wan2
add check-gateway=ping distance=1 gateway=wan3 routing-mark=to_wan3
add check-gateway=ping disabled=yes distance=1 gateway=wan4 routing-mark=to_wan4

add distance=1 gateway=10.41.239.8
add distance=1 gateway=123.19.188.1





Did i do something wrong ? Any ideas is helpful.
Thanks in advance and sorry for my bad english. 
 
Miracle
Member Candidate
Member Candidate
Posts: 106
Joined: Fri Sep 11, 2015 9:04 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 01, 2016 1:48 pm

You should upgrade to RB1100 or CCR1009
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 01, 2016 5:25 pm

You should upgrade to RB1100 or CCR1009
so the internet speed drop because the router RB2011 can't handle it ?
Not because of the config ??
 
User avatar
skyctgbd
just joined
Posts: 13
Joined: Thu Oct 01, 2015 3:48 pm
Location: Chittagong, Bangladesh.

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 01, 2016 6:45 pm

i think your pcc config will be this way for better response.
For example:
/ip firewall mangle
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN1 new-connection-mark=WAN1_conn passthrough=yes
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN2 new-connection-mark=WAN2_conn passthrough=yes
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN3 new-connection-mark=WAN3_conn passthrough=yes
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN4 new-connection-mark=WAN4_conn passthrough=yes
 
 add action=mark-routing chain=output comment="" connection-mark=WAN1_conn disabled=no new-routing-mark=to_WAN1 passthrough=yes
 add action=mark-routing chain=output comment="" connection-mark=WAN2_conn disabled=no new-routing-mark=to_WAN2 passthrough=yes
 add action=mark-routing chain=output comment="" connection-mark=WAN3_conn disabled=no new-routing-mark=to_WAN3 passthrough=yes
 add action=mark-routing chain=output comment="" connection-mark=WAN4_conn disabled=no new-routing-mark=to_WAN4 passthrough=yes
 
 add action=accept chain=prerouting comment="WAN1" disabled=no dst-address=192.168.10.0/24
 add action=accept chain=prerouting comment="WAN2" disabled=no dst-address=192.168.20.0/24
 add action=accept chain=prerouting comment="WAN3" disabled=no dst-address=192.168.30.0/24
 add action=accept chain=prerouting comment="WAN4" disabled=no dst-address=192.168.40.0/24
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/0 src-address=192.168.1.1-192.168.1.255
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/1 src-address=192.168.1.1-192.168.1.255
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN3_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/2 src-address=192.168.1.1-192.168.1.255
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN4_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/3 src-address=192.168.1.1-192.168.1.255
 
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN1_conn disabled=no new-routing-mark=to_WAN1 passthrough=yes
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN2_conn disabled=no new-routing-mark=to_WAN2 passthrough=yes
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN3_conn disabled=no new-routing-mark=to_WAN3 passthrough=yes
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN4_conn disabled=no new-routing-mark=to_WAN4 passthrough=yes
 
/ip firewall nat
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN1 src-address=192.168.1.1-192.168.1.255
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN2 src-address=192.168.1.1-192.168.1.255
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN3 src-address=192.168.1.1-192.168.1.255
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN4 src-address=192.168.1.1-192.168.1.255
 
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.10.1 routing-mark=to_WAN1 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.20.1 routing-mark=to_WAN2 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.30.1 routing-mark=to_WAN3 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.40.1 routing-mark=to_WAN4 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.10.1 scope=30 target-scope=10
 
add check-gateway=ping comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.20.1 scope=30 target-scope=10
 
add check-gateway=ping comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.30.1 scope=30 target-scope=10
 
add check-gateway=ping comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.40.1 scope=30 target-scope=10
 
Miracle
Member Candidate
Member Candidate
Posts: 106
Joined: Fri Sep 11, 2015 9:04 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 01, 2016 8:04 pm

You should upgrade to RB1100 or CCR1009
so the internet speed drop because the router RB2011 can't handle it ?
Not because of the config ??
Yes, CPU AR9344 not enough power
You can do it with 200Mbps single WAN, but it can't run PCC loadblancing more than 70Mbps
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Sat Jul 02, 2016 6:31 am

You should upgrade to RB1100 or CCR1009
so the internet speed drop because the router RB2011 can't handle it ?
Not because of the config ??
Yes, CPU AR9344 not enough power
You can do it with 200Mbps single WAN, but it can't run PCC loadblancing more than 70Mbps
but im using load balance with 3 wan and it has 140mbits and it worked fine too.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Sat Jul 02, 2016 6:32 am

i think your pcc config will be this way for better response.
For example:
/ip firewall mangle
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN1 new-connection-mark=WAN1_conn passthrough=yes
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN2 new-connection-mark=WAN2_conn passthrough=yes
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN3 new-connection-mark=WAN3_conn passthrough=yes
 add action=mark-connection chain=input comment="" disabled=no in-interface=WAN4 new-connection-mark=WAN4_conn passthrough=yes
 
 add action=mark-routing chain=output comment="" connection-mark=WAN1_conn disabled=no new-routing-mark=to_WAN1 passthrough=yes
 add action=mark-routing chain=output comment="" connection-mark=WAN2_conn disabled=no new-routing-mark=to_WAN2 passthrough=yes
 add action=mark-routing chain=output comment="" connection-mark=WAN3_conn disabled=no new-routing-mark=to_WAN3 passthrough=yes
 add action=mark-routing chain=output comment="" connection-mark=WAN4_conn disabled=no new-routing-mark=to_WAN4 passthrough=yes
 
 add action=accept chain=prerouting comment="WAN1" disabled=no dst-address=192.168.10.0/24
 add action=accept chain=prerouting comment="WAN2" disabled=no dst-address=192.168.20.0/24
 add action=accept chain=prerouting comment="WAN3" disabled=no dst-address=192.168.30.0/24
 add action=accept chain=prerouting comment="WAN4" disabled=no dst-address=192.168.40.0/24
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/0 src-address=192.168.1.1-192.168.1.255
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/1 src-address=192.168.1.1-192.168.1.255
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN3_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/2 src-address=192.168.1.1-192.168.1.255
 
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local new-connection-mark=WAN4_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/3 src-address=192.168.1.1-192.168.1.255
 
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN1_conn disabled=no new-routing-mark=to_WAN1 passthrough=yes
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN2_conn disabled=no new-routing-mark=to_WAN2 passthrough=yes
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN3_conn disabled=no new-routing-mark=to_WAN3 passthrough=yes
 add action=mark-routing chain=prerouting comment="" connection-mark=WAN4_conn disabled=no new-routing-mark=to_WAN4 passthrough=yes
 
/ip firewall nat
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN1 src-address=192.168.1.1-192.168.1.255
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN2 src-address=192.168.1.1-192.168.1.255
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN3 src-address=192.168.1.1-192.168.1.255
 add action=masquerade chain=srcnat comment="" disabled=no out-interface=WAN4 src-address=192.168.1.1-192.168.1.255
 
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.10.1 routing-mark=to_WAN1 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.20.1 routing-mark=to_WAN2 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.30.1 routing-mark=to_WAN3 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.40.1 routing-mark=to_WAN4 scope=30 target-scope=10
 
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.10.1 scope=30 target-scope=10
 
add check-gateway=ping comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.20.1 scope=30 target-scope=10
 
add check-gateway=ping comment="" disabled=no distance=3 dst-address=0.0.0.0/0 gateway=192.168.30.1 scope=30 target-scope=10
 
add check-gateway=ping comment="" disabled=no distance=4 dst-address=0.0.0.0/0 gateway=192.168.40.1 scope=30 target-scope=10
Hi, 
so instead of using interface bridge, using ip address can give a better result ??
I will try it later thanks for your advice
 
Miracle
Member Candidate
Member Candidate
Posts: 106
Joined: Fri Sep 11, 2015 9:04 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Sat Jul 02, 2016 7:02 am

so the internet speed drop because the router RB2011 can't handle it ?
Not because of the config ??
Yes, CPU AR9344 not enough power
You can do it with 200Mbps single WAN, but it can't run PCC loadblancing more than 70Mbps
but im using load balance with 3 wan and it has 140mbits and it worked fine too.
It will drop speed when NAT sessions increases
70 Mbps under real conditions, not speedtest.net
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Sat Jul 02, 2016 3:44 pm

Yes, CPU AR9344 not enough power
You can do it with 200Mbps single WAN, but it can't run PCC loadblancing more than 70Mbps
but im using load balance with 3 wan and it has 140mbits and it worked fine too.
It will drop speed when NAT sessions increases
70 Mbps under real conditions, not speedtest.net
I didn't know that,
Could someone confirm that for me (It's not like i didn't trust you "Miracle" there is still so much i didn't know)
Btw, Thanks for the info "Miracle", i will start looking up for this.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Mon Jul 04, 2016 6:07 am

Ok, i have checked with my friend and he said that router 2011 will srtart to lost packet if it has more than 150mbits wan speed. SO i guess this is hardware problem.
 
User avatar
Bytezone
newbie
Posts: 41
Joined: Tue Jul 14, 2015 6:01 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Tue Jul 05, 2016 10:41 pm

Guys I got RB750Gr2 (hEX) to do the load balancing for 2 WAN (each one is 4Mb) the speed of connection is so terrible i tried both pcc and nth but nothing changed .. someone suggested that i should get RB951 instead of the RB750Gr2 to do the load balancing.. i don't know is it a hardware problem or what?

BTW the code i did for load balancing is similar to the one used by yaikun94
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 08, 2016 4:46 am

Guys I got RB750Gr2 (hEX) to do the load balancing for 2 WAN (each one is 4Mb) the speed of connection is so terrible i tried both pcc and nth but nothing changed .. someone suggested that i should get RB951 instead of the RB750Gr2 to do the load balancing.. i don't know is it a hardware problem or what?

BTW the code i did for load balancing is similar to the one used by yaikun94
have you tried to config it on RB951 ?
If it worked normally then it's a hardware problem.
 
User avatar
Bytezone
newbie
Posts: 41
Joined: Tue Jul 14, 2015 6:01 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Fri Jul 08, 2016 12:00 pm

the problem is that i don't have one on my hand to give it a try, so it's better to ask before buying one.

I'm sure someone has tried rb951 for doing the load balance. BTW the hotspot is configured on another x86 ros so the RB is just for doing the load balancing :)
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Tue Jul 12, 2016 9:59 am

the problem is that i don't have one on my hand to give it a try, so it's better to ask before buying one.

I'm sure someone has tried rb951 for doing the load balance. BTW the hotspot is configured on another x86 ros so the RB is just for doing the load balancing :)
hi,
sorry for the late reply.
I have 1 RB951G that already config load balance 2 wan (each has 15mbits) and it working just fine.
 
User avatar
Bytezone
newbie
Posts: 41
Joined: Tue Jul 14, 2015 6:01 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Sat Jul 16, 2016 11:21 pm

the problem is that i don't have one on my hand to give it a try, so it's better to ask before buying one.

I'm sure someone has tried rb951 for doing the load balance. BTW the hotspot is configured on another x86 ros so the RB is just for doing the load balancing :)
hi,
sorry for the late reply.
I have 1 RB951G that already config load balance 2 wan (each has 15mbits) and it working just fine.
well, thanks for the feedback ,, then i guess  i will go a head with it the next few days thank you again yaikun94 :)
just carious to know weather you followed the above pcc method on your rb951 since i have tried various load balancing ways including bridging the ISP modem links on the rb750hEX and got the same terrible speed result ?
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Sun Jul 17, 2016 3:43 pm

well, thanks for the feedback ,, then i guess  i will go a head with it the next few days thank you again yaikun94 :)
just carious to know weather you followed the above pcc method on your rb951 since i have tried various load balancing ways including bridging the ISP modem links on the rb750hEX and got the same terrible speed result ?
yes i'm using  the same pcc method
 
User avatar
Bytezone
newbie
Posts: 41
Joined: Tue Jul 14, 2015 6:01 am

Re: Help !!!!! Load Balance PCC 3 Wan. Added Wan 4 drop internet speed.

Mon Jul 18, 2016 10:26 pm

Greatly appreciate your info thank you yaikun94

Who is online

Users browsing this forum: Ahrefs [Bot], bcmdevtl, MauriceW and 105 guests