[ndnSIM] Multi-hop Wireless Ad-hoc Scenario

ahmed aboud ahmedaboud at outlook.com
Fri Apr 15 12:32:42 PDT 2016


Hi all,
I am trying to develop a scenario for multi-hop wireless ad-hoc network , currently i'm working with a 3 nodes topology A-->B-->C where (A:consumer ; B: forwarder ; C: producer ) and i managed to forward interest packets to node C, by creating a custom forwarding strategy that enable forwarding through the same face. My problem is that node B receives the returned data packet and it doesn't forward it back to node A since the NFD forwarder doesn't permit forwarding data packet throw the same downstream face 
as shown on this file: https://github.com/named-data-ndnSIM/NFD/blob/bd8eea71137bc382fe1fb8225334b926a5484527/daemon/fw/forwarder.cpp#L364
and by modifying the Forwarder class to enable it to forward data packets to the same inFace only the first 2 packets were sent and received correctly as you can see on the Forwarder log, i suspect that node C doesn't have a route to the other nodes but i dont quite understand why only 2 packets were sent and received correctly.
any help will be much appreciated.
Thanks ,Ahmed.


Forwarder Log:
*****************************First Packet**************************************
1s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=257 interest=/localhost/nfd/faces/events/%FE%051s 0 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/localhost/nfd/faces/events/%FE%051s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=1 interest=/localhost/nfd/faces/events/%FE%051.1s 0 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/localhost/nfd/faces/events satisfied3s 0 ndn.ConsumerPush:SendInterestx(): [DEBUG] Sending Interest packet for /test/data/83?ndn.type=F&ndn.InterestLifetime=3000&ndn.Nonce=28143997563s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test/data/833s 0 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/833.0001s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test/data/833.00014s 1 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/833.00014s 1 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/833.00024s 1 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test/data/833.00029s 2 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/833.00029s 2 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/833.00039s 2 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=258 interest=/test/data/833.00039s 2 ndn.Sink:OnInterest(): [DEBUG] Received Fetch Interest packet for /test/data/833.00039s 2 ndn.Sink:OnInterest(): [INFO ] node(2) responding with Data: /test/data/833.00039s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=258 data=/test/data/833.00039s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/833.00039s 2 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=256 data=/test/data/833.00071s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=256 data=/test/data/833.00071s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/833.00071s 1 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=256 data=/test/data/833.0011s 0 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=256 data=/test/data/833.0011s 0 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData256matching=/test/data/833.0011s 0 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=258 data=/test/data/833.0011s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=256 data=/test/data/833.0011s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/833.0011s 0 ndn.ConsumerPush:OnData(): [DEBUG] Receiving Data packet for /test/data/833.10071s 1 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/83 satisfied3.1011s 0 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/83 satisfied3.1011s 2 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/83 satisfied

*****************************Second Packet**************************************

7s 0 ndn.ConsumerPush:SendInterestx(): [DEBUG] Sending Interest packet for /test/data/86?ndn.type=F&ndn.InterestLifetime=3000&ndn.Nonce=22103336487s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test/data/867s 0 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/867.0001s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test/data/867.00014s 1 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/867.00014s 1 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/867.00024s 1 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test/data/867.00029s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/867.00029s 0 nfd.Forwarder:onInterestLoop(): [DEBUG] onInterestLoop face=256 interest=/test/data/867.00029s 2 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/867.00029s 2 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/867.00039s 2 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=258 interest=/test/data/867.00039s 2 ndn.Sink:OnInterest(): [DEBUG] Received Fetch Interest packet for /test/data/867.00039s 2 ndn.Sink:OnInterest(): [INFO ] node(2) responding with Data: /test/data/867.00039s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=258 data=/test/data/867.00039s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/867.00039s 2 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=256 data=/test/data/867.00071s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=256 data=/test/data/867.00071s 1 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/867.00071s 1 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=256 data=/test/data/867.00106s 0 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=256 data=/test/data/867.00106s 0 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/867.00106s 0 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=258 data=/test/data/867.00106s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=256 data=/test/data/867.00106s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/867.00106s 0 ndn.ConsumerPush:OnData(): [DEBUG] Receiving Data packet for /test/data/867.10071s 1 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/86 satisfied7.10106s 0 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/86 satisfied7.10106s 2 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/86 satisfied

*****************************Third Packet**************************************
11s 0 ndn.ConsumerPush:SendInterestx(): [DEBUG] Sending Interest packet for /test/data/77?ndn.type=F&ndn.InterestLifetime=3000&ndn.Nonce=299933639811s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=258 interest=/test/data/7711s 0 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/7711.0001s 0 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test/data/7711.0001s 1 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/7711.0001s 1 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/7711.0002s 1 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=256 interest=/test/data/7711.0003s 0 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/7711.0003s 0 nfd.Forwarder:onInterestLoop(): [DEBUG] onInterestLoop face=256 interest=/test/data/7711.0003s 2 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=256 interest=/test/data/7711.0003s 2 nfd.Forwarder:onContentStoreMiss(): [DEBUG] onContentStoreMiss interest=/test/data/7711.0004s 2 nfd.Forwarder:onOutgoingInterest(): [DEBUG] onOutgoingInterest face=258 interest=/test/data/7711.0004s 2 ndn.Sink:OnInterest(): [DEBUG] Received Fetch Interest packet for /test/data/7711.0004s 2 ndn.Sink:OnInterest(): [INFO ] node(2) responding with Data: /test/data/7711.0004s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData face=258 data=/test/data/7711.0004s 2 nfd.Forwarder:onIncomingData(): [DEBUG] onIncomingData matching=/test/data/7711.0004s 2 nfd.Forwarder:onOutgoingData(): [DEBUG] onOutgoingData face=256 data=/test/data/7711.1004s 2 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/77 satisfied14s 0 nfd.Forwarder:onInterestUnsatisfied(): [DEBUG] onInterestUnsatisfied interest=/test/data/7714s 0 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/77 unsatisfied14.0001s 1 nfd.Forwarder:onInterestUnsatisfied(): [DEBUG] onInterestUnsatisfied interest=/test/data/7714.0001s 1 nfd.Forwarder:onInterestFinalize(): [DEBUG] onInterestFinalize interest=/test/data/77 unsatisfied

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160415/afb36c3b/attachment.html>


More information about the ndnSIM mailing list