All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB steals bandwidth
@ 2002-12-16 17:02 Robert Brueckmann
  2002-12-18 21:47 ` Stef Coene
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Robert Brueckmann @ 2002-12-16 17:02 UTC (permalink / raw)
  To: lartc

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.

Can someone explain to me why this happens? I think I didn't quite
understand HTB...

Thanks,
Robert


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-20  0:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-16 17:02 [LARTC] HTB steals bandwidth Robert Brueckmann
2002-12-18 21:47 ` Stef Coene
2002-12-19  8:08 ` Robert Brueckmann
2002-12-19  8:45 ` Stef Coene
2002-12-20  0:50 ` Mr. Adam ALLEN

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.