<div><br><div class="gmail_quote"><div>On Thu, Aug 3, 2017 at 00:40 Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Hi Oleg</div><div dir="auto"><br></div><div dir="auto">FibHelper::AddRoute in ndnSIM 2.3 only recognizes PointToPointNetDevice, and does not support UAN. <a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/ndnSIM-2.3/helper/ndn-fib-helper.cpp#L137" target="_blank">https://github.com/named-data-ndnSIM/ndnSIM/blob/ndnSIM-2.3/helper/ndn-fib-helper.cpp#L137</a></div><div dir="auto">You may manipulate the FIB directly. Look at FibHelper code to get an idea about how to do that.</div><div dir="auto"><br></div><div dir="auto">I guess the reason FibHelper::AddRoute(node, prefix, nexthopNode, metric) being limited to PointToPointNetDevice is that, ndnSIM is incapable of unicasting over a broadcast or ad hoc wireless face. It would be semantically incorrect if this FibHelper::AddRoute overload causes a node to broadcast Interests onto a channel where nexthopNode and potentislly other nodes are present.</div><div dir="auto">However, it would be nice for this overload to install a route to the broadcast face if the underlying channel only contains {node, nexthopNode}, which exactly fulfills your use case. I suggest reporting an issue with Tracker=Feature on ndnSIM Redmine site.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div><div><br><div class="gmail_quote"><div>On Wed, Aug 2, 2017 at 22:49 Oleg Surnin <<a href="mailto:o.surnin@innopolis.ru" target="_blank">o.surnin@innopolis.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have the same problem as a Narges. The first part of the code looks<br>
very similar. But I'm using the ndnSIM 2.3. In my case the packets<br>
didn't transfered between nodes.<br>
<br>
The code is here: <a href="https://pastebin.com/iVNz5cnX" rel="noreferrer" target="_blank">https://pastebin.com/iVNz5cnX</a><br>
<br>
I'm tried to setup FIB manually by<br>
<br>
ndn::FibHelper::AddRoute(nc.Get(1), "/prefix", nc.Get(0), 1);<br>
<br>
but have an error:  "Cannot add route: Node# 1 and Node# 0 are not<br>
connected"<br>
<br>
<br>
</blockquote></div></div></blockquote></div></div>