Skip to the worksheet
Revision Library
Choose a subject

Network Protocols and Layers - Worksheets, Questions and Revision

17 original exam-style questions - 6 pages of questions with a full mark scheme - free printable PDF.

Grades 1-9

This topic is chapter 8 of GCSE Computer Science Topic Workbook 1 and chapter 8 of GCSE Computer Science 10-Minute Tests.

Revision Library
revisionlibrary.co.uk
GCSE · Computer Science

1.8 Network Protocols and Layers

OCR J277 · Calculators not allowed · about 65 minutes
Total Marks
Name: _______________________________    Date: ____ / ____ / ______
Answer ALL questions. Show all your working.
1
State what the term 'bandwidth' means, and state the unit it is normally measured in for a home internet connection.
(Total for Question 1 is 2 marks)
2
State the purpose of the IMAP and POP3 protocols.
(Total for Question 2 is 3 marks)
3
Every device connecting to the internet needs both a MAC address and an IP address. Explain the difference between a MAC address and an IP address.
(Total for Question 3 is 4 marks)
4
Explain the purpose of DNS (the Domain Name System), and why it is needed.
(Total for Question 4 is 3 marks)
5
Describe, step by step, what happens at each layer of the TCP/IP model when a user's laptop sends an email to a friend on a different network, from the moment the user clicks 'Send' to the moment the data leaves the laptop.
(Total for Question 5 is 6 marks)
6
A protocol is a set of agreed rules, but standards also matter for hardware. State one reason why network hardware, such as network cards and routers, from different manufacturers needs to follow common standards as well as common protocols.
(Total for Question 6 is 2 marks)
7
Describe the client-server request-response cycle that takes place when a browser loads a web page, using the terms request and response in your answer.
(Total for Question 7 is 3 marks)
8
A router forwards packets between different networks. Explain why a router needs to examine the IP address in the header of each packet it receives.
(Total for Question 8 is 3 marks)
9
Different network protocols are used for different purposes.
(a)Which protocol is used to request and receive web pages from a web server?(1)
  • A) SMTP
  • B) HTTP
  • C) FTP
  • D) IMAP
(b)Which protocol is a secure, encrypted version of the protocol used to transfer web pages?(1)
  • A) HTTPS
  • B) FTP
  • C) TCP
  • D) POP3
(c)Which protocol is used to send email from a client to a mail server?(1)
  • A) SMTP
  • B) HTTP
  • C) FTP
  • D) DNS
(d)Which protocol is used to transfer files between computers on a network?(1)
  • A) FTP
  • B) SMTP
  • C) IMAP
  • D) HTTPS
(Total for Question 9 is 4 marks)
10
State two items of information typically included in a TCP segment's header, other than the payload (data) itself.
(Total for Question 10 is 2 marks)
11
Explain why HTTPS is used instead of HTTP when a customer enters their card details on an online shop's website.
(Total for Question 11 is 3 marks)
12
Different protocols operate at different layers of the TCP/IP model.
(a)State one protocol that operates at the application layer, and state its purpose.(2)
(b)State the protocol that operates at the transport layer to break data into segments, add sequence numbers, and check that all segments arrive correctly.(1)
(c)State the protocol that operates at the internet layer to address and route packets between networks.(1)
(Total for Question 12 is 4 marks)
13
A school is choosing a protocol to stream a live assembly to parents watching at home in real time. State which protocol should be used and give two reasons for your choice.
(Total for Question 13 is 3 marks)
14
A file of 2400 bytes is split into equal-sized packets for transmission across a network. Each packet has a fixed overhead of 40 bytes of header data, in addition to its share of the file's payload data.
(a)The file is split into 6 equal packets of payload data. Calculate the number of payload bytes carried in each packet.(2)
(b)Calculate the total size of one packet, including its header, and hence calculate the percentage of one packet's total size that is header data. Give your answer to 1 decimal place.(3)
(Total for Question 14 is 5 marks)
15
A librarian downloads a 45 megabyte software update over a network connection with an average transfer rate of 15 megabits per second. Calculate the download time in seconds.
(Total for Question 15 is 4 marks)
16
TCP and UDP are both transport-layer protocols, but they work differently. Explain the differences between TCP and UDP.
(Total for Question 16 is 4 marks)
17
A programmer is designing a new online multiplayer racing game. Player position updates must be sent between players many times per second; a slightly late or missing update simply causes a brief visual glitch, and a newer update quickly replaces it. State, with a reason, whether TCP or UDP should be used for sending these position updates.
(Total for Question 17 is 3 marks)
Mark scheme · 1.8 Network Protocols and Layers

Question 1

  • bandwidth is the maximum amount of data that can be transferred over a network connection in a given time, oeB1
  • megabits per second (Mbps), or an equivalent unit (e.g. Gbps), oeB1
  • Answer: Bandwidth is the maximum amount of data that can be transferred in a given time, usually measured in megabits per second (Mbps).

Question 2

  • IMAP and POP3 are both protocols used to retrieve/receive email from a mail server, oeB1
  • IMAP keeps a synchronised copy of email on the server, so the same mailbox can be viewed from multiple devices, oeB1
  • POP3 typically downloads email from the server onto one device (and may then remove it from the server), oeB1
  • Answer: Both retrieve email from a mail server; IMAP keeps mail synchronised on the server for viewing on multiple devices, while POP3 downloads mail onto a single device.

Question 3

  • a MAC address is a unique identifier assigned to a network interface at the point of manufacture, and it never changes, oeB1
  • an IP address identifies a device's location on a particular network, and can change (e.g. each time the device joins a different network), oeB1
  • a MAC address alone cannot be used to route data across the internet, because it does not indicate which network the device is on, oeB1
  • so the IP address is used to route data between networks, while the MAC address is used to deliver the data to the correct device once it reaches the destination network, oeB1
  • Answer: A MAC address is a permanent, manufacturer-assigned identifier used to deliver data to the right device on a network; an IP address identifies the device's network location and can change, so it is used to route data across the internet.

Question 4

  • DNS translates/converts a human-readable domain name (e.g. www.example.co.uk) into the numeric IP address of the web server hosting that site, oeB1
  • it works like a directory/look-up service that the browser queries before it can connect to the correct server, oeB1
  • it is needed because domain names are much easier for humans to remember and type than long numeric IP addresses, while computers still route data using IP addresses, oeB1
  • Answer: DNS translates a human-readable domain name into the numeric IP address of the correct server, acting as a directory service, because domain names are easier for humans to remember than IP addresses.

Question 5

  • Level 1 One or two layers, or one relevant protocol, are named with little explanation of what happens at each stage. Little relevant technical terminology is used.1-2
  • Level 2 Several layers are named in a broadly sensible order, with some explanation of what happens at each one, but the description may be incomplete or lack detail in places. Relevant technical terminology is generally used correctly.3-4
  • Level 3 A clear, well-ordered description covers all four layers, correctly names at least one relevant protocol at each of the application, transport and internet layers, and explains what each layer adds/does to the data. Relevant technical terminology is used correctly throughout.5-6
  • Indicative content:
    • Application layer: the email software uses a protocol such as SMTP to format the email message ready to be sent
    • Transport layer: TCP breaks the message into smaller segments, adds sequence numbers, and will later request that any lost segments are resent
    • Internet layer: IP adds the source and destination IP addresses to each segment (now called a packet), so it can be routed across networks
    • Link layer: the packets are converted into a form (e.g. as frames with a MAC address) that can be transmitted over the laptop's physical connection, such as Wi-Fi or Ethernet
    • The data then leaves the laptop and is passed on, hop by hop, across intermediate devices until it reaches the friend's network
    • A strong answer explains that each layer adds its own information/header to the data before passing it down to the next layer

Question 6

  • so that hardware made by different manufacturers can physically connect to, and correctly interpret signals from, the same network, oeB1
  • without shared standards, a customer would be limited to buying every piece of networking hardware from a single manufacturer, which would be far more restrictive/expensive, oeB1
  • Answer: Common standards let hardware from different manufacturers connect and communicate correctly; without them, customers would be locked into buying all their equipment from one manufacturer.

Question 7

  • the browser (client) sends a request to the web server, specifying which page/resource it wants, oeB1
  • the web server processes the request and sends back a response, which contains the requested page/data (or an error if it cannot be found), oeB1
  • the browser then displays the page contained in the response to the user, oeB1
  • Answer: The browser (client) sends a request for a page to the web server; the server sends back a response containing the page, which the browser then displays.

Question 8

  • the destination IP address tells the router which network the packet needs to reach, oeB1
  • the router uses this address to decide the best next step/route to forward the packet along, towards its destination, oeB1
  • without reading the IP address, the router would not know where to send the packet next, so it could not be delivered to the correct network, oeB1
  • Answer: The router reads the destination IP address to decide which network/route to forward the packet along; without it, the router could not deliver the packet to the correct destination.

Question 9

  • (a) B caoB1
  • (a) Answer: B) HTTP
  • (b) A caoB1
  • (b) Answer: A) HTTPS
  • (c) A caoB1
  • (c) Answer: A) SMTP
  • (d) A caoB1
  • (d) Answer: A) FTP

Question 10

  • any one of: source port number, destination port number, sequence number, acknowledgement number, checksumB1
  • a second, different item from the same listB1
  • Answer: For example: sequence number and destination port number.

Question 11

  • HTTPS encrypts the data sent between the browser and the web server, oeB1
  • so that if the data is intercepted while travelling across the network, it cannot be read/understood by the attacker, oeB1
  • this protects sensitive data, such as card details, from being stolen, whereas plain HTTP sends data unencrypted, oeB1
  • Answer: HTTPS encrypts data sent between the browser and server, so intercepted card details cannot be read, unlike plain HTTP which sends data unencrypted.

Question 12

  • (a) a valid application-layer protocol, e.g. HTTP, HTTPS, FTP, SMTP, IMAP, POP3B1
  • (a) a correct purpose for the protocol named, matching its standard useB1
  • (a) Answer: For example, HTTP - used to request and transfer web pages between a browser and a web server.
  • (b) TCP, caoB1
  • (b) Answer: TCP
  • (c) IP, caoB1
  • (c) Answer: IP

Question 13

  • UDP, caoB1
  • because it has less overhead/does not wait for acknowledgements or resend lost data, so it transmits data faster, oeB1
  • for a live stream, keeping the video/audio smooth and close to real time matters more than every single packet arriving perfectly (a brief glitch is preferable to a delay), oeB1
  • Answer: UDP, because it transmits with less delay than TCP, and for a live stream staying close to real time matters more than every packet arriving perfectly.

Question 14

  • (a) 2400 / 6 shown as the method, oeM1
  • (a) 400, caoA1
  • (a) Answer: 400 bytes
  • (b) total packet size = 400 + 40 = 440 bytes, oeM1
  • (b) (40 / 440) x 100 shown as the method, oeM1
  • (b) 9.1%, awrtA1
  • (b) Answer: 440 bytes total; 9.1% is header data

Question 15

  • 45 megabytes correctly converted to megabits: 45 x 8 = 360 megabits, oeM1
  • 360 / 15 shown as the method, oeM1
  • 24, caoA1
  • correctly stated in seconds, caoB1
  • Answer: 24 seconds

Question 16

  • TCP is connection-oriented: it establishes a connection, numbers segments, and gets acknowledgements, resending any segment that is lost, so data always arrives complete and in order, oeB1
  • this makes TCP reliable but adds overhead/delay, so it is used where accuracy matters more than speed, e.g. loading a web page or sending a file, oeB1
  • UDP does not establish a connection, number segments or resend lost data, so some data may arrive out of order or be lost, oeB1
  • this makes UDP faster with less overhead, so it is used where speed matters more than perfect accuracy, e.g. live video/voice calls or online gaming, oeB1
  • Answer: TCP is connection-oriented and reliable (acknowledges and resends lost data) but slower; UDP has no connection or resending, so it is faster but less reliable, suiting real-time applications like video calls or gaming.

Question 17

  • UDP, caoB1
  • because it does not wait for acknowledgements or resend lost data, so updates are sent with the lowest possible delay, oeB1
  • which suits this scenario, since a missing update is quickly replaced by the next one and does not need to be resent, whereas TCP's extra reliability would only add unnecessary delay, oeB1
  • Answer: UDP, because its lower delay suits frequent, quickly-superseded updates, whereas TCP's reliability features would only add unwanted delay here.

Mark your answers

Check answers without an account. Some answers can be checked automatically; use the mark scheme to mark the rest.

Question 1

2 marks
Did your answer earn the marks?

Question 2

3 marks
Did your answer earn the marks?

Question 3

4 marks
Did your answer earn the marks?

Question 4

3 marks
Did your answer earn the marks?

Question 5

6 marks
Did your answer earn the marks?

Question 6

2 marks
Did your answer earn the marks?

Question 7

3 marks
Did your answer earn the marks?

Question 8

3 marks
Did your answer earn the marks?

Question 9(a)

1 mark
Choose an answer

Question 9(b)

1 mark
Choose an answer

Question 9(c)

1 mark
Choose an answer

Question 9(d)

1 mark
Choose an answer

Question 10

2 marks
Did your answer earn the marks?

Question 11

3 marks
Did your answer earn the marks?

Question 12

4 marks
Did your answer earn the marks?

Question 13

3 marks
Did your answer earn the marks?

Question 14

5 marks
Did your answer earn the marks?

Question 15

4 marks

Question 16

4 marks
Did your answer earn the marks?

Question 17

3 marks
Did your answer earn the marks?
Mark my answers

Keep going

Worksheets are written for Revision Library and come with a full mark scheme; a few English packs quote an out-of-copyright text, and name it on the page. Exam board names and specification codes say which qualification a pack suits: we are not affiliated with, endorsed by or approved by any exam board, and no past-paper question is reproduced here. Rights queries: hello@revisionlibrary.co.uk