Docsity

Distributed Naming - Lecture Slides | EECS 498, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Distributed Naming - Lecture Slides | EECS 498 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Distributed Naming

EECS 498

Farnam Jahanian

University of Michigan

Reading List

  • Tanenbaum Chapter 4.1-4.2, 4.3(optional)
  • Distributed Name System, Chapter 2.5 from Computer Networking: A Top Down Approach Featuring the Internet, 2 nd^ edition. Jim Kurose, Keith Ross, Addison-Wesley, July 2002.

“Any problem in computer science can be solved with another layer of indirection”

Distributed Naming

  • Name: string of bits or characters referring to an entity (resources, services, mailboxes, newsgroups, web pages, network connections, processors, …)
  • Identifier is the unique name associated with an entity.
    • Domain names and URLs are good identifiers –
      • barney.eecs.umich.edu identifies a host
      • www.msn.com identifies a service
  • An entity has an access point, and the name associated with an access point is an address. - e.g. IP address
  • Location independence : a name for an entity (i.e. identifier) is independent from its addresses (i.e. name of access points).

Naming: What problem does it solve?

  • Naming is a layer of indirection
  • Makes objects human readable
  • Hides complexity and dynamics
    • Multiple lower-layer objects can have one name
    • Changes in lower-layer objects hidden
  • Allows an object to be found in different ways
    • One object can have multiple names

Linking and Mounting (2)

  • Mounting remote name spaces through a specific process protocol.

Linking and Mounting (3)

Organization of the DEC Global Name Service

Name Space Distribution (1)

  • An example partitioning of the DNS name space, including Internet- accessible files, into three layers.
  • The name space is divided into non-overlapping parts, called zones – each zone is implemented by a separate name server

Name Space Distribution (2)

  • A comparison between name servers for implementing nodes from a large-scale name space partitioned into a global layer, as an administrational layer, and a managerial layer.

Is client-side caching applied? Yes Yes Sometimes

Number of replicas Many None or few None

Update propagation Lazy Immediate Immediate

Responsiveness to lookups Seconds Milliseconds Immediate

Total number of nodes Few Many Vast numbers

Geographical scale of network Worldwide Organization Department

Item Global Administrational Managerial

Implementation of Name Resolution (2)

Recursive Name Resolution

Implementation of Name Resolution (3)

  • Recursive name resolution of < nl, vu, cs, ftp >. Name servers cache intermediate results for subsequent lookups.

# #<vu,cs> #<vu,cs,ftp>

# #<cs,ftp>

#

--

Receives and caches

# #<nl,vu> #<nl,vu,cs> #<nl,vu,cs,ftp>

root <ni,vu,cs,ftp> # <vu,cs,ftp>

# #<vu,cs> #<vu,cs,ftp>

ni <vu,cs,ftp> # <cs,ftp>

# #<cs, ftp>

vu <cs,ftp> #

cs # -- #

Returns to Should resolve Looks up Passes to child requester Server for node

Implementation of Name Resolution (4)

  • The comparison between recursive and iterative name resolution with respect to communication costs.

Domain Name System (DNS)

  • Distributed directory service; DNS is simple but powerful
  • Hierarchical name space
  • Each level separated by ‘.’
    • Analogous to ‘/’ separator in file systems
  • One global root
    • Replicated across <20 root servers!
    • There have been Denial of Service (DoS) attacks on
    • these root servers, none real successful
    • Because of caching, queries to root servers relatively rare

DNS Implementation (1)

  • An excerpt from the DNS database for the zone cs.vu.nl.
  • cs.vu.nl domain implemented as a single zone.

DNS Implementation (2)

  • Part of the description for the vu.nl domain

which contains the cs.vu.nl domain.

solo.cs.vu.nl A 130.37.21.

cs.vu.nl NS solo.cs.vu.nl

Name Record type Record value

Primary and Secondary Servers

  • Each zone is implemented by a name server, replicated for availability.
  • Updates are handled by primary server, by modifying local DNS DB.
  • Secondary requests the primary server to transfer its content.
  • RR for all the nodes in a zone are kept in the local DNS DB.

DNS Cache Management:

  • All RRs have Time-to-live (TTL) values
  • When TTL expires, cache entries are removed
  • NS RRs tend to have long TTLs (reduces load on higher-level servers)
  • A RRs may have very short TTLs (1 min for web services, 1 day for typical hosts) - What if you want a quick failover for web servers? Keep TTL for web server’s A RRs very short.
  • Why is DNS iterative and not recursive?

Locating Mobile Entities (Section4.2)

  • Mobile entity:
    • An entity whose address often changes, laptop running DHCP
    • Not necessarily physical mobility, e.g. dial-up
  • Is mobility an issue for DNS?
    • NOT REALLY!
    • Mobility (in practice) affects leaf DNS servers
      • A RR TTL is short, but NS RR TTL is long
  • What is the problem?
    • Most mobile nodes are clients; servers are rarely mobile
    • Clients initiate connects, not receive it!
    • Special cases: email, instant msg’ing, VoIP
      • Application-specific registration
      • Clients connects to email server, IM server, SIP server, …

Location Service

  • Issues with Mobile IP approach:
    • Increased communication latency (a problem in large-scale networks)
      • Two-tier or hierarchical
    • Fixed home location must be highly available
    • What if the nodes moves permanently?
      • Use traditional name service
  • Two-tier or hierarchical approaches
    • Scalability
    • PCS

Forwarding Pointers (1)

  • The principle of forwarding pointers using ( proxy, skeleton ) pairs.

Forwarding Pointers (2)

  • Redirecting a forwarding pointer, by storing a shortcut in a proxy.

Home-Based Approaches (Mobile IP)

  • The principle of Mobile IP.

Hierarchical Approaches (3)

  • Looking up a location in a hierarchically organized location service.

Hierarchical Approaches (4)

a) An insert request is forwarded to the first node that knows about entity E. b) A chain of forwarding pointers to the leaf node is created.

Pointer Caches (1)

  • Caching a reference to a directory node of the lowest-level

domain in which an entity will reside most of the time.

Pointer Caches (2)

  • A cache entry that needs to be invalidated because it returns a

nonlocal address, while such an address is available.