All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] simple tbf rate clamping issues
@ 2007-08-22  6:32 sting
  2007-08-22 11:07 ` Bryan Schenker
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sting @ 2007-08-22  6:32 UTC (permalink / raw)
  To: lartc

Hello,

I was attempting to throttle egress traffic to a specific rate using a 
tbf.  As  a starting point I used an example from the LARTC howto, which 
goes:

tc qdisc add dev eth1 root tbf rate 220kbit latency 50ms burst 1540

I then attempt a large fetch from another machine via wget (~40 megs) 
and the rate was clamped down to about 12Kbytes/s.  As this seemed too 
much, I gradually increased the latency up to 200ms which then gave me 
the expected results (~34Kbytes/s).

I then applied this queuing discipline on a machine acting as a 
gateway/router for a few VLANed subnets.  The tbf was applied on 
interface eth1.615.  From another workstation I attempted a wget, and so 
the traffic had to go through the gateway/router.  The download rate 
went from 16 Mbytes/s down to about 1.6 Mbytes/s, but was much much 
higher than what I'm trying to clamp it down to.

Two questions:
1/ My main question. AFAIK, queuing disciplines affect egress traffic 
whether that traffic originates from the host or is being forwarded. 
Assuming that the fact the tbf is mostly meant to be applied to 
forwarded traffic is not an issue, *is there anything else that could 
cause the transfer rate not to be correctly clamped down?*  What 
parameters should I be playing with?

2/ I'm assuming the first example I quoted must have worked as described 
when the HOWTO was initially written a few years ago.  In any case, i am 
assuming with 50ms max latency outgoing packets could not be held long 
enough in the tbf and had to be droppd, correct?

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

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

end of thread, other threads:[~2007-08-22 23:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-22  6:32 [LARTC] simple tbf rate clamping issues sting
2007-08-22 11:07 ` Bryan Schenker
2007-08-22 18:01 ` sting
2007-08-22 18:55 ` sting
2007-08-22 19:53 ` Bryan Schenker
2007-08-22 20:15 ` Bryan Schenker
2007-08-22 23:13 ` 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.