AQA 8525 GCSE Computer Science · 3.5 Fundamentals of Computer Networks

Stretch tasks Protocols and Layers

Task 1

Quiz Challenge

A quiz game against four computer players, then short and long written answers.

  1. Quiz Blitz12 questions against the clock
  2. Quick Fire4 short answers
  3. Big Think2 long answers

About 20 minutes

Task 2

This or That

Pixel the cat asks 8 questions. Each has two answers: pick the right one.

  • Two answers to every question
  • A fish treat for every right answer
  • Streaks win Pixel shades, then a party hat

About 4 minutes

Task 3

Memory Match

Flip the cards two at a time to match each protocol card to its job card.

  • 12 cards: each protocol has a job
  • One peek at every card
  • Combo points for pairs found in a row

6 pairs, about 4 minutes

Task 4

Sort It

Sort each statement into the right box, like the tick-box tables in the exam.

  • 12 cards to sort into 4 boxes
  • Drag a card, tap a box or press its number
  • Combo points for cards sorted in a row

12 cards, about 4 minutes

The games need JavaScript. Every question is below, with the answers at the end.

Read the lesson: Protocols and Layers

Protocols and Layers: the questions

Quiz Challenge, round 1: Quiz Blitz

  1. Which protocol sends email?

    • SMTP
    • IMAP
    • FTP
    • HTTP
  2. Which protocol retrieves email, leaving it on the server?

  3. What does TCP do that UDP does not?

    • Addresses packets
    • Encrypts web pages
    • Sends email
    • Checks every packet arrives and puts them back in order
  4. Why is UDP used for a live video call?

    • TCP cannot carry video
    • A resent packet would arrive too late to be useful
    • UDP encrypts the video
    • UDP guarantees every frame arrives
  5. Which layer do TCP and UDP belong to?

    • Network
    • Link
    • Transport
    • Application
  6. Which layer adds addresses and routes packets between networks?

    • Application
    • Link
    • Network
    • Transport
  7. HTTPS is HTTP with encryption added.

    • True
    • False
  8. Layering makes a network faster.

    • True
    • False
  9. Which TWO protocols belong to the link layer?

    Tick 2.

    • IP
    • Ethernet
    • Wi-Fi
    • TCP
    • HTTP
  10. A laptop moves from Ethernet to Wi-Fi. Which layer changes?

    • Only the link layer
    • Every layer
    • Only the application layer
    • The transport and network layers
  11. IP checks that every packet arrives.

    • True
    • False
  12. What is a set of rules governing how devices communicate called?

Quiz Challenge, round 2: Quick Fire

  1. Explain the difference between SMTP and IMAP. [2 marks]

  2. Explain why a web page is sent using TCP rather than UDP. [2 marks]

  3. Explain what each layer does to the data it passes down, and what the receiving computer does. [2 marks]

  4. Explain why HTTPS should be used when logging in to a website. [2 marks]

Quiz Challenge, round 3: Big Think

  1. A video streaming company sends live football matches and also lets customers download films to watch later. Discuss which transport protocol should be used for each service. [6 marks]

  2. Explain why network protocols are organised into layers. Use an example in your answer. [6 marks]

This or That: tick the right answer

  1. Sending an email from your phone: which protocol?

    • IMAP
    • SMTP
  2. Reading your email on a second device: which protocol keeps the inbox in sync?

    • SMTP
    • IMAP
  3. An online game sends each player's position many times a second. TCP or UDP?

    • TCP
    • UDP
  4. A bank transfer: TCP or UDP?

    • UDP
    • TCP
  5. Which layer does HTTP work at?

    • Application
    • Transport
  6. Does IP guarantee that packets arrive?

    • No: TCP does the checking
    • Yes: that is its job
  7. Is HTTPS a completely different protocol from HTTP?

    • Yes: it shares nothing with HTTP
    • No: it is HTTP with encryption
  8. Which protocol is designed for moving files between computers?

    • SMTP
    • FTP

Memory Match: match each protocol to its job

ProtocolJob
A TCP1 Addresses packets and routes them between networks
B UDP2 Checks delivery and reassembles packets in order
C IP3 Retrieves email, leaving it on the server
D SMTP4 Web pages, encrypted in transit
E IMAP5 Sends packets with no checking or resending
F HTTPS6 Sends email

Sort It: tick one box in each row

Which layer does each protocol or job belong to?

StatementApplicationTransportNetworkLink
TCP
Wi-Fi
HTTP
Ethernet
Splits data into packets and manages the connection
Sends the data over the physical medium
Provides services to the user's software
IP
IMAP
SMTP
Adds addresses and routes packets between networks
UDP
Answers

