Forum Moderators: phranque

Message Too Old, No Replies

Network Download Speeds From Apache Are Low

2kbs max download speed?

         

jayto

11:04 pm on Feb 6, 2008 (gmt 0)

10+ Year Member



Does anyone know why I have such low download speed when I try to download things from my server to my computer?

jdMorgan

12:56 am on Feb 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Where is your server, on your LAN, on a WAN, at a hosting company in Tortuga? How do the HTTP and FTP download speeds compare? How many users and simultaneous requests is your server handling -- 100 per second, or ten per minute? What kind of 'pipe' does your server have to the internet backbone, a 1Mbps ethernet, or a multi-Gigabit OC48?

Jim

jayto

12:22 am on Feb 8, 2008 (gmt 0)

10+ Year Member




Hi and thanx for replying. My server is on LAN and I use Comcast high speed internet with the basic plan. HTTP and FTP speed are both the same (around 0-3kbps). I am not sure how many requests my server is handling but since it is a problem with FTP and HTTP I dont think that is the problem. I use a wireless netgear B router(kinda old).

jayto

8:34 pm on Feb 8, 2008 (gmt 0)

10+ Year Member



Any ideas?

jdMorgan

1:14 am on Feb 9, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How are requests routed (step by step) to your server? Are you accessing the site via domain name using an external proxy, or by a LAN IP address, or by a local DNS system (or hosts files on each client)? Or are you port-forwarding to a separate subnet at the gateway/router?

Sometimes the network is simple, and we might just guess. But then again, a recent poster described his LAN clients as multi-homed with two internet gateways so he could "go out on the Web" through one gateway, and "come right back into the local network" to connect to his server through the other gateway -- without having to use an external proxy to "turn the request around and send it back in" to his LAN.

So the answer depends on a lot of factors...

Jim

jayto

12:40 am on Feb 10, 2008 (gmt 0)

10+ Year Member



I am not sure what you mean by requests routed to my server. I just have a basic apache server with no modified options accept for the modified sharing directories and password, I access it using my external IP address. I have forwarded all the ports correctly (port 80 forwarded to my static IP). Does this help to diagnose the problem? Sorry but I am a noob to networking so some of my info might not be what you needed.

jdMorgan

1:47 am on Feb 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> I access it using my external IP address

That's probably the problem right there. It should be impossible to access your own machine using your WAN address. This is because you're asking the router to make a connection to "the internet" going out to find a server, but that server is actually your own, and it's inside your local network. So you're asking the router to make both an outgoing connection and an incoming connection at the same time for the same HTTP request. This should be impossible.

In normal cases, people who want to test using a local server would use an external proxy to "turn the connection around" and make an incoming connection on their behest. So, you'd connect to the proxy, the proxy would make a connection back to your server, forward the original request, accept the response from your server, and then pass it back to your browser using the original proxied connection.

However, it appears that something (I don't know what, but possibly your router) is 'figuring out' the situation, and eventually falling back to some mechanism to make a loopback connection.

The usual way of avoiding having to use an external proxy is to define your domain name locally in your 'hosts' file (That's the whole filename, just 'hosts' with no extension). On WinXP it is usually located in C:\windows\system32\drivers\etc\hosts

Add a line that reads:
127.0.0.1 <yourdomainhere>.com
and also:
127.0.0.1 www.<yourdomainhere>.com
if you also use the 'www' subdomain.

Now when you request a resource using your domain name, the hosts file provides the DNS for your browser, overriding the normal DNS system, and you should get an instant response since the request is actually looped-back inside your own PC.

If you have other PCs on your network that need to access your server, then you'll need to modify their hosts files as well, pointing your domain name to the LAN IP address of your server PC. I should add that the 'hosts' file is universal; It's location varies, but it is always named 'hosts' and is always present on all machines that can connect to the internet, no matter what operating system is used.

If you later move the site to an external host, then you'll need to delete those hosts file entries to re-enable normal DNS lookups for your domain.

Jim

jayto

4:02 pm on Feb 10, 2008 (gmt 0)

10+ Year Member



Thanks I am now able to download files from my server to my computer and also to the computer on the LAN. What about computers that are not inside my LAN? If I used my external ip to access the server from outside my LAN would the speeds be ok?

jdMorgan

7:28 pm on Feb 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem was caused by an 'undefined loopback' as described above. It's actually surprising that it worked at all, instead of just being slow.

I suspect that there have never been any problems accessing the server from the WAN, as long as your router is set up correctly. Test it and find out using a proxy as described above.

Jim

jayto

8:59 pm on Feb 11, 2008 (gmt 0)

10+ Year Member



i get a download speed of 3.5mbps with the proxy and then I got someone to test it outside the LAN and they only got 40kbs. :-(.

jdMorgan

9:42 pm on Feb 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Was the proxy outside your LAN, too? I mean, that was rather the point of using a proxy...

If you are on some non-commercial ISP service, be aware that they intentionally limit upload speeds to discourage customers putting servers onto a network that is asymmetrical by design, such as ADSL. ADSL is designed for use by clients, not servers, so it has small 'upload' speed compared to 'download' speed. When someone (a client browser) requests a page from a server on such a network, the client is 'downloading' but the server is 'uploading'.

I don't know why you'd get a different speed result between yourself using an external proxy server and someone else just browsing -- The speeds should be comparable.

Jim

jayto

7:37 pm on Feb 12, 2008 (gmt 0)

10+ Year Member



I actually think I can take it from here. Thanks!