SUBJECT NOTEBOOK|Computer Science · B.Tech · GATE CS

Computer Networks

“Master packet flows, sliding window arithmetic, CIDR subnetting, IP fragmentation, and TCP congestion control for university exams and GATE CS/IT.”

A rigorous, comprehensive study notebook covering computer networking fundamentals, mathematical channel capacities, flow control protocols, IP routing, and transport layer mechanisms. Built specifically for B.Tech semester exams and high-percentile GATE CS/IT preparation.

09 SECTIONS · 12 NOTES · 00 LABS
MODE 01 · UNDERSTAND & LEARN

Structured Notes & Exam Lens

Two parallel study perspectives

A · B.Tech Structured Study Sequence

9 Sections · Full Curriculum
01

Protocol Layering & Network Delays

2 notes

Architectural principles of computer networking: OSI 7-layer vs TCP/IP 5-layer stacks, packet encapsulation, and end-to-end delay mathematics.

1.1OSI vs TCP/IP Models & Packet Encapsulation

Layer responsibilities, protocol data units (PDU), and header encapsulation.

1.2Physical Layer: Channel Capacity, Nyquist-Shannon Bounds & Switching

Nyquist bit rate, Shannon-Hartley capacity, SNR decibels, and circuit vs packet switching.

02

Data Link Layer, Error Detection & Correction

1 note

Framing methods, bit-stuffing, checksum, Cyclic Redundancy Check (CRC) polynomial arithmetic, and Hamming distance bounds.

2.1Framing, Bit Stuffing & Cyclic Redundancy Check (CRC)

Flag bytes, HDLC bit-stuffing, and binary modulo-2 CRC division.

03

Flow Control & Sliding Window Protocols

1 note

Stop-and-Wait ARQ, Go-Back-N (GBN), Selective Repeat (SR), window size limits, link utilization, and sequence number bit requirements.

3.1Sliding Window: Stop-and-Wait, Go-Back-N & Selective Repeat

Window sizes, link efficiency eta = W / (1 + 2a), and timer retransmissions.

04

Medium Access Control (MAC) & Ethernet

2 notes

Random access protocols (Pure ALOHA, Slotted ALOHA), CSMA/CD, CSMA/CA, Ethernet frame format, and minimum frame size constraints.

4.1CSMA/CD Collision Detection & Minimum Frame Size

L >= 2 * T_p * Bandwidth, binary exponential backoff, and collision domains.

4.2Connecting Devices, Transparent Bridges & Spanning Tree Protocol (STP)

Collision vs broadcast domains, transparent bridge backward learning, and Spanning Tree Protocol.

05

Network Layer, IPv4 Addressing & CIDR Subnetting

1 note

IPv4 header format, IP packet fragmentation, classful addressing, CIDR prefixes, subnet masks, and NAT translation tables.

5.1IPv4 Header, Packet Fragmentation & CIDR Subnetting

Header fields, MTU fragmentation offsets, and VLSM network bit masks.

06

Routing Protocols & Algorithms

1 note

Distance Vector Routing (Bellman-Ford, Count to Infinity, Split Horizon), Link State Routing (Dijkstra SPF, OSPF), and BGP path vector fundamentals.

6.1Distance Vector vs Link State Routing: Algorithms & Traps

Bellman-Ford updates, count-to-infinity, split horizon, and Dijkstra SPF.

07

Transport Layer, TCP Flow & Congestion Control

2 notes

UDP vs TCP, 3-way handshake, connection termination, flow control, and TCP congestion algorithms (Slow Start, Congestion Avoidance, Fast Recovery).

7.1TCP Handshake, Flow Control & Congestion Control

SYN/ACK sequence tracking, advertised window, cwnd and ssthresh dynamics.

7.2TCP Socket API: From socket() to accept()GATE 2027 CS/IT core: TCP socket API; UDP appears only as a contrast

Connect the transport service to the programming interface named in the GATE 2027 CS/IT syllabus.

08

Application Layer Protocols

1 note

DNS hierarchy and resolution (Iterative vs Recursive), HTTP persistent vs non-persistent RTT analysis, and electronic mail architecture (SMTP, POP3, IMAP).

8.1DNS Resolution & HTTP RTT Delay Calculations

Iterative vs recursive queries, HTTP/1.0 vs 1.1 pipelining, and RTT counting.

09

Network Security, Cryptography & Firewalls

1 note

Symmetric vs asymmetric ciphers, RSA public-key algorithm, Diffie-Hellman key exchange, SHA cryptographic hashes, digital signatures, and firewall packet filtering.

9.1Network Security: Cryptography, RSA Math, Diffie-Hellman & Firewalls

Symmetric vs asymmetric ciphers, RSA modular exponentiation, Diffie-Hellman, and packet-filtering firewalls.

B · GATE 2027 Syllabus Scope

Official syllabus scope and related lesson coverage; topics outside the syllabus are marked as enrichment.

GATE 2027 CS/IT scope
Official syllabus topics:
  • •Principles of layering: OSI and TCP/IP protocol stacks
  • •Basics of packet switching, circuit switching, and delay analysis
  • •Physical layer: Nyquist bit rate, Shannon-Hartley capacity formula, SNR dB conversions, transmission media
  • •Data link layer: framing, error detection (CRC, checksum), flow control (Stop-and-Wait, GBN, SR)
  • •Medium Access Control: ALOHA, CSMA/CD, Ethernet frame formats, transparent bridges, Spanning Tree Protocol (STP)
  • •Network layer: IPv4 addressing, CIDR, subnetting, NAT, fragmentation
  • •Routing algorithms: Distance Vector (RIP), Link State (OSPF), BGP path vector
  • •Transport layer: UDP, TCP connection management, flow control, congestion control (Tahoe vs Reno)
  • •Application layer: DNS resolution, HTTP persistent/non-persistent connections, SMTP, POP3
  • •Network security: RSA public-key algorithm, Diffie-Hellman key exchange, SHA-256 digital signatures, firewalls
MODE 02 · ACTIVE PRACTICE

Interactive Labs & Verified PYQs

0 Simulators · 0 Verified Questions
MODE 03 · HIGH-SPEED RETRIEVAL

Revision & Rapid Review Sheets

One-page mental models
MODE 04 · ACADEMIC CITATION TRAIL

Authoritative Textbooks & Video Lectures

Primary Sources
Recommended Textbooks

All notes in this notebook cross-reference standard academic literature. We do not pretend student notes substitute for classical texts — they guide you through them.

Video Lecture Playlists

Curated lectures from verified educators (Gate Smashers, Neso Academy, Knowledge Gate, and MIT OCW) selected specifically for difficult concept visualizations.

MODE 05 · OPEN STUDENT COLLABORATION

These notes are open and maintained together.

Found a factual mistake? Have a clearer explanation or mental model? Created a useful diagram or worked out a tricky GATE question? Help make this notebook better for every student who opens it next.