From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: The "tc filter .. police" command does not have parameter "limit"
Date: Sun, 03 Aug 2014 22:06:09 +0000 [thread overview]
Message-ID: <53DEB251.5040805@gmail.com> (raw)
In-Reply-To: <CAO3kUWiM4mXVWvi_8NkHYJThWQhPbLEWWguFE9960VuhMJiNSw@mail.gmail.com>
Fengyu Gao wrote:
> Hi,
>
> I have a question about the "tc filter ... police" command. This
> command is similar to the token bucket filter. Under Linux, ingress
> traffic can be redirected to an imq or ifb, then you can apply a tbf
> there.
>
> However, tbf has an important parameter "limit", which is the size
> of the buffer for waiting packets, and it is different from the
> "burst" parameter. In the "tc filter ... police" command, there does
> not seem to be a "limit" parameter, and there seems to be no document
> or discussions about it. Digging into the Linux kernel might be a
> bit difficult for me. So my question is what is the buffer size in
> this case?
Policers do not buffer and as a result can be a bit aggressive.
IIRC the burst parameter is like a virtual buffer but policers
never hold the packets - just pass or drop.
Personally I would rather shape but then you have to consider latency
added by buffering. To avoid this you may need to classify traffic to
give latency sensitive priority.
fq_codel could be worth investigating as a single qdisc alternative to a
policer.
next prev parent reply other threads:[~2014-08-03 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 5:14 The "tc filter .. police" command does not have parameter "limit" Fengyu Gao
2014-08-03 22:06 ` Andy Furniss [this message]
2014-08-03 22:25 ` Dave Taht
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=53DEB251.5040805@gmail.com \
--to=adf.lists@gmail.com \
--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.