From: "mohican 542003" Date: Thu, 11 Oct 2007 08:05:51 +0000 Subject: [LARTC] How to set MTU Message-Id: <519f77360710110105p20bbe9f6j93edbb37d3478fc1@mail.gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1853696598==" List-Id: To: lartc@vger.kernel.org --===============1853696598== Content-Type: multipart/alternative; boundary="----=_Part_14696_21079279.1192089951980" ------=_Part_14696_21079279.1192089951980 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I made some tests with HTB, and i usually set MTU to the default value of TCP_WMEM (that is 65536 for me). I have this case : 50 Mbits/s 10 Mbits/s A----------------------------------B---------------------------------------C if A send to B, bandwidth is about 50 Mbits/s if B send to C, bandwidth is about 10 Mbits/s But if A send to C, Bandwidth is about 14 Mbits/s, instead of 10 Mbits/s. I think perhaps the MTU should be different according to bandwidth ? Has someone an idea about this ? Here is my configuration : On A : tc class add dev eth0 parent 1: classid 1:2 htb rate 50000kbit ceil 50000kbit mtu 65536 tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst B flowid 1:2 On B : tc class add dev eth0 parent 1: classid 1:2 htb rate 10000kbit ceil 10000kbit mtu 65536 tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst C flowid 1:2 On B, /proc/sys/net/ipv4/ip_forward =1, and there is no link between A and C. Thanks, Olivier. ------=_Part_14696_21079279.1192089951980 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,

I made some tests with HTB, and i usually set MTU to the default value of TCP_WMEM (that is 65536 for me).

I have this case :

                  50 Mbits/s                              10 Mbits/s
A----------------------------------B---------------------------------------C

if A send to B, bandwidth is about 50 Mbits/s
if B send to C, bandwidth is about 10 Mbits/s
But if A send to C, Bandwidth is about 14 Mbits/s, instead of 10 Mbits/s.

I think perhaps the MTU should be different according to bandwidth ?

Has someone an idea about this ?

Here is my configuration :

On A :
tc class add dev eth0 parent 1: classid 1:2 htb rate 50000kbit ceil 50000kbit mtu 65536
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst B flowid 1:2

On B :
tc class add dev eth0 parent 1: classid 1:2 htb rate 10000kbit ceil 10000kbit mtu 65536
tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dst C flowid 1:2


On B, /proc/sys/net/ipv4/ip_forward =1, and there is no link between A and C.

Thanks,

Olivier.
------=_Part_14696_21079279.1192089951980-- --===============1853696598== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1853696598==--