Page 1 of 1

PCC does not use traffic from 2nd line ??

Posted: Sun Jul 27, 2014 1:44 pm
by qassam2
hello all ....
i have a big problem with mikrotik board 750GL version v5.25
i have 2 ADSL lines
line 1 : 4MB
line 2 : 4MB

i used this script to make loadbalancing :
/ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=WAN1
add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=WAN2
 
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=221.132.112.8,8.8.8.8
 
/ip firewall mangle
add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn
 
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2
 
add chain=prerouting dst-address=192.168.1.0/24 action=accept in-interface=Local
add chain=prerouting dst-address=192.168.2.0/24 action=accept in-interface=Local
 
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
 
add chain=prerouting connection-mark=WAN1_conn in-interface=Local action=mark-routing new-routing-mark=to_WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=Local action=mark-routing new-routing-mark=to_WAN2
 
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping
 
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
 
/ip firewall nat
add chain=srcnat out-interface=WAN1 action=masquerade
add chain=srcnat out-interface=WAN2 action=masquerade
but the problem is that the other line traffic didn't moving when i try to download any file from the internet my speed is 4 mb just . please help me :D

Re: PCC does not use traffic from 2nd line ??

Posted: Sun Jul 27, 2014 7:35 pm
by heislerb
It is all working correctly.

If one user downloads their max download is 4mbps.

If 8 users are downloading and they are controlled to 1mbps then they will all get their 1mbps (8mbps combined)

The above is the way it works.

Re: PCC does not use traffic from 2nd line ??

Posted: Tue Jul 29, 2014 11:53 pm
by qassam2
It is all working correctly.

If one user downloads their max download is 4mbps.

If 8 users are downloading and they are controlled to 1mbps then they will all get their 1mbps (8mbps combined)

The above is the way it works.
this does not helps me my frind
the main aim from loadbalancing is to get 2 lines work with each others !!
so my second line does not work with PCC i dont know why i neeeeeeeeeeeeeeeed help plz !!

Re: PCC does not use traffic from 2nd line ??

Posted: Wed Jul 30, 2014 7:53 am
by Rudios
Like heislerb said, with PCC any single connection will have max 4Mbit.
The PCC rules you created will devide traffic based on source and destination IP + Port.
So if you are downloading something from Microsoft, your IP + MS's IP will be calculated and the connection will be routed over 1 of the 2 lines.
The principle of PCC is that all the bandwidth available (4 + 4) will be shared by all the clients together, but any given connection will only be possibly as fast as the fastest single connection.

It is hard to create a setup where the speeds are combined for 1 single connection.
In that case you need a device on each end of the lines which will bound the two individual lines together.
But I assume that the other side of the line is you ISP so you won't be able to place any device on that other side.

Re: PCC does not use traffic from 2nd line ??

Posted: Thu Jul 31, 2014 1:23 am
by qassam2
Like heislerb said, with PCC any single connection will have max 4Mbit.
The PCC rules you created will devide traffic based on source and destination IP + Port.
So if you are downloading something from Microsoft, your IP + MS's IP will be calculated and the connection will be routed over 1 of the 2 lines.
The principle of PCC is that all the bandwidth available (4 + 4) will be shared by all the clients together, but any given connection will only be possibly as fast as the fastest single connection.

It is hard to create a setup where the speeds are combined for 1 single connection.
In that case you need a device on each end of the lines which will bound the two individual lines together.
But I assume that the other side of the line is you ISP so you won't be able to place any device on that other side.
aha okay i understand what u said but i c 2 many Tutorials on youtube.com and arabic fourms when they make PCC they get the max speed for each lines both !!
look at this arabic tutorial
[youtube]https://www.youtube.com/watch?v=15LngWiDZaU[/youtube]
this for person his name shady and he is an expert in mikrotik networks and he talk about combined 8 lines with 21 mega speed and he used internet download manger to show us how he get download traffic from all lines
but he used PCC method with bridge and he link all routers with each others and used 2 ports from mikrotik port for internet out and the other for internet in !!
so ... ??

