29 March, 2002 1
Application Layer in the Internet
- 2
29 March, 2002 The Computer Communications Course
DNS: Domain Name System
People: People: many identifiers: many identifiers:
- SSN, name, Passport #
SSN, name, Passport # Internet hosts, routers: Internet hosts, routers:
- IP address (32 bit) - used
IP address (32 bit) - used for addressing for addressing datagrams datagrams
- ✁
name
✂ ✂ , e.g.,, e.g., harmony. harmony.cs cs. .huji huji.ac. .ac.il il -
- used by humans
used by humans Q: Q: map between IP addresses map between IP addresses and and name ?
name ?
Domain Name System: Domain Name System:
✄ ✄distributed database distributed database implemented implemented in hierarchy of many in hierarchy of many name servers name servers
✄ ✄application-layer protocol application-layer protocol host, host, routers, name servers to routers, name servers to communicate to communicate to resolve resolve names names (address/name translation) (address/name translation)
- note: core Internet function
note: core Internet function implemented as application- implemented as application- layer protocol layer protocol
- complexity at network
complexity at network
☎ ☎ ss
✁ ✁ edgeedge
✂ ✂3 29 March, 2002 The Computer Communications Course
DNS name servers
✄ ✄no server has all name-to-IP no server has all name-to-IP address mappings address mappings
Local name servers: Local name servers:
- each ISP, company has
each ISP, company has local local (default) name server (default) name server
- host DNS query first goes to
host DNS query first goes to local name server local name server
Authoritative name server: Authoritative name server:
- for a host: stores that host
for a host: stores that host
☎ ☎ ss IP address, name IP address, name
- can perform name/address
can perform name/address translation for that host translation for that host
☎ ☎ ss name name
Why not centralize DNS? Why not centralize DNS?
✄ ✄single point of failure single point of failure
✄ ✄traffic volume traffic volume
✄ ✄distant centralized database distant centralized database
✄ ✄maintenance maintenance
doesn doesn
✆ ✆ tt scale! scale!
4 29 March, 2002 The Computer Communications Course
DNS: Root Name Servers
✄ ✝✟✞✡✠☞☛✟✌✍✝☞☛✟✎✡✏✒✑✔✓✖✕ ✞✗✝✟✌✡✕✗✠✟✌✍✘✙✎ ✚ ✎✡✛✟✜✟✎✢✛✣☛☞✤✍✌✔☛✥✝✟✌✗✠✦✠✟✞✍☛ ✛ ✎ ✚ ✞✢✕ ✜☞✎✖✠✟✌✗✘✙✎ ✄ ✛ ✞✔✞✍☛✥✠☞✌✍✘✙✎ ✚ ✎✡✛✟✜✟✎✡✛✔✧- ✝✟✞✡✠☞☛✟✌✍✝☞☛
- ✮✱✎✡☛
- ✛
5 29 March, 2002 The Computer Communications Course
nsf.gov root root root root purdue.edu co.il huji.ac.il cs.purdue.edu math. huji. ac. il cs. huji. ac. il
...
Domain Name Servers
6 29 March, 2002 The Computer Communications Course
Simple DNS example
Host Host harmony. harmony.cs cs. .huji huji.ac. .ac.il il wants IP address of wants IP address of gaia gaia. .cs cs. .umass umass. .edu edu 1.
- 1. Contacts its local DNS server,
Contacts its local DNS server, shuldig shuldig. .cs cs. .huji huji.ac. .ac.il il 2. 2. shuldig shuldig. .cs cs. .huji huji.ac. .ac.il il contacts root name server, if contacts root name server, if necessary necessary 3.
- 3. root name server contacts
root name server contacts authoritative name server, authoritative name server, dns dns. .dmass dmass. .edu edu, , if necessary if necessary
✶ ✷✱✸☞✹ ✷✱✺ ✻☞✼ ✽ ✾❀✿✱❁☞✺ ✻harmony.cs.huji.ac.il gaia.cs.umass.edu
✶ ❁☞❁✟✻❂✽ ❃✱❄✵✷❀✺ ✷✔✶ ❅ ✷✔✶ ❆ ❇ ❈ ❉ ❊ ❋- ❈
- ❈
- ❍
dns.umass.edu
❖ ❁✱P ❃ ❖ ✽ ❃✱❄✵✷❀✺ ✷✔✶ ❅ ✷✍✶shuldig.cs.huji.ac.il
1 2 3 4 5 6