[ndnSIM] using L3RateTracer metrics as variables
ah.benmoussa at lagh-univ.dz
Wed Mar 20 10:58:27 PDT 2019
Thank you so much for your reply. I will try to use it in my simulation.
Le mer. 20 mars 2019 à 17:05, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> a écrit :
> probably something like the forwarder counters could work:
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> On Mar 20, 2019, at 6:35 AM, Ahmed BENMOUSSA <ah.benmoussa at lagh-univ.dz>
> 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,
> Le mer. 20 mars 2019 à 13:51, Safa Mejri <mejrisafaenig at gmail.com> a
> écrit :
>> 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>
>> 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,
>>> ndnSIM mailing list
>>> ndnSIM at lists.cs.ucla.edu
>> Safa MEJRI
>> Telecommunications and Networks Engineer
>> Ph.D Student at the National School of Computer Sciences (ENSI)_ Manouba_
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM