βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β "The Internet is 99% visible light traveling through fiber optic cables β
β at the speed of light, and 100% magic happening in between." β
β β
β Welcome to CNβwhere we make the magic visible, interactive, and deep. π β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
I'm Devashish Mishra, a Computer Science student at BITS Pilani (in partnership with Scaler School of Technology), and a fiercely passionate developer who believes that true mastery comes from diving deep into the foundations. Code is poetry, but networking is the stage where that poetry is performed!
This repository is my playgroundβa collection of meticulously crafted, interactive notes on Computer Networks (CN), forged in the fires of:
- ποΈ BITS Pilani β The alma mater conferring my Computer Science degree.
- π Scaler School of Technology β The master architects providing the industry-grade curriculum.
- π€ ChatGPT β My AI sidekick, turning complex concepts into "aha!" moments.
- π My Relentless Curiosity β Because understanding "why" the packets flow matters infinitely more than just memorizing "what" they are.
This isn't just another networking course repository. This is an intellectual expedition into the infrastructure that powers our digital world.
π‘ Seamless Sequential Learning: Start from Module 01, Topic 01, and follow the bidirectional navigation links at the top and bottom of each chapter. The entire repository is linked end-to-end across all 112 topics!
| Module | Module Overview & Hub | Focus & Core Theme | Chapters | Quick Jump |
|---|---|---|---|---|
| 01 | Introduction to Computer Networks | Foundations of Connectivity, Physical Infrastructure & Layered Mental Models | 9 | π Start Chapter 01 |
| 02 | Network Packets and Layered Communication | Protocol Rules, Encapsulation, Framing, MTU & MAC Addressing | 10 | π Start Chapter 01 |
| 03 | IP Addresses and Subnetting I | Logical Layer-3 Addressing, Binary Foundations, Network Boundaries & CIDR | 8 | π Start Chapter 01 |
| 04 | IP Addresses and Subnetting II | Practical Subnet Engineering, VLSM, IPv6 Expansion & Gateway Routing | 6 | π Start Chapter 01 |
| 05 | Graph Algorithms for Networking | Modeling Networks as Graphs, Breadth-First & Depth-First Search, Dijkstra's Algorithm | 4 | π Start Chapter 01 |
| 06 | Graph Algorithms for Networking II | Distributed Bellman-Ford, Minimum Spanning Trees & Graph Foundations of Routing | 3 | π Start Chapter 01 |
| 07 | Routing and Forwarding I | Router Internals, Routing Tables, Longest Prefix Match & Forwarding Mechanics | 7 | π Start Chapter 01 |
| 08 | Routing and Forwarding II | Dynamic Routing Protocols, Distance Vector vs Link State, RIP, OSPF, BGP & Loops | 7 | π Start Chapter 01 |
| 09 | Routing Protocols | In-Depth Protocol Mechanics: RIP, OSPF & Internet-Scale BGP | 3 | π Start Chapter 01 |
| 10 | DNS and Internet Applications | Name Resolution Hierarchy, Caching, URL Anatomy, HTTP/1.1 Protocols & State | 13 | π Start Chapter 01 |
| 11 | TCP, UDP and Socket Programming | Transport Layer Architecture, Ports, Connection Handshakes, Reliability & Flow Control | 8 | π Start Chapter 01 |
| 12 | TCP, UDP and Socket Programming II | Sliding Windows, Sockets, Local Network Integration (ARP, NAT/PAT, DHCP & Gateways) | 11 | π Start Chapter 01 |
| 13 | Network Troubleshooting | The Diagnostic Toolkit: Command-Line Utilities, Packet Sniffing & Debugging Playbook | 10 | π Start Chapter 01 |
| 14 | Complete Internet Journey + Revision | The Grand Unification: Tracing a Full Web Request from Keystroke to Render & Teardown | 13 | π Start Chapter 01 |
Where does each module live in the grand networking stack? Here is how your learning maps to the layered architecture of the Internet:
+-----------------------------------------------------------------------------------------+
| [LAYER 7 & 5] APPLICATION & SESSION LAYERS |
| -> Module 10: DNS & Internet Applications (DNS, HTTP/1.1, HTTP/2, URL Anatomy, Cookies) |
| -> Module 14: Complete Internet Journey (Full Browser -> Server Request Lifecycle) |
+-----------------------------------------------------------------------------------------+
|
v
+-----------------------------------------------------------------------------------------+
| [LAYER 4] TRANSPORT LAYER |
| -> Module 11: TCP, UDP and Socket Programming (Handshake, 4-Way Close, Reliability) |
| -> Module 12: Sliding Window, Socket Programming & Local Integration |
+-----------------------------------------------------------------------------------------+
|
v
+-----------------------------------------------------------------------------------------+
| [LAYER 3] NETWORK LAYER |
| -> Module 03: IP Addresses & Subnetting I (IPv4, CIDR, Bitwise AND, Private IPs) |
| -> Module 04: IP Addresses & Subnetting II (VLSM, IPv6, Default Gateways, Intro to NAT) |
| -> Module 05: Graph Algorithms for Networking (BFS, DFS, Dijkstra Shortest Path) |
| -> Module 06: Graph Algorithms II (Bellman-Ford, Spanning Trees & Graph Foundations) |
| -> Module 07: Routing and Forwarding I (Routers, FIBs, Longest Prefix Match, LPM) |
| -> Module 08: Routing and Forwarding II (Distance Vector vs Link State, Loops) |
| -> Module 09: Routing Protocols (RIP, OSPF, BGP Deep Dives) |
| -> Module 12 (Partial): ARP, NAT, PAT, DHCP, Default Gateway, Home Routers |
+-----------------------------------------------------------------------------------------+
|
v
+-----------------------------------------------------------------------------------------+
| [LAYER 2] DATA LINK LAYER |
| -> Module 02: Network Packets & Layered Communication (Frames, Encapsulation, MTU, MAC) |
| -> Module 06 (Partial): Minimum Spanning Tree (MST / STP Loop Prevention) |
+-----------------------------------------------------------------------------------------+
|
v
+-----------------------------------------------------------------------------------------+
| [LAYER 1] PHYSICAL INFRASTRUCTURE & TOPOLOGY |
| -> Module 01: Introduction to Computer Networks (Pipes, Bandwidth, Delays, Edge vs Core)|
+-----------------------------------------------------------------------------------------+
|
v
+-----------------------------------------------------------------------------------------+
| [OPERATIONAL REALITY] DIAGNOSTICS & SYSTEM TRIAGE |
| -> Module 13: Network Troubleshooting (`ping`, `traceroute`, `tcpdump`, Wireshark, `ss`)|
+-----------------------------------------------------------------------------------------+
Not everyone has the same immediate goal. Choose the curated study track tailored to your needs:
Focus on core curriculum theory, subnetting math, and standard interview algorithms.
- Module 01: Foundational models (OSI vs TCP/IP, Delays, Switching)
- Module 02: Encapsulation, Framing, MTU & MAC
- Module 03 & 04: Complete Subnetting, CIDR & VLSM Problem Solving
- Module 05 & 06: Graph Algorithms (Dijkstra, Bellman-Ford, MST)
- Module 07 & 08: Routing Tables, LPM, Distance Vector vs Link State
- Module 10 & 11: DNS, HTTP & TCP 3-Way Handshake π Start Track 1 at Module 01
Focus on how applications communicate over networks, sockets, latency, and state.
- Module 01 (Chapters 6-9): Delay math, bottlenecks, TCP/IP
- Module 10: DNS resolution, HTTP request/response, headers, cookies, sessions
- Module 11: Ports, TCP byte streams, 3-way handshake, flow control
- Module 12: Sockets API (
bind,listen,accept), client-server concurrency - Module 14: The complete end-to-end packet journey from browser to backend DB π Start Track 2 at Module 10
Focus on troubleshooting, packet inspection, firewalls, gateways, NAT, and routing.
- Module 03 & 04: CIDR, VPC subnetting, default gateways
- Module 07 & 09: Routing tables, LPM, BGP peering
- Module 12: ARP, NAT, PAT, DHCP, Private network boundaries
- Module 13: CLI diagnostic mastery (
ping,traceroute,dig,ss,tcpdump,wireshark) - Module 14: Cloud Load Balancers, TLS Handshakes, and Reverse Proxies π Start Track 3 at Module 13
Read all 14 modules and all 112 chapters in chronological order, taking every self-assessment quiz. π Start Track 4 at Chapter 01
Every single one of the 112 chapters features a collapsible Knowledge Check & Quick Quiz. Test your understanding immediately before checking the solution!
No more getting lost. Every chapter has:
- Top breadcrumbs pointing to Repository Root, Module Index, and adjacent chapters
- Bottom progression bar showing total course percentage
- Direct jump links to the next module when you finish a section
Every formula (propagation delay, transmission delay, BDP, subnetting masks, CIDR ranges) is derived with clear step-by-step math and ASCII visualizations.
Because learning should be fun:
Why did the TCP packet go to therapy?
"Because it had too many connections to work through, and everyone kept dropping it!" π
What's a router's favorite food?
"Packet snacks!" πΏ
Why don't TCP/IP engineers trust anyone?
"They always verify the checksum first." β
The OSI Model walks into a bar...
"...and asks for a drink. The bartender says, 'What layer would you like that on?'" πΈ
Why did the bandwidth apply for a bigger house?
"It had too much throughput to handle at home!" π
- Start with Module 01, Chapter 01 β Context is king.
- Follow the navigation buttons β Click
Next Topic β‘οΈat the bottom of each file. - Answer the self-check quizzes β Don't open the answer until you've reasoned through the question.
- Revisit monthly β Networking concepts have layers (pun intended).
- Jump directly to any module using the Master Curriculum Roadmap above.
- Use Module 14 as a comprehensive mock interview rehearsal for the classic question: "What happens when you type google.com into your browser?"
- Use Module 13 as a quick-reference cheat sheet during production incidents.
- Review Module 11 & 12 when debugging socket performance, TIME_WAIT socket exhaustion, or TCP receive window stalling.
| Source | Why It Matters | What I Used |
|---|---|---|
| Scaler School of Technology | Industry-standard curriculum | Core concepts & structural progression |
| BITS Pilani | Foundational academic rigor | CS principles & theoretical depth |
| ChatGPT | Modern AI clarity | Explanations, analogies & synthesis |
| My Brain | Pattern recognition & passion | Architectural structure, quizzes & curation |
Because I'm a developer who:
- β Believes in understanding systems deeply
- β Gets frustrated with vague, textbook explanations
- β Wants to contribute to the global developer community
- β Thinks networking is criminally underrated
- β Can't sleep until I understand why something works
This repository is my answer to: "What if someone created the single most intuitive, interactive, and comprehensive Computer Networks resource on GitHub?"
Found a typo? Have a better analogy? Want to add another diagnostic tool or Wireshark capture?
Contributions are warmly welcomed!
- Fork the repository
- Create a feature branch (
git checkout -b feature/better-explanation) - Commit your enhancements (
git commit -m 'Enhance explanation of TCP Fast Retransmit') - Push to the branch (
git push origin feature/better-explanation) - Open a Pull Request with a clear description
β¨ These notes are shared for educational purposes under the MIT License.
- Curriculum design credited to Scaler School of Technology & BITS Pilani
- Built with relentless curiosity by Devashish Mishra
Feel free to star β the repo, fork it, and share it with your peers!
ββββββββββββββββββββββββββββββββββββββββ 100% PASSION
Happy Learning, Future Networking Expert! ππ

