This will surely break threads. (i don''t know why but I''m not
receiving
any mails from lartc. My post got submitted but I''m not getting any
posts back) I wonder if it''s cause of my email server blocking it.
Anyway,
Aravind,
The problem which I see here is that what you''re trying to perform is
limit download(or inbound) traffic. This is unfortunately, not feasible.
The HTB/QoS stuffs is usually only controllable upstream.
However, there _are_ workarounds for it. One such solution is to put in
additional network cards such that "in a way" you create an upstream
traffic.
Refer to this thread in which I''ve posted a solution for a
multi-interface
http://www.redhat.com/archives/fedora-list/2004-July/msg01764.html
And BTW, I''m not sure about others, but I''ve never gotten much
luck
trying to perform u32 classifications. I got better luck using fwmarks.
Referencing:
http://mailman.ds9a.nl/pipermail/lartc/2004q3/013064.html
Hi ,
I have the problem with HTB queuing discipline.I am giving my setup below.
172.30.179.206 172.30.180.55
LAN | | WAN
-----------------| LINUX WITH |--------------
172.30.179.140 | HTB | 172.30.180.72
FTP SERVER FTP CLIENT
On the LAN side i put FTP server(172.30.179.140) and on WAN side i put FTP
client(172.30.180.72).
FTP client and FTP server will communicate through the middle linux box.
Middle linux box has two interfaces.eth0 is 172.30.179.206 and
eth1 is 172.30.180.55
In the middle linux box i configured HTB using following commands.
./tc qdisc add dev eth0 root handle 1:0 htb
./tc class add dev eth0 parent 1:0 classid 1:1 htb rate 30kbps ceil 30kbps
./tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 30kbps
./tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
172.30.180.72 match ip sport 21 0xffff flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
172.30.180.72 match ip sport 20 0xffff flowid 1:10
When i downloaded one file of size 10.7MB from FTP server(i.e from
172.30.179.140) to client(i.e. 172.30.180.72) , download speed is coming as
362.19kbytes/sec instead of 30kbps which i ceil.What may be the problem? Any
configuration issue?Any idea?
Thanks in advance,
Aravind.
--
Ow Mun Heng
Fedora GNU/Linux Core 2 (Tettnang) on D600 1.4Ghz CPU kernel
2.6.7-2.jul1-interactive
Neuromancer 13:46:30 up 4:53, 4 users, load average: 1.64, 1.64, 1.50
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/