1. Gyanastra
  2. Operating Systems
  3. UGC NET: Distributed Systems
  4. Network Operating Systems and Structure
Free lesson, no account needed 13 min read 23 practice questions after it
Asked in past papers6 times
  • UGC NET201720152014201320102008

Operating Systems · UGC NET: Distributed Systems

Network Operating Systems and Structure

Overview

A distributed system connects autonomous computers by a network and aims to present a coherent view of resources across those computers.
This lesson separates two ways of managing such multi-machine systems: the Network Operating System (NOS), where users see and name individual machines, and the Distributed Operating System (DOS), which aims at a single-system image.
It belongs to Distributed Systems in the System Software and OS Extras area, and UGC NET asks definitions, transparency, coupling, client-server and peer-to-peer structures, microkernel organisation, RPC cost, and distributed shared memory.
Before studying this, know basic OS ideas: process, memory, file system, system call, and message passing over a LAN/WAN. The central test is simple: does the user manage many machines explicitly, or does the system hide them as one virtual uniprocessor?

Key concepts

  • Distributed system: a collection of loosely coupled hardware nodes, each with its own processor and memory, connected by a network.
    There is no shared physical memory across nodes; communication is by message passing. From the user's side, the system may aim to look like one virtual uniprocessor.
  • Distributed operating system (DOS): an OS that manages multiple independent nodes as one single-system image. Hardware is loosely coupled, but the OS software is tightly coupled. It provides global resource management, transparent remote access, global scheduling, process migration, and a global file namespace.
    Examples: Amoeba, Sprite, LOCUS, Chorus. In UGC convention, Amoeba is the standard distributed OS example; UNIX, MS-DOS and MULTICS are not distributed OSs in this sense.
  • Network operating system (NOS): an OS environment in which each node runs its own local OS and the network services are added on top.
    Users are aware of multiple machines and use explicit remote login (rlogin/ssh), remote file transfer (FTP/scp), or export/mount (NFS) to access remote files.
    There is no global process management and no fully transparent process migration. Examples: UNIX/Linux with NFS, Windows Server, Novell NetWare.
  • Transparency: hiding distribution from the user. Access transparency hides data representation differences. Location transparency hides where a resource is.
    Migration transparency hides movement of a resource or process. Replication transparency hides multiple copies. Concurrency transparency hides concurrent sharing. Failure transparency hides failure and recovery.
    A DOS aims at all of these; a NOS gives only limited transparency.
  • Coupling: loosely coupled hardware means autonomous computers with private memory. Tightly coupled hardware means shared memory or a common clock, as in a multiprocessor.
    Tightly coupled software means one global OS view; loosely coupled software means independent local OSs.
    Therefore, DOS = tightly coupled software on loosely coupled hardware; NOS = loosely coupled software on loosely coupled hardware.
  • Microkernel: the kernel gives the smallest possible set of services, usually interprocess communication (IPC), low-level scheduling, and basic memory primitives.
    File, process, memory, device and network services run as user-level servers. A client obtains a service by sending a message through the microkernel to the server.
    Benefits are modularity, extensibility, portability and fault isolation.
  • Client-server structure: a server provides a shared service or resource, controls access to it, and responds to requests; clients initiate requests.
    In two-tier, the client handles presentation and some logic while the server holds data.
    In three-tier, the client is presentation, the middle tier holds business logic/application logic, and the backend holds the database.
  • Peer-to-peer (P2P) structure: all nodes are symmetric; every node can act as both client and server, and no node has a permanently privileged role.
    In pure P2P, there is no central index, so a lookup may contact several nodes. Adding nodes can increase aggregate capacity without a central bottleneck. A hybrid P2P uses a central tracker or index.
  • Cluster computing: a collection of computers, usually on a fast local network, working as a single system for high availability and load balancing.
    Cloud computing provides on-demand access to a shared pool of resources over a network. Grid computing coordinates distributed resources across organisations.
    Parallel computing is simultaneous computation on tightly coupled processors; in UGC convention it is treated as a separate model, not as an example of a distributed computing environment.
  • LAN (Local Area Network): a network limited to a small geographical area such as an office, laboratory or campus; high speed and low delay.
    WAN (Wide Area Network): a network spanning cities or countries; higher delay and usually public or leased links. MAN (Metropolitan Area Network) covers a city.
  • RPC (Remote Procedure Call): a client calls a procedure on a remote server as if it were local.
    A client stub marshals parameters, the network sends them, a server stub unmarshals them, the procedure executes, and the result returns. Cost has a fixed null-RPC overhead plus a per-data transfer cost.
  • DSM (Distributed Shared Memory): a software abstraction that gives a logical shared address space over the private physical memories of the nodes.
    It is not a combination of secondary memories; per-node virtual memory maps pages, and a coherence protocol keeps copies consistent.
  • Global naming: a global name may be a pair (site number, local object number). The number of bits needed is the site-number bits plus the local-object bits.
  • Scalability: the capacity of a system to adapt to increased service load. It has dimensions such as size, geography and administration, and is achieved by decentralisation, caching and replication.

