<br><font size=2 face="sans-serif">Thanks to all responses to my question.
&nbsp;Here is what I ended up doing:</font>
<br>
<br><font size=2 face="sans-serif">This page (specifically section 9.2.2)
gave me the info I needed to understand it:</font>
<br><font size=2 face="sans-serif">http://lartc.org/howto/lartc.qdisc.classless.html</font>
<br>
<br><font size=2 face="sans-serif">The tc-tbf man page filled in the rest
of the info and has a very clear example. &nbsp;(Why don't more man pages
have examples?)</font>
<br>
<br><font size=2 face="sans-serif">Here is the rule I ended up creating:</font>
<br><font size=2 face="sans-serif">/sbin/tc qdisc add dev eth0 root tbf
rate 1.0mbit latency 70ms burst 5kb &nbsp;peakrate 1.3mbit minburst 1540</font>
<br>
<br><font size=2 face="sans-serif">This supposedy throttles all traffic
to 1 mbit/s but allow peaks of 1.3 provided the token bucket is not depleted.
&nbsp;</font>
<br>
<br><font size=2 face="sans-serif">It does seem to work. &nbsp;I copied
an 11MB file over 100mbit ethernet and my throughput is considerably lower
that what I would expect:</font>
<br><font size=2 face="sans-serif">$ scp testhost:testfile . &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
100% &nbsp; 11MB &nbsp;72.7KB/s &nbsp; 02:36</font>
<br>
<br><font size=2 face="sans-serif">Compare that to copying a bigger file
over Gbit on the other interface of the same machine with no throttling:</font>
<br><font size=2 face="sans-serif">testfile &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;100% &nbsp; 66MB &nbsp;22.1MB/s &nbsp; 00:03</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
---<br>
Mark Szidik, CIO<br>
Michigan Library Consortium<br>
1407 Rensen Street, Suite 1, &nbsp;Lansing, MI 48910-3657<br>
Ph:800.530.9019 x117 &nbsp; Fax:517.492.3881<br>
Ph:517.492.3817<br>
MLC - Partnerships. Solutions. Excellence.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Marshal Newrock &lt;marshal@idealso.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: linux-user-bounces@egr.msu.edu</font>
<p><font size=1 face="sans-serif">04/03/2007 04:18 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">linux-user@egr.msu.edu</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [GLLUG] traffic throtling</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Tue, 3 Apr 2007 15:33:37 -0400<br>
Mark Szidik/mlc &lt;SzidikM@mlcnet.org&gt; wrote:<br>
<br>
&gt; Any doing traffic shaping? &nbsp;I want to limit outbound http traffic
on<br>
&gt; one host to 1Mbps. &nbsp;My research led me to /sbin/tc, but I don't<br>
&gt; really understand it. &nbsp;Assuming this is the right tool, the examples<br>
&gt; I find online are more complex than what I need (making it hard to<br>
&gt; understand). Anyone able to help with this? <br>
<br>
Do you want to do this on the box itself or on a separate<br>
firewall/router box? &nbsp;If the latter, m0n0wall (freebsd-based) or<br>
pfsense (m0n0wall-based) can do this without too much difficulty. &nbsp;<br>
<br>
-- <br>
Marshal Newrock<br>
Ideal Solution, LLC - http://www.idealso.com<br>
_______________________________________________<br>
linux-user mailing list<br>
linux-user@egr.msu.edu<br>
http://mailman.egr.msu.edu/mailman/listinfo/linux-user<br>
<br>
</tt></font>
<br>