Skip to main content

Internet Data Usage Quick Check

I use broadband connection and my service provider has a dedicated portal to check my data usage. The data usage portal is not instant. It takes couple of hours to update my usage report. I wanted something through which I can quickly know how much data I downloaded in that instant of time.
One nice way I found that, checking the received packets count in windows network connection status. Which I can easily access clicking the network icon sitting in system tray.

The connection status window clearly shows number of packets sent and received over the connected network for tracked duration of time. In most of the cases, there will be 1460 bytes in one packet we receive or send. Now I can calculate how much of Mega Bytes of data my system has downloaded by doing a simple mathematics.

Downloaded data in MB = (Packets received * 1460) / (1024 * 1024)

In Windows Vista, the connection status window directly shows the
number bytes sent and received, we no need to bother about bytes per packet stuff.

Though my requirement was fulfilled from above discovery, I just could not stop my self digging more.

In computer networking world, the maximum number of bytes per one packet referred as Maximum Transmission Unit (MTU). This is the specification for a given protocol which it can transfer maximum number of bytes per packet. The MTU is defined by the standard or determined at the connection establishment process. For faster network, MTU will be less and for slower network, MTU will be more to manage forthcoming packet lagging time.

Using simple “MTU Route” utility (which you can download here) you can figure out number of bytes per packet on your machine. When you download the utility, you get a zip file, on extraction you will get an executable which you have to run in DOS prompt issuing this command:

mturoute.exe -t

If you expect more speed from your network, you can tweak bytes per packet in your Windows XP system by adding new MTU registry entry.

Start -> Run -> regedit

Navigate to System Key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\
Interfaces\[Adapter ID]]

Value Name: MTU

Data Type: REG_DWORD (DWORD Value)

Value Data: Default = 0xffffffff (your tweaking value like 0x000005dc for 1500)

Here is the recommended values set
1500 bytes for Ethernet, DSL and Cable Broadband Connections
1492 bytes for PPPoE Broadband Connections
576 bytes for Dial-up Connections

Well, I just left my XP operating system to work with its default settings.
Above registry manipulation may cause bad network response for some network adapters so be careful. Please do not hold me responsible if something goes wrong in your machine from above mentioned settings as these steps are only recommended for expert and level above computer users.


nsangoye said…
Thanks Pavan... Was really helpful. I was wondering how to calculate my data usage and the Airtel guys wouldnt divulge as I am using an unlimited connection. Thanks again.
nsangoye, I am glad that you found it useful.
Gwyneth Suggs said…
*chuckles* A four year old post is still helpful. Thanks for doing the looking into this. I am looking to get one of the portable internet devices but wanted to know about how much data I typically use before I go in to purchase, that way I know better what monthly plan will work for me. This helped me out a lot!
Hello Gwyneth Suggs, Good to know it was useful. Thanks for your comments.

Popular posts from this blog

Windows forgets visual effects settings on log-out or reboot for non-administrator account

Steps given here worked for me with Windows 7 SP1. Hope you may find it useful.

Start -> Run-> cmd (press enter) -> type SystemPropertiesPerformance.exeThis gets you the "System Properties" window, go to  Advanced tab -> Performance Settings -> Visual Effects tab and choose "Adjust for best performance" and click OK. Note: While doing all these UAC doesn't show-up as all changes you are doing will be saved in your logged-in profile account.

Reference material used:

Feel free to comment your findings.

Hangfire with In-Memory Storage (ASP.Net MVC 4/5)

This is in continuation to my previous post: Hangfire with ASP.Net MVC : Simplest Code To Start with.

In this post we will see how Hangfire can be configured without the SQL Server as its backend for job scheduling, instead, manage all in-memory

1) Create ASP.Net MVC 4/5 Projects
2) in web.config file
3) Run Install-Package HangFire -Version 1.6.17 or visit here for latest version:
3) Run Install-Package Hangfire.MemoryStorage -Version 1.5.2 or visit here for latest version
4) I am simply updating a table with a primary key (auto incremented), and string field "StampTime" with current date and time.
5) Open Global.asax.cs and paste below shown code.
6) Run the app and check the database.

using Hangfire; using Hangfire.Common; using Hangfire.MemoryStorage; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using…

Why Akbar was Great?

I have fanatical interest to be acquainted with what made Indian emperors take influential decisions during their reign. Few great kings’ valuable decisions created a remarkable history.

When Akbar accepts the marriage proposal of Hindu King (Bharmal of Amer), he wishes to make an attempt to set an example for two culture and religions and convey the message of peace. Later, destiny takes him to the critical path of life having most depraved political and family oriented problems. Being a true great emperor, Akbar learns and conclude challenges by demonstrating his exceptional leadership qualities. With his verdicts, Akbar stands as an incomparable king of all time. “Jodha Akbar” – brings 16th-century incidents to life and shows beginning part of Akbar’s married life which was, in fact, a deal for political gain. This decision slowly unleashes Akbar’s loving life, internal dreadful politics, painfully desirous people around him and betraying family members.

Jalaluddin Mohammad Akbar is…