Docsity

Structured Naming - Distributed Operating Systems - Lecture Slides, Slides of Operating Systems

Partial preview of the text

Download Structured Naming - Distributed Operating Systems - Lecture Slides and more Slides Operating Systems in PDF only on Docsity!

Structured Naming

Internet Naming Service: DNS

Overview

  • Introduction to the DNS
  • DNS Components
  • DNS Structure and Hierarchy
  • The DNS in Context

DNS History (2)

  • As the system grew, HOSTS.TXT had

problems with:

  • Scalability (traffic and load)
  • Name collisions
  • Consistency
  • In 1984, Paul Mockapetris released the first

version (RFCs 882 and 883, superseded by

1034 and 1035 …)

The DNS is…

  • The “Domain Name System”
  • What Internet users use to reference

anything by name on the Internet

  • The mechanism by which Internet software

translates names to attributes such as

addresses

DNS as a Lookup Mechanism

  • Users generally prefer names to numbers
  • Computers prefer numbers to names
  • DNS provides the mapping between the two
    • I have “x”, give me “y”

DNS as a Database

  • Keys to the database are “domain names”
    • www.foo.com, 18.in-addr.arpa, 6.4.e164.arpa
  • Over 200,000,000 domain names stored
  • Each domain name contains one or more

attributes

  • Known as “resource records”
  • Each attribute individually retrievable

Loose Coherency

  • Each version of a subset of the database (a zone) has a serial number - The serial number is incremented on each database change
  • Changes to the master copy of the database are propagated to replicas according to timing set by the zone administrator
  • Cached data expires according to timeout set by zone administrator

Scalability

  • No limit to the size of the database
  • No limit to the number of queries
    • Tens of thousands of queries handled easily every second
  • Queries distributed among masters, slaves,

and caches

Dynamicity

  • Database can be updated dynamically
    • Add/delete/modify of any record
    • Only master can be dynamically updated
  • Modification of the master database triggers

replication

Overview

  • Introduction to the DNS
  • DNS Components
    • The name space
    • The servers
    • The resolvers
  • DNS Structure and Hierarchy
  • The DNS in Context

An Analogy – E.

  • Root node maintained by the ITU (call it “+”)
  • Top level nodes = country codes (1, 81, etc)
  • Second level nodes = regional codes (1-402, 81-3, etc.) ... ... 202 6003 381 6003 779 650 808 1 5226 2024 3489 3 4 852 81 ... "+"

foo foo top- foo at&t top- bar baz top- ""

Labels

  • Each node in the tree must have a label - A string of up to 63 bytes - RFCs 852 and 1123 define legal characters for “hostnames” - A-Z, 0-9, and “-” only with a-z and A-Z treated as the same
  • Sibling nodes must have unique labels
  • The null label is reserved for the root node

Subdomains

  • One domain is a subdomain of another if its domain name ends in the other’s domain name - So sales.nominum.com is a subdomain of - nominum.com & com - nominum.com is a subdomain of com

Delegation

  • Administrators can create subdomains to group hosts
    • According to geography, organizational affiliation etc.
  • An administrator of a domain can delegate responsibility for managing a subdomain to someone else
  • The parent domain retains links to the delegated subdomains