how to design a multi gateways about wireless network

40 views
Skip to first unread message

辛文飞

unread,
Jun 8, 2017, 10:16:23 AM6/8/17
to ns-3-users
My research involves with multi gateways, I have been troubled about this question for several months, I have tried to construct many simulation scenarios, but they all finished with fail. I always begin with a simple model, then extending it with complexity. then fail. Now, the newest simulation I have writen have been uploaded as attachments. apcsma.cc is a single gateway simulation, it runs successfully while the apcsmaext4.cc is a two gateways simulation which can't generate traffic normally, if there exists any error about any aspect, please correct for me!!! Thank you all!!!

I make a brief introduction about the simulation settings. For details, you can download the file.
apcsmaext4.cc   topology is as following:
I have set static routing for n1, n2, n4, n5, n8.      n1 and n4 use the same channel, n5 and n8 are the same as them but another channel.
// Establish communication between n2 and n7
//
//         Wifi 192.168.1.0
//        AP(ssid1)      AP(ssid1)
//        *    *    *    *
//        |     |    |     | 
//       n1   n2   n3   n4 
//       ||              ||   
//       ||              ||   
//       ||              ||   
//       ||1            ||1    
//       ||9            ||9                  
//       ||2            ||2 
//       ||.             ||.                   
//       ||1 c         ||1 c 
//       ||6 s         ||6 s
//       ||8 m        ||8 m
//       ||.  a         ||. a
//       ||2            ||2 
//       ||.             ||. 
//       ||0            ||0  
//       ||              ||              
//       ||              ||              
//       n5   n6   n7   n8
//        |    |    |    |
//        *    *    *    *
//        AP(ssid2)      AP(ssid2)
//        Wifi 192.168.3.0
//
//


apcsma.cc topology is as following:
//   Wifi 192.168.1.0
//                 AP
//  *     *      *     *
//  |      |      |     |           192.168.2.0
// n1   n2   n3   n4 ============== n5   n6   n7   n8
//                                    csma           |      |      |      |
//                                                       *     *      *     *
//                                                      AP
//                                                      Wifi 192.168.3.0
apcsmaext4.cc
apcsma.cc

辛文飞

unread,
Jun 8, 2017, 10:05:51 PM6/8/17
to ns-3-users
Is there someone can help me???

在 2017年6月8日星期四 UTC+8下午10:16:23,辛文飞写道:

辛文飞

unread,
Jun 12, 2017, 12:02:22 PM6/12/17
to ns-3-users
Is there someone can help me???

在 2017年6月8日星期四 UTC+8下午10:16:23,辛文飞写道:
My research involves with multi gateways, I have been troubled about this question for several months, I have tried to construct many simulation scenarios, but they all finished with fail. I always begin with a simple model, then extending it with complexity. then fail. Now, the newest simulation I have writen have been uploaded as attachments. apcsma.cc is a single gateway simulation, it runs successfully while the apcsmaext4.cc is a two gateways simulation which can't generate traffic normally, if there exists any error about any aspect, please correct for me!!! Thank you all!!!

Tommaso Pecorella

unread,
Jul 10, 2017, 6:07:33 PM7/10/17
to ns-3-users
Hi,

sorry if it took so long - too much work and too few time.

Your two gateways simulation has a structural issue - i.e., it won't work. Let's analyze why.

First and foremost, you have a CSMA network connecting n1, n4, n5, and n8. No matter how you draw it, the four nodes are connected, and they can all talk to each other.
That's a good thing  - otherwise you would have two network with the same prefix - even worse.
However, I don't know if it's the thing you wanted.

The two Wi-Fi networks have a more important issue: two APs (each) using the same prefix. This is really a bad idea, as routing will go nuts.
Just think about it. How is it possible to know that n2 (for example) is reachable through n1 and not n4 ?
You can't say from it's IP address, and the packets will be sent to one of the two APs - probably the wrong one.

Unless you have a coordinated AP deployment - i.e., one with a common controller handling the AP/associated STA binding - this configuration is impossible.
Note that it's not feasible in ns-3 AND in real life.

I hope this can help,

T.

辛文飞

unread,
Jul 22, 2017, 9:15:27 AM7/22/17
to ns-3-...@googlegroups.com
Thank you for your reply for this question which has been discarded for days. My network topology designment has some problems in feasibility. I want to realize the function that building connection between n2 and n7, even I assigned the different prefix to the four nodes, they still won't work, the key of the question is that one station only can associate with one ap.

--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/6fJUSti7tkw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages