[ndnSIM] Best Route acting weird

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Sat Feb 18 10:26:34 PST 2017


​Hi there,

I was trying to show the impact forwarding plane and forwarding strategy in
failure detection with a simple scenario in ndnSIM:

  ndn::FibHelper::AddRoute(nodes.Get(0),ndn::Name("/prefix"),
> nodes.Get(2),1);
>   ndn::FibHelper::AddRoute(nodes.Get(1),ndn::Name("/prefix"),
> nodes.Get(2),20);
>   ndn::FibHelper::AddRoute(nodes.Get(0),ndn::Name("/prefix"),
> nodes.Get(1),20);
>
>   ndn::StrategyChoiceHelper::Install(nodes.Get(0), ndn::Name("/prefix"),
> "/localhost/nfd/strategy/best-route");
>
>   // Consumer
>   ndn::AppHelper consumerHelper("ns3::ndn::ConsumerCbr");
>   consumerHelper.SetPrefix("/prefix");
>   consumerHelper.SetAttribute("Frequency", StringValue("1"));
>   consumerHelper.Install(nodes.Get(0));
>
>   // Producer
>   ndn::AppHelper producerHelper("ns3::ndn::Producer");
>   producerHelper.SetPrefix("/prefix");
>   producerHelper.SetAttribute("PayloadSize", StringValue("1024"));
>   producerHelper.Install(nodes.Get(2));
>
>   Simulator::Schedule(Seconds(3.0), ndn::LinkControlHelper::FailLink,
> nodes.Get(0), nodes.Get(2));
>   Simulator::Schedule(Seconds(15.0), ndn::LinkControlHelper::UpLink,
> nodes.Get(0), nodes.Get(2));
>

It works fine at first and detects the failure so tries with the other face
from 4s to 8s. But After 9s, Consumer tries sending interest while nfd does
not send it:

9s 0 ndn.Consumer:SendPacket()
> 9s 0 ndn.Consumer:SendPacket(): [INFO ] > Interest for 6
> 9s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 6 with
> +9000000000.0ns. already 0 items
> 10s 0 ndn.Consumer:SendPacket()
> 10s 0 ndn.Consumer:SendPacket(): [INFO ] > Interest for 7
> 10s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 7 with
> +10000000000.0ns. already 1 items
> 10.6s -1 ndn.Consumer:OnTimeout(6)
> 11s 0 ndn.Consumer:SendPacket()
> 11s 0 ndn.Consumer:SendPacket(): [INFO ] > Interest for 6
> 11s 0 ndn.Consumer:WillSendOutInterest(): [DEBUG] Trying to add 6 with
> +11000000000.0ns. already 1 items
>

 As soon as UpLink event, consumer tries with the first face and retrieves
data. Why is that? Is it a kind of bug in nfd?

Thanks,
Sabet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170218/a79c680d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: link-failure.png
Type: image/png
Size: 21805 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170218/a79c680d/attachment-0001.png>


More information about the ndnSIM mailing list