Free tech learning for everyone, from basics to pro

NoteNetworking fundamentalsBeginner

The OSI model, used the way engineers really use it

In short: The OSI model splits network communication into seven layers. Its real value at work is as a troubleshooting checklist: start at the bottom and prove each layer works before moving up.

The seven layers at a glance

#LayerWhat it doesExamples you'll meet
7ApplicationServices the user's software talks toHTTP/HTTPS, DNS, SMTP, SSH
6PresentationFormatting, encoding, encryptionTLS, character encoding, compression
5SessionOpening, managing and closing conversationsSession setup and teardown, RPC
4TransportEnd-to-end delivery between applications, using portsTCP (reliable), UDP (fast, no guarantees)
3NetworkLogical addressing and routing between networksIPv4, IPv6, ICMP, routers
2Data linkDelivery on the local network using MAC addressesEthernet, Wi-Fi, VLANs, switches
1PhysicalBits on the wire or through the airCables, fibre, radio, connectors, link lights

Encapsulation in one sentence

As data goes down the stack, each layer wraps it with its own header: application data becomes a segment (layer 4), then a packet (layer 3), then a frame (layer 2), then bits (layer 1). The receiver unwraps it in reverse.

Using the model to troubleshoot

When "the network is down", work from the bottom up and don't skip a layer:

  1. Layer 1: Is the cable plugged in? Is the link light on? Is Wi-Fi connected?
  2. Layer 2: Is the port in the right VLAN? Does the switch see the device's MAC address?
  3. Layer 3: Does the device have a valid IP, mask and gateway? Can it ping the gateway?
  4. Layer 4: Is the service port open, or is a firewall blocking it?
  5. Layers 5 to 7: Does DNS resolve? Is the application itself working?

Most real problems sit in layers 1 to 3, so checking them first saves time.

The TCP/IP model

Real networks run on the TCP/IP model, which groups the same ideas into four layers: Application (OSI 5 to 7), Transport (4), Internet (3) and Link (1 and 2). Engineers still say "a layer 2 problem" or "a layer 7 firewall" because the OSI numbers are a shared language.

Frequently asked questions

What are the 7 layers of the OSI model?

From layer 1 to 7: Physical, Data Link, Network, Transport, Session, Presentation and Application.

Which OSI layer describes bus, star, ring and mesh topologies?

The Physical layer (layer 1) describes physical topology: how cables and devices are laid out and connected.

What is the difference between the OSI model and the TCP/IP model?

OSI has seven layers and is mainly used for teaching and troubleshooting. The TCP/IP model has four layers (some books use five) and describes how the internet protocols actually work.

Related guide: The OSI and TCP/IP models: layers, functions and encapsulation

Key takeaways

  • Use the layers as a bottom-up troubleshooting checklist.
  • Switches work mainly at layer 2, routers at layer 3.
  • TCP is reliable and connection-based; UDP is faster with no delivery guarantee.
  • TCP/IP is what runs; OSI is the shared vocabulary.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
FM TecHub Team
Role
Editorial team
Reviewer credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

The team writes practical, plain-English guides on networking, security and cloud.

More about the team →

Original content written by the FM TecHub Team. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown