The Open Systems Interconnection (OSI) model is a seven-layer map of how network communication is organised, and the retired F5 fundamentals exam asked for exactly the practical half of it: given an artifact, name the layer. That skill survives every curriculum change because it is how engineers give each other addresses inside a problem.

Where the seven layers come from

The model is a standard, not folklore. ISO publishes it as ISO/IEC 7498-1:1994, the Basic Reference Model, which "was last reviewed and confirmed in 2000. Therefore this version remains current" (ISO); the ITU-T publishes it as Recommendation X.200, approved in July 1994 and in force (ITU-T). It was written as the architecture of a complete protocol suite that governments and carriers backed and the internet outran, a story told in the protocol wars. The protocols mostly lost; the map stayed, because it gives every function a floor to stand on.

The seven floors, with their artifacts

Layer 1, physical: cables, fibre, radio, the electrical or optical signal itself, and its failure modes, a damaged cable or a duplex mismatch. Layer 2, data link: Ethernet frames and Media Access Control (MAC) addresses; switches live here. Layer 3, network: Internet Protocol (IP) addresses and routing; routers live here. Layer 4, transport: the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP), and the port numbers that name conversations. Layers 5 and 6, session and presentation: rarely named in practice; encryption and encoding concerns get discussed here when they are discussed at all. Layer 7, application: the Hypertext Transfer Protocol (HTTP), the Domain Name System (DNS), and everything users actually asked for.

The exam-style mapping is a reflex worth drilling: , Layer 2. IP address, Layer 3. TCP or UDP port, Layer 4. The application protocol, Layer 7. A virtual server listening on an address and port spans 3 and 4; a proxy making decisions on HTTP headers is working at 7.

The internet's own layering: four layers, not seven

The protocols that won were never designed against the seven floors. 1122, the host requirements of October 1989, lists four: application, transport, internet and link (RFC 1122, section 1.1.3). Its link layer is the protocol a host must implement "to communicate on its directly-connected network", and of the top it says: "The application layer of the Internet suite essentially combines the functions of the top two layers", presentation and application, "of the OSI reference model". So when an engineer says "Layer 7", they mean the internet's application layer; when they say "Layer 2", they mean whatever link the host is on; and layers 5 and 6 have no protocol of their own in the internet suite to point at.

OSI layerInternet layer (RFC 1122)What you capture
7, 6, 5ApplicationHTTP, DNS, TLS records
4TransportTCP segments, UDP datagrams
3InternetIP datagrams,
2Link frames,
1(not a layer of the suite)signals, light, radio

Encapsulation: why the layers stack

Each layer wraps the one above: application data goes inside a TCP segment, the segment inside an IP datagram, the datagram inside an Ethernet frame. RFC 1122 even gives each wrapper its name: a segment is "a TCP header followed by application data"; an IP datagram "consists of an IP header followed by transport layer data"; a packet is "the unit of data passed across the interface between the internet layer and the link layer"; and a frame "consists of a link-layer header followed by a packet" (RFC 1122, section 1.3.3). Reading a packet capture is peeling those wrappers, outermost first, which is why capture tools print frame, then IP, then TCP, then payload, in that order. When a device rewrites one layer and leaves the others alone (a router swapping Layer 2 headers hop by hop while the Layer 3 addresses ride through), the model is what makes that behaviour predictable rather than mysterious.

One request, floor by floor

Watch one request touch the floors in order. A browser asked for https://example.com first needs an address, so it sends a Domain Name System query, a Layer 7 message that travels in UDP to the server's port: "Messages sent using UDP user server port 53 (decimal)" (RFC 1035). If the resolver sits on another network, the query must go through the default gateway, so before it leaves, the host resolves the gateway's MAC address with ARP, a Layer 2 exchange. The answer gives the browser an IP address, Layer 3, and the scheme gives it a port: for https, "TCP port 443 (the reserved port for HTTP over TLS) is the default" (RFC 9110), Layer 4. Then come a TCP handshake, a TLS handshake and the HTTP request itself, three conversations stacked on one connection.

When the page does not load, each step is a question with a floor attached. No ARP entry for the gateway is a Layer 2 answer; a DNS timeout is a Layer 7 symptom that may have a Layer 3 cause; a connection reset right after the TLS hello sits somewhere between 4 and 7. Asking which step failed is asking which floor to stand on.

Where the model bends

The model is a vocabulary, not a law, and plenty of technology refuses to sit still on one floor. A load balancer terminating Transport Layer Security (TLS) and re-encrypting touches 4 through 7 in one motion. Tunnels put entire stacks inside other stacks: , in RFC 7348's own title, is "A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks", carrying Ethernet frames inside UDP to port 4789 (RFC 7348), so a capture shows Layer 2 above Layer 4. The internet's architects have been blunter still: RFC 3439 has a section titled "Layering Considered Harmful", because strict layering means "the optimization of each layer has to be done separately" (RFC 3439, December 2002). None of that makes the map useless; it means the floors describe functions, and one box can perform several.

The habit that pays

Use the model the way working engineers do: "the problem is below Layer 3" rules out applications and DNS in one sentence, and "it fails only at Layer 7" tells the network team they are probably off the hook. When troubleshooting, name the highest layer you have proven good and the lowest layer you have proven bad; the fault lives between them. Link light and interface counters clear Layer 1; ARP resolution clears 2; a reply to ping clears 3; a completed TCP handshake clears 4; after that, the conversation belongs to the application. That one habit converts the seven layers from an exam answer into a triage instrument.

Sources