I use the qos-scripts and the corresponding Luci plugin pretty routinely to throttle bandwidth used on both eth0 and wlan0.  I've found them to work acceptably w/o appearing to hog lots of CPU on my Ubiquiti M5 radios.  Also, effective QoS does require RAM, at least 32MB per node, ideally more if you are wanting to throttle at rates above 10Mbit/s.<div>
<br></div><div>In effect, you can specify for qos-scripts maximum upload and download bandwidth caps per interface.  However, you may need to do some testing to determine which context for "upload" and "download" is assumed by qos-scripts on each radio.  I.e., I believe it is different for gateway vs. repeater node.  Also, qos-scripts comes with a bunch of default class definitions (bulk, normal, express), to let you prioritize certain types of traffic over others, although I've not played around with these classes very much myself.</div>
<div><br></div><div>You can look /etc/config/qos (if you have qos-scripts package installed) for a good idea.</div><div><br>More info:</div><div><a href="http://wiki.openwrt.org/doc/uci/qos">http://wiki.openwrt.org/doc/uci/qos</a></div>
<div><br></div><div>Finally, do please note that this QoS implementation likely suffers from the dreaded Bufferbloat problem which Jim Gettys, et al, are convincingly claiming will soon kill the Internet beyond any hope of repair.  That is, please be aware that enabling QoS under certain conditions, especially where lots of streaming media is used, might just make things worse.</div>
<div><br></div><div>The bleeding-edge versions of OpenWRT, altho not yet Commotion, are now using a bufferbloat fix called "CoDel," but I've yet to try it out myself.<br><br><div class="gmail_quote">On Tue, Oct 16, 2012 at 11:04 AM, Andy Gunn <span dir="ltr"><<a href="mailto:gunn@newamerica.net" target="_blank">gunn@newamerica.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>Great - thanks Seamus.<br>
<br>
Does the QOS configuration actually limit the Bandwidth used, or does<br>
it just use the Download and Upload speeds to calculate the priority<br>
based on available bandwidth?<br>
<div><div class="h5"><br>
<br>
<br>
On 10/16/2012 11:40 AM, Seamus Tuohy wrote:<br>
> Hey Andy,<br>
><br>
> The QOS menu under Network allows you to choose upload and<br>
> download speed by interface. I will look into the code and see if I<br>
> can't whip up a quick bit of documentation on how to limit the<br>
> bandwidth shared.<br>
><br>
> Seamus<br>
><br>
> On 10/16/2012 11:15 AM, Andy Gunn wrote:<br>
>> ********* *BEGIN ENCRYPTED or SIGNED PART* *********<br>
><br>
>> The bandwidth limits need to be imposed not on the clients<br>
>> connected to the Access Point, but on the eth0 Ethernet port<br>
>> that is connected to a router providing Internet access.<br>
><br>
>> So, yes - it needs to throttle the node only if it is acting as a<br>
>>  gateway, and not on the AP but on the "plug" interface.<br>
><br>
>> Not sure if I am explaining this well - does that make sense? -A<br>
><br>
><br>
>> On 10/16/2012 11:10 AM, Jordan McCarthy wrote:<br>
><br>
><br>
>> -- Andy Gunn Field Engineer, Open Technology Institute New<br>
>> America Foundation <a href="tel:202-596-3484" value="+12025963484">202-596-3484</a> <a href="http://oti.newamerica.net" target="_blank">http://oti.newamerica.net</a><br>
>> ********** *END ENCRYPTED or SIGNED PART* **********<br>
>> _______________________________________________ Commotion-dev<br>
>> mailing list <a href="mailto:Commotion-dev@lists.chambana.net">Commotion-dev@lists.chambana.net</a><br>
>> <a href="http://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">http://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
><br>
> _______________________________________________ Commotion-dev<br>
> mailing list <a href="mailto:Commotion-dev@lists.chambana.net">Commotion-dev@lists.chambana.net</a><br>
> <a href="http://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">http://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
><br>
><br>
<br>
</div></div>- --<br>
<div class="im"><br>
Andy Gunn<br>
Field Engineer, Open Technology Institute<br>
New America Foundation<br>
<a href="tel:202-596-3484" value="+12025963484">202-596-3484</a><br>
<a href="http://oti.newamerica.net" target="_blank">http://oti.newamerica.net</a><br>
</div><div class="im">-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
<br>
</div>iQEcBAEBAgAGBQJQfYVxAAoJEO7c3Fzx1WU8vYMH/An8OkMjM/SjcKPi+tqiFfY9<br>
8WmQxzNOuGkmx52OuzpDbvbX0RVRJgPtgkgGk6Xc6IqTot7RpOLaeNt9LvZwbeEr<br>
Mgj43J3aaa6UR0J/yt8jljlIcoIBYucYfhb56ytfQBJ5HL0FbhzfovMF9IGgs0hS<br>
fhhjH5Pg4pTg1oQnvkvAWVnhB7K4LJPvtcwZ7rK4VipMos2h55eSsBeIsu/nowI7<br>
myEQZfWrL+v2zYVaYIH3FuMYolbrmXz/gGRSn78PVP0VJRF/THvgm0iGa4ZPVNMV<br>
jDB5AqfVPrAANNb3yf1TFa6+J13v3sioR6iDWJyUROC2wgdOcbGp7qsfXJfeWrY=<br>
=1AOd<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Commotion-dev mailing list<br>
<a href="mailto:Commotion-dev@lists.chambana.net">Commotion-dev@lists.chambana.net</a><br>
<a href="http://lists.chambana.net/mailman/listinfo/commotion-dev" target="_blank">http://lists.chambana.net/mailman/listinfo/commotion-dev</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Ben West</div><div><a href="mailto:me@benwest.name" target="_blank">me@benwest.name</a></div><br>
</div>