InterviewStack.io LogoInterviewStack.io

OSI Model and TCP IP Stack Questions

Comprehensive knowledge of the seven layer Open Systems Interconnection model, including Layer One Physical, Layer Two Data Link, Layer Three Network, Layer Four Transport, Layer Five Session, Layer Six Presentation, and Layer Seven Application. Understand the primary responsibilities and services at each layer, how data is packaged and transformed as it moves down and up the stack through encapsulation and decapsulation, and the unit of data at each stage such as bits at the physical layer, frames at the data link layer, packets at the network layer, and segments at the transport layer. Be able to identify common protocols and services that operate at each layer, for example Ethernet and link layer protocols at the data link layer, Internet Protocol at the network layer, Transmission Control Protocol and User Datagram Protocol at the transport layer, and application layer protocols such as Hypertext Transfer Protocol and Domain Name System at the application layer. Understand which hardware devices operate at which layers, such as cabling and transceivers at the physical layer, switches and bridges at the data link layer, and routers at the network layer, and how these devices affect forwarding and inspection. Know how the Open Systems Interconnection model maps to and differs from the four layer Transmission Control Protocol and Internet Protocol stack, including which functions are combined or abstracted differently, and how layering choices affect security placement, encryption strategy, performance, and troubleshooting. Be able to apply this knowledge to diagnose faults by mapping symptoms to layer specific causes and to reason about header fields, addressing and port schemes, segmentation and retransmission behavior, and cross layer interactions.

HardTechnical
71 practiced
Describe the end-to-end principle and how it relates to placing functionality in different OSI layers (e.g., encryption, retransmission, error checking). Provide examples where rigidly following end-to-end is beneficial and where placing functions in intermediate devices is justified.
EasyTechnical
78 practiced
Define what a MAC address and an IP address represent. Which OSI/TCP-IP layers do they belong to, and how are they used differently during frame vs. packet forwarding?
HardTechnical
71 practiced
Given a pcap where TCP segments have varying MSS values and several retransmissions occur when passing through an upstream firewall, how would you investigate whether Path MTU, MSS clamping, or firewall TCP reassembly is the cause? Outline specific capture points and what you'd look for.
EasyTechnical
70 practiced
You're handed a cable and asked to verify layer 1 is functioning. List at least five tests or tools you would use to validate Physical Layer connectivity and what each test detects.
HardSystem Design
66 practiced
You're designing a multi-tenant data center network. Explain how you would use OSI/TCP-IP concepts (VLANs, VRFs, ACLs, routing, NAT) to isolate tenants while allowing shared services (DNS, authentication). Provide a high-level architecture and describe which layers are used for isolation versus connectivity.

Unlock Full Question Bank

Get access to hundreds of OSI Model and TCP IP Stack interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.