Module 4 of 45 · Foundations

The OSI model and what each layer does

27 min 3 outcomes Troubleshooting walkthrough + quiz

By the end of this module you will be able to:

  • Describe what each OSI layer is responsible for in plain language
  • Link layer names to real protocols, devices, and observables (frames, routes, ports, application data)
  • Use layer responsibilities to narrow likely failure boundaries when troubleshooting

Each layer owns a responsibility, evidence, and safe test

Every row has to fill all four columns, and a layer earns its place in a diagnosis only when it can name both the evidence you capture and the safe test that produces it, which is why most investigations begin at the transport row.

If a layer has no observable evidence and no safe test, it is not helping the diagnosis.

Each layer owns a responsibility, evidence, and safe test A seven-row matrix with four columns: LAYER (L7 to L1), RESPONSIBILITY, EVIDENCE YOU CAPTURE, and SAFE TEST. Layer 4 Transport is emphasised in red because that is where most live troubleshooting starts. Each row pairs an abstract responsibility with a concrete observable and a safe diagnostic test, so a learner can move from naming the layer to running a meaningful test on it. LAYER RESPONSIBILITY EVIDENCE YOU CAPTURE SAFE TEST L7 Application HTTP, DNS, API meaning status code, payload, log line curl, dig, app log L6 Presentation encoding, TLS record cert chain, cipher, content type openssl s_client L5 Session conversation lifetime cookie, token, WebSocket frame new session vs reuse L4 Transport ports, TCP, UDP, QUIC SYN, ACK, loss, window size tcp connect + capture L3 Network IP path and routing route table, TTL, ICMP ping, traceroute, ip route L2 Data Link frame delivery, MAC table ARP, NDP, MAC table entries ip neigh, arp -a L1 Physical signal and medium link light, RSSI, cable test swap cable or port

4.1 Layer 1: Physical

Responsibility: moving raw bits (ones and zeros) between devices using electrical voltages, light pulses, or radio waves.

Everything at the is about the medium. Copper cables (Cat5e, Cat6, Cat6a) carry electrical signals. Fibre optic cables carry light.

Wi-Fi (IEEE 802.11) does the same job with radio, and the current generation is (802.11be), certified by the Wi-Fi Alliance since January 2024. Shared airtime makes radio behave unlike a cable in ways that change how you diagnose it, so the access layer gets its own module later in this stage, wifi-and-the-access-layer.

Devices: cables, connectors (RJ-45, LC, SC), hubs, repeaters, media converters (copper to fibre). A hub is a multi-port repeater: it receives a signal on one port and copies it to all other ports. No intelligence. No MAC table. Every device on a hub shares the same collision domain.

Common problems: damaged cables, loose connectors, exceeding the 100-metre limit for copper Ethernet, electromagnetic interference from power cables or fluorescent lights, and attenuation (signal weakening over distance).

How to check: look at the link light on the NIC and switch port. Try a different cable. Try a different port. For Wi-Fi, check signal strength and channel interference.

A link light proves only that two devices agree there is a working medium between them. It says nothing about which device is at the far end, and that is the question Layer 2 exists to answer.

4.2 Layer 2: Data Link

Responsibility: delivering between devices on the same local network segment using .

Switches live at the . A switch builds a MAC address table by watching the source MAC on every incoming frame. It learns which MAC is reachable through which port. When a frame arrives for a known destination MAC, the switch sends it out only that port. If the destination is unknown, it floods the frame out all ports (except the one it arrived on). This is called "learn on source, forward on destination."

VLANs (IEEE 802.1Q) let you split one physical switch into multiple logical . Devices in VLAN 10 cannot talk to devices in VLAN 20 without a router in between. The 802.1Q standard adds a 4-byte tag to the Ethernet frame, including a 12-bit VLAN ID (supporting up to 4,094 VLANs).

Spanning Tree Protocol (STP, IEEE 802.1D) prevents broadcast storms. If redundant links create a physical loop, broadcast frames circulate endlessly and can crash the network in seconds. STP blocks redundant paths and keeps them as standby failovers. Rapid STP (802.1w) converges in 1-3 seconds instead of the original 30-50 seconds.

Common problems: broadcast storms (loops), incorrect VLAN assignment, STP blocking a port unexpectedly, MAC address table overflow (in rare attack scenarios).

Every mechanism in this section, MAC learning, 802.1Q tags and STP blocking alike, stops at the edge of the broadcast domain. None of them can reach a device the switch has never heard a frame from, because that device is on a different network entirely. Getting there is Layer 3 work.

4.3 Layer 3: Network

Responsibility: addressing and routing across different networks using .

Routers live at the . A router reads the destination IP address in a packet, checks its routing table, and forwards the packet toward the next hop. The routing table contains entries like: "To reach 10.0.0.0/8, send via 192.168.1.1 through interface GigabitEthernet0/1."

Routing protocols automate route discovery. OSPF (Open Shortest Path First) runs inside a single organisation and picks routes based on link cost. (Border Gateway Protocol) runs between organisations and across the internet, choosing routes based on policy (AS path, preferences, agreements). Most enterprise networks use OSPF internally and BGP at the edge where they connect to ISPs.

ICMP (Internet Control Message Protocol) also lives here. It handles error reporting (ping uses ICMP Echo) and path discovery (traceroute uses ICMP Time Exceeded messages).

Common problems: missing or incorrect routes, misconfigured subnet masks, BGP route leaks (Pakistan/YouTube 2008, Vodafone Idea 2021), DHCP failure causing missing IP addresses.

A routing table gets a packet to the right machine and then stops caring. It has no opinion about which of the dozens of programs on that machine should receive the payload, and no way to notice that the packet never arrived at all. Both gaps are filled one layer up.

4.4 Layer 4: Transport

Responsibility: reliable (TCP) or fast (UDP) delivery between two endpoints, identified by numbers.

TCP guarantees delivery, ordering, and flow control at the . Before any data flows, TCP runs a : the client sends SYN, the server replies SYN-ACK, and the client confirms with ACK. On a 100ms link, that handshake alone costs 100ms before a single byte of data moves. TCP is used by HTTP, SSH, SMTP, FTP, and database connections.

UDP skips the handshake and guarantees nothing. If a packet is lost, UDP does not retransmit it. This makes it faster and lighter, which is exactly what you want for DNS lookups (a lost query is simply retried), live video (a dropped frame is better than a delayed one), online gaming, and VoIP calls.

(RFC 9000) is a modern alternative built on UDP. It combines connection setup and TLS encryption in a single round trip (0-RTT in the best case), and it multiplexes independent streams so a lost packet only blocks its own stream. (RFC 9114) runs on QUIC.

How much of the internet that accounts for depends entirely on who is counting and over what window, so quote the measurement rather than a round number. On 13 July 2026, Cloudflare Radar put QUIC at roughly 21 to 35 percent of traffic depending on the window and method chosen, while W3Techs recorded about 39 percent of websites advertising HTTP/3 support on the same date. Those two figures measure different things: traffic carried, and servers willing to carry it.

Common problems: port blocked by firewall, TCP connection timeouts, half-open connections, port exhaustion on busy servers.

TCP, UDP and QUIC all end in the same place: bytes handed to a program on the far host. What that program does with the bytes, and what it remembers between them, is where OSI layers 5, 6 and 7 still earn their keep as vocabulary, even though the Internet architecture collapses that work into one application layer.

4.5 Layers 5, 6, and 7: Session, Presentation, Application

As you learned in Module 3, TCP/IP exposes one Application layer above Transport. RFC 1122 explicitly maps OSI Presentation and Application into that space, while session responsibilities are usually implemented by application protocols, libraries, or transport features. The OSI definitions are still useful for understanding what kind of work is happening.

Layer 5, . Managing ongoing conversations. In practice: HTTP cookies that maintain login state across requests. WebSocket connections that stay open for real-time chat. SMB (Windows file sharing) sessions that track authentication across multiple file operations. SIP sessions that manage VoIP calls.

