Back to the topic

The mark scheme starts on a new page, so you can print pages one and two for a student and keep the last page yourself. Everything prints in black on white whichever theme you are using.

AQA GCSE CS · 3.5.3 to 3.5.4

Protocols and Layers

Section A: 10 multiple choice questions, 10 marks. Section B: 4 written questions, 12 marks. Total 22 marks.

Name

Class

Date

Mark  / 22

Section A

Circle the letter of the correct answer. One mark each.

  1. 1Which protocol is used to send an email?1
    1. AFTP
    2. BIMAP
    3. CHTTP
    4. DSMTP
  2. 2What is the main difference between TCP and UDP?1
    1. ATCP checks that packets arrive and reassembles them, UDP does not
    2. BTCP works only on wired networks
    3. CUDP encrypts data and TCP does not
    4. DTCP is used for websites and UDP for files
  3. 3Why is UDP used for live video calls?1
    1. AUDP encrypts the video automatically
    2. BVideo files are too large for TCP
    3. CA resent packet would arrive too late to be useful, and waiting for it would add delay
    4. DTCP does not work with cameras
  4. 4What does the Internet Protocol do?1
    1. AAddresses packets and routes them between networks
    2. BGuarantees that packets arrive
    3. CDelivers web pages to a browser
    4. DEncrypts data before it is sent
  5. 5At which layer of the four layer model does HTTP operate?1
    1. AApplication
    2. BTransport
    3. CNetwork
    4. DLink
  6. 6What is added by each layer as data passes down the stack?1
    1. AA copy of the data
    2. BA checksum only
    3. CThe user's IP address
    4. DIts own header
  7. 7Why is layering used in network protocols?1
    1. AIt encrypts data automatically
    2. BIt breaks a complex task into parts that can be changed independently
    3. CIt reduces the number of protocols needed to one
    4. DIt makes the network transmit faster
  8. 8What does HTTPS add to HTTP?1
    1. AFaster page loading
    2. BEncryption, so intercepted traffic cannot be read
    3. CAutomatic compression of images
    4. DA guarantee that packets arrive
  9. 9Which protocol would be most appropriate for downloading a program installer?1
    1. AIMAP, because it leaves a copy on the server
    2. BSMTP, because it handles large files
    3. CTCP, because every byte must arrive intact
    4. DUDP, because speed matters most
  10. 10A laptop is moved from a wired connection to Wi-Fi and everything still works. Which principle does this demonstrate?1
    1. ATCP converts itself to UDP
    2. BLayers can be changed independently of one another
    3. CProtocols are optional
    4. DWireless and wired use the same cable standard

Section B

Answer in the space provided. The number of marks tells you how many separate points to make.

  1. 1StateState what is meant by a protocol.1
  2. 2ExplainExplain why TCP would be used to download a file but UDP would be used for a live video call.4
  3. 3DescribeDescribe two reasons why network protocols are arranged in layers.4
  4. 4ExplainA school website changes from HTTP to HTTPS. Explain the benefit to users.3

Mark scheme

Section A

1D2A3C4A5A6D7B8B9C10B

Section B

1 State what is meant by a protocol. 1

One mark for each of the following, to a maximum of 1.

  • A set of rules governing how devices communicate

Model answer. A protocol is a set of rules that governs how devices communicate, which both the sending and the receiving device must follow for the communication to be understood.

2 Explain why TCP would be used to download a file but UDP would be used for a live video call. 4

One mark for each of the following, to a maximum of 4.

  • TCP checks that every packet arrives and reassembles them in order
  • A downloaded file would be corrupt if any part were missing
  • UDP sends packets without checking or resending, so it is faster
  • A resent video packet would arrive too late to be useful, and waiting for it would add delay

Model answer. TCP numbers every packet, waits for the receiver to acknowledge each one, resends anything that fails to arrive and puts the packets back into the right order at the far end. That is essential for a file download, because a file with a missing or misordered section is corrupt and will not work at all. UDP does none of that checking, which makes it faster and removes the delay that waiting for acknowledgements introduces. For a live video call that trade is the right one: a packet that was lost and then resent would arrive after the fraction of a second it belonged to had already been displayed, so it is useless, and the delay caused by waiting for it would degrade the whole call for everyone.

3 Describe two reasons why network protocols are arranged in layers. 4

One mark for each of the following, to a maximum of 4.

  • Each layer handles one part of the task, so the problem is broken into manageable parts
  • Developers can work on one layer without understanding the whole system
  • A layer can be changed or replaced without affecting the layers above or below
  • Gives an example, such as changing from Ethernet to Wi-Fi affecting only the link layer

Model answer. The first reason is that layering divides a very large problem into parts small enough to handle. Each layer is responsible for one aspect of communication and only has to interact with the layer directly above and below it, so a developer working on an email client does not need to understand how a signal is placed onto a cable. The second is independence. Because each layer only relies on the interface the next one presents, a layer can be replaced entirely without disturbing the others. Moving a laptop from an Ethernet cable to Wi-Fi changes the link layer completely, but IP, TCP and HTTP carry on unchanged, which is why no application has to be rewritten when the connection type changes.

4 A school website changes from HTTP to HTTPS. Explain the benefit to users. 3

One mark for each of the following, to a maximum of 3.

  • HTTPS encrypts the data before it is transmitted
  • Intercepted traffic cannot be read without the key
  • So personal data such as logins and messages is protected in transit

Model answer. HTTPS carries the same HTTP requests and responses over an encrypted connection, so the data is scrambled before it leaves the user's device and is only unscrambled at the far end. Anybody who intercepts the traffic in between, for example on a shared public network, sees only unreadable data rather than the actual content. That matters because users log in to the school site and may send personal information through it, and under plain HTTP a username and password would travel as readable text that anyone on the same network could capture.