📄 Paper 2 · 4.9 Communication & Networking
4.9.2b The OSI Model & Network Protocols
AQA 7517 · A-Level Computer Science · ~16 min read

The OSI Model — 7 Layers

The OSI (Open Systems Interconnection) model is a conceptual framework that describes how data travels from one device to another across a network. Each layer handles a specific task and communicates with the layers above and below it.

LayerNameProtocols/ExamplesFunction
7ApplicationHTTP, HTTPS, FTP, SMTP, DNS, POP3Interface for network services used by applications
6PresentationSSL/TLS, JPEG, MPEG, ASCIIData formatting, encryption, compression
5SessionNetBIOS, PPTPEstablishes, maintains, terminates communication sessions
4TransportTCP, UDPEnd-to-end communication, flow control, error correction
3NetworkIP, ICMP, routersLogical addressing (IP), routing packets between networks
2Data LinkEthernet, Wi-Fi MAC, switchesPhysical addressing (MAC), framing, error detection
1PhysicalCables, NICs, hubs, repeatersBit transmission over physical medium (electrical/optical/radio)

Mnemonic (bottom to top): Please Do Not Throw Sausage Pizza Away

TCP vs UDP

FeatureTCP (Transmission Control Protocol)UDP (User Datagram Protocol)
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityGuaranteed delivery — lost packets retransmittedNo guarantee — packets may be dropped
OrderPackets reordered at destinationNo ordering
SpeedSlower (overhead)Faster (low overhead)
Use casesWeb browsing, email, file transferVideo streaming, online gaming, VoIP, DNS

TCP 3-way handshake: SYN → SYN-ACK → ACK. Used to establish a reliable connection before data transfer begins.

Key Application Layer Protocols

ProtocolPortPurpose
HTTP80HyperText Transfer Protocol — requesting/serving web pages (unencrypted)
HTTPS443HTTP Secure — HTTP encrypted via TLS/SSL
FTP20/21File Transfer Protocol — transferring files between client and server
SMTP25/587Simple Mail Transfer Protocol — sending email
POP3110Post Office Protocol — downloading email from server (deletes from server)
IMAP143Internet Message Access Protocol — email stored on server, synced across devices
DNS53Domain Name System — resolves domain names to IP addresses
SSH22Secure Shell — encrypted remote access to command line

Encapsulation and Decapsulation

As data passes down the OSI layers, each layer adds its own header (and sometimes trailer) — this is called encapsulation. At the destination, each layer strips its header in reverse — this is decapsulation.

  • Application data → Transport adds TCP/UDP header → Network adds IP header → Data Link adds MAC frame header → Physical sends as bits
  • At destination: each layer processes and strips its header and passes data up
Exam tip: AQA 7517 expects you to name OSI layers in order (bottom to top or top to bottom), give the function of each layer, and identify which protocol operates at which layer. Learn the port numbers for common protocols — questions like "A firewall blocks port 443, what does this affect?" require this knowledge. TCP vs UDP: know when each is appropriate and why.
Click through the slides at your own pace. Use arrow keys or click to advance.
Click slide or press arrow keys to navigate

Worksheet — 4.9.2b The OSI Model & Protocols

8 questions · instantly marked · AQA 7517 standard

Q1Name the seven layers of the OSI model, from layer 1 to layer 7.[4]
✅ Mark scheme
Mark scheme
1 mark each: Layer 1 Physical [1]; Layer 2 Data Link [1]; Layer 3 Network [1]; Layer 4 Transport [1]; Layer 5 Session [1]; Layer 6 Presentation [1]; Layer 7 Application [1].
Q2Explain the difference between TCP and UDP. Give one use case for each.[4]
✅ Mark scheme
Mark scheme
TCP: connection-oriented [1]; guarantees delivery by retransmitting lost packets [1]; packets are reordered at destination [1]; use case: web browsing, email, file download [1]. UDP: connectionless [1]; no guaranteed delivery — packets may be lost [1]; faster due to low overhead [1]; use case: video streaming, online gaming, VoIP [1].
Q3State the function of the Network layer (Layer 3) of the OSI model. Name the main protocol at this layer.[2]
✅ Mark scheme
Mark scheme
Network layer: responsible for logical addressing (IP addresses) [1] and routing data packets between networks [1]; the main protocol is IP (Internet Protocol) [1].
Q4Explain what is meant by encapsulation in the context of the OSI model.[2]
✅ Mark scheme
Mark scheme
As data passes down the OSI layers, each layer adds its own header (and sometimes trailer) containing control information [1]; this wraps the data from the layer above [1]; so by the time data reaches the Physical layer, it has headers from all layers added to it [1]. At the destination, each layer strips its header (decapsulation).
Q5State the port numbers for HTTP, HTTPS, and FTP.[2]
✅ Mark scheme
Mark scheme
HTTP: port 80 [1]; HTTPS: port 443 [1]; FTP: port 20 (data) and 21 (control) [1].
Q6Explain why IMAP is generally preferred over POP3 for users who access their email from multiple devices.[2]
✅ Mark scheme
Mark scheme
IMAP stores email on the server and syncs across all devices [1]; so if you read an email on your phone, it is marked as read on your laptop too [1]. POP3 downloads email to a single device and typically deletes it from the server [1], so other devices cannot access the same emails.
Q7Explain the TCP three-way handshake. Why is it needed?[2]
✅ Mark scheme
Mark scheme
Three-way handshake: (1) Client sends SYN packet to server [1]; (2) Server responds with SYN-ACK [1]; (3) Client sends ACK to confirm [1]. Needed: to establish a reliable connection and synchronise sequence numbers before data transfer begins, ensuring both sides are ready [1].
Q8A school network administrator blocks port 443 on the firewall. What effect will this have? Justify your answer.[2]
✅ Mark scheme
Mark scheme
Port 443 is used by HTTPS [1]; blocking it will prevent users from accessing secure (encrypted) websites [1]; most modern websites use HTTPS so this would block the majority of web browsing [1]; users may still access unencrypted HTTP (port 80) but this is unsecure and most sites redirect HTTP to HTTPS [1].
Topic Quiz
Question 1 of 15
You scored
out of 15
Card 1 of 8
Click to reveal definition
🎉
All cards reviewed!
TermDefinition
🎯

Mini Test — OSI Model & Protocols

10 questions · 10 minutes

← 4.9.2a Network Standards
57 of 70 · AQA 7517
4.9.3a TCP/IP & Internet →