Layer 6, . Transforming data for the application. In practice: encryption (securing HTTPS connections). JSON and XML serialisation (structuring data for APIs). Character encoding (UTF-8 ensuring text displays correctly worldwide). Compression (gzip and Brotli reducing HTTP response sizes by 60-80%).

Layer 7, . The protocols your software actually uses. HTTP (web), DNS (name resolution), SMTP (email sending), DHCP (automatic IP assignment), SSH (secure remote access), SNMP (network monitoring). Each runs on a well-known port: HTTP on 80, HTTPS on 443, DNS on 53, SSH on 22.

HTTP itself has three live versions, and the newest one moves the boundary. HTTP/3 is specified in RFC 9114 and runs over QUIC rather than TCP, so the reliability and ordering work that HTTP/1.1 and HTTP/2 leave to the transport is done inside the transport instead. The application-layer protocol looks the same to a developer: the same methods, headers and status codes.

Devices at L7: Layer 7 load balancers route traffic based on HTTP content (URLs, headers, cookies). Web Application Firewalls (WAFs) inspect HTTP requests for attacks like SQL injection. Next-generation firewalls add L7 deep packet inspection to traditional L3/L4 stateful filtering.

That completes the tour: seven responsibilities, and for each one a device that performs it and a failure that looks like it. The value of holding all seven in your head is not recall, it is the order in which you check them.

Each OSI layer names a device, a failure and the check that finds it

The arrows between the seven OSI rows say what each layer needs from the one below, so the checks are ordered rather than optional: reading the certificate proves nothing while the port is blocked, and neither proves anything while the link light is dark.

Every OSI layer names a device that implements it, one failure you actually meet there and one check that produces evidence, which is why the module works from layer 1 upward (module 4, sections 4.1 to 4.6).

Each OSI layer names a device, a failure and the check that finds it A seven row stack read downward from layer 7 to layer 1. A header names four columns: OSI layer, device or component, the failure you meet, and the check that finds it. Application pairs a layer 7 load balancer with a name that will not resolve. Presentation pairs TLS libraries with a handshake that never completes. Session pairs cookies with lost login state. Transport pairs ports and the firewall with a blocked port. Network pairs the router with a missing route. Data link pairs the switch with a wrong VLAN. Physical pairs the cable with interference. The tinted right column carries the check. Labelled arrows between rows say what each layer needs from the one below. OSI layer Device or component The failure you meet The check that finds it LAYER 7 Application Layer 7 load balancer,WAF The name will notresolve, though the IPanswers Run nslookup against tworesolvers LAYER 6 Presentation TLS libraries, gzip,UTF-8 The TLS handshake nevercompletes Read the certificate theserver sends LAYER 5 Session Cookies, WebSocket,SMB Login state is lostbetween requests Clear cookies, repeat therequest LAYER 4 Transport Ports and the firewall The port is blocked, soit times out telnet server 443, orTest-NetConnection LAYER 3 Network Router No route, or a 169.254address Ping the gateway, thentraceroute LAYER 2 Data link Switch with a MACtable Wrong VLAN, or STP blocksthe port Run show macaddress-table LAYER 1 Physical Cable, connector, hub Damaged cable orinterference Check the link light,swap the cable the bytes must be decoded before the app reads them decoding needs the conversation still open a conversation needs a delivered byte stream delivery needs the packet to reach the host routing needs the frame to cross the segment frames need a working medium underneath Start at the bottom and work up Most problems sit at layers 1 to 3, and the tinted column is the one that produces evidence.

4.6 Putting it together: troubleshooting by layer

When something breaks, work from the bottom up. Each layer depends on the one below it, so if Layer 2 is broken, everything above it fails too. Checking from the bottom catches the most common problems first.

L1: Is the link light on? Is the cable plugged in? For Wi-Fi, is there signal? Try a different cable or port.

L2: Does the NIC show UP status? Is the switch port in the correct VLAN? Is STP blocking it? Run show mac address-table on the switch.

L3: Does the device have a valid IP address (not 169.254.x.x)? Can you ping the default gateway? Can you ping the destination by IP? Run traceroute to find where packets stop.

