LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Madwifi (tx_bytes) (https://www.linuxquestions.org/questions/linux-newbie-8/madwifi-tx_bytes-914740/)

TotallyNew2011 11-21-2011 12:32 PM

Madwifi (tx_bytes)
 
Hello everybody, I have a question and I hope that somebody can help me. I'm using Madwifi v0.9.4. I know that in netdevice.h file there is the struct net_device_stats with rx_bytes and tx_bytes fields. I set up mynetcard in station mode and I wrote a program that prints on stdout (every x seconds) these two numbers. While for rx_bytes I know that this is the number of correctly received bytes, I was wondering: how can I know the number of total successfully transmitted bytes? This question comes from the fact that tx_bytes is incremented when is put into the buffer and so it counts also retransmissions (and, by the way, some of them are performed by hardware...), but I'm interested in just the correct tx_bytes, because I have to compute the goodput. Is there an expert guy (or maybe more than one) that knows how to help me?

Thanks in advance.

Regards.

corp769 11-22-2011 10:51 PM

Deleted.....

TotallyNew2011 11-23-2011 04:42 AM

Quote:

Originally Posted by corp769 (Post 4531267)
Since that counts the retransmissions, I would start looking at the variable(s) for the retransmissions, and then subtract that from the "virtual" transmitted bytes, and that would give you the offset, thus telling you what was actually transmitted, and what was not. I'm not currently looking at the source code, but it pretty much goes along what I said; You also might need to monitor the raw packet count for bits/bytes being sent from your device too, just to verify they are being sent.

Yes, you got the point. The problem, unfortunately, is right there: source code. I'm not very familiar with it, and Madwifi code is very difficult (at least for me) and so I was looking for someone with great experience, or someone who did something similar to what is my actual task. Anyway, thanks for your comment, I appreciated it.

Regards.

TotallyNew2011 11-24-2011 03:18 AM

Madwifi (tx_bytes)
 
Quote:

Originally Posted by corp769 (Post 4531267)
Deleted.....

Why deleted?

Is there anyone else that can help me?


All times are GMT -5. The time now is 04:56 AM.