Network security

OSI Model Postal Service Analogy: All 7 Layers Explained

Think of network data as a letter in the mail. Each OSI layer is one step in the journey — writing, translating, routing, and delivering — and each one adds its own envelope.

Cysoro Security TeamPublished · 9 min read
7 layers, 1 letter NETWORK SECURITY OSI model,by post Seven layers, one letter's journey.
Quick answer

The OSI model postal service analogy maps each of the seven network layers to a step in sending a letter: the Application layer writes the letter, Presentation translates it, Session arranges the exchange, Transport chooses reliable or fast delivery, Network routes it between cities, Data Link handles local delivery, and Physical is the road and truck that carry it.

Key takeaways

  • The OSI model splits networking into seven layers, each with one job and one envelope of information added to the data.
  • In the postal analogy, the letter is written at Layer 7, translated at Layer 6, routed at Layer 3, and carried by roads and trucks at Layer 1.
  • OSI is a teaching and troubleshooting framework, not the protocol stack the internet runs — that is TCP/IP, which maps onto the same layers.

The OSI model looks intimidating until you compare it to something you already understand: sending a letter. You write it, seal it, address it, and hand it over. Each step is handled by a different part of the postal service, and nobody needs to know how the other parts work.

What is the OSI model?

The OSI model, short for Open Systems Interconnection, is a seven-layer reference framework that describes how computers communicate over a network. It was published in 1984 by the ISO as standard ISO 7498, and by the ITU-T as X.200.

Each layer has a defined job and serves the layer above it while being served by the layer below. The model is a shared vocabulary: when engineers say a problem is at Layer 3, everyone knows it is about routing and IP addresses, not about cables or apps.

Crucially, OSI is a reference model, not the protocol stack the internet runs. Real networks run TCP/IP, which has four layers. But TCP/IP protocols map onto OSI layers, so the seven-layer picture remains the standard way to talk about networks. The OSI model reference lists the full history and the protocols at each layer.

How does the postal service analogy work?

Imagine you want to send a handwritten letter to a friend across the country. Writing it is one job, translating it is another, addressing it is a third, and carrying it is a fourth. Each job belongs to a different part of the postal service. The postal service analogy for the OSI layers maps each layer to one of these steps.

The OSI model works the same way. Data created by your app starts at the top, Layer 7, and travels down through each layer to the wire. Every layer wraps the data in its own envelope of information, a header, that the matching layer on the other side knows how to read and strip off.

At the destination, the process runs in reverse. The truck delivers the parcel, the routing label comes off, the box is opened, and finally your friend reads the note. The road never reads your letter, and your friend never thinks about barcodes.

LayerPostal equivalentJobExample protocols
7. ApplicationWriting the letterWhat the user wants to sayHTTP, DNS, SMTP, FTP
6. PresentationTranslating the letterFormat, encryption, compressionTLS, MIME, ASCII
5. SessionArranging the exchangeStart, manage, end the conversationNetBIOS, PPTP, SOCKS
4. TransportChoosing the delivery serviceReliable or fast end-to-end deliveryTCP, UDP
3. NetworkRouting between citiesBest path across networksIP, ICMP, IPsec
2. Data LinkLocal deliveryDelivery on the local networkEthernet, Wi-Fi, ARP
1. PhysicalRoads and trucksMoving raw bits over a mediumCables, radio, fiber

Remember the order with a mnemonic: "All People Seem To Need Data Processing" — Application, Presentation, Session, Transport, Network, Data Link, Physical.

Layer 7 — Application: writing the letter

The Application layer is where you write the letter. It is the interface between the user and the network, and it is the only layer most people ever see.

This layer does not include the app itself. It provides the protocols apps use to talk across a network: HTTP for the web, SMTP for email, DNS for looking up addresses, and FTP for file transfers. When you type a web address, your browser speaks HTTP at Layer 7.

In the postal analogy, this is you sitting down with pen and paper. Everything below exists to carry what you wrote here, and nothing below needs to understand the words themselves.

You can see Layer 7 in action with our free SSL checker, which inspects the TLS certificate a website presents when your browser connects over HTTPS.

Layers 6 and 5 — Presentation and Session: translating and arranging

Presentation is the translator. If your friend speaks another language, someone must convert the letter before it is delivered, and convert the reply on the way back.

Layer 6 handles data formatting, encryption, and compression. TLS, the encryption behind HTTPS, lives here: it scrambles the letter into a sealed envelope that only the recipient can open. It also handles character encoding, so a message written on one system displays correctly on another.

Session is the organizer of the conversation. Before a meaningful exchange, the two sides must agree to talk, keep track of whose turn it is, and know when the conversation ends. Layer 5 sets up, manages, and tears down these sessions.

Think of a phone call: dialing and answering is the session, and speaking the same language is the presentation. A video call that pauses, resumes, and ends cleanly is using both layers, even though modern protocols often fold them into the application itself.

Layer 4 — Transport: registered mail or postcard?

The Transport layer chooses how the delivery is handled end to end. It splits data into segments, makes sure they arrive in order, and decides whether delivery must be guaranteed or just fast.

TCP is registered mail. Every segment is tracked, acknowledged, and re-sent if lost, so the full message arrives intact and in order. That reliability is why web pages, email, and file transfers use TCP.

UDP is a postcard dropped in the mail. It is fast and light, with no tracking and no re-sending, so some pieces may never arrive. That trade-off is fine for live video, voice calls, and online games, where a late packet is worse than a missing one.

Transport also delivers data to the right application on the destination device using port numbers. Port 443 goes to the web server, port 25 to the mail server — like apartment numbers on the same street address.

Layer 3 — Network: the sorting office

The Network layer is the national sorting office. It decides the best route for each packet across many networks, using logical addresses that work anywhere in the world.

Those addresses are IP addresses. Your home has a public IP address, which is like your town and street in the postal system, and routers read it to forward each packet one hop closer to its destination. The main protocol here is IP, in versions 4 and 6.

Routers operate at this layer. A router does not care what is inside the packet; it only reads the destination address and picks the next hop. If one road is blocked, it finds another, just as a sorting office reroutes mail around a closed depot.

Curious what your public address is? Our what is my IP tool shows the address the internet sees when you connect.

The Data Link layer is the local postman. It delivers frames across one local network, using physical addresses that only matter on that network.

Those addresses are MAC addresses, burned into every network card. A switch reads them to send a frame to the right device on the local network, just as a postman reads house numbers on one street. Ethernet and Wi-Fi are the main Layer 2 technologies.

This layer also catches errors. It adds a checksum to each frame, so the receiver can tell whether the frame arrived damaged, and it manages who gets to speak on a shared medium, so two devices do not talk over each other.

The handover between layers is the key idea: Layer 3 hands a packet to Layer 2, which wraps it in a frame addressed by MAC address, and hands it down to the physical medium. The address changes at each hop, but the contents stay the same.

Layer 1 — Physical: roads and trucks

The Physical layer is the road and the truck. It moves raw bits — ones and zeros — over a physical medium, and it knows nothing about what those bits mean.

Cables, fiber, radio waves, voltage levels, and timing all live here. A cable does not know whether it carries a web page or a video call, just as a road does not know whether a truck carries letters or furniture.

Most network faults start here. A loose cable, a failing switch port, or interference on a Wi-Fi channel are Layer 1 problems, and no amount of software configuration will fix them. That is why troubleshooting starts at the bottom: check the physical connection first.

Home Wi-Fi problems are often Layer 1 or Layer 2. Our guide to how to secure your Wi-Fi covers the physical and local-network steps that keep your home network healthy.

The seven layers, top to bottom 7 Applicationwrite the letter 6 Presentationtranslate it 5 Sessionarrange the exchange 4 Transportchoose registered or postcard 3 Networkroute between cities 2 Data Linklocal delivery 1 Physicalroads and trucks
Each layer serves the one above it. Data flows down on the way out and up on the way in. Illustration by Cysoro.

How does a message travel through all seven layers?

Follow one web request. Your browser creates an HTTP request at Layer 7, TLS encrypts it at Layer 6, and a session is established at Layer 5.

TCP at Layer 4 splits the request into segments and numbers them. IP at Layer 3 adds source and destination addresses and picks a route. Ethernet at Layer 2 wraps each packet in a frame for the local network, and the Physical layer turns it into electrical signals or radio waves.

The request crosses routers, each one reading the Layer 3 address and forwarding the packet, until it reaches the web server. There, the layers unwrap in reverse: physical signals become frames, frames become packets, packets become segments, and the server finally reads the HTTP request.

This wrapping is called encapsulation. Each layer adds a header, like an envelope around an envelope, and the matching layer at the other end removes exactly its own header. If any layer is missing, the message cannot be understood.

One letter, seven envelopes Sender: wrapping down7 write the letter6 seal it in code4 choose the service3 address and route it1 hand it to the truck Receiver: unwrapping up1 truck arrives3 routing label removed4 delivery confirmed6 letter decoded7 friend reads the note network Each layer only opens its own envelope.
Encapsulation on the way out, de-encapsulation on the way in. Illustration by Cysoro.

