TopMyGrade

GCSE/Computer Science/AQA

CS5.4Protocols: TCP/IP stack; HTTP, HTTPS, FTP, SMTP, IMAP, IP, TCP, UDP, Ethernet and Wi-Fi protocols

Notes

Network protocols and the TCP/IP stack

A protocol is an agreed set of rules for communication. Without protocols, computers couldn't understand each other. AQA's GCSE expects you to recognise key protocols and how they fit into the TCP/IP layered model.

Why protocols?

  • Compatibility — devices from different manufacturers interoperate.
  • Reliability — agreed handling of errors, ordering, retransmission.
  • Efficiency — known headers and structure mean fast parsing.
  • Security — encrypted protocols (HTTPS) protect data.

Key protocols you must know

TCP (Transmission Control Protocol)

  • Reliable, connection-oriented delivery — the receiver acknowledges every chunk.
  • Splits data into packets, numbers them, retransmits lost packets, reassembles in order.
  • Used by HTTP, HTTPS, FTP, SMTP, IMAP — anything where every byte matters.

IP (Internet Protocol)

  • Handles addressing and routing of packets across networks.
  • Each device gets an IP address.
  • Two versions: IPv4 (32-bit, e.g. 192.168.1.1) and IPv6 (128-bit, e.g. 2001:db8::1) — IPv6 created because IPv4 addresses ran out.

UDP (User Datagram Protocol)

  • Connectionless, no acknowledgements, no retransmission.
  • Faster than TCP because no overhead.
  • Used for streaming, voice/video calls, online gaming — speed matters more than perfect delivery.

HTTP / HTTPS

  • HTTP (HyperText Transfer Protocol) — fetches web pages.
  • HTTPS is HTTP over TLS/SSL — encrypts the data so eavesdroppers can't read it. Indicated by the padlock in browsers.

FTP (File Transfer Protocol)

  • Transfers files between client and server.
  • Largely replaced by HTTPS-based downloads and SFTP/SSH for security.

SMTP, IMAP / POP3

  • SMTP (Simple Mail Transfer Protocol) — sending email.
  • IMAP (Internet Message Access Protocol) — reading email; messages stay on the server, accessible from multiple devices.
  • POP3 — older alternative; downloads emails to one device, often deleting from server.

Ethernet and Wi-Fi

  • Lower-level protocols handling how data moves on a physical wire (Ethernet) or radio (Wi-Fi).
  • Define frames, MAC addressing, collision avoidance.

The TCP/IP 4-layer model

A layered model separates concerns. Each layer talks to the layer below to do its job. The TCP/IP model has four layers (covered in detail in CS5.6):

  1. Application — what the user actually does (HTTP, HTTPS, FTP, SMTP, IMAP).
  2. Transport — reliable delivery between endpoints (TCP, UDP).
  3. Internet (or Network) — addressing and routing across networks (IP).
  4. Link — physical medium and local network (Ethernet, Wi-Fi).

When you load a web page, the request flows down through the layers on your device, across the network, and up through the layers on the server. The reply takes the reverse trip.

Worked exampleWorked example — fetching a web page

You type https://example.com into your browser:

  1. Application layer — browser builds an HTTPS request.
  2. Transport layer — TCP splits the request into numbered packets.
  3. Internet layer — IP attaches source and destination addresses; routes packets across the internet.
  4. Link layer — Ethernet/Wi-Fi puts each packet on the physical wire/airwave.
  5. Server side — packets arrive, link layer hands up to IP, IP to TCP, TCP reassembles, application layer (web server) sees the HTTPS request.
  6. Reply travels back the same way.

Common mistakesPitfalls

  1. Saying TCP is faster than UDP. UDP is faster because no acknowledgements; TCP is more reliable.
  2. Confusing IP with TCP. IP routes; TCP ensures reliable delivery.
  3. Treating HTTPS as a different protocol layer than HTTP. HTTPS is HTTP wrapped in TLS — same application layer.
  4. Forgetting why we layer. Lets us swap one layer (e.g. Wi-Fi for Ethernet) without rewriting others.
  5. Listing wrong layer. SMTP is application, not transport; TCP is transport, not application.

Why use TCP vs UDP?

ScenarioProtocolWhy
Loading a web pageTCP/HTTPEvery byte matters
Streaming live videoUDPSlight loss OK; latency must be low
Sending an emailTCP/SMTPMust arrive in full
Online multiplayer gameUDPSpeed > perfection
Downloading a fileTCP/HTTPSFile must be exact

Try thisQuick check

State the protocol for each task:

  • Loading a website: HTTP/HTTPS.
  • Sending email: SMTP.
  • Reading email from server: IMAP (or POP3).
  • Reliable transport: TCP.
  • Streaming game audio: UDP.
  • Routing across networks: IP.

AI-generated · claude-opus-4-7 · v3-deep-computer-science

Practice questions

Try each before peeking at the worked solution.

  1. Question 13 marks

    Define protocol

    Define protocol in the context of computer networks.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  2. Question 24 marks

    TCP role

    Describe the role of TCP in network communication.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  3. Question 33 marks

    IP role

    Describe the role of IP (Internet Protocol).

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  4. Question 44 marks

    TCP vs UDP

    Compare TCP and UDP.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  5. Question 53 marks

    HTTP vs HTTPS

    Explain the difference between HTTP and HTTPS.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  6. Question 62 marks

    Email protocols

    State the protocol used to (a) send email, and (b) read email from a server.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

  7. Question 74 marks

    When use UDP?

    Give two scenarios where UDP is preferred over TCP, with reasons.

    Ask AI about this

    AI-generated · claude-opus-4-7 · v3-deep-computer-science

Flashcards

CS5.4 — Protocols and TCP/IP stack

12-card SR deck for AQA GCSE Computer Science topic CS5.4

12 cards · spaced repetition (SM-2)