All of lore.kernel.org
 help / color / mirror / Atom feed
From: GGounot <g.gounot@laposte.net>
To: lartc@vger.kernel.org
Subject: Re: Hook location of IMQ
Date: Wed, 17 Sep 2014 07:09:58 +0000	[thread overview]
Message-ID: <541933C6.8070800@laposte.net> (raw)
In-Reply-To: <3b7201cfd204$1e118300$5a348900$@telsatbb.vu>

Hi.

Did you try IFB instead of IMQ ?

"The Intermediate Functional Block device is the successor to the IMQ 
iptables module that was never integrated."
http://www.linuxfoundation.org/collaborate/workgroups/networking/ifb


Le 17/09/2014 01:15, Steve (Telsat Broadband) a écrit :
> Hi All,
>
> I've posted a couple of questions over on linuximq.net but the discussion
> there seems quiet, so I'll try here to see if anyone here can point me in
> the right direction.
>
> Currently I use IMQ devices and TC to limit bandwidth to clients; this is
> all working very well, except that the byte counters I'm relying on for
> counting the clients data seems to be 'before' IMQ does its work.
>
> For example; I've got rules in the 'mangle/forward' table for assigning the
> clients data to the IMQ device and rules in the 'filter/forward' table which
> matches the client's data and I'm counting their traffic from here.
>
> However, according to this packet flow show on linuximq.net
> (http://www.docum.org/docum.org/kptd/) the IMQ hook is after 'POSTROUTING'
> which means that even though I'm using '-j IMQ' in the 'mangle/forward'
> table to limit the bandwidth before counting; the counters are still
> counting all packets; including dropped ones by IMQ.
>
> There doesn't seem to be any more 'chains' after the IMQ hook which I could
> rely upon to 'count' the data after IMQ has done its job.
>
> I realise that when compiling the kernel, I can choose where IMQ hooks in
> (before or after NAT); currently I have selected as 'AB'.
>
> What I'd like to know is;
>
> a) Is there something I'm missing; is there somewhere I can count the
> packets after IMQ's work is done?
> b) If not, is there some way I can modify the IMQ hook to be in-between the
> 'mangle/forward' and 'filter/forward' chains.
>
> Any help/comments are greatly appreciated.
>
> Thanks
> Steve.
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe lartc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


  reply	other threads:[~2014-09-17  7:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16 23:15 Hook location of IMQ Steve (Telsat Broadband)
2014-09-17  7:09 ` GGounot [this message]
2014-09-17  9:42 ` Steve (Telsat Broadband)
2014-10-21 11:15 ` Steve (Telsat Broadband)
2014-10-23 20:25 ` GGounot
2014-10-23 21:04 ` Steve (Telsat Broadband)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=541933C6.8070800@laposte.net \
    --to=g.gounot@laposte.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.