You are on page 1of 74

Application Layer

By
Farhan M.Shaikh
B.Sc. (CS),M.Sc. (IT), B.Ed.,M.Ed., M.A (Sociology)., UGC-NET (Education/ Sociology)

Visiting Faculty
L.S. Raheja College, SantaCruz
Tolani College, Andheri
Pioneer Education Center, Borivali, Andheri & Vasai
L.I.I.T., Dadar & Mulund
T.I.M.E., Andheri & Borivali
Unit 2 : Application Layer
DNS
Remote Logging (Telnet)
SMTP
FTP
WWW
HTTP

farhan.mohd@yahoo.co.in 2
Introduction

farhan.mohd@yahoo.co.in 3
Example of using the DNS service

farhan.mohd@yahoo.co.in 4
Introduction

farhan.mohd@yahoo.co.in 5
NAMESPACE

To be unambiguous, the names assigned to machines


must be carefully selected from a name space with
complete control over the binding between the names
and IP addresses.

Topics discussed in this section:


Flat Name Space
Hierarchical Name Space

farhan.mohd@yahoo.co.in 6
Flat Name Space

farhan.mohd@yahoo.co.in 7
Hierarchical Name Space

farhan.mohd@yahoo.co.in 8
DOMAINNAMESPACE

To have a hierarchical name space, a domain name


space was designed. In this design the names are
defined in an inverted-tree structure with the root at
the top. The tree can have only 128 levels: level 0
(root) to level 127.

Topics discussed in this section:


Label
Domain Name
Domain

farhan.mohd@yahoo.co.in 9
Domain Name Space

farhan.mohd@yahoo.co.in 10
Domain Name Space

farhan.mohd@yahoo.co.in 11
Domain Name and Label

farhan.mohd@yahoo.co.in 12
Domain

farhan.mohd@yahoo.co.in 13
Hierarchy of name servers

farhan.mohd@yahoo.co.in 14
DNS in the Internet

farhan.mohd@yahoo.co.in 15
Generic Domains

farhan.mohd@yahoo.co.in 16
Generic domain labels

farhan.mohd@yahoo.co.in 17
Country Domains

farhan.mohd@yahoo.co.in 18
Inverse Domain

farhan.mohd@yahoo.co.in 19
Inverse Domain

farhan.mohd@yahoo.co.in 20
Remote Logging (Telnet)

farhan.mohd@yahoo.co.in 21
TELNET

farhan.mohd@yahoo.co.in 22
Local and remote log-in

farhan.mohd@yahoo.co.in 23
TELNET

farhan.mohd@yahoo.co.in 24
TELNET

farhan.mohd@yahoo.co.in 25
SMTP (E 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.

farhan.mohd@yahoo.co.in 26
Architecture of E Mail

farhan.mohd@yahoo.co.in 27
Architecture of E Mail

farhan.mohd@yahoo.co.in 28
Architecture of E Mail

farhan.mohd@yahoo.co.in 29
Architecture of E Mail

farhan.mohd@yahoo.co.in 30
Architecture of E Mail

farhan.mohd@yahoo.co.in 31
Architecture of E Mail

farhan.mohd@yahoo.co.in 32
Architecture of E Mail

farhan.mohd@yahoo.co.in 33
Message Transfer Agent:- SMTP

farhan.mohd@yahoo.co.in 34
Message Transfer Agent:- SMTP

farhan.mohd@yahoo.co.in 35
SMTP Commands & Responses

farhan.mohd@yahoo.co.in 36
Commands

farhan.mohd@yahoo.co.in 37
SMTP Commands & Responses

farhan.mohd@yahoo.co.in 38
SMTP Commands & Responses

farhan.mohd@yahoo.co.in 39
Mail Transfer Phases

farhan.mohd@yahoo.co.in 40
FILETRANSFER

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)

farhan.mohd@yahoo.co.in 41
File Transfer Protocol (FTP)

farhan.mohd@yahoo.co.in 42
Note

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 for the data connection.

farhan.mohd@yahoo.co.in 43
File Transfer Protocol (FTP)

farhan.mohd@yahoo.co.in 44
Communication over Control Connection

farhan.mohd@yahoo.co.in 45
Communication over Data Connection

farhan.mohd@yahoo.co.in 46
Communication over Data Connection

farhan.mohd@yahoo.co.in 47
File Transfer Protocol (FTP)

farhan.mohd@yahoo.co.in 48
File Transfer Protocol (FTP)

farhan.mohd@yahoo.co.in 49
ARCHITECTURE

The WWW today is a distributed client/server service,


in which a client using a browser can access a service
using a server. However, the service provided is
distributed over many locations called sites.

Topics discussed in this section:


Client (Browser)
Server
Uniform Resource Locator
Cookies

farhan.mohd@yahoo.co.in 50
Architecture of WWW

farhan.mohd@yahoo.co.in 51
WWW

farhan.mohd@yahoo.co.in 52
WWW

farhan.mohd@yahoo.co.in 53
WWW

farhan.mohd@yahoo.co.in 54
WEBDOCUMENTS

The documents in the WWW can be grouped into three


broad categories: static, dynamic, and active. The
category is based on the time at which the contents of
the document are determined.

Topics discussed in this section:


Static Documents
Dynamic Documents
Active Documents

farhan.mohd@yahoo.co.in 55
Static document

farhan.mohd@yahoo.co.in 56
Boldface tags

farhan.mohd@yahoo.co.in 57
Effect of boldface tags

farhan.mohd@yahoo.co.in 58
Beginning and ending tags

farhan.mohd@yahoo.co.in 59
Dynamic document using CGI

farhan.mohd@yahoo.co.in 60
Dynamic document using server-site script

farhan.mohd@yahoo.co.in 61
Note

Dynamic documents are sometimes


referred to as server-site dynamic
documents.

farhan.mohd@yahoo.co.in 62
Active document using Java applet

farhan.mohd@yahoo.co.in 63
Active document using client-site script

farhan.mohd@yahoo.co.in 64
Note

Active documents are sometimes


referred to as client-site dynamic
documents.

farhan.mohd@yahoo.co.in 65
HTTP

HTTP uses the services of TCP on well-


known port 80.
farhan.mohd@yahoo.co.in 66
HTTP Transaction

farhan.mohd@yahoo.co.in 67
Request and response messages

farhan.mohd@yahoo.co.in 68
Request and status lines

farhan.mohd@yahoo.co.in 69
Methods

farhan.mohd@yahoo.co.in 70
Status codes

farhan.mohd@yahoo.co.in 71
Status codes (continued)

farhan.mohd@yahoo.co.in 72
References
Computer Networks,
Tanenbaum A (PHI)

Data Communications and Networking,


Forouzan B (TMH)

farhan.mohd@yahoo.co.in 73
farhan.mohd@yahoo.co.in 74

You might also like