<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr">Hi Spyros :-)
</div><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr">Thank you for your response. I tried my best for better understanding of classes.</div><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr"><br></div><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr">I have two questions:</div><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr"><br></div><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr">1- If we use the below Forwarding Strategy with the Interest limit, the rate will be assigned per-interface?</div><pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; line-height: 17.6000003814697px; border-top-width: 1px; border-bottom-width: 1px; border-style: solid none; border-top-color: rgb(170, 204, 153); border-bottom-color: rgb(170, 204, 153); font-size: 15px; text-align: justify;" class="" id="yui_3_16_0_1_1417895351574_6740"><span class="" style="">ndnHelper</span><span class="" style="">.</span><span class="" style="" id="yui_3_16_0_1_1417895351574_7550">SetForwardingStrategy</span> <span class="" style="" id="yui_3_16_0_1_1417895351574_6742">(</span><span class="" style="color: rgb(64, 112, 160);" id="yui_3_16_0_1_1417895351574_6741">"ns3::ndn::fw::Flooding::PerOutFaceLimits"</span>
                                 <span class="" style="color: rgb(64, 112, 160);" id="yui_3_16_0_1_1417895351574_7113">"Limit"</span><span class="" style="">,</span> <span class="" style="color: rgb(64, 112, 160);" id="yui_3_16_0_1_1417895351574_6743">"ns3::ndn::Limits::Rate"</span><span class="" style="">);</span>
<span class="" style="">...</span>
<span class="" style="">ndnHelper</span><span class="" style="">.</span><span class="" style="" id="yui_3_16_0_1_1417895351574_7090">Install</span> <span class="" style="">(</span><span class="" style="">nodes</span><span class="" style="">);</span></pre><div id="yui_3_16_0_1_1417895351574_5644" class="" style="" dir="ltr"><br></div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr">2- In the above code, we can assign the Interest Rate Limit. I want to assign a new formula to change periodically the Interest Rate Limit. The initial idea is in: <a href="http://ndnsim.net/fw.html#strategies-with-interest-limits" id="yui_3_16_0_1_1417895351574_7089">http://ndnsim.net/fw.html#strategies-with-interest-limits</a> . Where is it possible to write a new Interest Limit? Can we define it in the main function (in *.cc) as a global variable? Could you please give me an hint?</div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr"><br></div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773"><br></div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr">I will be thankful if you or anyone can guide me in these questions.</div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr"><br></div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr"><br></div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr">Regards,</div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773" dir="ltr">Amin</div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773"><br></div><div class="" style="" id="yui_3_16_0_1_1417895351574_5773"><br class="" style="">
  <br class="" style="">
-------- Original Message --------
  <table class="" cellpadding="0" cellspacing="0" border="0" style="" id="yui_3_16_0_1_1417895351574_6138">
<tbody class="" style="" id="yui_3_16_0_1_1417895351574_6137"><tr class="" style="" id="yui_3_16_0_1_1417895351574_6164"><th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="" style="">Subject: </th><td class="" style="" id="yui_3_16_0_1_1417895351574_6163">Re: [ndnSIM] Per-interface strategies in ndnSIM</td></tr><tr class="" style="" id="yui_3_16_0_1_1417895351574_6162"><th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="" style="">Date: </th><td class="" style="" id="yui_3_16_0_1_1417895351574_6161">Sat, 15 Nov 2014 10:58:54 -0800</td></tr><tr class="" style="" id="yui_3_16_0_1_1417895351574_6136"><th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="" style="">From: </th><td class="" style="" id="yui_3_16_0_1_1417895351574_6135">Spyridon (Spyros) Mastorakis <spiros.mastorakis@gmail.com></td></tr><tr class="" style="" id="yui_3_16_0_1_1417895351574_6143"><th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="" style="">To: </th><td class="" style="" id="yui_3_16_0_1_1417895351574_6142">amin1431 <amin1431@yahoo.com></td></tr><tr class="" style="" id="yui_3_16_0_1_1417895351574_6145"><th align="RIGHT" nowrap="nowrap" valign="BASELINE" class="" style="">CC: </th><td class="" style="" id="yui_3_16_0_1_1417895351574_6144">Ndnsim <ndnsim@lists.cs.ucla.edu></td></tr></tbody>
  </table>

  <br class="" style="">
  <br class="" style="">
Hello Amin,
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6146"><br class="" style=""></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6147">I will answer your question, based on the best of my 
knowledge in ndnSIM. Alex can complement my answer if anything is 
misleading or incomplete.</div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6121"><br class="" style=""></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6122">There is a template class PerOutFaceLimits that I think 
it would be helpful. You can write a specialization of this template to 
apply it to your forwarding strategy. Moreover, each forwarding strategy
 uses a convention about green, yellow and red faces. There is a number 
of forwarding strategies implemented, but you can also create your own 
custom forwarding strategy based on the already implemented strategies. </div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6120"><br class="" style=""></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6118">Follow the first link to take a look at the 
PerOutFaceLimits template class and the second link for the forwarding 
strategies (with and without limits): <a moz-do-not-send="true" href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1fw_1_1_per_out_face_limits.html#a3ea8ba5325d54412c5894e02fb519839" class="" style="" id="yui_3_16_0_1_1417895351574_6119">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1fw_1_1_per_out_face_limits.html#a3ea8ba5325d54412c5894e02fb519839</a></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6123"><a moz-do-not-send="true" href="http://ndnsim.net/fw.html" class="" style="" id="yui_3_16_0_1_1417895351574_6148">http://ndnsim.net/fw.html</a></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6124"><br class="" style=""></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_6125">If you eventually use the limits, do not forget to 
enable them first at your simulation scenario (there are some examples 
at the second aforementioned link).</div>
  <div class="" style=""><br class="" style=""></div>
  <div class="" style="">Let me know if you need anything else.</div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_5777">Kind regards,</div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_5778">Spyros Mastorakis</div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_5779"><br class="" style=""></div>
  <div class="" style="" id="yui_3_16_0_1_1417895351574_5772"><div class="" style="" id="yui_3_16_0_1_1417895351574_5771"><blockquote type="cite" class="" style="" id="yui_3_16_0_1_1417895351574_5770"><div class="" style="" id="yui_3_16_0_1_1417895351574_5769">On Nov 14, 2014, at 11:54 AM, amin1431 <<a moz-do-not-send="true" href="mailto:amin1431@yahoo.com" class="" style="" id="yui_3_16_0_1_1417895351574_6084">amin1431@yahoo.com</a>> wrote:</div><br class="" style=""><div class="" style="" id="yui_3_16_0_1_1417895351574_5776"><div class="" style="" id="yui_3_16_0_1_1417895351574_5775"><div class="" style="" id="yui_3_16_0_1_1417895351574_5774"><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span class="" style="">Hi Alex,</span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span class="" style=""><br class="" style=""></span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span id="yui_3_16_0_1_1415994592014_4816" class="" style="">Could you please tell me in which section of the ndnSIM classes/functions we can do some strategy per-interface?</span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span id="yui_3_16_0_1_1415994592014_4820" class="" style="">Is
 there any assigned class for that? for instance, change the rate of 
InInterest or add a value into data packet per interface not for all 
incoming data packets.</span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span class="" style=""><br class="" style=""></span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span class="" style=""><br class="" style=""></span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span id="yui_3_16_0_1_1415994592014_4838" class="" style="">Thanks a lot for your all support.</span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><span class="" style=""><br class="" style=""></span></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style="">/Amin<br class="" style=""></div><div id="yui_3_16_0_1_1415994592014_4801" dir="ltr" class="" style=""><br class="" style=""></div></div></div>_______________________________________________<br class="" style="">ndnSIM mailing list<br class="" style=""><a moz-do-not-send="true" href="mailto:ndnSIM@lists.cs.ucla.edu" class="" style="" id="yui_3_16_0_1_1417895351574_5780">ndnSIM@lists.cs.ucla.edu</a><br class="" style="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class="" style=""></div></blockquote></div><br class="" style=""></div>

  </div><div><br class="" style=""></div></div></body></html>