* [LARTC] why? cbq vs htb on FTP server.
@ 2002-10-08 8:10 xiao hongge
0 siblings, 0 replies; only message in thread
From: xiao hongge @ 2002-10-08 8:10 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]
On linux box that with QOS and ftpd.
The QOS with either CBQ or HTB qdisc,the result was different.
With CBQ on linux box,and a class setup 70kB.
The ftp client download a file from linux box.
a) linux os,the download bandwidth is 68kB.
b) win98 os,the download bandwidth is 68kB.
Script:
#!/bin/sh
tc qdisc del dev eth0 root handle 1:
tc qdisc add dev eth0 root handle 1: cbq bandwidth 100mbit avpkt 1000
tc class add dev eth0 parent 1: classid 1:1 cbq bandwidth 100mbit rate 100mbit maxburst 21 allot 1514 avpkt 1000 prio 7
tc class add dev eth0 parent 1:1 classid 1:70 cbq bandwidth 100mbit rate 560kbit maxburst 21 allot 1514 avpkt 1000 prio 6 bounded
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid 1:70
ipchains -F
ipchains -I output -d clinetA -m 2 -j ACCEPT
With HTB on linux box,and a class setup 70kB.
The ftp client download a file from linux box.
a) linux os,the download bandwidth is 68kB.
b) win98 os,the download bandwidth is 26kB.
Script:
#!/bin/sh
#
tc qdis del dev eth0 root handle 1:
tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:70 htb rate 70kbps ceil 70kbps burst 2k
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid 1:70
ipchains -F
ipchains -I output -d clinetA -m 2 -j ACCEPT
---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
[-- Attachment #2: Type: text/html, Size: 1749 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-08 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-08 8:10 [LARTC] why? cbq vs htb on FTP server xiao hongge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox