Interview questions

Computer Network Interview Questions: 30 Troubleshooting Scenarios and Answers

May 25, 2025Updated May 28, 202621 min read
Top 30 Most Common computer network interview questions and answers pdf You Should Prepare For

30 computer network interview questions built around real troubleshooting scenarios — from ping, traceroute, and nslookup to packet flow, DNS, TLS, routing.

Imagine you're sitting across from an interviewer who says, "A user can ping the server but the website won't load — walk me through how you'd diagnose that." Most candidates freeze not because they don't know networking, but because they've been preparing definitions instead of decision trees. Computer network interview questions at the entry level are almost never asking you to recite a textbook. They're watching whether you can isolate a failure in real time, out loud, without guessing at the wrong layer.

This guide is built around that pressure. Each section moves from symptom to diagnosis, covering the tools, the packet flow, and the follow-up chains that interviewers actually use. If you've been studying OSI layers and TCP handshakes in isolation, this is where those pieces connect into something you can actually say under pressure.

Start with the Failure, Not the Textbook Answer

The best computer network interview questions aren't hard because the concepts are obscure. They're hard because they require you to move from abstract knowledge to a live diagnostic posture — and most candidates haven't practiced that shift.

Why Interviewers Love the Line "Ping Works But the Website Does Not Load"

This symptom is a deliberate trap with a purpose. Ping operates at the ICMP level, which means it tests Layer 3 reachability — can packets get from point A to point B? If ping succeeds, you've confirmed the IP path is intact. But a website requires DNS resolution, TCP session establishment, TLS negotiation, and an application-layer HTTP response. The interviewer is watching whether you understand that "the network works" and "the service works" are two completely different claims.

Junior candidates who answer "the server must be down" have already failed the question, because a live server that answers ping is clearly not down. The question is: which layer between IP and HTTP is broken?

What a Calm First Answer Sounds Like

A strong opening response does four things: confirms the symptom, separates the layers, names the next test, and avoids guessing before you have evidence.

Something like: "Okay — if ping is succeeding, I know Layer 3 is working and the host is reachable. My next step is to check DNS. I'd run nslookup against the domain and see if it resolves to the right IP. If that's clean, I'd try curl or a direct TCP connection on port 80 or 443 to see if the service is accepting connections. If TCP connects but the page doesn't load, I'm looking at TLS or the application itself."

That answer sounds calm because it's sequential. It doesn't jump to conclusions, and it names a command at each step. Interviewers at companies like Google and Cloudflare have described this pattern — symptom, test, narrow, next test — as the clearest signal of junior candidates who will actually be useful on-call.

The Trap Hidden Inside a Short Symptom

Here's where candidates lose points: they blame the browser or the CDN before they've tested the path. "Maybe it's a caching issue" or "the CDN might be down" are guesses that skip the network-path question entirely. The interviewer hasn't asked about caching. They've asked about the path between the client and the server.

If you jump to application-layer speculation before you've ruled out a blocked port or a firewall rule, you've shown that you don't have a structured diagnostic process — you have a list of things that can go wrong. Those are different skills, and interviewers know the difference.

Use Ping, Traceroute, and nslookup in the Right Order

When a network troubleshooting interview question starts with "nothing is working," the instinct is to run whatever command comes to mind first. That instinct is the problem. Jumping between tools without a sequence means you can't tell whether a new result is progress or noise.

Which Command to Run First When Nothing Makes Sense

The order is: ping for reachability, nslookup for name resolution, traceroute for path analysis. Ping first because it answers the most basic question — can packets reach the destination at all? If ping fails, you haven't proven whether the problem is routing, DNS, or a dead host, but you've confirmed the path is broken and you should look at the network layer before anything else.

Run nslookup second because many "website is down" complaints are actually DNS failures. The host is fine; the name just isn't resolving to the right address. Traceroute comes last because it's the most verbose and the most likely to be filtered by ICMP-blocking firewalls — you want to use it to confirm a routing problem you've already suspected, not to fish blindly.

What Each Tool Tells You That the Others Don't

Ping tells you whether a host is IP-reachable and gives you round-trip time. It does not tell you whether a service is running on that host. nslookup tells you what IP address a domain name maps to, which resolver answered, and whether the answer was authoritative. A "non-authoritative answer" just means your local resolver returned a cached result rather than querying the domain's own nameservers — it's normal, not an error, but it's worth noting if you're chasing a DNS propagation problem.

Traceroute tells you the path packets take and where latency spikes or timeouts occur. A timeout at hop 8 out of 15 means something at that router is either dropping ICMP or actively filtering — it doesn't automatically mean the path is broken, because many routers deprioritize ICMP while still forwarding TCP traffic normally.

What the Output Is Actually Trying to Warn You About

Consider this output:

The ping to google.com is clean — internet connectivity is fine. nslookup resolves the internal app to a private IP, which looks correct. But traceroute dies at hop 3. That asterisk pattern means either the router at hop 3 is dropping ICMP, or there's a routing or firewall problem beyond that point. The next move is to try a TCP connection directly to port 443 on 10.0.0.45 rather than assuming the path is broken just because traceroute stopped responding.

Diagnose DNS, Routing, and Firewall Problems from the Symptom

Network diagnostics questions at the junior level almost always come down to three suspects: DNS, routing, and firewall rules. The skill being tested is whether you can distinguish between them from the evidence rather than guessing.

When the Name Resolves But the Host Still Won't Answer

DNS success does not mean end-to-end reachability. nslookup returning the correct IP tells you the naming layer is working. It says nothing about whether packets can actually reach that IP, whether a firewall is blocking them, or whether the service is listening on the expected port.

A common scenario: nslookup returns the right IP, ping to that IP times out, but you can reach other hosts on the same subnet. That pattern points strongly to a host-based firewall on the destination — the machine is up, but it's dropping ICMP. The next step is to try a TCP connection on the service port directly. If that also fails, you've narrowed it to either a host firewall or an ACL somewhere in the path.

When the Route Breaks Halfway Across the Path

A traceroute that dies at an intermediate hop is one of the most common interview scenarios. The instinct is to declare "the network is broken at hop 6," but that's usually wrong. Many enterprise and cloud routers filter ICMP at the router itself while continuing to forward TCP traffic normally. Before you conclude the route is broken, you need to test whether TCP traffic on the actual service port makes it through.

If the service is HTTP, try `curl -v http://destination` or `telnet destination 80`. If that connects and the traceroute was just ICMP-filtered, you've avoided a false diagnosis. If TCP also fails at the same point in the path, you're likely looking at an ACL or a routing problem, and the evidence is now much stronger.

When a Firewall Is the Boring Answer That Is Still Usually Right

Firewall rules are the correct answer in a surprising number of junior-level scenarios, and candidates sometimes shy away from it because it sounds too simple. It isn't. A firewall block explains a clean ping, a successful DNS resolution, and a failed TCP connection on port 443 — all at once, without contradiction.

The way to prove it: if ping works and nslookup is clean but `curl -v https://destination` hangs at the TCP connect step, the likely cause is a firewall rule blocking port 443. You can confirm it by testing port 80 — if port 80 also hangs but port 22 (SSH) connects, you've narrowed it to specific port filtering. According to Cisco's networking documentation, this symptom pattern — ICMP allowed, TCP blocked on specific ports — is the classic signature of a stateless ACL that permits ping but denies service traffic.

Explain Packet Flow Without Sounding Like You Memorized a Diagram

Networking interview questions about packet flow are testing whether you understand the sequence of events that has to happen before any data moves, not whether you can recite a diagram from memory.

What Happens with ARP Before the First Packet Leaves

Before your machine can send a single ICMP packet or TCP SYN to another device on the same subnet, it needs to know the destination's MAC address. That's ARP — Address Resolution Protocol. Your machine broadcasts "who has IP 192.168.1.10?" and the device with that IP responds with its MAC address. Only then can the Ethernet frame be constructed and sent.

If ARP fails — because the device is offline, on a different VLAN, or behind a misconfigured switch — your machine can't send anything, even if the IP routing table looks correct. This is why a host that shows up in the routing table but doesn't answer ARP requests is effectively unreachable on a local LAN.

Why DHCP, ICMP, and TCP Show Up in the Same Troubleshooting Story

The sequence matters. A client that doesn't get a DHCP lease will have no IP address, no gateway, and no DNS server — it can't send anything useful. Once DHCP succeeds, ICMP (ping) can test basic reachability. Once reachability is confirmed, TCP can attempt a session. Each step depends on the previous one, which is why a missing DHCP lease produces symptoms that look like a routing problem to someone who skips straight to traceroute.

A broken TCP handshake — where the SYN goes out but no SYN-ACK comes back — is a different failure from a broken DHCP lease, even if both produce "can't reach the website" from the user's perspective. The diagnostic path is different in each case, and interviewers know whether you can tell them apart.

How to Talk Through the TCP Three-Way Handshake Like a Human

The clean interview version: "The client sends a SYN to the server. The server responds with a SYN-ACK, acknowledging the client's sequence number and sharing its own. The client sends an ACK to confirm, and the connection is established."

The bad version sounds like this: "SYN, SYN-ACK, ACK — that's how TCP connects." That answer is technically correct and completely useless, because it never ties back to what breaks. The good version adds: "If the SYN goes out but no SYN-ACK comes back, the server isn't listening on that port, or a firewall is dropping the packet before it arrives. If the SYN-ACK comes back but the connection resets immediately after, you're likely looking at a TLS mismatch or an application error."

According to RFC 793, the TCP handshake is designed to establish synchronized sequence numbers between both endpoints — understanding that purpose makes the failure modes obvious rather than arbitrary.

Handle Private IP Addresses, Subnetting, CIDR, and NAT Without Freezing

Computer networking questions about addressing come up in almost every junior interview, and the failure mode is almost always the same: the candidate can recite the private IP ranges but can't explain why they exist or what breaks when NAT is misconfigured.

What Private IP Ranges Are For, and What They Are Not For

Private IP addresses — 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16, as defined in RFC 1918 — are not routable on the public internet. They exist so that organizations can build internal networks without consuming public address space. Your home router assigns your laptop a 192.168.x.x address; your ISP never sees that address because your router translates it to a single public IP before traffic leaves the house.

The practical implication: a device with a private IP can't receive inbound connections from the internet unless NAT or port forwarding is explicitly configured. This is why "my server has a 10.x.x.x address and I can't connect from outside" is a NAT configuration question, not a routing question.

How to Explain Subnetting and CIDR Without Drifting into Math Fog

CIDR notation like 192.168.1.0/24 tells you two things: the network address and how many bits are fixed. /24 means the first 24 bits are the network portion, leaving 8 bits for hosts — so 254 usable addresses in that subnet. The subnet mask (255.255.255.0) encodes the same information differently.

The practical reason this matters in an interview: when a host decides whether to send traffic directly to another host or to its default gateway, it uses the subnet mask to compare addresses. If the destination is in the same subnet, it sends directly (after ARP). If not, it sends to the gateway. A misconfigured subnet mask — say, /25 instead of /24 — makes hosts think their neighbors are on a different network, and traffic goes to the gateway unnecessarily or fails entirely.

Why NAT Keeps Coming Up in Junior Interviews

NAT lets many internal devices share a single public IP address. The NAT device — usually a router or firewall — maintains a translation table mapping each internal source IP and port to the public IP and a unique port number. When the response comes back, the device reverses the translation and delivers the packet to the right internal host.

The interviewer follow-up is almost always: "What breaks if the NAT table is full or the translation rule is wrong?" The answer: new outbound connections fail silently from the user's perspective. The internal host sends a SYN, the NAT device drops it because it can't create a new entry, and the user sees a connection timeout. This is different from a firewall block — the packet never leaves the network, rather than being explicitly rejected.

Make the OSI Model and TCP/IP Model Useful Instead of Decorative

The OSI model question is one of the most common computer network interview questions, and it's also one of the most commonly answered badly — not because candidates don't know the layers, but because they treat it as a recitation exercise rather than a troubleshooting tool.

What Interviewers Really Want When They Ask for the OSI Model

The OSI model is a failure-isolation map. When a problem comes in, naming the layer narrows the suspect list immediately. "This is a Layer 2 problem" means you're looking at MAC addresses, switches, and VLANs — not routing tables or DNS. "This is a Layer 4 problem" means TCP or UDP behavior — not the physical cable or the application code.

Interviewers who ask for the OSI model are watching whether you use it as a diagnostic framework. Candidates who recite all seven layers in order and stop there have answered a different question than the one being asked.

How to Compare OSI and TCP/IP Without Sounding Rehearsed

The TCP/IP model collapses the OSI model's seven layers into four: Network Access (covering OSI Layers 1–2), Internet (Layer 3), Transport (Layer 4), and Application (Layers 5–7). In practice, the TCP/IP model maps more directly to how modern protocols actually work — TCP and IP are the backbone, and everything else sits above or below them.

The practical comparison: when you're troubleshooting, OSI gives you more granularity at the bottom layers (separating physical from data link is useful when you're deciding between a cable problem and a switch configuration problem). TCP/IP is more useful when you're thinking about protocol behavior — is this an IP routing problem or a TCP session problem?

The Easy Way to Tie HTTP, SMTP, VPN, and HTTPS Back to Layers

HTTP and SMTP live at the Application layer — they define how application data is formatted and exchanged. TCP (and UDP) live at the Transport layer — they handle session establishment and reliability. IP lives at the Network layer — it handles addressing and routing. HTTPS adds TLS between Transport and Application, which is why a TLS failure looks like a connection that establishes (TCP SYN-ACK succeeds) but immediately closes — the handshake completes at Layer 4 but fails at the security layer before any HTTP data moves. VPN protocols like IPSec operate at Layer 3, encrypting IP packets directly, while SSL VPNs operate closer to Layer 4–5.

According to Kurose and Ross's *Computer Networking: A Top-Down Approach*, one of the most widely used networking textbooks, this layered model is specifically designed to let engineers isolate where in the stack a failure originates — which is exactly what interviewers are testing.

Answer the Follow-Up Chain Without Getting Rattled

Network troubleshooting interview questions rarely stop at the first answer. The follow-up chain is where candidates who have only memorized answers fall apart, and where candidates who have actually diagnosed problems pull ahead.

The Follow-Up After Every Decent Answer Is "How Would You Prove It?"

When you say "I think it's a firewall rule," the next question is always "how would you prove that?" The answer is a test, not a theory. "I'd try to establish a TCP connection on port 443 using curl or telnet. If it times out rather than refusing, that's consistent with a firewall drop. If I get a connection refused, the port is reachable but the service isn't listening. Those are different problems."

The discipline here is: never assert a root cause without immediately naming the test that would confirm or refute it. That pattern — claim, then test — is what separates a junior candidate who sounds like an engineer from one who sounds like a student.

How to Handle "What If Ping Works But Traceroute Doesn't Help?"

This is a real scenario, not a trick question. Many enterprise environments and cloud providers filter ICMP at intermediate routers, which means traceroute will show timeouts at every hop past the first router even when the path is completely healthy. The right answer is to pivot: "If traceroute isn't giving useful output, I'd switch to a TCP-based path test — something like `curl -v` to the destination, or a port scan on the service port. I might also look at application logs on the destination to see if requests are arriving at all."

The mistake is to say "traceroute shows the path is broken" when all you've confirmed is that ICMP is being filtered. Those are not the same claim.

What to Say When the Interviewer Keeps Pushing for the Root Cause

When an interviewer keeps asking "but why?" after each answer, they're testing whether you can reason under pressure or whether you'll eventually guess. The right move is to steelman the possibilities, then narrow by evidence. "There are three likely causes: a firewall rule, a routing misconfiguration, or a service that's not listening. Ping succeeds, which rules out a routing problem between my host and the destination. TCP on port 443 times out rather than refusing, which points to a firewall drop rather than a missing service. So I'd focus on the firewall rules next, specifically looking for an ACL that permits ICMP but blocks TCP on 443."

That answer sounds disciplined because it is. Each elimination is based on evidence from a test, not intuition.

Build a Junior Candidate's Decision Tree for Incident Questions

Networking interview questions framed as incidents — "a user calls and says they can't reach the company portal" — are testing whether you have a mental triage script or whether you improvise. The candidates who do well have a clean, repeatable first-60-seconds sequence.

What to Check in the First 60 Seconds

The triage path: physical link first (is the interface up?), then IP address (does the host have a valid IP from DHCP?), then default gateway (can you ping the gateway?), then DNS (does nslookup resolve the destination?), then port reachability (can you TCP-connect to the service port?). Each step eliminates a layer. If the host has no IP address, you stop at DHCP — you don't need to run traceroute.

This sequence also works as an interview answer structure. Walking the interviewer through it step by step shows that you have a process, not just a collection of commands.

When to Escalate and What Evidence to Bring

"I don't know" is a bad escalation. "I've narrowed it to the network boundary between the branch office and the data center, and here's what I've confirmed and ruled out" is a good escalation. When you hand off a ticket, the person receiving it should be able to start where you stopped — not re-run the same tests.

A clean escalation note looks like: "Host has a valid IP and can reach the default gateway. DNS resolves the destination correctly. TCP connection to port 443 times out at the firewall hop. ICMP works but TCP on service ports doesn't. Likely ACL issue between the branch router and the data center edge."

A Clean Answer for Career Switchers Who Know the Tools But Not the Story

The gap interviewers see in career switchers isn't usually tool knowledge — it's incident thinking. Someone who has run ping and traceroute in a home lab knows the commands. What they often haven't practiced is narrating the diagnostic process as a coherent story: here's the symptom, here's what I tested, here's what each result told me, here's what I ruled out, here's what I'd check next.

The fix is to practice one full troubleshooting answer out loud — not silently in your head — until the sequence feels automatic. According to CompTIA's Network+ study resources, the most common failure mode in junior networking interviews is candidates who know the right answer but can't articulate the reasoning path that gets there. The tools are the easy part. The story is what gets you hired.

How Verve AI Can Help You Prepare for Your Network Engineer Job Interview

The structural problem this guide has been building toward is this: knowing the diagnostic sequence in your head and being able to narrate it calmly under live follow-up pressure are different skills. Most network engineering candidates prepare for the former and show up unprepared for the latter.

That's the specific gap Verve AI Interview Copilot is built to close. It listens in real-time to the conversation as it unfolds — including the follow-up questions you didn't anticipate — and surfaces relevant guidance based on what's actually being asked, not a canned script you rehearsed the night before. When an interviewer pivots from "explain the TCP handshake" to "okay, but what if the SYN-ACK never comes back and you can't run Wireshark?", Verve AI Interview Copilot is tracking that shift and helping you stay on the right diagnostic thread.

For network engineering candidates specifically, the value is in the follow-up chains. You can practice a full troubleshooting scenario — ping works, website doesn't load, traceroute is inconclusive — and Verve AI Interview Copilot will push you through the same escalating follow-ups a real interviewer would use. It runs mock interviews that mirror the actual pressure of having to narrow a failure out loud, and it stays invisible while it does, so the practice environment feels real. If you've been preparing definitions and want to convert that knowledge into something you can actually perform under pressure, Verve AI Interview Copilot is where that conversion happens.

Conclusion

You started with a broken website and a ping that works. You now have a decision tree that moves from ICMP to DNS to TCP to firewall to application layer — and a vocabulary for explaining each step without sounding like you're reading from a slide.

The pressure of that opening scenario doesn't go away in the actual interview. What changes is whether you have a sequence to fall back on when the follow-up question comes and your instinct is to guess. Practice the command order — ping, nslookup, traceroute, TCP test — until it's automatic. Then practice one full troubleshooting answer out loud, from symptom to root cause, including the part where you explain what evidence would change your conclusion. That's the answer that gets you hired.

JM

Jason Miller

Career Coach

Ace your live interviews with AI support!

Get Started For Free

Available on Mac, Windows and iPhone