Networking Fundamentals¶
OSI Model¶
TCP/IP¶
TCP (Transmission Control Protocol)¶
TCP Three-Way Handshake¶
TCP Connection Termination¶
TCP vs UDP¶
HTTP/1.1 vs HTTP/2 vs HTTP/3¶
HTTP/2 Multiplexing¶
TLS/SSL¶
TLS Handshake¶
TLS 1.3 (Faster)¶
DNS (Domain Name System)¶
DNS Resolution Process¶
Load Balancing¶
Load Balancing Algorithms¶
Layer 4 vs Layer 7 Load Balancing¶
WebSockets¶
Server-Sent Events (SSE)¶
CDN (Content Delivery Network)¶
Connection Pooling¶
Common Interview Questions¶
- TCP vs UDP?
- TCP: Reliable, ordered, connection-based
-
UDP: Fast, no guarantee, connectionless
-
What happens when you type URL in browser?
- DNS resolution → TCP handshake → TLS handshake
-
HTTP request → Server processing → Response rendering
-
HTTP/2 vs HTTP/1.1?
- HTTP/2: Binary, multiplexing, header compression
-
Single connection for multiple requests
-
How does HTTPS work?
- TLS handshake establishes encrypted channel
- Certificate verification, key exchange
-
Symmetric encryption for data
-
Layer 4 vs Layer 7 load balancing?
- L4: TCP/IP level, faster, no content awareness
- L7: HTTP level, content-based routing, SSL termination
- *