Bitcoin & the OSI Model

Understanding how Bitcoin components interact across network layers

Layer 7 – Application

Bitcoin wallets, nodes, and miners operate here. They use the Bitcoin P2P protocol and JSON-RPC to broadcast transactions and blocks.

Layer 6 – Presentation

Not heavily used in Bitcoin. Data formatting and encryption (e.g., TLS) may occur here if wallets use secure APIs.

Layer 5 – Session

Session management is minimal in Bitcoin. TCP handles persistent connections between nodes.

Layer 4 – Transport

Bitcoin uses TCP to ensure reliable transmission of blocks and transactions between nodes.

Layer 3 – Network

Nodes use IP addressing to discover and connect to peers. Routing and peer discovery happen here.

Layer 2 – Data Link

Handles framing and MAC-level delivery over Ethernet, Wi-Fi, or other media. Relevant for local transmission.

Layer 1 – Physical

Miners and nodes rely on physical infrastructure—cables, routers, wireless signals—to connect to the network.

Bitcoin Component Summary

Sources