1. Gyanastra
  2. Computer Networks
  3. Recap and Background
  4. Purpose of Computer Networks: Inter-Process Communication Across Hosts
Free lesson, no account needed 3 min read 17 practice questions after it
Asked in past papers2 times
  • ISRO20202014

Computer Networks · Recap and Background

Purpose of Computer Networks: Inter-Process Communication Across Hosts

Overview

Inter-Process Communication (IPC) lets processes on the same host talk to each other through the operating system. Computer networks extend this to processes on different hosts, making remote communication appear as if both processes were on the same machine.

Key concepts

  • Inter-Process Communication (IPC): A facility provided by the operating system that lets two processes running on the same computer (same host) communicate directly with each other.
  • Purpose of Computer Networks: To enable communication between two processes running on different hosts. The network (hardware plus software) must make these two remote processes feel as if they are on the same host.
  • Transparency: The design goal that remote communication must appear to the processes as if it were local (same-host) communication.
    Each process should believe it is talking to a process on its own machine, even though the other process is on a remote host.

How it works

  1. When the client process and the server process are on the same host, they do not need a network. The operating system provides IPC, and the two processes communicate directly through it.
  2. When the client and server processes are on different hosts, direct communication is not possible — this is exactly the situation computer networks are built to solve.
  3. The goal of the network's hardware and software is to deliver communication such that the two processes feel as if they are actually in the same host.
  4. Concretely, the entire purpose of the hardware and software is to ensure that the message travels from the client process to the server process across the network.
  5. From this purpose, the functionalities that a network must provide are derived; these functionalities are then classified further.

Revision summary

  • IPC handles communication between processes on the same host, and it is provided by the operating system.
  • Computer networks exist for communication between processes on different hosts.
  • The design goal is transparency: remote communication must appear as local (same-host) communication.
  • The job of network hardware and software is to carry the message from the client process to the server process across hosts.
  • The functionalities a network must provide are derived from this purpose and are classified further.

Previous-year exam insights

  • IPC mechanisms provided by the OS on a single host include pipes, message queues, shared memory and sockets; network IPC extends the same socket abstraction across hosts (Berkeley sockets / TCP-UDP ports).
  • Transparency is one of several network design goals; others include reliability, scalability, security, efficiency (throughput/delay) and interoperability — a network must trade these off, not only achieve transparency.
  • A socket is identified across hosts by the pair (IP address, port number); the IP address identifies the host and the port identifies the process on that host, which is how the network makes remote processes addressable like local ones.
  • Layering (OSI / TCP-IP) is the standard way the derived functionalities are classified: each layer provides services to the layer above and uses services of the layer below, with peer-layer protocols communicating logically.
  • Client-server and peer-to-peer are the two standard models of inter-process communication across hosts; in client-server the server listens on a well-known port and the client initiates the connection.
  • End-to-end argument: functions such as reliability and error control are best implemented at the end hosts (in the processes/transport layer) rather than inside the network, because only the endpoints know the true requirements.
Pages 1–2 of 2