AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started

CS notes · CN

Computer Networks

The OSI and TCP/IP models, IP addressing and subnetting, TCP and UDP, DNS, HTTP, routing and what happens when you type a URL.

12 notes · about 2 hours of reading · free, no sign-in needed

Read in this order

basics first

  1. 01Introduction to Computer NetworksComputer networks from the ground up: LAN, MAN and WAN, network topologies, hubs, switches and routers, circuit vs packet switching, and delays worked out.Beginner · 12 minBeginner · 12 min
  2. 02The OSI ModelThe seven OSI layers from application to physical: each layer's job, PDU, protocols and devices, encapsulation step by step, and a mnemonic for the order.Beginner · 10 minBeginner · 10 min
  3. 03The TCP/IP ModelThe TCP/IP model's four layers and the protocols at each, how they map onto the seven OSI layers, and the OSI vs TCP/IP differences interviewers ask about.Beginner · 9 minBeginner · 9 min
  4. 04IP Addressing and SubnettingIPv4 addresses, classes A to E, private ranges, CIDR and subnet masks, fully worked subnetting and VLSM examples, supernetting, and IPv4 vs IPv6 compared.Intermediate · 13 minIntermediate · 13 min
  5. 05TCP and UDPTCP and UDP at the transport layer: ports, header fields, the three-way handshake and four-way close, sliding windows, congestion control, and TCP vs UDP.Intermediate · 14 minIntermediate · 14 min
  6. 06Domain Name System (DNS)How DNS turns names into IP addresses: the root, TLD and authoritative hierarchy, recursive and iterative lookups step by step, record types, caching and TTL.Beginner · 10 minBeginner · 10 min
  7. 07HTTP and HTTPSHow HTTP works: requests and responses, methods, status codes, headers, cookies and sessions, HTTP/1.1 vs HTTP/2 vs HTTP/3, and how HTTPS adds TLS on top.Beginner · 13 minBeginner · 13 min
  8. 08Routing and Routing ProtocolsHow routers choose paths: routing tables, longest prefix match, static vs dynamic routing, distance vector and link state worked out, and RIP vs OSPF vs BGP.Intermediate · 14 minIntermediate · 14 min
  9. 09Data Link Layer: Framing, Error Control and MACThe data link layer explained: framing and bit stuffing, parity, checksum and a worked CRC, Hamming code, Go-Back-N and Selective Repeat, ARP and CSMA/CD.Intermediate · 15 minIntermediate · 15 min
  10. 10NAT, DHCP and PortsWell-known port numbers, sockets, how NAT and PAT translate private addresses with a worked translation table, DHCP's DORA process step by step, and APIPA.Beginner · 11 minBeginner · 11 min
  11. 11What Happens When You Type a URLThe classic networking interview question answered end to end: URL parsing, caches, DNS, ARP, TCP and TLS handshakes, the HTTP request and page rendering.Intermediate · 12 minIntermediate · 12 min
  12. 12Network Security BasicsNetwork security basics: the CIA triad, symmetric vs asymmetric encryption, hashing, digital signatures and certificates, firewalls, VPNs and common attacks.Beginner · 14 minBeginner · 14 min
Start with Introduction to Computer Networks

Computer Networks Notes for Placements and Interviews

Computer networks notes for placement interviews: OSI and TCP/IP models, subnetting, TCP vs UDP, DNS, HTTP and HTTPS, routing, with worked examples.

  • Notes: 12
  • Reading time: about 2 hours
  • Cost: Free, no sign-in needed

The OSI and TCP/IP models, IP addressing and subnetting, TCP and UDP, DNS, HTTP, routing and what happens when you type a URL.

Read in this order

  1. Introduction to Computer Networks — Computer networks from the ground up: LAN, MAN and WAN, network topologies, hubs, switches and routers, circuit vs packet switching, and delays worked out.
  2. The OSI Model — The seven OSI layers from application to physical: each layer's job, PDU, protocols and devices, encapsulation step by step, and a mnemonic for the order.
  3. The TCP/IP Model — The TCP/IP model's four layers and the protocols at each, how they map onto the seven OSI layers, and the OSI vs TCP/IP differences interviewers ask about.
  4. IP Addressing and Subnetting — IPv4 addresses, classes A to E, private ranges, CIDR and subnet masks, fully worked subnetting and VLSM examples, supernetting, and IPv4 vs IPv6 compared.
  5. TCP and UDP — TCP and UDP at the transport layer: ports, header fields, the three-way handshake and four-way close, sliding windows, congestion control, and TCP vs UDP.
  6. Domain Name System (DNS) — How DNS turns names into IP addresses: the root, TLD and authoritative hierarchy, recursive and iterative lookups step by step, record types, caching and TTL.
  7. HTTP and HTTPS — How HTTP works: requests and responses, methods, status codes, headers, cookies and sessions, HTTP/1.1 vs HTTP/2 vs HTTP/3, and how HTTPS adds TLS on top.
  8. Routing and Routing Protocols — How routers choose paths: routing tables, longest prefix match, static vs dynamic routing, distance vector and link state worked out, and RIP vs OSPF vs BGP.
  9. Data Link Layer: Framing, Error Control and MAC — The data link layer explained: framing and bit stuffing, parity, checksum and a worked CRC, Hamming code, Go-Back-N and Selective Repeat, ARP and CSMA/CD.
  10. NAT, DHCP and Ports — Well-known port numbers, sockets, how NAT and PAT translate private addresses with a worked translation table, DHCP's DORA process step by step, and APIPA.
  11. What Happens When You Type a URL — The classic networking interview question answered end to end: URL parsing, caches, DNS, ARP, TCP and TLS handshakes, the HTTP request and page rendering.
  12. Network Security Basics — Network security basics: the CIA triad, symmetric vs asymmetric encryption, hashing, digital signatures and certificates, firewalls, VPNs and common attacks.

Test yourself

Other subjects