1 / 34

DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S. TANENBAUM MAARTEN VAN STEEN Chapter 5 Naming

DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S. TANENBAUM MAARTEN VAN STEEN Chapter 5 Naming. Names, Identifiers, And Addresses. Properties of a true identifier: An identifier refers to at most one entity. Each entity is referred to by at most one identifier.

wyanet
Download Presentation

DISTRIBUTED SYSTEMS Principles and Paradigms Second Edition ANDREW S. TANENBAUM MAARTEN VAN STEEN Chapter 5 Naming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DISTRIBUTED SYSTEMSPrinciples and ParadigmsSecond EditionANDREW S. TANENBAUMMAARTEN VAN STEENChapter 5Naming Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  2. Names, Identifiers, And Addresses • 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 entity Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  3. Flat naming • Broadcasting e Multicasting • Solo per reti locali • Viene inviato un messaggio contenente un identificatore a tutte le macchine e viene richiesto a ciascuna di verificarne la corrispondenza • Es. ARP per capire la corrispondenza IP/Indirizzo ethernet Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  4. Flat naming • Forwarding pointers • Usato per entità mobili; • Quando un oggetto si sposta lascia nel punto di partenza un riferimento al punto di arrivo • Le catene di riferimenti possono diventare lunghe Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  5. Forwarding Pointers (1) • Figure 5-1. The principle of forwarding pointers using (client stub, server stub) pairs. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  6. Forwarding Pointers (2) • Figure 5-2. Redirecting a forwarding pointer by storing a shortcut in a client stub. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  7. Forwarding Pointers (3) • Figure 5-2. Redirecting a forwarding pointer by storing a shortcut in a client stub. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  8. Home-Based Approaches • Figure 5-3. The principle of Mobile IP. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  9. Distributed Hash TablesGeneral Mechanism • Figure 5-4. Resolving key 26 from node 1 and key 12 from node 28 in a Chord system. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  10. Hierarchical Approaches (1) • Figure 5-5. Hierarchical organization of a location service into domains, each having an associated directory node. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  11. Name Space Distribution (1) • Figure 5-13. An example partitioning of the DNS name space, including Internet-accessible files, into three layers. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  12. 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. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  13. Example: The Domain Name System • Figure 5-18. The comparison between recursive and iterative name resolution with respect to communication costs. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  14. What are directory services? • Shared Resources: • Servers, • Shared volumes, • Printers; • Applications • Administration of: • Users • User/Group access • Network resources • Management of domains, applications, services, security policies, and just about everything else in your network. All Directory services use a hierarchical structure that stores information about objects on the network. What differentiates the various implementations are the types of objects that they track. http://www.ischool.washington.edu/mcdonald/courses/imt546_au04/pres-12.11/ActiveDirectoryFinal.ppt Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  15. Basic Network Identity Services • Microsoft's Active Directory • Novell Directory Services (NDS) Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  16. x.500 • X.500 is a series of computer networking standards covering electronic directory services. The X.500 series was developed by ITU-T, formerly known as CCITT. • The directory services were developed in order to support the requirements of X.400 electronic mail exchange and name lookup. • ISO was a partner in developing the standards, incorporating them into the Open Systems Interconnection suite of protocols. ISO/IEC 9594 is the corresponding ISO identification. • http://en.wikipedia.org/wiki/X.500 Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  17. x.500 • The protocols defined by X.500 include: • DAP (Directory Access Protocol) • DSP (Directory System Protocol) • DISP (Directory Information Shadowing Protocol) • DOP (Directory Operational Bindings Management Protocol) • Because these protocols used the OSI networking stack, a number of alternatives to DAP were developed to allow Internet clients to access to the X.500 Directory using the TCP/IP networking stack. The most well-known alternative to DAP is Lightweight Directory Access Protocol (LDAP). • http://en.wikipedia.org/wiki/X.500 Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  18. The LDAP Name Space • A simple example of a LDAP directory entry using LDAP naming conventions. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  19. The LDAP Name Space • Part of the directory information tree. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  20. The LDAP Name Space • Two directory entries having Host_Name as RDN. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  21. LDAP API • The LDAP API references an LDAP object by its distinguished name (DN). A DN is a sequence of relative distinguished names (RDN) connected by commas. • An RDN is an attribute with an associated value in the form attribute=value; normally expressed in a UTF-8 string format. The following table lists typical RDN attribute types. • Es. • CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  22. LDAP Example • #include <winldap.h> • ULONG CallValue; • LDAP *ld = ldap_init(NULL,LDAP_PORT); • CallValue = ldap_connect(ld,NULL); • if(CallValue!=LDAP_SUCCESS) • { • return 0; • } Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  23. // Specify the distinguished name for the entry. • char *entry_dn = "cn=Jeff Smith,CN=Users"; • // Attributes include Name, Class, First name, Last name, Title, and Telephone number • LDAPMod Name, OClass, FName, LName, Title, Phone; • char *cn_values[] = { "Jeff Smith", NULL }; • Name.mod_op = LDAP_MOD_ADD; • Name.mod_type = "cn"; • Name.mod_values = cn_values;. • char *oc_values[] = { "user", NULL }; • OClass.mod_op = LDAP_MOD_ADD; • OClass.mod_type = "objectClass"; • OClass.mod_values = oc_values;. • char *gn_values[] = { "Jeff", NULL }; • … Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  24. // Build the array of attributes. • LDAPMod *NewEntry[7]; • NewEntry[0] = &Name; • NewEntry[1] = &OClass • NewEntry[2] = &FName; • NewEntry[3] = &LName; • NewEntry[4] = &Title; • NewEntry[5] = &Phone; • NewEntry[6] = NULL; • // Add the entry. • CallValue = ldap_add( ld, entry_dn, NewEntry); • // Pass CallValue to ldap_result to verify the • // status of the asynchronous operation. • CallValue = ldap_unbind(ld); Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  25. Key Features of Active Directory • Some directory services are integrated with an operating system, and others are applications such as e-mail directories. • Operating system directory services, such as AD, provide user, computer, and shared resource management. • A namespace that is integrated with the Internet's Domain Name System (DNS). • A new directory service central to the Windows 2000 Server operating system, runs only on domain controllers. http://www.ischool.washington.edu/mcdonald/courses/imt546_au04/pres-12.11/ActiveDirectoryFinal.ppt Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  26. Active Directory utilizes a distributed architecture • Active Directory, in addition to providing a place to store data and services to make that data available, also protects network objects from unauthorized access and replicates information about objects across the entire network so that information about objects is not lost if one domain controller fails. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  27. Active Directory • Network identity services each perform specific tasks and also frequently interact. Managing interactions becomes challenging when multiple internal organizations administer the various services, which may be duplicated in numerous locations throughout the network and use different data stores. • The global catalog is the mechanism that tracks all of the objects managed across the network, across all domains within the organization. • Elements of the catalog are replicated across all of the domain controllers within all domains across the org. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  28. Global Catalog -Service Discovery • For Active Directory to function properly, DNS servers must support Service Location (SRV) resource records. • SRV resource records map the name of a service to the name of a server offering that service. • Active Directory clients and domain controllers use SRV resource records to determine the IP addresses of domain controllers. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  29. Domain authority • Active Directory replicates its administration information across domain controllers throughout the “forest” utilizing a “multi-master” approach. • Multi-master replication among peer domain controllers is impractical for some types changes, so only one domain controller, called the operations master, accepts requests for such changes. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  30. Authentication • Each domain controller has information for the entire forest to support authentication and access control. • This provides the ability for local domain controllers (the “tree”) to provide a quick local lookup of authority. • Not just users but every object authenticating to Active Directory must reference the global catalog server, including every computer that boots up Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  31. Mapping to Distributed Hash Tables (1) • Figure 5-24. (a) A general description of a resource. (b) Its representation as an AVTree (Attribute/Value tree). Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  32. Mapping to Distributed Hash Tables (2) • Figure 5-25. (a) The resource description of a query. (b) Its representation as an AVTree. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  33. Semantic Overlay Networks • Figure 5-26. Maintaining a semantic overlay through gossiping. Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

  34. Riferimenti • http://www.ischool.washington.edu/mcdonald/courses/imt546_au04/pres-12.11/ActiveDirectoryFinal.ppt Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved. 0-13-239227-5

More Related