Community discussions

MikroTik App
 
ngv
just joined
Topic Author
Posts: 6
Joined: Mon Oct 31, 2011 6:11 am

Manual:PCC

Mon Oct 31, 2011 6:20 am

Hi,

I have been running the Mikrotik load balance found at http://wiki.mikrotik.com/wiki/Manual:PCC

I found all data goes over one connection and minimal over the second connection if I reboot the router I can move the data traffic to the second connection.

I was wondering if anyone has had any success with this?

I have moved back to an ip load balance what is more effecint at this stage but would preffer to get it to work via the Mikrotik wiki as it should be more effecient.

Regards,
Eric
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Manual:PCC

Mon Oct 31, 2011 5:46 pm

What method are you using to randomize the PCC choice? We choose src and dst address and it randomizes it fairly well so things are loaded evenly, and doesn't websites like forums and banking sites. If you choose something just like src-address then it doesn't have many variables to randomize the choices.
 
ngv
just joined
Topic Author
Posts: 6
Joined: Mon Oct 31, 2011 6:11 am

Re: Manual:PCC

Tue Nov 01, 2011 1:45 am

Hi Feklar,

Would you be able to share your Mangle rules?

Below is how I have set it up

0 chain=prerouting action=mark-connection new-connection-mark=ISP1_conn
passthrough=yes routing-mark=no-mark in-interface=pppoe-out1

1 chain=prerouting action=mark-connection new-connection-mark=ISP2_conn
passthrough=yes routing-mark=no-mark in-interface=pppoe-out2

2 chain=prerouting action=mark-connection new-connection-mark=ISP1_conn
passthrough=yes dst-address-type=!local in-interface=bridge1
connection-mark=no-mark per-connection-classifier=both-addresses:2/0

3 chain=prerouting action=mark-connection new-connection-mark=ISP2_conn
passthrough=yes dst-address-type=!local in-interface=bridge1
connection-mark=no-mark per-connection-classifier=both-addresses:2/1

4 chain=prerouting action=mark-routing new-routing-mark=to_ISP1
passthrough=yes in-interface=bridge1 connection-mark=ISP1_conn

5 chain=prerouting action=mark-routing new-routing-mark=to_ISP2
passthrough=yes in-interface=bridge1 connection-mark=ISP2_conn

6 chain=output action=mark-routing new-routing-mark=to_ISP1 passthrough=yes
connection-mark=ISP1_conn

Thanks
Eric
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Manual:PCC

Tue Nov 01, 2011 3:49 am

Those are the basic rules that I have, and the PCC matcher that I use. I just have more of them to randomize it a bit more depending on the amount of bandwidth available on each link. Keep in mind that PCC is a CONNECTION based load balancing method, not bandwidth. A router has no way of knowing how much bandwidth any given connection is going to take, or how long that connection will last. Because of that, it is possible for a link to be saturated while the other is not, but over time it will even out.
 
ngv
just joined
Topic Author
Posts: 6
Joined: Mon Oct 31, 2011 6:11 am

Re: Manual:PCC

Tue Nov 01, 2011 3:58 am

I actaully ran the rules for two months and it did not even out. I would end up with 100gb on first connection and 5 gig on the second.
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Manual:PCC

Tue Nov 01, 2011 5:07 am

That tells me the same host is likely downloading from the same source causing the disparity. Since both variables are the same, it will always use the same link. You can randomize it a bit more by adding in ports, but that can potentially break websites like forums and banking websites.
 
ngv
just joined
Topic Author
Posts: 6
Joined: Mon Oct 31, 2011 6:11 am

Re: Manual:PCC

Tue Nov 01, 2011 5:43 am

Thanks Feklar,

Will stick with the old method I was using via marking the source ip address as odd and even and maybe go back to this at a later stage as cant afford to have issues with websites.

Regards,
Eric
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Manual:PCC

Wed Nov 02, 2011 2:10 pm

don't you use proxy?..

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 146 guests