[LARTC] Tuning HTB

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The setup is OK.  But you have to be sure you are the bottleneck and not =
the=20
modem.  You can do this by lowering the maximium to 62 (or 63, just try s=
ome=20
numbers).  That way you are slowing down the internet link, but YOU are=20
controlling it :)

Stef


On Monday 15 April 2002 09:18, Christian Volk wrote:
> Hi!
>
> I'm trying to share a 64 kbits/s ISDN connection for FTP downloads and =
WWW.
> FTP should slow down WWW a little a possible.
>
> I tried HTB (with kernel 2.4.18) with the following (amongst other)
> settings:
>
>   $TC qdisc add dev $IF root handle 1: htb default 20
>
>   $TC class add dev $IF parent 1: classid 1:1 htb rate 64kbit burst 2k
>
>   $TC class add dev $IF parent 1:1 classid 1:10 htb rate 63kbit ceil 64=
kbit
> burst 2k
>   $TC class add dev $IF parent 1:1 classid 1:20 htb rate 1kbit ceil 64k=
bit
> prio 1
>
>   $TC qdisc add dev $IF parent 1:10 handle 10: sfq perturb 10
>   $TC qdisc add dev $IF parent 1:20 handle 20: sfq perturb 10
>
>   FLT=3D"$TC filter add dev $IF protocol ip parent 1:0"
>   $FLT prio 1 u32 match ip sport 80 0xffff flowid 1:10
>
> The packets pass through the respective classes. But FTP doesn't seem t=
o be
> slowed down when WWW traffic starts. When doing http and ftp downloads =
at
> the same time, I expected the FTP side to slow down a lot, but during m=
y
> tests the ftp download had more throughput than the http.
>
> Any thoughts?
>
> Thanks!
>
> - Christian
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

--=20

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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux