[ndnSIM] How to get cache hit/miss ratio in a variable?
Spyridon (Spyros) Mastorakis
spiros.mastorakis at gmail.com
Sun Feb 15 10:23:19 PST 2015
please use the “reply to all” option, so that your emails are visible to all the users of ndnSIM.
Exclude is a selector and refers only to a name prefix. You can take a look here for further information:
However, the FreshnessPeriod field of a data packet may be useful to you:
Remember that if you want to use this field, the consumer has to request fresh data explicitly. This can be done with the MustBeFresh selector:
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
PhD Computer Science
> On Feb 15, 2015, at 4:44 AM, adithya srinivasan <adith.ad at gmail.com> wrote:
> Thank you for your reply. Actually i thought initially that we can exclude a packet directly by specifying just the name of the packet. But i looked into the ndn-exclude files and found that exclusions can be made for the prefixes alone.Isn't that so? What I needed was the number of exclusions made by various users for a data packet in the Content Store of a router so that I can determine whether that packet is an important one or not.Suppose a user adds "/node0" as an exclusion in the interest , I want the number of exlcusions for "/node0" in the router's CS to be incremented by 1. I still don't know how to achieve this. Sorry I'm kind of a noob in this. Is there a way to get this?
> Thank you
> On Sun, Feb 15, 2015 at 11:49 AM, Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com> wrote:
> in order to get the cache hit/miss ratio in the desired format, you will need either to modify the implementation of the CS directly or the implementation of the cs tracer in order to return the desired parameter.
> For the other thing about the exclusions, Alex asked you to define more precisely the term “number of exclusions”. I would like to ask the same thing in order to really understand your question and be able to answer it.
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> PhD Computer Science
> > On Feb 13, 2015, at 11:08 PM, adithya srinivasan <adith.ad at gmail.com> wrote:
> > Hello
> > My project involves a basic level security algorithm against cache poisoning and pollution in NDN. For that I'm in need of the cache hit/miss ratio and also the exclusions made for a packet in the Content Store of a node. I've seen programs where the cache hit/miss ratio can be traced using tracers. But is there any way to obtain the cache hit/miss ratio of a node at any point of time inside a variable. I can use custom apps to create an instance for a node and is it possible to get the cache hit/miss ratio in that app?
> > Thank you
> > Adithya
> > _______________________________________________
> > ndnSIM mailing list
> > ndnSIM at lists.cs.ucla.edu
> > http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
More information about the ndnSIM