Skip to contentSkip to conversation

why? cbq vs htb on FTP server.

LARTC xiao hongge 1 participant 1 message Oct 8, 2002

lore
Share & tools
lore
#0 lore raw

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