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.

EasyTechnical
80 practiced
What is the Protocol Data Unit (PDU) name at each of these layers: Physical, Data Link, Network, Transport, and Application? Give a short explanation of what information is added or removed at each step during encapsulation/decapsulation.
EasyTechnical
83 practiced
Explain the seven layers of the OSI model. For each layer, state: 1) its primary responsibility, 2) the typical unit of data (PDU), 3) two common protocols or technologies that operate at that layer, and 4) an example hardware device (if applicable).
HardTechnical
76 practiced
Explain how BGP (an application/protocol that runs over TCP) introduces interactions across layers. Which transport- and network-layer behaviors are critical to BGP stability, and how can TCP-level issues (e.g., retransmission storms) affect routing convergence?
MediumTechnical
77 practiced
Given a packet capture showing repeated TCP retransmissions, what transport- and network-layer fields would you inspect to diagnose whether the retransmissions are caused by packet loss, RTT variability, or a misbehaving middlebox?
MediumTechnical
111 practiced
A network device logs show high numbers of input errors and CRC errors on a link. Explain which OSI layer this indicates, potential causes (physical and configuration), and a stepwise approach to resolving the issue without causing downtime to other services.

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.