Home › Blog › Computer networks interview questions with clear answers

Computer networks interview questions with clear answers

Computer networks interviews test whether you understand how data moves across the internet: the layered models, TCP versus UDP, connection setup, DNS resolution, HTTP and TLS, IP addressing and subnets, and the devices that route traffic. The classic question — what happens when you type a URL into a browser — ties all of it together, and a clear step-by-step answer to it is the single best preparation for this topic.

Fifteen common networking interview questions

  1. Explain the OSI model and the TCP/IP model.
  2. TCP versus UDP — when would you use each?
  3. Describe the TCP three-way handshake.
  4. How does TCP provide reliability and flow control?
  5. How does DNS resolution work?
  6. What happens when you type a URL into a browser?
  7. HTTP versus HTTPS — what does TLS add?
  8. What are common HTTP methods and status codes?
  9. IPv4 versus IPv6?
  10. What is subnetting, and what does /24 mean?
  11. What do NAT and DHCP do?
  12. Router versus switch versus hub?
  13. What is ARP?
  14. What is a load balancer, and at which layers can it work?
  15. What is latency versus bandwidth?

Models and transport

What happens when you type a URL

  1. The browser parses the URL and checks its caches.
  2. DNS resolves the domain: browser and OS caches, then a recursive resolver queries root, top-level-domain and authoritative servers.
  3. The browser opens a TCP connection to the IP address (or QUIC over UDP for HTTP/3).
  4. A TLS handshake authenticates the server's certificate and agrees encryption keys.
  5. The browser sends an HTTP request; the server (often behind a load balancer and CDN) responds.
  6. The browser parses HTML, fetches CSS, JavaScript and images, builds the page and renders it.

Addressing and devices

TermMeaning
IPv4 / IPv632-bit addresses (about 4.3 billion) / 128-bit addresses, effectively unlimited
/24 subnetFirst 24 bits are the network; 256 addresses, 254 usable hosts
NATMaps private addresses to a public one, letting many devices share an IP
DHCPAssigns IP addresses and network settings automatically
ARPFinds the MAC address for an IP address on the local network
Switch / routerForwards frames within a network by MAC / routes packets between networks by IP

HTTP, TLS and load balancing

HTTPS is HTTP over TLS, which provides encryption, integrity and server authentication via certificates. Know GET, POST, PUT, PATCH and DELETE and the status code families: 2xx success, 3xx redirection, 4xx client error, 5xx server error. Load balancers work at layer 4 (routing TCP or UDP connections by IP and port, fast) or layer 7 (routing HTTP requests by path, headers or cookies, more flexible). See REST API interview questions.

Latency and bandwidth

Latency is the time for data to travel from one point to another; bandwidth is how much data can move per second. A satellite link can have high bandwidth and terrible latency. For web performance, latency usually dominates because pages require many round trips — which is why CDNs, connection reuse and fewer requests help more than raw bandwidth.

Practising

Answer these out loud, in two minutes or less each, and expect a follow-up on every claim. A free AI interview assistant such as CoPilot Interview can run networking questions as a mock interview built from your résumé and score each answer. Rehearse the URL walkthrough until you can do it in two minutes and then zoom into any step. Network engineers should also see network engineer interview questions.

Disclosure: CoPilot Interview is our product, so weigh what we say about it accordingly. Everything else on this page applies whichever tool you use, or none.

Frequently asked questions

What is the difference between TCP and UDP?

TCP is connection-oriented with reliable, ordered delivery, retransmission and congestion control. UDP is connectionless with no delivery guarantees and lower overhead, suited to real-time traffic.

What happens when you type a URL into a browser?

The browser checks caches, resolves the domain via DNS, opens a TCP or QUIC connection, performs a TLS handshake, sends an HTTP request, receives the response and renders the page while fetching its resources.

What is the TCP three-way handshake?

The client sends SYN, the server replies SYN-ACK, and the client sends ACK, establishing a connection with agreed sequence numbers.

What does a /24 subnet mean?

The first 24 bits of the address identify the network, leaving 8 bits for hosts: 256 addresses, of which 254 are usable.

Practise on real interview questions

Run 145 real interview questions across 10 tracks, answer out loud and see a structured answer to compare with yours. Free, no signup.

Try a practice question