[ndnSIM] Random Policy
aa at CS.UCLA.EDU
Thu Dec 15 09:50:58 PST 2016
I'm assuming you're using the "old"-style CS policy. Take a look at 'insert' method for the policy (e.g., line 106-125 in util/trie/random-policy.hpp). What you need is to add a random decision to return false and avoid any other actions in this function: if insert returns false, the data packet will not be inserted.
> On Dec 15, 2016, at 7:08 AM, Fatemeh Goudarzi <fatemeh.university at gmail.com> wrote:
> Due to the fact that random policy deletes the data randomly while the cache is full ,how can I change this policy so that the decision to cache a received content to be random?
More information about the ndnSIM