Back to sections

Networking Interview Questions & Answers

A sample of real Networking interview questions with full answers and explanations - practice for interviews or certification exams.

easy

1. An accidental extra cable creates a physical loop between two unmanaged network segments, threatening a broadcast storm. Which protocol is specifically designed to detect and block this kind of loop?

DHCP
OSPF
Spanning Tree Protocol (STP)Correct
NAT

An accidental physical loop lets a broadcast circle endlessly between two paths, multiplying itself into a storm that can bring a whole segment down. Spanning Tree Protocol exists specifically to detect that kind of redundant path and deliberately block one of the looping ports before it ever becomes a problem.

medium

2. A network runs EIGRP with a redundant path available, but EIGRP isn't using it even as a backup route. Per EIGRP's DUAL algorithm, what's the likely reason?

EIGRP only ever supports a single path with no backups at all
The administrative distance of EIGRP is too high compared to a static route
The alternate path doesn't satisfy the feasibility condition - its reported distance isn't lower than the current successor's feasible distanceCorrect
The redundant path uses a different Layer 2 medium, which EIGRP does not support

EIGRP's DUAL algorithm won't just accept any alternate path as a usable backup, it specifically requires that path's reported distance to be strictly better than the current best path's own feasible distance. That rule is what guarantees backups are always loop-free, but it also means a redundant physical path can exist and still not qualify as a usable backup route.

hard

3. A design needs two gateway routers to both actively forward traffic simultaneously for load sharing (not just active/standby failover). Which protocol is the correct choice over plain HSRP?

OSPF equal-cost multi-path on the access switches
VRRP, configured identically to HSRP
STP with both ports set to forwarding
GLBP (Gateway Load Balancing Protocol)Correct

HSRP and VRRP both work the same fundamental way: only ONE router in the group is actively forwarding traffic at any moment, the other is just standing by in case it fails. GLBP was built specifically to break that pattern, letting multiple routers all forward traffic simultaneously by handing different clients different virtual MAC addresses, giving you real load sharing instead of just a backup.

easy

4. Why would ping succeed but traceroute fail to a destination?

Source has no default route.
Intermediate routers drop ICMP Time Exceeded messages.Correct
DNS resolution failure.
Destination firewall blocks ICMP Echo Reply.

Ping only needs one single reply, from the final destination, to succeed. Traceroute needs a reply from EVERY router along the way to build its full picture, and if any of those routers are configured to ignore or rate-limit that specific kind of reply, traceroute shows gaps or timeouts even though the destination itself is perfectly reachable.

medium

5. During a rolling deployment behind a load balancer, engineers notice a small percentage of in-flight requests fail with connection reset errors at the exact moment old instances are terminated. Health checks were passing right up until termination. What load balancer feature is most likely missing?

Cross-zone load balancing
Sticky sessions (session affinity)
Connection draining (deregistration delay)Correct
A shorter health check interval

Connection draining, also called a deregistration delay, gives an instance being removed from the pool a grace period to finish requests already in progress before it is forcibly cut off, instead of killing its connections the instant it leaves rotation. Passing health checks only confirms an instance is currently healthy, they say nothing about how its removal is handled. A shorter health check interval would only detect an unhealthy instance faster, it wouldn't protect requests already in flight when a healthy instance is deliberately taken out of rotation.

hard

6. Two users behind two different home routers try to establish a direct peer-to-peer video call. Both NATs only allow inbound packets from an address and port a client has already sent traffic to, so a direct connection attempt from either side alone is rejected by the other's NAT. What class of technique is designed to solve this?

Configuring a static route between the two home routers
Lowering the MTU on both connections to avoid fragmentation
NAT traversal techniques like STUN and TURN, which discover public endpoints and relay traffic when a direct hole cannot be punchedCorrect
Enabling MASQUERADE on both routers

STUN lets each client discover its own public IP and port as seen from outside its NAT, which both sides can then exchange, often via a signaling server, to attempt hole punching, where both send packets simultaneously so each NAT sees outbound traffic and permits the matching return path. When NAT behavior is too restrictive for hole punching to work, such as symmetric NAT, the connection falls back to relaying all traffic through a TURN server instead. MASQUERADE is just the mechanism a NAT itself uses to rewrite outbound source addresses, it doesn't help two separate NATs punch through to each other.

easy

7. Why would ping succeed but traceroute fail to a destination?

Destination firewall blocks ICMP Echo Reply.
Source has no default route.
DNS resolution failure.
Intermediate routers drop ICMP Time Exceeded messages.Correct

Ping only needs one single reply, from the final destination, to succeed. Traceroute needs a reply from EVERY router along the way to build its full picture, and if any of those routers are configured to ignore or rate-limit that specific kind of reply, traceroute shows gaps or timeouts even though the destination itself is perfectly reachable.

medium

8. A web app makes dozens of small concurrent API calls to the same host. Over HTTP/1.1 this is slow because browsers only run a handful of TCP connections per host in parallel, so requests queue up waiting for a free connection. Which HTTP/2 feature most directly solves this?

Multiplexing, which lets many requests and responses share a single TCP connection concurrentlyCorrect
Header compression (HPACK), which reduces the size of each request
Server push, which lets the server send resources before they're requested
Mandatory TLS encryption for all HTTP/2 traffic

HTTP/2 multiplexing allows many independent request and response streams to be interleaved over ONE TCP connection at the same time, removing the need to open multiple connections, and wait for a free slot, the way HTTP/1.1 does. Header compression via HPACK is a real HTTP/2 feature too and does reduce overhead, but it addresses request size, not the connection-per-host bottleneck. Server push is also real but is about proactively sending resources, unrelated to this queuing problem.

hard

9. Voice traffic is marked correctly with DSCP EF end-to-end, but still experiences jitter whenever the link is congested. What's most likely missing?

The issue is unrelated to QoS and is purely a codec problem
Voice traffic cannot be prioritized on any shared link regardless of configuration
The DSCP value needs to be changed from EF to AF41 instead
A queuing/scheduling policy (e.g. Low Latency Queuing) actually applied on the congested egress interface to act on those markingsCorrect

Marking traffic with DSCP EF is like putting a 'priority' sticker on a package, it doesn't actually do anything by itself. Something on the congested link still has to actually READ that sticker and act on it by prioritizing that traffic in its queue, and without a queuing policy configured to do exactly that, correctly-marked traffic gets treated no differently than anything else once the link is busy.

easy

10. What is the core purpose of a subnet mask in an IP address configuration?

It encrypts traffic between two hosts
It assigns a MAC address to the interface
It distinguishes which portion of the address is the network and which is the hostCorrect
It determines the port number used for a connection

An IP address alone doesn't tell you which part identifies the network and which part identifies the specific device on it, that's exactly the job of the subnet mask. It draws the line between 'network' and 'host' within the address, which is how two devices figure out if they're on the same local network or need a router in between.

Want to practice under real conditions?

Try the full timed Networking quiz.

    Welcome to OpsQuiz!

    Real scenario-based DevOps questions, hands-on practice, and clear explanations for every answer.