InterviewStack.io LogoInterviewStack.io

Networking Fundamentals Questions

Foundational knowledge of how networks operate and how to reason about network behavior. Core concepts include the TCP IP model and common protocols such as IP, TCP, UDP, DNS, and DHCP; subnetting and address allocation; routing and switching fundamentals; VLANs and layer two segmentation; NAT and private addressing; firewall and access control behavior; VPNs and tunneling; ports and application layer protocols. Candidates should also be able to apply these fundamentals to troubleshoot connectivity and performance issues at a conceptual level, explain the TCP three way handshake, congestion and retransmission causes, and reason about where problems occur in the stack.

MediumTechnical
51 practiced
Describe a practical network segmentation strategy for a three-tier cloud application (web, app, db). Include how you'd use VLANs/subnets, cloud security groups or NSGs, and host-based controls for microsegmentation. Explain how segmentation influences east-west traffic monitoring and incident response.
HardTechnical
65 practiced
Explain BGP fundamentals relevant to connecting to a cloud provider or colocation: session establishment, TCP requirements, route advertisement basics, path selection factors (local-pref, AS-PATH, MED), and safeguards to prevent accidental route advertisement or leaks. How would you troubleshoot a BGP session that repeatedly flaps?
MediumTechnical
98 practiced
Explain the conceptual differences between distance-vector and link-state routing protocols. Describe at a high-level how OSPF advertises topology (areas, LSAs) and how the shortest-path-first algorithm builds routes. In which small-to-medium enterprise scenario would you prefer OSPF over static routing and why?
HardTechnical
48 practiced
Implement a Python 3 command-line tool named alloc_subnets that accepts a base IPv4 CIDR (for example, 10.0.0.0/16) and a list of required host counts (for example, 500,200,50) and outputs non-overlapping CIDR allocations that satisfy each request with minimal waste. The program should allocate larger requests first and report an error if the space is insufficient. Provide code, explain algorithmic complexity, and include at least two small unit tests.
MediumTechnical
58 practiced
You are given a 10.0.0.0/22 block and need to allocate subnets for services requiring approximately 300 hosts (app-tier), 120 hosts (db-tier), 30 hosts (infra), and 8 hosts (dmz). Propose CIDR allocations for each service with minimal wasted address space and show the resulting CIDR ranges for each subnet.

Unlock Full Question Bank

Get access to hundreds of Networking Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.