<p dir="ltr">Sorry, but I was curious about one related issue. There have been questions on the mailing list about updating the FIB at runtime. What data structure have you used to implement the FIBs? Is it static or dynamic - as a Vector or Hash in Java - which resizes upon filling up.</p>

<p dir="ltr">Best regards, <br>
Wali.</p>
<div class="gmail_quote">On Apr 10, 2014 4:01 PM, "Wali" <<a href="mailto:ahmed.waliullah.kazi@gmail.com">ahmed.waliullah.kazi@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">Thank you for the prompt reply. This clarifies the matter.</p>
<p dir="ltr">Best regards, <br>
Wali.</p>
<div class="gmail_quote">On Apr 10, 2014 3:09 PM, "Alex Afanasyev" <<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Hi Wali,<div><br></div><div>Sorry for the confusion.  What I meant that usually FIB size is not an issue in the simulation scenario, since it is not an element that gets updated all the time.  But, it doesn't mean you need to do any special allocations.</div>

<div><br></div><div>In ndnSIM, FIB uses the same underlying data structure as CS and PIT, so you can use similar method to implement limits, but with the small caveat.  If you open model/fib/ndn-fib-impl.h, you will see that I have hard-coded data structure policy to ndnSIM::counting_policy_traits, which does not enforce any limits.  What you can do, you can change this to an appropriate FIB management policy (e.g., you have to figure out what to do when the limit is reached).</div>

<div><br></div><div>To set limits, you will need to implement equivalent of SetMaxSize/GetMaxSize calls in CS implementation (you can can almost directly copy lines 263-275 of model/cs/content-store-impl.h (just remove irrelevant template parts).</div>

<div><br></div><div>---</div><div>Alex </div><div><br></div><div><div><div>On Apr 10, 2014, at 8:12 AM, Wali <<a href="mailto:ahmed.waliullah.kazi@gmail.com" target="_blank">ahmed.waliullah.kazi@gmail.com</a>> wrote:</div>

<br><blockquote type="cite"><div>Hello Alex,</div><div><br></div>We are trying to get a handle on how to control the size of FIBs (finite and infinite sized FIBs). I found a somewhat relevant reply on the mailing list, but could not understand what do you mean when you are referring that FIBs are not dynamically updated and ones simulation is responsible in defining appropriate number of FIB entries. Does it mean that we have to somehow initialize and explicitly allocate space at compile time? What is the default size of FIBs, if we do not allocate explicit space for the,? <div>


<br></div><div>I have attached the excerpt from your reply in an earlier message:<div><br></div><div>*********************</div><div><pre><font face="Helvetica Neue, Helvetica, Arial, sans-serif" size="3"><span style="white-space:normal;background-color:rgba(255,255,255,0)">On Mar 14, 2013, at 5:12 AM, Hovaidi Ardestani Mohammad <<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">mohammad.hovaidi.ardestani at aalto.fi</a>> wrote:

><i> Hi everybody!
</i>><i> 1.       I am going to formulate size of buffer memory for ndnSim routers. In topology we set them based on packets (I think size of every packet should be 1024). I am wondering if CS, FIB and PIT are included in this space or not. </i></span></font></pre>


<pre><span style="background-color:rgba(255,255,255,0);white-space:normal;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:inherit">Your reply: I'm not entirely sure what your question asks. You can set individual limits on CS and PIT sizes (in number of content objects).  FIB is not updated dynamically, so your simulation is responsible in defining appropriate number of FIB entries.  What do you mean "in topology we set..."? Are you referring to transmission queue sizes?  If yes, this is totally independent of NDN or ndnSIM.</span></pre>


<pre><div><font face="Helvetica Neue, Helvetica, Arial, sans-serif" size="3"><span style="white-space:normal;background-color:rgba(255,255,255,0)">*********************</span></font></div><div></div></pre><div>Thank you very much.<br>


<div><br></div><div>Best regards,</div><div>Wali.<div><br></div></div></div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>

</blockquote></div><br></div></div></blockquote></div>
</blockquote></div>