Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Javier Martin" <martin@trymedia.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Simple PRIO + TBF at high rates
Date: Tue, 23 Sep 2003 17:02:21 +0000	[thread overview]
Message-ID: <marc-lartc-106433665931876@msgid-missing> (raw)

Hi,

I'm trying to slow down http traffic on Gigabit link. The outbound rates on
that interface range 0 .. 400 Mbit/s and I would like to throttle accurately
to any rate between these while keeping non-http traffic unthrottled.

What I do is to create a PRIO qdisc with the 3 usual bands (default prio
mask) and a 4th band with a TBF attached with the desired rate. Like this
(for 300 mbit/s):


 tc qdisc add dev eth0 root handle 1: prio bands 4

 tc qdisc add dev eth0 parent 1:4 handle 40: tbf \
          rate 300mbit buffer 600kb latency 600ms

 tc filter add dev eth0 parent 1:0 protocol ip u32 \
          match ip sport 80 0xffff flowid 1:4


What it happens is that I actually get a slow-down but at rates of 200-250
instead of 300.

What am I doing wrong?

Javier

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

             reply	other threads:[~2003-09-23 17:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23 17:02 Javier Martin [this message]
2003-09-23 18:59 ` [LARTC] Simple PRIO + TBF at high rates Jose Luis Domingo Lopez
2003-09-25 13:02 ` Javier Martin

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-106433665931876@msgid-missing \
    --to=martin@trymedia.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox