Name Services
Name Services
Name Services
VFSTR 1
NAME SERVICES
Topics
• Introduction
• Name Services and the Domain Name
System
VFSTR 2
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
Introduction
In a distributed system, names are used to refer
to a wide variety of resources such as:
Computers, services, remote objects, and files, as
well as users.
VFSTR 3
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
Introduction
Resources are accessed using identifier or
reference
An identifier can be stored in variables and
retrieved from tables quickly.
Identifier includes or can be transformed to an
address for an object.
E.g. NFS file handle, Corba remote object
reference.
VFSTR 4
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
Introduction
A name is human-readable value (usually a string)
that can be resolved to an identifier or address.
Internet domain name, file pathname,
process number
E.g ./etc/passwd, http://www.cdk3.net/
VFSTR 5
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
Introduction
For many purposes, names are preferable to
identifiers
The binding of the named resource to a physical
location is deferred and can be changed.
They are more meaningful to users.
Resource names are resolved by name services
To give identifiers and other useful attributes.
VFSTR 6
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
Introduction
URL
http://www.cdk3.net:8888/WebExamples/earth.html
DNS lookup
Resource ID (IP number, port number, pathname)
ARP lookup
file
(Ethernet) Network address
2:60:8c:2:b0:5a Socket
Web server
Figure 1. Composed naming domains used to access a resource from a URL
VFSTR 7
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
VFSTR 8
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
VFSTR 9
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
NS2
2
Name
1 NS1 servers
Client
3
NS3
VFSTR 10
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
VFSTR 11
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
VFSTR 12
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
NS2 NS2
2 2
1 4 3
1 NS1
client NS1 client
4 3 5
NS3 NS3
Non-recursive Recursive
server-controlled server-controlled
VFSTR 13
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
VFSTR 14
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
au
ns1.nic.au purdue.edu
(au) yahoo.com
.... ns.purdue.edu
Note: Name server names are in (purdue.edu)
italics, and the corresponding com.au
domains are in parentheses. edu.au
ns0.ja.net
Arrows denote name server entries ...
(edu.au) * .purdue.edu
usyd.edu.au
authoritative path to lookup:
unimelb.edu.au
raj-pc.csse.unimelb.edu.au ...
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES
VFSTR 16
Couloris,Dollimore and Kindberg Distributed Systems: Concepts & Design Edn. 4 , Pearson Education 2005
NAME SERVICES