WiFi Assert error : cond="now - m_lastRx.start <= GetSifs()

164 views
Skip to first unread message

George

unread,
Jan 31, 2023, 4:16:26 PM1/31/23
to ns-3-users
Hello,

Please see the attached back traces for the WiFi assert ocuring in channel-access-manager.cc.
This error occurs more often when I try to simulate networks with 20+ stations. Using 11.ax WiFi standard with Indoor mixed office channel.
Did anyone encountered this error? I would really appreciate some help with this since it prevents me to further continue my research.
Thank you.

best regards,
George
Screenshot from 2023-01-31 22-09-03.png

Tommaso Pecorella

unread,
Jan 31, 2023, 4:56:58 PM1/31/23
to ns-3-users
Hi,

if you believe it's a bug please report it in our tracker (https://gitlab.com/nsnam/ns-3-dev/-/issues). Moreover, an example script showing the error would be helpful in tracking down the issue.

T.

George

unread,
Feb 2, 2023, 5:38:39 AM2/2/23
to ns-3-users
Hi Tom,

There is also an error that occurs at high(compared to what I usually simulate) number of STAs in the channel access manager. I have to replicated again in --gdb.
Regarding support for these possible bugs, where you would like me to send the code I'm using?
Thank you!

best regards,
George

Tommaso Pecorella

unread,
Feb 2, 2023, 6:43:49 AM2/2/23
to ns-3-users
Please report any bug in our tracker - it's far easier, and include (if possible) a script to show it.

Thanks

George

unread,
Feb 3, 2023, 8:04:40 AM2/3/23
to ns-3-users
Sure, I will send those details in the tracker. Thank you.

Xueqing Zhou

unread,
Feb 27, 2023, 8:39:28 AM2/27/23
to ns-3-users

Hi George, I met the same problem. Just with 5 STA. Did you find some way to solve it? Thanks!

assert failed. cond="now - m_lastRx.start <= GetSifs()", +4.096188681s 3 file=/home/ubuntu/ns-3-dev/src/wifi/model/channel-access-manager.cc, line=685
terminate called without an active exception

George

unread,
Feb 27, 2023, 10:46:09 AM2/27/23
to ns-3-users
No, I have not solved the problem.
I have opened an issue on the bug tracker but have not received a response yet. 
You can follow updates here:

https://gitlab.com/nsnam/ns-3-dev/-/issues/862

George

unread,
Feb 27, 2023, 11:01:46 AM2/27/23
to ns-3-users
Hi Tommaso,

I have opened an issue here :https://gitlab.com/nsnam/ns-3-dev/-/issues/862

However, I added a .txt that can be copied and pasted that will run the necessary repositories and the given example. Do you think that is too much and I should aim to replicate the error in some other way? Thank you!

igs...@gmail.com

unread,
Feb 28, 2023, 8:15:43 AM2/28/23
to ns-3-users
"assert failed. cond="now - m_lastRx.start <= GetSifs()", +92.003919739s 7 file=../src/wifi/model/channel-access-manager.cc, line=685"

Receiving the same error while trying to use 802.11n MAC in  Adhoc mode in a MANET scenario of 40 nodes.
In fact, the above 'assert failed'  event occurs while trying to increase simultaneous traffic flows from different sources and sinks.

I mean, if the number of traffic flow is set as 2 - the simulation works good.
If we increase the number of traffic flow is set as 3 - the simulation breaks with the above message. (but strangely, sometimes it is working good if the traffic flow is set as 4)

I have tested it with ns3.37. I may try the same with the latest dev version of ns-3 and report again.

Charles Pandian.

Tommaso Pecorella

unread,
Feb 28, 2023, 9:37:28 AM2/28/23
to ns-3-users
Hi Charles,

yes, testing on ns-3-dev is important, as we might have already fixed the bug. If it's not fixed, any way to narrow it is welcome - and by "narrow it" I mean the smallest possible simulation, with the less modules used as possible.

Thanks !

igs...@gmail.com

unread,
Mar 3, 2023, 3:20:04 AM3/3/23
to ns-3-users
Update :
As mentioned by Tommaso Pecorella, the issue automatically resolved while using dev version of ns-3.
Thank you,  
Tommaso.

Charles Pandian

Tommaso Pecorella

unread,
Mar 3, 2023, 10:59:44 AM3/3/23
to ns-3-users
Hi Charles,

I'm happy that the issue is fixed in ns-3-dev. Shall we close the issue in the tracker?

Thanks

Charles Pandian

unread,
Mar 3, 2023, 1:45:45 PM3/3/23
to ns-3-...@googlegroups.com
Shall we close the issue in the tracker?

Yes. 
Charles Pandian,



--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/871a4a11-d551-4e98-b171-d058f757bf0bn%40googlegroups.com.

George

unread,
Mar 3, 2023, 1:58:54 PM3/3/23
to ns-3-users
Hello,

I am sorry for the confusion. The issue I have opened (if you're talking about this issue https://gitlab.com/nsnam/ns-3-dev/-/issues/862) initially contained the above assert but now I have resumed the issue to a main assert that was more consistent. 
The aseert "now - m_lastRx.start <= GetSifs()  I managed to fix/or make it not happen by using lower values for BE_MaxAmpduSize and BE_MaxAmsduSize.

However, the issue now after I edited the post, only refers to an Assert from the MAC layer that happens when a Re-association request is done but there is no BSSID returned...I have attached a script that runs the WiFi simulation scenario with the error occurring there. So please do not close that issue. 
Thank you!

George

unread,
Mar 3, 2023, 2:07:07 PM3/3/23
to ns-3-users
I am new to this way of working with open-source simulators and sharing this sort of issue with the community. 
In the future, I will aim to always resume to only one bug that I get whenever I open an issue so I don't create any sort of confusions again. 

Tommaso Pecorella

unread,
Mar 5, 2023, 5:44:59 AM3/5/23
to ns-3-users
Hi,

well, two issues might be related, so it's ok to "chain" them. However, it is far simpler (and more effective) to work on them one at a time.

Anyway, thanks for reporting this, it's important to have feedbacks !

igs...@gmail.com

unread,
Mar 5, 2023, 10:54:03 AM3/5/23
to ns-3-users
Again, got same assertion failure while using 802.11n with AODV protocol (with 30 ad hoc  nodes and with 5 simultaneous traffic flows)

NS_ASSERT failed, cond="mpdu->IsQueued()", +86.154441728s 26 file=../src/wifi/model/qos-txop.cc, line=671

Just Informing.

Charles Pandian

Tom Henderson

unread,
Mar 5, 2023, 6:10:52 PM3/5/23
to ns-3-...@googlegroups.com
Is there an easy way to configure existing example programs to reproduce
this assert?  If not, can you provide a test program to reproduce?

- Tom
Reply all
Reply to author
Forward
0 new messages