Skip to content
Interview questions

Computer networks interview questions

Practise explaining networking concepts clearly, like you would in a real interview.

Categories

Showing 60 of 60

Mode

01

Networking fundamentals

Let us start with the basics. What is a computer network?

02

Networking fundamentals

What do we mean when we call something a network protocol?

03

Networking fundamentals

How would you relate the OSI model to the TCP/IP model?

04

Networking fundamentals

What happens to application data as it moves down the network stack?

05

Networking fundamentals

Can you distinguish a switch, a router, and a gateway?

06

Networking fundamentals

What is the difference between bandwidth, throughput, and latency?

07

HTTP, HTTPS, and DNS

Walk me through what happens after you enter a URL in a browser.

08

HTTP, HTTPS, and DNS

How does DNS resolve a domain name?

09

HTTP, HTTPS, and DNS

Does DNS use UDP or TCP?

10

HTTP, HTTPS, and DNS

What does HTTPS add on top of HTTP?

11

HTTP, HTTPS, and DNS

HTTP is described as stateless. How do websites still maintain a login session?

12

HTTP, HTTPS, and DNS

What makes an HTTP method safe or idempotent?

13

HTTP, HTTPS, and DNS

What are the practical differences between HTTP/1.1, HTTP/2, and HTTP/3?

14

TCP, UDP, and sockets

When would you choose UDP instead of TCP?

15

TCP, UDP, and sockets

What is a port number, and why do we need it if we already have an IP address?

16

TCP, UDP, and sockets

What exactly is a socket?

17

TCP, UDP, and sockets

Why does TCP use a three-way handshake instead of two messages?

18

TCP, UDP, and sockets

Why can closing a TCP connection require four messages?

19

TCP, UDP, and sockets

How can one web server handle thousands of clients on the same port?

20

TCP, UDP, and sockets

If an application sends two messages over TCP, will the receiver read them as two messages?

21

TCP, UDP, and sockets

What does it mean when we call UDP connectionless?

22

TCP reliability and congestion

How do sequence numbers and acknowledgments make TCP reliable?

23

TCP reliability and congestion

How does TCP decide that data should be retransmitted?

24

TCP reliability and congestion

What is the difference between flow control and congestion control?

25

TCP reliability and congestion

Why is a sliding window faster than sending one packet and waiting for its acknowledgment?

26

TCP reliability and congestion

What is TCP slow start trying to achieve?

27

TCP reliability and congestion

What is head-of-line blocking in TCP?

28

IP addressing and NAT

What are the important differences between IPv4 and IPv6?

29

IP addressing and NAT

What is the difference between a public IP address and a private IP address?

30

IP addressing and NAT

What does the /24 mean in 192.168.1.0/24?

31

IP addressing and NAT

If I split a /24 network into four equal subnets, what prefix will each subnet use?

32

IP addressing and NAT

How do NAT and PAT differ?

33

IP addressing and NAT

What happens when an IP packet is larger than the path MTU?

34

IP addressing and NAT

When does a host send a packet to its default gateway?

35

Routing and diagnostics

How does a router choose an entry from its routing table?

36

Routing and diagnostics

When would you use static routing instead of a dynamic routing protocol?

38

Routing and diagnostics

What do ping and traceroute actually tell you?

39

Routing and diagnostics

Why does an IP packet have a TTL or hop-limit field?

40

Ethernet, ARP, and DHCP

What is the difference between a frame, a packet, and a segment?

41

Ethernet, ARP, and DHCP

Why does a host need both a MAC address and an IP address?

42

Ethernet, ARP, and DHCP

How does an Ethernet switch learn where devices are connected?

43

Ethernet, ARP, and DHCP

If I send data to a host on another network, whose MAC address does ARP resolve?

44

Ethernet, ARP, and DHCP

Can you explain the DHCP DORA process?

45

Ethernet, ARP, and DHCP

How do switches and VLANs affect collision and broadcast domains?

46

Wi-Fi and transmission

Why does Wi-Fi use CSMA/CA instead of the CSMA/CD used by classic shared Ethernet?

47

Wi-Fi and transmission

How would you compare the 2.4 GHz, 5 GHz, and 6 GHz Wi-Fi bands?

48

Wi-Fi and transmission

Why is measured Wi-Fi throughput usually much lower than the advertised link rate?

49

Wi-Fi and transmission

When would fiber be a better choice than copper Ethernet?

50

Network security

What does a TLS certificate prove to a browser?

51

Network security

What is the difference between a stateful and a stateless firewall?

52

Network security

How is an IDS different from an IPS?

53

Network security

What does a VPN tunnel provide?

54

Network security

Where do symmetric encryption, asymmetric cryptography, and hashing fit in secure communication?

55

Practical scenarios

A website works by IP address but not by domain name. What would you check?

56

Practical scenarios

A website loads, but it is unusually slow. How would you narrow down the network cause?

57

Practical scenarios

You can ping a server, but the application cannot connect to it. What could be wrong?

58

Practical scenarios

Users report intermittent packet loss. How would you investigate it?

59

Practical scenarios

One device has no Internet access, but other devices on the same network work. What would you check first?

60

Practical scenarios

A service works on the server itself but cannot be reached remotely. How would you debug it?