Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why fast upload and slow downloads ?

 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I recently developed a file upload and download example. But I noticed that file upload takes less time and download takes lot of time. This same anywhere over the net. Eg. driveway.
Could anyone explain the difference in speeds...
nitin
 
Chris Klu
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say upload do you mean a client uploading a file to the server were the servlet is hosted?
 
Sagar Sharma
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is because in a typical ISDN/Dial UP connection there are set bandwidths for download and UPLOAD data. Since mostly WEB surfing involves download of data and not upload the download share of the bandwidth is always overloaded while the upload bandwidth is relatively more available.
for e.g. in a 64KB ISDN connection may be that 56 KB is dedicated for upload and 8 KB for download.
ADSL connections allow to change the quotas for the available bandwidth (download and upload based on the load that each mode is getting. So relatively in ADSL connections Download is faster since Upload Bandwidth is not used so much.

sagar
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx sagar,
Can u please give some more details about ASDL connections. i.e. How to get it, where to get it, what is the supported bandwidth...
Also, we developed an application using java technology and we are experiencing the same difference in speeds.
Does downloading require more communication with the server. I think the downloads are done in the following steps
(download means file transfer from server to client)
1. download request
2. request goes to the server.
3. server looks for the availability of file and file permissions.
4. an appropriate reply is sent to the client.
5. If the file is found u get a Save as dialog box.
6. if not it is handled....
upload means file transfer from client to server
1. request is sent to server to upload the file
2. server gets the input stream and reads the file
3. saves it to a specific folder..
please let me know if i am mistaken somewhere
nitin
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I m waiting for your replies ....
nitin
 
Chris Klu
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried uploading and downloading on different machines on different networks? If not I would suggest doing this. As Sagar mentioned upload network speeds can be faster than download network speeds. Also, consider this: the internet packets maybe traversing different paths to and from the server. In other words, it takes less time for the packets to go from the client to the server. Perhaps on the path from the server theres is a router that is lagging. Maybe comparing traceroute on client to traceroute on server would give you some clues.
Is this even going through the internet? Also, what types of files are you tranferring? How does the size of the file affect operation? Really there are lots of things that could be causing this.
Perhaps the client's hard disk is slow to write. Also, if the client is behind a firewall this will affect performance. The firewall could be checking each packet coming in but letting outgoing ones simplly pass through.
OK, I just read your first post again. So, that would rule out most of what I just wrote. The problem could be the web server or a network problem on the web host's end. If you can, try the servlet on another host.
Lastly, maybe your code is causing the problem. I would suggest testing with someone else's code. Use some examples from a book or grab one off the internet. See if that makes any difference. If it does then you know the problem is your code. Otherwise, it's some network/internet, hardware, or server problem.
 
Sagar Sharma
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Well I am in India were the ADSL (Asynchronous Digital Subscriber's Line) has not gained much popularity or has not been launched yet. I suggest that if u r in India you should contact DishNet (ISP) for the relevant details
That was all the knowledge I had about ADSL.
Cheers

sagar
 
Sagar Sharma
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Well I am in India were the ADSL (Asynchronous Digital Subscriber's Line) has not gained much popularity or has not been launched yet. I suggest that if u r in India you should contact DishNet (ISP) for the relevant details
That was all the knowledge I had about ADSL.
Cheers

sagar
 
Nitin Dubey
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
thanx for your replies...
Well, its now more clear why uploads and downloads are faster over the net. But what is the reason for uploads and downloads within the intranet.
I have win2000 on both the machines that r within the same domain, same server. My server program is running on one of the machine and client is on another machine. Both the machines have same configuration. Even though the difference ......
I have tried with the code from net for download and from jason hunter book for upload.
can u think of any other reason ?
nitin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic