Computer Network Experiment 10
Computer Network Experiment 10
Program: Sem VI
PART A
(PART A: TO BE REFFERED BY STUDENTS)
Experiment No.10
A.1 Aim:
Perform File Transfer and Access using FTP
A.2 Prerequisite:
● Knowledge about LAN, MAN and WAN and NW Elements.
● Linux NW Commands
● HW and IP Address concepts.
● Concept of Port, Socket, Localhost, Client and Server,
● Client and Server
● Application Layer protocols and application servers
● NW libraries.
A.3 Objective:
a) Configure FTP Services on Servers
b) Upload a File to the FTP Server
c) Download a File from the FTP Server
A.4 Outcome:
After successful completion of this experiment students will be able to
A.4 Theory/Tutorial:
File Transfer Protocol (FTP) is a standard Internet protocol for transmitting files between
computers on the Internet over TCP/IP connections.
FTP is a client-server protocol that relies on two communications channels between client
and server: a command channel for controlling the conversation and a data channel for
transmitting file content. Clients initiate conversations with servers by requesting to
download a file. Using FTP, a client can upload, download, delete, rename, move and copy
files on a server. A user typically needs to log on to the FTP server, although some servers
make some or all of their content available without login, also known as anonymous FTP.
FTP sessions work in passive or active modes. In active mode, after a client initiates a session
via a command channel request, the server initiates a data connection back to the client and
begins
transferring data. In passive mode, the server instead uses the command channel to send the
client the information it needs to open a data channel. Because passive mode has the client
initiating all connections, it works well across firewalls and Network Address Translation
(NAT) gateways.
References:
1. https://static-course-assets.s3.amazonaws.com/IntroNet50ENU/files/
10.2.3.2%20Packet%20Tracer%20-%20FTP%20Instructions.pdf
2. https://www.youtube.com/watch?v=6R7EnoWrw0o
3. https://youtu.be/m8_IP74PEm8
PART B
(Students must submit the soft copy as per following segments within two hours of the
practical. The soft copy must be uploaded on the Blackboard or emailed to the concerned
lab in charge faculties at the end of the practical in case the there is no Black board access
available)
Grade :
To configure FTP services on a server, install FTP server software, set up user authentication,
manage directory permissions, and secure connections using protocols like FTPS or SFTP.
To upload a file, connect to the FTP server using credentials, then use an FTP client or
command-line to transfer the file. Similarly, downloading a file involves connecting to the
server, navigating to the desired file, and using the "get" command or GUI interface to
retrieve it.
B.4 Conclusion:
In conclusion, after successfully completing this experiment, students will gain the skills to
configure an FTP server, establish a connection with it, and perform file transfers. They will
be able to upload files to the FTP server and download files from it, demonstrating a clear
understanding of FTP operations and protocols.
These protocols facilitate various services like web browsing, email communication,
file transfer, and more.
2. What are the ports used for FTP?
FTP (File Transfer Protocol) uses two primary ports for
communication:
Port 21: This is the command port used to establish the
connection and transmit control commands between the client and
the server.
Port 20: This is the data port used for the actual data transfer
during file uploads and downloads.
In passive mode, only port 21 is used, and the server opens a
random port for data transfer, which the client connects to.