btc.tedlee.ca

Bitcoin &
the OSI Model

How Bitcoin travels across the internet — explained one layer at a time, in plain language.

⛔ Educational Use Only — Not Financial Advice

This page is for educational and entertainment purposes only. It is not financial advice, tax advice, or legal advice. Do your own research. Consult a licensed professional before making any financial decisions.

Background

What Is the OSI Model?

When you send a message over the internet — whether it is an email, a web page, or a Bitcoin transaction — that information does not travel in one big lump. It passes through seven distinct stages, each handled by a different part of your computer hardware and software.

In the 1980s, the International Organization for Standardization (ISO) created a framework to describe these seven stages. They called it the Open Systems Interconnection model — or the OSI model for short.

Think of it like sending a letter through the postal system. You write the letter (application), put it in an envelope (presentation), hand it to a postal worker (session), who puts it on a truck (transport), which drives along roads (network), to a local sorting office (data link), and finally a physical carrier delivers it to the door (physical). Each step has a job, and together they get your message where it needs to go.

💡 Why Does This Matter for Bitcoin?

Bitcoin is a software network that runs on top of the internet. Understanding the OSI model shows you exactly which parts of the internet Bitcoin depends on, and where wallets, nodes, and miners fit into the picture. It also helps explain why Bitcoin is censorship-resistant — it uses the same basic internet infrastructure as everything else.

At a Glance

The 7 Layers — Quick Reference

The table below shows all seven layers from top to bottom. Layer 7 is closest to you (the user); Layer 1 is the physical cable or wireless signal.

7
Application
What you see and use — apps, wallets, browsers
6
Presentation
Formatting and encryption of data
5
Session
Starting, managing, and ending a connection
4
Transport
Reliable delivery — makes sure nothing is lost
3
Network
Finding the route across the internet (IP addresses)
2
Data Link
Sending data between two directly connected devices
1
Physical
The actual cables, Wi-Fi signals, and hardware

The Detail

All 7 Layers Explained

Each layer below shows the standard technical description alongside a plain-language explanation — and what Bitcoin is doing at that layer.

Layer 7 Application

🖥️ "What you actually see and use"

The Application layer is the part of the internet you interact with directly — your web browser, your email app, your Bitcoin wallet. This is where human-readable software lives.

At this layer, software sends requests and receives responses. Two computers "talk" to each other using agreed-upon rules called protocols.

₿ Bitcoin at Layer 7: Bitcoin wallets, nodes, and miners all operate at this layer. They use two main protocols to communicate:
  • Bitcoin P2P protocol — how nodes talk to each other to share transactions and blocks across the network.
  • JSON-RPC — how software applications (like a wallet) send instructions to a Bitcoin node (for example, "broadcast this transaction").
Layer 6 Presentation

🔐 "Translating and protecting the data"

The Presentation layer is responsible for making sure data is in a format both computers can understand. It also handles encryption — scrambling data so that only the intended recipient can read it.

Think of it as a translator and a locksmith working together: they put the message in the right language and lock it with a key before sending.

₿ Bitcoin at Layer 6: Bitcoin does not make heavy use of Layer 6 directly. However, if a Bitcoin wallet connects to an exchange or a web service using HTTPS (secure web browsing), the TLS encryption that protects that connection operates at this layer. Bitcoin's own security — cryptographic signing of transactions — happens at Layer 7, not Layer 6.
Layer 5 Session

🤝 "Opening and keeping a connection alive"

The Session layer manages the "conversation" between two computers — it starts the connection, keeps it going, and ends it cleanly when finished. If the connection drops, the Session layer handles reconnection.

Imagine two people on a telephone call: someone dials, they talk, and someone hangs up. The Session layer handles all of that behind the scenes.

₿ Bitcoin at Layer 5: Bitcoin's use of the Session layer is minimal. Bitcoin nodes maintain long-lived, persistent connections to other nodes using TCP (the Transport layer protocol — see Layer 4). TCP handles most of the session management automatically, so Bitcoin does not need to do much additional work at Layer 5.
Layer 4 Transport

🚚 "Making sure everything arrives safely and in order"

The Transport layer is responsible for reliable delivery. It breaks large chunks of data into smaller packets, sends them, and checks that every packet arrives at the destination without errors. If a packet goes missing, Layer 4 requests it again.

