[opensuse-support] measuring bandwidth in a month
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it? -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Am Montag, 3. Februar 2020, 22:26:05 CET schrieb Felix Miata:
So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it?
There's no "a cable modem" or "a router". Some models do, some don't and some other could do but don't. I guess it's worth checking the admin (web) interface of your router/cable modem. Maybe even your current provider has some statistics available. I'd go with vnstat for your purpose: https://humdi.net/vnstat/ Install it on every machine with internet access and keep it active for a reasonable while. vinz.
On 03/02/2020 22.26, Felix Miata wrote:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it?
You can use gkrellm, it does total the network usage of /this/ machine as long as the thing is running. Includes LAN use. If you are using Network Manager, it says in one of the parameters how much was used by /this/ machine during /this/ connection. The total of the connection, only your ISP and your router knows. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On Mon 03 Feb 2020 04:26:05 PM CST, Felix Miata wrote:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it? Hi Best to see what tools your ISP offers. Does your router offer snmp, if so that would be the best place to start for stats. If anything is blocked at the router, that will still count as traffic by your ISP....
Else you could just setup your own linux router/firewall and bridge the ISP router and enable your own stats. -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) Tumbleweed 20200128 | GNOME Shell 3.34.3 | 5.4.14-1-default Intel DQ77MK MB | Xeon E3-1245 V2 X8 @ 3.40 GHz | Intel/Nvidia up 5 days 0:53, 2 users, load average: 2.21, 0.67, 0.63 -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 2020-02-03 23:14, Malcolm wrote:
On Mon 03 Feb 2020 04:26:05 PM CST, Felix Miata wrote:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it? Hi Best to see what tools your ISP offers. Does your router offer snmp, if so that would be the best place to start for stats.
Yes. I would say that SNMP on your router is by far your best chance to get something that resembles your actual bandwidth consumption. There are several tools that can do this for you. I'd suggest rrdtool or your own snmp-script. configure your router for snmp Install net-snmp and snmp-mibs: zypper in net-snmp snmp-mibs Check which interface you need to monitor. Change -c (a simple password that's called "community" and quite insecure password that's used all over the globe is "public". If you can, change it to something else) and 192.168.1.1 for your router. snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifDescr snmpwalk -c public -v 2c 192.168.1.1 IP-MIB::ipAdEntIfIndex snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets My WAN and LAN in and out are are 4 and 10. So I do: snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets.4 snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets.4 snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets.10 snmpwalk -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets.10 From here you build your own tool. It can be as simple as #!/bin/sh while true;do my_date=`date +'%Y%m%d'` my_time=`date +'%H:%M:%S'` in_wan=`snmpwalk -Ov -c public -v 2c 192.168.1.1 IF-MIB::ifInOctets.4 | awk '{print $2}'` out_wan=`snmpwalk -Ov -c public -v 2c 192.168.1.1 IF-MIB::ifOutOctets.4 | awk '{print $2}'` echo $my_date,$my_time,$in_wan,$out_wan sleep 30 done Redirect that to a csv-file and import in libreoffice (or similar) and make your own stats and graphs. Mind you. The counters are 32 bit so you have to adjust for roll over. Or you go for the a bit more graphical way and use rrdtool. I use that quite freq at our servers pops. Here's a easy quick guide to follow. https://wiki.alpinelinux.org/wiki/Setting_up_traffic_monitoring_using_rrdtoo...) Or just check out rrdtools own beginners guide. https://oss.oetiker.ch/rrdtool/tut/rrd-beginners.en.html regards, -- /bengan -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 2/3/20 4:26 PM, Felix Miata wrote:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it?
My Netgear Nighthawk R7000 router has a Traffic Meter. It reports avg MB up/down/total by day/week/month. It can also issue an alarm if a designated amount of data or time is exceeded (and will even disconnect if the user wishes). Since with data caps the provider must keep a running tally of what is used, the consumer can (at least IME) easily determine at any point in time where s/he stands. With some providers, additional data can be temporarily added to one's account (rather than paying at a higher overage rate) during a period. I used these tools and after a few months I had a good handle on our usage. --dg -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
* Felix Miata <mrmazda@earthlink.net> [02-03-20 16:28]:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it?
knemo will for a particular box, but not your lan. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 03. 02. 20, 22:26, Felix Miata wrote:
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month?
Add a dummy rule to your router's iptables. Every rule counts traffic. Like: 464M 489G forwarding_rule all -- * * 0.0.0.0/0 (464 millions of packets, 489 GB) You can reset the counter in cron every month if you want... regards, -- js suse labs -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Le 03/02/2020 à 22:26, Felix Miata a écrit :
How does one with unlimited/uncapped download bandwidth/data ISP service find out how much is being used in an average month? I expect to need to move soon, and cannot count on being able to find a provider without a cap in the locations I'm looking. I might have no choice other than Hughesnet. So, I need an idea how much I'm actually using. Is this something a router can track? Does a cable modem track it?
my provider gives me this on the modem admin interface (freebox) jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (9)
-
Bengt Gördén
-
Carlos E.R.
-
DennisG
-
Felix Miata
-
jdd@dodin.org
-
Jiri Slaby
-
Malcolm
-
Patrick Shanahan
-
Vinzenz Vietzke