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.

HardTechnical
48 practiced

Compare TCP congestion control algorithms Reno, NewReno, Cubic, and BBR at a conceptual level: how each reacts to packet loss or ECN, and their steady-state behavior on a high-bandwidth-delay-product cloud link versus the shared public internet. For a large file transfer across a satellite link (high RTT, low but non-zero loss), which would you prefer and why?

EasyTechnical
82 practiced

Describe the four layers of the TCP/IP (Internet) model, map each to its corresponding OSI layer(s), and give one example protocol per TCP/IP layer. Explain in one or two sentences why two competing layering models exist and are both still used in practice.

MediumTechnical
66 practiced

Walk through how TCP congestion control evolves during a long-lived connection: slow start, congestion avoidance, fast retransmit, and fast recovery. State which sender-side variable changes at each stage and what event triggers the transition to the next stage.

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?

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?

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.