Netowrking Flashcards

(10 cards)

1
Q

What is TCP vs UDP?

A

TCP: reliable, connection-oriented, ordered delivery, error checking, slower (web, email). UDP: unreliable, connectionless, faster, no guarantees (streaming, gaming, DNS).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is DNS (Domain Name System)?

A

DNS translates human-readable domain names to IP addresses. Hierarchical distributed system with caching at multiple levels. Critical for internet routing and load distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is HTTP/2 vs HTTP/1.1?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is WebSocket?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a proxy server?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is NAT (Network Address Translation)?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is latency vs bandwidth?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is network partitioning?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is connection pooling?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is anycast routing?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly