Docsity

Understanding Names and Naming Systems in Computer Networks, Slides of Operating Systems

Partial preview of the text

Download Understanding Names and Naming Systems in Computer Networks and more Slides Operating Systems in PDF only on Docsity!

Naming

Names (1)

 Name: a string of bits or characters  Why we need names in a computer system?  To refer to and operate on entities such as hosts, printers, disks, and files etc.  To operate on an entity, we need to access it  i.e., to obtain an entity’s access points ( addresses )  for example, the following are my access points: [email protected], (402)472- 5793  for a running server process, its transport-level address (IP address, port number) serves as its access point

Names (3)

 Using address to refer to an entity is  Inflexible, human unfriendly, subject to changes  an entity changes address, address reassigned to another entity  An entity has more than one address (access point), which one to use as a reference?  Easier and more flexible to use location independent names

A Special Type of Name: 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 (prohibits reusing an identifier)  What could serve as a person’s identifier?

What is a Naming System

  • Name system maintains a name-to-address binding to resolve name (or identifier) to address
  • The implementation of naming systems in distributed and non-distributed systems are quite different - Say, how to locate a process in a uniprocessor system?

Flat Naming

  • Simple Solutions
    • Broadcasting
    • Forwarding pointers
  • Home-based Solutions
  • Hierarchical Solutions
  • Distributed Hash Tables

Broadcasting (I)

Entity(A) Need Address for Entity(A) Reply to Request Address of Entity(A) IGNORE Request Internet ARP: Network IP addresses  data-link MAC addresses

Forwarding Pointers

  • A popular method to locate mobile entities
  • When an entity moves from A to B, it leaves a pointer to B at A
  • Simple: use traditional naming service to locate A, then follow the pointer chain
  • Example: postal service
    • One person moves from Florida  Virginia

Forwarding Pointers

  • Figure 5-1. The principle of forwarding pointers using (client stub, server stub) pairs.

Forwarding Pointers

  • Figure 5-2. Redirecting a forwarding pointer by storing a shortcut in a client stub.

Forwarding Pointers

  • Figure 5-2. Redirecting a forwarding pointer by storing a shortcut in a client stub.

Home-Based Approaches

  • Home-location : popular for supporting mobile entities in large-scale networks
  • Keeps track of the current location

Mobile IP

  • Assign a fixed IP (home location) to a mobile host
  • Contact host through home location