1. Home
  2. Explore
  3. Computer Science
  4. Computer Network Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Computer Network Basics

Computer Networks Fundamentals


Definition and Purpose

A computer network is a collection of various computing devices connected to share data. The primary purpose is enabling data sharing between homogeneous and heterogeneous devices. This involves a sender and a receiver (machines or users sending data through machines). The sender writes a program to send data to the receiver.

Basic Components

Connection

Data moves from sender to receiver via a connection — either wired or wireless. Packets travel through this physical or wireless medium.

Protocol

For meaningful communication, the data sent must be understood by the receiver. This requires a protocol — a set of instructions running on both sender and receiver machines. The protocol ensures that both parties interpret the data correctly.

Example: If a Punjabi speaker calls a Telugu speaker, the connection (phone line) carries the voice, but without a common language (protocol), no understanding occurs. A protocol is like a common language enabling proper communication.

Proper communication = connection + protocol + set of instructions followed on both sides.

Inter‑process Communication vs. Computer Networks

Within a Single Machine

When two processes communicate on the same machine (e.g., keyboard sending a keystroke to the monitor), this is inter‑process communication (IPC). IPC is handled by the operating system kernel, not by computer networking. Though wires exist internally, this is not considered a network scenario.

Between Different Machines

Computer networks come into play when the client and server reside on physically separate machines — they can be in the same room or thousands of kilometers apart. The distance does not matter; the key is that the machines are separate.

Client‑Server Model and Abstraction

A client (e.g., a laptop in India) sends a request to a server (e.g., Facebook’s server in the USA). The network must provide an environment where both processes feel they are on the same machine, even though they are physically distant.

Main function of a computer network: Make physically separated client and server processes perceive that they are on the same machine.

This abstraction is why users feel that accessing data from a remote server is as fast as accessing local files.


Functionalities in Network Communication

All network communication involves mandatory and optional functionalities.

Mandatory Functionalities

These cannot be neglected. They are built into the network protocols.

  • Error Control: Ensures the message received (MMM) is identical to the message sent (MMM). Due to noise or hacking in an open system, data may change. The mechanism must at least detect errors, and possibly correct them or request retransmission.

  • Flow Control: Regulates the amount of data sent so that the receiver’s buffer or memory is not overwhelmed. Prevents congestion.

  • Multiplexing / Demultiplexing: When multiple processes run on a machine (e.g., several browser tabs), multiplexing identifies which process is sending data; demultiplexing directs incoming data to the correct receiving process. This is a transport layer function.

Optional Functionalities

These are added only when needed; they increase system complexity and transmission time.

  • Encryption / Decryption (Cryptography): Converts data into an unreadable form for intruders. Required for sensitive applications (banking, HTTPS). Not needed for normal HTTP or simple messaging.

  • Checkpointing: Used during large downloads. After a failure, downloading resumes from the last checkpoint instead of starting from zero. Pointless for small data (e.g., WhatsApp messages).

There are over 70 functionalities in network communication.


Why the OSI Model?

To standardize all these functionalities, developers created a layered model: the OSI (Open Systems Interconnection) model. It provides a standard for how data is sent out of a machine (following protocols) and how it is received (following the reverse protocols). This standardization ensures interoperability.

The 7 Layers of the OSI Model

The 70+ functionalities are grouped into seven layers:

  1. Physical Layer

  2. Data Link Layer

  3. Network Layer

  4. Transport Layer

  5. Session Layer

  6. Presentation Layer

  7. Application Layer

When a message is sent from the sender’s machine, it passes down through these layers (7→1). When it arrives at the receiver’s machine, it passes up through the layers (1→7). Each layer handles specific mandatory/optional functions.

Other models: TCP/IP model and IEEE model are also important, but from an academic/GATE perspective, OSI and TCP/IP are the primary ones.

The OSI model provides a standardized framework for network communication, ensuring consistent data transfer across diverse systems.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent