<div dir="ltr">Hi Daniel,<div><br></div><div>With a lower-latency link like a WAN rather than the Internet, I would expect to see more packets sent between WANProxy instances; WANProxy makes no effort to buffer up data before sending it.  Using a slower link, you'll naturally have more buffering occurring and fewer packets sent.  There's some things that we could do and should do to avoid sending out gratuitous small packets, and I have some changes to do that, but I haven't tested them enough to check them in yet.</div>

<div><br></div><div>I'm not sure if I understand the difference you're seeing in terms of data reduction / deduplication / compression.  Which is giving the greater savings in terms of data transferred, the LAN or the Internet?  And what kind of download time are you seeing to the client on each configuration?</div>

<div><br></div><div>Thanks,</div><div>Juli.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 8:25 AM, Daniel Coletti <span dir="ltr"><<a href="mailto:dcoletti@xtech.com.ar" target="_blank">dcoletti@xtech.com.ar</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>    We're testing <span 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" target="_blank">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><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br>Daniel <span style="background-color:yellow">Coletti</span><br>Director<br><span style="background-color:yellow">XTech</span> (<span style="background-color:yellow">Soluciones</span> Linux para <span style="background-color:yellow">Empresas</span>) - <a href="http://www" target="_blank">http://www</a>.<span style="background-color:yellow">xtech</span>.com.<span style="background-color:yellow">ar</span><br>


<a href="tel:%2B%2B%285411%29%205219-0678" value="+541152190678" target="_blank">++(5411) 5219-0678</a><br>25 <span style="background-color:yellow">de</span> Mayo 460 - 3er. <span style="background-color:yellow">piso</span><br>

<span style="background-color:yellow">Buenos</span> <span style="background-color:yellow">Aires</span>, Argentina
</div></font></span></div>
<br>_______________________________________________<br>
wanproxy mailing list<br>
<a href="mailto:wanproxy@lists.wanproxy.org">wanproxy@lists.wanproxy.org</a><br>
<a href="http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org" target="_blank">http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org</a><br>
<br></blockquote></div><br></div>