The Application Layer  application and application requirements  sample network applications and protocols  SMTP, POP3  WWW: http1.1  teleconferencing.

Slides:



Advertisements
Similar presentations
World Wide Web Basics Original version by Carolyn Watters (Dalhousie U. Computer Science)
Advertisements

HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
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,
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Application Layer – Lecture.
Application Layer-11 CSE401N: Computer Networks Lecture-4 Application Layer Overview HTTP.
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Electronic Mail and SMTP
1 Computer Networks Transport Layer Protocols. 2 Application-layer Protocols Application-layer protocols –one “piece” of an app –define messages exchanged.
Dr. Philip Cannata 1 Principles of Network Applications.
Chapter 30 Electronic Mail Representation & Transfer
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
Introduction 1 Lecture 5 Application Layer slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering Department.
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.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works 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.
Chapter 2 Application Layer Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April A note on the use.
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Human-Computer Interface Course 5. ISPs and Internet connection.
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.
Intro to Computer Networks Bob Bradley The University of Tennessee at Martin.
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.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
Network Applications Outline Simple Mail Transfer Protocol
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
CS 3830 Day 7 Introduction : Application Layer 2 Processes communicating Process: program running within a host. r within same host, two processes.
FTP (File Transfer Protocol) & Telnet
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
Application Layer 2 Figures from Kurose and Ross
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
What makes a network good? Ch 2.1: Principles of Network Apps 2: Application Layer1.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
File Transfer Protocol (FTP)
Sockets process sends/receives messages to/from its socket
Krerk Piromsopa. Application Protocols & System Services. 1 Krerk Piromsopa. Department of Computer Engineering. Chulalongkorn University.
1 End-user Protocols, Services and QoS. 2 Layering: logical communication application transport network link physical application transport network link.
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.
Lecture 6: Sun: 8/5/1435 Distributed Applications Lecturer/ Kawther Abas CS- 492 : Distributed system & Parallel Processing.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
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.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
SMTP - Simple Mail Transfer Protocol RFC 821
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.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
COMP 431 Internet Services & 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.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Instructor Materials Chapter 5 Providing Network Services
Chapter 2: Application layer
William Stallings Data and Computer Communications
The Application Layer: SMTP, FTP
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

The Application Layer  application and application requirements  sample network applications and protocols  SMTP, POP3  WWW: http1.1  teleconferencing  reading: text sections 7.4, 7.6, 7.7 Copyright All Rights Reserved, J. Kurose, D. Towsley

Network Applications our goal: understand  service requirements applications place on network infrastructure  protocols distributed applications use to implement application two views:  applications drive technology technology  build it and they will come will come

Application Requirements  bandwidth: how many bits/sec required? Smooth or bursty traffic stream?  protocol processing: how many MIPs required for application software and underlying protocols?  holding time: how long does application run?  data-level reliability: reliable (in-order, no loss) delivery needed?  performance: constraints on maximum application-to- application delay, tail of delay distribution?  QOS: quality of service guarantees required?  communication structure: 1-1, 1-many, many-many?  security: authentication, encryption required?

Application Requirements

Application Structure network application distributed in nature  set of communicating application-level processes (usually) on different hosts provide/implement

Application Structure client server model:  server offers service via well defined interface, client request service  client: how to locate/request service  server how/whether to provide service  example: WWW client (browser), server peer/peer model:  symmetric: each process an equal  example: teleconferencing both require transport of request/replies, sharing of data

Application Example:  generic issues:  addressing: identities of receiver/sender, format of address info  privacy/security  notification of receipt, reading, disposition  different types of media: text, audio, video, document types  competing standards that don’t interoperate  mail gateways convert from one format to another

Internet Mail: SMTP SMTP: simple mail transfer protocol  RFC 821, RFC 822 define protocol activities and message structure for SMTP RFC 821RFC 822 RFC 821RFC 822  RFC: request for comments are Internet draft, standards, information documents.  locations: ftp://nic.ddn.mil, state.edu/hypertext/information/rfc.html  uses underlying reliable transport service (TCP)

SMTP Sending mail:  essentially a SMTP-mediated file transfer: sender SMTP protocol entity sends to receiver SMTP protocol entity  sender learns receivers host address (how?)  sender contacts receiver at well known “port” number (25) at that host

SMTP sender-receiver commands SMTP sender and receiver exchange typical of peer- peer interactions:  control commands, replies, data  three basic steps: “greeting”, data exchange, “goodbye”

SMTP sender-receiver commands

Example SMTP Exchange

Another Example gaia 3% telnet gaia.cs.umass.edu 25 Trying … Connected to gaia. Escape character is '^]'. 220 gaia.cs.umass.edu ESMTP Sendmail 8.7.6/8.6.9 ready at Wed, 11 Feb :13: (EST) HELO abc.com 250 gaia.cs.umass.edu Hello gaia [ ], pleased to meet you MAIL FROM: Sender ok RCPT TO: 553 Unbalanced '<’

Another Example (cont.) RCPT TO: 250 Recipient ok DATA 354 Enter mail, end with "." on a line by itself … Don. 250 VAA04032 Message accepted for delivery QUIT 221 gaia.cs.umass.edu closing connection

SMTP: Closing Comments  extensions to SMTP:  MIME (multipurpose Internet mail extensions): multiple body parts, multimedia mail, multiple fonts and character sets, RFC 1324  PEM (privacy-enhanced mail): RFC

 Post Office Protocol (POP3)  SMTP assumes there is an SMTP server at recipient  SMTP can also deliver to a Post Office (server)  client can retrieve mail remotely (e.g., over net) using Post Office Protocol (POP3) to interact with server. Three phases:  greeting  transactions (retrieve mail)  quit  mail stored at client  Interactive Mail Access Protocol (IMAP)  similar to POP3 except mail stored at server

Hypertext Transfer Protocol: http  WWW implemented using client/server paradigm:  client (browser) requests and displays received html documents  server receives requests, responds with requested html documents  http protocol defines format of packets exchanged between client and server, actions taken upon receipt  http is a stateless, transaction-oriented protocol:  client contacts server at port 80, using TCP  client makes request to server  reply from server to client  TCP connection closed

Http (cont.)  request/replies have headers and bodies similar to SMTP and MIME  RFC 2068 (long!) defines http RFC 2068 RFC 2068

HTTP Request Message  sent from client to server  general format:  request line (method, identifier, version)  header (additional info)  body

Example http Request Message Suppose you access sample GET command plus header: GET /cs /index.html HTTP/1.0 User-Agent: Mozilla/2.01 (X11; I; IRIX 5.2 IP7) Accept: image/gif, image/x-bitmap, image/jpeg /* a blank line */

http Reply Message  sent from server to client  general format:  status line (status code, text phrase)  header (additional info)  body

Example http reply Message a sample http server reply: HTTP/ Document follows MIME-Version: 1.0 Server: CERN/3.0 Date: Wednesday 10-Apr-96 03:59:47 GMT Content-type: text/html Content-length: 2168 Last-Modified: Friday 06-Oct-95 07:16:52 GMT /* a blank line */ <html><head> : /* HTML text of the Web page */ </html>

Teleconferencing applications: requirements goal: interactive (real time) communication with multiple media components (audio, video, text (whiteboard). continuous media such as audio, video  require “smooth” playout at receiver  Internet does not provide jitter-free communication  jitter: change in network delay  receiver buffers packets and “plays out” periodically  delayed playout of first packet allows receiver buffer to “absorb” network jitter  late packets lost  can tolerate “some” lost packets

Audio Playout time audio samples Q: what kind of service, best effort or guaranteed with resource reservation? guaranteed with resource reservation?

Applications: Summary  diverse applications place widely varying service requirements on network bandwidth, reliability, real-time constraint, QoS guarantees, security  application-level protocols between distributed entities implement application using network services via network API  client-server paradigm  applications rule!