[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM
alexander.afanasyev at ucla.edu
Fri Feb 15 16:03:55 PST 2013
I have applied your changes with some minor modifications.
On Feb 15, 2013, at 2:45 AM, Saran Tarnoi <sarantarnoi at gmail.com> wrote:
> Hi Alex,
> Thanks a lot for your hint. It helps me very much.
> I have fixed the problem.
> However, I didn't put "SetNumberOfContents (m_N);" in SetQ function because I don't clearly understand the logic of code.
> Anyway, it works properly now according to my sample simulation.
> Would you kindly double check it?
> 2013/2/14 Alex Afanasyev <alexander.afanasyev at ucla.edu>
> 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.
>> 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
> 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