How it works

  1. NOS request handling. Ramesh on host A wants a file on host B. He must know B's name, log in to B or mount B's exported directory, and then access the file.
    Host A's local OS and B's local OS remain separate; a network file protocol carries requests. If B fails, Ramesh's access to B's files fails. There is no transparent remote process migration by the system alone.

  2. DOS request handling. Geeta on node A uses a global file name. A's local microkernel routes the request by message passing to the file server that owns the object. The server checks permissions and returns the result.
    The user does not name the host. The global scheduler may place a process on a lightly loaded node without Geeta choosing that node.

  3. Microkernel with servers. The kernel is small and only routes messages and manages low-level resources. File, process, memory and device services are separate servers.

  4. Client-server request. A client sends a request to a known server. The server authenticates the client, checks permission, performs the service, and returns a reply.
    The server is a central provider of a shared resource, so it can become a bottleneck or a single point of failure.

  5. Pure P2P lookup. A node asks its neighbours for a resource. If they do not have it, they forward the query. No permanent server is required, but lookup may require contacting several nodes.

  6. RPC execution. The caller invokes a stub; the stub marshals arguments; the message goes to the server; the server stub unmarshals and calls the real procedure; the result is marshalled back and returned to the caller.

Figure. Notice that Geeta does not name the host: A's local microkernel routes the global file request by message passing to the file server on B, which checks permissions; process and memory services are separate servers.

Formulas

  • For RPC total time, use the convention that data size is measured in kilobytes and time in milliseconds: T=n(t0+aS)T = n(t_0 + aS)

  • where nn is the number of RPCs, t0t_0 is the fixed null-RPC time in ms, aa is the additional time per KB in ms/KB, SS is the payload per RPC in KB, and TT is total time in ms. If total data is DD KB split into equal calls of SS KB, then n=D/Sn = D/S.

  • For a global name made of site number and local object number: Bs=⌈log⁡2s⌉,Bo=⌈log⁡2o⌉,B=Bs+BoB_s = \lceil \log_2 s \rceil,\qquad B_o = \lceil \log_2 o \rceil,\qquad B = B_s + B_o

  • where ss is the number of sites, oo is the number of objects per site, and BB is total bits. Site numbers are taken as 00 to s−1s-1.

Worked examples

Example 1: RPC cost. A null RPC takes 1.01.0 ms, and every 1 KB adds 1.51.5 ms. Find the time to read 32 KB as 32 RPCs of 1 KB each.
For each 1 KB RPC: 1.0+1.5(1)=2.51.0 + 1.5(1) = 2.5 ms.
Total: 32×2.5=8032 \times 2.5 = 80 ms. Check: 32×1.0=3232 \times 1.0 = 32, 32×1.5=4832 \times 1.5 = 48, sum 8080 ms.
The trap option is 4949 ms, which is the time for one 32 KB RPC: 1.0+1.5(32)=491.0 + 1.5(32) = 49 ms.
Answer: 80 ms.

Example 2: global name length. A DOS has 4 sites, each holding 2122^{12} objects. A global name is (site number, local object number). How many bits are needed?
Site bits: ⌈log⁡24⌉=2\lceil \log_2 4 \rceil = 2. Local bits: ⌈log⁡2212⌉=12\lceil \log_2 2^{12} \rceil = 12.
Total bits: 2+12=142 + 12 = 14. Maximum names: 4×4096=163844 \times 4096 = 16384.
Answer: 14 bits.

Example 3: NOS or DOS? System P requires Sunita to log in to a remote machine and choose it before running her program. System Q lets her run the program normally, and the system places it on a lightly loaded node.
System P is NOS-style because the remote host is explicit. System Q is DOS-style because remote execution is transparent and globally scheduled.
Answer: P = NOS, Q = DOS.

Example 4: match transparency types. Match A Access, B Location, C Migration, D Replication with i hide data representation, ii hide where a resource is, iii hide movement of a process or resource, iv hide multiple copies.
Access hides representation: A-i. Location hides place: B-ii. Migration hides movement: C-iii. Replication hides copies: D-iv.
Answer: A-i, B-ii, C-iii, D-iv.

