dlinknctu / OpenNet

A Simulator for Software-Defined Wireless Local Area Network
GNU General Public License v2.0
72 stars 44 forks source link

Is it possible to get the data rate (bandwidth usage) of AP in OpenNet? #80

Open kuljaree opened 8 years ago

kuljaree commented 8 years ago

I use OpenNet to generate a simple WiFi-SDN topology. In my work, I would like to know the data rate of AP. Is it possible to get the value? if yes, how to do it?

Thanks you

kansokusha commented 8 years ago

The data rate can not directly be retrieved from the simulation, but can be calculated. You can collect network traffic of AP from network interfaces and calculate the date rate with specified time unit. Network traffic can be collected through the following ways: ifconfig (RX bytes, TX bytes), ovs-ofctl But these network traffic only cover IP packets, 802.11 headers are not included.

Currently, I do not have idea about how to calculate data rate with 802.11 headers.

kuljaree commented 8 years ago

Thanks you, kansokusha for yours respond.

I think that maybe it can get by using NS3 module (MacTX or MacRx). But I'm not sure that it's can trace value or not because OpenNet use Python to access module NS3. However I will try it, if it can do I will share it. Thanks again