[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM
Alex Afanasyev
alexander.afanasyev at ucla.edu
Tue Dec 25 00:33:49 PST 2012
Thanks Xiaoke,
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: http://ndnsim.net/applications.html#consumerzipfmandelbrot.
Sincerely,
Alex
On Dec 24, 2012, at 7:09 PM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
> Dear All,
>
> I have implemented an app which requests contents following Zipf-Mandelbrot distribution (number of Content frequency Distribution). This class is subclass of ConsumerCbr.
>
> My change includes:
> 1) modify ConsumerCbr.h, make its private members to protected, which allow ConsumberZipfManbelbrot to access those members.
> 2) add an 2 file, consumber-zipf-mandelbrot.{h, cc} in ndnSIM/apps/
>
> Usage is very simple, just as what you do to ConsumerCbr,
>
> ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerZipfMandelbrot");
> //ndn::AppHelper consumerHelper ("ns3::ndn::ConsumerCbr");
> consumerHelper.SetPrefix (prefix);
> consumerHelper.SetAttribute ("Frequency", StringValue ("100")); // 100 interests a second
> //consumerHelper.SetAttribute ("Randomize", StringValue ("uniform")); // 100 interests a second
>
> of course, I have written some script to test it, I put it into ndnSIM/example/ndn-zipf-mandelbrot.cc
>
> I will share it with github with Alex's help, I hope it may help you.
>
>
>
>
> thanks
>
> My Regards,
> Xiaoke Jiang
>
> Ph.D Candidate,
> Dept. of Computer Science and Technology,
> Tsinghua University, P. R. China
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
More information about the ndnSIM
mailing list