Networking Forums

Networking Forums > Computer Networking > Linux Networking > Huge delay with ftp

Reply
Thread Tools Display Modes

Huge delay with ftp

 
 
David Ewer
Guest
Posts: n/a

 
      03-14-2005, 12:42 AM
I use Macromedia "Contribute" as a web editor. It takes the edits and
automatically publishes them to my RedHat Linux server, using FTP info that
I provide. I'm ftp'ing in from another Windows PC. It has always worked
like a charm. Lately however, it refuses to connect, just saying there was
a problem connecting. Basically, it seems to time out after about 20
seconds or so. If I connect with WSFTP, it does connect, but I notice it
takes about 40 seconds to a minute to connect. Connection used to be pretty
much instantaneous.

I have researched this long connection delay, and all the answers seems to
have to do with DNS and reverse lookup issues and such. However, I'm
connecting to a static IP address, not a domain name.

Any idea what could be going on here?

-Dave


 
Reply With Quote
 
 
 
 
Carl Fink
Guest
Posts: n/a

 
      03-14-2005, 02:56 AM
On 2005-03-14, David Ewer <dewer@n_o_s_p_a_m93.corporateimpact.ns.ca> wrote:

> ... I notice it takes about 40 seconds to a minute to connect.
> Connection used to be pretty much instantaneous.
>
> I have researched this long connection delay, and all the answers seems to
> have to do with DNS and reverse lookup issues and such. However, I'm
> connecting to a static IP address, not a domain name.
>
> Any idea what could be going on here?


Have you looked at the logs on the Red Hat server? Is ftpd running
from inetd or equivalent, or is it running as a daemon? If you try
to connect to the box from a completely different network location
(say from home) what's the delay?

How about traceroute? How long is the delay on pinging the server?

My goal here is to figure out whether the delay is in the network or
the server.
--
Carl Fink (E-Mail Removed)
Ask me about I-Con 24, April 8-10, 2005
http://iconsf.org
 
Reply With Quote
 
Scott Brown
Guest
Posts: n/a

 
      03-14-2005, 03:53 AM
David Ewer wrote:
> I use Macromedia "Contribute" as a web editor. It takes the edits and
> automatically publishes them to my RedHat Linux server, using FTP info that
> I provide. I'm ftp'ing in from another Windows PC. It has always worked
> like a charm. Lately however, it refuses to connect, just saying there was
> a problem connecting. Basically, it seems to time out after about 20
> seconds or so. If I connect with WSFTP, it does connect, but I notice it
> takes about 40 seconds to a minute to connect. Connection used to be pretty
> much instantaneous.
>
> I have researched this long connection delay, and all the answers seems to
> have to do with DNS and reverse lookup issues and such. However, I'm
> connecting to a static IP address, not a domain name.
>
> Any idea what could be going on here?
>
> -Dave


I had problems like this once. How did I fix it? I changed my FTP
Daemon. RedHat comes with ProFTPD by default (I think... Correct me if
wrong); I installed PureFTPD and it worked like a charm. A major
increase in speed.

Hope this helps,
Scott
 
Reply With Quote
 
Peter Greenwood
Guest
Posts: n/a

 
      03-14-2005, 10:16 AM
In article <NZ5Zd.32823$ZO2.28655@edtnps84>,
"David Ewer" <dewer@n_o_s_p_a_m93.corporateimpact.ns.ca> writes:
> I have researched this long connection delay, and all the answers seems to
> have to do with DNS and reverse lookup issues and such. However, I'm
> connecting to a static IP address, not a domain name.


Obvious suggestion - have you checked the DNS configuration? If one end or
the other is trying to use a name server that's been taken down or is
otherwise unreachable, that would explain it.

--
Peter Greenwood (E-Mail Removed)
http://www.pgid.co.uk
+44 1253 821678
 
Reply With Quote
 
David Ewer
Guest
Posts: n/a

 
      03-14-2005, 10:38 AM
It seems to be network related. I just called a friend and had him ftp in
via a DOS prompt, and the server immediately responded with a prompt to
enter the user name. On my own system, it waits about 35 seconds or so. I
have recently placed my own PC (not the Linux server) behind a firewall,
using a Linus 4-port router. I didn't think the firewall in the router
could be causing this problem, since my connection is out-going (or so I
thought), but I guess it is. Are there ports I should be opening on the
router?

-Dave

"Carl Fink" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 2005-03-14, David Ewer <dewer@n_o_s_p_a_m93.corporateimpact.ns.ca>

wrote:
>
> > ... I notice it takes about 40 seconds to a minute to connect.
> > Connection used to be pretty much instantaneous.
> >
> > I have researched this long connection delay, and all the answers seems

to
> > have to do with DNS and reverse lookup issues and such. However, I'm
> > connecting to a static IP address, not a domain name.
> >
> > Any idea what could be going on here?

