Community discussions

MikroTik App
 
rzirzi
Member
Member
Topic Author
Posts: 393
Joined: Mon Oct 09, 2006 2:33 pm

ack prioritization

Tue Feb 19, 2008 8:47 am

I would like to prioritize ACK packets for DSL link. I am using NAT on that MT box. Where to put ACK packet marking rule? on prerouting or postrouting??
 
jamchan_hn
just joined
Posts: 18
Joined: Tue Nov 13, 2007 12:54 am

Re: ack prioritization

Tue Feb 19, 2008 6:43 pm

use tpc flags in magle advanced
 
rzirzi
Member
Member
Topic Author
Posts: 393
Joined: Mon Oct 09, 2006 2:33 pm

Re: ack prioritization

Wed Feb 20, 2008 8:48 am

use tpc flags in magle advanced
I know what to mangle, but my question was: what chain? prerouting or postrouting?
 
jamchan_hn
just joined
Posts: 18
Joined: Tue Nov 13, 2007 12:54 am

Re: ack prioritization

Wed Feb 20, 2008 8:01 pm

in postrouting must be.
 
User avatar
fx242
just joined
Posts: 16
Joined: Wed Jan 23, 2008 6:22 pm

Re: ack prioritization

Fri Feb 22, 2008 2:22 am

in postrouting must be.
May i ask why? I'm too doing TCP ACK prioritization, and have the mangle rules done in prerouting. Whats the difference?
Just curious whats, the packet size you use? I'm using just the no piggybacked ones (0-40 bytes).
 
jamchan_hn
just joined
Posts: 18
Joined: Tue Nov 13, 2007 12:54 am

Re: ack prioritization

Tue Feb 26, 2008 5:48 pm

because the ack it happens when the conexion is established, already passage by the routes
 
sten
Forum Veteran
Forum Veteran
Posts: 923
Joined: Tue Jun 01, 2004 12:10 pm

Re: ack prioritization

Thu Feb 28, 2008 12:36 pm

Correct TCP ACK prioritization is currently not possible with RouterOS.
It won't let you accurately match tcp ack packets with zero data length.
Perhaps you could ask support@ for it?

A few versions had "u32" support which would have let us match those packets accurately but they removed that support.
 
User avatar
fx242
just joined
Posts: 16
Joined: Wed Jan 23, 2008 6:22 pm

Re: ack prioritization

Sat Mar 01, 2008 5:43 pm

Correct TCP ACK prioritization is currently not possible with RouterOS.
It won't let you accurately match tcp ack packets with zero data length.
Perhaps you could ask support@ for it?
A few versions had "u32" support which would have let us match those packets accurately but they removed that support.
I'm newbie with ROS, but... I'm using it right now with this mangle rule before all connection marking ones:
 0   chain=prerouting action=mark-packet new-packet-mark=tcp_ack passthrough=no tcp-flags=ack
     in-interface=Lan1 protocol=tcp packet-size=0-40
The "no data payload ACKs" are just the ones with 40 bytes with ACK flag set. I just need to prioritize "upload" ones, so i don't need connection marks, or do I? :|

TL
 
sten
Forum Veteran
Forum Veteran
Posts: 923
Joined: Tue Jun 01, 2004 12:10 pm

Re: ack prioritization

Sat Mar 01, 2008 10:49 pm

I'm not sure i understand you entirely.
You don't need connection marks only packet marks.

PS: 40 byte tcp packets with ack flag set are tcp packets without tcp options (SACK, window scaling, timestamps).
 
User avatar
fx242
just joined
Posts: 16
Joined: Wed Jan 23, 2008 6:22 pm

Re: ack prioritization

Sun Mar 02, 2008 4:57 pm

PS: 40 byte tcp packets with ack flag set are tcp packets without tcp options (SACK, window scaling, timestamps).
So, these are the ACK packets we want to prioritize aren't they? I mean, my goal is just to optimize the downstream even when the upstream channel is full on a ADSL link, so only these ACKs interest me.
This page explains this in more detail: http://www.benzedrine.cx/ackpri.html

TL
 
rzirzi
Member
Member
Topic Author
Posts: 393
Joined: Mon Oct 09, 2006 2:33 pm

Re: ack prioritization

Tue Mar 04, 2008 12:02 pm


This page explains this in more detail: http://www.benzedrine.cx/ackpri.html

TL
And taht page:
http://doc.m0n0.ch/handbook/faq-ackprio.html

So, is it NOT possible in MikroTik????
 
imachine
just joined
Posts: 3
Joined: Sun Mar 30, 2008 2:32 am

Re: ack prioritization

Sun Mar 30, 2008 2:35 am

what you also need is to mark packets with flags:

fin,syn,rst,psh,ack,urg/ack

and

fin,syn,rst,psh,ack,urg/syn

unfortunately, mikrotik routeros can't mark urg/ack or urg/syn.

at least I don't know how to do it.

or maybe we're all misunderstanding, and by having 'tcp-flags=ack,fin,syn,rst,psh,ack,urg' we kill the two above birds with one stone.

which I doubt ;)

cheers!

Who is online

Users browsing this forum: janisb and 92 guests