Question 3 of 11 · Set 2 · 6 marks
Open in ChatGPTDescribe about flat naming, structured naming, and attribute-based naming. Why is name resolution a distinct operation from name representation?
Introduction
A name is a string that refers to an entity; resolution maps that name to the address needed to reach it. Naming schemes are classified by what the name looks like and how the lookup proceeds.
Flat naming
The name has no structure and carries no location. Resolution needs a lookup:
- Broadcast: ask every node; used in small networks (ARP).
- Forwarding pointers: the old address holds a pointer to the new one; chains can grow with repeated moves.
- Home-based: a stable home agent keeps the current address; the client asks the home each time.
- Distributed hash table: hash the name to a key and store the address at that key's node; Chord, Pastry, Kademlia do this in O(log n) hops.
Structured naming
The name is a path in a hierarchy, such as /usr/students/notes.txt or www.example.edu. Each component is resolved by the node responsible for that level, so lookups scale with the tree depth rather than the system size. DNS, NFS and file systems use this.
Attribute-based naming
The client does not know the name, only properties: "a printer that is colour, on floor 3, idle". A directory service (LDAP, an index) searches the attributes and returns matching entries. It is the scheme used by service discovery.
Representation vs resolution
- Representation is how the name is written down: the syntax and encoding: a DNS string, an IOR, a URL.
- Resolution is the operation of turning that name into an address: a DNS query, an ORB lookup, an HTTP redirect.
They are distinct because the same name can be represented differently (a URN and a URL name one resource), and a representation can be resolved by several mechanisms (cached, DNS, or a directory). Separating them lets a name outlive any single resolution path: which is exactly what location transparency requires.
Conclusion
Flat names scale through distributed lookups, structured names through hierarchy, attribute names through search. Keeping representation apart from resolution is what allows the address behind a name to change without the name changing.