Re: Anyone seen this?

Linux Advanced Routing and Traffic Control

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

 



On Thursday 31 October 2002 20:59, Tim Carr wrote:
> I'm moving my old HTB script over from my old slackware install (using
> older iproute2, version iproute2-ss991023) onto my brand-spanking-new
> Debian 3.0r0 (woody) machine, running newer version iproute2-ss010824.  But
> in the new version of "tc", the very first command of the script gives
> "RTNETLINK answers: Invalid argument".  However, if I use the OLD tc
> (991023), it works fine (and so does the rest of my script).  Therefore
> it's not my kernel etc; it must be some difference on the cmd-line between
> the two versions of iproute2.  But no matter how hard i try, I can't find
> out what the new syntax should be. Here's the line that's failing:
>
> tc qdisc add dev eth0 root handle 1: htb default 13
>
> Any ideas how to make that work with the new version?
You have to use the same htb version for tc and the kernel.  Maybe that's the 
problem.

> Also, here's my HTB/SFQ setup for my house, I wonder if one of you genii
> could have a look over it and tell me the crap parts and how to improve :) 
> My setup is one cablemodem connection with 25k/sec max upstream, and about
> 100k/sec downstream.  I have 3 main classes (if that's the right word), one
> for SSH traffic, one for ACKs, and one for the personal PCs of the 3 guys
> that live in our house (including me). Here goes:
The setup seams ok to me.  

> It works, but i'm not sure if it could be improved at all. I don't know
> much about burst/prio settings for HTB, 
Burst is burst :)  Burst 10k allows the class to burst 10000 bytes before 
other classes are served.  But rate and ceil restrictions are still applied.  
This can be usefull if you have a class that contains http traffic so small 
pages are loaded very quick.  The lates htb version will calculate the burst 
for you if you don't specify it.
Prio is more complicated.  More info can be found on the htb homepage.

and even less about the SFQ stuff
> i'm using with perturb 10. 
SFQ creates a hash table to classify the traffic.  This hash table is limited 
to a certain entry's.  To be sure that old streams don't use too much hash 
keys, the hash is flushed from time to time.  perturb 10 means the hash is 
flushed each 10 seconds.

> Also, I get some warnings about HTB's quantums
> in various log files, none of which I understand.
Quantum must be greater then 1500.  You have a class with rate 2 so the 
quantum of that class is 2k / 10 (10 is default) = 200.  This is smaller then 
1500.  Solution : ignore the warnings :) or overrule the r2q parameter (when 
you add the qdisc) or overrule the quantum parameter (when you add a class).  
More info on www.docum.org on the faq page.


>
> All help welcome!

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


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