<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Dear Juli,<br>Hope what I intended is clear?<br>Thanks,<br>Ahmed<br><div><hr id="stopSpelling">From: al-ghafri@hotmail.com<br>To: juli@clockworksquid.com<br>CC: wanproxy@lists.wanproxy.org<br>Subject: RE: Between Compression & Deduplication<br>Date: Sat, 11 Oct 2014 16:30:32 +0400<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Dear Juli,<div>Can you please see my network diagram here: <a href="http://postimg.org/image/3kzfdjn8z/" target="_blank" style="font-size:12pt;">http://postimg.org/image/3kzfdjn8z/</a></div><div><br></div><div>For this network the typical data flow which intended to be optimized is flowing from the Datacenter Server to the Client.</div><div>For this scenario I have the configuration as below:</div><div><br></div><div>WANProxy B: <a href="http://textuploader.com/o6ui" target="_blank">http://textuploader.com/o6ui</a><br><br></div><div>WANProxy A: <a href="http://textuploader.com/o6ue" target="_blank">http://textuploader.com/o6ue</a><br> </div><div><br></div><div>Now, my desire is to do optimization for the traffic from <span style="font-size:12pt;">Client to </span><span style="font-size:12pt;">the Datacenter as well so I have bidirectional optimization. To achieve this purpose I have added some extra data in both configuration files as below:</span></div><div><span style="font-size:12pt;"><br></span></div><div><div>WANProxy B: <a href="http://textuploader.com/o6u3" target="_blank">http://textuploader.com/o6u3</a><br><br></div><div>WANProxy A: <a href="http://textuploader.com/o6un" target="_blank">http://textuploader.com/o6un</a><br><br></div></div><div><br></div><div>Can please advice if I am in the correct way? </div><div><br></div><div><br></div><div>Hope you got my desire and I really appreciate your patience with me.</div><div><br></div><div>Kindest regards,</div><div>Ahmed</div><br><div><hr id="ecxstopSpelling">From: juli@clockworksquid.com<br>Date: Sat, 11 Oct 2014 00:22:02 -0700<br>Subject: Re: Between Compression & Deduplication<br>To: al-ghafri@hotmail.com<br>CC: wanproxy@lists.wanproxy.org<br><br><div dir="ltr">Ahmed,<div><br></div><div>I don't understand what your concern/desire is.  If you already have codecs set up between the proxy instances, you should be able to simply change the codec configuration (again, see the SSH example, or the wanproxy.conf example included with the source code, for examples of using both compression and deduplication).  If I'm just not getting it, feel free to let me know; your actual configuration files may be more helpful if it's still unclear.</div><div><br></div><div>Thanks,</div><div>Juli.</div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Sat, Oct 11, 2014 at 12:16 AM, Ahmed Al -Ghafri <span dir="ltr"><<a href="mailto:al-ghafri@hotmail.com" target="_blank">al-ghafri@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr"><div>Thanks Juli for your quick answer. I tried to use the search engine of the mailing list before but unfortunately I did not have good luck.</div><div>Anyway, for the first question it is clear for me, but still I am not able to arrange my ideas for the second question. It is good to hear that there is a possibility, of course.</div><div><br></div><div>Typically, in WANProxy client we set:</div><div>set proxy0.interface_codec None</div><div>set proxy0.peer_codec codec0</div><div><br></div><div>and in WANProxy server it will be like:</div><div>set proxy0.interface_codec None</div><div>set proxy0.peer_codec codec0</div><div><br></div><div>Now correct me if I am wrong. If I want bidirectional optimization I will do the following:</div><div><br></div><div>1- In the initial WANProxy server I will create another peer called peer1, for example. This peer has the same parameters of the initial WANProxy client interface. </div><div> </div><div>2- In initial WANProxy server I will create another proxy called proxy1, for example. </div><div><br></div><div>3- I will set the peer of proxy1 to be peer1, interface_codec None and peer_codec codec1, for example.</div><div><br></div><div>4- I will create proxy1 in the initial WANProxy client to deal with the new proxy1 created in the previous steps.</div><br><div><div class="ecxhm ecxHOEnZb"><hr>From: <a href="mailto:juli@clockworksquid.com" target="_blank">juli@clockworksquid.com</a><br>Date: Fri, 10 Oct 2014 22:29:44 -0700<br>Subject: Re: Between Compression & Deduplication<br>To: <a href="mailto:al-ghafri@hotmail.com" target="_blank">al-ghafri@hotmail.com</a><br>CC: <a href="mailto:wanproxy@lists.wanproxy.org" target="_blank">wanproxy@lists.wanproxy.org</a></div><div><div class="h5"><br><br><div dir="ltr"><div><div>On Fri, Oct 10, 2014 at 9:39 PM, Ahmed Al -Ghafri <span dir="ltr"><<a href="mailto:al-ghafri@hotmail.com" target="_blank">al-ghafri@hotmail.com</a>></span> wrote:<br><blockquote style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;">


<div><div dir="ltr"><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);">Hi Juili,</div><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);">Some questions in the configuration scenarios are in my mind. If I can get answer from your side I would be thankful.</div><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);"><br style="line-height:22.7199993133545px;"></div><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);"><b style="line-height:22.7199993133545px;">1)</b> Is possible to have  optimization techniques: Compression + Deduplication working together? if yes, how WANProxy can manage whether to compress or to deduplicate data?</div></div></div></blockquote><div><br></div><div>It may be worth using Google to try to find some previous posts on this in the list archives as I'm sure I've given more detailed responses than I will at present, but in short: if you look at the SSH example, for instance: <a href="http://wanproxy.org/ssh.shtml" target="_blank">http://wanproxy.org/ssh.shtml</a></div><div><br></div><div>You'll see that for each half of the proxy ("interface" and "peer" for obtuse reasons) you can assign a codec.  That codec may be configured with either XCodec (which does deduplication) or no codec (so no deduplication), as well as with a compressor.  The compression uses zlib, and you can set the compression level, so that e.g. on a low-CPU box you might set it lower, and on a high-CPU box with a lot of data that benefits from compression, you may set it higher.  WANProxy manages it by you configuring it.  Deduplication is done by the data before compression, and then the deduplicated data is compressed.  Does that answer your question?</div><div> </div><blockquote style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div><div dir="ltr"><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);"><b style="line-height:22.7199993133545px;">2)</b> Can I enable  Compression + Deduplication bidirectionally? I mean can I do optimization both up stream & down stream from client to server & server to client?</div></div></div></blockquote><div><br></div><div>You can configure the codecs to do whatever you want in either direction, compression and deduplication or just compression or just deduplication or neither, and you can configure each direction separately.</div><div> </div><blockquote style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;"><div><div dir="ltr"><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);">Kindest regards,</div><div style="line-height:22.7199993133545px;color:rgb(68,68,68);font-family:Calibri;background-color:rgb(255,255,255);">Ahmed</div>                                     </div></div>
<br>_______________________________________________<br>
wanproxy mailing list<br>
<a href="mailto:wanproxy@lists.wanproxy.org" target="_blank">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></div></div></div></div>                                           </div></div>
</blockquote></div><br></div></div>                                         </div></div>                                        </div></body>
</html>