Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB steals bandwidth
Date: Wed, 18 Dec 2002 21:47:47 +0000	[thread overview]
Message-ID: <marc-lartc-104024837631607@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104005823313721@msgid-missing>

On Monday 16 December 2002 18:02, Robert Brueckmann wrote:
> Hi!
>
> I just tested my HTB setup. But I have a problem. Let's assume I run the
> following script (even if it might do nothing useful, just for
> demonstrating my problem):
>
> #!/bin/bash
> /usr/sbin/tc qdisc add dev ppp0 root handle 1: htb default 12
> /usr/sbin/tc class add dev ppp0 parent 1: classid 1:1 htb rate 125kbit ceil
> 125kbit
> /usr/sbin/tc class add dev ppp0 parent 1:1 classid 1:14 htb rate 125kbit
> ceil 125kbit prio 0
> iptables -A POSTROUTING -t mangle -o ppp0 -p tcp --dport ftp-data -j
> MARK --set-mark 14
> tc filter add dev ppp0 parent 1:0 prio 0 protocol ip handle 14 fw flowid
> 1:14
>
> I have an adsl-connection (768kbit down/128kbit up), Linux kernel 2.4.20.
> The script should do nothing to an outgoing ftp-upload, since I grant all
> the available bandwith to it. No other traffic is happending during all
> that, only one ftp-upload from a computer inside the LAN. I start the
> upload without the rules above, and the upload is at a constant maximum of
> 128kbit/sec. After running the script above and waiting for say 5 seconds,
> the upload speed drops down to app. 80 kbit/s! After removing the rules
> above, the speed climbs up again to top speed.
Have you tried with other rates and ceil values?
And you defined a default class 12, but there is no such class.
Ftp-data can use dynamic ports.  So can you check that the iptables line with 
"--dport ftp-data"  is really catching the ftp packets??


Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

  reply	other threads:[~2002-12-18 21:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16 17:02 [LARTC] HTB steals bandwidth Robert Brueckmann
2002-12-18 21:47 ` Stef Coene [this message]
2002-12-19  8:08 ` Robert Brueckmann
2002-12-19  8:45 ` Stef Coene
2002-12-20  0:50 ` Mr. Adam ALLEN

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-104024837631607@msgid-missing \
    --to=stef.coene@docum.org \
    --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