Professional Documents
Culture Documents
List The Features and The Corresponding Methods That Need To Be Implemented
List The Features and The Corresponding Methods That Need To Be Implemented
List The Features and The Corresponding Methods That Need To Be Implemented
What is FTP?
File Transfer Protocol is used to exchange files from one host to another connected over the internet.
1. List the features and the corresponding methods that need to be implemented.
Features of FTP:
1. Data representation
i) ASCII File
ii) EBCDIC file
iii) Image File
2. Data structures
i) File Structure(default)
ii) Record Structure
iii) Page Structure
3. Transmission modes
FTP can transfer a file by using one of the following three modes:
i) Stream mode
ii) Block mode
iii)Compressed mode
4. Error control
Since TCP is used for data transfer no additional error recovery mechanism is required.
Group ID : 7
5. Access control
File access protection is done using login procedure with login name and password.
FTP Methods
1. Transfer Files :
User -> This Command send the user Identification to the server.
3. Terminate Session :
QUIT -> Disconnect from remote host and terminate FTP session.
2. Work out the message structures (request and response) format with justifications where
necessary. Include error handling as well.
FTP operation
On one connection control signals (commands and responses) are exchanged and the other connection
is used for actual data transfer. These two connections are called control connection and data
connection respectively.
Group ID : 7
Control Connection
1. For sending control information like user identification, password, command to change the Remote
directory, commands to Retrieve and store files etc.
Data Connection
1. For Sending the Actual file, FTP makes use of data connection.
3. The data connection is opened and then closed for each file transferred. It opens each time
commands that involve transferring files are used, and it closes when the file is transferred.
Message Structures
PUT(Upload) – Request
Time and Date : Describe the Time and Date on which file is sent by client.
Group ID : 7
PUT(Upload) – Response
Message : After Successful transmission of file it describe the Message. Also in message any special character can
not be used .
GET(Download) – Request
GET(Download) – Response
Message : After Successful transmission of file it describe the Message. Also in message any special character can
not be used .
3. Discuss any feature of the implementation that may help improve the performance of the
application.
Changing the file system used to format your drive from FAT32 to NTFS.
The speed has little to do with the network protocol used. It is mainly dependent on how efficient it is
implemented and the available bandwidth, network reliability and latency. (Data compression can
dramatically increase the transfer speed, if the data can be compressed).
When transferring large files over a low-latency Internet connection, FTP can easily use all your available
network bandwidth with a single connection. If your network has high latency, you can use multiple FTP
connections.
Using UDP is unlikely to increase the speed except in a few special circumstances. Remember the speed
is ultimately limited by your available network bandwidth. Almost any file transferring protocols can
fully utilize your available network bandwidth. In the FTP case, if one connection cannot fully utilize the
bandwidth, you just need to use multiple FTP connections.
For improve performance use TCP because TCP is reliable protocol and the receiver always sends either
positive or negative acknowledgement about the data packet to sender, so that the sender always has
bright clue about whether the data packet is reached the destination or it needs to resend it.