Community discussions

MikroTik App
 
pochbba
newbie
Topic Author
Posts: 26
Joined: Mon Jun 19, 2006 10:00 pm
Location: Argentina

nth, just to know..

Thu Aug 17, 2006 3:19 am

can anyone with the right experience please write a basic wiki to explain nth feature??

itll be very helpful for all

tnx you all
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Thu Aug 17, 2006 10:40 am

Can everyone without the right experience read the manual before asking such questions?

http://www.mikrotik.com/docs/ros/2.9/ip ... 0388772383
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Thu Aug 17, 2006 11:39 am

 
pochbba
newbie
Topic Author
Posts: 26
Joined: Mon Jun 19, 2006 10:00 pm
Location: Argentina

Thu Aug 17, 2006 9:21 pm

eugene, thanks for your advice about the manual.. ive read it before asking, its just that i dont understand it.


and normis, thanks for the link to my own post.. where i was asking something about nth..


the only thing i want, and i think most of mt users want, is a little bit more complete explanation of this feature, but, if you dont want thanks anyway.


regards
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Thu Aug 17, 2006 9:37 pm

example:
nth=Every,Counter,Packet
nth=2,3,0.
2,3,1
2,3,2

divide all packets into groups of three (2+1). The packets will be numbered from 0 to 2. So, a sequence of packets the rule matches looks like:
(0 1 2)(0 1 2)(0 1 2)(0 1 2)(0 1 2)...

the first rule will match the first packet in each group ("Packet"=0). The second rule will match the second packet in each group ("Packet"=1) and so on. Each successful match increments the counter. When a value of "Every" is reached, the counter is reset to 0. For this to work, the "Counter" should be the same for all rules (you can pick any value from 0 to 15, IIRC).

Eugene
 
User avatar
maximan
Trainer
Trainer
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Fri Aug 18, 2006 12:51 am

@eugene: so, for 5 wanes the nth is:
4,6,0
4,6,1
4,6,2
4,6,3
4,6,4

?????

M.
 
pochbba
newbie
Topic Author
Posts: 26
Joined: Mon Jun 19, 2006 10:00 pm
Location: Argentina

Fri Aug 18, 2006 9:27 am

thank you a lot man.. at last i can understand it well!!

tnx again, c ya
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Fri Aug 18, 2006 10:29 am

@eugene: so, for 5 wanes the nth is:
4,6,0
4,6,1
4,6,2
4,6,3
4,6,4

?????

M.
yes
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Sun Sep 03, 2006 6:25 pm

@eugene: so, for 5 wanes the nth is:
4,6,0
4,6,1
4,6,2
4,6,3
4,6,4

?????

M.
yes
I think there is somethign wrong with this function...
i have two wan now, and nth is 1,1,0 and 1,1,1

So, my 10 session download start with 5 Odd que
and 5 even which is find but after half an hour it all
will switch to even which is (1,1,1)

any reason for this?

and how can I load balance three line with different value?
like I have 1 pair of 2mb line and single 1mb line.

how to LB that ? nth number?
 
simonkizi
newbie
Posts: 45
Joined: Mon Jan 30, 2006 10:38 pm

Wed Oct 25, 2006 3:45 pm

@eugene: so, for 5 wanes the nth is:
4,6,0
4,6,1
4,6,2
4,6,3
4,6,4

?????

M.
yes
I think there is somethign wrong with this function...
i have two wan now, and nth is 1,1,0 and 1,1,1

So, my 10 session download start with 5 Odd que
and 5 even which is find but after half an hour it all
will switch to even which is (1,1,1)

any reason for this?

and how can I load balance three line with different value?
like I have 1 pair of 2mb line and single 1mb line.

how to LB that ? nth number?
Stupid but it might work? Give it a try.

Divide your packets to groups of 5 instead of 3 ie as if 5 wan Gateways(GW)

set mangle rules with different nth

In the static routes set two entries for each of the 2Mbps and 1 entry for the 1Mbps

leave a gap between the routed packets:

Con 1 ==> GW1
Con 2 ==> GW2
Con 3 ==> GW1
Con 4 ==> GW2
Con 5 ==> GW3

Hope it works, maybe dumb logic. LOL
 
Hellbound
Long time Member
Long time Member
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Wed Oct 25, 2006 5:03 pm


Stupid but it might work? Give it a try.

Divide your packets to groups of 5 instead of 3 ie as if 5 wan Gateways(GW)

set mangle rules with different nth

In the static routes set two entries for each of the 2Mbps and 1 entry for the 1Mbps

leave a gap between the routed packets:

Con 1 ==> GW1
Con 2 ==> GW2
Con 3 ==> GW1
Con 4 ==> GW2
Con 5 ==> GW3

Hope it works, maybe dumb logic. LOL

Hi,

In fact this is what I had in mind and I gave it a try. and it did worked.
however I'm working on something else to combine with it.

Thanks
Last edited by Hellbound on Fri Oct 27, 2006 2:39 pm, edited 1 time in total.
 
simonkizi
newbie
Posts: 45
Joined: Mon Jan 30, 2006 10:38 pm

Fri Oct 27, 2006 2:38 pm

Hellbound, thx for your response.

Please update with any other achievements.

Good Luck.
 
majedalanni
just joined
Posts: 17
Joined: Tue Dec 05, 2006 11:09 pm

Sat Dec 09, 2006 11:08 am

Dear Eugene

I have 10 IPs waht Is nth
Is it

9,11,0
9,11,1
.
.
.
.
9.11.9

and I have one gateway to theses IPs


and can you write me the configration with nat and transparent proxy for caching


ISP (10.1.1.1) -----------(10.75.75.110-119/8 ) ---- MT(2.9) ---- AP ---- Clients(12.59.42.0/24)

I want Load balance
I need to use all bandwidth it mean (10*128kb) because my ip downlaod 128 and up 64
even if one client download he can get the whole bandwidth not only 128k

Beat Regards
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Sun Mar 11, 2007 11:24 pm

Can everyone without the right experience read the manual before asking such questions?

http://www.mikrotik.com/docs/ros/2.9/ip ... 0388772383
That's a broken link Eugene.
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Sun Mar 11, 2007 11:26 pm

I posted twice because I got broken SMTP forum error: sendmail.php or something.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7187
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Sun Mar 11, 2007 11:28 pm

first of all look at the date of his post :D:D

http://wiki.mikrotik.com/wiki/Nth
here is detailed explanation

Who is online

Users browsing this forum: jompha, leechiing and 17 guests