chapter 5 naming
play

CHAPTER 5: NAMING DR. TRN HI ANH Outline 2 Names. Identifiers - PowerPoint PPT Presentation

CHAPTER 5: NAMING DR. TRN HI ANH Outline 2 Names. Identifiers and Address 1. Flat Naming 2. Structured Naming 3. 1. Names. Identifiers and Address 3 Cc h phn tn @ Trn Hi Anh 3/27/2010 2014 Entity & Name 4


  1. CHAPTER 5: NAMING DR. TRẦN HẢI ANH

  2. Outline 2 Names. Identifiers and Address 1. Flat Naming 2. Structured Naming 3.

  3. 1. Names. Identifiers and Address 3 Các hệ phân tán @ Trần Hải Anh 3/27/2010 2014

  4. Entity & Name 4 Operation 1 Operation 2 Operation 3 Name Entity Naming system Các hệ phân tán @ Trần Hải Anh 2014 2014

  5. Entity, A.P 5 Name Access Address Point Entity Access Address Point

  6. Location independent 6 Entity Entity Access Access Access Point Point Point Address Address Address

  7. Identifier 7 ¨ 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 (it is never reused)

  8. Resolving names and identifiers to addresses 8 ¨ Name-to-address binding ¨ Problem: not appropriate to large network ¨ Naming systems ¨

  9. URI, URL và URN 9 ¨ URI: ¤ a string of characters used to identify a resource. ¤ interact with representations of the resource over a network ¤ URL and URN ¤ It comprises 5 parts: scheme, authority, path, query and fragment ¨ URN: ¤ ISBN 0486275574 (run:isbn:0-486-27557-4) ¨ URL: ¤ file:///home/username/RomeoAndJuliet.pdf

  10. 2. Flat naming 10

  11. 2.1. Definition 11 ¤ Identifiers are simply random bit strings (unstructured) ¤ It does not contain any information of location ¤ Goal: how flat names can be resolved Simple solutions 1. Home-based Approaches 2. Distributed Hash Tables 3. Hierachical Approaches 4.

  12. 2.2. Simple Solutions 12 ¨ 2.2.1. Broadcasting and Multicasting ¨ 2.2.2. Forwarding pointers

  13. 2.2.1. Broadcasting and Multicasting 13 ¨ Condition: System supports broadcasting facilities: ¤ A message containing the identifier of the entity is broadcast to each machine. ¤ Each machine is requested to check whether it has that entity. ¤ Only the machines that can offer an access point for the entity send a reply message containing the address of that access point.

  14. 2.2.1. Broadcasting and Multicasting 14 ¨ Inefficient when the network grows ¤ Wast network bandwidth by request messages ¤ Too many hosts may be interrupted by requests they cannot answer. ¨ à multicasting

  15. Example: ARP 15

  16. ARP-Spoofing 16

  17. 2.2.2. Forwarding Pointer 17 ¨ When an entity moves from A to B, it leaves behind in A a reference to its new location at B. ¨ Advantage: ¤ Simplicity: By using a traditional naming service, a client can look up the current address by following the chain of forwarding pointers. ¨ Drawbacks ¤ A chain of FP can become so long à locating that entity is expensive. ¤ All intermediate nodes have to maintain their part of the chain. ¤ Broken links à cannot reach the entity

  18. Forwarding Pointer mechanism 18

  19. Redirecting a FP 19

  20. 2.3. Home-based Approaches 20

  21. Solution for stable home problem 21 ¨ Server root quá tải ¨ Vấn đề đường đi

  22. 2.4. Distributed Hash Tables 22 ¨ Chord system ¨ Create the ring with prev(n) and succ(n) ¨ Use finger table to determine the succ(k) of key k ¨ FTp is the finger table of node p: ¨ To look up a key k , node p will then immediately forward the request to node q : ¨ Update the finger tables after inserting a new node

  23. Chord system with finger tables 23

  24. 2.5. Hierarchical Approaches 24

  25. An entity having two addresses in different leaf domains 25

  26. Looking-up 26

  27. Caching 27

  28. Updating 28

  29. 3. Structured Naming 29

  30. Structured Name Spaces 30 A general naming graph

  31. Name Spaces 31 ¨ Leaf node: ¤ No outgoing edge ¤ Store information of its address ¨ Directory node: ¤ Outgoing edge ¤ Store a table with info (edge label, node identifier) ¨ Path name: N: <label1, label2, label3, label4, ...> ¨ Absolute path name/Relative path name

  32. Name resolution 32 ¨ Consider a path name: N:<label1, label2, ..., labeln> ¨ Start at node N of the naming graph, where the name label1 is looked up in the directory table, and which returns the identifier of the node to which label1 refers. ¨ Continue at the identified node by looking up the name label2 ¨ So on ... ¨ Relatively with the UNIX file system

  33. General organization of the UNIX file system 33

  34. File system in UNIX file name #inode data file data permbits, data etc. addr inode

  35. Directory node (folder)

  36. Hard link file name 1 #inode data file 1 data permbits, data etc. addr inode file name 2 #inode $ln source_file target_file file 2

  37. Hard link (cont.) 37

  38. Soft link file name 1 #inode inode permbits, addr file etc. file path "/path/to/some/other/file " file name 2 #inode data data permbits, data etc. addr $ln –s source_file target_file

  39. Soft link 39

  40. Mounting 40 ¨ Ánh xạ không gian tên vào một không gian tên khác Các hệ phân tán @ Hà Quốc Trung 2010 3/27/2010

  41. Merging 41

  42. Naming service 42 ¨ Functions: ¤ Add names ¤ Remove names ¤ Look up names ¨ Naming service is implemented by name servers ¨ In large-scale distributed systems (many entities, large geographical area) à distribute the implementation of a name space over multiple name servers

  43. Hierarchical organization 43 ¨ Global layer ¤ root node + directory nodes logically close to the root (children) ¤ Stability (rarely changed) ¤ represent organization, or group of organization ¨ Administrational layer ¤ represent groups of entities that belong to the same organization ¨ Managerial layer ¤ consist of nodes that may change regularly

  44. DNS name space 44

  45. Comparison of three layers 45

  46. Implementation of Name Resolution 46 ¨ Depend on the distribution of a name space across multiple name servers ¨ Each client has a name resolver ¨ 2 ways of implementation of name resolution: ¤ Iterative name resolution ¤ Recursive name resolution

  47. Iterative name resolution 47

  48. Recursive name resolution 48

  49. Recursive vs. iterative name resolution 49

  50. Example: DNS 50 [source: howstuffworks.com]

  51. DNS Terminology, Components, and Concepts Top-Level Domain Hosts SubDomain Fully Qualified Domain Name (FQDN) Name Server Zone File Records

  52. Record types Start of Authority (SOA) A and AAAA Records CNAME records

  53. Record types MX records NS records

Recommend


More recommend