Remote Logging, Electronic Mail, and File Transfer

Slides:



Advertisements
Similar presentations
TCP/IP Protocol Suite 1 Chapter 18 Upon completion you will be able to: Remote Login: Telnet Understand how TELNET works Understand the role of NVT in.
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
TCP/IP Protocol Suite 1 Chapter 18 Upon completion you will be able to: Remote Login: Telnet Understand how TELNET works Understand the role of NVT in.
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.
Remote Login: TELNET and
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
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
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.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
Electronic Mail: SMTP, POP, and IMAP
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
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.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
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.
BY SAGAR SINHA SAPTARSHI BAKSHI SARTHAK JAIN SHAILZA CHAUDHARY
Simple Mail Transfer Protocol (SMTP)
Electronic Mail. Client Software and Mail Hosts –Client PC has client software that communicates with user’s mail host –Mail hosts deliver.
File Transfer Protocol (FTP)
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 26 (Data Communication and Networking): Remote Logging, Electronic Mail, and.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
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.
TELNET 1.TELNET 2.SSH. TELNET  TELNET is an abbreviation for TErminaL NETwork.  It is the standard TCP/IP protocol for virtual terminal service as proposed.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Ch26 Ameera Almasoud 1 Based on Data Communications and Networking, 4th Edition. by Behrouz A. Forouzan, McGraw-Hill Companies, Inc., 2007.
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.
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
Dr. Adil Yousif University of Alneelian – Master of CS - IT Electronic Mail.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Application Layer instructors at St. Clair College in Windsor, Ontario for their slides. Special thanks to instructors at St. Clair College in Windsor,
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
Chapter 26 Standard Client-Server Protocols
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
WWW and HTTP King Fahd University of Petroleum & Minerals
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
File Transfer: FTP Objectives Chapter 19
UNIT V APPLICATION LAYER.
Remote Login: Telnet Objectives Chapter 18
Chapter 2: Application layer
Remote Logging, Electronic Mail,
The Application Layer: SMTP, FTP
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

Remote Logging, Electronic Mail, and File Transfer King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science Department ICS 343 Fundamentals of Computer Networks Remote Logging, Electronic Mail, and File Transfer These slides are based on: Chapter 26, Data Communications and Networking, 4th Edition

Topics discussed in this section: REMOTE LOGGING It would be impossible to write a specific client/server program for each demand. The better solution is a general-purpose client/server program that lets a user access any application program on a remote computer. Topics discussed in this section: TELNET

TELNET is a general-purpose client/server application program. Note TELNET is a general-purpose client/server application program. It uses one TCP connection on the well-known port 23.

Figure 26.1 Local and remote log-in

