• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to calculate broadband (download & upload ) speed using java / javascript  RSS feed

 
saravanan sambandam
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My requirement is simple but pretty complex.

I need to show them the UI with download and Upload speed using java web application.

I searched in google.com, here there is no clear sample code.

Please share me some useful link so that i can able to go ahead.


Thanks
ss
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure JNLP would be the preferred technology here. I'll move the topic to the Java in General forum for now.
 
Omkar Shetkar
Ranch Hand
Posts: 100
2
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one of the way could be,
- download a file for a fixed amount of time(may be 10 sec.). Then calculate the download speed as (amount of bytes downloaded)/(time)
- similarly for upload speed

To achieve these we can use Java io APIs.

Not sure whether we have any direct APIs for measuring download or upload speed.
 
saravanan sambandam
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Give more information about upload & download speed calculation.

suppose i want to download 1MegaByte(MB) file.
its taking 10-mints to download = 1-mints = 60 second = 10*60 = 600 seconds.
My internet speed is 512kbps(kilobit per second)

so how to calculate? can you please tell me the formula.

Thanks
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saravanan sambandam wrote:
suppose i want to download 1MegaByte(MB) file.
its taking 10-mints to download = 1-mints = 60 second = 10*60 = 600 seconds.
My internet speed is 512kbps(kilobit per second)

so how to calculate? can you please tell me the formula.


Errr... 1 MByte in 600 seconds at 8 bits per byte (1000000 x 8 / 600 )!!! A simple calculation BUT BUT BUT that will only apply to that one file. Your broadband speed just defines an upper limit with the actual speed limited by the slowest part of the pipe between you and the computer hosting the file you are downloading.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!