Author Topic: [ SOLVED ] Poor internet speed after ISP changed trunk carrier to the island  (Read 728 times)

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
I am having a terrible internet speed now for 2 weeks. The ISP made changes to a trunk connection serving the Island of Tasmania. Long story and the new carrier company is working on the problem.

My ISP has a simple web based speedtest, when you are a member each time you click the a button the result is stored in my member page area. This is fine but since my speed yo-yo between 200 kb/s to 2000 kb/s over a 12 hour period I am looking for some program that can automatically test at a variable regular interval.

I have one pc running all the time during wake hours and play Radio Nederland Classic FM which happen to "studder" when force into "buffering" then I will quickly do a re-test when I am actually inside but when out in the garden I will miss hours.

I have done a quick search on forum but have not found anything yet. At the moment it is not bothering me but in Feb 2013 and onwards when I expect to be more active again this will be a problem.

Can anybody suggest any programs ?
« Last Edit: November 19, 2012, 02:03:36 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #1 on: November 07, 2012, 06:18:37 AM »
i don't remember a local tool to test speed connection

i use speedtest.net, the browser version on the pc and the app version on my smartphone
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5331
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #2 on: November 07, 2012, 01:49:22 PM »
It is a long time between now and Feb. Lets hope they have their issues sorted out before then.
« Last Edit: November 07, 2012, 01:50:59 PM by YouCanToo »




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #3 on: November 07, 2012, 02:33:57 PM »
i remember some years ago, the interoceanic fiber optic cable was damaged and basically a eighth of the speed for most of us were available, someone said as a joke that it was a shark biting the cable, later i heard that this is possible, sharks do bite those cables

the problem was fixed in 1 week

if they have to replace the whole cable this can take up to 6 weeks but normally is just pull the cable form the bottom of the ocean and join again both sides, they will have to fix the problem soon, it cant take them 4 months!

now, you say that you have between 200 and 2000 kbps, i have 128 and can do alot, you will be ok  ;)
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10646
  • MLUs Forever!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #4 on: November 07, 2012, 04:59:12 PM »
I am wondering what use the information is to you?

As the connection varies, and if you find some means of setting an alarm and notifying you, of low speed, what use will you make of it?

.....  just wondering .....

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #5 on: November 07, 2012, 08:24:53 PM »
Just17

A couple of things:

1.. Speed has particular interest because of protocol studies that I do now and then using wireshark and then decipher the massive streams of data.  I should have set up a separate system and installed wireshark in this case but I am unable to afford the time.  So just some simple recording of speed tests or pings, they seem to go together. This can run in the coming weeks.

2..  I think you can imagine ISP's forum posts are getting emotional from non technical people.  I have just registered with the ISP's forum and would like to give extended facts when I post.  The single snapshots within seconds of each other can vary widely.

3..  As I am easy going and have had a great connection at 1500/256 kb/s generally running steady around 1200 kbp/s I must admit I have my limits so if I have daily evidence that I am unlikely to get back to my former speeds I will change provider. I hate the hassle this causes so I want solid evidence to prevent changing just because of emotional upset.  So by the time I find something the whole thing may have blown over ( and I will feel good)  8)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10646
  • MLUs Forever!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #6 on: November 08, 2012, 02:47:24 AM »
Thanks wedgetail, I wish you luck with getting sorted  ;)

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #7 on: November 08, 2012, 07:10:45 AM »
T6
Well must say you are easy going, the 128 you mention is approx 12.8 kBytes/sec in my speak   ;D  I assume you meant about 1000 kb/s I am a bit easy in my conversions just using a factor of 10 which is close enough for me as a first guess.

Just17
I have had some luck I think in getting something that I can control from command line. Then a script file probably can take care of the interval. First I need a helping hand to decipher something that goes wrong. On the following address  a script can be downloaded::

http://forum.xda-developers.com/showthread.php?t=1229468

Script content is quite simple, I almost understand it:

Code: [Select]
#!/bin/sh

