<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div apple-content-edited="true"><div><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; position: static; z-index: auto; "><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" color="#b5c4df" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China</font></span></div></font></div></div>
</div>
<br><div><div>On Dec 25, 2012, at 4:33 PM, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks Xiaoke,<br><br>I have incorporated your pull request with several minor changes.  Also, I've made a documentation section on ndnsim, including your simulation results that compare with theoretical zipf distribution: <a href="http://ndnsim.net/applications.html#consumerzipfmandelbrot">http://ndnsim.net/applications.html#consumerzipfmandelbrot</a>.<br><br>Sincerely,<br>Alex <br><br><br>On Dec 24, 2012, at 7:09 PM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:<br><br><blockquote type="cite">Dear All,<br><br>I have implemented an app which requests contents following Zipf-Mandelbrot distribution (number of Content frequency Distribution). This class is subclass of ConsumerCbr. <br><br>My change includes:<br>1) modify ConsumerCbr.h, make its private members to protected, which allow ConsumberZipfManbelbrot to access those members.<br>2) add an 2 file, consumber-zipf-mandelbrot.{h, cc} in ndnSIM/apps/ <br><br>Usage is very simple, just as what you do to ConsumerCbr, <br><br> ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerZipfMandelbrot");<br> //ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");<br> consumerHelper.SetPrefix (prefix);<br> consumerHelper.SetAttribute ("Frequency", StringValue ("100")); // 100 interests a second<br> //consumerHelper.SetAttribute ("Randomize", StringValue ("uniform")); // 100 interests a second<br><br>of course, I have written some script to test it, I put it into ndnSIM/example/ndn-zipf-mandelbrot.cc<br><br>I will share it with github with Alex's help, I hope it may help you.<br><br><br><br><br>thanks<br><br>My Regards,<br>Xiaoke Jiang <br><br>Ph.D Candidate,<br>Dept. of Computer Science and Technology,<br>Tsinghua University, P. R. China<br>_______________________________________________<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><br></blockquote></div><br></div></div></body></html>