Business Data Communications and Networking: John Wiley & Sons, Inc
Business Data Communications and Networking: John Wiley & Sons, Inc
and Networking
8th Edition
Prof. M. Ulema
Manhattan College
Computer Information Systems
Copyright 2005 John Wiley & Sons, Inc 2-1
Chapter 2
Application Layer
or a PC running a
terminal emulation
program
Cost of
Infrastructure High Medium Low
Cost of
Development Low Medium High
HTTP Request
Client Computer
HTTP Response
A request-response cycle:
include multiple steps since web
Clicking on a hyperlink or pages often contain embedded
typing a URL into a browser files, such as graphics, each
starts a request-response cycle requiring a separate response.
Copyright 2005 John Wiley & Sons, Inc 2 - 23
HTTP Request Message
Request line
(command, URL, HTTP version number) required
(If the user
types in the Request header optional
URL by (information on the browser,
themselves, date, and the referring page )
then the
referring page
is blank.)
Request body
(information sent to the server, optional
e.g., from a form)
Request
GET http://www.kelley.indiana.edu/ardennis/home.htm HTTP/1.1 Line
<html>
<head>
<title>Allen R. Dennis</title>
</head>
<body>
<H2> Allen R. Dennis </H2> Response
<P>Welcome to the home page of Allen R. Dennis</P> Body
</body>
</html>
SMTP
packet Server computer
IMAP or with e-mail server
Client computer POP packet software
contacts the LAN
mail server stores the
which then message in the
downloads SMTP receiver’s mail
the message packet box
Copyright 2005 John Wiley & Sons, Inc 2 - 32
Host Based e-mail Architectures
• An old method used on UNIX (main-frame) based
hosts
• Similar to client-server architecture, except
– Client PC replaced by a terminal (or emulator)
• Sends all keystrokes to the server
• Display characters received from the server
– All software resides on server
• Takes client keystrokes and understand user’s
commands
• Creates SMTP packets and sends them to next mail
server
Body
(message itself)
Attachments
(additional files included
along with the e-mail message)
IM packet Server
sends a request to the IM server telling it
that you are online. If a friend connects, computer with
the IM server sends a packet to your IM with IM
client and vice versa
LAN server
software
Internet IM packet