0% found this document useful (0 votes)
12 views4 pages

Kavya cn9

The document outlines a lab program for implementing the File Transfer Protocol (FTP) focusing on GET and PUT operations. It details the configuration of an FTP server and client, including necessary settings and commands for file transfer. Key features of FTP, such as client-server architecture and authentication, are also highlighted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Kavya cn9

The document outlines a lab program for implementing the File Transfer Protocol (FTP) focusing on GET and PUT operations. It details the configuration of an FTP server and client, including necessary settings and commands for file transfer. Key features of FTP, such as client-server architecture and authentication, are also highlighted.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD

Department of CSE(AIML)

Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D

Program 9
Objective- Implement File Transfer Protocol (FTP) – GET and PUT.

Theory-
FTP (File Transfer Protocol) is a standard network protocol used to transfer files from one
host to another over a TCP-based network such as the Internet. It operates on the Application
Layer (Layer 7) of the OSI model and uses TCP ports 20 (data transfer) and 21 (control
commands).
Key Features of FTP:
• Client-Server Architecture: An FTP server stores files and clients can download (GET)
or upload (PUT) files.
• Authentication: Supports login using a username and password.
• Commands:
o GET: Download a file from the server.
o PUT: Upload a file to the server. o RENAME: Change
the name of a file. o DELETE: Remove a file from the
server.

Implementation-
1. Configure Server0 (FTP +
DNS) On Server0:
• Go to Config tab.
• Set:
o Display Name: Server0 o IP Address: 140.0.0.22 o Subnet Mask: 255.255.255.240
o DNS Server: 140.0.0.22
• Enable these services in Services tab:
o FTP Service → On
Add a user (example: user1 / pass1)
Upload a sample file (e.g.,
hello.txt)
Date --------------------- Signature of Faculty
…………………………………………
AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)

Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
o DNS Service → On

Add a record:
Name:
www.cn.com
Type: A
Address:
140.0.0.22 2. Configure a client
On PC5 (Lab 2):
• Go to Desktop > Ip Configuration: o IP: 140.0.0.17 o Subnet: 255.255.255.240 o
DNS: 140.0.0.22
• Open Command Prompt and test FTP

with: ftp www.cn.com

Login when prompted:

Username: user1
Password: pass1

After login:

PUT a file to the server:


put hello.txt

(Ensure hello.txt exists in PC's FTP client directory.)

GET a file from the server:

get sample.txt

Setup-

Date --------------------- Signature of Faculty


…………………………………………
AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)

Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
Output-

Login and FTP - PUT

Date --------------------- Signature of Faculty


…………………………………………
AJAY KUMAR GARG ENGINEERING COLLEGE, GHAZIBAD
Department of CSE(AIML)

Roll No.- 2200271530059 Name- Kavya Singh Year- 3rd Semester- 6th
Subject- Computer Network Lab Batch- D
Files in Server Directory-

FTP - GET

Date --------------------- Signature of Faculty


…………………………………………

You might also like