Computer Science: Class 12 — Chapter 10: Computer Networks

10.1 Introduction to Computer Networks

We live in an interconnected world where information is produced, exchanged, and traced globally in real time. A network is defined as a group of two or more similar things or people interconnected with each other.

Everyday Examples of Networks
  • Social network : Interconnections among people for social interaction.
  • Mobile network : Infrastructure connecting cellular devices.
  • Network of computers : Interconnected computing devices.
  • Utility networks : Airlines, railways, banks, and hospital networks.
Computer Network & Nodes

A computer network is an interconnection among two or more computers or computing devices, allowing them to share data and resources. Any device connected to a network that can receive, create, store, or send data is called a node (or host), such as a server, desktop, laptop, smartphone, printer, or modem.

For communication, data is divided into smaller chunks called packets , which are carried over wired media (cables) or wireless media (air).

10.2 Evolution of Networking

The journey of modern computer networks began in the 1960s with a research project commissioned by the Advanced Research Projects Agency Network ( ARPANET ) in the U.S. Department of Defence to connect academic and research institutions.

Milestones Timeline
  1. 1961: The idea of ARPANET is conceptualized.
  2. 1969: ARPANET becomes functional by connecting UCLA and SRI.
  3. 1971: Roy Tomlinson develops network messaging (E-mail), introducing the @ symbol to mean "at".
  4. 1974: The term Internet is coined, and Telenet (first commercial use of ARPANET) is started.
  5. 1982: TCP/IP is introduced as the standard protocol on ARPANET.
  6. 1983: The Domain Name System (DNS) is introduced.
  7. 1986: National Science Foundation brings connectivity to more people with its NSFNET program.
  8. 1990: Tim Berners-Lee at CERN develops HTML and URL , giving birth to the World Wide Web (WWW) .
  9. 1997: The first version of the Wi-Fi (802.11) standard is introduced.
10.3 Types of Networks

Computer networks are broadly categorized based on the geographical area covered and data transfer rates.

Core Computer Science Concept Technical Definition / Operational State Structural Parameters & Specifications Computational Function & System Purpose
Personal Area Network (PAN) A network formed by connecting personal devices within a very close range. Approximate range of 10 meters; can be wired (USB) or wireless (Bluetooth / WPAN). Connects personal devices like laptops, smartphones, and printers for individual use.
Local Area Network (LAN) A network connecting devices placed at a limited distance in a localized area. Range up to 1 km; speeds from 10 Mbps (Ethernet) to 1000 Mbps (Gigabit Ethernet); uses Ethernet cables, fiber optics, or Wi-Fi. Enables secure resource sharing (printers, local servers) within a room, office, school, or campus.
Metropolitan Area Network (MAN) An extended form of LAN covering a larger geographical area like a city or town. Range up to 30-40 km; connects multiple LANs together; data rates in Mbps (less than LAN). Serves municipal or corporate networks across a city, such as cable TV networks or city-wide broadband.
Wide Area Network (WAN) A network connecting computers, LANs, and MANs across vast geographical distances. Spans countries or continents; uses public or private transmission systems (wired/wireless). Connects branches of large businesses, educational institutions, or governments globally. The Internet is the largest WAN.
10.4 Network Devices

To communicate data through transmission media and configure networks, various specialized hardware devices are required.

Technical Profile: Modem

  • Architecture Layer / Tier: Physical Layer Interface / Signal Conversion Tier
  • Operational Mechanics & Syntax: Performs modulation (converting digital bits from a computer into analog signals for transmission) and demodulation (converting incoming analog signals back into digital bits).
  • System Trade-offs & Failures: Limited by the bandwidth of the transmission line; failure of the modem completely disconnects the local node from external networks.

Technical Profile: Ethernet Card (NIC)

  • Architecture Layer / Tier: Network Interface Tier / Hardware Controller
  • Operational Mechanics & Syntax: A circuit board mounted on the motherboard that acts as an interface between the computer and the network cable. Supports data transfer rates between 10 Mbps and 1 Gbps. Each NIC has a unique, permanent physical MAC address .
  • System Trade-offs & Failures: Physical damage to the card or port prevents any wired network connectivity; speed is capped by the card's hardware specifications.

Technical Profile: RJ45 Connector

  • Architecture Layer / Tier: Physical Connection Interface
  • Operational Mechanics & Syntax: An eight-pin plastic connector plug used exclusively with Ethernet cables to fit into RJ45 jacks on NICs.
  • System Trade-offs & Failures: Plastic retention clips are fragile and break easily, leading to loose connections and intermittent signal loss.

Technical Profile: Repeater

  • Architecture Layer / Tier: Physical Layer Signal Regenerator
  • Operational Mechanics & Syntax: An analog device that receives weakened signals on a cable (which typically lose strength after ~100 meters), regenerates them to their original strength, and retransmits them.
  • System Trade-offs & Failures: Regenerates noise along with the signal; does not perform any packet filtering or routing.

Technical Profile: Hub

  • Architecture Layer / Tier: Physical Layer Multi-port Repeater
  • Operational Mechanics & Syntax: Connects multiple devices through wires. Data arriving on any input port is broadcasted (sent out) to all other ports.
  • System Trade-offs & Failures: High collision rates if multiple devices transmit simultaneously; inefficient bandwidth utilization due to broadcasting; lacks security as all connected devices receive all packets.

Technical Profile: Switch

  • Architecture Layer / Tier: Data Link Layer / Central LAN Controller
  • Operational Mechanics & Syntax: Connects multiple devices in a LAN. Extracts the destination MAC address from incoming data packets, looks it up in an internal table, and forwards the packet only to the specific target device. Drops noisy or corrupted signals.
  • System Trade-offs & Failures: More expensive than hubs; table size limits the number of MAC addresses it can store; central point of failure for the local segment.

Technical Profile: Router

  • Architecture Layer / Tier: Network Layer Routing Hardware
  • Operational Mechanics & Syntax: Receives, analyzes, and transmits data packets between different networks (e.g., connecting a LAN to the Internet). Can repackage packets to fit the requirements of different network types.
  • System Trade-offs & Failures: Complex configuration; introduces processing latency due to packet analysis; high hardware cost.

Technical Profile: Gateway

  • Architecture Layer / Tier: Application/Network Edge Security & Protocol Converter
  • Operational Mechanics & Syntax: Acts as an entry and exit point ("gate") between an organization's internal network and the outside world (Internet). Can be implemented in software, hardware, or both. Often integrated with a firewall.
  • System Trade-offs & Failures: Single point of failure for all external traffic; can become a performance bottleneck if security inspection overhead is high.
10.5 Networking Topologies

The physical or logical arrangement of computers and other peripheral devices in a network is called its topology .

Mesh Topology

Each communicating device is connected directly to every other device in the network.

  • Reliability: Extremely high; if one node or cable fails, traffic is rerouted through alternative paths.
  • Security: High, as dedicated links carry data only between the two connected nodes.
  • Complexity & Cost: Very high; requires complex wiring. For n nodes, the number of required wires is:
    Total Wires = n(n - 1) / 2
Ring Topology

Each node is connected to exactly two other devices, one on each side, forming a closed loop.

  • Data Flow: Unidirectional (clockwise or counterclockwise).
  • Vulnerability: High; a break in the ring or a single node failure can disable the entire network.
Bus Topology

All devices connect to a single central backbone cable called the bus .

  • Data Flow: Transmitted along the length of the bus in both directions; received by all nodes.
  • Advantages: Cheap, simple, and easy to install and maintain.
  • Disadvantages: Less secure; a break in the main backbone cable disables the entire network.
Star Topology

Each device is connected directly to a central node (such as a hub or switch).

  • Efficiency: Very fast and effective; disturbance in one node does not affect the rest of the network.
  • Vulnerability: The central node is a single point of failure; if the hub/switch fails, the entire network goes down.
Tree or Hybrid Topology

A hierarchical topology containing multiple branches, where each branch can have one or more basic topologies (star, ring, bus). Commonly used in WANs to connect multiple LANs.

10.6 Identifying Nodes in a Networked Communication

To ensure accurate routing and delivery of data, every node in a network must be uniquely identified using physical and logical addressing schemes.

Core Computer Science Concept Technical Definition / Operational State Structural Parameters & Specifications Computational Function & System Purpose
MAC Address (Media Access Control) The physical or hardware address permanently engraved on the NIC during manufacturing. 12-digit hexadecimal number (48 bits in length). First 6 digits (24 bits) represent the manufacturer's ID (OUI); last 6 digits (24 bits) represent the serial number. E.g., FC:F8:AE:CE:7B:16 . Uniquely identifies a physical machine on a local network segment; cannot be changed.
IPv4 Address (Internet Protocol v4) A logical numeric address assigned to each node in an IP-based network. 32-bit numeric address written as four decimal numbers (0-255) separated by periods. E.g., 192.168.0.178 . Offers ~4.3 billion unique addresses. Uniquely identifies a node globally; can change dynamically if the node moves to a different network.
IPv6 Address (Internet Protocol v6) The next-generation logical addressing scheme developed to replace IPv4 due to address exhaustion. 128-bit address represented by eight groups of hexadecimal numbers separated by colons. E.g., 2001:CDBA:0000:0000:0000:0000:3257:9652 . Provides a virtually inexhaustible pool of unique IP addresses for global routing of billions of IoT and computing devices.
10.7 Internet, Web and the Internet of Things

While often used interchangeably, the Internet and the World Wide Web are distinct technological systems.

Three Core Technologies of the Web

Sir Tim Berners-Lee invented the WWW in 1990 by defining three fundamental technologies:

  • HTML (HyperText Markup Language) : The standard language used to design and structure web pages so they can be read by any browser.
  • URI / URL (Uniform Resource Identifier / Locator) : A unique address or path for each resource on the web (e.g., http://www.ncert.nic.in/textbook/textbook.htm ).
  • HTTP / HTTPS (HyperText Transfer Protocol / Secure) : The set of rules used to retrieve and transmit linked web pages across the web.
10.8 Domain Name System (DNS)

Because remembering numeric IP addresses (like 164.100.60.233 ) is difficult for humans, the Domain Name System (DNS) maps human-readable domain names (like ncert.nic.in ) to their corresponding IP addresses.

Technical Profile: DNS Server

  • Architecture Layer / Tier: Application Layer Directory Service
  • Operational Mechanics & Syntax: Performs domain name resolution . When a user enters a URL, the browser queries a DNS server to obtain the mapped IP address. Once retrieved, the HTTP protocol uses that IP address to fetch the web page.
  • System Trade-offs & Failures: DNS queries introduce initial connection latency; if the DNS server goes down, websites cannot be accessed using their domain names (though they remain accessible via direct IP addresses).
DNS Hierarchical Structure

DNS servers are organized hierarchically. At the top level are 13 root servers (named A through M). Below them are Top-Level Domain (TLD) servers (like .com, .in, .org) and authoritative name servers that hold the actual IP mappings.

Technical Analysis & Infrastructure Case Studies

Case Study: Two universities located in different states (e.g., Delhi and Shimla) need to establish a secure, high-speed data transfer network to share research databases and administrative files.


Socio-Technical Analysis & Core Systemic Impact:

  • Network Type Selection: Since the universities are in different states, a Wide Area Network (WAN) must be deployed. This WAN will connect the local campus networks (LANs) of both universities via high-speed telecommunication lines or satellite links.
  • Hardware Infrastructure: Each campus will utilize a Gateway at its network edge to manage incoming and outgoing traffic, translate protocols, and enforce security policies via integrated firewalls. Within each campus, high-speed Switches will manage local traffic, and Routers will direct packets across the WAN.
  • Addressing & Resolution: Nodes on both campuses will be assigned unique IP addresses (IPv4 or IPv6) for routing. Internal DNS servers can be configured to resolve local server names, while public DNS servers will handle external web traffic.