[ndnSIM] Interest is not re-broadcasted using the same wireless face in ndnSIM

Jason Christian jason.christian.92 at gmail.com
Tue Oct 3 10:06:18 PDT 2017

Hi, thank you for the reply.

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?

Another thing I have seen from my custom strategy:
I checked the method violatesScope and wouldViolateScope from
and it will return true if the face used is a local face. In the custom
strategy extending from Strategy class, the outFace from the nextHopList is
always a local face. Perhaps is this the reason why the Interest packet is
not forwarded?

inFace is the face from the argument from afterReceiveInterest method
outFace is the face from the iteration of
fib::NextHopList::const_iterator, similar
to the Broadcast strategy (I based mine on that)

Note that the outFace 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 outFace 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?

Best Regards,

On Tue, Oct 3, 2017 at 6:03 PM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi,
> 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:
> https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package
> Thanks,
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> On Oct 3, 2017, at 4:17 AM, Jason Christian <jason.christian.92 at gmail.com>
> wrote:
> Hi,
> I am currently doing a scenario using ndnSIM as the simulation tool. The
> scenario includes:
> - several nodes with mobility installed
> - Wifi with 802.11a standard, wifiChannel with
> ns3::RangePropagationLossModel and limited maxRange, and with type adhoc
> 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)
> I have already looked into https://github.com/cawka/
> ndnSIM-nom-rapid-car2car/tree/master/extensions 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.
> 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?
> - Should I create a custom face for this scenario? If so, can u point me
> on how to do it?
> Thank you,
> Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171003/fd9754e1/attachment.html>

More information about the ndnSIM mailing list