





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The problem of remembering ip addresses and introduces the solution of using domain names and the domain name system (dns). It covers the structure of the dns, the dns protocol, and the concept of dns caching. It also discusses the importance of dns in content delivery networks (cdns).
Typology: Slides
1 / 45
This page cannot be seen from the preview
Don't miss anything!
Domain Name System (DNS) Ch 9.1 in text Book Problem statement:
Average brain can easily remember 10 digits
On average, IP addresses have 10.28 digits
We need an easier way to remember IP addresses
Solution:
Solution:
Use alphanumeric names to refer to hosts
Add a distributed, hierarchical protocol (called DNS) tomap between alphanumeric host names and IP addresses
We call this Address Resolution
⥠ʵ DNS Root name servers Responsible for root zone About 12 root name servers worldwide Loal name servers are confgured to contact well
known root servers well
known root servers
Domain Name Service The domain name service consists of
Domain name space
Name servers
In each zone, there is a primary name server and one or more secondary name servers Name servers contain two kinds of address mappings:
Name servers contain two kinds of address mappings:
Resolvers
Programs that extract information from name servers inresponse to client requests
DNS Protocol When client wants to know an IP address for a host name
Client sends a DNS query to the local name server in its zone
If name server contains the mapping, it returns the IP address tothe client
Otherwise, the name server forwards the request to the root
Otherwise, the name server forwards the request to the root name server
The request works its way down the tree toward the host until itreaches a name server with the correct mapping
DNS Protocol Example
ns-lcsr.rutgers.edu 1 2
Scenario:recursive processing remus.rutgers.edu tries to resolve an IP address for venus.cs.yale.edu a.root-servers.net
venus.cs.yale.edu using a recursive queryNs-lcsr.rutgers.edu obtains theIP address for cs.yale.edu
DNS Caching Going to the root server and then down the tree every time weneed to resolve an address is inefficient
Introduce address caching at name servers
Store host-to-IP-address mappings from recently requested host names at name servernames at name server
When the same address is requested later, use the cachedversion at the local name server instead of recursively queryingother name servers again
DNS Caching Example remus.rutgers.edu ns-lcsr.rutgers.edu 1
remus.rutgers.edu
a.root-servers.net yale.edu cs.yale.edu 2 3 4
ns-lcsr.rutgers.edu 1
DNS records All information stored in resource records (RR): a four tuple
If type = A then name=hostname, value = IP address<rags.rutgers.edu,168.14.2.4, A>
If type= NS then name=domain, value = name of DNS server <ns.lcsr.rutgers.edu,128.64.13.2, NS><ns.lcsr.rutgers.edu,128.64.13.2, NS>
If type=CNAME then name = generic host name, value is theactual hostname <cs.rutgers.edu, aramis.rutgers.edu, CNAME>
If type = MX, then value is the mail server for the host name inthe type field <cs.rutgers.edu,dragon.rutgers.edu,MX>
DNS message In DNS, all communications use a single format called a message. The top level format of message is divided into 5 sections(some of which are empty in certain cases) RR( Resource record) Header Question the question for the name server Answer RRs answering the question Authority RRs pointing toward an authority Additional RRs holding additional information
DNS Message Fields Transaction Identification : Random number used to match client queries with name server responses
Flags :
opcode
(unused) rcode 1 4 1 1 1 1 3 4
opcode
(unused) rcode
DNS Message Fields (cont’d)
Number of Questions : Number of DNS queries in the packet
Number of Answer RRs : Number of non-authoritative DNS responses in the packet
Number of Authoritative RRs : Number of authoritative DNS responses in the packetresponses in the packet
Number of Additional RRs : Number of other DNS responses in the packet (usually contains other DNS servers in domain)
Questions & Answers : Variable length fields to store DNS queries and DNS server responses
CDN terms Origin server
Server that holds the authoritative copy of thecontent CDN server CDN server
A replica server owned by the CDN provider CDN name server
A DNS like name server used for redirection Client
Types of CDN DNS redirection
Full site Content delivery
All requests are redirected by DNS to CDN server
Partial site content delivery
URL are modified to be resolved by CDN name server
URL rewriting
Hybrid scheme
CDN used by ISPs to improve end-user latency
Caches used to reduce bandwidth required