>
> Have you looked at the logs on the Red Hat server? Is ftpd running
> from inetd or equivalent, or is it running as a daemon? If you try
> to connect to the box from a completely different network location
> (say from home) what's the delay?
>
> How about traceroute? How long is the delay on pinging the server?
>
> My goal here is to figure out whether the delay is in the network or
> the server.
> --
> Carl Fink (E-Mail Removed)
> Ask me about I-Con 24, April 8-10, 2005
> http://iconsf.org



 
Reply With Quote
 
David Ewer
Guest
Posts: n/a

 
      03-14-2005, 12:01 PM
Got it. I turned off the firewall, and that fixed the problem. Strange
that it took longer to connect, rather than just refusing the connection
altogether.

Thanks for your help.
-Dave

"David Ewer" <dewer@n_o_s_p_a_m93.corporateimpact.ns.ca> wrote in message
news:JIeZd.56937$fc4.48298@edtnps89...
> It seems to be network related. I just called a friend and had him ftp in
> via a DOS prompt, and the server immediately responded with a prompt to
> enter the user name. On my own system, it waits about 35 seconds or so.

I
> have recently placed my own PC (not the Linux server) behind a firewall,
> using a Linus 4-port router. I didn't think the firewall in the router
> could be causing this problem, since my connection is out-going (or so I
> thought), but I guess it is. Are there ports I should be opening on the
> router?
>
> -Dave
>
> "Carl Fink" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > On 2005-03-14, David Ewer <dewer@n_o_s_p_a_m93.corporateimpact.ns.ca>

> wrote:
> >
> > > ... I notice it takes about 40 seconds to a minute to connect.
> > > Connection used to be pretty much instantaneous.
> > >
> > > I have researched this long connection delay, and all the answers

seems
> to
> > > have to do with DNS and reverse lookup issues and such. However, I'm
> > > connecting to a static IP address, not a domain name.
> > >
> > > Any idea what could be going on here?

> >
> > Have you looked at the logs on the Red Hat server? Is ftpd running
> > from inetd or equivalent, or is it running as a daemon? If you try
> > to connect to the box from a completely different network location
> > (say from home) what's the delay?
> >
> > How about traceroute? How long is the delay on pinging the server?
> >
> > My goal here is to figure out whether the delay is in the network or
> > the server.
> > --
> > Carl Fink (E-Mail Removed)
> > Ask me about I-Con 24, April 8-10, 2005
> > http://iconsf.org

>
>



 
Reply With Quote
 
Carl Fink
Guest
Posts: n/a

 
      03-14-2005, 08:02 PM
On 2005-03-14, David Ewer <dewer@n_o_s_p_a_m93.corporateimpact.ns.ca> wrote:
> Got it. I turned off the firewall, and that fixed the problem. Strange
> that it took longer to connect, rather than just refusing the connection
> altogether.


I suspect Peter Greenwell nailed it. Your "router" is probably
serving as DNS server, and it's slow.

Easy to test: try connecting via IP address instead of name.
--
Carl Fink (E-Mail Removed)
Ask me about I-Con 24, April 8-10, 2005
http://iconsf.org
 
Reply With Quote
 
Philippe WEILL
Guest
Posts: n/a

 
      03-22-2005, 10:05 AM


David Ewer wrote:
> I use Macromedia "Contribute" as a web editor. It takes the edits and
> automatically publishes them to my RedHat Linux server, using FTP info that
> I provide. I'm ftp'ing in from another Windows PC. It has always worked
> like a charm. Lately however, it refuses to connect, just saying there was
> a problem connecting. Basically, it seems to time out after about 20
> seconds or so. If I connect with WSFTP, it does connect, but I notice it
> takes about 40 seconds to a minute to connect. Connection used to be pretty
> much instantaneous.
>
> I have researched this long connection delay, and all the answers seems to
> have to do with DNS and reverse lookup issues and such. However, I'm
> connecting to a static IP address, not a domain name.
>
> Any idea what could be going on here?
>



Many ftp server under linux do an ident request to the client
( tcp 113 )
if you have a firewall on your client or between you and the server that drop
ident paquet you have delay

There is many solutions to correct this

Authorize tcp ident on your client

Changing your ftp server for a version that doesn't do that

modifying ftp configuration to doesn't do that

for proftpd for example do in /etc/proftpd.conf

# Do not perform ident
IdentLookups off


or like i do on my server
filtering output ident request on server

iptables -A OUTPUT -p tcp --dport 113 -m state --state NEW -j REJECT
--reject-with tcp-reset

Sincerely
--
Weill Philippe - Administrateur Systeme et Reseaux
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Huge problem; new to this job plaidapplered Windows Networking 2 08-14-2007 08:51 PM
NTL wasting its huge investment joshidm@gmail.com Broadband 16 11-27-2006 01:12 PM
Huge upload rate on wireless network edwardmluk@gmail.com Wireless Internet 1 01-31-2006 05:13 PM
Probles with a huge list of open ports. Marios Home Networking 2 01-24-2006 09:02 AM
Huge request for info/help Johnny B. Linux Networking 5 12-07-2004 01:39 AM



1 2 3 4 5 6 7 8 9 10 11