OCR GCSE COMPUTER SCIENCE · J277 · PAPER 1
Protocols and layers
The rules that let any device talk to any other, from web pages to email, and the layers that keep them organised.
Paper 1 · Lesson 10
Lesson by Computing
This lesson contains 20 slides, with interactive quizzes and text slides.
OCR GCSE COMPUTER SCIENCE · J277 · PAPER 1
Protocols and layers
The rules that let any device talk to any other, from web pages to email, and the layers that keep them organised.
Paper 1 · Lesson 10
Lesson 10 of the J277 series (Block B, Paper 1, section 1.3.2): standards, common protocols (TCP/IP, HTTP, HTTPS, FTP, POP, IMAP, SMTP) and the concept of layers.
Device-free: show the slide; pupils write the title and date. Image credit: Denny Müller / Unsplash (cover hologram)
00 · MISSION · BY THE END OF THIS LESSON
By the end of this lesson you can…
01 Explain what a protocol and a standard are.
02 Describe the purpose of TCP/IP, HTTP, HTTPS, FTP, SMTP, POP and IMAP.
03 Explain the concept of layers and why they are used.
Read the three outcomes. OCR questions usually ask for the purpose of a named protocol, so pupils need one clear sentence for each. The names of the layers are not required for J277; the idea of layers and their benefits is.
Device-free: pupils copy the outcomes and tick each one at the end.
02 · CHECK · DO NOW (LESSON 9)
Warm up: the internet and connections
1 What does a DNS server do?
2 Give one advantage of a mesh topology.
3 Which address usually stays fixed: IP or MAC?
4 Why must Wi-Fi data be encrypted?
▮ TERMINAL // do_now_answers
1 turns a web address
into an IP address
2 no single point of failure:
data can take another route
3 MAC
4 signals can be intercepted;
encrypted data is unreadable
Retrieval from lesson 9. Give 4 minutes, then click to reveal the answers line by line.
1 A DNS server translates a domain name (web address) into the IP address of the web server. 2 No single point of failure: if a link fails, data can take another route. 3 The MAC address is set by the maker and usually stays the same (it can be changed in software, and phones often use a random one on Wi-Fi); the IP address can change from network to network. 4 Wi-Fi uses radio waves, which anyone nearby can pick up; encryption means intercepted data cannot be understood.
Device-free: questions on the board; mini whiteboards.
Recap of lesson 9: which of these is a valid IPv4 address?
300.12.5.1
3C-22-FB-9A-01-7E
www.example.com
192.168.0.12
Answer: D, 192.168.0.12. An IPv4 address is four numbers from 0 to 255, separated by dots.
300.12.5.1 is not valid because 300 is bigger than 255 (one byte can only hold 0 to 255). 3C-22-FB-9A-01-7E is a MAC address. www.example.com is a domain name, which DNS turns into an IP address.
Device-free: students hold up A, B, C or D cards. Image credit: Franck V. / Unsplash
01 · LEARN · MISSION BRIEFING
What is a protocol?
A protocol is a set of rules for how devices communicate and send data over a network.
FORMAT
How the data is laid out, so both sides can read it.
ORDER
Who sends what, and when, so messages do not clash.
ERRORS
What to do when data is lost or arrives damaged.
SYSTEM VOICE
System online. Mission briefing. Today you will learn the rules of the internet: the protocols that let any device talk to any other, and the layers that keep it all organised.
Click play for the system voice briefing. The words are also on the slide.
A protocol is a set of rules that governs how devices communicate and transfer data across a network: how data is formatted, the order and timing of messages, and how errors are detected and dealt with. Both devices must follow the same protocol to understand each other.
Analogy: two people can only have a phone call if they speak the same language and take turns. A protocol is that agreement for computers.
Device-free: read the briefing aloud; pupils write the definition of a protocol in their own words.
01 · LEARN · STANDARDS
Why every plug fits
STANDARD
An agreed set of rules for hardware and software, so that products from different makers work together.
EXAMPLES
USB plugs and sockets, Wi-Fi, Ethernet cables and file formats such as JPEG. Network protocols are agreed as standards too, so any device can use them.
A standard is an agreed set of rules, usually set by an international organisation, so that hardware and software made by different companies can work together. Without standards, a laptop from one maker could not connect to a router from another.
Examples: USB, Wi-Fi, Ethernet, Bluetooth, file formats (JPEG, MP3, PDF), character sets (ASCII, Unicode). Many network protocols are published as standards.
Ask: what would happen if every phone maker used a different charging socket?
Device-free: pupils list three standards they used today. Image credit: dlxmedia.hu / Unsplash
01 · LEARN · TCP/IP
Data travels in packets
TCP splits data into numbered packets, checks they all arrive, asks for missing ones again and puts them back in order.
IP adds the IP addresses to each packet, so routers can send it across networks.
▮ TERMINAL // tcp_send.log
> split into packets 1 to 4
> packets 1, 2, 4 arrived
> packet 3 lost: resend
> 4 of 4 arrived: reassembled
SYSTEM VOICE · KEY DEFINITION
TCP/IP. TCP breaks data into numbered packets and checks that they all arrive. IP adds addresses to each packet, so that routers can send it across the networks to its destination.
Click the terminal to reveal the log line by line, then play the key definition.
TCP (Transmission Control Protocol) splits data into packets, numbers them, checks they arrive (the receiver acknowledges them), asks for lost or damaged packets to be resent, and reassembles them in the right order. IP (Internet Protocol) adds the source and destination IP addresses to each packet, so that routers can forward packets across networks to the right place; packets from one message may take different routes. TCP and IP work together as TCP/IP, the main protocols of the internet.
Device-free: tear a sentence into four numbered strips; pass them round the room by different routes, lose one, ask for it again, then rebuild the sentence in order.
01 · LEARN · WEB AND FILE PROTOCOLS
Web pages and files
HTTP
Hypertext Transfer Protocol
The rules a web browser and a web server use to request and send web pages.
HTTPS
HTTP Secure
The same job, but the data is encrypted, so passwords and card details cannot be read if they are intercepted. HTTPS secures the connection; it does not prove the site is honest.
FTP
File Transfer Protocol
Moves files between computers over a network, for example uploading the files for a website to its web server.
HTTP (Hypertext Transfer Protocol): used by web browsers to request web pages from web servers, and by servers to send them back. HTTPS (HTTP Secure): the same, but the connection is encrypted, so data such as logins, passwords and payment details cannot be understood if intercepted; the web address starts with https://. HTTPS only protects data on its way between browser and server: a fake or phishing site can use HTTPS too, so a secure connection (or the padlock icon, which Chrome replaced in 2023) does not mean a site is trustworthy. FTP (File Transfer Protocol): used to transfer files between computers over a network, for example uploading a website's files to a web server or downloading large files.
Exam tip: for HTTPS, always say what is encrypted and why it matters, not just "it is secure".
Device-free: pupils write each protocol name with a five-word job description.
01 · LEARN · EMAIL PROTOCOLS
How an email gets there
YOUR DEVICE
YOUR MAIL SERVER
THEIR MAIL SERVER
THEIR DEVICES
SMTP
SMTP
IMAP or POP
SMTP
Simple Mail Transfer Protocol
Sends email from your device to your mail server, and between mail servers.
POP
Post Office Protocol
Downloads email from the server to one device, then usually deletes it from the server.
IMAP
Internet Message Access Protocol
Keeps email on the server, so every device shows the same inbox.
Follow the diagram left to right. SMTP (Simple Mail Transfer Protocol) sends email from the sender's device to their mail server and from mail server to mail server. The email then waits on the recipient's mail server. The recipient's devices collect it with POP or IMAP.
POP (Post Office Protocol): downloads emails to one device and normally deletes them from the server, so they are only on that device. IMAP (Internet Message Access Protocol): keeps emails on the server and synchronises them, so a phone, laptop and tablet all show the same inbox, including what has been read or deleted.
Memory hook: SMTP = Send Mail To People.
Device-free: pupils copy the four boxes and label each arrow with its protocol.
Drag each job to the protocol that does it.
HTTPS
FTP
SMTP
IMAP
Keeps email on the server so all devices match
Sends email to a mail server
Requests web pages with encryption
Uploads a website's files to a web server
Answers: HTTPS = requests web pages with encryption; FTP = uploads a website's files to a web server; SMTP = sends email to a mail server; IMAP = keeps email on the server so all devices match.
Device-free: pupils match the four by drawing lines in their books.
Aisha wants her phone and laptop to show the same inbox. Which protocol?
POP
IMAP
SMTP
FTP
Answer: B, IMAP, because it keeps the emails on the server and keeps every device in sync.
POP would download the emails to one device and usually remove them from the server, so the other device would not see them. SMTP sends email; it does not collect it. FTP transfers files, not email.
Device-free: students hold up A, B, C or D cards. Image credit: Giorgio Trovato / Unsplash
01 · LEARN · LAYERS
One job per layer
APPLICATION HTTP, HTTPS, FTP, SMTP, IMAP, POP
TRANSPORT TCP
INTERNET IP
LINK Ethernet, Wi-Fi
Data goes down the layers to be sent, and back up when received.
WHY LAYERS?
A layer is a group of protocols with one job. Each layer only deals with the layers directly above and below it.
+ a layer can be changed without changing the others
+ a big problem is split into smaller, simpler parts
+ faults are easier to find and fix
+ makers can build for one layer and still work with the rest
Layers: networking is divided into layers, each a group of protocols with one specific job. Each layer only communicates with the layer directly above and below it, and does not need to know how the other layers work.
Benefits (OCR mark schemes): each layer is self-contained, so it can be developed or changed without affecting the others (for example, a new Wi-Fi standard does not need new web browsers); the problem is broken down into smaller, manageable parts (decomposition); it is easier to identify and fix faults; manufacturers can make products for one layer that work with products for the others, which supports standards.
The four layer names shown are the TCP/IP model. Pupils do not need to learn the names for J277; they need the concept and the benefits.
Device-free: pupils draw four stacked boxes and write one benefit of layers beside them.
Your mail server uses SMTP to pass it to their mail server
You write an email and press send
Their device collects it using IMAP or POP
The email is stored on their mail server
SMTP sends it from your device to your mail server
Put the journey of an email in order.
Correct order: 1 you write an email and press send; 2 SMTP sends it from your device to your mail server; 3 your mail server uses SMTP to pass it to the recipient's mail server; 4 the email is stored on their mail server; 5 their device collects it using IMAP or POP.
Device-free: pupils write the five steps on sticky notes and order them on the desk.
03 · DEBUG · SPOT THE MISTAKE
One line in Leon's notes is wrong
▮ TERMINAL // leon_protocols.txt
1 HTTP: rules for sending web pages
2 HTTPS: HTTP with encryption
3 FTP: moves files between computers
4 SMTP: downloads email to my phone
5 TCP: checks every packet arrives
Line 4. SMTP SENDS email, from your device to your mail server and between mail servers. Your phone downloads or reads email using POP or IMAP. Memory hook: SMTP = Send Mail To People.
Check each line against what you learned. Which one is wrong, and what should it say? Then tap the marker.
Exam tip: learn one clear sentence on the purpose of each protocol.
Give a minute to find the mistake before tapping the marker.
Answer: line 4. SMTP is used to send email. Downloading or reading email on a device uses POP or IMAP. Lines 1, 2, 3 and 5 are correct. If pupils are stuck, ask: which protocol sends email, and which ones collect it? Memory hook (also in the marker): SMTP = Send Mail To People.
Device-free: copy the five lines onto the board; pupils write the wrong line number and the correction.
Quick check. Maya has built a website on her laptop and must copy all of its files onto the web server. Which protocol? Type the abbreviation.
Answer: FTP (File Transfer Protocol). The answer is marked automatically; "ftp" in lower case is accepted.
If pupils answer HTTP, remind them that HTTP is for requesting and sending web pages to visitors, while FTP is for moving the files onto the server in the first place.
Device-free: pupils write the answer on mini whiteboards and show on the count of three.
Complete the summary.
A protocol is a set of rules for how devices communicate. Devices from different makers work together because they follow the same standards. TCP splits data into packets and checks they all arrive, while IP adds the addresses that let routers send each packet on. Web pages are requested with HTTP, or with HTTPS when the data must be encrypted. Email is sent with SMTP. Grouping protocols into layers means one part can change without affecting the others.
Answers in order: protocol, standards, TCP, IP, HTTPS, SMTP, layers. Distractors: FTP, MAC, router. The standards blank checks outcome 1 (what a standard is).
Device-free: paragraph on the board with gaps and the word bank; pupils write the seven missing words.
EXAM · Describe what is meant by a protocol, and explain one benefit of using layers in networking. [4 marks]
Exam-style question, 4 marks. Give 5 minutes. The model answer is on the next slide.
Mark scheme. Protocol (max 2): a set of rules (1) for how devices communicate or how data is transmitted, such as format, timing or error checking (1). Layers (max 2): one benefit identified (1) and explained (1). Benefits: each layer is self-contained, so it can be changed or updated without affecting the others; the task is split into smaller, simpler parts; faults are easier to find; manufacturers can make products for one layer that work with the others (standards and compatibility).
Device-free: pupils answer on paper, then peer-mark with the next slide.
04 · EXAM · MODEL ANSWER
Define it, then explain it
A protocol is a set of rules that devices follow when they communicate.
It sets how data is formatted and sent, so different devices can understand each other.
Layers split networking into separate jobs, so one layer can be changed without affecting the others.
For example, a new Wi-Fi standard can be used without changing how web browsers work.
MARK SCHEME
1 mark: a set of rules
1 mark: for how devices communicate, e.g. data format
1 mark: a benefit of layers
1 mark: the benefit explained
Also accept: easier to find faults; products from different makers work together.
Click to reveal the model answer one sentence at a time. Where the marks are: sentence 1 earns two, "set of rules" (1) and "that devices follow when they communicate" (1); sentence 2 backs this up with how data is formatted (it would also earn the second mark on its own). Sentence 3 identifies a benefit of layers, one layer can be changed without affecting the others (1), and sentence 4 explains it with the Wi-Fi example (1).
Common weak answer: "A protocol is a rule and layers make it easier." This misses "a set of rules for communication" and gives no reason why layers make it easier, so it earns 1 mark at most.
Device-free: read the model answer aloud; pupils underline the four mark-earning parts in their own answer.
Exit check: which protocols are you sure about?
All of them: TCP/IP, HTTP, HTTPS, FTP, SMTP, POP, IMAP
Most of them, but I mix up the email ones
Only a few: I need another go
Anonymous exit poll. If many pupils mix up the email protocols, start lesson 11 with the email journey sort again.
Device-free: thumbs up, sideways or down.
05 · NEXT · KEEP GOING
Keep going
Isaac Computer Science
Free online lessons and questions. Look for the networking and protocols topics.
BBC Bitesize
GCSE Computer Science, OCR: revise protocols and layers.
OCR past papers
J277/01 papers and mark schemes on the OCR website: try the protocol questions.
Next lesson: threats to networks, from malware to phishing, and how attackers get in.
Point pupils to the three places to practise. Isaac Computer Science and BBC Bitesize are free; OCR past papers and mark schemes are on the OCR website.
Device-free: pupils write down one question they still have about protocols to bring to lesson 11.