PCC load balancing not working

Hi,

I have 2 Wan setup in mikrotik ccr. And PPPoE server setup for clients. Export from my router for dual wan scripting is as following. Still all the traffic is routing through the isp with route distance set to 1. Please tell me where i am wrong in configuration.


/ip address
add address=115.249.74.13/30 interface=WAN1-Rcom network=115.249.74.12
add address=14.141.161.242/30 interface=WAN2-TCL network=14.141.161.240
add address=192.168.22.1/24 interface=Local network=192.168.22.0
add address=10.0.0.1/24 interface=Local network=10.0.0.0
add address=122.102.117.233/29 interface=Local network=122.102.117.232
add address=14.141.160.161/28 interface=Local network=14.141.160.160
add address=14.140.153.113/28 interface=Local network=14.140.153.112
add address=172.18.0.1/23 interface=Local network=172.18.0.0
add address=45.120.123.1/24 interface=Local network=45.120.123.0
add address=103.42.206.193/27 interface=Local network=103.42.206.192
add address=172.16.0.1/23 interface=Local network=172.16.0.0
add address=115.248.240.129/29 interface=Local network=115.248.240.128
add address=122.102.117.217/29 interface=Local network=122.102.117.216
add address=122.102.117.225/29 interface=Local network=122.102.117.224
add address=103.42.206.161/27 interface=Local network=103.42.206.160
add address=10.10.100.1/23 interface=Local network=10.10.100.0


/ip firewall address-list
add address=10.0.0.0/24 list=allow
add address=14.140.153.112/28 comment=“TCL POOL 1” list=“TCL Pool 1”
add address=14.141.160.160/28 comment=“TCL POOL 2” list=“TCL Pool 2”
add address=45.120.123.0/24 list=allow
add address=103.42.206.160/27 comment=“RCOM POOL 1” list=“RCOM Pool 1”
add address=103.42.206.192/27 comment=“RCOM POOL 2” list=allow
add address=115.248.240.128/29 list=allow
add address=122.102.117.216/29 list=allow
add address=122.102.117.224/29 list=allow
add address=122.102.117.232/29 list=allow
add address=172.16.0.0/23 list=allow
add address=172.18.0.0/23 list=allow
add address=192.168.22.0/24 list=allow
add address=172.19.0.0/24 list=allow
add address=10.10.100.0/23 list=allow


/ip firewall mangle
add chain=prerouting dst-address=115.249.74.12/30 in-interface=Local
add chain=prerouting dst-address=103.42.206.160/27 in-interface=Local
add chain=prerouting dst-address=14.141.161.240/30 in-interface=Local

add action=mark-connection chain=prerouting in-interface=WAN1-Rcom
new-connection-mark=WAN1_conn
add action=mark-connection chain=prerouting in-interface=WAN2-TCL
new-connection-mark=WAN2_conn

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

add action=mark-routing chain=prerouting connection-mark=WAN1_conn
in-interface=Local new-routing-mark=to_WAN1
add action=mark-routing chain=prerouting connection-mark=WAN2_conn
in-interface=Local new-routing-mark=to_WAN2

add action=mark-routing chain=output connection-mark=WAN1_conn
new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=WAN2_conn
new-routing-mark=to_WAN2

/ip firewall nat

add action=masquerade chain=srcnat out-interface=WAN1-Rcom src-address-list=
allow
add action=masquerade chain=srcnat out-interface=WAN2-TCL src-address-list=
allow

/ip route
add check-gateway=ping distance=1 gateway=115.249.74.14 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=14.141.161.241 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=14.141.161.241
add check-gateway=ping distance=2 gateway=115.249.74.14


Please help me. Dual wan not working properly. most of the traffic is going on TCL wan since its distance is set to 1 in route.

Thanks In advance,
Sanket Bijlani

Following is the screenshot of interfaces. see the bandwidth difference.

PCC is never perfectly balanced because is done per tcp/ip connection

is a matter of luck because there is no manner to know how many traffic a tcp/ip connection will transfer

normally this situation is normalized when link is near full utilization.

use simple queues to control bandwidth of the hosts on the two links, that can help to smooth the situation

Hi chechito,

Thanks for the reply. I have setup DMA softlab radius manager with this router. so using simple queue is not possible. Is there any other approach to load balance the bandwidth in effective way?

Thanks in Advance,
Sanket

i have not used that radius implementation because that i dont understand why you cant use simple queuing on the router

i think dis-balance occurs because high bandwidth connections, maybe you have to identify the source or destination of it to think a strategy

try balancing only for source address or by destination address to see if that strategy works better for you