Welcome 👋
This interactive study guide is designed to help you master Computer Networks — protocols, signals, error control, flow control, HDLC and routing — built on Stallings' textbook and Prof. Hossam Kasem's lectures. Navigate through the modes below:
- 📖 Tutorial Mode: Socratic walkthroughs of OSI/TCP-IP, transmission impairments, CRC, Hamming, ARQ, sliding window, HDLC and routing — with try-it checks and worked examples.
- 🎴 Flash Cards: Quick-recall decks of definitions, formulas, register fields, and one-liner facts.
- 🎯 Professor's Focus: Every Q & A and solved numerical from Prof. Kasem's Midterm Revision Guide (Part 1, L1–L4) and the Advanced Final Study Companion (Part 2, L5–L10) — pick a part from the home page.
- ⚡ Practice Quiz: Exam-style MCQs drawn from lectures, sheets, assignments & revision.
💡 Pro-Tip: Press Ctrl+K to search across tutorials and questions. The floating 📋 Cheat Sheet at the bottom-right has Shannon/Nyquist, Hamming layout, HDLC frame format and routing rules.
Pick a revision part
Each part is a self-contained Q & A + worked-numerical deck drawn from Prof. Kasem's revision documents.
🍅 Focus Timer
⏳ Final Exam Countdown
📋 Exam Reference Sheet
Protocol Architecture & OSI / TCP-IP
OSI 7 layers (top→bottom): Application · Presentation · Session · Transport · Network · Data Link · Physical.
TCP/IP 5 layers: Application · Transport · Internet · Network Access · Physical.
| OSI | TCP/IP | PDU | Example |
|---|---|---|---|
| 7 Application | Application | data | HTTP, FTP, SMTP, DNS |
| 6 Presentation | data | TLS, JPEG, ASCII | |
| 5 Session | data | NetBIOS, RPC | |
| 4 Transport | Transport | segment / datagram | TCP, UDP |
| 3 Network | Internet | packet | IP, ICMP, ARP |
| 2 Data Link | Network Access | frame | Ethernet, HDLC, PPP |
| 1 Physical | Physical | bit | cables, fiber, radio |
Protocol elements: Syntax · Semantics · Timing.
TCP vs UDP: TCP header ≥ 20 B, reliable, ordered. UDP header = 8 B, best-effort.
Signals & Transmission
Impairments: Attenuation · Limited bandwidth · Delay distortion · Noise (thermal, intermod, crosstalk, impulse).
Error Detection & Correction
Parity: catches all odd-count errors; misses all even.
CRC: append n zeros, modulo-2 divide by P(X), remainder = FCS. Modulo-2 add = XOR.
Hamming positions: P1, P2, D, P4, D, D, D, P8, …
Coverage rule: Pi covers every position whose binary index has bit i set.
Flow Control, ARQ & HDLC
Seq-number limits (k bits): Go-Back-N W ≤ 2k − 1 · Selective Reject W ≤ 2k−1.
HDLC frame: Flag · Address · Control · Info · FCS · Flag.
Frame types: I · S (RR, RNR, REJ, SREJ) · U (SABM, UA, DISC, FRMR).
Bit stuffing: after every five 1s insert a 0.
Modes: NRM · ABM (most common, no polling) · ARM.
Routing & WAN
| Strategy | Info needed | Strength | Weakness |
|---|---|---|---|
| Fixed | static table | simple | no reaction |
| Flooding | none | robust, broadcasts | load |
| Random | none | simple | suboptimal |
| Adaptive | live state | reacts | can oscillate |
Algorithms: Dijkstra (full topology) vs Bellman-Ford (neighbor distance vectors).
ARPANET: Gen 1 Bellman-Ford/queue · Gen 2 Dijkstra/delay · Gen 3 averaged delay.
WAN switching: Circuit · Packet (datagram/VC) · Frame Relay · ATM (53-byte cells).
Midterm Focus — Key Formulas
Data sizes: Total bits = images × pixels × bpp. Video bps = bits/frame × fps.
Quick recall: log2(16) = 4 · log2(64) = 6 · 100.3 ≈ 2 · K = °C + 273.
OSI mnemonic: All People Seem To Need Data Processing.