From mboxrd@z Thu Jan 1 00:00:00 1970 From: xiao hongge Date: Tue, 08 Oct 2002 08:10:22 +0000 Subject: [LARTC] why? cbq vs htb on FTP server. MIME-Version: 1 Content-Type: multipart/mixed; boundary="0-1205633206-1034064622=:21810" Message-Id: List-Id: To: lartc@vger.kernel.org --0-1205633206-1034064622=:21810 Content-Type: text/plain; charset=us-ascii 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 --0-1205633206-1034064622=:21810 Content-Type: text/html; charset=us-ascii

 


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 --0-1205633206-1034064622=:21810-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/