[ndnSIM] Simulation halts with small lifetime of interest

Karan Raj Baruah karan_baruah at yahoo.co.in
Sat Sep 18 12:09:08 PDT 2021

onDataUnsolicited() is occured as there is no PIT entry in the node/face for the data and hence data is discarded. It seems this happens with most/all of the packets and as a result the simulation halts(as all data is quickly discarded). I think your only option for now is to increase the lifetime of the interest packets as the latency between the nodes is just too high (as per my understanding). Not sure of any other way to "fix" it for now.
    On Thursday, 16 September, 2021, 07:20:47 pm IST, sangita...... <sangita.engg at gmail.com> wrote:  
 Hi Karan,
I don't have anything such as MaxSeq as my consumer generating data as per Zipf Mandelbrot distribution. Here I have mentioned the Number of Content and the interest is generated following Mandelbrot distribution. By analysising the trace file I have seen that the simulation is stopped after repetadely executing the function onDataUnsolicited( ) from forwarder class.  This is because  timeout happens as for the very small lifetime of interest and on timeout I did not generating the interest again. Therefore, even when the data is coming back it becomes unsolicited in the nodes and decision was to drop the data. 
But again I m not getting the reason of stimulation halt. Do you have any idea on how an unsolicited data can make the simulation halt. 
Thanks and regards, Sangita

On Wed, Sep 15, 2021, 22:45 Karan Raj Baruah <karan_baruah at yahoo.co.in> wrote:

 Hello Sangita,
Did you set "MaxSeq" variable in your simulation scenario? It could be that the MaxSeq value is hit when transmitting (and there are NACKs in the network even after re-transmission) and simulation closes. Also, if you are using something like WifiRemoteStation there are two variables MaxSsrc or MaxSlrc(depends on the packet size you used) that sets max number of re-transmissions for data packets which may be causing simulation to shutdown as none of the packets are not reaching even after repeated timeouts. Check this class once: https://www.nsnam.org/doxygen/classns3_1_1_wifi_remote_station_manager.html

Might be some other issue also but hard to say without knowing scenario.

Best,Karan Raj Baruah

    On Thursday, 16 September, 2021, 02:04:17 am IST, sangita...... <sangita.engg at gmail.com> wrote:  
 Hi Karan,Thanks for the reply. 
 I kept the lifetime as 10 seconds. Your words are true that my interest are not reaching to any producer (destination) but as per my understanding that should not halt the simulation in the midway. When a interest will not reach to any producer , time out will happen and pit entry for those intereste will be evicted. 
Do you have a clear idea what actually happened when a time out take place ? 
Thanks and regards, Sangita
On Wed, Sep 15, 2021, 20:47 Karan Raj Baruah via ndnSIM <ndnsim at lists.cs.ucla.edu> wrote:

Hello Sangita,
How much is the value of lifetime that you set when causing the issues? Also, when you set the lifetime manually can you verify from your tracer logs that the packets are actually sent(and duration for interest to reach)? It might be because latency between ports is too high that when you change it the interest may not reach the destination at all(even on retransmission).

  On Thursday, 16 September, 2021, 12:30:08 am IST, ndnsim-request at lists.cs.ucla.edu <ndnsim-request at lists.cs.ucla.edu> wrote: 
Message: 2
Date: Wed, 15 Sep 2021 11:11:04 +0100
From: "sangita......" <sangita.engg at gmail.com>
To: ndnsim at lists.cs.ucla.edu
Subject: [ndnSIM] Simulation halts with small lifetime of interest
    <CALbsVCFQgTWn9VaK8sW-n1ftoGZ+s4t7URoV9r9F7j_HemJMqw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear members,
I am developing a vehicular network by incorporating sumo in ndnsim using
the traci client.
In my simulation the consumer generates interest in some zipf-mandelbroute
fashion. Whenever I am keeping life time of each interest smaller than the
total simulation time, somewhere my simulation halts with the below message:
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).

However, it runs fine when I keep the lifetime of each interest bigger than
the total simulation time.

Can anyone give me any clue on what can be the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210915/5df3373e/attachment-0001.html>


Subject: Digest Footer

ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu


End of ndnSIM Digest, Vol 106, Issue 7
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu

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

More information about the ndnSIM mailing list