distributed systems principles and...

19
آباد نجف واحدDr. Rastegari - Email: [email protected] - Tel: +98331-2291111-2488 Chapter 5 NAMING DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S. TANENBAUM MAARTEN VAN STEEN

Upload: others

Post on 19-Mar-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

واحد نجف آباد

Dr. Rastegari - Email: [email protected] - Tel: +98331-2291111-2488

Chapter 5

NAMING

DISTRIBUTED SYSTEMSPrinciples and Paradigms

Second Edition

ANDREW S. TANENBAUMMAARTEN VAN STEEN

Page 2: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Names, Identifiers, and Addresses

Names play a very important role in all computer systems. They are used to share resources, to uniquely identify entities, to refer to locations, and more.

Properties of a true identifier:• An identifier refers to at most one entity.• Each entity is referred to by at most one

identifier.• An identifier always refers to the same

entity2

Page 3: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Flat NamingIn many cases, identifiers are simply random bit strings, refer to as unstructured, or flat names.

It does not contain any information whatsoever on how to locate the access point of its associated entity. How flat names can be resolved, or, equivalently, how we can locate an entity when given only its identifier.Simple solutions for locating an entity, both applicable only to local-area networks

Broadcasting and MulticastingForwarding Pointers

3

Page 4: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Forwarding Pointers (1)When an entity moves from A to B, it leaves behind in A, a reference to its new location at BFigure 5-1. The principle of forwarding pointers using (client stub, server stub) pairs.

4

Page 5: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Forwarding Pointers (2)Figure 5-2. Redirecting a forwarding pointer by storing a shortcut in a client stub.

5

Page 6: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Forwarding Pointers (3)Figure 5-2. Redirecting a forwarding pointer by storing a shortcut in a client stub.

6

Page 7: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Home-Based Approaches

Figure 5-3. The principle of Mobile IP.7

Page 8: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Hierarchical Approaches (1)Figure 5-5. Hierarchical organization of a location service into domains, each having an associated directory node.

8

Page 9: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Hierarchical Approaches …Figure 5-8. (a) An insert request is forwarded to the first node that knows about entity E.

9

Page 10: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Hierarchical Approaches …

Figure 5-8. (b) A chain of forwarding pointers to the leaf node is created.

10

Page 11: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Structured Naming

Naming systems generally support structured names that are composed from simple, human-readable names.

Not only file naming, but also host naming on the Internet follow this approach.

11

Page 12: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Name Spaces

Figure 5-9. A general naming graph with a single root node.

12

Page 13: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Name Space Distribution (1)

Figure 5-13. An example partitioning of the DNS name space, including Internet-accessible files, into three layers.

13

Page 14: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Name Space Distribution (2)

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

14

Page 15: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Attribute-Based NamingFlat and structured names generally provide a unique and location-independent way of referring to entities.

In the most distributed systems an entity is described in terms of (attribute, value) pairs, generally referred to as attribute-based naming.An entity is assumed to have an associated collection of attributes. Each attribute says something about that entity. Naming system returns one or more entities that meet the user's description.

15

Page 16: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Lightweight Directory Access Protocol

16

Page 17: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

DNS ImplementationFigure 5-21. Part of the description for the vu.nl domain which contains the cs.vu.nl domain.

17

Page 18: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

Hierarchical Implementations: LDAP

Figure 5-23. (b) Two directory entries having Host_Name as RDN.

18

Page 19: DISTRIBUTED SYSTEMS Principles and Paradigmsresearch.iaun.ac.ir/pd/rastegariold/pdfs/HomeWork_8605.pdf · referring to entities. In the most distributed systems an entity is described

واحد نجف آباد

Dr. Rastegari - Email: [email protected] - Tel: +98331-2291111-2488