<div dir="ltr">Hi All,<div><br></div><div>Thanks for your information! That really helps!</div><div><br></div><div>Sincerely,</div><div>Shuai</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 7, 2020 at 8:33 PM <<a href="mailto:ndnsim-request@lists.cs.ucla.edu">ndnsim-request@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send ndnSIM mailing list submissions to<br>
        <a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:ndnsim-request@lists.cs.ucla.edu" target="_blank">ndnsim-request@lists.cs.ucla.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ndnsim-owner@lists.cs.ucla.edu" target="_blank">ndnsim-owner@lists.cs.ucla.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ndnSIM digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Related configuration about producer in ndnSIM (Shuai Dong)<br>
   2. Re: Multiple prefixes in one ndnSIM scenario, printing PIT<br>
      and FIB (Hussein AlOmaisi)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 7 Dec 2020 16:46:45 -0600<br>
From: Shuai Dong <<a href="mailto:sdong7@crimson.ua.edu" target="_blank">sdong7@crimson.ua.edu</a>><br>
To: <a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a><br>
Subject: [ndnSIM] Related configuration about producer in ndnSIM<br>
Message-ID:<br>
        <<a href="mailto:CAENDnDCJCokKc5zzs2Db7GTiWHPjnLxtJnUX-rBZbMKjW8WK2Q@mail.gmail.com" target="_blank">CAENDnDCJCokKc5zzs2Db7GTiWHPjnLxtJnUX-rBZbMKjW8WK2Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi All,<br>
<br>
In a wireless environment, will the producer rebroadcast the interest if<br>
this producer does not have the corresponding data? If so, is there any way<br>
to prevent the producer from rebroadcasting?<br>
<br>
Thanks!<br>
Shuai<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201207/ce6d95f5/attachment-0001.html" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201207/ce6d95f5/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 8 Dec 2020 02:31:18 +0000 (UTC)<br>
From: Hussein AlOmaisi <<a href="mailto:alomaisi2004@yahoo.com" target="_blank">alomaisi2004@yahoo.com</a>><br>
To: "<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>" <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>><br>
Subject: Re: [ndnSIM] Multiple prefixes in one ndnSIM scenario,<br>
        printing PIT and FIB<br>
Message-ID: <<a href="mailto:1891307540.3470944.1607394678219@mail.yahoo.com" target="_blank">1891307540.3470944.1607394678219@mail.yahoo.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Shuai,<br>
Regarding your questions, I would like to answere based on my little experice wiht ndnSIM<br>
Question (1), you need to make sure that consumer, producer and forwarding strategy are using same namespace (prefix) otherwise you will get such output "NACK message with reason No Route". Producer and forwarding strategy work for only the prefix they support (by default). You can have multiple consumers, producers and forwarding strategies in one scenario, please see the example in the following link. <br>
<br>
<a href="https://github.com/named-data/IPoC/blob/master/ndnSIM/examples/ndn-different-strategy-per-prefix.cpp" rel="noreferrer" target="_blank">https://github.com/named-data/IPoC/blob/master/ndnSIM/examples/ndn-different-strategy-per-prefix.cpp</a><br>
<br>
I will assume that you are working in a wireless scenario. Regarding creating an entry in FIB for the new used prefix, I think you do not need to do it (did you do it for "prefix0"? I don't think so.)?. NDN-Stack-helper (ndn::StackHelper) will create a default route in FIB the represent the last resort route for forwarding Interest packet if no matching with other routes in FIB. This default? route is "/" via a face that is linked with the NetDevice. Make sure that face is in AD-HOC mode.<br>
<br>
Question (2), printing PIT and? FIB tables. please see the below code. It is a simple code that can help in how the process of printing PIT and FIB is done. you can modified to meet your scenario aims. Also, I highly recommend you to go through "NFD Developer?s Guide" for understanding the structures and semantics of PIT and FIB tables.<br>
<br>
void printPitFib(NodeContainer &nodes){ //numNode variable is the number of nodesstd::cout << endl << "---- PIT ----"<< endl;<br>
 for (uint32_t i = 0; i < numNodes; i++) { std::cout << endl << "node(" << i << "):" << endl; auto node =  nodes.Get(i); auto& nodePit = node->GetObject<ndn::L3Protocol>()->getForwarder()->getPit(); nfd::Pit::const_iterator iter; for (iter = nodePit.begin(); iter != nodePit.end(); iter++) { cout << iter->getName() << endl << " Period : " << iter->dataFreshnessPeriod << endl; } }<br>
 std::cout << endl << "---- FIB ----"<< endl;<br>
 for (uint32_t i = 0; i < numNodes; i++) { std::cout << endl << "node(" << i << "):" << endl; auto node =  nodes.Get(i); auto& nodePit = node->GetObject<ndn::L3Protocol>()->getForwarder()->getFib(); nfd::Fib::const_iterator iter; for (iter = nodePit.begin(); iter != nodePit.end(); iter++) { { cout << iter->getPrefix(); if(iter->hasNextHops()) { auto& nextHops= iter->getNextHops(); nfd::fib::NextHopList::const_iterator ii;  for(ii = nextHops.begin(); ii != nextHops.end(); ii++) cout << " : " << (unsigned) ii->getFace().getId() << endl; } } } }<br>
<br>
}<br>
<br>
I hope it helps.<br>
<br>
 Best regards,Hussein <br>
<br>
    On Tuesday, December 8, 2020, 4:00:06 AM GMT+8, <a href="mailto:ndnsim-request@lists.cs.ucla.edu" target="_blank">ndnsim-request@lists.cs.ucla.edu</a> <<a href="mailto:ndnsim-request@lists.cs.ucla.edu" target="_blank">ndnsim-request@lists.cs.ucla.edu</a>> wrote:  <br>
<br>
 Send ndnSIM mailing list submissions to<br>
??? <a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
??? <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
or, via email, send a message with subject or body 'help' to<br>
??? <a href="mailto:ndnsim-request@lists.cs.ucla.edu" target="_blank">ndnsim-request@lists.cs.ucla.edu</a><br>
<br>
You can reach the person managing the list at<br>
??? <a href="mailto:ndnsim-owner@lists.cs.ucla.edu" target="_blank">ndnsim-owner@lists.cs.ucla.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ndnSIM digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
? 1. Re: ndnSIM Digest, Vol 97, Issue 3 (Shuai Dong)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 7 Dec 2020 11:34:21 -0600<br>
From: Shuai Dong <<a href="mailto:sdong7@crimson.ua.edu" target="_blank">sdong7@crimson.ua.edu</a>><br>
To: <a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a><br>
Subject: Re: [ndnSIM] ndnSIM Digest, Vol 97, Issue 3<br>
Message-ID:<br>
??? <CAENDnDB1WhW=<a href="mailto:ENQqpXLm2qjWQPgavj%2BZObMZdCXEq3cwnt%2BRnw@mail.gmail.com" target="_blank">ENQqpXLm2qjWQPgavj+ZObMZdCXEq3cwnt+Rnw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi DJAMA,<br>
<br>
Thanks for your information!<br>
In this scenario, when the consumer sends interest with "prefix0", it works<br>
very well and the consumer can receive the data packet.<br>
However, if the consumer sends interest with "prefix1", the log shows that:<br>
"[INFO ] NACK received for: >>>> /prefix1/%FE%01, reason: NoRoute"<br>
"[INFO ] NACK received for: >>>> /prefix1/%FE%02, reason: NoRoute"<br>
"[INFO ] NACK received for: >>>> /prefix1/%FE%03, reason: NoRoute"<br>
"[INFO ] NACK received for: >>>> /prefix1/%FE%04, reason: NoRoute"<br>
"[INFO ] NACK received for: >>>> /prefix1/%FE%05, reason: NoRoute"<br>
........<br>
<br>
There are two questions that I cannot understand very well:<br>
1. By default (in wireless environment), ndn can only handle? one namespace<br>
on one node?? If I want to install a different namespace on the other node,<br>
e.g., "prefix1" on producer2. I need to create a FIB entry for "prefix1" by<br>
myself?<br>
<br>
2. How to print the FIB and PTI table for each node?<br>
<br>
<br>
Thank you very much!<br>
Sincerely<br>
Shuai<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201207/5cffe17c/attachment-0001.html" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201207/5cffe17c/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ndnSIM Digest, Vol 97, Issue 4<br>
*************************************<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201208/6254d00d/attachment.html" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20201208/6254d00d/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
<br>
------------------------------<br>
<br>
End of ndnSIM Digest, Vol 97, Issue 5<br>
*************************************<br>
</blockquote></div>