Round 1: Quiz Blitz

  1. SMTP SMTP sends, IMAP retrieves.
  2. imap Leaving mail on the server keeps every device in sync.
  3. Checks every packet arrives and puts them back in order TCP numbers, acknowledges and resends packets.
  4. A resent packet would arrive too late to be useful Waiting for resends would add delay to the whole call.
  5. Transport The transport layer splits data into packets and manages the connection.
  6. Network IP works at the network layer.
  7. True Intercepted HTTPS traffic cannot be read.
  8. False Layering makes networking manageable and lets products from different makers work together.
  9. Ethernet; Wi-Fi The link layer sends data over the physical medium.
  10. Only the link layer HTTP, TCP and IP carry on exactly as before.
  11. False IP addresses and routes packets. TCP checks delivery.
  12. protocol Both ends must follow the same rules.

Round 2: Quick Fire

    • SMTP sends email
    • IMAP retrieves email, leaving it on the server
    Model answer

    SMTP is used to send email from a client to a mail server. IMAP is used to retrieve email, leaving it on the server so it stays in sync across devices.

    • TCP acknowledges every packet and resends lost ones
    • A missing part would leave the page incomplete or corrupt
    Model answer

    TCP acknowledges every packet and resends any that are lost, then reassembles them in order. A web page needs every byte to arrive, because a missing part would leave the page incomplete or corrupt.

    • Each layer wraps the data in its own header
    • The receiver unwraps the headers in reverse order
    Model answer

    Each layer wraps the data it receives from the layer above in its own header before passing it down. The receiving computer unwraps the headers in the reverse order, so each layer only deals with the header its counterpart added.

    • HTTPS encrypts the data in transit
    • So an intercepted password cannot be read
    Model answer

    HTTPS encrypts the data travelling between the browser and the server, so if the username and password are intercepted, they cannot be read without the key.

Round 3: Big Think

    • Live matches should use UDP
    • A lost packet would arrive too late, and resending adds delay
    • A few lost packets only cause a brief glitch
    • UDP sends no acknowledgements, so it has less overhead
    • Downloaded films should use TCP
    • TCP acknowledges packets, resends lost ones and reassembles them in order
    • Every byte must arrive, or the file would be corrupt
    • A download is not time critical, so waiting for a resend is fine
    Model answer

    The live matches should use UDP. A lost packet would arrive too late to be useful, and waiting for it to be resent would add delay to the whole stream, whereas a few lost packets only cause a brief glitch. UDP also sends no acknowledgements, so it has less overhead. The downloaded films should use TCP, which acknowledges every packet, resends any that are lost and reassembles them in order. Every byte must arrive, or the file would be corrupt, and since nobody is watching it live, waiting a few seconds for a resend does not matter.

    • It divides a huge problem into manageable parts
    • Each layer handles one part of the job
    • Layers can be changed independently
    • For example, Ethernet to Wi-Fi changes only the link layer
    • Different manufacturers can specialise in one layer
    • Products work together if they follow the standard
    • Faults are easier to isolate
    • For example, a site loading by IP address but not by name
    Model answer

    Layering divides the huge problem of networking into manageable parts, with each layer handling one part of the job. Each layer can be changed independently: moving a laptop from Ethernet to Wi-Fi changes only the link layer, while HTTP, TCP and IP carry on exactly as before. Different manufacturers can specialise in one layer, and as long as each follows the standard for its layer, their products work together. Faults are also easier to isolate: if a site loads by its IP address but not by its name, the problem is name resolution, not the cable.

This or That

  1. SMTP SMTP sends. IMAP retrieves, leaving the mail on the server.
  2. IMAP IMAP leaves the mail on the server, so every device sees the same inbox.
  3. UDP A late position is useless, so resending it would only add lag.
  4. TCP Every byte must arrive, so lost packets must be resent.
  5. Application HTTP provides a service to the browser, so it is an application layer protocol.
  6. No: TCP does the checking IP addresses and routes packets. TCP acknowledges them and resends any that are lost.
  7. No: it is HTTP with encryption HTTPS does the same job as HTTP, but intercepted traffic cannot be read.
  8. FTP FTP is the File Transfer Protocol. SMTP sends email.

Memory Match

  • A 2 TCP: Checks delivery and reassembles packets in order
  • B 5 UDP: Sends packets with no checking or resending
  • C 1 IP: Addresses packets and routes them between networks
  • D 6 SMTP: Sends email
  • E 3 IMAP: Retrieves email, leaving it on the server
  • F 4 HTTPS: Web pages, encrypted in transit

Sort It

  1. Transport TCP TCP splits data into packets and checks delivery: transport layer.
  2. Link Wi-Fi Wi-Fi carries frames over radio: link layer.
  3. Application HTTP HTTP delivers web pages to the browser: an application layer service.
  4. Link Ethernet Ethernet carries frames over cable: link layer.
  5. Transport Splits data into packets and manages the connection That is the transport layer's job.
  6. Link Sends the data over the physical medium That is the link layer's job.
  7. Application Provides services to the user's software That is the application layer's job.
  8. Network IP IP addresses and routes packets: network layer.
  9. Application IMAP IMAP retrieves email for the user's mail program: application layer.
  10. Application SMTP Email protocols serve the user's software, so they are application layer.
  11. Network Adds addresses and routes packets between networks That is the network layer's job.
  12. Transport UDP UDP is the transport layer's fast, unchecked option.