nth, just to know..

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

itll be very helpful for all

tnx you all

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

http://www.mikrotik.com/docs/ros/2.9/ip/filter||0.5344410388772383

plus, here are some examples :
http://forum.mikrotik.com/t/nth/8384/1

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

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

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

???

M.

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

tnx again, c ya

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

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

Hellbound, thx for your response.

Please update with any other achievements.

Good Luck.

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

That’s a broken link Eugene.

I posted twice because I got broken SMTP forum error: sendmail.php or something.

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

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