case "$1" in
    a) URL="http://63.247.71.196/100MB-atlanta.bin"
        ;;
    f) URL="http://64.71.152.17/100MB-fremont.bin"
        ;;
    n) URL="http://207.192.68.6/100MB-newark.bin"
        ;;
    l) URL="http://109.74.207.9/100MB-london.bin"
        ;;
    *) URL="http://69.164.200.100/100MB-dallas.bin"
        ;;
esac

BEFORE_TIME=`date +%s`

wget -O testfile $URL

AFTER_TIME=`date +%s`
FILE_SIZE=`ls -l -a testfile | awk '{ print $4}'`
# wedgetail changed the 5 to a 4
# seen in http://forum.xda-developers.com/showthread.php?t=1229468
TOTAL_TIME=$(($AFTER_TIME - $BEFORE_TIME))
MB_FILE_SIZE=$((($FILE_SIZE / 1048576) / $TOTAL_TIME))
kB_FILE_SIZE=$((($FILE_SIZE / 1024)  / $TOTAL_TIME))
Mb_FILE_SIZE=$(((($FILE_SIZE / 1048576) * 8)  / $TOTAL_TIME))

echo "Average download Speeds:"
echo "$MB_FILE_SIZE MB/s"
echo "$kB_FILE_SIZE kB/s"
echo "$Mb_FILE_SIZE Mb/s"

# rm -f testfile
# wedgetail have left the downloaded test file

Others had problems with this, which seemed fixed after changing the $5 to $4, did not work for me, as seen I don't get the echo lines properly.  A curiosity and I am sure  it is a simple thing but I am not crash hot in scripting  ;D  Please some enlightenment

Result of my run from root konsole::  
Quote
[root@localhost yaralla-speedtest]# ./speedtest.sh f
--2012-11-09 00:40:33--  http://64.71.152.17/100MB-fremont.bin
Connecting to 64.71.152.17:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘testfile’

100%[===========================================================================================================>] 104,857,600  105KB/s   in 9m 53s

2012-11-09 00:50:27 (173 KB/s) - ‘testfile’ saved [104857600/104857600]

Average download Speeds:
0 MB/s
0 kB/s
0 Mb/s

[root@localhost yaralla-speedtest]#


By the way the 9min 53 seconds is not bad at all but we are now almost 1 in the morning

The test just before, where I was using $5 in the script, with no sensible echo output, the speed: 2012-11-09 00:30:17 (70.2 KB/s)
An illustration of how the speed can change. Considering the distance is crossing the pacific ocean to Australia I am nevertheless impressed for my connection.

I can use this test I think to download different files from my home page at the ISP which is really what I need. For that I would then need to tweak it so that it autoruns at regular interval that I can set.

Now I have however an upmarket version of speed testing that will be the next post because I am stuck, this requires perl5 looking in synaptic I see too many php5 and have no clue which to load. ( to be continued at some stage  :D )

Afterthought:  The way the topic will be going, this is probably not the best section ?
« Last Edit: November 08, 2012, 07:22:37 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10646
  • MLUs Forever!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #8 on: November 08, 2012, 07:45:11 AM »
Quote
The problem is that even after changing the $5 to $4 I don't get the echo lines properly.  I am sure that it is a simple thing but I am not crash hot in scripting


Hardly surprising ...  $5 gives the size of the file and $4 gives the group .....  the size is used in later calculation.

The question to ask is why did you change it  :D

Personally I think the file size is very big, unless you are on a very fast connection.

Also the London one did not connect for me.

In a small test here I only enabled one file to be downloaded .....  it was saved in testfile and the results were shown in the terminal .....  well some of them .....  I forgot to change the $4 to $5 before the test!  :D

EDIT:
          Corrected the $4 to $5 and ran it again.
The results here from    http://63.247.71.196/Tailing-Aaron.mov   (I decided to grab something useful in the test  :D )  were as follows


Average download Speeds:
0 MB/s
466 kB/s
3 Mb/s

The calculations are not accurate .....  no decimal places.
My average during that d/load was  3.6Mb/s

I also see no benefit in the first MB/s figure ..... it should be  .45MB/s  ....  but the calcs do not include decimal places.

You might be better off storing the average speed in a file for later perusal.

