The OSI model divides network communication into seven distinct layers, each with a specific job — from converting electrical signals at the bottom to the applications you use at the top. GCSE Computer Science expects you to name each layer, explain its role, and compare the OSI model with the TCP/IP four-layer model.
Why do we use a layered model at all?
Think of posting a parcel internationally. Your parcel passes through a packing stage, a courier collection, a sorting office, a customs checkpoint, and finally a local delivery driver — each stage has a defined input and output and does not need to know the details of the others. A network works the same way. Dividing communication into layers means that engineers can redesign Wi-Fi hardware at the physical layer without touching the HTTP code at the application layer. Each layer provides services to the one above it and uses services from the one below.
What are the seven OSI layers?
The OSI (Open Systems Interconnection) model was developed by the International Organisation for Standardisation (ISO) in the 1980s. The layers are numbered 1 to 7 from bottom to top.
| Layer | Number | Name | Key job |
|---|---|---|---|
| Physical | 1 | Physical | Transmits raw bits as electrical, optical, or radio signals |
| Data Link | 2 | Data Link | Frames data and manages MAC addresses; handles error detection within one link |
| Network | 3 | Network | Routes packets across multiple networks using IP addresses |
| Transport | 4 | Transport | Provides end-to-end delivery, segmentation, and reliability (TCP) or speed (UDP) |
| Session | 5 | Session | Opens, manages, and closes communication sessions between applications |
| Presentation | 6 | Presentation | Translates data formats, handles encryption, and compresses data |
| Application | 7 | Application | Provides network services directly to user applications (HTTP, FTP, SMTP) |
A common mnemonic to remember the layers from bottom to top: Please Do Not Throw Sausage Pizza Away (Physical, Data Link, Network, Transport, Session, Presentation, Application).
What does each layer actually do in practice?
Layer 1 — Physical: This is the cable, the fibre, the radio wave. It converts binary data into a physical signal (voltage changes, light pulses, electromagnetic waves) and transmits it across the medium. It has no concept of addresses or meaning — just bits.
Layer 2 — Data Link: This layer wraps bits into frames and adds MAC addresses so devices on the same local network can identify each other. It also performs error detection using techniques such as CRC (Cyclic Redundancy Check). Ethernet and Wi-Fi operate at this layer.
Layer 3 — Network: This layer handles routing — deciding the best path across multiple networks. IP addresses live here. Routers operate at Layer 3, reading IP headers to decide where to forward each packet.
Layer 4 — Transport: This layer manages the conversation between two applications. TCP (at this layer) breaks data into segments, numbers them, and ensures they all arrive in order. UDP sacrifices reliability for speed — useful for video streaming where a dropped packet is better than a delay.
Layers 5, 6, and 7: These three layers are less commonly examined at GCSE individually, but their combined function is important. Layer 5 (Session) manages connection setup and teardown. Layer 6 (Presentation) handles format translation — converting between character sets, applying encryption, or compressing data. Layer 7 (Application) is where HTTP, SMTP, and FTP operate, providing the interface between software and the network.
How does data move through the layers when you send a message?
When you send an email, data travels down the layers on your device (each layer adds a header — a process called encapsulation) and up the layers on the recipient's device (each layer removes the corresponding header — decapsulation).
Encapsulation at each layer:
- Application creates the data (the email content).
- Presentation may encrypt or compress it.
- Session adds session information.
- Transport adds a TCP header (source/destination ports, sequence number) — creating a segment.
- Network adds an IP header (source/destination IP addresses) — creating a packet.
- Data Link adds a frame header (MAC addresses) — creating a frame.
- Physical transmits the frame as raw bits.
At the other end, each layer strips its header, reads the relevant information, and passes the remaining data up to the next layer.
How does the OSI model compare to the TCP/IP model?
The TCP/IP model (which you may have already studied) is a four-layer model that pre-dates the OSI model in practical use. Both describe the same networking process; they differ in how they group the layers.
| TCP/IP layer | Equivalent OSI layer(s) |
|---|---|
| Application | Application + Presentation + Session (layers 7, 6, 5) |
| Transport | Transport (layer 4) |
| Internet | Network (layer 3) |
| Network Access | Data Link + Physical (layers 2, 1) |
The OSI model is more granular and is used primarily as a teaching and troubleshooting framework. The TCP/IP model reflects how the internet actually works in practice. In an exam, if asked to compare them, note that OSI has seven layers and TCP/IP has four, and explain which OSI layers map to which TCP/IP layer.
How is the OSI model useful for troubleshooting networks?
Network engineers use the OSI model as a systematic fault-finding tool, working from Layer 1 upwards:
- Layer 1: Is the cable plugged in? Is the Wi-Fi signal strong?
- Layer 2: Is the NIC (Network Interface Card) working? Are MAC addresses resolving correctly via ARP?
- Layer 3: Is the IP address correct? Can you ping the gateway?
- Layer 4: Is the correct port open? Is TCP completing its three-way handshake?
- Layers 5–7: Is the application configured correctly? Is the certificate valid?
This top-down or bottom-up approach prevents engineers from chasing software bugs when the real issue is a loose cable.
Frequently asked questions
Do I need to memorise all seven layer names for GCSE?
Yes — naming the seven layers in order is a standard exam question. Use the mnemonic above (Please Do Not Throw Sausage Pizza Away) and practise writing them from memory. You are also expected to describe the job of each layer and give one example of a protocol or technology that operates at it.
Why does the OSI model have seven layers rather than four like TCP/IP?
The OSI model was designed by an international standards body to be comprehensive and hardware-neutral, separating every logically distinct function into its own layer. TCP/IP was developed pragmatically — engineers building the internet merged session, presentation, and application concerns into one layer because the separation added complexity without practical benefit for the protocols they were building.
What is the difference between a segment, a packet, and a frame?
These terms describe data at different OSI layers. A segment is data with a Transport-layer (Layer 4) header attached. A packet is a segment with a Network-layer (Layer 3) IP header added. A frame is a packet with a Data Link (Layer 2) header and trailer added. Each term reflects the encapsulation step at that layer.
Which layer does a switch operate at, and which layer does a router operate at?
A network switch operates primarily at Layer 2 (Data Link), forwarding frames based on MAC addresses within a local network. A router operates at Layer 3 (Network), forwarding packets based on IP addresses across different networks. Some modern devices (layer-3 switches) can perform both functions, but the distinction is important for exam questions.
Explore network layers and protocols with Professor Turing's guided tutoring at aitutors.me.