<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Cesar,</div><div>Thank you so much for nice and kind helps. You gave me good choices .</div><div>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.</div><div>Thanks</div><div>Best regards</div><div>Zeinab</div><div><br><br></div><div><br>On Nov 28, 2015, at 1:11 PM, Cesar Ghali <<a href="mailto:cghali@uci.edu">cghali@uci.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8">Hi Zeinab,<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">However, I have some hacks that might help you (depending on your scenario):</div><div class=""><br class=""></div><div class=""><ul class="MailOutline"><li class="">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.</li><li class="">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.</li><li class="">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.</li><li class="">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.</li></ul><div class=""><br class="webkit-block-placeholder"></div><div class="">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.</div><div class=""><br class="webkit-block-placeholder"></div><div class="">HTH,</div><div class="">Cesar</div><div class=""><br class=""></div><div apple-content-edited="true" class=""><div style=" font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style=" font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small; background-color: rgb(255, 255, 255); " class=""><font color="#222222" face="arial" class="">-- <br class=""></font></span><span style="color: rgb(89, 89, 89); font-family: Calibri, sans-serif; font-size: small; " class="">PGP Key: <a href="http://www.cesarghali.info/contact.html" class="">http://www.cesarghali.info/contact.html</a><br class=""></span><span style="color: rgb(89, 89, 89); font-family: Calibri, sans-serif; font-size: small; " class="">PGP Key ID: 0x455D8052</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 26, 2015, at 7:10 PM, Zeinab Rezaiefar <<a href="mailto:z.rezaiefar@yahoo.com" class="">z.rezaiefar@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1448416128256_33092" class="">  Dear Cesar, </div><div id="yui_3_16_0_1_1448416128256_33155" dir="ltr" class="">thank you so much for your email. I think you said right, but how can I just drop Interest message and solve this problem.</div><div id="yui_3_16_0_1_1448416128256_33147" dir="ltr" class="">actually I want to drop interest message according some credibility that I defined for each face that interest message is received from it.</div><div id="yui_3_16_0_1_1448416128256_33148" dir="ltr" class="">anyhow, in this step, I just defined a random number( between zero and one)  and randomly dropped the interest message:</div><div id="yui_3_16_0_1_1448416128256_33149" dir="ltr" class="">if( random_ value > 0.6){</div><div id="yui_3_16_0_1_1448416128256_33170" dir="ltr" class=""> return;}  </div><div id="yui_3_16_0_1_1448416128256_33185" dir="ltr" class="">I would like to say according to this site ( <a id="yui_3_16_0_1_1448416128256_33247" href="http://ndnsim.net/1.0/doxygen/ndn-forwarding-strategy_8cc_source.html#l00493" class="">http://ndnsim.net/1.0/doxygen/ndn-forwarding-strategy_8cc_source.html#l00493</a> )</div><div id="yui_3_16_0_1_1448416128256_33220" dir="ltr" class="">there is a function for dropping interest message ( <a id="yui_3_16_0_1_1448416128256_33221" href="http://ndnsim.net/1.0/doxygen/classns3_1_1ndn_1_1_forwarding_strategy.html#ac3d9f74b2d2b318cb5914c37edb13300" class=""><font id="yui_3_16_0_1_1448416128256_33222" color="#0066cc" class="">m_dropInterests</font></a>)</div><div id="yui_3_16_0_1_1448416128256_33246" dir="ltr" class="">but I do not have these files (forwarding-strategy.cpp,...) in my package which I installed it according to the <a id="yui_3_16_0_1_1448416128256_33291" href="http://ndnsim.net/2.0/getting-started.html" class="">http://ndnsim.net/2.0/getting-started.html</a> </div><div id="yui_3_16_0_1_1448416128256_33301" dir="ltr" class="">how can I add these files. maybe with this command, I can delete just interest message.</div><div id="yui_3_16_0_1_1448416128256_33322" dir="ltr" class="">thanks in advance</div><div id="yui_3_16_0_1_1448416128256_33323" dir="ltr" class="">best regards</div><div id="yui_3_16_0_1_1448416128256_33325" dir="ltr" class="">Zeinab</div></div></div></div></blockquote></div><br class=""></div></div></blockquote></body></html>