Community discussions

MikroTik App
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

pcc problem

Wed Mar 10, 2010 11:53 pm

as we can see
that pcc don't work as loadbalance
i will r post my config

/ip address
add address=192.168.10.2/24 broadcast=192.168.10.255 comment=\
"default configuration" disabled=no interface=Local network=192.168.10.0

/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out2 routing-mark=to_wan2
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out1
add check-gateway=ping comment=1 disabled=no distance=1 dst-address=0.0.0.0/0 \
gateway=pppoe-out1,pppoe-out2
add check-gateway=ping comment="" disabled=no distance=1 dst-address=\
0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
pppoe-out2
/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
pppoe-out1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
pppoe-out2
/ip firewall mangle
add action=mark-connection chain=input comment="" disabled=no in-interface=\
pppoe-out1 new-connection-mark=wan1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=\
pppoe-out2 new-connection-mark=wan2_conn passthrough=yes
add action=mark-connection chain=output comment="" connection-mark=no-mark \
disabled=no new-connection-mark=wan1_conn passthrough=yes \
per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=output comment="" connection-mark=no-mark \
disabled=no new-connection-mark=wan2_conn passthrough=yes \
per-connection-classifier=both-addresses:2/1
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=Local new-connection-mark=wan1_conn \
passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting comment="" disabled=no \
dst-address-type=!local in-interface=Local new-connection-mark=wan2_conn \
passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting comment="" connection-mark=wan1_conn \
disabled=no in-interface=Local new-routing-mark=to_wan1 passthrough=yes
add action=mark-routing chain=prerouting comment="" connection-mark=wan2_conn \
disabled=no in-interface=Local new-routing-mark=to_wan2 passthrough=yes
You do not have the required permissions to view the files attached to this post.
 
missinlnk
Member Candidate
Member Candidate
Posts: 113
Joined: Wed Aug 13, 2008 8:10 pm

Re: pcc problem

Thu Mar 11, 2010 12:56 am

add check-gateway=ping comment=1 disabled=no distance=1 dst-address=0.0.0.0/0 \
gateway=pppoe-out1,pppoe-out2
Why is this line in your config?

Also, how are you testing this? How many computers are sending bandwidth through the router at that point?
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: pcc problem

Thu Mar 11, 2010 5:32 pm

one computer
i use dowload manger to test my bandwith
 
missinlnk
Member Candidate
Member Candidate
Posts: 113
Joined: Wed Aug 13, 2008 8:10 pm

Re: pcc problem

Thu Mar 11, 2010 6:46 pm

If you're only using one computer, and you're only testing with one connection out to the internet, then it looks like it's working correctly.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: pcc problem

Thu Mar 11, 2010 7:09 pm

how that come in three case i has same speed
i don't get what i must get double speed since tow are line equal
256+256=512
all whati get 256
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: pcc problem

Thu Mar 11, 2010 7:15 pm

PCC load balances connections, not packets WITHIN a connection. If you only have one connection going (one download), you're going to get the speed of one line.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: pcc problem

Thu Mar 11, 2010 9:14 pm

what is the way to has 2 lin as one line on one pc
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: pcc problem

Thu Mar 11, 2010 9:18 pm

Unless you have another router out in the cloud to run bonded tunnels to, you would have to ask your provider for help. They would have to provide you bonded circuits.

But: PCC will balance by connection. So if one PC is using more than one TCP connection (downloading many files at ones), it can use both circuits. It's just that you can't make one download go across both lines at once.
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: pcc problem

Thu Mar 11, 2010 9:34 pm

back to pcc
if i 2 pc on LAN and i push the 1srt pc to use the all connection it can used.. the 2nd pc will use the second line ??
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: pcc problem

Thu Mar 11, 2010 9:40 pm

Theory

PCC takes selected fields from IP header, and with the help of a hashing algorithm converts selected fields into 32-bit value. This value then is divided by a specified Denominator and the remainder then is compared to a specified Remainder, if equal then packet will be captured. You can choose from src-address, dst-address, src-port, dst-port from the header to use in this operation.
PCC takes any new connections and runs an algorithm on them to classify them. Based on that classification you can then push it out a particular circuit.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: pcc problem

Thu Mar 11, 2010 11:04 pm

256+256=512
huh, look at last MUM's presentation: http://mum.mikrotik.com/presentations/P ... ancing.pdf

6th page :D
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: pcc problem

Sat Mar 13, 2010 5:49 pm

you had post it to me before and i had read it
but i dont know what i dont see in it
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: pcc problem

Sat Mar 13, 2010 7:05 pm

256+256 is not equal to 512 if we're talking about load balance =)

Who is online

Users browsing this forum: No registered users and 62 guests