Chapter 5: Naming and Name Service: Name: A Unique (Abstract) Identifier To Refer An Entity in A System
Chapter 5: Naming and Name Service: Name: A Unique (Abstract) Identifier To Refer An Entity in A System
Distributed Systems 1
Commonly used naming methods
Distributed Systems 2
Name Spaces
Distributed Systems 3
Path names
root
devices etc
nfs
server1
u1
book
Chapter5
Local name:
interpretation depends
on where the name is
(b) Directed graph without rings used (relative path)
r
Root:
the name whose node
has no incoming edges
(c) Directed graph
Distributed Systems 5
File: from name to entity
Linking: allow multiple absolute path names to refer to the same node
Mounting: allow a node to refer to a node from a different name space
Distributed Systems 7
NFS: from name to entity
path /nfs/server1/u1/book/Chapter5
server
file
Network address : 2:60:8c:5b:7a
Distributed Systems 9
NFS: software architecture
Client Server
Client process
NFS RPC:
open/close, read/write, rename, set attributes, etc.
Distributed Systems 10
DNS: Domain Name System
Global Layer
Distributed Systems 11
DNS: logical layers
Global layer:
formed by highest-level nodes, such as com, edu, gov, int, cn,
ca, us, …; directory tables are rarely changed, nodes represent
organizations, or groups.
Administrational layer:
formed by nodes within a single organization, such as
universities, companies, …; directory tables are relatively
stable.
Managerial layer:
formed by nodes that may typically change regularly, such as
users, student accounts, email accounts, …
Distributed Systems 12
DNS: A comparison of logical layers
Distributed Systems 13
DNS: name resolution (iterative)
1 li.snowhite.cis.uoguelph.ca
Root name server
2 #<ca> li.snowhite.cis.uoguelph.
3 li.snowhite.cis.uoguelph
ca name server
client 4 #<uoguelph> li.snowhite.cis
name
resolver 5 li.snowhite.cis
uoguelph name server
6 #<snowhite> li
7 li
snowhite name server
8 #<li>
Distributed Systems 14
DNS: name resolution (recursive)
1 li.snowhite.cis.uoguelph.ca
Root name server
8 #<ca, uoguelph, cis, snowhite, li>
2 li.snowhite.cis.uoguelph
7 #<uoguelph, cis, snowhite, li>
4 li
5 #<li>
Type of Associate
Description
record d entity
SOA Zone Holds information on the represented zone
A Host Contains an IP address of the host this node represents
Refers to a mail server to handle mail addressed to this
MX Domain
node
SRV Domain Refers to a server handling a specific service
Refers to a name server that implements the
NS Zone
represented zone
Symbolic link with the primary name of the represented
CNAME Node
node
PTR Host Contains the canonical name of a host
HINFO Host Holds information on the host this node represents
Contains any entity-specific information considered
TXT Any kind
useful
Distributed Systems 16
Naming versus Locating Entities
Distributed Systems 17
Locating a Mobile Entity
Broadcasting:
a message containing the ID of the entity is broadcast to each
machine and each machine is requested to check whether it
has that entity. Suitable for local network. How about
moving?
Forward pointer:
when an entity moves from A to B, it leaves behind a
reference to its new location at B. Chain problem, broken link.
Home Based:
a home location keeps track of the current location of an
entity. Triangle communication. How about moving?
Distributed Systems 18