Name services By N.Sudhakar Yadav Outline  General concepts  Domain Name System (DNS)  Directory and Discovery Services  Introduction  Jini  Global.

Slides:



Advertisements
Similar presentations
Distributed Web Systems Name Services Lecturer Department University.
Advertisements

Domain Name System. DNS is a client/server protocol which provides Name to IP Address Resolution.
Naming Computer Engineering Department Distributed Systems Course Asst. Prof. Dr. Ahmet Sayar Kocaeli University - Fall 2014.
Slides for Chapter 9: Name Services From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001.
NAME SERVICES 1 Name Services From Chapter 9 of Distributed Systems Concepts and Design,4 th Edition, By G. Coulouris, J. Dollimore and T. Kindberg Published.
CS 582 / CMPE 481 Distributed Systems Naming Class Overview Why naming? Terminology Naming Fundamentals Name Services Case Studies –DNS –GNS.
Name Services Jessie Crane CPSC 550. History ARPAnet – experimental computer network (late 1960s) hosts.txt – a file that contained all the information.
Slides for Chapter 9: Name Services From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, © Pearson Education 2005.
From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, © Addison-Wesley 2012 Slides for Chapter 13: Name Services.
Domain Name System: DNS
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
Naming Names in computer systems are used to share resources, to uniquely identify entities, to refer to locations and so on. An important issue with naming.
1 Chapter 9: Name Services From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 3, © Addison-Wesley 2001 Presentation.
DOMAIN NAME SYSTEM. Introduction  There are several applications that follow client server paradigm.  The client/server programs can be divided into.
DNS. Outline r Domain Name System r DNS Hierarchy r Resolution.
Chapter 25 Domain Name System
4.4 Naming And Directory Services Lakshmi Narayana Gupta Kollepara 09/20/2009 CSC-8320.
GVHD: Sinh viên thực hiện: Phạm Trần Vũ1- Nguyễn Thị Vân Anh 2- Lê Thị Hồng Hà 3- Vũ Thị Lộc Phương 4- Tăng Thu Hương 5- Huỳnh Thị Kim Trâm 6- Hồ Thị Kim.
Domain Name Services Oakton Community College CIS 238.
The Domain Name System Presented by: Baolan Bo Bo Liangzhen LiangzhenShuguangWeihuaYujun Instructor: Dr. Sharon P. Hall.
11.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 11: Introducing WINS, DNS,
Distributed Computing COEN 317 DC2: Naming, part 1.
Distributed Systems 1 Name Services Dr. Sunny Jeong. Mr. Jerry Li. With Thanks to Prof. G. Coulouris, Prof. A.S.
Name Services Vidya Satyanarayanan. Why do we need Name Services?
Lecturer 8: Name Services Haibin Zhu, PhD. Assistant Professor Department of Computer Science Nipissing University © 2002.
Copyright © George Coulouris, Jean Dollimore, Tim Kindberg This material is made available for private study and for direct.
NAME SERVICES. Names and addresses File names /etc/passwd URLS Internet domain names—dcs.qmw.ac.uk Identifiers- ROR, NFS.
1 Chapter 6: Name Services. 2 Introduction Name services and DNS Discovery services Summary.
1 Naming with the Domain Name System. 2 Internet Applications Domain Name System Electronic mail IP telephony Remote login File transfer All use client-server.
Ch-9: NAME SERVICES By Srinivasa R. Gudipati. To be discussed.. Fundamentals of Naming Services Naming Resolution The Domain Name System (DNS) Directory.
Chapter 16 – DNS. DNS Domain Name Service This service allows client machines to resolve computer names (domain names) to IP addresses DNS works at the.
DNS & X.500.
Example applications Symbolic names and the Domain Name System (DNS)
25.1 Chapter 25 Domain Name System Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 17 Domain Name System
The Directory A distributed database Distributed maintenance.
5.1 Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED.
Chapter 29 Domain Name System (DNS) Allows users to reference computer names via symbolic names translates symbolic host names into associated IP addresses.
October 8, 2015 University of Tulsa - Center for Information Security Microsoft Windows 2000 DNS October 8, 2015.
Distributed Computing COEN 317 DC2: Naming, part 1.
Domain Name System. CONTENTS Definitions. DNS Naming Structure. DNS Components. How DNS Servers work. DNS Organizations. Summary.
Fall 2007cs4251 Distributed Computing Umar Kalim Dept. of Communication Systems Engineering 10/12/2007.
1 Kyung Hee University Chapter 18 Domain Name System.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 19 Domain Name System (DNS)
Nguyễn Bảo Toàn Bùi Ngọc Sơn Name service.
BZUPAGES.COM. Presented to: Sir. Muizuddin sb Presented by: M.Sheraz Anjum Roll NO Atif Aneaq Roll NO Khurram Shehzad Roll NO Wasif.
Domain Name System (DNS)
Introduction to Active Directory
Web Server Administration Chapter 4 Name Resolution.
1 Name services (concepts, DNS, case study X.500)
Internet Naming Service: DNS* Chapter 5. The Name Space The name space is the structure of the DNS database –An inverted tree with the root node at the.
Domain Name System INTRODUCTION to Eng. Yasser Al-eimad
Lecture 9: Name and Directory Servers CDK4: Chapter 9 CDK5: Chapter 13 TVS: Chapter 5.
Basics of the Domain Name System (DNS) By : AMMY- DRISS Mohamed Amine KADDARI Zakaria MAHMOUDI Soufiane Oujda Med I University National College of Applied.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
System Administration(SAD622S) Name of Presenter: Shadreck Chitauro Lecturer 18 July 2016 Faculty of Computing and Informatics.
Understand Names Resolution
Name service.
Domain Name System (DNS)
Chapter 9: Name Services
Prepared by Dr: Naglaa Fathi Mohammed Soliman
Net 323 D: Networks Protocols
Lecture 7: Name and Directory Servers
Lecture 7: Name and Directory Servers
Lecture 8: Name and Directory Servers
Bina Ramamurthy Chapter 9
Bina Ramamurthy Chapter 9
Bina Ramamurthy Chapter 9
Name Services Bina Ramamurthy 5/18/2019 B.Ramamurthy.
Presentation transcript:

Name services By N.Sudhakar Yadav

Outline  General concepts  Domain Name System (DNS)  Directory and Discovery Services  Introduction  Jini  Global Name Service (GNS)  X500 Directory Service 2

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.  Names facilitate communication and resource sharing.  Names are used for identification as well as for describing attributes.  For many purposes, names are preferable to identifiers  because the binding of the named resource to a physical location is deferred and can be changed  because they are more meaningful to users 3

Names, Addresses and other attributes  Any process that requires access to a specific resource must possess a name or identifier for it. Ex: URL  A name has to be looked up before it can be used.  A name is said to be resolved when it is translated into data about the resource or object. 4

Names and Binding  Names are bound to the attributes of named objects (and not to any specific implementations.)  The association between a name and an object is called binding.  Services are written to map between names and the attributes of objects they refer to.  Example: domain name  Domain name Service (DNS) maps  attributes of the host computer 5

Composed naming domains used to access a resource from a URL 6 file Web server Socket URL Resource ID (IP number, port number, pathname) WebExamples/earth.html8888 DNS lookup Figure 9.1 (Ethernet) Network address 2:60:8c:2:b0:5a ARP lookup *

Name Service  A name service stores a collection of one or more naming contexts – sets of bindings between textual names and attributes for objects.  Provides a general naming scheme for entities (such as users and services) that are beyond the scope of a single service.  Major operation: resolve a name - to look up attributes from a given name  Other operations required: creating new binding, deleting bindings, listing bound names and adding and deleting contexts. 7

General Name Service Requirements  Handle arbitrary number of names and to serve arbitrary number of administrative organizations.  A long lifetime  High availability  Fault isolation  Tolerance of mistrust 8

Name services and DNS  Name spaces  Name Resolution  The domain name system 9

Name Spaces  A name space is a collection of all valid names recognized by a particular service  Allow simple but meaningful names to be used  Potentially infinite number of names  Structured  to allow similar subnames without clashes  to group related names  Allow re-structuring of name trees  for some types of change, old programs should continue to work  Management of trust 10

Name Space 11

Name Resolution  Resolution is an iterative process whereby a name is repeatedly presented to the naming contexts.  The name is first presented to some initial naming context; resolution iterates as long as further context and derived names are output.  Example1: /etc/passwd in which ‘etc’ is presented to context / and ‘passwd’ is presented to context /etc.  Example 2: in which the alias is resolved to another domain name such as copper.dcs.qmw.ac.uk which is further resolved to produce IP address. 12

Name Servers and Navigation  Any name service stores a very large database.  Data is partitioned into servers according to its domain.  Partitioning of the data implies that the local name server cannot answer all the enquiries without the help of other name servers.  Process of locating naming data from among more than one name server in order to resolve a name is called navigation. Ex: Iterative Navigation model(DNS) 13

Iterative navigation 14 Client A client iteratively contacts name servers NS1–NS3 in order to resolve a name NS2 NS1 NS3 Name servers

Non-recursive and recursive server- controlled navigation DNS offers recursive navigation as an option, but iterative is the standard technique. Recursive navigation must be used in domains that limit client access to their DNS information for security reasons. 15 A name server NS1 communicates with other name servers on behalf of a client Recursive server-controlled client NS2 NS1 NS client NS2 NS1 NS3 Non-recursive server-controlled Figure 9.3 *

Caching  Client name resolution software and servers maintain a cache of previous name resolutions.  How long a resolver caches a DNS response (i.e. how long a DNS response remains valid) is determined by a value called the time to live.  Server may use data from its own cache or other server cache it is authorized to access.  Caching is key to performance and fault tolerance. 16

The Domain Name System  A distributed naming database  Name structure reflects administrative structure of the Internet  Rapidly resolves domain names to IP addresses  exploits caching heavily  typical query time ~100 milliseconds  Scales to millions of computers  partitioned database  caching  Resilient to failure of a server  replication 17

Parts of a domain name  Usually consists of two or more parts (technically labels), separated by dots..  The rightmost label conveys the top-level domain.  Each label to the left specifies a subdivision, or subdomain of the domain above it. 18

DNS name servers  The Domain Name System consists of a hierarchical set of DNS servers  Each domain or subdomain has one or more authoritative DNS servers that publish information about that domain and the name servers of any domains "beneath" it  The hierarchy of authoritative DNS servers matches the hierarchy of domains.  At the top of the hierarchy stand the root nameservers: the servers to query when looking up (resolving) a top- level domain name 19

Basic DNS algorithm for name resolution  Look for the name in the local cache  Try a superior DNS server, which responds with:  another recommended DNS server  the IP address (which may not be entirely up to date) 20

DNS name servers 21 Note: Name server names are in italics, and the corresponding domains are in parentheses. Arrows denote name server entries a.root-servers.net (root) ns0.ja.net (ac.uk) dns0.dcs.qmw.ac.uk (dcs.qmw.ac.uk) alpha.qmw.ac.uk (qmw.ac.uk) dns0-doc.ic.ac.uk (ic.ac.uk) ns.purdue.edu (purdue.edu) uk purdue.edu ic.ac.uk qmw.ac.uk... dcs.qmw.ac.uk *.qmw.ac.uk *.ic.ac.uk *.dcs.qmw.ac.uk *.purdue.edu ns1.nic.uk (uk) ac.uk... co.uk yahoo.com.... Figure 9.4 authoritative path to lookup: jeans-pc.dcs.qmw.ac.uk *

DNS in typical operation 22 a.root-servers.net (root) ns0.ja.net (ac.uk) dns0.dcs.qmw.ac.uk (dcs.qmw.ac.uk) alpha.qmw.ac.uk (qmw.ac.uk) dns0-doc.ic.ac.uk (ic.ac.uk) ns.purdue.edu (purdue.edu) uk purdue.edu ic.ac.uk qmw.ac.uk... dcs.qmw.ac.uk *.qmw.ac.uk *.ic.ac.uk *.dcs.qmw.ac.uk *.purdue.edu ns1.nic.uk (uk) ac.uk... co.uk yahoo.com.... client.ic.ac.uk IP: alpha.qmw.ac.uk 2 3 IP:dns0.dcs.qmw.ac.uk jeans-pc.dcs.qmw.ac.uk ? IP:ns0.ja.net 1 IP:jeans-pc.dcs.qmw.ac.uk 4 Without caching *

Resource Records 23

Example of resource record 24

DNS issues  Name tables change infrequently, but when they do, caching can result in the delivery of stale data.  Clients are responsible for detecting this and recovering  Its design makes changes to the structure of the name space difficult. For example:  merging previously separate domain trees under a new root  moving subtrees to a different part of the structure (e.g. if Scotland became a separate country, its domains should all be moved to a new country-level domain. 25

Directory and Discovery Services  Directory services  Attribute-based name services  Attributes are used as values to be looked up  Textual name can be considered to be just another attribute 26

Directory and Discovery Services  Discovery services  Directory service that registers services provided in a spontaneous networking environment  Provide an interface for automatically registering and de-registering services, as well as an interface for clients to look up the services they require  Ex : a printer (or the service that manages it) may register its attributes with the discovery service as follows :  ‘resourceClass = printer, type=laser, color=yes, resolution=600dpi, location=room101, url= nter98’ 27

Jini Discovery Service  Designed to be used for spontaneous networking  Entirely java-based  Computers communicate by means of RMI, and can download code if necessary  Discovery-related components in a Jini system are look up services  A Jini service (such as printing service) may be registered with many look up services 28

Jini Discovery Service  How to locate the look up service ?  Using a well-known multicast IP address  Multicast the request using a “time to live” value  Look up services announce their existence to the same multicast address  Service instance is configured with one or more group names such as ‘finance’, ‘sales’, ‘admin’, which act as scoping labels.  Limited period of time 29

Service Discovery in Jini 30 Printing service Lookup service Lookup Printing service admin admin, finance finance Client Corporate infoservice 1. ‘finance’ lookup service? 2. Here I am: Request printing 4. Use printing service Network

Global Name Service (GNS)  Designed and implemented by Lampson and colleagues at the DEC Systems Research Center (1986)  Provide facilities for resource location, addressing and authentication  When the naming database grows from small to large scale, the structure of name space may change  the service should accommodate it  Cache consistency ? 31

GNS Structure  Tree of directories holding names and values  Muti-part pathnames refer to the root or relative working directory (like Unix file system)  Unique Directory Identifier (DI)  A directory contains list of names and references  Leaves of tree contain value trees (structured values) 32

GNS directory tree and value tree 33 UKFR AC QMW DI: 322 Peter.Smith password mailboxes DI: 599(EC) DI: 574DI: 543 DI: 437 AlphaGammaBeta

Accommodating changes  How to integrate naming trees of two previously separate GNS services  But what is for ‘/UK/AC/QMV, Peter.Smith’ ? 34 EC UKFR DI: 599 DI: 574DI: 543 NORTH AMERICA US DI: 642 DI: 457DI: 732 #599 = #633/EC #642 = #633/NORTH AMERICA Well-known directories: CANADA DI: 633(WORLD)

Using DI to solve changes  Using the name ‘#599/UK/AC/QMV, Peter.Smith’ 35 EC UKFR DI: 599 DI: 574DI: 543 NORTH AMERICA US DI: 642 DI: 457DI: 732 #599 = #633/EC #642 = #633/NORTH AMERICA Well-known directories: CANADA DI: 633(WORLD)

Restructuring of database  Using symbolic links 36 EC UKFR DI: 599 DI: 574DI: 543 NORTH AMERICA US DI: 642 DI: 457 DI: 732 #599 = #633/EC #642 = #633/NORTH AMERICA Well-known directories: CANADA DI: 633(WORLD) #633/EC/US US

X500 Directory Service  Standard of ITU and ISO organizations  Organized in a tree structure with name nodes as in the case of other name servers  A wide range of attributes are stored in each node  Directory Information Tree (DIT)  Directory Information Base (DIB) 37

X.500 service architecture  Directory Server Agent (DSA)  Directory User Agent (DUA) 38 DSA DUA

An X.500 DIB Entry 39 info Alice Flintstone, Departmental Staff, Department of Computer Science, University of Gormenghast, GB commonName Alice.L.Flintstone Alice.Flintstone Alice Flintstone A. Flintstone surname Flintstone telephoneNumber uid alf mail roomNumber Z42 userClass Research Fellow

Part of the X.500 Directory Information Tree 40...France (country)Great Britain (country)Greece (country)... BT Plc (organization)University of Gormenghast (organization)... Department of Computer Science (organizationalUnit) Computing Service (organizationalUnit) Engineering Department (organizationalUnit)... X.500 Service (root) Departmental Staff (organizationalUnit) Research Students (organizationalUnit) ely (applicationProcess)... Alice Flintstone (person)Pat King (person)James Healey (person)... Janet Papworth (person)...

Future of X500  Not clear  Privacy issues  Need to be integrated with existing Internet Standards (DNS)  Uniformity for object classes 41

References  Distributed Systems: Concepts and Design  Internet sources   wiki 42