From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luciano" Date: Tue, 25 Apr 2006 19:20:13 +0000 Subject: RES: [LARTC] Backlog with less rate than defined Message-Id: <002001c6689d$49b439a0$0900fe0a@LucianoNotebook> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0021_01C66884.246701A0" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C66884.246701A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Andy, I=B4m 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:andy.furniss@dsl.pipex.com]=20 Enviada em: segunda-feira, 24 de abril de 2006 20:33 Para: Luciano Cc: lartc@mailman.ds9a.nl; Jader@elo.com.br Assunto: Re: [LARTC] Backlog with less rate than defined Luciano wrote: > Hi all, >=20 > 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.=20 >=20 > 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. >=20 > For each login I create a queue like that: >=20 > 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 >=20 > 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: >=20 > 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=20 rules, if you are using htb default class on root and shaping eth=20 remember arp will get delayed there unless you filter it elsewhere. Andy. ------=_NextPart_000_0021_01C66884.246701A0 Content-Type: application/octet-stream; name="regras.inc" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="regras.inc"