[ndnSIM] How to get cache hit/miss ratio in a variable?

adithya srinivasan adith.ad at gmail.com
Mon Feb 16 07:17:26 PST 2015


Hello
Thank you for your reply. However i wasn't able to find a way to specify
the minsuffixcomponents and maxsuffixcomponents. And also , can you provide
me with an example of an application that uses exclude filters where the
packets are excluded while the program is running.A very simple example
will suffice. What I tried so far is , create a prefix , say , "/node8" and
add origins to that prefix to a node8 in the network. And then i added
"user" as an exclude filter using the excludeOne() function. The
onInterest() of node8 appends "user" to the dataname of the packet.So the
name of the packet from producer becomes "/node8/user". Now as far as my
understanding goes , this packet must be ignored since there is a match for
the exclude filter. But the packet is being forwarded to the consumer.Can
you point out where I am going wrong?

P.S I also tried changing the source prefix as "/node8/user" and the
consumer's interest prefix as "/node8" without any exclude filters. However
there was no packet being transmitted. By longest prefix match , there
should be a transmission of data packet from node 8 , shouldn't it be?
Thank you
Adithya

On Sun, Feb 15, 2015 at 11:53 PM, Spyridon (Spyros) Mastorakis <
spiros.mastorakis at gmail.com> wrote:

> Hello,
>
> 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:
>
> http://named-data.net/doc/ndn-tlv/interest.html#selectors
>
> However, the FreshnessPeriod field of a data packet may be useful to you:
>
> http://named-data.net/doc/ndn-tlv/data.html#freshnessperiod
>
> 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:
>
> http://named-data.net/doc/ndn-tlv/interest.html#mustbefresh
>
> --
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> PhD Computer Science
> UCLA
>
>
>
>
> > On Feb 15, 2015, at 4:44 AM, adithya srinivasan <adith.ad at gmail.com>
> wrote:
> >
> > Hi
> > 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
> > Adithya
> >
> > On Sun, Feb 15, 2015 at 11:49 AM, Spyridon (Spyros) Mastorakis <
> spiros.mastorakis at gmail.com> wrote:
> > Hello,
> >
> > 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
> > UCLA
> >
> >
> >
> >
> > > 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
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150216/a9958523/attachment.html>


More information about the ndnSIM mailing list