PCC does not use traffic from 2nd line ??

Posted: Thu Jul 31, 2014 2:58 am
by freemannnn
You said it for youself. Download manager (eg jdownloader) uses many connections to same file and thats why it uses all lines. If he just download a file from web browser it will use just one line. Try it yourself. Use a download manager and see both lines working!

Re: PCC does not use traffic from 2nd line ??

Posted: Thu Jul 31, 2014 1:24 pm
by qassam2
You said it for youself. Download manager (eg jdownloader) uses many connections to same file and thats why it uses all lines. If he just download a file from web browser it will use just one line. Try it yourself. Use a download manager and see both lines working!
thats my problem man i used IDM and still the same problem thats why i writing here

Re: PCC does not use traffic from 2nd line ??

Posted: Tue Aug 19, 2014 3:02 pm
by nwa
Hello,

i want the same config... but !!!!!
i have to login via pppoe clients for my two lines...
i taste it with this config but dindt work.. because of the pppoe client and not a static ip from isp..
some things have to change and i taste a little bit but it works not !

what must i do to run PCC with load balancing with two ADSL pppoe lines ???
please help...

ip address
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.1.1/24 192.168.1.0 ether3-switch
1 10.0.1.2/24 10.0.1.0 WAN1-NC
2 10.0.2.2/24 10.0.2.0 WAN2-T
3 D 87.79.96.**/32 195.14.226.59 pppoe-out1-NC
4 D 79.228.135.**/32 217.0.118.194 pppoe-out2-T



ip route
0 A S 0.0.0.0/0 pppoe-out1-NC 1
1 A S 0.0.0.0/0 pppoe-out2-T 1
2 ADS 0.0.0.0/0 195.14.226.59 1
3 S 0.0.0.0/0 pppoe-out1-NC 1
4 DS 0.0.0.0/0 217.0.118.194 2
5 S 0.0.0.0/0 pppoe-out2-T 2
6 ADC 10.0.1.0/24 10.0.2.2 WAN2-T 0
WAN1-NC
7 ADC 192.168.1.0/24 192.168.1.1 bridge-local 0
8 ADC 195.14.226.59/32 87.79.96.61 pppoe-out1-NC 0
9 ADC 217.0.118.194/32 79.228.135.137 pppoe-out2-T 0





/interface

0 R ;;; ISP
WAN1-NC ether 1500 1598 4074
1 R WAN2-T ether 1500 1598 4074
2 RS ;;; LAN
ether3-switch ether 1500 1598 4074
3 XS ether4 ether 1500 1598 4074
4 RS ether5-ap ether 1500 1598 4074
5 XS ;;; DOWN
ether6-master-local ether 1500 1598 2028
6 XS ether7-slave-local ether 1500 1598 2028
7 XS ether8-slave-local ether 1500 1598 2028
8 XS ether9-slave-local ether 1500 1598 2028
9 XS ether10-slave-local ether 1500 1598 2028
10 XS sfp1 ether 1500 1598 4074
11 R bridge-local bridge 1500 1598
12 R pppoe-out1-NC pppoe-out 1480
13 R pppoe-out2-T pppoe-out 1480


/pppoe client

0 R name="pppoe-out1-NC" max-mtu=1480 max-mru=1480 mrru=1600
interface=WAN1-NC user="blabla" password="blabla"
profile=default keepalive-timeout=60 service-name="" ac-name=""
add-default-route=yes default-route-distance=1 dial-on-demand=no
use-peer-dns=yes allow=pap,chap,mschap1,mschap2

1 R name="pppoe-out2-T" max-mtu=1480 max-mru=1480 mrru=1600 interface=WAN2-T
user="blublub" password="blubblub"
profile=default keepalive-timeout=60 service-name="" ac-name=""
add-default-route=yes default-route-distance=2 dial-on-demand=no
use-peer-dns=yes allow=pap,chap,mschap1,mschap2