<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; "><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">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">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">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>On Feb 12, 2013, at 6:24 PM, Saran Tarnoi <<a href="mailto:sarantarnoi@gmail.com">sarantarnoi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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 class="HOEnZb"><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>
_______________________________________________<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></body></html>