GATE /Core Concepts (CS example)

Computer Networks

Computer Networks · free study notes · Updated

Computer Networks – Core Concepts for GATE (CS)

Goal – Provide a concise, self‑contained study guide that covers the fundamentals you’ll need to ace the GATE CS “Computer Networks” section.


1. Simple Explanation

A computer network is a collection of interconnected devices (computers, routers, switches, etc.) that can exchange data. By dividing the communication process into layers, networks can be designed, implemented, and troubleshooted in a modular way.
The most widely taught abstraction is the 7‑layer OSI model (and its practical cousin, the 4‑layer TCP/IP stack). Each layer has a specific role, from physical signal transmission to application‑level services.


2. Key Points & Concepts

Area Core Ideas Typical Protocols / Technologies Typical Exam Topics
Layered Models - OSI (7 layers)
- TCP/IP (4 layers)
OSI: Physical, Data Link, Network, Transport, Session, Presentation, Application
TCP/IP: Link, Internet, Transport, Application
Why layers are separated, Layer responsibilities, Protocol mapping
Data Link Layer - Framing
- MAC addressing
- Error detection (CRC)
- Collision detection (CSMA‑CA, CSMA‑CD)
Ethernet, Wi‑Fi (802.11) Frame structure, CRC calculation
Network Layer - Logical addressing (IPv4/IPv6)
- Routing & forwarding
- Subnetting & CIDR
IP, ICMP, OSPF, RIP, BGP Subnet mask calculation, Routing table updates
Transport Layer - End‑to‑end reliability
- Congestion control
- Flow control
TCP (ACK, retransmission), UDP TCP handshake, sliding window, flow control
Application Layer - Service interfaces
- URL / DNS
HTTP, FTP, SMTP, DNS, NTP DNS resolution process, HTTP request/response
Addressing - MAC vs IP
- ARP, RARP, NDP
ARP, NDP ARP request/response, IP‑to‑MAC mapping
Routing - Static vs dynamic
- Distance‑Vector vs Link‑State
- Path selection (shortest, least cost)
OSPF, EIGRP, BGP Routing loop problem, split horizon
Switching - Cut‑through vs Store‑and‑Forward
- VLAN, Spanning Tree
Ethernet switches, VLAN tagging (802.1Q) STP root bridge selection
Error Handling - Detection (Parity, CRC)
- Correction (ARQ, FEC)
CRC‑16/32, Hamming code CRC‑32 calculation
Performance Metrics - Throughput
- Delay (transmission, propagation, processing, queuing)
- Jitter, Packet loss
Throughput calculations End‑to‑end delay formula
Security Basics - Authentication, Integrity, Confidentiality
- Firewalls, IDS/IPS
TLS/SSL, IPSec, WPA2 Encryption vs hashing
Network Types & Topologies - LAN, WAN, MAN, PAN
- Bus, Star, Ring, Mesh
Ethernet, Fiber, Satellite Mesh redundancy, Star central failure
Quality of Service (QoS) - Traffic shaping
- Priority queues
DiffServ, 802.1p QoS marking in IP header

Tip: For every protocol name, remember its layer and key function (e.g., “TCP (Transport) – reliable, ordered delivery”).


3. Worked Example – End‑to‑End Delay

Problem:
A 1500‑byte packet travels through a path of 3 routers. The link bandwidths are:

Link Bandwidth (Mbps) Propagation speed (m/s) Distance (km)
1 → 2 100 (2\times10^8) 100
2 → 3 1000 (2\times10^8) 50
3 → 4 10 (2\times10^8) 200

Assume:

  • Processing delay at each router = 1 ms
  • Queuing delay negligible

Calculate the total end‑to‑end delay.


Step‑by‑Step

Link Transmission delay (T_t = \frac{L}{R}) Propagation delay (T_p = \frac{d}{s}) Router processing (T_{proc}) Total per link
1 → 2 (\frac{1500\times8}{100\times10^6} = 0.12) ms (\frac{100,000}{2\times10^8}=0.5) ms 1 ms (0.12+0.5+1=1

Your note

Page 1

Doubt hai is topic me?

Free AI teacher se poocho — 24/7, step by step.