Computernetworks: Application Layer
Computernetworks: Application Layer
APPLICATION LAYER
INTRODUCTION
• A user of an e‐mail program may know the e‐
mail address of the recipient; however, the IP
protocol needs the IP address.
• The DOMAIN NAME SYSTEM client program
sends a request to a DNS server to map the e‐
mail address to the corresponding IP address.
To identify an entity the internet uses the IP
addresswhichidentifiestheconnectionofahost to
the internet.
Topicsdiscussedinthissection:
Flat Name Space
Hierarchical NameSpace
FLATNAMESPACE
• Anameisassignedtoanaddress.
• A name in this space is a sequence of
characters without structure.
• The main disadvantage of a fiat name space is
that it cannot be used in a large system such
as the Internet because it must be centrally
controlled to avoid ambiguity and duplication.
HIERARCHICALNAMESPACE
• Each name ismade ofseveral parts.
• The first part can define the nature of the organization,
• the second part can define the name of an
organization,
• the third part can define departments in the
organization, and so on .
• Ex challenger.jhda.edu, challenger.berkeley.edu, and
challenger.smart.com.
• To have a hierarchical namespace ,a domain name
space was designed.
DOMAINNAMESPACE
Label
DomainName
Domain
Domainnamespace
A portion of the Internet domain name space.
Domainnamesandlabels
Label
Eachnodeinthetreehasalabel, whichisastringwithamaximumof63
characters . The root label is aempty string. DNS requires that children of a
nodehave different labels, which guarantees the uniqueness of the domain
names.
Domain Name
Each node in the tree has a domain name. A full domain name is a sequence of
labels separated by dots (.). The domain names are always read from the node
up to the root. The last label is the label of the root (null). This means that a full
domain name always ends in a null label, which means the last character is adot
because the null string is nothing.
Domain
A domain is a sub tree of the domain namespace. The name of the domain is
the domain name of the node at the top of the sub tree. Note that a domain
may itself be divided into domains.
Domains
DISTRIBUTIONOFNAME SPACE
Topicsdiscussedinthissection:
Hierarchy of Name Servers
Zone
Root Server
Primary and secondary Servers
HierarchyofNameServers
The solution to these problems is to distribute the information among many
computers called DNS servers. One way to do this is to divide the whole space into
many domains based on the first level.DNS allows domains to be divided further into
smaller domains( subdomains). Each server can be responsible(authoritative)for either
a large or a small domain.
Zone
Since the complete domainnamehierarchycannotbestoredonasingleserver, it is
divided among many servers. What a server is responsible for or has
authorityoveriscalledazone.Wecandefineazoneasacontiguouspartofthe entire
tree.
Root Server
A root server is a server whose zone consists of the whole tree. A root server
usually does not store any information about domains but delegatesits authority
to other servers, keeping references to those servers. There are several root
servers, each covering the whole domain name space. The servers are
distributed all around the world.
A primary server is a server that stores a file about the zone for which it is an
authority. It is responsible for creating, maintaining, and updating the zone file. It
stores the zone file on a local disk.