InterviewStack.io LogoInterviewStack.io

Networking Fundamentals and Protocols Questions

The core model of how networks move data: the OSI and TCP/IP layers, the Internet Protocol suite, transport protocols (TCP versus UDP), encapsulation, and TCP behavior including congestion control. Covers the protocol foundations every networking and infrastructure discussion builds on, from link layer through transport. The conceptual bedrock beneath addressing, routing, and switching.

EasyTechnical
58 practiced

Sketch the TCP header at a high level and describe the fields most relevant to reliability and ordering: sequence number, acknowledgment number, the SYN/ACK/FIN/RST flags, window size, and the key TCP options (MSS, window scale, SACK-permitted, timestamps). If you were triaging a performance incident and could only look at a handful of these fields, which would you check first and why?

HardTechnical
65 practiced

Out-of-order packet delivery (not loss) is causing excessive retransmissions and application-level timeouts on some flows. Explain PAWS (Protect Against Wrapped Sequence numbers) and the reordering thresholds TCP uses to avoid mistaking reordering for loss, and describe one application-level fallback for cases where the network path itself reorders packets persistently.

MediumTechnical
54 practiced

After a TCP connection closes, the socket that initiated the close sits in TIME_WAIT for a period before the port is reusable. Explain why TIME_WAIT exists, what a half-open connection is, and how you would detect an unusually large number of sockets stuck in TIME_WAIT on a busy server. What are the trade-offs of the common mitigations for socket exhaustion caused by this?

HardTechnical
48 practiced

A public-facing TCP service is hit by a SYN flood: an attacker sends a rapid stream of SYNs (often spoofed) so the server allocates state for many half-open connections and runs out of resources for legitimate ones. Explain how SYN cookies let the server avoid this without changing the three-way handshake the legitimate client sees, and what the server gives up (in terms of TCP options) while cookies are active.

EasyTechnical
53 practiced

Explain the differences between TCP and UDP in terms of connection model, reliability, ordering, and flow/congestion control. For each protocol, name two real-world services that should use it and explain why. Then describe a scenario where you would build a custom reliable protocol on top of UDP rather than simply using TCP.

Unlock Full Question Bank

Get access to all 26 Networking Fundamentals and Protocols interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.