[ndnSIM] using L3RateTracer metrics as variables
Ahmed BENMOUSSA
ah.benmoussa at lagh-univ.dz
Wed Mar 20 10:58:27 PDT 2019
Dear Spyridon;
Thank you so much for your reply. I will try to use it in my simulation.
Best regards,
Ahmed.
Le mer. 20 mars 2019 à 17:05, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> a écrit :
> 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
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: 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> 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>
>> 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
>>> 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/d7ea8bf6/attachment.html>
More information about the ndnSIM
mailing list