[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM
alexander.afanasyev at ucla.edu
Wed Feb 13 15:30:48 PST 2013
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;
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.
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM