Skip to content
Tutorials Center
My learning

Topics

Computer Networks Tutorial

Learn Computer Networks step by step: 79 lessons in 13 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started with Networks

  1. 1 What Is a Computer Network? Start Computer Networks here: nodes, links, hosts, LAN, MAN and WAN, the Internet as a network of networks, client-server versus peer-to-peer, and topologies.
  2. 2 Transmission Modes: Simplex, Half-Duplex and Full-Duplex Learn the three directions a link can carry data, serial versus parallel transmission and asynchronous versus synchronous framing, with runnable models of turnaround and UART frames.
  3. 3 How Data Travels: Packets and Switching See how data crosses a network: circuit versus packet switching, store-and-forward routers, statistical multiplexing and the anatomy of a packet, with live code.
  4. 4 Bandwidth, Latency, Throughput and Loss Learn the four delays a packet suffers, bandwidth versus throughput, the bandwidth-delay product, RTT, jitter and packet loss, with live delay calculators.
  5. 5 Layered Models: OSI and TCP/IP Understand why networks use layers: the seven OSI layers, the TCP/IP model, encapsulation, PDUs and the difference between a protocol and a service, with live code.
  6. 6 Session and Presentation Layers and RPC Understand OSI layers 5 and 6: sessions, checkpoints, character encoding, serialization, compression and encryption, plus how RPC stubs marshal calls, with Python demos.
  7. 7 The Structure of the Internet See how the Internet is built from ISPs in tiers, exchange points, content delivery networks and autonomous systems, and who sets the standards (IETF, IEEE, ICANN).

Physical Layer

  1. 8 Signals, Bandwidth and Transmission Media Learn analog and digital signals, the Nyquist and Shannon capacity limits, and how twisted pair, coax, fiber and wireless media differ, with a live calculator.
  2. 9 Line Coding and Modulation See how bits become signals: NRZ, Manchester, differential Manchester and 4B/5B line codes, clock recovery, and ASK, FSK, PSK and QAM, with live Python.
  3. 10 Multiplexing and Physical Devices Learn how one link carries many conversations with TDM, FDM, WDM and statistical multiplexing, and what hubs, repeaters, modems and network cables do.

Data Link Layer

  1. 11 Framing and Error Detection Learn how the data link layer marks frame boundaries with byte and bit stuffing and detects corruption with parity, checksums and CRC, with live Python.
  2. 12 Error Correction and Hamming Codes Learn forward error correction, how Hamming(7,4) finds and fixes a flipped bit with a syndrome, and how interleaving defeats burst errors, with live Python.
  3. 13 Flow Control and ARQ Learn flow control and ARQ: stop-and-wait, Go-Back-N and selective repeat, window sizes, link utilization formulas and piggybacking, with a live simulation.
  4. 14 Medium Access Control Learn how stations share one channel: ALOHA, slotted ALOHA, CSMA, CSMA/CD with backoff, CSMA/CA and token passing, with efficiency formulas and live Python.
  5. 15 Ethernet and Frames Learn the Ethernet frame format, MAC addresses, the 64-byte minimum frame, Fast, Gigabit and 10G variants and full duplex, and build a frame in Python.
  6. 16 Switches, Bridges and MAC Learning See how switches learn MAC addresses, flood unknown frames, split collision domains and use Spanning Tree to stop loops, with live Python simulations.
  7. 17 Link Aggregation and LACP Learn how link aggregation bundles several Ethernet links into one logical link, how LACP negotiates it, how traffic is hashed across members, and how to configure it.
  8. 18 VLANs and ARP Learn how VLANs split a switch into separate networks with 802.1Q tags, and how ARP maps IP addresses to MAC addresses, including ARP spoofing, with simulations.

The Network Layer: IP

  1. 19 IPv4 Addresses Understand IPv4 addresses: dotted decimal and binary, historical classes, private and special ranges, loopback and link-local, with a live Python converter.
  2. 20 Subnetting and Subnet Masks Learn subnetting step by step: network and host bits, subnet masks, usable hosts, broadcast addresses and splitting a block into subnets, with a Python calculator.
  3. 21 CIDR, VLSM and Route Aggregation Learn classless addressing: CIDR prefix notation, variable-length subnet masks, supernetting, route aggregation and longest-prefix match, with Python planners.
  4. 22 The IPv4 Packet and Fragmentation Learn every field of the IPv4 header, how the header checksum and TTL work, why fragmentation exists, and how path MTU discovery avoids it, with Python demos.
  5. 23 IPv6 Understand IPv6: 128-bit addresses and compression, address types, the simplified 40-byte header, SLAAC autoconfiguration, and dual stack, tunnels and NAT64.
  6. 24 GRE Tunnels and Tunneling Protocols Learn how tunneling wraps one packet inside another, how GRE headers and overhead work, how routing and MTU behave over a tunnel, and how PPTP, L2TP and IPsec compare.
  7. 25 NAT and Private Networks Learn how NAT and NAPT work: translation tables, port forwarding, CGNAT, why peer-to-peer breaks behind NAT, and how hole punching gets around it.
  8. 26 DHCP: Getting an Address See how DHCP gives hosts an IP address automatically: the Discover, Offer, Request, Acknowledge exchange, leases and renewal, relay agents, options and rogue servers.
  9. 27 ICMP: Errors and Diagnostics Learn how ICMP reports errors and powers ping and traceroute: echo, destination unreachable, time exceeded, redirect, message layout, checksums and ICMPv6.

Routing

  1. 28 Routing and Forwarding Understand how routers forward packets: control plane vs data plane, routing table lookups, longest prefix match, default and static routes, and route selection.
  2. 29 Link-State Routing and Dijkstra See how link-state routers flood their links, build a shared map, and run Dijkstra's algorithm to find shortest paths. Includes OSPF areas and live Python.
  3. 30 Distance-Vector Routing Learn how distance-vector routers share tables with neighbors, why Bellman-Ford works, how count to infinity happens, and how split horizon and RIP fix it.
  4. 31 RIP and OSPF Protocol Behavior Walkthrough See how RIPv2 and OSPF actually behave on a network: message formats, timers, neighbor states, DR and BDR election, areas, costs and convergence, with runnable simulations.
  5. 32 BGP and Inter-Domain Routing Understand how BGP connects the Internet's autonomous systems: eBGP and iBGP, path attributes, routing policy, route leaks, hijacks and anycast, with live Python.
  6. 33 WAN Technologies: MPLS, Leased Lines and SD-WAN Learn how companies connect distant sites: leased lines, Frame Relay and ATM history, MPLS label switching and VPN services, and SD-WAN path selection, with Python models.
  7. 34 Multicast, Broadcast and Quality of Service Learn unicast, broadcast, multicast and anycast, how IGMP manages groups, and how QoS tools such as token buckets, queues and DiffServ protect traffic.

Transport Layer

  1. 35 The Transport Layer and Ports Learn what the transport layer does: process-to-process delivery, ports, sockets, multiplexing and demultiplexing, well-known ports, TCP versus UDP, with live Node code.
  2. 36 UDP Learn the User Datagram Protocol: the 8-byte header, the checksum with its pseudo-header, loss and reordering, and why DNS, games and QUIC choose UDP. Live code.
  3. 37 TCP Segments and the Three-Way Handshake Read every field of the TCP header, see how sequence and acknowledgment numbers work, follow SYN, SYN-ACK and ACK, and learn how a SYN flood attacks the handshake.
  4. 38 TCP Connection Teardown and State Machine Learn how TCP closes a connection with FIN and ACK, what half-close, RST and TIME_WAIT mean, how to read the state diagram, and why CLOSE_WAIT piles up.
  5. 39 TCP Reliability: ACKs, Timers and Retransmission See how TCP delivers every byte: cumulative ACKs, duplicate ACKs and fast retransmit, SACK blocks, RTT estimation and the Jacobson/Karels retransmission timeout.
  6. 40 TCP Flow Control and the Receive Window Understand TCP's sliding window and receive window, window scaling, zero-window probes, silly window syndrome, Nagle's algorithm and delayed ACKs, with simulations.
  7. 41 TCP Congestion Control Learn how TCP finds the network's capacity: slow start, congestion avoidance, AIMD, fast recovery, Reno, CUBIC, BBR and ECN, with cwnd simulations in Python.
  8. 42 Socket Programming Basics Learn the socket API: bind, listen, accept and connect, why TCP is a byte stream without message boundaries, how to frame messages, and blocking vs non-blocking I/O.
  9. 43 Socket Programming in Python Write TCP and UDP clients and servers with Python's socket module, handle many clients with threads and select, and frame messages with a length prefix.
  10. 44 QUIC, SCTP and Modern Transports Learn why TCP's single ordered stream causes head-of-line blocking, and how QUIC streams, 0-RTT, connection migration, SCTP and MPTCP address its limits.

Application Layer: Names and Web

  1. 45 Application Layer Protocols and Architectures Understand the application layer: client-server vs peer-to-peer, pull vs push, text vs binary protocols, stateless vs stateful design, with a toy protocol in Node.js.
  2. 46 DNS: The Internet's Phone Book Learn how the Domain Name System turns names into IP addresses: the hierarchy, recursive and iterative resolution, caching with TTL, and the main record types.
  3. 47 DNS in Practice: Zones, Security and Privacy Read and write DNS zone files, understand glue and propagation, and learn how DNSSEC, DoT and DoH protect DNS, how cache poisoning works, and DNS load balancing.
  4. 48 HTTP Fundamentals Learn how HTTP works: URLs, the request and response format, methods and idempotency, status codes, headers, statelessness and content negotiation, with live Node.js demos.
  5. 49 HTTP/1.1, HTTP/2 and HTTP/3 See how HTTP grew from one request per connection to multiplexed HTTP/2 and QUIC-based HTTP/3, and why head-of-line blocking drove each change. Live Node demos.
  6. 50 Caching, Cookies and State Learn how Cache-Control, ETag and conditional requests avoid repeated downloads, how proxies and CDNs share caches, and how cookies add state to stateless HTTP.
  7. 51 Proxies, Load Balancers and CDNs Understand forward and reverse proxies, Layer 4 versus Layer 7 load balancing, balancing algorithms, health checks, CDN edge caching and anycast, with live Node demos.
  8. 52 WebSockets, SSE and Real-Time Communication Compare polling, long polling, Server-Sent Events and WebSockets, learn the WebSocket upgrade handshake and frame format, and see WebRTC in context. Live Node demos.
  9. 53 VoIP, RTP and Streaming Media Learn how calls and video travel over IP: SIP signalling, the RTP packet and RTCP reports, jitter buffers, codec bandwidth, and adaptive bitrate streaming with HLS and DASH.
  10. 54 Email: SMTP, IMAP and POP3 Follow an email from sender to inbox: MUA, MTA and MDA roles, the SMTP command dialogue, MIME attachments, IMAP vs POP3, and how SPF, DKIM and DMARC fight forgery.
  11. 55 FTP, SSH, DHCP-adjacent and Other Protocols A tour of the supporting protocols behind real networks: FTP, SFTP, SSH, telnet, NTP time sync, SNMP monitoring, syslog, plus SMB file sharing, TFTP and NNTP.
  12. 56 LDAP and Directory Services Learn what a directory service is, how LDAP organizes entries in a tree with distinguished names, how bind and search work, how filters match, and how to secure it.

Modern Networks

  1. 57 Software-Defined Networking and Network Virtualization Learn how SDN separates the control plane from the data plane, how OpenFlow match-action rules work, and how VXLAN overlays and NFV virtualize networks, with runnable models.
  2. 58 Cloud and Data Center Networking Understand how cloud networks are built: VPCs, public and private subnets, route tables, security groups versus network ACLs, leaf-spine data centers, ECMP and east-west traffic.

Wireless and Mobile Networks

  1. 59 Wi-Fi and 802.11 Learn how Wi-Fi works: SSIDs and BSSs, 2.4 and 5 GHz channels, CSMA/CA with RTS/CTS, association, frame types, roaming, and what Wi-Fi 6 and 7 changed.
  2. 60 Cellular Networks: 4G, 5G and Beyond How mobile networks work: cells and frequency reuse, handoff, the radio access network and core, LTE architecture, 5G features such as slicing and mmWave, and IoT.
  3. 61 Bluetooth, Zigbee, LoRa and IoT Networking Compare short-range and low-power radios (Bluetooth, BLE, Zigbee, LoRa), see how mesh networks relay messages, and learn MQTT and CoAP, the IoT application protocols.

Network Security

  1. 62 Network Security Fundamentals Learn the basics of network security: the CIA triad, sniffing, spoofing, man-in-the-middle and DoS attacks, attack surface, defense in depth and threat modeling.
  2. 63 Cryptography for Networking Understand the cryptography behind secure networks: symmetric and asymmetric encryption, hashes, HMAC, Diffie-Hellman key exchange and digital signatures, with toy demos.
  3. 64 TLS and HTTPS How TLS and HTTPS work: the TLS 1.3 handshake, certificates and chains, certificate authorities, SNI, ALPN, HSTS, forward secrecy and common misconfigurations.
  4. 65 Firewalls, VPNs and Intrusion Detection Learn how packet filters and stateful firewalls decide what to allow, how DMZs, VPN tunnels (IPsec, WireGuard) and IDS/IPS work, and try a live firewall simulator.
  5. 66 Common Attacks and How to Defend Understand ARP and DNS spoofing, SYN floods, DDoS amplification, port scans and session hijacking, and defend with rate limiting. Includes a live Python rate limiter.

Tools and Troubleshooting

  1. 67 Essential Network Tools Learn the everyday network command-line tools: ping, traceroute, dig, curl, ss, ip, nmap and whois. See how to read sample output and parse it with Python.
  2. 68 Packet Capture with tcpdump and Wireshark Capture and read network packets with tcpdump and Wireshark: capture vs display filters, a TCP handshake, DNS and HTTP captures, follow stream, plus a Python pcap parser.
  3. 69 Troubleshooting Network Problems Learn a layered method to troubleshoot networks: tell DNS, routing and firewall problems apart, diagnose MTU and MSS issues, and separate latency from loss.

How the Web Works and Real-World Projects

  1. 70 What Happens When You Type a URL Follow one web request from the address bar to the screen: URL parsing, DNS, ARP, routing, NAT, TCP, TLS, HTTP and rendering, with a live Python timeline simulation.
  2. 71 Project: Subnet Planner Build a subnet planner in Python: size VLSM subnets for an organization, allocate aligned blocks, verify the plan, find free space and print a full report.
  3. 72 Project: Ethernet, IP and TCP Packet Parser Build a packet parser in Python: decode raw hex bytes layer by layer with struct, read TCP options and verify the IPv4 and TCP checksums.
  4. 73 Project: A TCP Chat Server and Client Build a chat server on raw TCP sockets: a line-based protocol, nicknames, broadcast, message framing on a byte stream and robust handling of bad clients.
  5. 74 Project: A Tiny HTTP Server from Raw TCP Build an HTTP/1.1 server from raw TCP sockets: parse request lines, headers and bodies, route requests, send status codes and support keep-alive.
  6. 75 Project: A Network Simulator with Routing Build a network simulator in Python: routers and links, Dijkstra routing tables, hop-by-hop packet forwarding, TTL, traceroute and link failure recovery.

Practice and Review

  1. 76 Practice: Addressing and Routing Exercises Practice subnetting, CIDR, VLSM, route aggregation, longest-prefix match, Dijkstra and distance-vector routing with worked solutions and live Python checks.
  2. 77 Practice: Link Layer and Transport Exercises Work through seven exercises on CRC, Hamming codes, sliding windows, RTO and congestion windows, then check every answer with live Python code.
  3. 78 Computer Networks Interview Questions Prepare for networking interviews with 48 questions and clear answers on layers, TCP and UDP, DNS, HTTP, TLS, subnetting and troubleshooting, plus live Python checks.
  4. 79 Computer Networks Cheat Sheet A dense networking cheat sheet: layers and protocols, port numbers, header fields, subnet table, delay and window formulas, HTTP status codes and tool commands.