File Transfer Protocol (Aug. 12, 1973) RFC 542 NIC 17759
File Transfer Protocol (Aug. 12, 1973) RFC 542 NIC 17759
User-FTP
Figure 2
10
Vertical Spacing
blank
0
1
+
15
Meaning
End of data block is EOR
End of data block is EOF
Suspected errors in data block
Data block is a restart marker
With this encoding more than one descriptor coded condition may
exist for a particular block. As many bits as necessary may be
flagged.
The restart marker is embedded in the data stream as an
integral number of 8-bit bytes representing printable
characters in the language being used over the TELNET
connection (e.g., default--NVT-ASCII). These marker bytes are
right-justified in the smallest integral number of transfer
bytes greater than or equal to 8 bits. For example, if the
17
18
20
21
23
25
26
28
29
30
Announcing FTP.
Message from system operator.
Exected delay.
Server availability information.
FTP commentary or user information.
System status reply.
System busy doing...
File status reply.
Directory listing reply.
Last command received correctly.
An ABORT has terminated activity, as requested.
Abort request ignored, no activity in progress.
User is "logged in". May proceed.
User is "logged out". Service terminated.
Logout command noted, will complete when transfer done.
User is "logged out". Parameters reinitialized.
FTP file transfer started correctly.
FTP Restart-marker reply.
Text is: MARK yyyy = mmmm
where 'yyyy' is user's data stream marker (yours)
and mmmm is server's equivalent marker (mine)
(Note the spaces between the markers and '=').
252 FTP transfer completed correctly.
253 Rename completed.
254 Delete completed.
257 Closing the data connection, transfer completed.
300 Connection greeting message, awaiting input.
301 Current command incomplete (no <CRLF> for long time).
330 Enter password.
31
(or
noted
reply
for
32
ASCII Non-print
8
Stream
File
33
User-PI - Server B
------------------
C->A
C->A
A->C
C->A
A->C
C->A
C->B : ICP
C->B : SOCK HOST-A, SKT-S(A)
B->C : 200 Okay
:
:
:
:
:
:
ICP
SOCK HOST-B, SKT-S(B)
200 Okay
PASV
200 Okay
STOR
C->B : RETR
Retr
retr
ReTr
rETr
36
SUCCESS
FAILURE
USER
230,330
PASS
230,330
ACCT
230
REIN
232,233
Secondary Reply 300
BYE
231,232
BYTE
200,331
SOCK
200,331
PASV
200,331
TYPE
200,331
STRU
200,331
MODE
200,331
RETR
250
430-432,500-505,507
430-432,500-507
430-432,500-507
401,436,500-507
500-505,507
402,500-505,507
500-505,507
500-507
402,500-505,507
500-505,507
402,500-505,507
402,433,450,451,454,455,457,
500-505,507,550
452
402,433,451,454,455,457,
500-505,507,550
452,453
402,433,451,454,455,457,500-507,
550
452,453
402,500-507
500-507
402,433,450,451,455,500-507,550
402,433,450,451,455,456,500-507,
550
500-507
402,433,450,451,455,500-507,550
402,433,450,451,454,455,457,
500-507,550
452
402,433,450,451,454,455,457,
500-507,550
452
402,500-507
201,202,331
254
250
100,110,
450,451,455,500-507,550
150,151,331
HELP
030,050
500-507
NOOP
200
500-505,507
Spontaneous Replies 000,010,020,
400,401,434-436
300,301,251,255
TYPICAL FTP SCENARIOS
TIP User wanting to transfer file from Host X to local printer:
1. TIP user opens TELNET connections by ICP to Host X socket 3.
2. The following commands and replies are exchanged:
TIP
HOST X
38
ACTION INVOLVED
39