* [LARTC] Question: traffic shaping (tc-htb)
@ 2005-05-30 14:39 John Smith
2005-05-30 20:44 ` Andy Furniss
0 siblings, 1 reply; 2+ messages in thread
From: John Smith @ 2005-05-30 14:39 UTC (permalink / raw)
To: lartc
Hello *!
My trafficshaping (tc-htb) drops packets very early, at least i suspect
this. It drops about 30% fo the packets. The traffic-generating appication
is running locally on the shaping host. I think i can lower this rate by
increasing the packet-buffer, because the locally application will slow down
with increasing buffer (tcp/ip). But i can´t find any options for that, i
cycled the manual several times. Is there a solution?
see output of "tc -s -d class show dev ppp0" (main class):
class htb 1:10 parent 1:1 prio 1 quantum 1800 rate 144000bit
ceil 480000bit burst 1779b/8 mpu 0b overhead 0b cburst 2199b/8
mpu 0b overhead 0b level 0
Sent 57567157 bytes 40609 pkts (dropped 16033, overlimits 0)
rate 460328bit 40pps
lended: 12845 borrowed: 27764 giants: 0
tokens: -74623 ctokens: -28826
This class is the only one with packet drops. Does tc use the kernels
network packet queue?
Great thanks in advance
Alvo
_______________________________________________
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] Question: traffic shaping (tc-htb)
2005-05-30 14:39 [LARTC] Question: traffic shaping (tc-htb) John Smith
@ 2005-05-30 20:44 ` Andy Furniss
0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2005-05-30 20:44 UTC (permalink / raw)
To: lartc
John Smith wrote:
> Hello *!
> My trafficshaping (tc-htb) drops packets very early, at least i suspect
> this. It drops about 30% fo the packets. The traffic-generating appication
> is running locally on the shaping host. I think i can lower this rate by
> increasing the packet-buffer, because the locally application will slow down
> with increasing buffer (tcp/ip). But i can´t find any options for that, i
> cycled the manual several times. Is there a solution?
>
>
>
>
> see output of "tc -s -d class show dev ppp0" (main class):
> class htb 1:10 parent 1:1 prio 1 quantum 1800 rate 144000bit
> ceil 480000bit burst 1779b/8 mpu 0b overhead 0b cburst 2199b/8
> mpu 0b overhead 0b level 0
> Sent 57567157 bytes 40609 pkts (dropped 16033, overlimits 0)
> rate 460328bit 40pps
> lended: 12845 borrowed: 27764 giants: 0
> tokens: -74623 ctokens: -28826
>
> This class is the only one with packet drops. Does tc use the kernels
> network packet queue?
HTB uses the txqueuelength of the interface if you don't add a queue to
the leaf class. For my ppp0 that's 3 which is a bit short - even so I
just did a test and only got 10% loss so maybe your generator app/kernel
version of tcp is a bit over aggressive. I did 1 tcp stream with netperf
on 2.6.12-rc1.
So either add a queue to the leaf and specify a length or before you
start htb do ifconfig ppp0 txqueuelen 30 or whatever.
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:[~2005-05-30 20:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-30 14:39 [LARTC] Question: traffic shaping (tc-htb) John Smith
2005-05-30 20:44 ` 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.