0% found this document useful (0 votes)
11 views

Networks - W4

Uploaded by

toti5824
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Networks - W4

Uploaded by

toti5824
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

COMPUTER NETWORKS

( 00207N )

Sec.
Week 4
Topics

■ FTP Overview ■ SMTP Overview


■ Connect to FTP using CMD ■ SMTP Packets
■ FTP Important Commands ■ SMTP Commands & Reply codes
■ Download file using FTP ■ Analyze SMTP Packets using
Wireshark
■ Analyze FTP Packets using Wireshark
■ Protocols Overview

■ Task 1 & Task 2


FTP Overview
■ FTP:
Stands for
File transfer Protocol
FTP Overview – Cont.
Connect to FTP using CMD

■ ftp FTP URL


■ Example :
– ftp speedtest.tele2.net
FTP Important commands

■ ls : show files only in the directory you are inside


■ get filename : download the file from server
■ send filename : upload the file to server
■ cd uploads : go to uploads directory
■ cd .. : go back to previous directory
■ quit : terminate ftp session and exit
Download file using FTP

■ Steps :
1) Open CMD
2) Type : ftp test.rebex.net
3) Type : demo
4) Type : password
5) Type : ls
6) Type : get readme.txt
Analyze FTP Packets using Wireshark

■ Steps:
1) Start Wireshark
2) Open CMD
3) Type : ftp test.rebex.net
4) Type : demo
5) Type : password
6) Type : quit
7) Stop Wireshark
SMTP Overview
■ SMTP stands for
Simple Mail Transfer Protocol
SMTP Packets.  EHLO : is an SMTP command sent
by an e-mail client when connecting
to an e-mail server. The command
tells the server that the client wishes
to initiate an e-mail transaction and
is followed by the
client's domain name.

 250 : Requested mail action okay,


completed

 MAIL FROM : Specifies the e-


mail address of the sender. This
command also tells the SMTP
server that a new mail transaction is
starting and makes the server to
reset all its state tables and buffers.
If the senders e-mail address is
accepted the server will reply with a
250 OK reply code.
SMTP Commands & Reply codes
■ EHLO : is an SMTP command sent by an e-mail client  250 : Requested mail
when connecting to an e-mail server. The command tells the action okay,
server that the client wishes to initiate an e-mail transaction completed
and is followed by the client's domain name.
■ MAIL FROM : Specifies the e-mail address of the sender.
This command also tells the SMTP server that a new mail
transaction is starting and makes the server to reset all its
state tables and buffers. If the senders e-mail address is
accepted the server will reply with a 250 OK reply code.
■ RCPT TO (Recipient To)
Specifies the e-mail address of the recipient. This command
can be repeated multiple times for a given e-mail message in
order to deliver a single e-mail message to multiple
recipients. The example below shows how this command can
be used to send same e-mail message to two recipients:
SMTP Commands & Reply codes Cont.

■ DATA : The DATA command starts the transfer of the message  354 : Start mail
contents (body text, attachments etc.). After that the DATA input; end with
command has been sent to the server from the client, the server <CRLF>.<CRLF>
will respond with a 354 reply code. After that, the message
contents can be transferred to the server. When all message
contents have been sent, a single dot (“.”) must be sent in a line
by itself. If the message is accepted for delivery, the SMTP
server will response with a 250 reply code.
SMTP Commands & Reply codes Cont.

 CRLF :
 354 : Start mail
input; end with
<CRLF>.<CRLF>
SMTP Commands & Reply codes Cont.

■ QUIT : Asks the server to close the connection. If the  221 : <domain>
connection can be closed the servers replies with a 221 Service closing
numerical code and then is the session closed. transmission channel
Analyze SMTP Packets using Wireshark

C: Stands for client


S: Stands for server
Task 1 – FTP

■ File Link : shorturl.at/pxQ57


■ The demo of this lab is at:
– http://youtu.be/l0A4Xrfq5Tc
■ Determine the following
Task 2 – SMTP

■ File Link : shorturl.at/xCMT5


■ The demo of this lab is at:
– http://youtu.be/3RHrq3EehsE
■ Determine the following
Protocols Overview

■ Browsing: ■ Download and upload: ■ Sending emails:


HTTP , HTTPS FTP SMTP

http://www.mit.edu

You might also like