<div dir="ltr">Hi,<div>    We're testing <span class="" style="background-color:yellow">wanproxy</span> heavily and during the tests we saw a baffling traffic saving difference between using wanproxy inside a LAN and using it trought the internet.</div>
<div><br></div><div>Under Linux (ubuntu 12.04 client side and debian 7.0 on the server).</div><div>The first set up is like this (we used an iso file for testing):</div><div>WPclient->(gateway)->//internet//->WPserver+squid->//internet//->webserver<br>
</div><div><br></div><div><div>1st. download: </div><div>traffic between wanproxies = 218.000 tcp packs, 183 mbytes</div><div>traffic between wanproxy client and PC inside the LAN = 29.412 tcp packs, 177Mb</div><div><br></div>
<div>2nd download:</div><div><div>about 10% traffic saving equally disperse between tcp packs and mbytes sent between wanproxies</div></div></div><div><br></div><div>the second set up is like this (the same iso file):<br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px">WPcliente->(LAN)WPserver+</span><span style="font-family:arial,sans-serif;font-size:13px">squid->(LAN)->webserver</span><br></div><div>1st. download: </div>
<div>traffic between wanproxies = 104.000 tcp packs, 143 mbytes</div><div>traffic between wanproxy client and PC inside the LAN = 7844 tcp packs, 177Mb</div><div><br></div><div>2nd download:</div><div><div>traffic between wanproxies = 8230 tcp packs, *10* mbytes</div>
<div>traffic between wanproxy client and PC inside the LAN = 4090 tcp packs, 176Mb</div></div><div><br></div><div>The first thing I notice was the huge difference in the tcp packs sent during the first download of both setups (Internet vs. LAN) 218K vs 104K, but the differences between the first and second download using LAN is 20% saving using internet, 95% saving using LAN.</div>
<div><br></div><div>Following Diego Woitasen's advice I tried manipuling the MTU with MSS Clamping (<a href="http://lartc.org/howto/lartc.cookbook.mtu-mss.html">http://lartc.org/howto/lartc.cookbook.mtu-mss.html</a>) and it got better (up to 30% savings).</div>
<div><br></div><div>Using internet the number of tcp packets sent between wanproxies grew from 104K  (in LAN) to 218K (more than 100%).</div><div><br></div><div>Any ideas on how to go around this problem? Is there something that can be done inside wanproxy's code?</div>
<div><br></div><div>thanks,</div><div><br></div><div>dc//</div><div><br></div><div>-- <br>Daniel <span class="" style="background-color:yellow">Coletti</span><br>Director<br><span class="" style="background-color:yellow">XTech</span> (<span class="" style="background-color:yellow">Soluciones</span> Linux para <span class="" style="background-color:yellow">Empresas</span>) - <a href="http://www">http://www</a>.<span class="" style="background-color:yellow">xtech</span>.com.<span class="" style="background-color:yellow">ar</span><br>
++(5411) 5219-0678<br>25 <span class="" style="background-color:yellow">de</span> Mayo 460 - 3er. <span class="" style="background-color:yellow">piso</span><br><span class="" style="background-color:yellow">Buenos</span> <span class="" style="background-color:yellow">Aires</span>, Argentina
</div></div>