Dear Konstantinos,
Sorry for going back to this post but some doubts arose at this point of my research.
You explained me that the end-to-end delay that I obtained is based on the headers attached to my packet. I did some further checks with the PCAP files (attached) as you suggested and found that the headers add in total 148 bytes, so my complete frame should be 1000 bytes (payload) + 148 bytes (headers). From that, I deduce that the transmission time of a frame would be: (1148 * 8) / (6 * 1024 * 1024) = 1.45897 ms
This is still very small compared to the measured TX time via NS3: 2.88802 ms
On the other hand, I looked into the state timers of YansWifiPhy with the following line and I obtained the same value 2.888 ms for TX time.
Config::ConnectWithoutContext ("/NodeList/0/DeviceList/*/$ns3::WifiNetDevice/Phy/$ns3::YansWifiPhy/State/State",MakeCallback (&StateCallback));
I am still trying to figure out why the TX time is so large if I have analyzed all the headers involved. You mentioned that the backoff times could influence this behaviour.
Thank you in advance for any comment on this. I am attaching an updated file.
Regards,
Alejandro.