[ndnSIM] [EXT] Error: Asser failed.cond="next.key.m_ts >= m_currentTs

sangita...... sangita.engg at gmail.com
Thu Sep 23 03:22:49 PDT 2021

Hi Junxiao,
Thanks for your reply.
Could you please give me any idea on which situation that can be happened?
In my scenarios, nodes are dynamic (vehicular network), i.e., they enter
the network and leave the network at any time of simulations. These nodes
are generating interest packets with variable lifetime (10 sec to 1800 sec)
whereas my simulations need to run for a vehicular trace file of 24 hrs.

Do you think this has a relation with a timeout of interest packets ?  This
is because it can happen that interest may not reach a provider.

Could you imagine what might happen when a node leaves the network but the
pit entry for the interest generated by this node remains in the other

Thanks and regards,

On Tue, Sep 21, 2021, 11:35 Junxiao Shi <shijunxiao at email.arizona.edu>

> Hi Sangita
> My guess is that the scenario somehow scheduled an event in the past.
> Yours, Junxiao
> On Tue, Sep 21, 2021 at 06:02 sangita...... via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>> *External Email*
>> Dear members,
>> I am developing a vehicular network by incorporating a large sumo trace
>> file in ndnsim using the traci client.
>> My simulation is halted with the message:
>> assert failed. cond="next.key.m_ts >= m_currentTs",
>> file=../src/core/model/default-simulator-impl.cc, line=143
>> By analyzing the code of simulator-impl.cc, I understand that *m_events* is
>> an *event priority queue of scheduler* where all the events are inserted
>> as per the time of execution. When the recently popped even's time is
>> lesser than the last popped event then the above mentioned  assert happened.
>> If *m_events *it is a priority queue it should place each of the event
>> as per its time (checking should be done at the time of insertion).
>> Therefore,   no question should arise of failure of this condition:
>> next.key.m_ts >= m_currentTs"
>> Can anyone help to understand in which situation this can take place?
>> Thanks in advance.
>> ------------------------------------
>> Sangita Dhara
>> Post Doctoral Fellow
>> Trinity College Dublin
>> -------------------------------------
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210923/777a319e/attachment.html>

More information about the ndnSIM mailing list