Docsity

Assignment 2 computer n/w computer n/w computer n/w, Slides of Computer Networks

Toggle sidebar
bg1
Data Communication and
Computer Networks
3. Application Layer
PART-B
Dr. Aiman Hanna
Department of Computer Science & Software Engineering
Concordia University, Montreal, Canada
These slides has mainly been extracted, modified and updated from original slides of :
Computer Networking: A Top Down Approach, 6th edition Jim Kurose, Keith Ross
Addison-Wesley, 2013
Additional materials have been extracted, modified and updated from:
Understanding Communications and Networking, 3e by William A. Shay 2005
Copyright © 1996-2013 J.F Kurose and K.W. Ross
Copyright © 2005 William A. Shay
Copyright © 2018 Aiman Hanna
All rights reserved
Application Layer B 2-1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21

Partial preview of the text

Download Assignment 2 computer n/w computer n/w computer n/w and more Slides Computer Networks in PDF only on Docsity!

Data Communication and

Computer Networks

3. Application Layer

PART-B

Dr. Aiman Hanna

Department of Computer Science & Software Engineering Concordia University, Montreal, Canada These slides has mainly been extracted, modified and updated from original slides of : Computer Networking: A Top Down Approach, 6th edition Jim Kurose, Keith Ross Addison-Wesley, 2013 Additional materials have been extracted, modified and updated from: Understanding Communications and Networking, 3e by William A. Shay 2005 Copyright © 1996-2013 J.F Kurose and K.W. Ross Copyright © 2005 William A. Shay Copyright © 2018 Aiman Hanna All rights reserved

DNS: domain name system

people: many identifiers:

 SSN, name,

passport

Internet hosts, routers:

 IP address (32 bit) -

used for addressing

datagrams

 “name”, e.g.,

www.yahoo.com -

used by humans

Q: how to map between

IP address and name,

and vice versa?

Domain Name System:

1) distributed database

implemented in hierarchy

of many DNS servers

2) application-layer

protocol: which allows

hosts to query the

database

 (^) name servers communicate to resolve names (address/name translation)  (^) note: core Internet function, implemented as application-layer protocol  (^) complexity at network’s “edge”; possibly a substantial delay

DNS: services, structure

host aliasing : specify domain name as an alias of another  (^) i.e. point ftp.example.com and www.example.com (an FTP server and a webserver running on two ports from a single IP address) to example.com  (^) such domain names are referred to a Canonical Names ( CNAME s); the pointed-to domain name is an alias  (^) a CNAME must point to another domain name; never to an IP address. In turn that pointed-to domain name points to the IP address  (^) if the IP of the server ever changes, only one update to the DNS record is required for all CNAMEs

DNS: services, structure

mail server aliasing  (^) e-mail addresses need to be resolved as well; however the name e-mail server may be CNAME  (^) i.e. an e-mail directed to [email protected] may seem to require resolving example.com; however the mail server at example.com may actually be a CNAME (i.e relay.west-coast.example.com)  (^) DNS can be invoked by e-mail application to obtain the CNAME of an alias hostname, as well as the IP address of the host

Root DNS Servers com DNS servers org DNS servers^ edu DNS servers poly.edu DNS servers umass.edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers DNS: a distributed, hierarchical database client wants IP for www.amazon.com; 1st^ approx:

 client queries root server to find com DNS server

 client queries .com DNS server to get amazon.com

DNS server

 client queries amazon.com DNS server to get IP

address for www.amazon.com

… …

Application Layer B 2- 8

DNS: root name servers

 (^) contacted by local name server that can not resolve name  (^) root name server:

 contacts authoritative name server if name mapping

not known

 gets mapping

 returns mapping to local name server

13 root name “servers” worldwide ( 937 instances as of, September 19, 2018) a. Verisign, Los Angeles CA (5 other sites) b. USC-ISI Marina del Rey, CA l. ICANN Los Angeles, CA (41 other sites) e. NASA Mt View, CA f. Internet Software C. Palo Alto, CA (and 48 other sites) i. Netnod, Stockholm (37 other sites) k. RIPE London (17 other sites) m. WIDE Tokyo (5 other sites) c. Cogent, Herndon, VA (5 other sites) d. U Maryland College Park, MD h. ARL Aberdeen, MD j. Verisign, Dulles VA (69 other sites ) g. US DoD Columbus, OH (5 other sites) DNS root servers - 2012

Local DNS name server

does not strictly belong to DNS

hierarchy

each ISP (residential ISP, company,

university) has one

 (^) also called “default name server” 

when host makes DNS query, query is

sent to its local DNS server

 (^) has local cache of recent name-to-address translation pairs (but may be out of date!)  (^) acts as proxy, forwards query into hierarchy

requesting host cis.poly.edu gaia.cs.umass.edu root DNS server local DNS server dns.poly.edu 1 2 3 4 5 6 authoritative DNS server dns.cs.umass.edu 7 8 TLD DNS server

DNS name

resolution

example

 host at cis.poly.edu wants IP address for gaia.cs.umass.edu

Iterative query:

 (^) contacted server replies with name of server to contact  (^) “I don’t know this name, but ask this server” Note : call from cis.poly.edu is recursive; rest are iterative

DNS: caching, updating

records

 a critically important feature of DNS  improve delay performance & reduce DNS messages in the Internet  once (any) name server learns of an address mapping, it caches it  (^) cache entries timeout (disappear) after some time (TTL)  (^) TLD servers typically cached in local name servers

  • (^) thus root name servers not often visited

DNS: caching, updating

records

 cached entries may be out-of-date (best effort name-to-address translation!)  (^) if name host changes IP address, may not be known Internet-wide until all TTLs expire  update/notify mechanisms proposed IETF standard  (^) RFC 2136

DNS records

 (^) each DNS reply may carry one or more RRs Example  (^) Assume the DNS server is an authoritative server for a particular hostname  (^) server will return Type A RR e.g., (gaia.cs.umass.edu, 145.119.96.44, A)  (^) Note: This type may be returned by any non- authoritative server as well (i.e. from a previously cashed record)  (^) Assume the DNS server is NOT an authoritative server for a particular hostname  (^) server may return Type NS RR e.g., (umass.edu, dns.umass.edu , NS) As well as: e.g., (dns.umass.edu, 145.119.96.28, A)

DNS protocol, messages

 (^) query and reply messages, both have same message format msg header  (^) identification: 16 bit # for query, reply to query uses same #  (^) flags:  (^) 1-bit query or reply  (^) 1-bit recursion desired  (^) 1-bit recursion available  (^) 1-bit reply is authoritative identification flags

questions

questions (variable # of questions)

authority RRs # additional RRs

answer RRs

answers (variable # of RRs) authority (variable # of RRs) additional info (variable # of RRs) 2 bytes 2 bytes

Inserting records into DNS

example: new startup “Network Utopia”

register name networkuptopia.com at DNS

registrar (e.g., Network Solutions)

 (^) provide names, IP addresses of authoritative name server (primary and secondary)  (^) registrar inserts two RRs into .com TLD server: (networkutopia.com, dns1.networkutopia.com, NS) (dns1.networkutopia.com, 212.212.212.1, A)

enter needed records into your authoritative

DNS server:

 (^) type A record for www.networkuptopia.com;  (^) type MX record for mail.networkutopia.com

Attacking DNS

DDoS attacks

Bombard root servers with traffic

 (^) i.e. large-scale attack on October 21, 2002 using massive ping messages to the 13 root servers  (^) Not successful to date

  • (^) Traffic Filtering (configured to block ping messages)
  • (^) Local DNS servers cache IPs of TLD servers, allowing root server bypass 

Bombard TLD servers

 (^) Potentially more dangerous  (^) i.e. send a massive number of DNS quires; which will not be filtered  (^) Severity can still be mitigated (at least partially) by caching in local DNS servers