Community discussions

MikroTik App
 
User avatar
tadpole
newbie
Topic Author
Posts: 47
Joined: Fri May 07, 2010 2:20 pm

Load Balancing

Wed Sep 21, 2016 4:57 pm

Hi all,
I want to find out more about using PCC
I have 8x 4mb/512kbps ADSL lines, currently i use PCC to split the traffic into HTTP/HTTPS/p2p and then route it all out via different lines.
My question is, is using pcc src-address the best/most efficient way to use these lines?
I have set up another RB to test these setups
http://wiki.mikrotik.com/wiki/Manual:PCC
https://aacable.wordpress.com/2011/06/0 ... t-by-zaib/
https://aacable.wordpress.com/2011/07/2 ... t-by-zaib/

The main difference i have see is in the marking of the traffic and using both-addresses in PCC instead of where i have used src-address for the pcc:
/ ip firewall mangle

add action=mark-routing chain=prerouting comment=route-HTTP-1 new-routing-mark=\
    route-HTTP-1 dst-port=80 passthrough=no per-connection-classifier=\
    src-address:3/0
add action=mark-routing chain=prerouting comment=route-HTTP-2 new-routing-mark=\
    route-HTTP-2 dst-port=80 passthrough=no per-connection-classifier=\
    src-address:3/1
add action=mark-routing chain=prerouting comment=route-HTTP-3 new-routing-mark=\
    route-HTTP-3 dst-port=80 passthrough=no per-connection-classifier=\
    src-address:3/2
    
add check-gateway=ping comment="ADSL HTTP 1" distance=1 gateway=10.0.1.2 \
    routing-mark=route-http-1
add check-gateway=ping comment="ADSL HTTP 2" distance=1 gateway=10.0.2.2 \
    routing-mark=route-http-2
add check-gateway=ping comment="ADSL HTTP 3" distance=1 gateway=10.0.3.2 \
    routing-mark=route-http-3

Is there a "correct" way to do the PCC or is it much of a muchness?