Error: Number network confusion

1,279 views
Skip to first unread message

Łukasz M

unread,
May 18, 2016, 3:49:59 PM5/18/16
to ns-3-users
Hi,

I am sorry, that i asked about (perhaps) known issue, but i didn't find any solution for that.
I have tried a script from the internet -> ns3 symulation and i got an error:

aborted. cond="!(networkHere == networkThere)", msg="GlobalRouter::ProcessSingleBroadcastLink(): Network number confusion", file=../src/internet/model/global-router-interface.cc, line=846 
terminate called without an active exception

 I read that is caused by the same ip addressess to different networks but, as you can see, there are different ip addressess.
I am new in ns3 and i have no clue what I can do..

Thanks in advance!
Lucas.

Tommaso Pecorella

unread,
May 18, 2016, 4:44:33 PM5/18/16
to ns-3-users
Hi,

you are facing a known issue: GlobalRouting doesn't handle correctly the Wi-Fi interfaces. Since the two networks are sharing the same channel, it gets confused.

However, your topology is logically wrong. The two networks are not connected. Yet, they share the same channel and the same SSID...
Anyway, the track is to install GlobalRouting only on the APs, and leave StaticRouting on the STA.

Cheers,

T.

Łukasz M

unread,
May 19, 2016, 5:34:50 PM5/19/16
to ns-3-users
Thank you. I corrected misteakes and it is fine :)

amir...@gmail.com

unread,
Sep 21, 2016, 2:54:44 PM9/21/16
to ns-3-users
Hi,

I have the same problem. My network is something like this:
      ap1/p0 ---- p1/p2------p3/p4-----p5/ap2
 *         |                                          |
 *    - - - - - -                                    - - - - - - -
 *  s10 s11 s12 s13                      s21 s22 s23 s24

I am using different ssid and channel number for each access point, but as soon as I assign the IP address to the access point even if I remove all the stations, I get the same error. I use GlobalRouting; but as you have mentioned, static routing should be defined on the stations; and I haven't defined the stations yet.

Your concern is appreciated.

Thank you
Amir 

Tommaso Pecorella

unread,
Sep 21, 2016, 6:35:48 PM9/21/16
to ns-3-users
Why should I think to what error you could have made when you didn't even bothered to attach your script (or its relevant parts) ?
Just try to explain this.

Anyway, I'm 95% sure you did a stupid mistake. Your code should look like this:
    YansWifiChannelHelper channel = YansWifiChannelHelper::Default ();
   
YansWifiPhyHelper phy = YansWifiPhyHelper::Default ();
    phy
.SetChannel (channel.Create());
    phy
.Set("ChannelNumber",UintegerValue(6));

Then you use "phy" for the first network, and you use it AGAIN for the 2nd one.
You did change the channel number, but you didn't create a new YansWifiChannelHelper (no channel.Create()).

T.

amir...@gmail.com

unread,
Sep 22, 2016, 12:03:16 AM9/22/16
to ns-3-users
You were right. It solved my problem and I am sorry that I had forgot to attach my script.

J. Vilela.

unread,
Feb 19, 2018, 2:45:11 AM2/19/18
to ns-3-users
Hello guys,

I am having pretty much the same issue: aborted. cond="!(networkHere == networkThere)", msg="GlobalRouter::ProcessSingleBroadcastLink(): Network number confusion", file=../src/internet/model/global-router-interface.cc
I am a newbie with ns-3 and even though I have read all your posts above explaining how to fix this issue, I still have no idea about the solution. Find attached my script. My simulation scenario is as follow: two different WiFi networks (the first one has 2 STAs and 1 AP, and the second one has only 1 STA and 1 AP). The two APs are linked to each other via a point-to-point link. Thanks to your previous posts I got to know that there is a known issue with GlobalRouting handling WiFi interfaces but I don't know how to install GlobalRouting only on the APs and leave StaticRouting on the STAs. Any suggestion will be really appreciated and thanks in advance. 

Regards,
J. Vilela.  
hw3.cc

Tommaso Pecorella

unread,
Feb 20, 2018, 1:01:30 AM2/20/18
to ns-3-users
Hi,

two snippets to send you in the right direction:

//Installing protocol stacks on each group of nodes
 
InternetStackHelper stack;
  stack
.Install (p2pNodes);

 
Ipv4StaticRoutingHelper staticRoutingHelper;
  stack
.SetRoutingHelper (staticRoutingHelper);
  stack
.Install (wifiStaNodes_leftside);
  stack
.Install (wifiStaNodes_rightside);

and

  address.SetBase ("10.1.1.0", "255.255.255.0");
 
Ipv4InterfaceContainer staDevices_leftsideInterfaces;
  address
.Assign (apDevices_leftside);
  staDevices_leftsideInterfaces
= address.Assign (staDevices_leftside);

 
NodeContainer::Iterator iter;
 
for (iter = wifiStaNodes_leftside.Begin (); iter != wifiStaNodes_leftside.End (); iter++)
   
{
     
Ptr<Ipv4StaticRouting> staticRouting;
      staticRouting
= Ipv4RoutingHelper::GetRouting <Ipv4StaticRouting> ((*iter)->GetObject<Ipv4> ()->GetRoutingProtocol ());
      staticRouting
->SetDefaultRoute ("<address of the AP>", 1 );
   
}




T.

Shegufta Bakht Ahsan

unread,
Jan 23, 2019, 2:34:25 AM1/23/19
to ns-3-users
Hi Tommaso,

I need the same type of setup where there will be multiple APs (with different SSIDs but in the same channel). Say, each AP has the following stations:

AP1 : ST11, ST12, ST13
AP2: ST21, ST22, ST23
.....
.....

As all the wifi-nodes (both APs and STAs) are in the same channel, I want to measure the congestion ( Say, ST11 is continuously sending packet to ST23, how will the wireless communication affect the other STA/APs)

I think, the code hw3.cc is a good starting point for me. I have tried to fix it by applying your suggestions. However, I am still facing the same error:

aborted. cond="!(networkHere == networkThere)", msg="GlobalRouter::ProcessSingleBroadcastLink(): Network number confusion", file=../src/internet/model/global-router-interface.cc, line=853



I have attached the new file (modified as per your guideline). Can you please give me some pointer on what might cause the error?

Thanks in advance
-Shegufta
hw3_modified.cc
Reply all
Reply to author
Forward
0 new messages