[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Feb 13 15:30:48 PST 2013

Hi Saran,

Unfortunately, the problem has been finally solved yet.  What is happening (https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc) 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).

To "fix" the problem, we just need to implement functions to set "q" and "s" (and replace accessors on https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc#L53 and on https://github.com/shockjiang/ndnSIM/blob/master/apps/ndn-consumer-zipf-mandelbrot.cc#L57 to use these functions) and in part of these functions there should be a call SetNumberOfContents.


SetQ (double q)
   m_q = q;
   SetNumberOfContents (m_N);

We will appreciate if you can spare some time to write this "fix".


On Feb 12, 2013, at 6:24 PM, Saran Tarnoi <sarantarnoi at gmail.com> wrote:

> Hi Alex and Xiaoke,
> I have been following your code to better understand ndnSIM.
> Thank you so much for your effort to create and share the simulator and documentation.
> I am studying how various traffic characteristics affect a caching performance of a network.
> I have walked through zipf-mandelbrot code. 
> There was a comment by Alex said that adding attributes "s" and "q" does not properly work.
> Do you already solve the problem in the latest patch? 
> Or would you please tell me what the problem is? So that I may help you fix it.
> Thanks. 
> Saran
> -- 
> Regards,
> Saran Tarnoi
> Graduate Student
> Department of Informatics
> The Graduate University for Advanced Studies (Sokendai)
> Tokyo, Japan
> _______________________________________________
> 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/20130213/d80d362f/attachment.html>

More information about the ndnSIM mailing list