Strange Fedora Core 2 network behavior question
Ok, I'm running Fedora Core 2 on a P-II 333 MHz box w/ 256 MB of RAM and a 20GB HDD. The box is serving as a proxy server for our DSL Internet connection and serves about 15 or so machines. The CPU load averages are 0 and no swap is being used even though 2GB of swap is reserved. Squid 2.5-STABLE7 is being used as the caching HTTP proxy. Cool.
Here's the situation: normally when accessing websites through the proxy, sites load fast. If content is found in the Squid cache, it loads even faster. Even with 10 users connected to the proxy, performance is excellent.... UNTIL for some reason proxy connections seem to "stall" and the browser will appear to "spin" for a bit. Then suddenly the problem resolves itself and all is well again. Strange, indeed. I'm trying to troubleshoot this without much success. Sometimes, the lag is due to slow DNS lookups or it at least appears to sometimes be the case. Sometimes, the lag is due to the remote site being busy. I confirm this by access the Squid cachemgr to get info on the state of Squid and that responds very quickly, which leads me to believe the remote site is sometimes the culprit. The most bizarre problems involve "stalled" access to the Squid cachemgr as well. IN some cases, I'll try to access a fast site, like Amazon.com or something like that,and the browser will just "spin". Then I'll try to access the Squid cachemgr and that access will "spin" too! Then everything will load quickly. When the browser "spins" like this, I ping various sites from the proxy itself (logged in via SSH) to see if I can isolate the bottleneck and sometimes the pings won't return any replies! I can ping a raw IP address and get no replies and suddenly get replies back starting with seq #40 or something, meaning the first 39 packets didn't get successfully sent. I've got LinkSys (I believe) PCI adaptor (eth0) (uses the Tulip driver) and a 3COM 3C905B PCI adaptor (eth1) in the box. The LinkSys adaptor is operating in half-duplex mode and is connected to the LAN and the 3COM card is connected to the Netopia DSL modem. Here is ifconfig output: Code:
eth0 Link encap:Ethernet HWaddr 00:04:5A:64:93:28 Thanks.... Peace... |
Ok, I think I've got my problem figured out. Stupid me, I had my old proxy plugged into the same DSL router as the new one and they BOTH had the same IP address. Doh! I figure some of my traffic was going to the old proxy that is basically dead eevn though it's still powered on.
Now that I've disconnected that box, things seem to be working more smoothly but I need to do more testing. :) Peace... |
All times are GMT -5. The time now is 02:31 AM. |