<div dir="ltr">Thanks for your explanation. I was  a bit curious to know that the variable m_outstanding which keeps track of the no. of pending interest on the face, is it similar to the congestion window of a receiver in TCP.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 28, 2016 at 6:20 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>For Limits to be activated, you needs to use to forwarding strategy that uses them, e.g., ndn::fw::BestRoute::PerOutFaceLimits.</div><div><br></div><div>And just in case.  Limits class doesn't use anything from the transmission queues.  It needs to be manually configured with the parameters that make sense for the simulation scenario.</div><div><br></div><div>---</div><div>Alex</div><div><div class="h5"><br><div><blockquote type="cite"><div>On Feb 27, 2016, at 1:02 AM, Ayush Agarwal <<a href="mailto:ayush0071@gmail.com" target="_blank">ayush0071@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>Hi Alex,<br></div>I am trying to change the interest limit/interest sending rate on a face. For this I am calling the functions inside the Limits class associated to a particular face. But I am unable to find any change in my simulation results. Can you guide me where I am going wrong.<br><br><b>Thanks & Regards,</b><br><b style="font-size:12.8px">Ayush Agarwal<br></b><div style="font-size:12.8px"><b>Reseach Scholar, Computer Science<br></b></div><b style="font-size:12.8px">National Institute of Technology, Karnataka<br>Surathkal, India</b><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 4:16 PM, Ayush Agarwal <span dir="ltr"><<a href="mailto:ayush0071@gmail.com" target="_blank">ayush0071@gmail.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><div><div><div>Hi,<br></div>Thanks for your reply. Yes, I have solved the compilation errors. It was due to the NULL pointer that was not handled properly.<br><br></div>Thanks & Regards,<br></div>Ayush<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 2:26 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span><br>
> On Feb 18, 2016, at 8:42 AM, Ayush Agarwal <<a href="mailto:ayush0071@gmail.com" target="_blank">ayush0071@gmail.com</a>> wrote:<br>
><br>
> Hello everyone,<br>
><br>
> I am using the following code to get hold of the queue object inside the forwarding strategy, OnData(....) function.<br>
><br>
> Ptr<NetDeviceFace> netDeviceFace = DynamicCast<NetDeviceFace> (inFace);<br>
> if (netDeviceFace == NULL) {  }<br>
> Ptr<NetDevice> nd = netDeviceFace->GetNetDevice ();<br>
> if (nd == NULL) {  }<br>
> PointerValue txQueueAttribute;<br>
> nd->GetAttribute ("TxQueue", txQueueAttribute);<br>
> Ptr<ns3::Queue> txQueue = txQueueAttribute.Get<ns3::Queue> ();<br>
> if (txQueue == 0) {    }<br>
><br>
> But I am getting a segmentation fault SIGSEV error while fetching the NetDevice object and the following errors for accessing queue.<br>
><br>
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" target="_blank">ndn-forwarding-strategy.cc</a>:238:3: error: ‘PointerValue’ was not declared in this scope<br>
>     PointerValue txQueueAttribute;<br>
>    ^<br>
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" target="_blank">ndn-forwarding-strategy.cc</a>:239:32: error: ‘txQueueAttribute’ was not declared in this scope<br>
>    nd->GetAttribute ("TxQueue", txQueueAttribute);<br>
>                                 ^<br>
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" target="_blank">ndn-forwarding-strategy.cc</a>:243:50: error: expected primary-expression before ‘>’ token<br>
>    Ptr<Queue> txQueue = txQueueAttribute.Get<Queue> ();<br>
>                                                   ^<br>
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" target="_blank">ndn-forwarding-strategy.cc</a>:243:53: error: expected primary-expression before ‘)’ token<br>
>    Ptr<Queue> txQueue = txQueueAttribute.Get<Queue> ();<br>
><br>
><br>
> Can you please point me out where I am going wrong.<br>
<br>
</span>Hi Ayush,<br>
<br>
Sorry for the delayed response.  I'm guessing that you have already solved the compilation problem?  Just in case, it is just a matter of adding proper includes (I think <ns3/pointer.h>, <ns3/queue.h>)<br>
<br>
---<br>
Alex<br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>
</div></blockquote></div><br></div></div></div></blockquote></div><br></div>