GCSE Revision Aid: This resource is designed to support your revision and may contain errors. If you find a discrepancy with your class teaching, your teacher is correct — please let us know at gcserevise@scott.scottrix.co.uk.
CS30: Network Protocols
FoundationHigherAQAEdexcelOCREduqasNetworks
What protocols are, why they are needed, and the key protocols: TCP, IP, HTTP/HTTPS, SMTP, IMAP.
📋 What is a Protocol?
Definition: A protocol is a set of rules that governs how data is transmitted between devices on a network. Protocols define the format, timing, sequencing, and error checking of data transmission.
Without protocols, devices would have no common language to communicate. Imagine two people trying to have a conversation - one speaking only French and the other only Japanese. Without a shared language (protocol), no meaningful communication can occur. Network protocols provide the common "language" that all networked devices understand.
Protocols define the format of data being sent
Protocols define the order and timing of messages
Protocols define how errors are detected and handled
Protocols define how connections are established and terminated
Different protocols handle different aspects of communication
Analogy
Think of protocols like the rules of sending a letter: you write the sender's address in one corner, the recipient's address in another, you put a stamp on, and the postal service follows its own rules for sorting and delivery. If everyone follows these rules, letters get delivered correctly. Network protocols work the same way for data.
❓ Why Protocols Are Needed
Key Concept: Protocols are needed so that different devices and systems can communicate with each other. Without agreed rules, there would be no way to ensure data arrives correctly, completely, and in the right order.
Compatibility: Allow different makes and types of devices to communicate
Standardisation: Provide common rules that all manufacturers can follow
Reliability: Ensure data arrives correctly and completely
Error handling: Define what happens when data is lost or corrupted
Ordering: Ensure data is reassembled in the correct sequence
Security: Some protocols provide encryption and authentication
What Happens Without Protocols
If Device A sends data in one format but Device B expects a different format, Device B cannot understand the data. If Device A sends data too fast for Device B to process, data is lost. If there is no error checking, corrupted data goes undetected. Protocols prevent all these problems by establishing common rules.
🔗 Key Network Protocols
TCP (Transmission Control Protocol)
Purpose: TCP ensures reliable delivery of data between devices. It breaks data into packets, numbers them, checks they all arrive, and reassembles them in the correct order.
Provides reliable, ordered delivery of data
Breaks large data into numbered packets
Sends packets and waits for acknowledgement (ACK) from receiver
Resends any packets that are lost or corrupted
Reassembles packets in the correct order at the destination
Establishes a connection before sending (three-way handshake)
Part of the TCP/IP protocol suite
How TCP Works
When you download a file, TCP splits it into numbered packets. Each packet is sent and the receiver sends back an acknowledgement. If packet 3 is lost, the receiver notices the gap and asks for it to be resent. Once all packets arrive, TCP reassembles them in order to recreate the complete file.
IP (Internet Protocol)
Purpose: IP handles addressing and routing of data packets across networks. It adds source and destination IP addresses to each packet so it can be routed to the correct destination.
Provides addressing (IP addresses identify source and destination)
Routers packets across networks to their destination
Does NOT guarantee delivery (unreliable - TCP handles reliability)
Each packet is routed independently (may take different paths)
TCP and IP Work Together:
IP handles addressing and routing (WHERE data goes)
TCP handles reliability and ordering (HOW data arrives)
Together they form TCP/IP, the foundation of internet communication
HTTP (Hypertext Transfer Protocol)
Purpose: HTTP is the protocol used to transfer web pages from a web server to a web browser. It defines how requests and responses are formatted.
Used for viewing web pages in a browser
Client (browser) sends a request to the server
Server sends back the requested web page (response)
Data is sent in plain text (not encrypted)
Uses port 80 by default
Not secure - data can be intercepted and read
HTTPS (HTTP Secure)
Purpose: HTTPS is the secure version of HTTP. It encrypts all data between the browser and the server, preventing interception and tampering.
Same as HTTP but with encryption (SSL/TLS)
Data is encrypted before transmission
Uses port 443 by default
Prevents eavesdropping and data tampering
Verified by digital certificates (padlock icon in browser)
Essential for online banking, shopping, and any sensitive data
Property
HTTP
HTTPS
Encryption
None (plain text)
SSL/TLS encryption
Security
Not secure
Secure
Port
80
443
Certificate
Not required
SSL/TLS certificate required
Use case
Non-sensitive browsing
Banking, shopping, login pages
SMTP (Simple Mail Transfer Protocol)
Purpose: SMTP is the protocol used for SENDING email from a client to a mail server, and between mail servers.
Used to send outgoing email
Client sends email to mail server via SMTP
Mail servers use SMTP to forward email to each other
Uses port 25 (or 587 for secure submission)
Only handles sending - NOT receiving email
IMAP (Internet Message Access Protocol)
Purpose: IMAP is the protocol used for RECEIVING and managing email on a mail server. It allows the client to view and organise emails while keeping them stored on the server.
Used to receive and read incoming email
Emails remain stored on the server (not downloaded)
Can access the same email from multiple devices
Changes (read, delete, move) sync across all devices
Uses port 143 (or 993 for secure IMAP)
Email Protocol Summary:
SMTP = Sending email (client to server, server to server)
IMAP = Receiving/reading email (client reads from server)
Remember: SMTP = Send Mail; IMAP = I Manage And Read
📊 Protocol Layers
Key Concept: Protocols are organised in layers, where each layer handles a specific aspect of communication. Higher layers handle user-facing functions; lower layers handle data transport. Each layer only communicates with the layer directly above and below it.
Each layer has a specific role and doesn't need to know how other layers work
Layers can be changed independently (e.g. switch from Wi-Fi to Ethernet without changing the application)
Data is passed down through layers when sending, and up when receiving
Each layer adds its own header (encapsulation)
Each layer removes its header when receiving (decapsulation)
⚠️ Common Mistakes to Avoid
Mistake
Why It's Wrong
How to Fix It
Saying "SMTP receives email"
SMTP only sends; IMAP receives
SMTP = sending; IMAP = receiving
Confusing HTTP and HTTPS
HTTPS adds encryption; HTTP doesn't
HTTPS = HTTP + SSL/TLS encryption
Saying "IP guarantees delivery"
IP does NOT guarantee delivery; TCP does
IP = addressing/routing; TCP = reliability
Saying "protocols are optional"
Without protocols, communication is impossible
Protocols are essential - they are the rules of communication
❓ Practice Questions
Q1: What is a network protocol and why are protocols needed?
Q2: Explain the roles of TCP and IP and how they work together.
Q3: What is the difference between HTTP and HTTPS?
Q4: Which protocol is used for sending email and which for receiving it?
Q5: Explain why protocols are organised in layers.
✅ Answers
A network protocol is a set of rules that governs how data is transmitted between devices. Protocols are needed to ensure different devices can communicate, data arrives correctly and completely, errors are handled, and communication is standardised across different manufacturers and systems.
TCP ensures reliable delivery by breaking data into packets, numbering them, checking they all arrive, and reassembling them in order. IP handles addressing and routing, adding source and destination addresses to packets so they can be delivered across networks. They work together: IP routes packets to the destination, and TCP ensures they all arrive correctly and in order.
HTTP transfers web pages in plain text (no encryption) and is not secure. HTTPS is the same as HTTP but adds SSL/TLS encryption, making the data unreadable to anyone intercepting it. HTTPS also uses digital certificates to verify the server's identity. HTTP uses port 80; HTTPS uses port 443.
SMTP (Simple Mail Transfer Protocol) is used for sending email. IMAP (Internet Message Access Protocol) is used for receiving and reading email.
Protocols are layered so each layer handles one specific aspect of communication. Layers can be changed independently (e.g. switching from Wi-Fi to Ethernet doesn't affect the application layer). Each layer only needs to communicate with the layers directly above and below it, making the system modular and easier to develop and maintain.
🎯 Exam Tips
Know the definition of a protocol: "a set of rules for data communication"
Be able to explain the role of each key protocol (TCP, IP, HTTP, HTTPS, SMTP, IMAP)
Remember: SMTP = sending, IMAP = receiving (not the other way round)
Always mention encryption when comparing HTTP and HTTPS
TCP = reliability; IP = addressing/routing
Protocol layers allow modularity and independence between layers
⚠️ Common Errors
✗ Confusing HTTP and HTTPS — thinking they are different protocols entirely✓ HTTPS is HTTP with encryption (SSL/TLS). They serve the same purpose (web page transfer) but HTTPS encrypts data, making it secure for sensitive information like passwords.
✗ Thinking TCP and UDP serve the same purpose✓ TCP is reliable (checks delivery, resends lost packets, orders data); UDP is fast but unreliable (no delivery check, no ordering). TCP for web/email; UDP for streaming/gaming.
✗ Forgetting what each layer of the TCP/IP model does✓ Application: user-facing protocols (HTTP, FTP, SMTP). Transport: end-to-end delivery (TCP, UDP). Internet: routing packets (IP). Link: physical transmission (Ethernet, WiFi).
✗ Believing a protocol and a port number are the same thing✓ A protocol is a set of rules for communication (e.g. HTTP). A port number identifies the specific service on a device (e.g. HTTP uses port 80). They work together but are different concepts.
✍️ Model Answer
Full-Mark Response
Explain the difference between TCP and UDP, giving one example of when each would be used and justifying your choice. [4 marks]
TCP (Transmission Control Protocol) is a reliable, connection-oriented protocol. It establishes a connection before sending, checks all packets arrive, resends any lost packets, and reassembles data in the correct order.
UDP (User Datagram Protocol) is an unreliable, connectionless protocol. It sends packets without checking delivery or order, making it faster but with no guarantee of arrival.
Example for TCP: Email (SMTP) — emails must arrive completely and in order; reliability matters more than speed. Lost or reordered email content would be unacceptable.
Example for UDP: Live video streaming — speed matters more than reliability; a few lost frames are acceptable but delayed packets cause buffering. TCP's retransmission delays would make the stream lag and buffer.
📊 AO Deep Dive
Assessment Objective Analysis
AO1 (Computational Thinking — 40%): Demonstrate knowledge and understanding of the principles and concepts of computer science, including network protocols: HTTP, FTP, SMTP, TCP and UDP for AQA 8525, OCR J277 & Edexcel 1CP2.
AO2 (Application — 40%): Apply knowledge and understanding of computer science, including network protocols: HTTP, FTP, SMTP, TCP and UDP to analyse problems in computational terms and to design, write and evaluate solutions.
AO3 (Evaluation — 20%): Evaluate the effectiveness, correctness and efficiency of computational solutions, including network protocols: HTTP, FTP, SMTP, TCP and UDP, and make reasoned judgements about trade-offs.
📝 Exam Technique
GCSE Computer Science Exam Tips:
Know key protocols: HTTP/HTTPS (web, port 80/443), FTP (file transfer, 21), SMTP (send email, 25), POP3/IMAP (receive email, 110/143), TCP (reliable delivery), UDP (fast, unreliable), IP (addressing/routing). TCP = reliable, UDP = fast. HTTPS = HTTP + encryption. Know the 4 TCP/IP layers and their purposes. Port numbers identify services.