<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Saran,<div><br></div><div>I have applied your changes with some minor modifications.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Feb 15, 2013, at 2:45 AM, Saran Tarnoi <<a href="mailto:sarantarnoi@gmail.com">sarantarnoi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Alex,<div><br></div><div>Thanks a lot for your hint. It helps me very much.</div><div>I have fixed the problem.</div><div>However, I didn't put "SetNumberOfContents (m_N);" in SetQ function because I don't clearly understand the logic of code.</div>
<div>Anyway, it works properly now according to my sample simulation.</div><div><br></div><div>Would you kindly double check it? </div><div><br></div><div>Thanks,</div><div>Saran</div><div><br></div><div><br><div class="gmail_quote">
2013/2/14 Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Hi Saran,</div><div><br></div><div>Unfortunately, the problem has been finally solved yet.  What is happening (<a href="https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc" target="_blank">https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc</a>) is that "q" and "s" parameters are only activated when "SetNumberOfContents" method is called (either directly or indirectly via NS-3 attribute system).   When "q" or "s" is updated through NS-3 attribute system, this is not resulting in any change with rank or power of the Zipf distribution (not until somebody calls SetNumberOfContents again).</div>
<div><br></div><div>To "fix" the problem, we just need to implement functions to set "q" and "s" (and replace accessors on <a href="https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc#L53" target="_blank">https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc#L53</a> and on <a href="https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc#L57" target="_blank">https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc#L57</a> to use these functions) and in part of these functions there should be a call SetNumberOfContents.</div>
<div><br></div><div>Like</div><div><br></div><div>void</div><div>SetQ (double q)</div><div>{</div><div>   m_q = q;</div><div>   SetNumberOfContents (m_N);</div><div>}</div><div><br></div><div>We will appreciate if you can spare some time to write this "fix".</div>
<div><br></div><div>Thanks,</div><div>Alex</div><br><div><div><div class="h5"><div>On Feb 12, 2013, at 6:24 PM, Saran Tarnoi <<a href="mailto:sarantarnoi@gmail.com" target="_blank">sarantarnoi@gmail.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5">Hi Alex and Xiaoke,<div><br></div><div>I have been following your code to better understand ndnSIM.</div><div>Thank you so much for your effort to create and share the simulator and documentation.</div>
<div><br></div>
<div>I am studying how various traffic characteristics affect a caching performance of a network.</div><div>I have walked through zipf-mandelbrot code. </div><div>There was a comment by Alex said that adding attributes "s" and "q" does not properly work.</div>

<div>Do you already solve the problem in the latest patch? </div><div>Or would you please tell me what the problem is? So that I may help you fix it.</div><div><br></div><div>Thanks. <span><font color="#888888"><br clear="all">

<div>Saran</div>-- <br>Regards,<div>Saran Tarnoi</div><div>Graduate Student</div><div>Department of Informatics</div><div>The Graduate University for Advanced Studies (Sokendai)</div><div>Tokyo, Japan</div></font></span></div>

</div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<div>Saran Tarnoi</div><div>Graduate Student</div><div>Department of Informatics</div><div>The Graduate University for Advanced Studies (Sokendai)</div>
<div>Tokyo, Japan</div><div><a href="http://sarantarnoi.blogspot.jp/2012/11/my-profile.html" target="_blank">http://sarantarnoi.blogspot.jp</a><br></div>
</div>
<span><ndn-consumer-zipf-mandelbrot.cc></span><span><ndn-consumer-zipf-mandelbrot.h></span>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>