[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9105.0. "delay problem in an ftp connection " by MLNCSC::ZAGHI () Tue Mar 11 1997 08:59

Hi ,

a customer of mine has a problem using ftp .

CONFIGURATION :
-------------

SYSTEM_A -> ALPHA 3000/800 , Digital Unix V 3.2g

SYSTEM_B -> ALPHA 3000/800 , Digital Unix V 3.2c

Other Unix systems like AX , HPux.

PROBLEM :
-------

when he use FTP from SYSTEM_A (ftp client) to SYSTEM_B (ftp server)....

   FTP> open SYSTEM_B  .....

It works fine .

but when he use FTP from SYSTEM_B (ftp client) to SYSTEM_A (ftp server) ...

   FTP> open SYSTEM_A

he has to wait at least 1 minute before to receive the login prompt to enter 
Username and Password .
The same thing happens if he tries to open SYSTEM_A (via ftp) from others no DEC
Unix systems.

All works fine if SYSTEM_A is an FTP client .

There are not problems if SYSTEM_A is a server for other tcp/ip services ( for
example telnet ) .

Nothing is reported in daemon.log file (customer has added -d option in ftpd
definition in inetd.conf file ) . 

It is important to say that after an ftp client is finally connected to 
SYSTEM_A any command that he does at ftp prompt works without delay.
Moreover there is not any delay in getting back ftp prompt after the client 
has entered username and password .

Could anyone give me any tips to explain this delay in the SYSTEM_A ftpd
response ?  

Many thanks in advance ,

Regards 

Paolo
(CSC , Milan)


 
    
T.RTitleUserPersonal
Name
DateLines
9105.1name resolution?GIDDAY::STRAUSStalking through my binocularsTue Mar 11 1997 16:1814
    Paolo
    
    Do other connections like telnet or rlogin show the same behaviour as
    ftp?
    
    And how is name resolution done?  Is it local, YP, or BIND?
    Look in /etc/svc.conf
    
    Perhaps the delay is because of the time taken to resolve the system
    name into a network address.
    
    Just a guess, hope it helps
    
    	leon
9105.2reply to 1MLNCSC::ZAGHIWed Mar 12 1997 08:0347
Hi Leon ,

Here are the answers to your questions ....

>> Do other connections like telnet or rlogin show the same behaviour as
>> ftp?

No , both telnet and rlogin work fine ( without any delay).

>> And how is name resolution done?  Is it local, YP, or BIND?
>> Look in /etc/svc.conf

the entry "hosts" of his /etc/svc.conf is the following...

hosts=local,bind,yp

>> Perhaps the delay is because of the time taken to resolve the system
>> name into a network address. 

The customer tried to use FTP on the node that has the problem , that is ,
the node was both "ftp client" and "ftp server" .
Moreover he used the internet address instead of the internet name ....

 #ftp xxx.yyy.zzz.www  

but the behaviour it's the same (there is a delay in presenting the login
request) 

At last he used 0 instead the internet address

 #ftp 0

but he get a delay too .


Do you have any other idea ? 

Many thanks for your cooperation   

Regards ,

Paolo 
(CSC , Milan )
     

    
9105.3ftpd -d ?NETRIX::"[email protected]"leon straussWed Mar 12 1997 16:189
Paolo

I don't have any more ideas :-(
Perhaps you could try running ftpd
with the -d debug flag to see if that
tells you anything.

	leon
[Posted by WWW Notes gateway]
9105.4BIGUN::nessus.cao.dec.com::MayneChurchill's black dogWed Mar 12 1997 17:2417
Using

	# ftp a.b.c.d

instead of

	# ftp ftpserver

doesn't necessarily gain you anything. The server may be trying to a reverse 
name lookup on the socket connection, and thus you get bitten anyway if there's 
a name resolution problem. However, I'm pretty certain telnetd would be doing 
this as well.

Just for kicks, do an nslookup a.b.c.d (or d.c.b.a.in-addr.arpa depending on 
versions) to see if reverse name resolution is working properly.

PJDM
9105.5delay problem in an ftp connectionMLNCSC::ZAGHITue Mar 18 1997 08:2817
Hi ,

there are no problems with other tcp/ip services ( like TELNET , RLOGIN....),
so I think cannot be a name resolution problem .

I'd like to use tcpdump command to monitor ftp packet to and from the node .
Is the above command applicable in this situation and what could be the syntax
to get ftp packet ? 

Many thanks for your cooperation ,

Regards 

Paolo 
(CSC,Milan)    

9105.6anybody there ?MLNCSC::ZAGHIThu Mar 20 1997 10:581
    
