[ndnSIM] ndnSIM Digest, Vol 76, Issue 16 How to delete a CS entry in a router

mdparamartha95 at students.itb.ac.id mdparamartha95 at students.itb.ac.id
Thu Mar 21 05:39:08 PDT 2019


Hi Mengxue,

actually, there's a function to erase the data stored in the content store,

however, it depends on which content store implementation you had used?

There's OldContentStore and NFD Content Store,

You can look forward to evictEntries() function in ndnSIM.

Best Regards,
Adi Paramartha

----- Original Message -----
From: ndnsim-request at lists.cs.ucla.edu
To: "ndnsim" <ndnsim at lists.cs.ucla.edu>
Sent: Wednesday, March 20, 2019 11:05:55 PM
Subject: ndnSIM Digest, Vol 76, Issue 16

Send ndnSIM mailing list submissions to
	ndnsim at lists.cs.ucla.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
or, via email, send a message with subject or body 'help' to
	ndnsim-request at lists.cs.ucla.edu

You can reach the person managing the list at
	ndnsim-owner at lists.cs.ucla.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ndnSIM digest..."


Today's Topics:

   1. How to delete a CS entry in a router (mengxue)
   2. using L3RateTracer metrics as variables (Ahmed BENMOUSSA)
   3. Re: using L3RateTracer metrics as variables (Ahmed BENMOUSSA)
   4. Re: using L3RateTracer metrics as variables
      (Spyridon (Spyros) Mastorakis)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Mar 2019 16:17:48 +0800 (CST)
From: mengxue <mengxue_1224 at 126.com>
To: ndnsim at lists.cs.ucla.edu
Subject: [ndnSIM] How to delete a CS entry in a router
Message-ID: <6cd8c84.6e6d.1699a2d84d9.Coremail.mengxue_1224 at 126.com>
Content-Type: text/plain; charset="gbk"

Hi all?

   

    Now, I have already seen the entries that stored in a router's contentstore?and I want to delete some data packets and special entries from the contentstore.

How to code it? Is there any way to do it?

    Thanks in advance.


Best regards,
Xue Meng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190320/4d6f3449/attachment-0001.html>

------------------------------

Message: 2
Date: Wed, 20 Mar 2019 13:04:29 +0100
From: Ahmed BENMOUSSA <ah.benmoussa at lagh-univ.dz>
To: ndnsim at lists.cs.ucla.edu
Subject: [ndnSIM] using L3RateTracer metrics as variables
Message-ID:
	<CAJC9Pi=u6GLD6AH8i4fOcaMFWp8eNGFVTLn5kL9iw6+0xNLDWA at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190320/bd3ec1a7/attachment-0001.html>

------------------------------

Message: 3
Date: Wed, 20 Mar 2019 14:35:32 +0100
From: Ahmed BENMOUSSA <ah.benmoussa at lagh-univ.dz>
To: Safa Mejri <mejrisafaenig at gmail.com>, ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] using L3RateTracer metrics as variables
Message-ID:
	<CAJC9PincKbSOuPqcH3Y+P-0PQmXUY7CNH8DynXq1_48-XYkPnQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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
> ?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190320/8c21d0b3/attachment-0001.html>

------------------------------

Message: 4
Date: Wed, 20 Mar 2019 09:05:52 -0700
From: "Spyridon (Spyros) Mastorakis" <mastorakis at cs.ucla.edu>
To: Ahmed BENMOUSSA <ah.benmoussa at lagh-univ.dz>
Cc: Safa Mejri <mejrisafaenig at gmail.com>, ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] using L3RateTracer metrics as variables
Message-ID: <297BC0AA-5F3C-4B65-9261-435DFC1CFC5C at cs.ucla.edu>
Content-Type: text/plain; charset="utf-8"

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.html>

------------------------------

Subject: Digest Footer

_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim


------------------------------

End of ndnSIM Digest, Vol 76, Issue 16
**************************************


More information about the ndnSIM mailing list