A Project
Submitted in partial fulfilment of the requirements for the award of
Diploma of Computer Engineering
Dr. Panjabrao Deshmukh Polytechnic, Amravati
Submitted By
1. Enrollment No: 2100240038
2. Enrollment No: 2100240156
3. Enrollment No: 2200240156
4. Enrollment No: 2200240161
Under the Guidance of
Prof. R.H.Rathod
Subject : Advanced Computer Network(22520)
COMPUTER ENGINEERING DEPARTMENT
2023-2024
DEPARTMENT OF COMPUTER ENGINEERING
DR. PANJABRAO DESHMUKH POLYTECHNIC, AMRAVATI
1|Page
CERTIFICATE
This is to certify that the having Roll No. 28,29,33,38 of Fifth Semester of
Diploma in Computer Engineering has completed the term work / Project
entitled “Setting up a FTP server and client on network and transfer the files
between two networks” satisfactorily in the partial fulfilment of Project for the
academic year 2023-2024 as prescribed in the curriculum.
Guide HOD / Principal
Prof. R.H.Rathod R.H.Rathod
Lecturer in Computer Engg. Dept. Computer Engg.
2|Page
Undertaking
We declare that the work presented in this project title “Setting up a FTP
server and client on network and transfer the files between two networks”,
submitted to the Computer Department of Dr. Panjabrao Deshmukh Polytechnic
Amravati, for the award of the Bachelor of Technology Diploma in Computer
Engineering, is our original work. We have not plagiarized or submitted
thesame work for the award of any other diploma. In case this undertaking is
found incorrect, we accept that our diploma may be unconditionally withdrawn.
Jivan Sandip Lad
Dip Rajesh Kuralkar
Shivam Sitaram Dhondkar
Ayush Devanand Solanke
3|Page
Title of the Micro-Project: Setting up a FTP server and client on network and
transfer the files between two networks
Submitted By:
Sr. No. Name of the Student Roll No.
1. Jivan Sandip Lad 28
2. Dip Rajesh Kuralkar 29
3. Shivam Sitaram Dhondkar 33
4. Ayush Devanand Solanke 38
Teacher’s Signature
4|Page
INDEX
Sr.no Content Page no.
1 Group details 4
2 Index 5
3 Abstract 6
4 Introduction 7
5 FTP Server 8,9
6 Comunnication and data transfer 10
7 File from router to FTP server 11
8 Objectives of FTP 12
9 Configuration steps 13,14,15
10 Advantage disadvantage of FTP 16
11 Output 17
12 Conclusion and References 18
5|Page
ABSTRACT
The File Transfer Protocol (FTP) is a standard network protocol used for the transfer of computer
files between a client and server on a computer network.FTP is built on a client-server model
architecture using separate control and data connections between the client and the server. FTP users
may authenticate themselves with a clear-text sign-in protocol, normally in the form of a username and
password, but can connect anonymously if the server is configured to allow it. For secure transmission
that protects the username and password, and encrypts the content, FTP is often secured with SSL/TLS
(FTPS) or replaced with SSH File Transfer Protocol (SFTP).
The first FTP client applications were command-line programs developed before operating
systems had graphical user interfaces, and are still shipped with most Windows, Unix, and Linux
operating systems.Many FTP clients and automation utilities have since been developed for desktops,
servers, mobile devices, and hardware, and FTP has been incorporated into productivity applications,
such as HTML editors. In this activity, you will configure FTP services. You will then use the FTP
services to transfer files between clients and the server.
Packet Tracer only simulates the process for configuring these services. FTP server and client
software packages each have their own unique installation and configuration instructions. The first time
you attempt to connect to a web address, Packet Tracer takes several seconds to simulate the DNS name
resolution protocol.
6|Page
Introduction :-
In current times if you want to transfer a file to a friend, you can just attach it in an email and
send it off. With high speed bandwidth being so cheap and plentiful to the home user, transferring a file
in this manner is usually more than adequate. What if you needed to transfer the file to someone
immediately; there could be no delays, it has to be fast, and the files you are transferring may be very
large. In a scenario like this, email will most likely not be adequate. This is because most email
providers limit the size of your mailbox on their servers, the size of attachments you may receive, and
that there is no guarantee when you send email how long it will take for the recipient to receive it or if
it will even get there. This is where FTP comes in. FTP is a software which allows every user to install
and transfer files or folders from one system to the other. It also works in a similar way as HTTP for
transferring Web pages from a server to a user browser. File Transfer protocol is mostly used for
downloading a file from a server and then is uploaded as a Web page file.
The governing body that owns the term FTP, apache defines it as any sending or receiving directories
which are located into the following path /httpdocs/publications, it is based on transferring files from
one place to another.
The way File Transfer Protocol works is by installing the software first on both machines and then
simply taking files one by one and shift them. The software for FTP can be bought or downloaded form
the web browser, however the requirements are a bit different. As soon as one file is received, the
system confirms it by sending a confirmation message to the system next to it.
7|Page
FTP Server:-
What Is FTP?
FTP stands for "file transfer protocol." FTP powers one of the fundamental Internet functions and is
the prescribed method for the transfer of files between computers. It is also the easiest and most secure way
to exchange files over the Internet.
An FTP address looks a lot like an HTTP or web site address except it uses the prefix ftp:// instead of http://.
FTP stands for the File transfer protocol and is used to transfer files between an FTP server and another
computer. In the past, FTP was much more common than it is today and was the dominant file transfer
mechanism on the Internet. If you needed to transfer files between two computers, you would use FTP to
do so. FTP is still very popular today when a service requires that a lot of files be hosted for other to people
to download. FTP also tends to be faster than other contemporary methods of transferring files because it
was designed to do so. Even more important, FTP support Automatic Resume. This means that if you are
downloading the latest new game demo that is over 600 megs, and for some reason the download stops in
the middle of the transfer, the ftp client will attempt to on the next download of the same file, to continue
from where you left off. This feature can save you a huge amount of time but is generally only found in
specialized FTP client software and not in your browser software.
What is a Protocol Anyway?
The dictionary defines the word "protocol" as: A set of conventions governing the treatment and
especially the formatting of data in an electronic communications system. Therefore, FTP is essentially a
"set of conventions" that can be used by an "electronic communications system" to transfer files.These
"conventions" are defined in a document known as RFC 959. This document contains the details of how
FTP should be implemented in software. If you want to write some software that implements FTP, then
RFC 959 would be a good place to start.
What are some common uses of FTP?
The most common use of FTP is to download files. FTP is vital to the MP3 music sharing, most online
auctions and game enthusiasts. The ability to transfer files quickly and reliably is essential for everyone
creating and maintaining a web page.
8|Page
How can I use FTP?
• Most web hosting services provide FTP access to their customers to allow them to upload the
contents of their web sites.
• Companies often have FTP servers that allow users to send and receive files.
• Most universities have FTP servers that allow their students to download course materials and
upload assignments for submission.
• Use FTP to transfer files among users, especially if the files are too large to attach to an email.
• Use FTP to browse through a collection of downloadable files on a public software archive.
What is an FTP Server?
Typically, a computer with an FTP address is dedicated to receive an FTP connection. A computer
dedicated to receiving an FTP connection is referred to as an FTP server or FTP site.
What do I need to start using FTP?
You need two things to begin using FTP:An FTP client application and An FTP server.Where can I get
an FTP Client? Most computer operating systems already come with an FTP client; however, it is not user-
friendly. Start up a command prompt window, type "ftp" and then press “enter.” Chances are you will be
greeted by an "ftp>" prompt. Unless you are well-versed with using command lines and enjoy typing, there
are much easier ways to FTP.FTP Explorer is an FTP client application. It is designed to make FTP simple
and hassle-free. Most people agree it is much easier to use than a command line FTP client. Download FTP
Explorer here.
Where can I get an FTP server?
In many cases, the FTP server you want to connect to is already out there somewhere, waiting for you
to establish a connection to it.If, however, you want to set up your own FTP server so other users can
connect to your server and transfer files, you have a few options:Many operating systems come with an FTP
server, but it is often disabled for security reasons. Windows XP Pro includes an FTP server as part of
Internet Information Server, but it is disabled by default. Most Unix and Linux systems include FTP
"daemons" as part of their distributions. Check with the vendor of your operating system to determine if
you already have FTP server software.There are also a variety of third party FTP servers available.
9|Page
Communication and data transfer:-
FTP may run in active or passive mode, which determines how the data connection is established.[5]
In both cases, the client creates a TCP control connection from a random, usually an unprivileged, port N
to the FTP server command port 21.
In active mode, the client starts listening for incoming data connections from the server on port M. It sends
the FTP command PORT M to inform the server on which port it is listening. The server then initiates a
data channel to the client from its port 20, the FTP server data port.
In situations where the client is behind a firewall and unable to accept incoming TCP connections, passive
mode may be used. In this mode, the client uses the control connection to send a PASV command to the
server and then receives a server IP address and server port number from the server, which the client then
uses to open a data connection from an arbitrary client port to the server IP address and server port number
received.
Both modes were updated in September 1998 to support IPv6. Further changes were introduced to the
passive mode at that time, updating it to extended passive mode.Both modes were updated in September
1998 to support IPv6. Further changes were introduced to the passive mode at that time, updating it to
extended passive mode.
The server responds over the control connection with three-digit status codes in ASCII with an optional text
message. For example, "200" (or "200 OK") means that the last command was successful. The numbers
represent the code for the response and the optional text represents a human-readable explanation or request
(e.g. <Need account for storing file>).[1] An ongoing transfer of file data over the data connection can be
aborted using an interrupt message sent over the control connection.While transferring data over the
network, four data representations can be used
10 | P a g e
File from the Router to an FTP Server:-
➢ Understanding the FTP Username and Password
The FTP protocol requires a client to send a remote username and password on each FTP
request to a server. When you copy a configuration file from the router to a server using FTP, the Cisco
IOS software sends the first valid username it encounters in the following sequence:
• The username specified in the copy EXEC command, if a username is specified.
• The username set by the ip ftp username global configuration command, if the command is
configured. Anonymous.
• The router sends the first valid password it encounters in the following sequence:
1. The password specified in the copy command, if a password is specified.
2. The password set by the ip ftp password command, if the command is configured.
11 | P a g e
3. The router forms a password username @routername .domain . The variable username is the
username associated with the current session, routername is the configured host name, and
domain is the domain of the router.
The username and password must be associated with an account on the FTP server. If you are
writing to the server, the FTP server must be properly configured to accept the FTP write request from
the user on the router.
If the server has a directory structure, the configuration file or image is written to or copied from
the directory associated with the username on the server. For example, if the system image resides in
the home directory of a user on the server, specify that user name as the remote username. Refer to the
documentation for your FTP server for more information. Use the ip ftp username and ip ftp password
global configuration commands to specify a username and password for all copies. Include the username
in the copy EXEC command if you want to specify a username for that copy operation only.
12 | P a g e
Objectives for a File Transfer Protocol-
• Configure FTP Services on Servers
• Upload a File to the FTP Server
• Download a File from the FTP Server
• To promote sharing of files (computer programs and/or data),
• To encourage indirect or implicit (via programs) use of remote computers,
• To shield a user from variations in file storage systems among hosts, and
• To transfer data reliably and efficiently.
• FTP can be used directly by a user at a terminal, but is designed mainly for use by programs.
• The file transfer protocol (FTP) is a method for efficiently transferring files between computers
over a network.
• We must distinguished the FTP protocol from the usual ftp programs that we find in Unix and
windows (which are client programs).
• These ftp programs are simple to use: you simply type ftp followed by the name of the computer
to which you want to connect and exchange files with.
13 | P a g e
Configuration steps:-
SUMMARY STEPS:-
1. enable
2. configure terminal
3. ip ftp username username
4. ip ftp password password
5. end
Part 1: Configure FTP Services on Servers
Step 1: Configure the FTP service on Central Server.
a. Click CentralServer > Config tab > FTP.
b. Click On to enable FTP service.
c. In User Setup, create the following user accounts. Click the + button to add the account:
Username Password Permissions anonymous anonymous limited to Read and List administrator cisco
full permission
d. Click the default cisco user account and click the - button to delete it. Close the Central Server
configuration window.
Step 2: Configure the FTP service on BranchServer.Repeat Step 1 on Branch Server.
14 | P a g e
Part 2: Upload a File to the FTP Server
Step 1: Transfer the README.txt file from the home laptop to Central Server. As network
administrator, you must place a notice on the FTP servers. The document has been created on the home
laptop and must be uploaded to the FTP servers.
a. Click Home Laptop and click the Desktop tab > Text Editor.
b. Open the README.txt file and review it. Close the Text Editor when done.
Note: Do not change the file because this affects scoring.
c. In the Desktop tab, open the Command Prompt window and perform the following steps:
1) Type ftp centralserver.pt.pka . Wait several seconds while the client connects.
Note: Since Packet Tracer is a simulation, it can take up to 30 seconds for FTP to connect the first time.
2) The server prompts for a username and password. Use the credentials for the administrator
account.
3) The prompt changes to ftp>. List the contents of the directory by typing dir. The file directory on
CentralServer displays.
4) Transfer the README.txt file: at the ftp> prompt, type put README.txt. The README.txt file is
transferred from the home laptop to CentralServer.
5) Verify the transfer of the file by typing dir. The README.txt file is now listed in the file directory.
6) Close the FTP client by typing quit. The prompt will return to PC>.
Step 2: Transfer the README.txt file from the home laptop to BranchServer.
a. Repeat Step 1c to transfer the README.txt file to branchserver.pt.pka.
b. Close the Command Prompt and Home Laptop windows, respectively.
15 | P a g e
Part 3: Download a File from the FTP Server
Step 1: Transfer README.txt from CentralServer to PC2.
a. Click PC2 and click the Desktop tab > Command Prompt.
1) Type ftp centralserver.pt.pka.
2) The server prompts for a username and password. Use the credentials for the anonymous account.
3) The prompt changes to ftp>. List the contents of the directory by typing dir. The README.txt file
is listed at the top of the directory list.
4) Download the README.txt file: at the ftp> prompt, type get README.txt. The README.txt file
is transferred to PC2.
5) Verify that the anonymous account does not have the permission to write files to CentralServer by
typing put sampleFile.txt. The following error message displays:Writing file sampleFile.txt to
centralserver.pt.pka:File transfer in progress..%Error ftp://centralserver.pt.pka/sampleFile.txt (No such
file or directory Or Permission denied)550-Requested action not taken. permission denied).
6) Close the FTP client by typing quit. The prompt returns to the PC> prompt.
7) Verify the transfer of the file to PC2 by typing dir. README.txt is listed in the directory.
8) Close the command line window.
b. In the Desktop tab, open the Text Editor and then the README.txt file to verify the integrity of the
file.
c. Close the Text Editor and then the PC2 configuration window.
Step 2: Transfer the README.txt file from BranchServer to the Smart Phone.
Repeat Step 1 for Smart Phone, except download the README.txt file from branchserver.pt.pka.
16 | P a g e
Advantages:-
FTP can be used numerous amounts of time {Unlimited}
FTP can be used any time of the day
Files can be transferred without any hassle
No limit as to how many files or folders can be transferred
Any type of file or folder can be transferred
Easy to install on machine
Disadvantages:-
Mostly used on Unix and Linux computer systems
Not compatible with every system and lacks support
17 | P a g e
OUTPUT:
18 | P a g e
Conclusion:-
We have Set up a FTP server and client on network and transfer the files between two
networks successfully . Successfully transfer the file between the two networks. We will
successfully create a network on Cisco Packet Tracer. FTP is a file transmission protocol that
allows users to transfer files between servers or computers. To perform a transfer, upload or
download, a user requires a network connection, an FTP server, and an account.
Reference:-
1)www.google.com
2)www.tutorialspoint.com
19 | P a g e