L4: Is the destination port open? Try telnet server 443 or Test-NetConnection -Port 443. Check firewalls (both network and host-based).

L5-7: Is DNS resolving correctly? Is TLS completing? Check the certificate. Clear browser cache. Check the application logs for HTTP 500 errors.

Most network problems live at Layers 1 through 3. If the lower layers check out, the problem is usually a firewall rule, a DNS misconfiguration, or an application error.

Common misconception

Always start troubleshooting at the layer where the user reports the problem.

Users report symptoms, not root causes. 'The website is down' sounds like Layer 7, but the root cause might be a cable fault (L1), a VLAN misconfiguration (L2), or a routing problem (L3). Starting at the bottom catches the most common causes first and avoids chasing application-level ghosts.

4.7 Check your understanding

A switch receives a frame with a destination MAC address it has never seen before. What does it do?

A user has an IP address of 169.254.12.34. What does this tell you?

You can ping a web server by IP address but not by hostname. Which layer is the problem at?

What is the main difference between a hub and a switch?

Core distinctions

  • Layer 1 (Physical) handles bits on the wire. Layer 2 (Data Link) handles frames on the local segment. Layer 3 (Network) handles packets across networks. Layer 4 (Transport) handles reliable or fast delivery between endpoints.
  • Layers 5-7 (Session, Presentation, Application) describe conversation state, data formatting, and application protocols. TCP/IP exposes one Application layer above Transport rather than separate Session and Presentation layers.
  • When troubleshooting, start at Layer 1 and work up. Each layer depends on the one below it. Most problems live at Layers 1 through 3.
  • Know which devices operate where: hubs (L1), switches (L2), routers (L3), firewalls (L3/L4/L7), load balancers (L4 or L7).

Standards and sources cited in this module

  1. IEEE 802.3-2022, Ethernet Standard

    Physical layer and MAC sub-layer specifications

    Defines Ethernet frame structure, cabling standards, and physical signalling. Referenced in Sections 4.1 and 4.2.

  2. IEEE 802.1D-2004 / 802.1w, Spanning Tree Protocol

    Bridge operation and Rapid STP

    Defines how switches prevent broadcast loops. Referenced in Section 4.2.

  3. IEEE 802.1Q-2022, VLANs

    VLAN tagging and trunk operation

    Defines 802.1Q frame tagging for VLAN segmentation. Referenced in Section 4.2.

  4. RFC 9293, Transmission Control Protocol (TCP)

    Section 3.5, Three-Way Handshake

    Defines the TCP connection establishment process. Referenced in Section 4.4.

  5. RFC 9000, QUIC: A UDP-Based Multiplexed and Secure Transport

    Full specification

    Defines QUIC as a modern transport alternative to TCP. Referenced in Section 4.4.

  6. RFC 9114, HTTP/3

    Full specification

    Defines HTTP/3 as HTTP semantics carried over QUIC. Referenced in Sections 4.4 and 4.5.

  7. Cloudflare Radar, Adoption and Usage

    HTTP version share, measured 13 July 2026

    Source for the 21 to 35 percent QUIC traffic range in Section 4.4. The figure moves with the observation window and the counting method, so it is quoted as a range with a date.

  8. W3Techs, Usage statistics of HTTP/3

    Share of websites advertising HTTP/3, measured 13 July 2026

    Source for the 39 percent of websites figure in Section 4.4. It counts servers offering HTTP/3, not traffic carried over it.

  9. CompTIA Network+ N10-009 Exam Objectives

    Domain 1.0 (Objectives 1.1, 1.2) and Domain 5.0 (Troubleshooting)

    Tests OSI layer knowledge, device classification, and layer-by-layer troubleshooting. Referenced throughout.

You now have the full seven-layer checklist. Module 5 focuses on the four identifiers that make a request possible: DNS hostnames, IP addresses, MAC addresses, and port numbers. Knowing which identifier lives at which layer stops you looking in the wrong place.

Module 4 of 45 · Foundations