LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2017, 09:59 AM   #1
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Rep: Reputation: Disabled
Internet data usage software


Hi
I have a MIFI device with 100GB data. The device homepage (192.168.1.1) also shows data usage, and here comes the problem. This month on 25th June, my internet suddenly disconnected. The device home was showing that I have used 91GB and still there are 9GBs left. Upon inquiry, the company representative told me that I have used all 100GBs and now have to wait till 1st July for package renewal. He also told me that the data usage report in device homepage is approximate (and not exact).
So my question that is there any network data usage (upload/download) monitoring software which I can use on my PC to monitor my data usage?
Regards
 
Old 06-29-2017, 10:18 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,308

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
heres my ifconfigs for my desktop and htpc:
Code:
[schneidz@hyper ~]$ ifconfig
enp0s10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.25  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::a3f5:e0e0:15e3:dde6  prefixlen 64  scopeid 0x20<link>
        ether 90:fb:a6:47:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 3119578  bytes 1322705825 (1.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2390918  bytes 424958877 (405.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Code:
[schneidz@xbmc ~]$ ifconfig wlp4s0
wlp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.105  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::2c20:5279:87f1:6bdf  prefixlen 64  scopeid 0x20<link>
        ether 18:5e:0f:9d:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 463430  bytes 620379805 (591.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 83224  bytes 12028364 (11.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
i think it resets everytime the network restarts ?
 
Old 06-29-2017, 09:16 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
The ISP might be adding transmission control, arp, boadcast, ACK, and other packets/characters not usually counted as data. OR, the ISP could be lying.
 
Old 06-29-2017, 11:46 PM   #4
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160Reputation: 1160
If you have only a single computer connected, then vnstat will get you close to the ISP numbers. If you have multiple computers connected, then many home routers these days will monitor usage. I use DD-WRT on my router. The usage reported on the router is always lower than the ISP's numbers, but as AwesomeMachine mentions, the ISP tracks at a different level than most home routers. Nonetheless the numbers are reasonably close.
 
Old 06-30-2017, 12:36 PM   #5
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Thanks
vnstat is good. How can I reset its statistics?
Regards
 
Old 07-01-2017, 09:34 AM   #6
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Wink

There is difference between modem statistics and vnstat data. Modem data for July 2017 is:
Code:
Total Volume: 434.28MB
and "vnstat -m" data is:
Code:
Recieved: 350.58 MiB
Transmitted: 19.67 Mib
Total: 370.24 Mib
Can anyone help me to understand this?
Regards
 
Old 07-01-2017, 10:30 AM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,308

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i dont have any experience but i think the issue would be if you have a laptop, htpc, video game console, tablet, smart cellular-telefone, ... and you only run vnstat on the laptop then you will probably miss a significant portion of your data usage.
 
Old 07-01-2017, 12:52 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Vnstat counts user data, that is, actual data. This is usually the most useful. But in your case it isn't. See post #3.
 
Old 07-01-2017, 01:04 PM   #9
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
From Post No. 3:
Quote:
OR, the ISP could be lying.
Agreed to that part.
 
Old 07-01-2017, 01:29 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
User data is the data content of the network traffic. But there is a lot of network traffic that isn't actual data. It's overhead of some sort or another. It is usually most useful to know the amount of actual data traffic, which is what vnstat gives you.

But the ISP wants as little traffic as possible while still giving you the amount they say they do. So, the ISP counts every byte--data content or not--across the network in your total.

If you want to understand better, install wireshark. Monitor some packets, and then look at the different sections of the packets. You'll see there's a lot of bytes within each packet that are not data.
 
Old 07-01-2017, 04:33 PM   #11
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
User data is the data content of the network traffic. But there is a lot of network traffic that isn't actual data. It's overhead of some sort or another. It is usually most useful to know the amount of actual data traffic, which is what vnstat gives you.

But the ISP wants as little traffic as possible while still giving you the amount they say they do. So, the ISP counts every byte--data content or not--across the network in your total.

If you want to understand better, install wireshark. Monitor some packets, and then look at the different sections of the packets. You'll see there's a lot of bytes within each packet that are not data.
Thanks a lot. I will definitely try wireshark to know about 'what going on here'
 
Old 07-01-2017, 07:28 PM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Read the docs for wireshark. You should not run it as root.
 
Old 07-02-2017, 03:24 AM   #13
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
Read the docs for wireshark. You should not run it as root.
OK. Thanks a lot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Usage Monitor :- Data Usage Monitor / Calculator in Linux jeevanism Linux - Software 1 12-05-2014 01:57 PM
DD-WRT Data Usage/Tracking Software...Pausing Data Record During Free Time surfninja Linux - Networking 0 01-04-2014 10:44 AM
how to get internet data usage in fedora ? santhosh_au Linux - Networking 2 09-07-2010 04:56 AM
Recommend a software to monitor internet usage firewiz87 Linux - Software 2 03-12-2009 07:37 AM
Newbie - is there any software for monitoring internet usage? therealkilkenny Linux - Software 1 12-12-2005 05:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration