2.application Layer
2.application Layer
Contents
• 1. DHCP
• 2. DNS
• 3. E-MAIL
• 4. HTTP
• 5. P2P
• 6.FTP
• 7.SNMP
DHCP
Story ?
• a directory service that translates hostnames to IP addresses. this is the main task of the
Internet’s domain name system (DNS).
• The DNS is (1) a distributed database implemented in a hierarchy of DNS servers, and
• (2) an application-layer protocol that allows hosts to query the distributed database.
• The DNS servers are often UNIX machines running the Berkeley Internet Name
• Domain (BIND) software [BIND 2012]. The DNS protocol runs over UDP and uses
• port 53.
What else DNS …..
• Host aliasing.
• A host with a complicated hostname can have one or more alias names. For
example, a hostname such as relay1.west-coast.enterprise. com could have,
say, two aliases such as enterprise.com and coast.com. In this case, the
hostname relay1.westcoast.enterprise.com is said to be a canonical
hostname
• Mail server aliasing
• Load distribution.
The problems with a centralized design
include OF DNS:
• A single point of failure
• Traffic volume.
• Maintenance.
CLASSES OF DNS SERVERS
• ROOT DNS SERVER(13-567)
• TOP-LEVEL-DOMAIN SERVER(TLD)
• AUTHORITATIVE DNS SERVERS
@ A 192.0.2.1 14400
• AAAA,HINFO
• TXT
• PTR
• https://en.wikipedia.org/wiki/List_of_DNS_record_types
A –address record
• BVB.EDU ---210.192.18.35
NS-name server record
• An NS record is used to delegate a sub domain to a set of name
servers
• BVB.EDU -----A
• CSE.BVB.EDU----NS
• The more important function of the NS-record is delegation. Delegation means that
part of a domain is delegated to other DNS servers. For example, all ".com" sub-
names (such as "example.com") are delegated from the "com" zone. The "com" zone
contains NS-records for all ".com" sub-names.
• These records indicate which name servers are authoritative for the zone / domain.
• NS Records are primarily used if you want to break your domain into subdomains.
• if you have a server where you keep all of your documents online, it might normally be accessed through
docs.google.com .
• A Canonical Name or CNAME record is a type of DNS record that maps an alias name to a true or canonical
domain name. .
• MAIL.BVB.EDU
• Mail.kletech.ac.in
• MX record permits a company’s mail server and Web server
to have identical (aliased) hostnames; for example, a
company’s Web server and mail server can both be called
enterprise.com.
Demonstration of KLE-Tech DNS
KL ETe c h_DNS_named. tx t
SMTP
• STORY
• sabeer Bhatia
Story ?
in HTTP request
If-modified-since: <date>
server: response contains no HTTP request msg
If-modified-since: <date> object
object if cached copy is up-to-date: modified
HTTP/1.0 304 Not Modified HTTP response after
HTTP/1.0 200 OK <date>
<data>
HTTP has a mechanism that allows a cache to verify that its objects are up
to date. This mechanism is called the conditional GET Application Layer: 2-58
Demonstration of HTTP and Its security Issues
HTTP https://en.wikipedia.org/wiki/HTTPS