<span style="font-family: sans-serif;" id="yMail_cursorElementTracker_1632220676477">Hi HADIBI,</span><div><font face="sans-serif" id="yMail_cursorElementTracker_1632221011689"><br></font><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220690726">To get the node ID use the following code:</font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632221016922"><br></font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220753084">uint32-t currentNodeId = ns3::Simulator::GetContext();</font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220874799"><br></font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220847332">If you want to get a pointer to the current node:</font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632221027246"><br></font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220876958">auto currentNodeObj = ns3::NodeList::GetNode(currentNodeId);</font></div><div><font face="sans-serif"><br></font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220981762">I hope it helps.</font></div><div><font face="sans-serif"><br></font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220990397">Regards,</font></div><div><font face="sans-serif" id="yMail_cursorElementTracker_1632220996568">Hussein<br></font> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;">  </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div dir="ltr">Send ndnSIM mailing list submissions to<br></div><div dir="ltr">    <a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br></div><div dir="ltr"><br></div><div dir="ltr">To subscribe or unsubscribe via the World Wide Web, visit<br></div><div dir="ltr">    <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div><div dir="ltr">or, via email, send a message with subject or body 'help' to<br></div><div dir="ltr">    <a ymailto="mailto:ndnsim-request@lists.cs.ucla.edu" href="mailto:ndnsim-request@lists.cs.ucla.edu">ndnsim-request@lists.cs.ucla.edu</a><br></div><div dir="ltr"><br></div><div dir="ltr">You can reach the person managing the list at<br></div><div dir="ltr">    <a ymailto="mailto:ndnsim-owner@lists.cs.ucla.edu" href="mailto:ndnsim-owner@lists.cs.ucla.edu">ndnsim-owner@lists.cs.ucla.edu</a><br></div><div dir="ltr"><br></div><div dir="ltr">When replying, please edit your Subject line so it is more specific<br></div><div dir="ltr">than "Re: Contents of ndnSIM digest..."<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Today's Topics:<br></div><div dir="ltr"><br></div><div dir="ltr" id="yMail_cursorElementTracker_1632220669412">   1. Get node ID in forwarder class (HADIBI ABDENNOUR)<br></div><div dir="ltr">   2. Node ID in forwarder class ndnsim2.8 (HADIBI ABDENNOUR)<br></div><div dir="ltr">   3. Re: Simulation halts with small lifetime of interest<br></div><div dir="ltr">      (sangita......)<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">----------------------------------------------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 1<br></div><div dir="ltr">Date: Tue, 21 Sep 2021 09:47:50 +0100<br></div><div dir="ltr">From: HADIBI ABDENNOUR <<a ymailto="mailto:emp.ifd.009.hadibi.abdennour@gmail.com" href="mailto:emp.ifd.009.hadibi.abdennour@gmail.com">emp.ifd.009.hadibi.abdennour@gmail.com</a>><br></div><div dir="ltr">To: <a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br></div><div dir="ltr">Subject: [ndnSIM] Get node ID in forwarder class<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr">    <CABAa30d5XkHmiq+<a ymailto="mailto:04pvwc2Xe4hi38tW87UtHizKrwRvunLVihg@mail.gmail.com" href="mailto:04pvwc2Xe4hi38tW87UtHizKrwRvunLVihg@mail.gmail.com">04pvwc2Xe4hi38tW87UtHizKrwRvunLVihg@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Hi,<br></div><div dir="ltr">i'm trying to get node ID in forwarder class using the following code :<br></div><div dir="ltr"><br></div><div dir="ltr">auto node = ns3::NodeList::GetNode(ns3::Simulator::GetContext());<br></div><div dir="ltr">std::cout<<" Node ID : "<<node->GetId()<<std::endl;<br></div><div dir="ltr"><br></div><div dir="ltr">It didnt work for me : error : 'ns3::NodeList' has not been declared<br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/a1c3a368/attachment-0001.html" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/a1c3a368/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 2<br></div><div dir="ltr">Date: Tue, 21 Sep 2021 09:49:41 +0100<br></div><div dir="ltr">From: HADIBI ABDENNOUR <<a ymailto="mailto:emp.ifd.009.hadibi.abdennour@gmail.com" href="mailto:emp.ifd.009.hadibi.abdennour@gmail.com">emp.ifd.009.hadibi.abdennour@gmail.com</a>><br></div><div dir="ltr">To: <a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br></div><div dir="ltr">Subject: [ndnSIM] Node ID in forwarder class ndnsim2.8<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr">    <CABAa30d+6bKmwueE943+wtN7wLMJ9_yDpaNEoyZy1=<a ymailto="mailto:V_NX-ygw@mail.gmail.com" href="mailto:V_NX-ygw@mail.gmail.com">V_NX-ygw@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Hi,<br></div><div dir="ltr">I'm trying to get node ID in forwarder class using the following code :<br></div><div dir="ltr"><br></div><div dir="ltr">auto node = ns3::NodeList::GetNode(ns3::Simulator::GetContext());<br></div><div dir="ltr">std::cout<<" Node ID : "<<node->GetId()<<std::endl;<br></div><div dir="ltr"><br></div><div dir="ltr">It didnt work for me : error : 'ns3::NodeList' has not been declared<br></div><div dir="ltr"><br></div><div dir="ltr">Im using ndnSim2.8<br></div><div dir="ltr"><br></div><div dir="ltr">Best regards<br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/c0df53ef/attachment-0001.html" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/c0df53ef/attachment-0001.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Message: 3<br></div><div dir="ltr">Date: Tue, 21 Sep 2021 10:59:26 +0100<br></div><div dir="ltr">From: "sangita......" <<a ymailto="mailto:sangita.engg@gmail.com" href="mailto:sangita.engg@gmail.com">sangita.engg@gmail.com</a>><br></div><div dir="ltr">To: Karan Raj Baruah <<a ymailto="mailto:karan_baruah@yahoo.co.in" href="mailto:karan_baruah@yahoo.co.in">karan_baruah@yahoo.co.in</a>><br></div><div dir="ltr">Cc: "<a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>" <<a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>><br></div><div dir="ltr">Subject: Re: [ndnSIM] Simulation halts with small lifetime of interest<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr">    <CALbsVCHrBZB39ofU6DH5MzY9rNpAqQ82YOs-0TgpdO=<a ymailto="mailto:wxbYyag@mail.gmail.com" href="mailto:wxbYyag@mail.gmail.com">wxbYyag@mail.gmail.com</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Hi Karan,<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks for your all suggestions.  Somehow I fixed the issue by stopping the<br></div><div dir="ltr">interest generation a little before the vehicle leaves the network.<br></div><div dir="ltr">This is a dynamic network and vehicles are entering and leaving the network<br></div><div dir="ltr">randomly (not a fixed topology).<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks and regards,<br></div><div dir="ltr">Sangita.<br></div><div dir="ltr">------------------------------------<br></div><div dir="ltr">Sangita Dhara<br></div><div dir="ltr">Post Doctoral Fellow<br></div><div dir="ltr">CONNECT / SCSS<br></div><div dir="ltr">Trinity College Dublin<br></div><div dir="ltr">-------------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">On Sat, Sep 18, 2021 at 8:16 PM Karan Raj Baruah <<a ymailto="mailto:karan_baruah@yahoo.co.in" href="mailto:karan_baruah@yahoo.co.in">karan_baruah@yahoo.co.in</a>><br></div><div dir="ltr">wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">><br></div><div dir="ltr">> Hello,<br></div><div dir="ltr">><br></div><div dir="ltr">> onDataUnsolicited() is occured as there is no PIT entry in the node/face<br></div><div dir="ltr">> for the data and hence data is discarded. It seems this happens with<br></div><div dir="ltr">> most/all of the packets and as a result the simulation halts(as all data is<br></div><div dir="ltr">> quickly discarded). I think your only option for now is to increase the<br></div><div dir="ltr">> lifetime of the interest packets as the latency between the nodes is just<br></div><div dir="ltr">> too high (as per my understanding). Not sure of any other way to "fix" it<br></div><div dir="ltr">> for now.<br></div><div dir="ltr">><br></div><div dir="ltr">> Best,<br></div><div dir="ltr">> Karan<br></div><div dir="ltr">> On Thursday, 16 September, 2021, 07:20:47 pm IST, sangita...... <<br></div><div dir="ltr">> <a ymailto="mailto:sangita.engg@gmail.com" href="mailto:sangita.engg@gmail.com">sangita.engg@gmail.com</a>> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> Hi Karan,<br></div><div dir="ltr">><br></div><div dir="ltr">> I don't have anything such as MaxSeq as my consumer generating data as per<br></div><div dir="ltr">> Zipf Mandelbrot distribution. Here I have mentioned the Number of Content<br></div><div dir="ltr">> and the interest is generated following Mandelbrot distribution.<br></div><div dir="ltr">> By analysising the trace file I have seen that the simulation is stopped<br></div><div dir="ltr">> after repetadely executing the function onDataUnsolicited( ) from forwarder<br></div><div dir="ltr">> class.  This is because  timeout happens as for the very small lifetime of<br></div><div dir="ltr">> interest and on timeout I did not generating the interest again. Therefore,<br></div><div dir="ltr">> even when the data is coming back it becomes unsolicited in the nodes and<br></div><div dir="ltr">> decision was to drop the data.<br></div><div dir="ltr">><br></div><div dir="ltr">> But again I m not getting the reason of stimulation halt. Do you have any<br></div><div dir="ltr">> idea on how an unsolicited data can make the simulation halt.<br></div><div dir="ltr">><br></div><div dir="ltr">> Thanks and regards,<br></div><div dir="ltr">> Sangita<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> On Wed, Sep 15, 2021, 22:45 Karan Raj Baruah <<a ymailto="mailto:karan_baruah@yahoo.co.in" href="mailto:karan_baruah@yahoo.co.in">karan_baruah@yahoo.co.in</a>><br></div><div dir="ltr">> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">> Hello Sangita,<br></div><div dir="ltr">><br></div><div dir="ltr">> Did you set "MaxSeq" variable in your simulation scenario? It could be<br></div><div dir="ltr">> that the MaxSeq value is hit when transmitting (and there are NACKs in the<br></div><div dir="ltr">> network even after re-transmission) and simulation closes. Also, if you are<br></div><div dir="ltr">> using something like WifiRemoteStation there are two variables MaxSsrc or<br></div><div dir="ltr">> MaxSlrc(depends on the packet size you used) that sets max number of<br></div><div dir="ltr">> re-transmissions for data packets which may be causing simulation to<br></div><div dir="ltr">> shutdown as none of the packets are not reaching even after repeated<br></div><div dir="ltr">> timeouts. Check this class once:<br></div><div dir="ltr">> <a href="https://www.nsnam.org/doxygen/classns3_1_1_wifi_remote_station_manager.html" target="_blank">https://www.nsnam.org/doxygen/classns3_1_1_wifi_remote_station_manager.html</a><br></div><div dir="ltr">><br></div><div dir="ltr">> Might be some other issue also but hard to say without knowing scenario.<br></div><div dir="ltr">><br></div><div dir="ltr">> Best,<br></div><div dir="ltr">> Karan Raj Baruah<br></div><div dir="ltr">><br></div><div dir="ltr">> On Thursday, 16 September, 2021, 02:04:17 am IST, sangita...... <<br></div><div dir="ltr">> <a ymailto="mailto:sangita.engg@gmail.com" href="mailto:sangita.engg@gmail.com">sangita.engg@gmail.com</a>> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> Hi Karan,<br></div><div dir="ltr">> Thanks for the reply.<br></div><div dir="ltr">><br></div><div dir="ltr">>  I kept the lifetime as 10 seconds. Your words are true that my interest<br></div><div dir="ltr">> are not reaching to any producer (destination) but as per my understanding<br></div><div dir="ltr">> that should not halt the simulation in the midway. When a interest will not<br></div><div dir="ltr">> reach to any producer , time out will happen and pit entry for those<br></div><div dir="ltr">> intereste will be evicted.<br></div><div dir="ltr">><br></div><div dir="ltr">> Do you have a clear idea what actually happened when a time out take place<br></div><div dir="ltr">> ?<br></div><div dir="ltr">><br></div><div dir="ltr">> Thanks and regards,<br></div><div dir="ltr">> Sangita<br></div><div dir="ltr">><br></div><div dir="ltr">> On Wed, Sep 15, 2021, 20:47 Karan Raj Baruah via ndnSIM <<br></div><div dir="ltr">> <a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">> Hello Sangita,<br></div><div dir="ltr">><br></div><div dir="ltr">> How much is the value of lifetime that you set when causing the issues?<br></div><div dir="ltr">> Also, when you set the lifetime manually can you verify from your tracer<br></div><div dir="ltr">> logs that the packets are actually sent(and duration for interest to<br></div><div dir="ltr">> reach)? It might be because latency between ports is too high that when you<br></div><div dir="ltr">> change it the interest may not reach the destination at all(even on<br></div><div dir="ltr">> retransmission).<br></div><div dir="ltr">><br></div><div dir="ltr">> Best,<br></div><div dir="ltr">> Karan<br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> On Thursday, 16 September, 2021, 12:30:08 am IST,<br></div><div dir="ltr">> <a ymailto="mailto:ndnsim-request@lists.cs.ucla.edu" href="mailto:ndnsim-request@lists.cs.ucla.edu">ndnsim-request@lists.cs.ucla.edu</a> <<a ymailto="mailto:ndnsim-request@lists.cs.ucla.edu" href="mailto:ndnsim-request@lists.cs.ucla.edu">ndnsim-request@lists.cs.ucla.edu</a>><br></div><div dir="ltr">> wrote:<br></div><div dir="ltr">><br></div><div dir="ltr">> Message: 2<br></div><div dir="ltr">> Date: Wed, 15 Sep 2021 11:11:04 +0100<br></div><div dir="ltr">> From: "sangita......" <<a ymailto="mailto:sangita.engg@gmail.com" href="mailto:sangita.engg@gmail.com">sangita.engg@gmail.com</a>><br></div><div dir="ltr">> To: <a ymailto="mailto:ndnsim@lists.cs.ucla.edu" href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br></div><div dir="ltr">> Subject: [ndnSIM] Simulation halts with small lifetime of interest<br></div><div dir="ltr">> Message-ID:<br></div><div dir="ltr">>     <CALbsVCFQgTWn9VaK8sW-n1ftoGZ+<a ymailto="mailto:s4t7URoV9r9F7j_HemJMqw@mail.gmail.com" href="mailto:s4t7URoV9r9F7j_HemJMqw@mail.gmail.com">s4t7URoV9r9F7j_HemJMqw@mail.gmail.com</a>><br></div><div dir="ltr">> Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr">><br></div><div dir="ltr">> Dear members,<br></div><div dir="ltr">> I am developing a vehicular network by incorporating sumo in ndnsim using<br></div><div dir="ltr">> the traci client.<br></div><div dir="ltr">> In my simulation the consumer generates interest in some zipf-mandelbroute<br></div><div dir="ltr">> fashion. Whenever I am keeping life time of each interest smaller than the<br></div><div dir="ltr">> total simulation time, somewhere my simulation halts with the below<br></div><div dir="ltr">> message:<br></div><div dir="ltr">> Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown<br></div><div dir="ltr">> Quitting (on error).<br></div><div dir="ltr">><br></div><div dir="ltr">> However, it runs fine when I keep the lifetime of each interest bigger than<br></div><div dir="ltr">> the total simulation time.<br></div><div dir="ltr">><br></div><div dir="ltr">> Can anyone give me any clue on what can be the problem?<br></div><div dir="ltr">> -------------- next part --------------<br></div><div dir="ltr">> An HTML attachment was scrubbed...<br></div><div dir="ltr">> URL: <<br></div><div dir="ltr">> <a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210915/5df3373e/attachment-0001.html" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210915/5df3373e/attachment-0001.html</a><br></div><div dir="ltr">> ><br></div><div dir="ltr">><br></div><div dir="ltr">> ------------------------------<br></div><div dir="ltr">><br></div><div dir="ltr">> Subject: Digest Footer<br></div><div dir="ltr">><br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> ndnSIM mailing list<br></div><div dir="ltr">> <a ymailto="mailto:ndnSIM@lists.cs.ucla.edu" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br></div><div dir="ltr">> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">> ------------------------------<br></div><div dir="ltr">><br></div><div dir="ltr">> End of ndnSIM Digest, Vol 106, Issue 7<br></div><div dir="ltr">> **************************************<br></div><div dir="ltr">> _______________________________________________<br></div><div dir="ltr">> ndnSIM mailing list<br></div><div dir="ltr">> <a ymailto="mailto:ndnSIM@lists.cs.ucla.edu" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br></div><div dir="ltr">> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div><div dir="ltr">><br></div><div dir="ltr">><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">An HTML attachment was scrubbed...<br></div><div dir="ltr">URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/c8adfd2b/attachment.html" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210921/c8adfd2b/attachment.html</a>><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">Subject: Digest Footer<br></div><div dir="ltr"><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">ndnSIM mailing list<br></div><div dir="ltr"><a ymailto="mailto:ndnSIM@lists.cs.ucla.edu" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br></div><div dir="ltr"><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">------------------------------<br></div><div dir="ltr"><br></div><div dir="ltr">End of ndnSIM Digest, Vol 106, Issue 12<br></div><div dir="ltr">***************************************<br></div> </div> </blockquote></div></div>