Solved

How to measure Internet Connection Speed

Posted on 2002-03-20
3
399 Views
Last Modified: 2013-11-15
Please help me to find out byte transfer rate of an Internet Connection using Active server Pages.Any answer will be appreciated.
0
Comment
Question by:DeepthiJoseph
3 Comments
 
LVL 19

Expert Comment

by:webwoman
ID: 6883424
You can't. It's not a static number, and you have no way to get it.
0
 
LVL 18

Expert Comment

by:bruno
ID: 6883499
I'm pretty sure there is a way, because i know for streaming media, the server can automatically detect your connection speed and stream you the right file.


BRUNO
0
 
LVL 18

Accepted Solution

by:
mgfranz earned 20 total points
ID: 6883702
Maybe this will help;<HTML>
<HEAD>
<TITLE>Test Results</TITLE>

<META NAME="Cache-CONTENT" CONTENT="no_cache">
<META HTTP-EQUIV="Cache-CONTENT" CONTENT="no_cache">
<META HTTP-EQUIV="Pragma" CONTENT="no_cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<HEAD>
<style>
BODY {
     font-family : Arial, Helvetica, sans-serif;
}
</style>
<script language="javascript"><!--
time = new Date();
starttime = time.getTime();
// -->
</script>
<script>
<!--
time          = new Date();
endtime       = time.getTime();
if (endtime == starttime)
     {downloadtime = 0
     }
else
     {downloadtime = (endtime - starttime)/1000;
     }
if (downloadtime == 0)
     {downloadtime = .1;
      nextsize     = 50;
     }
else if (downloadtime < .2)
     {nextsize     = 500;
     }
else
     {
      nextsize     = 50;
     }
kbytes_of_data = 50; // data file size
linespeed     = kbytes_of_data/downloadtime;
kbps          = (Math.round((linespeed*8)*10*1.02))/10;
kbytes_sec    = (Math.round((kbytes_of_data*10)/downloadtime))/10;
dltime_add10  = Math.round((kbytes_of_data*1.15)/kbytes_sec);
dltime_sub10  = Math.round((kbytes_of_data*0.85)/kbytes_sec);
// -->
</script>
<BODY BGCOLOR=black TEXT=white LINK=blue vLINK=red aLINK=green>
<!-- you can either use a big image here, or a lot of ASCII text... Like this
_7NtOA"%.pY?=iwWYr)-F_s.l\"T|-oUJd"?AO4a
?OAAU?KlD?q"ZrI,n_O,?^pIFo~"?Uod"nzoavYY,
O6{?,,_OC`YYd~;hIA?.A?D3+9~_S3??vl?UcMI''r'
W?t-r*~Ep~0"_7%r_1_rAA ?t'"t$"o.OYT3'A
?jYO~T?t,"-Trr^=Y2%|~JIT_o UjjnN?~MCOAo3YA\Y
1.?W_?"IOx~??M~Y9[?e",,4NYE-r?A?r`-'O+N_eY
Y?nY{Y/[?k"?"~`,6,o O?AoB?IKYyEbRi,,:nTY%
?DW?5/ao?-.i-o,-Iy~txhFU-?nWr4T?O?O,?PY+^r
"xO_jOOT]]!-EFFA^,+O"-#3?O$~gsA?3',*??,DnU
I.Zj?IcMsge?n1Jm:d?an_YP%"r&?^?S++-y'&t??Ioj
#AOY~~+.i'-O'Yr??-I'6OE?AHr?l_wooEY-Y-b:i/?
~`_9IY-k/.'oExc?_A?s?YOAsxOu4oiI?YI,|yj?sv_
?EIXl~-JI'_r0?E,"~r`""?Utw?~!"AUy"U@x"Go
EO"%9E"K??8SSyIAOY%N_,UyI'"qAtLO~'rA#.{Ey,
oYUP]W,n-n,o4yR'o."y?Yo`Y]-~-O)yt"?)OME~_-x]By
3o-5-X?_7sE;b:+'C14-t.Bt]?o`dduU;aI(;VOOo#-OY
.O%O-,"k_lns_~&E,+A?o,"t-Yht_,1sF?;M?E-o?-
?Y$r'"aAo)YE?-X}~o+Y"Ox.Y??6oHtzQ"/S-gc/U
-->
<CENTER><img src="bigimage.jpg" border="0" alt="">
<BR><TABLE BORDER=0>
<TR ALIGN=center><TD COLSPAN=2><FONT SIZE=4><B>[ Your line speed ]<B></FONT></TD></TR>
<TR ALIGN=right>
<TD>Download start time: </TD><TD ALIGN=left><B><script><!--
document.write(starttime); //--></script></B></TD></TR>
<TR ALIGN=right>
<TD>Download end time:</TD><TD ALIGN=left><B><script><!--
document.write(endtime); //--></script></B></TD></TR>
<TR ALIGN=right>
<TD>Download time: </TD><TD ALIGN=left><B><script><!--
document.write(downloadtime); //--></script></B></TD></TR>
<TR ALIGN=right>
<TD>Download size in thousands of bytes: </TD><TD ALIGN=left><B><script><!--
document.write(kbytes_of_data); //--></script></B></TD></TR>
<TR ALIGN=right>
<TD>Throughput in Kilobits per Second: </TD><TD ALIGN=left><B><script><!--
document.write(kbps); //--></script></B></TD></TR>
<TR ALIGN=right>
<TD>Throughput in Kilobytes per Second: </TD><TD ALIGN=left><B><script><!--
document.write(kbytes_sec); //--></script></B></TD></TR>
</TABLE>
</CENTER>
</BODY>
</HTML>


There are a bunch of testing utilities available, I like this one too; http://www.verdeonline.com/speedtest.asp

Here is a list of all the good ones; http://economics.wustl.edu/computing/Bandwidth.htm
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dentrix G4 1 59
Pass through dll 2 81
cloning computer 13 82
Installation of Nessus Professional 5 94
I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question