Meassuring network load
Hi everyone,
I have a question I hope someone have the answer to. I'm writing a program that is supposed to meassure the load on a wlan adapter. First, I tried with just looking at /proc/net/dev and from there extracted transfered bytes per second. However, that's not accurate considering there is a lot of other traffic to and from the adapter. Control traffic, beacon signals and so on. So basically, I'm lookin for some way to meassure how many ethernet frames has been sent and received. And the size of them. Does anyone know if that can be done in some fairly simple way? Or any other sollution to my problem. Any sollutions that is better than just look at transfered and received bytes is appreciated.
/iasion
|