[ndnSIM] [EXT] Issue with writing custom nametree

Junxiao Shi shijunxiao at email.arizona.edu
Thu Oct 8 03:29:14 PDT 2020


Hi Swetha

You missed step 6 or step 7.

Yours, Junxiao


On Thu, Oct 8, 2020, 05:05 Swetha B <swetab26 at gmail.com> wrote:

> *External Email*
> Hi junxiao Shi,
> I have problem with cloning NFD repository.
> I followed your previous email
>
> Dear folks
>
> I got question on how to clone the NFD repository for development purpose.
> Here's the updated procedure: (Thanks Teng Liang for reporting a problem in
> the procedure sent on Mar 28)
>
>    1. in a web browser, navigate to http://gerrit.named-data.net
>    2. click "Sign In" link on top-right corner, click "Google OAuth2"
>    3. authenticate with your Google Account, and then you will be
>    redirected back to Gerrit system
>    4. click your name on top-right corner, and click "Settings" in the
>    pop-up box
>    5. look for a "Username" textbox; if there's no such textbox, but a
>    username is displayed, goto step 7
>    6. in the "Username" textbox, type a username (syntax: a letter,
>    followed by letters or numbers), and click "Select" button, confirm
>    7. click "SSH Public Keys" menu item on left navigation bar
>    8. look for multi-line textbox below "Add SSH Public Key"; if there's no
>    such textbox, but a table is displayed, goto step 10
>    9. paste your SSH public key, and click "Add" button
>    10. click "Projects - List" menu item on top navigation bar
>    11. type "NFD" in "Filter" textbox
>    12. click "NFD" table row
>    13. under "Project NFD" title, click "clone with commit-msg hook" and
>    "SSH" buttons
>    14. find the textbox below "clone with commit-msg hook" (it should start
>    with "git clone ssh:/")
>    15. the contents in this textbox is the complete command line needed to
>    clone the NFD repository
>
>
> But i didnt find "clone with commit-msg hook" and "SSH" buttons. In place
> of that i found git clone "https://gerrit.named-data.net/NFD"..
> Can u guide me how to proceed further.
>
> Regards
> Swetha
>
> On Wed, Oct 7, 2020 at 4:41 PM Swetha B <swetab26 at gmail.com> wrote:
>
>> 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/20201008/a040cd0e/attachment-0001.html>


More information about the ndnSIM mailing list