<br><br><div class="gmail_quote">On Sat, Jul 16, 2011 at 9:04 PM, jiangtao.jit <span dir="ltr">&lt;<a href="mailto:jiangtao.jit@gmail.com">jiangtao.jit@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>



<div style="margin:10px;font-family:verdana;font-size:10pt">
<div>Hi, all</div>
<div> </div>
<div>recently, i read some of the Kernel codes</div>
<div>and i noticed that a bridge and lo device have only one queue when 
allocated</div>
<div>but a bonding device can have multi queues</div>
<div>they are all virtual devices</div>
<div>why they can have diffrent queue numbers</div>
<div>it confused me a lot</div>
<div>i would really appreciate if someone could give me some guidelines</div>
<div>thanks very much</div>
<div> </div>
<div> </div></div></blockquote><div><br></div><div>what is the purpose of a &quot;queue&quot;?   reading the documentation:</div><div><br></div><div><a href="http://www.kernel.org/doc/Documentation/networking/bonding.txt">http://www.kernel.org/doc/Documentation/networking/bonding.txt</a></div>
<div><br></div><div><a href="http://www.kernel.org/doc/Documentation/networking/bonding.txt"></a>each queue correspond to each physical interface &quot;ethX&quot;.   and as all these &quot;slave&quot; interfaces share the same MAC address, packets can be sent out through any of these interface and received via another - allowing redundancies in terms of physical links.   multiple interfaces in the same multi-queue all share the same MAC address.</div>
<div><br></div><div>but the case of bridging is not really for load balancing purposes.   &quot;bridge&quot; literally means bridging two different physical interface, so that network traffic can hop from one to the other (independent or ignorant of L3 protocol).   each physical interface must have different MAC address, so that each &quot;queue&quot; is actually ONE interface.</div>
<div><br></div><div>See:</div><div><br></div><div><a href="http://www.youtube.com/watch?v=luOFxh1awiA&amp;feature=related">http://www.youtube.com/watch?v=luOFxh1awiA&amp;feature=related</a></div><div><br></div><div><a href="http://www.youtube.com/watch?v=luOFxh1awiA&amp;feature=related"></a><br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="margin:10px;font-family:verdana;font-size:10pt">
<div> </div>
<div><font size="2" face="Verdana"></font> </div>
<div align="left"><font color="#c0c0c0" size="2" face="Verdana">2011-07-16 
</font></div><font size="2" face="Verdana">
<hr style="width:122px;min-height:2px" align="left" size="2">

<div><font color="#c0c0c0" size="2" face="Verdana"><span>jiangtao.jit</span> 
</font></div></font></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Peter Teoh<br>