Hi gabriel, maybe rate limiting is not what you're looking for, but instead TOS marks on packets, which allow you to reorder packets in the queue, so as to give priority to some protocols, without limiting overall rate (or maybe i got it all wrong about what TOS is intented for :) )
on the other hand, you might check out a feature of gargoyle firmware as inspiration. it's based on openwrt backfire, and implements an 'active congestion check' mechanism, that measures ping times along the link, to estimate the actual troughput and adjust the qdisc max rate accordingly, so that QoS rules continue working properly.
Cheers! Guido
On 4/27/12, gtolon@inti.gob.ar gtolon@inti.gob.ar wrote:
Hi, That's a very good diagram!
Resuming the thread, Sven said that adding a qdisc to wlan0-1 makes no sense. I don't understand completely why, but i guess that once bat0 manages wlan0-1, the latter can't work anymore at IP layer, right?
So i've done some tests with bat0. I realized that maybe when i had applied a SFQ qdisc to bat0, the bottleneck was still on wlan0-1, and for that reasons packets were dropped on wlan0-1. Then using a HTB qdisc i limited bat0 rate to a minor value than the wlan0-1 actual output rate, and added some classes inside with SFQ. This way i could see dropped packets at bat0 and SFQ working as expected (and no dropped packets at wlan0-1). However, for this configuration to work, the limit value rate for bat0 has to be smaller than the output rate of wlan0-1, but this value is not fixed in a wireless link. I don't know if it's possible to use another configuration in which it's not necessary to set a fixed limit value to allow bat0 to control the bottleneck.
Regards
Gabriel
El 26/04/2012 01:04 p.m., 3zl Trizonelabs escribió:
Hi Marek, since WBM Athens, where i met you guys,i decided to prepare some stuff and organize it on a collaborating site for batman-adv applications Everybody is welcome to join. I'll add your email to the Mindmono Mindmap site to get some ideas how to organize the site. ( teamlab.com would be nice) Have a look at the mindmap :http://www.mindomo.com/view.htm?m=bbde50c10b0b4864bde98b83f2a7cf3b regards 3zl Greece/Germany
2012/4/26 Marek Lindnerlindner_marek@yahoo.de:
On Thursday, April 26, 2012 22:49:24 3zl Trizonelabs wrote:
maybe pic this will help
http://www.bild.me/bild.php?file=9951400Batman-CPE-config.png
Hey,
that is a very good graphical explanation of the setup! Do you happen to have more of those ? Maybe we should create a page talking about possible network setups and include your stuff there ?
Cheers, Marek