Wifi Network number confusion

90 views
Skip to first unread message

Issa S. Mlimbila

unread,
Sep 28, 2024, 10:54:26 AM9/28/24
to ns-3-users
I am running simulation of two networks using two access points using two SSIDs. Each access point broadcasts to 50 wifi stations but am getting this error

aborted. cond="!(networkHere == networkThere)", msg="GlobalRouter::ProcessSingleBroadcastLink(): Network number confusion (10.1.4.51/24, 10.1.2.1/24)", +0.000000000s -1 file=/home/issa-stephan-mlimbila/ns-3-dev/src/internet/model/global-router-interface.cc, line=836
NS_FATAL, terminating
terminate called without an active exception
Command 'build/examples/tutorial/ns3-dev-third-default' died with <Signals.SIGABRT: 6>.

I have attached my file code for reference

Thanks in advance

Idthird.cc

Tommaso Pecorella

unread,
Sep 28, 2024, 6:26:35 PM9/28/24
to ns-3-users
I don't think that GlobalRouting is resistant to this kind of network setup.

As a matter of fact, this is clearly stated in the documentation: "It does have a few constraints: Wired only:  It is not intended for use in wireless networks."
The fact that sometimes it works on wireless links is purely a matter of chance.

I'd suggest to use NixVectorRouting for these scenarios, as it is (better, it should be) resistant to wireless networks.

Issa S. Mlimbila

unread,
Sep 29, 2024, 11:58:22 AM9/29/24
to ns-3-users
Thanks very much. However, before your comment i tried opting static routing throughout the program, it worked, but it only displays sent packets in cmd prompt but in pcap files it displays zeros for source and destination address, any Idea please (screen shot attached)
Thanks in advance
Screenshot from 2024-09-29 21-22-21.png

Tommaso Pecorella

unread,
Sep 29, 2024, 4:26:02 PM9/29/24
to ns-3-users
That's usually because the nodes don't have the right routing table, and the IP layer is dropping them.

Issa S. Mlimbila

unread,
Sep 30, 2024, 2:41:20 AM9/30/24
to ns-3-users
How do i correct it Sir, How to provide a right routing table?
Thanks in advance

Tommaso Pecorella

unread,
Sep 30, 2024, 3:22:47 AM9/30/24
to ns-3-users
Use NixRouting.

Issa S. Mlimbila

unread,
Oct 3, 2024, 1:30:17 AM10/3/24
to ns-3-users
Sir, I have tried to build am getting this error, it seems like nix module is not included in my header libraries while in fact it is there.
Attached screenshot
Thanks
Screenshot from 2024-10-03 10-56-22.png

Tommaso Pecorella

unread,
Oct 3, 2024, 9:20:00 AM10/3/24
to ns-3-users
It would be very beneficial for you (and to us as well) to read the manual.

If you modify the scripts in the scripts in the example folder you have to modify the CMakeLists.txt (in this case examples/tutorial/CMakeLists.txt).
If you use the "scratch" folder, you'll not have this issue, as the scripts are linked to all the libraries.

I'm ready to bet that it is in the manual...

Issa S. Mlimbila

unread,
Oct 4, 2024, 1:38:51 AM10/4/24
to ns-3-users
Thanks, however am still getting the same error even after modifying CMakeLists.txt 
Let me keep reading manual.
Screenshot from 2024-10-04 11-08-24.png

Tommaso Pecorella

unread,
Oct 4, 2024, 3:58:36 PM10/4/24
to ns-3-users
It also helps to include the right header... it's "nix-vector-helper.h", not "nix-vector-routing-helper.h"
Reply all
Reply to author
Forward
0 new messages