Hi,
My question is if there is any method of sending beacons/frames between two different access points in NS-3?
I think what you want to ask is: Is any method of sending beacons/frames between two AP belonging to two different SSIDs.
Example: AP1 - SSID = "apx-wifi"
AP2 - SSID = "apy-wifi"
AP1 sends beacons/frames to AP2?
Two points before going to the answer to helping you understand what happens in ns-3.
- Take a look at the .pcap file that I have attached. That is wifi traffic from my house, and you can see many SSIDs in beacons, probe requests, and so on. It means that, if AP is placed close enough and their range covers each other, they will be able to hear each other's transmission. Yes, AP1 will know that AP2 sends beacons, probes responses and receives probe requests, and so on, and ns-3 is not different from reality.
- Take a look at ap-wifi-mac.cc (line 1013) ==> void ApWifiMac::Receive (Ptr<WifiMacQueueItem> mpdu). That is, how AP handles received frames in ns-3, that includes frames from STA and AP in the different network.
Here is the list of the frames that are handled if you follow the function execution:
- Data
- Management frames (Probe request, Association request, Disassociation)
Those are frames that come from STA. By default, AP is designed to serve STA clients and not to talk to others AP.
But still, if you place in your simulation two APs within the same range in two different networks, they will see what the other is transmitting, you can implement a small std::cout in this receive function and check the SSID and BSSID of all received frames, and see the beacons from different SSID, but AP only handles frames from STA.
Back to your question, Is any method of sending beacons/frames between two AP belonging to two different SSIDs?
My answer would be, No. According to the 802.11 standard, in the IBSS (infrastructure mode) AP is designed to connect to STA clients only.
Can you change this behavior? My answer is Yes (Remember Obama's slogan!). If you add a handler in this receive function in ap-wifi-mac you change the AP behavior, that's a matter of coding. In my opinion, you have to answer a few questions, before:
What frames from AP2, and AP1 shall handle?
How does AP1 identify the frames from AP2? (E.g: Field SSID, BSSID).
How AP1 will behave after receiving a frame from AP2? (Eg.: Change beacon interval, stop beacons, block probe responses I don't know.)
Does it impact the regular behavior of the network?
Best regards
Geovani