All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bugzilla-Redirect <bugzilla@sysreset.com>
To: lartc@vger.kernel.org
Subject: [LARTC] htb traffic shaping problem
Date: Fri, 08 Sep 2006 08:01:55 +0000	[thread overview]
Message-ID: <6.2.0.14.2.20060908020146.02e3f138@linux.sysreset.com> (raw)

Hello.
I have a linux server connected to a gigabit lan, and though that lan to a 
768kbps/768kbps DSL modem.

I'm trying to shape my webserver running on port 80/443 down to 512kbps, 
while leaving all other ports alone.  The current configuration script that 
I'm using is as follows:
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 99
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit ceil 1000mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil 512kbit
tc qdisc add dev eth0 parent 1:10 handle 10: sfq
tc class add dev eth0 parent 1:1 classid 1:99 htb rate 900mbit ceil 1000mbit
tc qdisc add dev eth0 parent 1:99 handle 99: sfq
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 80 0xffff 
flowid 1:10
tc filter add dev eth0 protocol ip parent 1: u32 match ip sport 443 0xffff 
flowid 1:10

1:10 seems to be getting the correct traffic from port 80 and 443 while 
everything else is run to 1:99.  The problem is that, while 1:10 is slowing 
the connection down to a degree, it's nowhere near the set limit.  For 
example: the connection will start out around 50kBps, and then suddenly 
bounce to over 1MBps, far exceeding it's 64kBps setting.

Setting the parent down to 512kbits seems to work correctly, but it 
cripples the local network.

Can anyone point out what I've done incorrectly, or is this a bug?
Thank you.

-Ryan Power 

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

             reply	other threads:[~2006-09-08  8:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-08  8:01 Bugzilla-Redirect [this message]
2006-09-08 12:39 ` [LARTC] htb traffic shaping problem e.janz
2006-09-08 15:27 ` Charlie Meyer

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=6.2.0.14.2.20060908020146.02e3f138@linux.sysreset.com \
    --to=bugzilla@sysreset.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.