{}DSA Atlas

Computer Networks

OSI and TCP/IP models, IP addressing and subnetting, routing, NAT, TCP vs UDP vs QUIC, congestion control, DNS, HTTP/1.1/2/3, caching and cookies, TLS/HTTPS and PKI, REST over HTTP, WebSockets, SSE, long polling, MQTT, gRPC, WebRTC, CDNs, load balancers, proxies and network security.

9 chapters64 interview questionsPractice this track’s questions →

Networking questions test whether you understand what actually happens between two machines: why a request takes 200 ms, why a connection resets, why WebSockets need a load balancer setting, why HTTPS is safe. They're asked directly ("TCP vs UDP", "what happens when you type a URL") and they underpin every system design answer.

Chapters

  1. Network models — OSI vs TCP/IP, encapsulation, what lives at each layer.
  2. IP, addressing & routing — IPv4/IPv6, CIDR and subnetting worked, ARP, DHCP, NAT, routing, BGP, ICMP.
  3. Transport: TCP, UDP & QUIC — handshakes, reliability, flow and congestion control, TIME_WAIT, head-of-line blocking.
  4. DNS — resolution, record types, caching and TTLs, DNS-based load balancing, anycast.
  5. HTTP in depth — methods, status codes, headers, caching, cookies, CORS, HTTP/1.1 vs 2 vs 3.
  6. TLS & HTTPS — symmetric/asymmetric crypto, certificates and PKI, the TLS 1.3 handshake, mTLS, HSTS.
  7. Real-time communication — polling, long polling, SSE, WebSockets, MQTT, gRPC streaming, webhooks, WebRTC.
  8. The request journey: proxies, load balancers & CDNs — "what happens when you type a URL", L4 vs L7, reverse proxies, CDNs.
  9. Network security — common attacks (DDoS, MITM, spoofing), firewalls, VPNs, zero trust.

Chapters

In recommended order
Why layering exists, the seven OSI layers and the four/five TCP/IP layers with protocols, devices and PDUs at each, encapsulation and decapsulation, ports and sockets, and how to use the model to debug problems.
5 Q
IPv4 and IPv6 addressing, CIDR and subnetting worked step by step (including VLSM), private ranges, ARP, DHCP, NAT/PAT, longest-prefix-match routing, OSPF vs BGP, ICMP/ping/traceroute, MTU and fragmentation, and cloud VPC networking.
8 Q
TCP vs UDP, the three-way handshake and four-way teardown, TCP states and TIME_WAIT, sequence numbers and retransmission, flow control and the bandwidth-delay product, congestion control (slow start, AIMD, CUBIC, BBR), Nagle and delayed ACKs, head-of-line blocking, and why QUIC exists.
9 Q
How a name becomes an IP address — stub, recursive and authoritative resolvers, the root/TLD hierarchy, record types, TTLs and caching, DNS over UDP/TCP/HTTPS, DNS-based load balancing and failover, GeoDNS, anycast, and DNS security.
6 Q
Request/response anatomy, methods with safety and idempotency, the status codes that matter, important headers, HTTP caching (Cache-Control, ETag, conditional requests), cookies and their security flags, CORS and preflights, content negotiation and compression, and HTTP/1.1 vs HTTP/2 vs HTTP/3.
8 Q
The cryptography behind HTTPS (symmetric, asymmetric, hashes, MACs, signatures, key exchange), certificates and chains of trust, the TLS 1.2 and 1.3 handshakes, forward secrecy, session resumption and 0-RTT, SNI and ECH, mTLS, certificate pinning, HSTS, and how TLS terminates at load balancers.
8 Q
Short polling, long polling, Server-Sent Events, WebSockets (handshake, framing, scaling), MQTT (QoS levels, retained messages, last will), gRPC and its four streaming modes, webhooks, and WebRTC — with a decision table and scaling patterns for millions of connections.
7 Q
What happens when you type a URL, end to end — forward vs reverse proxies, API gateways, L4 vs L7 load balancing, balancing algorithms, health checks, sticky sessions, global load balancing, and how CDNs cache and accelerate content.
7 Q
The CIA triad, common network attacks (DDoS, MITM, spoofing, DNS attacks, replay), defences (firewalls, security groups, WAF, IDS/IPS, VPNs, bastions), network segmentation, and zero-trust architecture.
6 Q