What is TCP vs UDP?
TCP: reliable, connection-oriented, ordered delivery, error checking, slower (web, email). UDP: unreliable, connectionless, faster, no guarantees (streaming, gaming, DNS).
What is DNS (Domain Name System)?
DNS translates human-readable domain names to IP addresses. Hierarchical distributed system with caching at multiple levels. Critical for internet routing and load distribution.
What is HTTP/2 vs HTTP/1.1?
HTTP/2: binary protocol, multiplexing (multiple requests per connection), header compression, server push. HTTP/1.1: text-based, one request per connection. HTTP/2 is faster and more efficient.
What is WebSocket?
WebSocket provides full-duplex communication over a single TCP connection. Unlike HTTP request-response, it enables real-time bidirectional data flow. Used for chat, live updates, gaming.
What is a proxy server?
A proxy acts as intermediary between clients and servers. Forward proxy serves clients (anonymity, caching). Reverse proxy serves servers (load balancing, security). Can filter and transform requests.
What is NAT (Network Address Translation)?
NAT maps private IP addresses to public ones, allowing multiple devices to share one public IP. Conserves IPv4 addresses and adds security by hiding internal network structure.
What is latency vs bandwidth?
Latency: time for data to travel from source to destination (milliseconds). Bandwidth: amount of data that can be transmitted per time unit (Mbps/Gbps). Both affect network performance.
What is network partitioning?
Network partition occurs when network failures split a distributed system into isolated groups that can’t communicate. Systems must handle partitions gracefully per CAP theorem.
What is connection pooling?
Connection pooling maintains reusable connections instead of creating new ones per request. Reduces overhead of TCP handshakes and connection establishment. Used for databases and HTTP clients.
What is anycast routing?
Anycast routes requests to the nearest/best destination from a group sharing the same IP address. Used by CDNs and DNS for performance and redundancy.