So far I have a simulation with some wifi stations nodes, one csma/WifiAp (n0) node and one csma (n1) node serving as HTTP server.
// Wifi 10.1.3.0
// AP
// * * * *
// | | | |
// nx n3 n2 n0 n1(Http Server)
// | |
// ======
// csma LAN 10.1.2.0
I am using ThreeGppHttp model with wifi stations as clients and csma n1 node as Server and this allows me to generate http flows and calculate the Throughput and delay for each flow.
I have also learned how to save traces. Right now I am able to save TX/RX packets size from HTTP server device/csma interface and save this information to a file each time a packet is received or transmitted.
My main idea is to simulate during 24h a wifi network to generate traffic and capture statistics metrics in node 0 csma/WifiAp.
I would like to save in my dataset metrics like:
Could someone kindly point me in the correct direction to do this.
I have checked tracesources from csmaNetDevices and found two traces that could help me:
PhyTxEnd: Trace source indicating a packet has been completely transmitted over the channel.
PhyRxEnd: Trace source indicating a packet has been completely received by the device.
Do you think that the correct approach would be to:
Using this approach I could have in my dataset the RX/TX bytes for each simulation second on that specific interface.
Many Thanks,
Silvestre Malta