<div dir="ltr">Hi,<div><br></div><div>thank you for the reply. I thought that the interest packet can only be forwarded on non-local face, since the consumer itself has a non-local face and the rest of the nodes (Producers) only have local face.</div><div><br></div><div>I have tried another alternatives, which is to change the propagation model of the channel to ThreeLogDistance with Nakagami (earlier before, I used RangePropagationLossModel) and the nodes actually forward the Interest packet to the neighboring nodes. Is it probably the problem with the RangeModel?. I have also calculated the node's position to each other and make sure there will always be nodes within range of a node, so the RangePropagationLossModel should also work</div><div><br></div><div>Another thing. Since I have a custom strategy (this custom strategy also takes into acct node's position, much like geocasting) and a custom app, where should I put the Interest forwarding code? Should I:</div><div>- Forward them using Strategy::sendInterest?</div><div>- or just copy the Interest on the custom app and send it?</div><div><br></div><div>Sorry for the seemingly silly questions</div><div><br></div><div>Best Regards,</div><div>Jason</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 4, 2017 at 6:54 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@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">Hi,<div><br></div><div>if you think that the provided face abstraction is not sufficient for your simulations, then feel free to add a custom NetDevice Face implementation and use that for your simulations.</div><div><br></div><div>I do not fully understand your previous email and the problem here. Some comments off the top of my head though:</div><div><br></div><div>1) a process (i.e., an application running on a host) should communicate with a local face with the local forwarder. The difference between a local and a non-local face has to do only with whether Interests with the /localhost and /localhop prefix can be forwarded through them.</div><div>2) Interests with any other prefix can be forwarded through local and non-local faces.</div><div><br></div><div>Please take a look at the NFD developer’s guide for all those definitions:</div><div><br></div><div><a href="https://named-data.net/wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.pdf" target="_blank">https://named-data.net/wp-<wbr>content/uploads/2016/10/ndn-<wbr>0021-7-nfd-developer-guide.pdf</a></div><div><br></div><div>Thanks,</div><div><span class=""><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div></span><div><div class="h5"><div><blockquote type="cite"><div>On Oct 3, 2017, at 10:06 AM, Jason Christian <<a href="mailto:jason.christian.92@gmail.com" target="_blank">jason.christian.92@gmail.com</a>> wrote:</div><br class="m_1892786040601890292Apple-interchange-newline"><div><div dir="ltr">Hi, thank you for the reply.<div><br></div><div>I have traced back from the Strategy::sendInterest() to the generic-link-service implementation and compare it between the mobile package's implementation and the one from my machine and I cannot find any differences. Can you also point out which particular commits I should pay attention to?</div><div><br></div><div>Another thing I have seen from my custom strategy:</div><div>I checked the method <font face="monospace, monospace">violatesScope and wouldViolateScope</font><font face="arial, helvetica, sans-serif"> from <a href="https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/5714833ccce551cf4cd128967a21283bc3ed4319/NFD/daemon/fw/algorithm.cpp#L59" target="_blank">https:/<wbr>/github.com/4th-ndn-hackathon/<wbr>ndnSIM-Mobile-Simulation-<wbr>Package/blob/<wbr>5714833ccce551cf4cd128967a2128<wbr>3bc3ed4319/NFD/daemon/fw/<wbr>algorithm.cpp#L59</a>, and it will return true if the face used is a local face. In the custom strategy extending from </font><font face="monospace, monospace">Strategy</font><font face="arial, helvetica, sans-serif"> class, the </font><font face="monospace, monospace">outFace </font><font face="arial, helvetica, sans-serif">from the </font><font face="monospace, monospace">nextHopList </font><font face="arial, helvetica, sans-serif">is always a local face. Perhaps is this the reason why the Interest packet is not forwarded?</font><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="monospace, monospace">inFace </font><font face="arial, helvetica, sans-serif">is the face from the argument from </font><font face="monospace, monospace">afterReceiveInterest </font><font face="arial, helvetica, sans-serif">method</font></div><div><font face="monospace, monospace">outFace </font><font face="arial, helvetica, sans-serif">is the face from the iteration of </font><font face="monospace, monospace">fib::NextHopList::const_<wbr>iterator, </font><font face="arial, helvetica, sans-serif">similar to the Broadcast strategy (I based mine on that)</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Note that the </font><font face="monospace, monospace">outFace </font><font face="arial, helvetica, sans-serif">on the consumer (a.k.a the first node) has non-local face, and thus is able to forward Interest packets to nodes within range. The </font><font face="monospace, monospace">outFace </font><font face="arial, helvetica, sans-serif">from the Producers (a.k.a 2nd - last nodes) always have local face (from the debug msg). If so, how can I obtain the non-local face of producer nodes?</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Best Regards,</font></div><div><font face="arial, helvetica, sans-serif">Jason</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 3, 2017 at 6:03 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@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">Hi,<div><br></div><div>we have done something similar for a mobile simulation package for ndnSIM (it was an NDN hackathon project). We have addressed those issues there, so please take a look at the commits:</div><div><br></div><div><a href="https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package" target="_blank">https://github.com/4th-ndn-hac<wbr>kathon/ndnSIM-Mobile-Simulatio<wbr>n-Package</a></div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~m<wbr>astorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div></div></div>
</div><div><div class="m_1892786040601890292h5">
<br><div><blockquote type="cite"><div>On Oct 3, 2017, at 4:17 AM, Jason Christian <<a href="mailto:jason.christian.92@gmail.com" target="_blank">jason.christian.92@gmail.com</a>> wrote:</div><br class="m_1892786040601890292m_-1446284231661727746Apple-interchange-newline"><div><div dir="ltr">Hi,<div><br></div><div>I am currently doing a scenario using ndnSIM as the simulation tool. The scenario includes:</div><div>- several nodes with mobility installed</div><div>- Wifi with 802.11a standard, wifiChannel with ns3::RangePropagationLossModel and limited maxRange, and with type adhoc</div><div><br></div><div>Basically, the consumer nodes will send the Interest through the wireless face to nodes within the MaxRange. This works perfectly on first transmission, but the Interest is not forwarded to other nodes which is in range with the receiving nodes (In other words, it is not forwarded, there is only 1 hop)</div><div><br></div><div>I have already looked into <a href="https://github.com/cawka/ndnSIM-nom-rapid-car2car/tree/master/extensions" target="_blank">https://github.com/cawka/<wbr>ndnSIM-nom-rapid-car2car/tree/<wbr>master/extensions</a> and the implementation is similar to mine. The problem is, it is using ndnSIM 1.0 and the custom strategy methods have been changed on ndnSIM 2.0+, which I am using right now. I've also read somewhere that nodes do not actually re-broadcast Interest and Data packets on the same face it received the packet from.</div><div><br></div><div>I am new to ndnSIM (Have just spent around 3 days working around custom scenario), so can you please guide on possible solutions of this problem?</div><div>- Should I create a custom face for this scenario? If so, can u point me on how to do it?</div><div><br></div><div>Thank you,</div><div>Jason</div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>