Clear Filters
Clear Filters

How to make a model of a WLAN network consisting of an one (AP) and multiple (STA) by using WLAN Toolbox?

1 view (last 30 days)
I want to make a WLAN network of one access point and multiple stations and I found an example of making a WLAN of 1 AP and 1 STA so I develobed the code but the results are wrong.
  1. Why do the stations transmit to each other while there is no association among them?
  2. How the stations transmit to the access point while the traffic generation is one way?
please find the attached code"ex1_AP_STA.m" and output data of simulator "Simulation data.zip"

Answers (1)

Ayush Modi
Ayush Modi on 17 Jan 2024
Hi Samar,
Question - 1: Why do the stations transmit to each other while there is no association among them?
In the wireless network, when a data needs to be sent to another node, it is broadcasted. Every node which is associated with the souce receives the packet and reads it. This packet is then sent to the MAC layer of the node where it is determined if the current node is the destination node for the said packet or not. If it is not the destination node, the packet is discarded.
"statistics" function returns the node statistics of all the layers. Here is the example to demostrate how you can check the Application Layer statistics:
apStats = statistics(accessPoint);
disp(apStats.App);
Please refer to the following MathWorks documentation for more information on the results of "statistics" function:
Question - 2: How the stations transmit to the access point while the traffic generation is one way?
"addTrafficSource" function adds the "Application layer" data traffic source. Application layer data is being generated by the source and sent to the destination. As a response to the successful transmission, destination node sends the acknowledgement back to the source. "addTrafficSource" function does not create a 1-way communication channel between the nodes.
Hope this helps!

Categories

Find more on WLAN Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!