LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-07-2011, 07:05 AM   #1
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Rep: Reputation: 4
How to monitor and record downspeed from isp?


I am having problems with my isp--at&t.

AT&T in our area changed recently to fiber optics, and since then, although the down speed is supposed to be 6Mb, the down speed slows down to a fraction of this on occassions, and, also, ever since the change to fiber optics I started having connectivity problems (some URLs take forever to connect to--have to reload many times) that I did not experience before the switch, even though the down speed I had before was much lower.

Is there a simple way of how I could monitor AND record my down speed from at&t and whatever there is to determine my connections quality?

Thanks, Hearthstone.

Last edited by hearthstone; 10-07-2011 at 07:17 AM. Reason: fixing title
 
Old 10-07-2011, 07:40 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, you could use

Code:
wget http://www.la_red.co.uk/a_large_file.iso -o log
That will give you some indication of rate, just by looking at how much it's downloaded at what time.

Alternatively, you can use

Code:
curl -o /dev/null http://www.la_red.co.uk/a_large_file.iso 2> log
This gives you more indepth stats, but it uses a carriage return rather than a line feed ('\r' not '\n') so you'll need to convert those before it will look nice in most text editors

Hope this helps,
 
Old 10-07-2011, 11:47 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Hi hearthstone,

I have battled for years with ISPs about download speed. My current ISP Centyrylink (used to be Embarq) has generally been doing a good job. However, I still need to keep an eye on them sometimes. They have an ftp site for testing purposes. I test against it so as to remove one variable. It prevents their Tech Support folks from blaming the issue on some other speed test resource which I am testing against. That said, I would ask AT&T if they have a similar facility.

Here is a script I have setup to do testing at the click of the mouse
Quote:
#!/bin/bash
cd ~/Desktop
# poiuytrewq (jibberish) is the limit string of the "here" document
ftp -v 63.162.197.68 <<poiuytrewq
get test.5meg
cd upload
put test.5meg
bye
poiuytrewq
# wait for a key to be pressed to close the terminal
rm test.5meg
read nothing
I have added a reference into my .netrc file to provide the credentials
Quote:
machine 63.162.197.68
login ftp
password ftp
When I run the script it displays the up and down speed stats and then will exit when I press <Enter>.

On occasion I have modified the script to log the stats. Remove the "read" statement so it will close when done. Then schedule a job to run the command "speedtest.sh >> speed.log" (of course supply the paths to the script and the log file). Run it every so often and you will have some data to club Tech Support with.

Feel free to post back if you need any help sorting out the script.

Ken

p.s. Add a line such as
Quote:
echo $(date +%y/%m/%d_%r) >> speed.log
to the beginning of the script to document when each test run was started.
 
Old 10-08-2011, 04:47 AM   #4
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Original Poster
Rep: Reputation: 4
I should explain in more depth what it is that I want:
I was with AT&T for a couple of years and had the very basic DSL connection from them (very cheap--about $15.-/mo) and I was not very unhappy with it, even though the downspeed was only around 1/2 Mbs/s.

I went away to a different area with a different ISP and it was about the same with them. After a year came back, signed up with AT&T again, but now they have U-verse (fiber optics) with a downspeed of 6 Mbs/s, and although downloading is much faster on occasions, very often there is no connection at all, or some URLs do connect OK, but others (notably Yahoo, and sometimes Google) take tens of minutes to connect.

They did offer to test my connection at my place, but it would cost me $55.- a visit if they determined if the fault would lie with me--something that very rarely happens, they assured me, but for me it still would be a costly gamble; and what if the download speed was OK at the time of their visit?; nothing would be resolved then.

I don't know if the poor connectivity is really caused by them--the only way I could find out would be to sign up with a local Linux friendly ISP that I also had in the past, but had to give up, because the cost $40.- /mo.

However, I am considering going back to them, if I can be reasonably sure that my current problems with the fluctuating downspeed and the frequent bad connectivity is really caused by them.

So I need something that would monitor AND record the overall performance of AT&T, and also, somehow, that would prove that the bad connectivity that I experience with some URLs is caused by them.

Thanks, Hearthstone.
 
Old 10-08-2011, 07:25 AM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
Quote:
So I need something that would monitor AND record the overall performance of AT&T
To monitor the performance of AT&T, well actually the performance of AT&T's connection between the Internet and you, there must be some traffic flowing. An ftp test is a simple way to do that. I do not know if Centurylink restricts their ftp site to Centurylink IP addresses. It is easy enough to find out. Try the following manually in a terminal
Quote:
ftp 63.162.197.68
(enter ftp as the name and password)
hash
get test.1meg
bye
If that works you can script the process as I described previously, schedule the script and log the results. If you download the 1 MB file every 15 minutes for a couple of days and have a look at the results you should be able to document what is going on with the raw connection speed.

From the symptoms you describe it sounds like there may be a DNS resolution issue. I would recommend changing your DNS to something like OpenDNS. http://www.opendns.com/ and see if that improves things.

To step back a little... What do you have in place as far as a home network? Obviously there is a DSL modem. Do you have a router? Multiple PCs? If so, do you experience the issue on all PCs?

Ken
 
Old 10-08-2011, 07:42 AM   #6
Juako
Member
 
Registered: Mar 2010
Posts: 202

Rep: Reputation: 84
I use the vnstat to monitor/log total downloaded/uploaded bytes on my ISP connection (combined with conky for real time visuals and with a web script for extra data visualizations).

I think it can log speeds too.
 
1 members found this post helpful.
Old 10-11-2011, 04:41 AM   #7
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Original Poster
Rep: Reputation: 4
I consider this post as SOLVED--found vnstat as something that I, with my limited capabilities, can handle, perhaps ...

Thank you all!!

Sincerely - Hearthstone.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a software to monitor and give details on my ISP and internet connection fkasmani Linux - Software 5 06-22-2010 06:05 AM
Record / Monitor amount of traffic a user has used for ssh tunnelling? iamacup Linux - Networking 2 12-28-2009 02:53 PM
One Box ISP Solution To Run An ISP swamprat Linux - Software 1 05-08-2008 06:25 PM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
Changing ISP, apt-get can not see new ISP proxy linx win Debian 0 01-05-2005 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 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