[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM

Xiaoke Jiang shock.jiang at gmail.com
Tue Dec 25 00:50:44 PST 2012


Thank you Alex, but would you please change it 4th figure (duration=1000) to the attached one. 

As to q and s, the two parameters are very important, http://en.wikipedia.org/wiki/Zipf%E2%80%93Mandelbrot_law.  It's the parameters of Zipf-Mandelbrot PMF. So I will add setter and getter functions later.

thanks

My Regards,
Xiaoke Jiang (蒋小可)

Ph.D Candidate,
Dept. of Computer Science and Technology,
Tsinghua University, P. R. China

On Dec 25, 2012, at 4:33 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:

> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20121225/45e32cd8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: N100-Frq100-Duration1000.pdf
Type: application/pdf
Size: 21030 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20121225/45e32cd8/attachment.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20121225/45e32cd8/attachment-0001.html>


More information about the ndnSIM mailing list