Example 5: three-tier architecture. Ankur uses a bank application: the mobile app shows the screen, an application server checks banking rules, and a database stores accounts.
The mobile app is the presentation/client tier. The application server is the middle tier holding business logic. The database is the data/backend tier.
Answer: presentation tier, business-logic middle tier, data tier.

Comparison

PointNetwork Operating SystemDistributed Operating System
User viewMany machines; user names remote hostSingle-system image; virtual uniprocessor
Local OSEach node has its own local OS; NOS is added on topOne global OS/software over the nodes
Remote executionUser log⁡s\log s in or selects a hostSystem schedules remotely; user need not name host
File accessExport/mount, FTP, remote loginGlobal file namespace; open anywhere
Process migrationNot transparentTransparent migration is a goal
Resource managementPer node; no global schedulerGlobal scheduler and resource manager
Fault toleranceServer failure is visible to clientsAims to hide failures, though not perfectly
HeterogeneityEasily built on heterogeneous machinesMust hide hardware and local-OS differences
CouplingLoosely coupled software on loosely coupled hardwareTightly coupled software on loosely coupled hardware
ExamplesUNIX with NFS, Windows Server, NetWareAmoeba, Sprite, LOCUS, Chorus
TransparencyWhat it hides
AccessDifferences in data representation and access methods
LocationThe physical or network location of a resource
MigrationMovement of a process or resource
ReplicationThe existence of multiple copies
ConcurrencyConcurrent use by several users
FailureFailure and recovery of components
StructureRole patternMain strengthMain weakness
Client-serverServer provides shared service; clients requestCentral control and administrationServer bottleneck or single point of failure
Three-tierClient presentation, middle business logic, backend dataSeparation of concernsMore complexity
Pure peer-to-peerEvery node is client and serverScalable aggregate capacityLookup may contact many nodes
MicrokernelSmall kernel routes messages to serversModularity and fault isolationMessage-passing overhead

Revision summary

  • NOS = explicit machines; DOS = transparent single system.
  • DOS = tightly coupled software on loosely coupled hardware.
  • NOS = loosely coupled software on loosely coupled hardware.
  • Distributed nodes communicate by message passing, not shared physical memory.
  • Amoeba is the standard distributed OS example.
  • Microkernel = minimal kernel plus user-level servers.
  • Three-tier middle tier = business or application logic.
  • Pure P2P has no permanent privileged node and no central index.
  • LAN is office/lab/campus; WAN is city/country scale.
  • RPC formula: fixed null cost plus per-KB cost; 32 one-KB calls cost 32(1.0+1.5)=8032(1.0+1.5)=80 ms.
  • Global name bits = site bits + local object bits.
  • DSM is a logical combination of physical memories, not secondary storage.

Previous-year exam insights

  • Direct conceptual questions ask which statement is not correct about distributed systems.
    Check transparency first: a user should not have to log on to a remote site to use remote resources.
  • NOS versus DOS is the most common trap.
    Explicit remote login, export/mount and local OS per node mean NOS; single-system image, global naming and automatic remote scheduling mean DOS.
  • Coupling questions mix hardware and software.
    Remember the correct pair: distributed OS uses tightly coupled software on loosely coupled hardware.
  • Statement I/II questions test fault tolerance, heterogeneity and file access.
    A NOS can run on heterogeneous machines easily; a DOS must hide that heterogeneity.
  • Match-the-list questions pair transparency names, LAN/WAN, NOS/DOS, RPC, export/mount, single point of failure, middle tier and microkernel message routing.
  • Numeric questions use the RPC fixed-plus-per-KB model and the global-name bit formula.
    Split RPCs repeat the fixed overhead.
  • Assertion-reason questions often state that a DOS can schedule on a lightly loaded node without user naming it; the reason is its global view and scheduler.
  • Do not confuse DSM with secondary memory or with per-node virtual memory.
    DSM is a software shared address space over private physical memories.

Practice at PARIKSHA

You are ready for the PARIKSHA tests of this sub-topic when you can:

  • Define NOS and DOS and state the transparency difference in one line.
  • Classify a scenario as NOS or DOS from explicit remote login versus automatic remote execution.
  • Explain loosely coupled hardware and tightly coupled software with an example.
  • Identify client-server, three-tier, pure P2P and microkernel roles from a description.
  • Compute RPC total time for split and single-transfer cases correctly.
  • Compute the number of bits in a global name from sites and objects per site.
  • Match access, location, migration and replication transparency to their meanings.
  • Explain why DSM is a logical combination of physical memories, not secondary storage.
  • Distinguish LAN from WAN and state which is geographically limited.
  • State why parallel computing is treated as separate from distributed computing in UGC convention.

Attempt the PARIKSHA sub-topic test first, then the subject test.

Pages 1–2 of 2