9105.7tcpdump is the right toolSMURF::DUSTINThu Mar 20 1997 13:446
    Just run "tcpdump host yourname" and see what comes out.
    You need to run pfconfig +c -a first, to allow monitoring
    your own packets.
    
    John
    
9105.8See note 2328NETRIX::"[email protected]"Ric WermeThu Mar 20 1997 21:134
Note 2328 has information about building a kernel with tcpdump
and various useful tcpdump commands.  The man page has a lot
of information too.
[Posted by WWW Notes gateway]
9105.9many thanks for your tipsMLNCSC::ZAGHIMon Mar 24 1997 09:341
    
9105.10I did a new test ....MLNCSC::ZAGHIMon Apr 07 1997 12:58109
Hi,

reminding the original problem I explained in the note .0 ....

                        *********************

CONFIGURATION :
-------------

SYSTEM_A -> ALPHA 3000/800 , Digital Unix V 3.2g

SYSTEM_B -> ALPHA 3000/800 , Digital Unix V 3.2c

Other Unix systems like AX , HPux.

PROBLEM :
-------

when he use FTP from SYSTEM_A (ftp client) to SYSTEM_B (ftp server)....

  FTP> open SYSTEM_B  .....

It works fine .

but when he use FTP from SYSTEM_B (ftp client) to SYSTEM_A (ftp server) ...

   FTP> open SYSTEM_A

he has to wait at least 1 minute before to receive the login prompt to enter
Username and Password .
The same thing happens if he tries to open SYSTEM_A (via ftp from others no DEC
Unix systems. 

  
                   ***********************

The last test I asked to the customer was ...

1) on the SYSTEM_B (ftp client) he ran the tcpdump utility :

   # pfconfig +c -a

   # tcpdump ip host SYSTEM_B

2) On a second window of the SYSTEM_B he begun the ftp to the SYSTEM_A :

   FTP> open SYSTEM_A
   Connected to system_a.
   
   ... at this point he had to wait to receive the login prompt
       and on the window where he ran tcpdump he could read the following
       packet traces.... 

17:18:57.475985 system_b.xxx.yyy.zzz.1110 > system_a.ftp:
S 1872576000:1872576000(0) win 32768 <mss 1460,nop,[|tcp]> (DF)

17:18:57.477939 system_a.ftp > system_b.xxx.yyy.zzz.1110:
S 1640192000:1640192000(0) ack 1872576001 win 33580 <mss 1460,nop,[|tcp]> (DF)

17:18:57.477939 system_b.xxx.yyy.zzz.1110 > system_a.ftp: . ack 1 win 33580 (DF)

   ...after 1 minute he received the login prompt ...

    220 system_a.xxx.yyy.zzz FTP server (Digital UNIX Version 5.60) ready.
    Name (system_a:user):

   ...and on the window where he ran tcpdump he could read the following
      packet traces


17:18:58.198642 system_a.ftp > system_a.xxx.yyy.zzz.1110:
P 1:71(70) ack 1 win 33580 (DF) [tos 0x10]

17:18:58.301181 system_b.xxx.yyy.zzz.1110 > system_a.ftp:
. ack 71 win 33580 (DF) [tos 0xa0]


At this point we could say that the SYSTEM_A (ftp server) send the packet   
 "17:18:58.198642 system_a.ftp > system_a.xxx.yyy.zzz.1110:
 P 1:71(70) ack 1 win 33580 (DF) [tos 0x10]"
many seconds late .

What does this packet means/does ? ( I can see it's marked as P(push) packet )

Could anyone help me to understand the results of the above test ?

NB : After he get the username request all work ok.

Many thanks in advance 

Regards 

Paolo
(CSC , Milan)

*****************************************************************************
PS
reply to note .4

>>just for kicks, do an nslookup a.b.c.d (or d.c.b.a.in-addr.arpa depending on
>>versions) to see if reverse name resolution is working properly.

doing an nslookup a.b.c.d from SYSTEM_B using tcp/ip address of SYSTEM_A ,
It works.
*****************************************************************************
  

    
9105.11MLNCSC::ZAGHIWed Apr 09 1997 04:0310
    Hi,
    
    it could be better to open an IPMT ?
    
    many thanks in advance 
    
    Regards 
    
    Paolo
    (CSC , Milan)
9105.12EUREKA ! MLNCSC::ZAGHIThu Apr 10 1997 11:3111
    Hi,
    
    The problem was that in the file /etc/hosts of the SYSTEM_A (ftp
    server) there was not the entry:
    
    127.0.0.1       localhost
    
    Regards
    
    Paolo
    (CSC, Milan)