<br><font size=2 face="sans-serif">Thanks to all responses to my question.
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. (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 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.
</font>
<br>
<br><font size=2 face="sans-serif">It does seem to work. 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 .
100% 11MB 72.7KB/s 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
100% 66MB 22.1MB/s 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, Lansing, MI 48910-3657<br>
Ph:800.530.9019 x117 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 <marshal@idealso.com></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 <SzidikM@mlcnet.org> wrote:<br>
<br>
> Any doing traffic shaping? I want to limit outbound http traffic
on<br>
> one host to 1Mbps. My research led me to /sbin/tc, but I don't<br>
> really understand it. Assuming this is the right tool, the examples<br>
> I find online are more complex than what I need (making it hard to<br>
> 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? If the latter, m0n0wall (freebsd-based) or<br>
pfsense (m0n0wall-based) can do this without too much difficulty. <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>