Backlog with less rate than defined
Hi Andy,
I´m not sure if I understood what you told about arp packets. I use htb default but the problem occurs even when the default queue rate is low (it is almost always low in rate and pps).
The attached files are:
Rc.local - criation of the basic queues including default Regras.inc - criation of each queue when the user login Queues - statistics of the basic queues
Thanks for help,
Luciano
-----Mensagem original-----
De: Andy Furniss [mailto:[email protected]] Enviada em: segunda-feira, 24 de abril de 2006 20:33
Para: Luciano
Cc: [email protected]; [email protected]
Assunto: Re: [LARTC] Backlog with less rate than defined
Quoted 6 lines · Luciano
Hi all,
I setup a Linux machine to act as Lan Authentication server. So, the same script that redirect the http connection to a login web page, it create some queues to limit traffic, login by login.
Quoted 7 lines
The PC uses only 1 ethernet interface that receive the packets source routed to it and forward/nat to the external gateway using the same interface.
For each login I create a queue like that:
tc class add dev '.$if_externa.' parent 1:1 classid 1:'.$filaDown.'
htb
Quoted 5 lines
rate '.$banda_down.'kbit ceil '.$banda_down.'kbit prio 1'
tc filter add dev $if_externa protocol ip parent 1:0 prio 1 handle
::$filaDown u32 match ip dst $ipcliente/32 flowid 1:$filaDownMy problem is that most of the queues created does NOT get full rate
as
Quoted 1 line
defined. I can see the packets entering backlog with much less rate
than
Quoted 6 lines
defined, ex:
class htb 1:b1 parent 1:1 prio 1 rate 256Kbit ceil 256Kbit burst 1926b cburst 1926b
Sent 6644151 bytes 5435 pkts (dropped 0, overlimits 0) rate 669bps backlog 107p
Htb rate average can be quite long and misleading.
I would tcpdump and see whether the rate looks OK with that.
If not see what the dequeue behaviour is - you don't show all your rules, if you are using htb default class on root and shaping eth remember arp will get delayed there unless you filter it elsewhere.
Andy.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 5 lines · Luciano
Hi Andy,
I´m not sure if I understood what you told about arp packets. I use htb default but the problem occurs even when the default queue rate is low (it is almost always low in rate and pps).
It's still not ideal even if it's not the cause - sfq default length is 128 packets so if they were mtu size when it's full thats 1.5sec delay + drops - and the stats show drops.
class htb 1:efff parent 1:1 leaf efff: prio 1 rate 1Mbit ceil 1Mbit burst 2909b cburst 2909b
Sent 1113213839 bytes 9059857 pkts (dropped 61529, overlimits 0) rate 1130bps 13pps
lended: 9059857 borrowed: 0 giants: 0
I would not use default on eth. Also 100mbit eth is not 100mbit at ip level, which is almost what htb sees (ip+14), so 1:1 needs to be less - but if children don't add up to that then it won't hurt.
You could just send all unmatched ip to 1:efff with a low prio filter -
tc filter add dev eth0 protocol ip parent 1:0 prio 99 u32 match u32 0 0 flowid 1:efff
then arp will not get shaped.
I notice you use handle on filters maybe OK but I usually only see it with hashing or fw.
Quoted 5 lines
The attached files are:
Rc.local - criation of the basic queues including default Regras.inc - criation of each queue when the user login Queues - statistics of the basic queues
Have you measured the rate another way?
Andy.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc