<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'>Correct massage:<div><div style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">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 style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">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 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);">Typically, in WANProxy client we set:</div><div style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">set proxy0.interface_codec None</div><div style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">set proxy0.peer_codec codec0</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);">and in WANProxy server it will be like:</div><div style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">set proxy0.interface_codec codec0</div><div style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">set proxy0.peer_codec None</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);">Now correct me if I am wrong. If I want bidirectional optimization I will do the following:</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);">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 style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);"> </div><div style="line-height: 22.7199993133545px; color: rgb(68, 68, 68); font-family: Calibri; background-color: rgb(255, 255, 255);">2- In initial WANProxy server I will create another proxy called proxy1, for example. </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);">3- I will set the peer of proxy1 to be peer1, interface_codec None and peer_codec codec1, for example.</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);">4- I will create proxy1 in the initial WANProxy client to deal with the new proxy1 created in the previous steps.</div><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 11:16:56 +0400<br><br>

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

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

--></style>
<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><hr id="ecxstopSpelling">From: juli@clockworksquid.com<br>Date: Fri, 10 Oct 2014 22:29:44 -0700<br>Subject: Re: Between Compression & Deduplication<br>To: al-ghafri@hotmail.com<br>CC: wanproxy@lists.wanproxy.org<br><br><div dir="ltr"><div class="ecxgmail_extra"><div class="ecxgmail_quote">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 class="ecxgmail_quote" 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 class="ecxgmail_quote" 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 class="ecxgmail_quote" 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">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></body>
</html>