<br><br><div><span class="gmail_quote">On 9/18/07, <b class="gmail_sendername">Salatiel Filho</b> &lt;<a href="mailto:salatiel.filho@gmail.com">salatiel.filho@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_1151b628addfe099_0"><br><br><div><span class="gmail_quote">On 9/18/07, <b class="gmail_sendername">Jens Thiele</b> &lt;<a href="mailto:karme@berlios.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
karme@berlios.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 18 Sep 2007, <a href="mailto:shemminger@linux-foundation.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">shemminger@linux-foundation.org</a> wrote:<br><br>&gt; Also since bridge is a pseudo device it has no transmit queue so there
<br>&gt; is no qdisc involved.<br>
<br>Just out of curiosity (I did not look at bridging details at all yet):<br>Is this 2.6.x specific?<br>Because on some linksys router with tomato firmware after a adding a<br>qdisc to br0 i get:<br><br># uname -a<br>Linux linksys 
2.4.20 #43 Sun May 20 18:08:39 PDT 2007 mips unknown<br># ifconfig br0<br>br0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Link encap:Ethernet&nbsp;&nbsp;HWaddr 00:XX<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inet addr:192.168.XX&nbsp;&nbsp;Bcast:192.168.XX<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mask:<a href="http://255.255.255.128" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

255.255.255.128</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UP BROADCAST RUNNING MULTICAST&nbsp;&nbsp;MTU:1500&nbsp;&nbsp;Metric:1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX packets:201070 errors:0 dropped:0 overruns:0 frame:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TX packets:208548 errors:0 dropped:0 overruns:0 carrier:0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; collisions:0 txqueuelen:0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RX bytes:32140173 (30.6 MiB)&nbsp;&nbsp;TX bytes:233464694 (222.6 MiB)<br><br># tc -s qdisc show dev br0<br>qdisc tbf 8002: rate 50000Kbit burst 5993b lat 6.1ms<br> Sent 233670717 bytes 208735 pkts (dropped 0, overlimits 18)
<br><br>Greetings<br>Jens<br>_______________________________________________<br>LARTC mailing list<br><a href="mailto:LARTC@mailman.ds9a.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">LARTC@mailman.ds9a.nl
</a><br><a href="http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc</a><br></blockquote></div><br></span></div>This is exactly the piece of hardware i am doing tests. A WRT54G with dd-wrt micro. And i also have:<span class="q"><br><br>
tc -s qdisc show dev br0<br></span>qdisc sfq 8001: limit 128p quantum 1514b 
<br>Sent 2814 bytes 38 pkts (dropped 0, overlimits 0) <br><br>and i redirect all traffic in br0 to a IMQ device and i can shape internet natted traffic using htb and it works with no problems.<br clear="all"><span class="sg">
<br>-- </span><div><span class="e" id="q_1151b628addfe099_5"><br>[]&#39;s
<br>Salatiel<br><br>&quot;O maior prazer do inteligente é bancar o&nbsp;&nbsp;idiota <br>&nbsp;&nbsp; diante de um&nbsp;&nbsp;idiota que banca o inteligente&quot;.
</span></div></blockquote></div><br>Well , i just did a few tests here and i can use htb on br0.&nbsp; Although there are still a few things that i do not understand, for example:<br>I have a default htb class 1:99&nbsp; limited to 8kb/s , and one main class with 512kbit/s which is equally distributed to two childs with rate 256 and ceil 512.
<br>i marked the packets using iptables -j CLASSIFY, and everything is working, each child can download at the expected rate , and any other machine not specified in the iptables are automatically shaped to 8kb/s as expected.
<br>But the doubt is&nbsp; :<br>to mark i use iptables -t mangle -A POSTROUTING -s ! <a href="http://192.168.254.0/24">192.168.254.0/24</a> -d MACHINE_IP_TO_BE_SHAPED -j CLASSIFY --set-class x:yz, this way traffic coming from my local network to my local network would not be shaped , but i was thinking , should not this traffic enter in default class ? I can transfer from one wireless machine to a ethernet machine [both in the br0] at 2Mbps , what means it is not being shaped at all. [This is what i wanted , but i do not understand why it is not going in default&nbsp; class]
<br><br><br><span style="font-weight: bold;">~ # tc -s qdisc&nbsp; ls dev br0</span><br style="font-weight: bold;">qdisc htb 1: r2q 10 default 99 direct_packets_stat 4<br>Sent 41307007 bytes 29496 pkts (dropped 556, overlimits 9552) 
<br><br><span style="font-weight: bold;">~ # tc -s class&nbsp; ls dev br0</span><br>class htb 1:99 root prio 0 rate 8000bit ceil 8000bit burst 1609b cburst 1609b <br>&nbsp;Sent 112219 bytes 846 pkts (dropped 134, overlimits 0) <br>
&nbsp;rate 336bit <br>&nbsp;lended: 846 borrowed: 0 giants: 0<br>&nbsp;tokens: 2366718 ctokens: 2366718<br><br>class htb 1:1 root rate 512000bit ceil 512000bit burst 2284b cburst 2284b <br>&nbsp;Sent 41278639 bytes 28838 pkts (dropped 0, overlimits 0) 
<br>&nbsp;rate 10000bit 2pps <br>&nbsp;lended: 12098 borrowed: 0 giants: 0<br>&nbsp;tokens: 18141 ctokens: 18141<br><br>class htb 1:2 parent 1:1 prio 0 rate 256000bit ceil 512000bit burst 1919b cburst 2239b <br>&nbsp;Sent 37306226 bytes 25556 pkts (dropped 410, overlimits 0) 
<br>&nbsp;rate 3912bit 1pps <br>&nbsp;lended: 14308 borrowed: 11248 giants: 0<br>&nbsp;tokens: -45271 ctokens: 14551<br><br>class htb 1:3 parent 1:1 prio 0 rate 256000bit ceil 512000bit burst 1919b cburst 2239b <br>&nbsp;Sent 3972413 bytes 3282 pkts (dropped 12, overlimits 0) 
<br>&nbsp;rate 5384bit <br>&nbsp;lended: 2432 borrowed: 850 giants: 0<br>&nbsp;tokens: 90105 ctokens: 52787<br><br><br><br><br><br><br clear="all"><br>-- <br>[]&#39;s<br>Salatiel<br><br>&quot;O maior prazer do inteligente é bancar o&nbsp;&nbsp;idiota 
<br>&nbsp;&nbsp; diante de um&nbsp;&nbsp;idiota que banca o inteligente&quot;.