CS08-01 Computer Science Watch
What a protocol is
In this lesson
Network protocols for GCSE Computer Science, with worked examples and the mistakes examiners report. AQA 8525, Edexcel 1CP2 and OCR J277 GCSE. Protocols and layers 1 of 6. Full Protocols and layers playlist: https://www.youtube.com/playlist?list=PLD_gG3hKyrIE More at https://scholafly.com
By the end: Define a network protocol as a set of rules for how data is sent between devices, and state the purpose of each protocol on the boards' lists - TCP/IP, HTTP, HTTPS, FTP, SMTP, IMAP, POP, Ethernet and Wi-Fi - in one precise sentence each that says what moves, between what, and how.
What it covers
- 0:00 Intro: network protocols
- 0:34 Network protocol
- 2:36 Network protocols: tcp and ip
- 5:16 Http and https
- 7:11 Network protocols: ftp
- 9:14 Email by direction
- 11:59 Local networks
Key words
About this video
What a protocol is | GCSE Computer Science | CS08-01
Network protocols for GCSE Computer Science, with worked examples and the mistakes examiners report.
AQA 8525, Edexcel 1CP2 and OCR J277 GCSE. Protocols and layers 1 of 6.
Full Protocols and layers playlist: https://www.youtube.com/playlist?list=PLD_gG3hKyrIE
More at https://scholafly.com
Watch first: CS07-08 - https://youtu.be/twN6t8FGwiU
Video code: CS08-01 (search "ScholaFly CS08-01")
#GCSEComputerScience #ProtocolsAndLayers #NetworkProtocols
For teachers
This GCSE Computer Science lesson teaches what a protocol is. By the end, students should be able to define a network protocol as a set of rules for how data is sent between devices, and state the purpose of each protocol on the boards' lists - TCP/IP, HTTP, HTTPS, FTP, SMTP, IMAP, POP, Ethernet and Wi-Fi - in one precise sentence each that says what moves, between what, and how. It works through five worked examples and the mistakes examiners report.
Exam board specification references:
AQA 8525
- 3.5
Edexcel 1CP2
- 4.1.6
OCR J277
- 1.3.2
Read the transcript
What does a photo need to travel from your phone to a server in another country, and arrive whole? A fast connection, you might say. But speed only moves the bits faster: if the two machines read those bits by different rules, the photo arrives as noise. What it needs is for both machines to follow exactly the same rules, down to the order of every bit.
Those shared rules have a name. A network protocol is a set of rules for how data is sent between devices on a network. The rules cover how the data is laid out, the order it goes in, the timing, and how errors are checked. Protocols are needed because devices are made by different companies and run different software. If both ends follow the same rules, each one can understand what the other sends. It is the same habit as the definitions in the video Hardware and software. The definition comes first, and the examples come after it. Three students were asked for a definition. A wrote: HTTP, FTP and SMTP. B wrote: a set of rules for how data is sent between devices. C wrote: the rules a web browser uses to fetch web pages. Which of the three is a definition of a network protocol, A, B or C? B. A is a list of names, and C describes one protocol's job. Neither of them says what a protocol is. One examiner's report puts that slip like this: "There were many good definitions of a network protocol, though some students gave descriptions of various network protocols rather than giving a definition." The fix is to write the rule first, in one sentence, with no protocol named in it. The names come afterwards, as examples.
Every protocol on your course's list has a job. A job sentence that scores says three things: what moves, between what, and how. TCP stands for Transmission Control Protocol. It sets up the connection between the two ends. Then it splits the data into packets, which are small numbered pieces, and sends them. At the far end, TCP checks every packet has arrived. It asks for any missing ones to be sent again, and puts them all back in order. IP stands for Internet Protocol. It gives each packet the address it is going to, and routes it across networks to get there. Now take a message sent from one computer to another across the Internet, with only IP working on it. What would go wrong with IP alone, and no TCP? No connection would be set up, and nothing would check that every piece turned up or put them back in order. IP addresses and routes; it does not make sure the whole thing arrives. That is why the two are used together, under one name, TCP/IP. If your course lists TCP and IP separately, give a job for each. If it lists TCP/IP, write the pair. One older course list also had UDP, a protocol that sends packets without checking they arrive, used where speed matters more than every piece turning up. It is on no current list. One examiner's report records this slip: "Many candidates wrote IP instead of TCP/IP. IP on its own does not establish an end-to-end connection between two computers on a network." The habit that fixes it: write TCP/IP in full, or give both halves a job each. Where a whole message has to get across, IP alone is not enough.
Now the web. HTTP is HyperText Transfer Protocol, the rules a web browser and a web server use to request web pages and send them back. A web server is the computer that stores a website and sends its files out. The video The Internet, DNS and hosting covers it, if that word is new. HTTPS is HTTP with one change. The data travelling between the browser and the server is encrypted, which means scrambled, so anyone who copies it on the way cannot understand it. The S is about the data in transit. It does not make the website safe, and it does not make the person safe. More secure says nothing about what changed, and encrypted does. How that scrambling works is the job of the video Encryption across a network. Here, the word encrypted is enough. Now a school's website, where parents log in to check their child's progress. Which protocol should the parents' browser use, and what does it add? HTTPS. It encrypts the login details and the school records while they travel between the browser and the web server. Any task with a password, a payment or personal details needs HTTPS. Leave off the S, and you have named a different protocol.
Files have their own protocol. FTP is File Transfer Protocol, the rules for moving files over a network, usually between a client and a server. The client is the computer that asks for the file, and the server is the computer that provides it. In a question, upload, download and transfer a file all point to FTP. A file format such as MP3 is not a protocol. A format is how a file is written down; a protocol is a rule for moving it. One student answered a question on what FTP is for like this. FTP is the protocol for transferring files. What is wrong with that answer, given what the letters in FTP stand for? It only repeats the name. The letters already say the job, so the sentence adds nothing the question did not hand you. A version that scores adds what moves, between what, and how. FTP is used to transfer files over a network, between a client and a server. An examiner's report names the same gap: "Too many students did not qualify ‘over a network’ or between ‘server and client’ they simply stated transferring files, which is given in the question: ‘file transfer protocol’." The test to use instead: cover up the protocol's name and read your sentence. If it says nothing the name did not, add the network and the two ends.
Email takes three protocols, and the way to keep them apart is direction. One sends mail out, away from you. Two fetch it in, towards you. SMTP is Simple Mail Transfer Protocol. It sends email from the sender's device to their mail server, and on between mail servers. IMAP, Internet Message Access Protocol, fetches mail but leaves the messages on the mail server. Every device you use reads that one mailbox, so all of them show the same inbox. The point is different devices, not different places. Any email can be read wherever there is an internet connection. IMAP keeps the mail on the server, unless you delete it. POP, the Post Office Protocol, fetches the messages down to one device and usually deletes them from the server. POP3 is its current version, so POP and POP3 are one protocol. Three tasks now, one protocol each. A photographer uploads a folder of full-size images to a print shop's server. A student sends an email from a laptop. Then the same student reads that inbox on a phone and a tablet, and sees the same messages on both. Have a go at this one before I show you. The photographer's upload is FTP, moving the image files over a network from a client to the print shop's server. Sending from the laptop is SMTP, which carries the email out to the mail server. Reading on both devices is IMAP. The mail stays on the server, so the phone and the tablet see the same inbox. On sending, one examiner's report notes: "Many candidates also correctly identified SMTP for sending an email, although more candidates gave incorrect email protocols such as POP3." More students got it wrong than right. The fix is direction: SMTP is the only one of the three that sends, and IMAP and POP both fetch.
The last two names on the lists are not single protocols. Ethernet is a family of protocols for wired local networks, and Wi-Fi is a family for wireless ones. Now, which of these is a protocol: an Ethernet cable, Wi-Fi, or a router? Wi-Fi. The cable and the router are things you can hold; Wi-Fi is a set of rules the router follows. Nobody has to learn the members of either family. If your course lists Ethernet and Wi-Fi, a purpose line for each is enough: wired, or wireless, within a local network. None of these protocols works alone. They work together in layers, and the video The four-layer TCP/IP model stacks them up.
Here is the list again, and this time you do the talking. First, what is a network protocol, without naming a single one? A set of rules for how data is sent between devices on a network. Next one: a downloaded file needs every packet, back in order. TCP or IP? TCP. It numbers them, checks every one has arrived, and rebuilds the order. Here's another: a teacher downloads a backing track from a server. Which protocol? FTP, moving the file over a network from the server to the teacher's computer. One more: an email deleted on a phone vanishes from the laptop too. IMAP or POP? IMAP. The mail lives on the server, so every device sees the same change. Now the photo from the start: what does it need, besides a fast connection? Protocols. The phone and the server follow the same rules, TCP/IP among them. Without those, a faster connection would only deliver noise faster.
Here is the chapter so far, with today's video at the end. Give it a thumbs up if every protocol on that list clicked, so you never have to watch it again. If it hasn't landed yet, save it for later. Writing the list out once, with a job beside each name, does most of the work.
Next in the chapter: The four-layer TCP/IP model. Hopefully that's next in your feed, but if not, search for ScholaFly C S oh eight, oh two.
Every other video is on scholafly.com too, easy to search by video code or by keyword. Whatever you're revising, go there and have a look, or, watch the next video.
Related terms
For: AQA GCSE 8525, Edexcel GCSE 1CP2, OCR GCSE J277
On the specification
For teachers
This GCSE Computer Science lesson teaches what a protocol is. By the end, students should be able to define a network protocol as a set of rules for how data is sent between devices, and state the purpose of each protocol on the boards' lists - TCP/IP, HTTP, HTTPS, FTP, SMTP, IMAP, POP, Ethernet and Wi-Fi - in one precise sentence each that says what moves, between what, and how. It works through five worked examples and the mistakes examiners report.