[ndnSIM] problem with dropping Interest message

Zeinab z.rezaiefar at yahoo.com
Sat Nov 28 04:43:56 PST 2015

Hi Cesar,
Thank you so much for nice and kind helps. You gave me good choices .
Moreover, I would like to say that I have installed ndnsim version 1, Since it has forwarding-strategy file. After modifying this file to drop interest message i did not receive any error.
Best regards

> On Nov 28, 2015, at 1:11 PM, Cesar Ghali <cghali at uci.edu> wrote:
> Hi Zeinab,
> I’m not sure how to distinguish between control interests and interest coming from applications. Maybe someone from the ndnSIM team can give more insight.
> However, I have some hacks that might help you (depending on your scenario):
> You can inspect the name of all internal control interests and if they share a prefix (or have a common name component), you can detect and exclude them from your drop policy.
> You can try to see if interests being received by the forwarder are going to be sent on an external face. This means that they’re not control interests, unless (1) you have two applications talking together on the same node therefore the interests between them will be sent to internal faces, or (2) there are some control interests that are actually transmitted between different nodes.
> Modify the interest structure and add a DROP flag. This flag is set by consumer’s application based on the random number you mentioned before. If a forwarder receives an interest with this flag set, it will be dropped. Make sure the default value of this flag is ‘0’. This means that only the interests coming out of your application might have flag set, and all other interests (including control ones) will have flag unset.
> Modify the interest structure to add a flag APPLICATION. This flag will be set in your application to indicate that the interest is coming from the application layer. Also, the default value of this flag should be ‘0’. In this case, you can distinguish between control and application interests in the forwarder and apply your policy on the ones coming from applications.
> I recommend the 3rd or 4th options because they give you more control. However, if there’s a way to distinguish at the forwarder between control interests and the ones coming from applications without adding any flag, that would be the best option.
> HTH,
> Cesar
> -- 
> PGP Key: http://www.cesarghali.info/contact.html
> PGP Key ID: 0x455D8052
>> On Nov 26, 2015, at 7:10 PM, Zeinab Rezaiefar <z.rezaiefar at yahoo.com> wrote:
>> Dear Cesar,
>> thank you so much for your email. I think you said right, but how can I just drop Interest message and solve this problem.
>> actually I want to drop interest message according some credibility that I defined for each face that interest message is received from it.
>> anyhow, in this step, I just defined a random number( between zero and one)  and randomly dropped the interest message:
>> if( random_ value > 0.6){
>>  return;}  
>> I would like to say according to this site ( http://ndnsim.net/1.0/doxygen/ndn-forwarding-strategy_8cc_source.html#l00493 )
>> there is a function for dropping interest message ( m_dropInterests)
>> but I do not have these files (forwarding-strategy.cpp,...) in my package which I installed it according to the http://ndnsim.net/2.0/getting-started.html 
>> how can I add these files. maybe with this command, I can delete just interest message.
>> thanks in advance
>> best regards
>> Zeinab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151128/704213a9/attachment.html>

More information about the ndnSIM mailing list