Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Rod Blennerhassett" <rodb@tce.com.au>
To: lartc@vger.kernel.org
Subject: [LARTC] Ingress Filter Problem using TOS
Date: Tue, 28 May 2002 09:39:14 +0000	[thread overview]
Message-ID: <marc-lartc-102257938232652@msgid-missing> (raw)

Hi all

I am attempting to police the incoming rate by using the ingress filter
based on the TOS of the incoming packet.

I used the following commands:

tc qdisc add dev eth0 handle ffff: ingress

tc filter add dev eth0 parent ffff: protocol ip prio 6 u32 match ip tos 0x10
0xff police rate 24kbit burst 1k drop flowid :1

On downloading a 6 Mb file which was TCP and TOS 0x10, this filter made on
difference to the download rate. (I used tcpdump to check that the packets
were in fact TOS 0x10)

by substituting the TOS filter with a TCP filter, like so:

tc filter add dev eth0 parent ffff: protocol ip prio 2 u32 match ip protocol
6 0xff police rate 36kbit burst 1k drop flowid :1

and then running the same download, this filter worked and restricted the
rate of download.

Why didn't the TOS filter work??

As the TCP filter is far too broad, I will eventually intend on combining
the two filters to be more specific, as so:

tc filter add dev eth0 parent ffff: protocol ip prio 2 u32 match ip protocol
6 0xff match ip tos 0x10 0xff police rate 36kbit burst 1k drop flowid :1

It would be great if someone could point out my error....

Regards

Rod Blennerhassett

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2002-05-28  9:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=marc-lartc-102257938232652@msgid-missing \
    --to=rodb@tce.com.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox