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.

MediumTechnical
46 practiced

QUIC runs over UDP but provides multiplexed, reliable streams without the head-of-line blocking that a single TCP connection carrying multiple HTTP/2 streams suffers from. Explain, at a conceptual level, how QUIC achieves reliability and ordering per-stream without TCP's single shared sequence space, and why building this on UDP rather than extending TCP was the practical choice.

MediumTechnical
56 practiced

Implement a simple reliable stop-and-wait protocol over UDP in Python: a send_reliable(sock, dest, payload, timeout) and a matching receive_reliable(sock). Use a single-bit sequence number, ACK packets, retransmit-on-timeout, in-order delivery, and duplicate handling. Explain what your implementation demonstrates about which parts of TCP's reliability UDP does not give you for free.

EasyTechnical
64 practiced

Describe the UDP header fields (source port, destination port, length, checksum) and explain how the UDP checksum behaves differently across IPv4 and IPv6. If you suspected corrupted UDP payloads reaching an application in production, what would that suggest about where in the stack the corruption is happening?

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?

MediumTechnical
47 practiced

Explain TCP Selective Acknowledgment (SACK): how SACK blocks are represented in the TCP options, and how SACK lets a sender avoid retransmitting segments the receiver already has after a single loss event. What does a sender do differently once SACK is enabled versus a sender using only cumulative ACKs?

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.