« Last Edit: November 08, 2012, 08:15:03 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #9 on: November 08, 2012, 08:51:46 AM »
i was talking about kilobytes, not kilobits, 128 kilobytes per second
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10646
  • MLUs Forever!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #10 on: November 08, 2012, 09:17:18 AM »
I made some minor changes to that script for clarity .....  as I found the variables used were confusing.
Also I arranged for the result of the test to be stored in a results file along with the date and time.

I only saved the  kB/s  speed as that is what is used mostly here ....  but it is easy to add others.


Code: [Select]
#!/bin/sh

case "$1" in
    a) URL="http://63.247.71.196/100MB-atlanta.bin"
        ;;
    f) URL="http://64.71.152.17/100MB-fremont.bin"
        ;;
    n) URL="http://207.192.68.6/100MB-newark.bin"
        ;;
    l) URL="http://109.74.207.9/100MB-london.bin"
        ;;
    *) URL="http://69.164.200.100/100MB-dallas.bin"
        ;;
esac

BEFORE_TIME=`date +%s`

wget -O ~/testfile $URL

AFTER_TIME=`date +%s`
FILE_SIZE=`ls -l -a ~/testfile | awk '{ print $5}'`

TOTAL_TIME=$(($AFTER_TIME - $BEFORE_TIME))
MB_per_Sec=$((($FILE_SIZE / 1048576) / $TOTAL_TIME))
kB_per_Sec=$((($FILE_SIZE / 1024)  / $TOTAL_TIME))
Mb_per_Sec=$(((($FILE_SIZE / 1048576) * 8)  / $TOTAL_TIME))

echo "Average download Speeds:"
echo "$MB_per_Sec MB/s"
echo "$kB_per_Sec kB/s"
echo "$Mb_per_Sec Mb/s"

touch ~/speed-results.txt
echo "$kB_per_Sec kB/s       $URL    " `date` >> ~/speed-results.txt

 rm -f  ~/testfile

The terminal output looked like this (the 'f' determines that the Freemont URL should be used)

Code: [Select]
[user@XPS ~]$ /home/user/d-load-test.sh f
--2012-11-08 16:03:44--  http://64.71.152.17/100MB-fremont.bin
Connecting to 64.71.152.17:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘testfile’

100%[===============================>] 104,857,600  482KB/s   in 3m 34s

2012-11-08 16:07:18 (479 KB/s) - ‘testfile’ saved [104857600/104857600]

Average download Speeds:
0 MB/s
478 kB/s
3 Mb/s
[user@XPS ~]$

...  and the results file contained one line

Quote
478 kB/s       http://64.71.152.17/100MB-fremont.bin     Thu Nov 8 16:07:18 GMT 2012


I would be inclined to try to find a much smaller file to test with .....  maybe 10MB rather than 100MB.

« Last Edit: November 09, 2012, 07:32:51 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #11 on: November 08, 2012, 03:48:12 PM »
Just17
You are correct that I should have used $5, but since this did not work and the same problem was reported by some users in the comments on the site I linked to I just quickly changed to $4 as they had done.  This worked for some.

However I have shaken a few more grey cells into action this morning and figured that the $x means in this case the column x in the output from ls -l -a

Quote
[root@localhost yaralla-speedtest]# ls -l testfile
-rw-r--r-- 1 root root 104857600 Dec  8  2009 testfile
[root@localhost yaralla-speedtest]#


The red being the 5 column, this has thrown up another problem it seems in my case, mystifying.  I repeated with $5 still no go. Will perhaps come back to this in a coffee break.   ;D

Like your concept and have run it twice, the saved result

Quote
226 kB/s       http://69.164.200.100/100MB-dallas.bin     Fri Nov 9 09:30:11 EST 2012
228 kB/s       http://69.164.200.100/100MB-dallas.bin     Fri Nov 9 09:45:33 EST 2012


Did not realise the results would be stored additive, just what I would like.

In konsole output,  I am getting some freebies when I run it.  There is something odd with my system I think   8)  ( more when I have time)
« Last Edit: November 08, 2012, 03:52:42 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10646
  • MLUs Forever!
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #12 on: November 08, 2012, 03:52:40 PM »
All I can say is that the script I posted above worked here on PCLOS KDE.

If you want to see where it is going wrong and get an output from the terminal you could add as the second line in the script

set -x

so it reads

Code: [Select]
#!/bin/sh
set -x
case "$1" in
    a) URL="http://63

It should then report the error/s if any.

Don't forget to use the letter corresponding to the server you wish to contact as part of the console command .......

d-load-test.sh f
« Last Edit: November 08, 2012, 03:55:15 PM by Just17 »
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #13 on: November 08, 2012, 03:54:52 PM »
Just17
Yes I assumed it was working fine for you, but must get out and work on that fence, I am straying, plus my wife is off the crutches and looking hard at me.  ;D 
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Online wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2435
  • Any Bugs in site?
Re: Poor internet speed after ISP changed trunk carrier to the island
« Reply #14 on: November 09, 2012, 04:46:00 AM »
I have been looking harder at the code and made some changes, you are quite right when my speed drops about 10 times then a 100MB file is a long time to wait.

Presently I am using my PCLinuxOS mirror where I can select any of the rpm packages, I select what seems a suitable size, and add a new "server":

Quote
........
    b) URL="http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm"
        ;;

............


Ah yes, I have added the set -x in the script as the program is defying my deciphering in the 3 echo lines. Here is the konsol output:

Quote
[gert@localhost yaralla-speedtest]$ ./speedtest_just17.sh b
+ case "$1" in
+ URL=http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm
++ date +%s
+ BEFORE_TIME=1352460119
+ wget -O /home/gert/testfile http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm
--2012-11-09 22:21:59--  http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm
Resolving mirror.aarnet.edu.au (mirror.aarnet.edu.au)... 202.158.214.106, 2001:388:30bc:cafe::beef
Connecting to mirror.aarnet.edu.au (mirror.aarnet.edu.au)|202.158.214.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1337921 (1.3M) [application/x-rpm]
Saving to: ‘/home/gert/testfile’

100%[======================================================================================================>] 1,337,921   25.2KB/s   in 50s    

2012-11-09 22:22:49 (26.2 KB/s) - ‘/home/gert/testfile’ saved [1337921/1337921]

++ date +%s
+ AFTER_TIME=1352460169
++ ls -l -a testfile
++ awk '{ print $5}'
+ FILE_SIZE=104857600  <<-------------- <<< -----------------  I don't quite get this, a 100 MB size
+ TOTAL_TIME=50
+ MB_per_Sec=2
+ kB_per_Sec=2048
+ Mb_per_Sec=16
+ echo 'Average download Speeds:'
Average download Speeds:
+ echo '2 MB/s'
2 MB/s
+ echo '2048 kB/s'
2048 kB/s
+ echo '16 Mb/s'
16 Mb/s
+ touch /home/gert/speed-results.txt
++ date
+ echo '2048 kB/s       http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm    ' Fri Nov 9 22:22:49 EST 2012
+ rm -f /home/gert/testfile
[gert@localhost yaralla-speedtest]$


I think the 100 MB file size is picked up because the test is run from user konsole, and the script remembers the result from a root konsole.

Yeah, I forgot the server suffix selecting a few times, but it did not take me long to recognise that Dallas was not aarnet

Edit:
I found what was the problem, I need ~/testfile in the line FILE_SIZE=`ls -l -a ~/testfile | awk '{ print $5}'`
.  I seem to have an aversion to the ~ can't get it into my head that it simply represents /home/user or in this case /home/gert Well should remember for about a week.

The result from the cumulative file now:

Quote
43 kB/s       http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm     Fri Nov 9 23:07:42 EST 2012
30 kB/s       http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm     Fri Nov 9 23:09:09 EST 2012
45 kB/s       http://mirror.aarnet.edu.au/pub/pclinuxos/pclinuxos/apt/pclinuxos/2010/RPMS.kde/kate-4.9.2-1pclos2012.i586.rpm     Fri Nov 9 23:18:12 EST 2012


Dismal figures when sometime during the night I will get 60 times more.
« Last Edit: November 09, 2012, 04:50:50 PM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen