McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 26 SMTP and FTP.

Slides:



Advertisements
Similar presentations
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
Advertisements

Universidad del Cauca Red de Datos Module 9 Remote Connections.
Client-Server Applications. Indirect Top Level Interaction Application.
1 Electronic Mail u Three major components: u user agents u mail servers u simple mail transfer protocol: SMTP u User Agent u a.k.a. “mail reader” u composing,
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
CS 1302 Computer Networks — Unit - 5 — — Application Layer —
Chapter 26 FTP.
COS 420 DAY 25. Agenda Group Project Discussion Final Paper Due April 29 User Manual Protocol Definition Program requirements Technical Specifications.
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
File Transfer: FTP and TFTP
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
Electronic Mail and SMTP
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 20 File Transfer Protocol (FTP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 26 SMTP and FTP.
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 20 File Transfer Protocol (FTP)
File Transfer Protocol (FTP)
Simple Mail Transfer Protocol
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
John Degenhart Joseph Allen.  What is FTP?  Communication over Control connection  Communication over Data Connection  File Type  Data Structure.
File Transfer Protocol (FTP)
Electronic Mail: SMTP, POP, and IMAP
Chapter 31 File Transfer & Remote File Access (NFS)
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
File Transfer & Access (FTP, TFTP, NFS)
1 Web Server Administration Chapter 9 Extending the Web Environment.
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
Review: –How do we address “a network end-point”? –What services are provided by the Internet? –What is the network logical topology observed by a network.
Application Layer Protocols Simple Mail Transfer Protocol.
4-Traditional Internet Applications Dr. John P. Abraham Professor UTPA.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
Simple Mail Transfer Protocol (SMTP)
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
File Transfer Protocol (FTP)
1 INFO 321 Server Technologies II FTP Material adapted from Dr. Randy Kaplan.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 26 (Data Communication and Networking): Remote Logging, Electronic Mail, and.
CS 3830 Day 9 Introduction 1-1. Announcements r Quiz #2 this Friday r Demo prog1 and prog2 together starting this Wednesday 2: Application Layer 2.
TCP/IP Protocol Suite 1 Chapter 19 Upon completion you will be able to: File Transfer: FTP and TFTP Understand the connections needed for FTP file transfer.
File Transfer Protocol (FTP)
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
CITA 310 Section 8 Extending the Web Environment (Textbook Chapter 9)
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Electronic Mail: SMTP, POP IMAP, and MIME.
More TCP/IP Protocols Chapter 6. TCP Transmission Control Protocol Connection-oriented Provides flow control Sequencing (putting the segments back in.
File Transfer Protocol (FTP) CIS 130. File Transfer Protocol (FTP) Copy files from one internet host (server) to your account on another host –Need domain.
COMP 431 Internet Services & Protocols
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
1 Architecture 2 User Agent 3 Message Transfer Agent 4 Message Access Agent 5 MIME 6 Web-Based Mail 7 Electronic Mail Security.
Chapter 26 SMTP and FTP 26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
Datornätverk A – lektion 14: Applikationslagret Kap 24: Sockets Kapitel 25: DNS Kapitel 26: SMTP och FTP Kapitel 27: HTTP och WWW.
Remote Logging, Electronic Mail, and File Transfer
FTP Lecture supp.
Networking Applications
Datornätverk A – lektion 14: Applikationslagret
File Transfer: FTP Objectives Chapter 19
Chapter 2: Application layer
Remote Logging, Electronic Mail,
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 26 SMTP and FTP

McGraw-Hill©The McGraw-Hill Companies, Inc., Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.1 Format of an

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure address

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.3 User agent

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Some examples of command-driven user agents are mail, pine, and elm. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Some examples of GUI-based user agents are Eudora, Outlook, and Netscape. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.4 MIME

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.5 MIME header

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 26.1Data types and subtypes in MIME TypeSubtypeDescription TextPlainUnformatted text Multiport MixedBody contains ordered parts of different data types ParallelSame as above, but no order DigestSimilar to mixed, but the default is message/RFC822 AlternativeParts are different versions of the same message Message RFC822Body is an encapsulated message PartialBody is a fragment of a bigger message Ext. BodyBody is a reference to another message Image JPEGImage is in JPEG GIFVideo is in GIF format VideoMPEGVideo is in MPEG format AudioBasicSingle-channel encoding of voice at 8 KHz Application PostScriptAdobe PostScript Octet-StreamGeneral binary data (8-bit bytes)

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 26.2 Content-transfer encoding CategoryDescription Type ASCII characters and short lines 7bitNon-ASCII characters and short lines 8bitNon-ASCII characters with unlimited-length lines Binary6-bit blocks of data are encoded into 8-bit ASCII characters Base64 Non-ASCII characters are encoded as an equal sign followed by an ASCII code

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Base64

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 26.3 Base64 encoding table ValueCodeValueCodeValueCodeValueCodeValueCodeValueCode 0A11L22W33h44s B12M23X34i45t C13N24Y35j46u D14O25Z36k47v E15P26a37l48w F16Q27b38m49x G17R28c39n50y H18S29d40o51z I19T30e41p / 9J20U31f42q531 10K21V32g43r542

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.7 Quoted-printable

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.8 MTA client and server

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure 26.9 Commands and responses

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure delivery

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure POP3

McGraw-Hill©The McGraw-Hill Companies, Inc., File Transfer Connections Communication File Transfer User Interface Anonymous

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 FTP uses the services of TCP. It needs two TCP connections. The well-known port 21 is used for the control connection, and the well-known port 20 is used for the data connection. Note:

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure FTP

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Using the control connection

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Using the data connection

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure File transfer

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 1 Figure (next slide) shows an example of how a file is stored. 1.The control connection is created, and several control commands and responses are exchanged. 2.Data are transferred record by record. 3.A few commands and responses are exchanged to close the connection.

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Figure Example 1

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Table 26.4 List of FTP commands in UNIX Commands !, $, account, append, ascii, bell, binary, bye, case, cd, cdup, close, cr, delete, debug, dir, discount, form, get, glob, hash, help, lcd, ls, macdef, mdelete, mdir, mget, mkdir, mls, mode, mput, nmap, ntrans, open, prompt, proxy, sendport, put, pwd, quit, quote, recv, remotehelp, rename, reset, rmdir, runique, send, status, struct, sunique, tenex, trace, type, user, verbose,?

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 2 We show some of the user interface commands that accomplish the same task as in Example 1. The user input is shown in boldface. As shown below, some of the commands are provided automatically by the interface. The user receives a prompt and provides only the arguments. $ ftp challenger.atc.fhda.edu Connected to challenger.atc.fhda.edu 220 Server ready Name: forouzan Password: xxxxxxx ftp > ls /usr/user/report 200 OK 150 Opening ASCII mode transfer complete ftp > close 221 Goodbye ftp > quit

McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Example 3 We show an example of using anonymous FTP. We connect to internic.net, where we assume there are some public data available. $ ftp internic.net Connected to internic.net 220 Server ready Name: anonymous 331 Guest login OK, send "guest" as password Password: guest ftp > pwd 257 '/' is current directory ftp > ls 200 OK 150 Opening ASCII mode bin... ftp > close 221 Goodbye ftp > quit