PrepPilotPractise free

Networking interview questions

OSI layers, subnets, DNS, TCP/UDP, firewalls

19 questions · 10.0.0.0/8 · updated November 2026

Practise these as flashcards. One or two lines each; the ones you miss come back first.

Start free

Core questions

TCP vs UDP?

TCP is connection-based, ordered and retransmits lost packets: HTTP, SSH, databases. UDP is fire-and-forget with less overhead: DNS, NTP, video and voice.

What happens when you type a URL into a browser?

The browser resolves the name through DNS, opens a TCP connection, does a TLS handshake for HTTPS, and sends the HTTP request. It usually hits a load balancer, which forwards to a backend server. The response comes back and the browser renders it.

What is a default gateway?

The router a machine sends traffic to when the destination isn't on its own subnet. A wrong gateway means you can reach local machines but nothing beyond.

Name common ports.

22 SSH, 53 DNS, 80 HTTP, 443 HTTPS, 3389 RDP, 389/636 LDAP/LDAPS, 445 SMB, 1433 SQL Server, 3306 MySQL, 5432 PostgreSQL, 6443 Kubernetes API.

How many usable hosts in a /26?

64 addresses, 62 usable (minus network and broadcast).

Explain the TCP three-way handshake.

Client sends SYN, server answers SYN-ACK, client sends ACK; the connection is established. If the SYN gets no answer, something dropped it (timeout). If it gets a RST, the host was reached but nothing is listening or it was rejected (refused).

What does ARP do?

Finds the MAC address for an IP on the local subnet so the frame can be delivered. For remote destinations the host ARPs for its default gateway. ip neigh or arp -a shows the cache.

Forward proxy vs reverse proxy?

A forward proxy acts for clients going out (corporate web proxy, filtering, caching). A reverse proxy acts for servers, receiving incoming traffic and passing it to backends (Nginx, F5, App Gateway).

Intermediate questions

What is a VLAN?

A logical network segment on a switch. Devices in different VLANs need a router or Layer 3 switch to talk. Trunk ports carry several VLANs using 802.1Q tags.

What is NAT?

Network Address Translation rewrites addresses at the edge. Source NAT lets private hosts reach the internet through one public IP. Destination NAT (port forwarding) sends inbound traffic to an internal server.

Ping works but the app port times out. What does that tell you?

The network path is fine. Something is blocking or not listening on that port: a firewall or security group, or the app isn't running or is bound to localhost. Check with nc -zv from the client and ss -tlnp on the server.

What is MTU and why does it matter?

The largest packet size, usually 1500 bytes. A mismatch, common over VPNs and tunnels, makes small requests work while large transfers hang. Test with ping -M do -s 1472 host.

What is split-horizon DNS?

See the answer in the app, free

An app works by IP but not by hostname. What's wrong?

See the answer in the app, free

Lots of connections stuck in CLOSE_WAIT. What does it mean?

See the answer in the app, free

A server can't reach an external API but your laptop can. Likely causes?

See the answer in the app, free

What is SNI and why does it matter?

See the answer in the app, free

Senior questions

You changed a DNS record and half the users still reach the old IP. Why, and how do you avoid it?

See the answer in the app, free

Explain asymmetric routing and why firewalls hate it.

See the answer in the app, free

More Infrastructure Engineering topics