12
Naming in Distributed Systems Lecture # 5

Naming in Distributed Systems

Embed Size (px)

DESCRIPTION

Naming in Distributed Systems. Lecture # 5. Overview. Pure vs impure names IDs, Addresses,Name Space, Name Resolution Implementation of a Naming Service Case Studies: Telephone System. DNS, SLP(X.500), INS Reading: Jerome, Kaashoek: Chapter 3 - PowerPoint PPT Presentation

Citation preview

Page 1: Naming in Distributed Systems

Naming in Distributed Systems

Lecture # 5

Page 2: Naming in Distributed Systems

Overview

Pure vs impure names IDs, Addresses,Name Space, Name

Resolution Implementation of a Naming Service Case Studies: Telephone System. DNS,

SLP(X.500), INS Reading:

– Jerome, Kaashoek: Chapter 3 – Coulouris: Distributed Systems, Addison Wesley,

Chapter 9

Page 3: Naming in Distributed Systems

Pure vs impure: What’s in a namePure Names: Uninterpreted string of

bits– Independent of object location or

semanticsImpure Names:

– Encode object semantics and/or locationTelephone Numbers?Descriptions

– Always Search

Page 4: Naming in Distributed Systems

Naming Scheme

Name Space– Syntax: Different naming conventions– 128.67.34.255– 92-42-5722670– StringBuffer

Naming Resolution AlgorithmValue: DestinationFrequently: Context

Page 5: Naming in Distributed Systems

Examples of Naming

Telephone System

Numeric name space (length dependant on the size of the city)

Hierarchical Structuring of Names– 92-42-5722670

Hierarchical Name Resolution– Lookup: Directories

Value? Context?

Page 6: Naming in Distributed Systems

Naming Examples

Naming Variables– Naming convention

Variable Names: start with an alphabetClass Names: start with capitalization

– Value: Address of Memory LocationPointers: Indirection

– Resolution:Symbol Tables

– ContextScoping?

– Dynamic – Lexical: Static

– Hierarchical NamesJava: Derived from directory structure

Page 7: Naming in Distributed Systems

Naming Examples

DNS Names as Path Names

Root

n1

k1

n2

Root.n1.k1.lums

Root.yahoo

Page 8: Naming in Distributed Systems

Closure in Naming

Names closed under composition– Using a root

Absolute Vs. Relative Paths– Context

DNS– Mailto: zahoor (from within lums)

Directory– Working directory

Page 9: Naming in Distributed Systems

Name Resolution

DNS Terminology– Iterative vs. Recursive

Essentially– State management in resolution– Caching– Communication Cost

Page 10: Naming in Distributed Systems

Iterative

Client-sideName

Resolver

root

edu

pk

lums

www.lums.edu.pk IP number

cs.lums.edu.pk

cs.lums.edu.pk

cs.lums.edu

cs.lums.edu

cs

cs.lums

cs.lums

cs

IP # CS

Page 11: Naming in Distributed Systems

Recursive

Client-sideName

Resolver

root

edu

pk

lums

www.lums.edu.pk IP number

cs.lums.edu.pk

IP # cscs.lums.edu

cs.lums.edu

cs

cs.lumscs.lums

csIP # CS

Page 12: Naming in Distributed Systems

Recursive vs iterative

StateCachingCommunication latency