signetlabdei / lorawan

An ns-3 module for simulation of LoRaWAN networks
GNU General Public License v2.0
185 stars 131 forks source link

How to measure Throughput of network? #52

Closed shobhitaggarwal92 closed 4 years ago

shobhitaggarwal92 commented 4 years ago

Hello I am trying to measure the throughput of the network. Is there a way to do that?

Thanks

DvdMgr commented 4 years ago

Hi! Do you mean throughput in terms of bits/s or in relation with offered traffic, so as to make comparisons with an Aloha access scheme?

shobhitaggarwal92 commented 4 years ago

Yes in terms of bits/second.

DvdMgr commented 4 years ago

As of now, not out of the box. The most straightforward way to do this would be to hook a function to the ReceivedPacket trace source of the Gateways - this way you could log into a file the time at which you receive the packets and their length in bytes, and compute the throughput either online directly during the simulation or offline in a second phase!