Think of it as a courier service that tracks every parcel and will resend anything that gets lost.

₿ Bitcoin at Layer 4: Bitcoin uses TCP (Transmission Control Protocol) — the same reliable delivery system used by web browsing and email. TCP ensures that blocks (the bundles of confirmed transactions) and individual transactions are transmitted completely and correctly between Bitcoin nodes. If data is lost in transit, TCP automatically requests a resend.
Layer 3 Network

🗺️ "Finding the best route across the internet"

The Network layer handles addressing and routing — deciding how to get data from one place to another across potentially thousands of different computers and networks.

Every device connected to the internet has an IP address — a unique number like a postal code. The Network layer uses these addresses to figure out the best path for your data to travel.

₿ Bitcoin at Layer 3: Bitcoin nodes use IP addresses to find and connect to other nodes around the world. This process — called peer discovery — is how a new node joining the network learns about its neighbours. Once connected, the Network layer handles all the routing of Bitcoin data across the global internet.
Layer 2 Data Link

📡 "Moving data between two directly connected devices"

The Data Link layer handles the transfer of data between two devices that are directly connected — for example, your computer and your home router, or two computers on the same local network.

Each device on a local network has a MAC address (a unique hardware identifier). The Data Link layer uses these addresses to deliver data within a local area, before Layer 3 takes over for the longer journey across the internet.

₿ Bitcoin at Layer 2: This layer is relevant to Bitcoin at the local level — handling the framing and MAC-level delivery of data over Ethernet cables, Wi-Fi, or other local media. A Bitcoin node's data passes through Layer 2 when leaving your local network on its way to the wider internet.

Note: "Layer 2" is also used informally in the Bitcoin community to refer to the Lightning Network — a payment system built on top of Bitcoin. That is a completely separate and different meaning from the OSI Layer 2 described here.

Layer 1 Physical

🔌 "The actual wires, radio signals, and hardware"

The Physical layer is the most fundamental of all — it is the actual hardware: the cables, fibre optic lines, Wi-Fi radio signals, routers, network cards, and data centres that make the internet physically possible.

Without Layer 1, none of the other layers can exist. All digital data — emails, web pages, video calls, and Bitcoin transactions — ultimately travels as electrical signals, light pulses, or radio waves through physical infrastructure.

₿ Bitcoin at Layer 1: Bitcoin miners and nodes rely entirely on physical infrastructure — cables, routers, wireless signals, and the electrical power to run them — to connect to the Bitcoin network. There is no Bitcoin without a physical internet underneath it. This is why some Bitcoin advocates also discuss satellite-based and radio-based Bitcoin transmission (e.g., Blockstream Satellite) — as ways to extend Layer 1 access to areas without traditional internet infrastructure.

Quick Reference

Bitcoin Component Summary

The three main parts of the Bitcoin network — wallets, nodes, and miners — each operate across multiple OSI layers. Here is a summary:

Component OSI Layers Used What It Does
💼 Wallets Layers 7, 4, 3, 2, 1 Create and digitally sign Bitcoin transactions, then broadcast them to the network.
🖥️ Nodes Layers 7, 4, 3, 2, 1 Validate every transaction and block, relay data to other nodes, and store a full copy of the blockchain.
⛏️ Miners Layers 7, 4, 3, 2, 1 Compete to solve a mathematical puzzle (Proof of Work) and broadcast newly confirmed blocks to the network.

📌 Key Takeaway

All three Bitcoin components — wallets, nodes, and miners — use the same five layers (7, 4, 3, 2, 1). Layers 6 and 5 are mostly handled automatically by the operating system or are not heavily used by Bitcoin's core protocol. This means Bitcoin rides on the same basic internet infrastructure as email or a video call.

Keep Learning

Related Pages & Resources

⛔ Final Reminder — Not Financial Advice

  • This page is for educational and entertainment purposes only.
  • It is not financial, tax, or legal advice.
  • Do your own research. Verify everything independently.
  • Consult a licensed professional before making any financial decisions.
  • Never invest money you cannot afford to lose completely.

Transparency

Sources & References

All content on this page is drawn from the following sources. External links open in a new tab.