[ndnSIM] [EXT] Issue with writing custom nametree

Swetha B swetab26 at gmail.com
Wed Oct 7 04:11:45 PDT 2020


Thanks a lot for your valuable inputs.
Swetha B

On Mon, Oct 5, 2020 at 9:42 AM Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Swetha
>
> This means your changes are breaking the NameTree API needed by FIB.
>
> 1. Separately clone the NFD repository.
> 2. Checkout the NFD version used in your version of ndnSIM.
> 3. Apply your modifications there.
> 4. Ensure all unit tests are passing. If not, find out what's wrong in
> your changes.
> 5. Now reapply the changes to ndnSIM, and the FIB will likely work.
>
> Yours, Junxiao
>
> On Mon, Oct 5, 2020 at 00:01 Swetha B via ndnSIM <ndnsim at lists.cs.ucla.edu>
> wrote:
>
>> *External Email*
>> Hi all,
>> I am implementing NDN tables indexing using closed hashing with linear
>> probing in ndnSIM2.7.
>> To achieve that I modified name-tree-hashtable.cpp and
>> name-tree-iterator.cpp.
>> After modifications i am able to successfully run producer consumer
>> applications.
>> In my custom scenario i am accessing FIB table of a node to insert a
>> prefix and later execute consumer producer applications using that prefix.
>>
>> auto& fib1 =
>> node1->GetObject<ndn::L3Protocol>()->getForwarder()->getFib();
>>   auto e = fib1.insert(prefix).first;
>>   ndn::FibHelper::AddRoute(node1,prefix,node4,1);
>>
>> When i execute this scenario i see that visualizer is'nt working and also
>> the regular setup FIB tables on nodes is'nt taking place. I have shared a
>> snapshot of execution.
>>
>> swetha at swetha-Ubuntu:~/Desktop/ndnSIM/ndnSIM-sample-topologies$
>> NS_LOG="ndn-cxx.nfd.NameTreeHashtable:ndn.FibHelper:ndn.L3Protocol" ./waf
>> --run=ndn-simple --vis
>> Waf: Entering directory
>> `/home/swetha/Desktop/ndnSIM/ndnSIM-sample-topologies/build'
>> [23/34] cxx: scenarios/ndn-simple.cc -> build/scenarios/ndn-simple.cc.12.o
>> [34/34] cxxprogram: build/scenarios/ndn-simple.cc.12.o -> build/ndn-simple
>> Waf: Leaving directory
>> `/home/swetha/Desktop/ndnSIM/ndnSIM-sample-topologies/build'
>> 'build' finished successfully (6.937s)
>> +0.000000000s 0 ndn.L3Protocol:L3Protocol(0x555bd319c4e0)
>> +0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:computeThresholds():
>> [LOGIC] thresholds expand=512 shrink=102
>> +0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC]
>> insert / hash=0 bucket=0
>> +0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC]
>> insert /ndn hash=6181921638449679482 bucket=122
>> +0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC]
>> insert /ndn/multicast hash=18240561258910134669 bucket=397
>> +0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC]
>> insert /localhost hash=10937169108514740553 bucket=329
>> +0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC]
>> insert /localhost/nfd hash=3626199823732152002 bucket=706
>>
>> swetha at swetha-Ubuntu:~/Desktop/ndnSIM/ndnSIM-sample-topologies$
>>
>>
>>
>>   I m grateful for any thoughts and advice regarding where i am going
>> wrong in this.
>> Thanks.
>>
>> Swetha B.
>> Research Scholar
>> RNSIT
>> Bengaluru
>> India
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201007/d4dc728b/attachment.html>


More information about the ndnSIM mailing list