Figure 26.2 Concept of NVT For compatibility, TELNET translates characters (data and commands to/from NVT character set.

Table 26.1 Some NVT control characters

cat filea<backspace>1 Figure 26.3 An example of embedding Result of correcting a character: cat filea<backspace>1

Table 26.2 Options TELNET lets the client and the server negotiate options before or during the use of the service.

Table 26.3 NVT character set for option negotiation

Example Figure 26.4 shows an example of option negotiation. In this example, the client wants the server to echo each character sent to the server. The echo option is enabled by the server because it is the server that sends the characters back to the user terminal. Therefore, the client should request from the server the enabling of the option using DO. The request consists of three characters: IAC, DO, and ECHO. The server accepts the request and enables the option. It informs the client by sending the three-character approval: IAC, WILL, and ECHO.

Figure 26.4 Example 26.1: Echo option

Table 26.4 Character set for suboptions

Example Figure 26.5 shows an example of suboption negotiation. In this example, the client wants to negotiate the type of the terminal.

Figure 26.5 Example of suboption negotiation

Topics discussed in this section: ELECTRONIC MAIL One of the most popular Internet services is electronic mail (e-mail). The designers of the Internet probably never imagined the popularity of this application program. Its architecture consists of several components that we discuss in this chapter. Topics discussed in this section: Architecture User Agent Message Transfer Agent: SMTP Message Access Agent: POP and IMAP Web-Based Mail

Figure 26.6 First scenario in electronic mail

When the sender and the receiver of an e-mail are on the same system, Note When the sender and the receiver of an e-mail are on the same system, we need only two user agents.

Figure 26.7 Second scenario in electronic mail

need two UAs and a pair of MTAs (client and server). Note When the sender and the receiver of an e-mail are on different systems, we need two UAs and a pair of MTAs (client and server).

Figure 26.8 Third scenario in electronic mail

When the sender is connected to the mail server via a LAN or a WAN, Note When the sender is connected to the mail server via a LAN or a WAN, we need two UAs and two pairs of MTAs (client and server).

Figure 26.9 Fourth scenario in electronic mail

Figure 26.10 Push versus pull in electronic email

When both sender and receiver are connected to the mail server via Note When both sender and receiver are connected to the mail server via a LAN or a WAN, we need two UAs, two pairs of MTAs and a pair of MAAs. This is the most common situation today.

User Agent (UA) A User Agent (UA) is a software package (program) that composes, reads, replies to, and forwards messages. The typical services of a UA are: There are two types of user UA: Command-driven GUI-based

Some examples of command-driven user agents are mail, pine, and elm. Note Some examples of command-driven user agents are mail, pine, and elm.

Note Some examples of GUI-based user agents are Eudora, Outlook, and Netscape.

Figure 26.12 Format of an e-mail

Figure 26.13 E-mail address

Multipuropse Internet Mail Extensions (MIME) Electronic mail can send messages only in NVT 7-bits ASCII format MIME is a supplementary protocol that allows non-ASCII data to be sent through e-mail.

Figure 26.15 MIME header

Table 26.5 Data types and subtypes in MIME

Table 26.6 Content-transfer-encoding

Simple Mail Transfer Protocol (SMTP) SMTP is a protocol to transfer mails It defines the MTA client and server in the Internet SMTP defines how commands and responses must be sent back and forth between MTA client and server.

Figure 26.17 Commands and responses

Figure 26.18 Command format

Table 26.7 Commands Commands sent from the client to the server

Table 26.8 Responses Responses are sent from the server to the client

Table 26.8 Responses (continued)

Example $ telnet mail.adelphia.net 25 Trying 68.168.78.100 . . . Connected to mail.adelphia.net (68.168.78.100).

Example

Example

POP3 and IMAP4 The first and the second stages of mail delivery use SMTP. However, SMTP is not involved in the third stage because SMTP is a push protocol. There are two message access protocols: Post Office Protocol, version 3 (POP3) Internet Mail Access Protocol, version 4 (IMAP4)

Figure 26.19 POP3 and IMAP4

POP3 vs IMAPv4 POP3 is deficient in several ways IMAP4 is more powerful and more complex POP3 does not allow the user to organize her mail on the server POP3 does not allow the user to partially check the contents of mail before downloading With IMAP4, the user can check the e-mail header prior to downloading With IMAP4, the user can search the contents of the e-mail for a specific string of characters prior to downloading With IMAP4, the user can partially download e-mail

POP3 vs IMAP4

Figure 26.20 The exchange of commands and responses in POP3

Web-based Mail Some websites provide email service to anyone who accesses the site Mail transfer from the sender’s browser to the mail server is done through HTTP The transfer of the message from the sending mail server to the receiving mail server is still through SMTP The transfer from the receiving server to the receiver’s browser is done also through HTTP.

Topics discussed in this section: FILE TRANSFER Transferring files from one computer to another is one of the most common tasks expected from a networking or internetworking environment. As a matter of fact, the greatest volume of data exchange in the Internet today is due to file transfer. Topics discussed in this section: File Transfer Protocol (FTP) Anonymous FTP

Note FTP uses the services of TCP. It needs two TCP connections: one for data transfer and the other for control information. The well-known port 21 is used for the control connection and the well-known port 20 for the data connection.

Figure 26.21 FTP

Figure 26.22 Using the control connection Commands are responses are coverted to/from NVT 7-bit ASCII character set.

Figure 26.23 Using the data connection

Example The following shows an actual FTP session for retrieving a list of items in a directory. The colored lines show the responses from the server control connection; the black lines show the commands sent by the client. The lines in white with a black background show data transfer. 1. After the control connection is created, the FTP server sends the 220 response. 2. The client sends its name. 3. The server responds with 331.

Example 4. The client sends the password (not shown). 5. The server responds with 230 (user log-in is OK). 6. The client sends the list command (ls reports) to find the list of files on the directory named report. 7. Now the server responds with 150 and opens the data connection. 8. The server then sends the list of the files or directories on the data connection. 9. The client sends a QUIT command. 10. The server responds with 221.

Example

continued on next slide Example We show an example of anonymous FTP. We assume that some public data are available at internic.net. We show an example of anonymous FTP. We assume that some public data are available at internic.net. continued on next slide

Example

The end Important to do at home : - read chapter 26 of the textbook