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
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.

MediumTechnical
52 practiced

Explain how encapsulation works when an HTTP request travels from a browser to a web server across the internet. Describe, header by header, what gets added at the transport, network, and data-link layers, and what happens in reverse (decapsulation) at the server.

MediumTechnical
65 practiced

Explain how IPv6 fragmentation differs from IPv4: why IPv6 moved fragmentation responsibility entirely to the source host (routers along the path no longer fragment), the role of the IPv6 fragmentation extension header, and what this design implies for Path MTU Discovery and for devices in the middle of the path.

EasyTechnical
53 practiced

Explain the difference between TCP flow control and TCP congestion control: what each protects against, and one concrete mechanism each uses (the receive window versus the congestion window / slow start). Describe a real scenario where confusing the two would lead you to apply the wrong fix.

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.