Re: [LARTC] Problem with HTB accurancy

Linux Advanced Routing and Traffic Control

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

 



> >> My problem is that rrdtool graph shows :
> >>
> >>     ETH0 IN:        596.99Kbps
> >>     ETH0 OUT:    100.71Kbps
> >>
> >>     ETH1 IN:        74.44Kbps
> >>     ETH1 OUT:    150.13Kbps
> >>
> >> And the configuration has a ceil of 384Kbit
> >>
> >> What I'm doing wrong??
> >>
> >> I suppose that it could be with Squid Transparent Proxy, but in HTB
> >> I have a default classid 20,
> >> that is where must go any not specified traffic, how can I solve my
> >> problem?

> >> tc qdisc add dev eth0 root handle 1: htb default 20
> >> tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil
> >> 384kbit burst 2k tc class add dev eth0 parent 1:1 classid 1:10 htb rate
> >> 56kbit ceil 64kbit burst 2k tc class add dev eth0 parent 1:1 classid
> >> 1:11 htb rate 56kbit ceil 64kbit burst 2k tc class add dev eth0 parent
> >> 1:1 classid 1:12 htb rate 56kbit ceil 64kbit burst 2k tc class add dev
> >> eth0 parent 1:1 classid 1:13 htb rate 56kbit ceil 64kbit burst 2k tc
> >> class add dev eth0 parent 1:1 classid 1:14 htb rate 56kbit ceil 64kbit
> >> burst 2k tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit
> >> ceil 128kbit burst 2k
My reply messed up the layout.  But 2kbit is too low for the burst.  Remove 
the burst parameter and htb will calculate the best burst for you.

> >> tc filter add dev eth0 parent 1: protocol ip prio 1 handle 1 fw classid
> >> 1:10 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 3 fw
> >> classid 1:11 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
> >> 5 fw classid 1:12 tc filter add dev eth0 parent 1: protocol ip prio 3
> >> handle 7 fw classid 1:13
You can give each filter the same prio.

If you go to http://www.docum.org/stef.coene/qos/monitor/ you can download my 
monitor_tc.pl script.  It will calculate the bandwidth but it will use the tc 
counters.  So you know exactly how much each class is sending.

Stef

-- 

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



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