The OSI model describes which tasks make up sending data across a network and sorts those tasks into seven layers: each layer handles its own and relies on the one below. The model serves as a common language: when people say “a problem on layer 3” or “an L2 switch”, they mean the OSI layers.
Two standards define the model: ISO/IEC 7498-1 and, with identical content, ITU-T X.200; the current edition of both dates from 1994.
The seven layers
| Layer | Purpose | Examples |
|---|---|---|
| 7. Application | data for applications and network services | HTTP, SMTP, DNS |
| 6. Presentation | a common data format: character encodings, compression, encryption | JPEG, MIME |
| 5. Session | communication sessions: starting, ending, synchronising | RPC, NetBIOS |
| 4. Transport | delivery between processes, reliability and ordering | TCP, UDP |
| 3. Network | addressing and routing between networks | IP, ICMP |
| 2. Data link | frame delivery within a single network segment | Ethernet, Wi-Fi |
| 1. Physical | signals in a medium: wires, optics, radio | twisted pair, optical fibre |
How the layers work together
The sender works top down: each layer adds its own header to the data. Application data becomes a TCP segment, then an IP packet, then an Ethernet frame — for example, the standard Ethernet MTU limits a frame to 1500 bytes of payload. The receiver strips the nested headers in the reverse order.
Mapping to the TCP/IP stack
The real internet runs on the TCP/IP stack, which has four layers: data link, internet, transport and application. The OSI model is descriptive: nobody implements it directly, but it is a convenient way to explain the TCP/IP layers. RFC 1122 states explicitly that the TCP/IP application layer combines the functions of the two upper OSI layers, presentation and application.
| OSI | TCP/IP |
|---|---|
| 1–2. Physical and data link | data link (media access) |
| 3. Network | internet |
| 4. Transport | transport |
| 5–7. Session, presentation, application | application |
How the model is used
- classifying hardware: switches are divided into L2 and L3 by how far they parse frames and packets
- troubleshooting top down or bottom up: from “the site won’t open” down to the cable, or from a ping up to the application
- mapping disparate technologies: the layer tells which tasks a device or protocol handles, independent of vendor
Sources
the term is written from these pagesVerified 9 Nov