HTB: far unequal behaivor at a slight conf rate change

Linux Advanced Routing and Traffic Control

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

 



Hi all!
I'm working in a " _really_ end user simple", yet powerfull, flexible, 
scalable, GPL htb/htb-init front end, but now, in the "test fase" im facing 
an utlimate problem... 

Absoult minimalistic scenario: #Use a FIXEDFONT to read this
#inet-ethx-|FIREWALL|-lan-ethx <-> |client_host_1|
#
#FIREWALL class(rate,ceil) at lan-ethx
root->parent_all_host(256,256)->client_host_1(X,X)->host_1_prio(X*0.9,X)
                                                  ->host_1_dfl(X*0.1,X)

then i genrate equal traffic for the to leafs and:
 if X<=200 then "all works ok"
 the 'prio' class takes 90% of the rate
 the "dfl" class takes 10% of the rate 

 if X>230 then "all works like no htb present at all"
 the 'prio' and 'dfl' class figth equaly for the rate
 
Things that i have tried that don't help to solve the problem:
 -Play with several r2q/quantum convinations
 -Play with prio parameter for the leafs
 -Tray thiferent leaf's algo(sfq with quantum 1500,pfifo with limit 10)
 -change parent_all_hosts rate to a high value (ie:512,1024)


I've attached simplified ad-hoc scripts that reproduce the scenarios:
tc_at_200 (full tc/iptables commands to recreate the X<200 scenario)
tc_at_230 (full tc/iptables commands to recreate the X>200 scenario)

To test i run in the client_host_1 2 lftp instances ie:
lftp -c "pget -n ftp://somehost/very.long.file"; #4 tcp conns "stress" ;-) 
lftp -c "get http://samehost/very.long.file";

note that first generates ftp traffic while second one is http traffic, the 
firewall marks will make that http goes in 'prio' class and ftp goes in 'dfl' 
class. I leave this traffic running...

if i run ./tc_at_200 everithing goes to its place
if i run ./tc_at_230 everithing goes wrong, the 4 ftp's 'dfl' traffic 
connection monopolice at lest 80% of the total rate.
if i run ./tc_at_200 everithing goes to its place again
and so on...

Whell hope someone give me a hint on this!

-- 
Luciano

Attachment: tc_at_200
Description: application/shellscript

Attachment: tc_at_230
Description: application/shellscript

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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