Community discussions

MikroTik App
 
dana1975
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Sat Jul 04, 2009 8:32 pm

NTH load balancing

Fri Aug 07, 2009 3:45 pm

this is my configuration for mikrotik and use NTH load balancing
ether2,3,4 have 1536/512KB BW
in my client 192.168.100.20/24 i can only download 1535KB with DAP or Flashget
it correct? or i must have 3*1536KB download speed in my client
/ip address 
add interface=ether1 address=192.168.100.1/24 disabled=no

/ip dhcp-client 
add interface=ether2 use-peer-dns=yes add-default-route=yes disabled=no
add interface=ether3 use-peer-dns=yes add-default-route=yes disabled=no
add interface=ether4 use-peer-dns=yes add-default-route=yes disabled=no

/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=x.x.224.1 routing-mark=ruta1
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=x.x.128.1 routing-mark=ruta2
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=x.x.160.1 routing-mark=ruta3

/ip firewall nat
add chain=srcnat out-interface=ether2 action=masquerade
add chain=srcnat out-interface=ether3 action=masquerade
add chain=srcnat out-interface=ether4 action=masquerade

/ip firewall mangle
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=ether1 new-connection-mark=ruta1_cnx nth=3,1 passthrough=yes
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=ether1 new-connection-mark=ruta2_cnx nth=3,2 passthrough=yes
add action=mark-connection chain=prerouting comment="" connection-state=new disabled=no in-interface=ether1 new-connection-mark=ruta3_cnx nth=3,3 passthrough=yes

add action=mark-packet chain=prerouting comment="" connection-mark=ruta1_cnx disabled=no new-packet-mark=packet1 passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=ruta2_cnx disabled=no new-packet-mark=packet2 passthrough=yes
add action=mark-packet chain=prerouting comment="" connection-mark=ruta3_cnx disabled=no new-packet-mark=packet3 passthrough=yes

add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=ruta1 packet-mark=packet1 passthrough=no
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=ruta2 packet-mark=packet2 passthrough=no
add action=mark-routing chain=prerouting comment="" disabled=no new-routing-mark=ruta3 packet-mark=packet3 passthrough=no

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

Re: NTH load balancing

Fri Aug 07, 2009 3:49 pm

yes, it's correct. especially if you download in 1 stream

PCC is still better than Nth )))
 
dana1975
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Sat Jul 04, 2009 8:32 pm

Re: NTH load balancing

Fri Aug 07, 2009 4:07 pm

if i use flashget or dap i can download 3*1.5mb?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: NTH load balancing

Fri Aug 07, 2009 4:18 pm

yes, if every thread will download via separate gateway
 
dana1975
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Sat Jul 04, 2009 8:32 pm

Re: NTH load balancing

Fri Aug 07, 2009 5:54 pm

but when i download with flashget that support multi session i have only 1.5mb
and when i run 6 tracerout command , i see that all of them exit with only one gateway
when i use ECMP everything is ok
but with NTH that you can find full command in this post i have problem
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: NTH load balancing

Fri Aug 07, 2009 10:51 pm

are all three branches of Nth count packets?..
 
dana1975
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Sat Jul 04, 2009 8:32 pm

Re: NTH load balancing

Sat Aug 08, 2009 12:22 am

yes sir
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: NTH load balancing

Sat Aug 08, 2009 10:10 am

so, I don't know, why
and when i run 6 tracerout command , i see that all of them exit with only one gateway

Who is online

Users browsing this forum: No registered users and 40 guests