[ndnSIM] using L3RateTracer metrics as variables

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Wed Mar 20 09:05:52 PDT 2019


Hi,

probably something like the forwarder counters could work:

https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.5-ndnSIM/daemon/fw/forwarder.hpp#L293 <https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.5-ndnSIM/daemon/fw/forwarder.hpp#L293>

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Mar 20, 2019, at 6:35 AM, Ahmed BENMOUSSA <ah.benmoussa at lagh-univ.dz> wrote:
> 
> Hello Safa; 
> 
> Thank you so much for your reply even though this is not what I meant. 
> What I want to do is: 
> 
> - Create a variable for each metric (initialised to 0). 
> - Variables increments throughout the simulation process. 
> - Nodes will use these created variables to take actions.
> 
> In other words, I need these metrics to use them as parameters in my simulation and not just results (text file).
> 
> Best regards,
> Ahmed.
> 
> Le mer. 20 mars 2019 à 13:51, Safa Mejri <mejrisafaenig at gmail.com <mailto:mejrisafaenig at gmail.com>> a écrit :
> hello; 
> All you need to do: 
>  #include <ns3/ndnSIM/utils/tracers/ndn-l3-rate-tracer.h>  at the beginning of your scenario file.
>   
>  boost::tuple< boost::shared_ptr<std::ostream>, std::list<Ptr<ndn::L3RateTracer> > >
>     tracers = ndn::L3RateTracer::InstallAll ("ndn-l3-rate-tracer.txt");   after  Simulator::Stop at the end of your scenario file.
> 
> Good work;
>> 
> Le mer. 20 mars 2019 à 13:04, Ahmed BENMOUSSA <ah.benmoussa at lagh-univ.dz <mailto:ah.benmoussa at lagh-univ.dz>> a écrit :
> Hello everyone, 
> 
> Actually, I am working on a scenario simulation and I need your help. 
> I want to create variables to use them as counters for these metrics:
> InInterests 
> OutInterests 
> InData
> OutData 
> InNacks
> OutNacks
> SatisfiedInterests 
> TimedOutInterests
> 
> I need these variables in my simulation. I want to use them to make some calculations and then decides of the action to take. 
> 
> I tried to use "ndn-l3-rate-tracer.cpp" file but I don't know how. 
> If you have any suggestions, please help me.
> 
> Thank you in advance.
> With my respects,
> Ahmed.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
> 
> 
> -- 
> 
> Safa MEJRI 
> Telecommunications and Networks Engineer
> Ph.D Student at the National School of Computer Sciences (ENSI)_ Manouba_ Tunisia
>> _______________________________________________
> 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/20190320/72cf4d94/attachment-0001.html>


More information about the ndnSIM mailing list