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

Name: Moazzam Anwaar: Roll No:21l-5092

Uploaded by

Moazzam Sheikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views7 pages

Name: Moazzam Anwaar: Roll No:21l-5092

Uploaded by

Moazzam Sheikh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Name : Moazzam Anwaar

Roll no:21L-5092

Lab Statement 1
1.
a. Port:20

a. Port 21

2.
Packet 1
PACKET 2

PACKET 3
PACKET 4

PACKET 5
PACKET 6
PACKET 7
195.89.6.167 sent back 200 to 192.168.1.2, showing the action was
completed successfully,
PACKET 8

192.168.1.2 initiates an FTP (File Transfer Protocol) command by sending an


NLST command to 195.89.6.167. This command is sent from source port
16340 to destination port 21. The NLST command is a request to the FTP
server to provide a directory listing of available files. It instructs the FTP
server to respond with a list of files without any additional information.
PACKET 9
PACKET 10
PACKET 11
In response to the NLST command, the file server at 195.89.6.167 sends the
actual list of files as data. This data is transmitted from the file server's port
20 to the source port 16341 on the requesting host, 192.168.1.2. A total of
125 bytes of data, representing the list of files, is transmitted in this
communication.
PACKET 12
192.168.1.2 issues another port-related command to 195.89.6.167. This
command includes the IP address and port number, which can be computed
or determined. The command is transmitted from source port 16430 to
destination port 21.
PACKET 13

195.89.6.167 responds with a status code of 200, indicating a successful


execution of the command. This response is sent from destination port 21 to
source port 16430.
PACKET 14

From source port 16340, 192.168.1.2 sends a request to the FTP server at
195.89.6.167, using port 21. The request is issued with a RETR command,
signifying a desire to retrieve a specific file. In this case, the user is requesting
the retrieval of the file named 'legal.txt'.
PACKET 15
In packet 155, the FTP server responds with a status code 150, indicating
that data transfer is about to commence. This follows the previous port-
related command. Additionally, ASCII mode is activated to facilitate the
transfer of the 'txt' file.
PACKET1 6
PACKET 17

In packet number 161, a total of 1415 bytes of data from the 'legal.txt' file are
transmitted from the server to the user. Notably, this data transfer employs a
distinct protocol known as FTP-DATA, which differs from the protocols used
in previous communications.
PACKET 18
From source port 16340, 192.168.1.2 sends a QUIT command to
195.89.6.167 over port 21. The QUIT command signifies the termination of
the FTP connection.
PACKET 19
Lab statement 3
0. ICMP messages are not sent over UDP or TCP. They are sent as a
datagram and are encapsulated directly within IP packets.

0. 60:67:20:55:7b:ac

0. Echo Requests, used to check the reachability and responsiveness


of a remote host or network
device

0. 4

0. Source: 192.168.33.110 | Destination: 172.217.27.36

0. ICMP operates at a lower layer of the OSI model in comparison to


TCP and UDP which use port
numbers for communication.

0. Type code values


• request = 8

• reply = 0

8. Answers:
c. Type=8
• Code=0
• Checksum = 0x4d38 | Status = good | bytes = 32

• Other fields include Identifier (BE), Identifier (LE), Sequence Number


(BE), Sequence
Number (LE)

9. Answers:
• Type=0

• Code=0

• Checksum = 0x5538 | Status = good | bytes = 32

• Other fields include Identifier (BE), Identifier (LE), Sequence Number


(BE), Sequence
Number (LE)

10. Answers:
• Type = 3

• Code = 3

• Checksum = 0x3af7 | Status = good

• The extra header in ICMP is indicates the error

You might also like