maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   App to measure network throughput? (https://talk.maemo.org/showthread.php?t=17844)

bluesubaru 2008-03-13 15:36

App to measure network throughput?
 
Is there an app to measure network throughput? I have IPhome and it will show how much data has been transfered, but it does not show it as a rate, i.e (64Kbps). When viewing streams and optimizing my UPnP server, seeing the actual transfer rate is helpful. It doesn't even have to show a graph. ;)

Benson 2008-03-13 16:20

Re: App to measure network throughput?
 
Well, a script that loops delaying one second and subtracts the total should be trivial. Probably will have substantial jitter though. Coming right up!

Benson 2008-03-13 17:01

Re: App to measure network throughput?
 
Code:

#!/bin/sh
olddata=`/sbin/ifconfig wlan0|awk -F: '/TX bytes/ {print $3}'|cut -f1 -d' '`
while true; do
  sleep 1
  data=`/sbin/ifconfig wlan0|awk -F: '/TX bytes/ {print $3}'|cut -f1 -d' '`
  echo `expr \( $data - $olddata \) / 128` Kib/s
  olddata=$data
done

Why is there no setterm? Grrr...

bluesubaru 2008-03-13 19:07

Re: App to measure network throughput?
 
Ok I copied the script to /usr/bin/rate.sh, changed execute permission, type "usr/bin/rate.sh" and I get: /bin/sh: /usr/bin/rate.sh: not found

What am I missing?

aleksandyr 2008-03-13 20:54

Re: App to measure network throughput?
 
ntop, anyone?

Benson 2008-03-13 21:08

Re: App to measure network throughput?
 
I would normally install it under my home directory, like in /home/user/apps/, thus avoiding permissions issues. You sure it is both readable and executable by all users?
You said you ran "usr/bin/rate.sh", which is missing a / at the beginning. I assume that was a typo when posting, as your error implies that the / was present; but just checking...

bluesubaru 2008-03-13 22:55

Re: App to measure network throughput?
 
weird, I did everything over again at home using WinSCP and it worked. Can't see anything different from the first file except different name.

anyway... the script work great. 20Kbs when streaming MobiTV. There is a lot of jitter, but it's close enough to see the difference between 64K and 24K. Thanks.

Benson 2008-03-13 22:57

Re: App to measure network throughput?
 
mobiTV? I thought I heard that was down again... <shrug>
Glad it worked.

bluesubaru 2008-03-13 23:21

Re: App to measure network throughput?
 
Quote:

Originally Posted by Benson (Post 154686)
mobiTV? I thought I heard that was down again... <shrug>
Glad it worked.

no, it's down. I was just watching the ad that pops up in it's place. :(


All times are GMT. The time now is 06:04.

vBulletin® Version 3.8.8