OSI vs TCP/IP: what is the difference?

OSI has seven layers and TCP/IP has four, but they describe the same journey. TCP/IP merges the top three OSI layers into one Application layer and merges the bottom two into a Network Access layer.

The mapping is straightforward: OSI Layers 7, 6, and 5 become the TCP/IP Application layer; Layer 4 stays Transport; Layer 3 stays Internet; and Layers 2 and 1 become Network Access. HTTP, TLS, TCP, and IP all sit in the same places in both models.

TCP/IP won because it was practical and already running the internet before OSI was finished. OSI won the classroom because seven precise layers are easier to reason about than four broad ones.

For security work, the OSI vocabulary is the useful one. A firewall rule, a VPN, and a TLS certificate each live at a different layer, and naming the layer tells you what the control can and cannot see. Our DNS lookup tool shows Layer 7 in action: it resolves a name to the IP address Layer 3 will route to.

How do you use the OSI model to troubleshoot?

Work layer by layer, from the bottom up. That order saves time, because a Layer 1 fault makes every layer above it look broken.

  1. Layer 1: Is the cable plugged in? Is the Wi-Fi signal there? Is the link light on?
  2. Layer 2: Can the device see the local network? Does it have a MAC address and a local IP?
  3. Layer 3: Can it reach the router and the internet? Try pinging the gateway, then a public address.
  4. Layer 4: Can it reach the service port? A failed connection to port 443 points here, not at the cable.
  5. Layer 7: Does the app itself work? A DNS failure looks like "the internet is down" but is really a Layer 7 name problem.

This is also how security teams think about defense. Encryption at Layer 6 protects content even if lower layers are tapped, a firewall at Layers 3 and 4 blocks unwanted traffic before it reaches the app, and authentication at Layer 7 decides who gets in.

The bottom line

The postal service analogy works because it is honest: networking really is a chain of handoffs, and each handoff adds one envelope. Write the letter, translate it, choose the service, route it, deliver it locally, and carry it on the road.

Next time a connection fails, ask which layer is responsible before you restart everything. You can start at the top with a quick check of the site itself using the free SSL checker to see whether its certificate and TLS setup are healthy.

Frequently asked questions

What is the OSI model in simple terms?

The OSI model is a seven-layer framework that describes how computers communicate over a network. Each layer handles one job, from the physical cables at the bottom to the apps you use at the top, and each layer only talks to the layers directly above and below it.

What are the 7 layers of the OSI model?

From top to bottom they are Application (7), Presentation (6), Session (5), Transport (4), Network (3), Data Link (2), and Physical (1). A common mnemonic is All People Seem To Need Data Processing.

How does the postal service analogy explain the OSI model?

Sending a letter mirrors sending data: you write the letter, translate it if needed, arrange the exchange, choose a delivery service, address it for routing, hand it to local delivery, and a truck carries it. Each step is one OSI layer, and each adds its own envelope.

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

The OSI model is a seven-layer reference framework used for teaching and troubleshooting. TCP/IP is the four-layer model the internet actually runs on. TCP/IP protocols still map onto OSI layers, so the OSI vocabulary remains the standard way to describe where a problem lives.

Which OSI layer is a router?

A router works mainly at Layer 3, the Network layer, because it forwards packets between networks using IP addresses. A switch works at Layer 2, using MAC addresses for local delivery, and a firewall can operate at several layers at once.

Where does encryption happen in the OSI model?

Encryption is usually a Presentation layer (Layer 6) job, which is where TLS lives. TLS encrypts the data before it is handed down to the Transport layer, so the contents stay private while the lower layers move it.

What is encapsulation in the OSI model?

Encapsulation is the process of each layer wrapping the data from the layer above in its own header, like putting a letter in an envelope, then that envelope in a box. The receiving side strips each wrapper off in reverse order until the original message emerges.

Why learn the OSI model if the internet uses TCP/IP?

Because it gives every network problem a location. Saying a fault is at Layer 1, Layer 3, or Layer 7 tells an engineer exactly where to look, which is why the model is still taught and used in troubleshooting, exams, and design reviews.

Sources

  1. Wikipedia — OSI model
  2. DEV Community — All 7 OSI Layers Explained with Real-World Analogies
  3. EduRev — OSI Model Explained: The Complete Computer Networking Fundamentals Course
  4. MAANG.io — Foundations of the OSI Model
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the OSI reference model (ISO 7498 / ITU-T X.200) and standard layer-by-layer protocol mappings.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free