All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Backlog with less rate than defined
@ 2006-04-24 13:57 Luciano
  2006-04-24 23:33 ` Andy Furniss
  0 siblings, 1 reply; 2+ messages in thread
From: Luciano @ 2006-04-24 13:57 UTC (permalink / raw)
  To: lartc

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. 

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
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:$filaDown

My problem is that most of the queues created does NOT get full rate as
defined. I can see the packets entering backlog with much less rate than
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

Some help ?

Thanks in advance,

Luciano Lima

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Backlog with less rate than defined
  2006-04-24 13:57 [LARTC] Backlog with less rate than defined Luciano
@ 2006-04-24 23:33 ` Andy Furniss
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2006-04-24 23:33 UTC (permalink / raw)
  To: lartc

Luciano wrote:
> 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. 
> 
> 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
> 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:$filaDown
> 
> My problem is that most of the queues created does NOT get full rate as
> defined. I can see the packets entering backlog with much less rate than
> 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
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-24 23:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-24 13:57 [LARTC] Backlog with less rate than defined Luciano
2006-04-24 23:33 ` Andy Furniss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.