[ndnSIM] Zipf-Mandelbrot Patch for ndnSIM

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Feb 15 16:03:55 PST 2013


Thanks Saran,

I have applied your changes with some minor modifications.

---
Alex

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? 
> 
> Thanks,
> Saran
> 
> 
> 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.
> 
> Like
> 
> void
> SetQ (double q)
> {
>    m_q = q;
>    SetNumberOfContents (m_N);
> }
> 
> We will appreciate if you can spare some time to write this "fix".
> 
> Thanks,
> Alex
> 
> 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
> 
> 
> 
> 
> -- 
> Regards,
> Saran Tarnoi
> Graduate Student
> Department of Informatics
> The Graduate University for Advanced Studies (Sokendai)
> Tokyo, Japan
> http://sarantarnoi.blogspot.jp
> <ndn-consumer-zipf-mandelbrot.cc><ndn-consumer-zipf-mandelbrot.h>_______________________________________________
> 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/20130215/ccf7de4d/attachment.html>


More information about the ndnSIM mailing list