OCR H446 A Level Computer Science · 1.3 Exchanging Data
Stretch tasks Networks and Web Technologies
Quiz Challenge
A quiz game against four computer players, then short and long written answers.
- Quiz Blitz12 questions against the clock
- Quick Fire4 short answers
- Big Think2 long answers
About 20 minutes
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
Memory Match
Flip the cards two at a time to match each term card to its meaning card.
- 12 cards: each term has a meaning
- One peek at every card
- Combo points for pairs found in a row
6 pairs, about 4 minutes
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
Code Word
Guess the lesson's secret words. Every guess shows which letters are right.
- A clue for every word
- Tiles turn green, amber or grey after each guess
- Fewer guesses win more points
3 words, about 4 minutes
Link Up
12 tiles hide 3 groups of 4. Work out what links them.
- Pick four tiles that belong together
- Four slips and the round is over
- Fewer slips win more points
3 groups, about 3 minutes
Bug Hunt
Two statements are true and one has a bug. Catch the bug before it gets away.
- Three statements in every round
- Tap the one with the mistake
- Streaks win bonus points
5 rounds, about 4 minutes
Brain games
Train your brain on this lesson
Logic, memory and speed, built from this lesson's own key ideas. Win up to three diamonds in each game.
Odd One Out
Four tiles: three share a link and one does not. Spot the odd one out, then see what links the rest.
- Three belong together, one does not
- A hint shows the link, for fewer points
- Quick answers and streaks win more
8 rounds, about 3 minutes
Memory Flash
Study the term cards, then they flip over. Find the card that goes with each clue, from memory.
- Three levels: 3, 4 and 6 cards
- Two tries to find each card
- Streaks win bonus points
3 levels, about 4 minutes
Fact or Fib
Statements fly in one at a time. Is each one a fact or a fib? Decide fast.
- Swipe, tap or use the arrow keys
- Every fib comes with its fix
- Streaks multiply your points
12 statements, about 3 minutes
The final challenge
City Run
Race a robot cat on inline skates through a neon cyber city, from Neon Station to the Hyper Tunnel. Every question is a row of neon gates across the tracks: skate through the one with the right answer, dodge the trains and barriers, and grab diamonds.
- 20 questions from this lesson, in four parts of the city
- Swipe, tap or use the arrow keys
- Dodge trains and holograms, and jump crates and cones
20 questions, about 6 minutes
Bonus challenge
Neon Roll
Roll a glowing ball down an endless neon slope, past towers lit up with neon signs of Pixel the cat. Steer, jump the gaps and dodge the blocks. Questions from this lesson wait at gates along the way: every right answer keeps the ball rolling.
- Questions from this lesson at every gate
- Hold the arrow keys or a side of the slope to steer
- 8 right answers win two diamonds, 15 win three
Endless, about 5 minutes
The games need JavaScript. Every question is below, with the answers at the end.
Read the lesson: Networks and Web Technologies
Networks and Web Technologies: the questions
Quiz Challenge, round 1: Quiz Blitz
At which layer of the TCP/IP stack does TCP operate?
- Network
- Link
- Transport
- Application
Why is UDP preferred for live video calls?
- UDP puts the packets back in order
- A late packet is worse than a missing one, and UDP is faster
- UDP guarantees that every packet arrives
- UDP encrypts the video
In packet switching, packets from one message can take different routes.
- True
- False
Order the TCP/IP layers from the top of the stack down.
Number these 1 to 4.
- Transport
- Network
- Link
- Application
Which TWO protocols work at the application layer?
Tick 2.
- HTTP
- SMTP
- TCP
- IP
- UDP
What does DNS do?
- Resolves domain names into IP addresses
- Gives devices their MAC addresses
- Encrypts web traffic
- Splits data into packets
Why must form data be validated on the server, even if it was checked in the browser?
- Servers are faster than browsers
- Browsers cannot run validation code
- It makes the page load faster
- Users can disable JavaScript or send a crafted request
PageRank simply counts how many links point to a page.
- True
- False
Which file asks web crawlers to avoid parts of a site?
What does a proxy server do?
- Sits between clients and the internet, hiding their addresses and caching content
- Gives every device its own public IP address
- Routes packets between continents
- Turns domain names into IP addresses
What is the damping factor in PageRank for?
- Modelling a user who eventually stops following links
- Counting a page's outgoing links
- Removing pages that have no links
- Speeding up the web crawler
Which is a weakness of peer to peer networks?
- No central management or backup
- A single point of failure
- All traffic passes through one server
- Every file is stored in one place
Quiz Challenge, round 2: Quick Fire
Explain why network protocols are arranged in layers. [2 marks]
Describe encapsulation as data passes down the TCP/IP stack. [2 marks]
Explain why client side validation alone does not make a form secure. [2 marks]
Give one advantage and one disadvantage of packet switching. [2 marks]
Quiz Challenge, round 3: Big Think
Explain how PageRank decides how important a web page is. [6 marks]
Compare client server and peer to peer networks. [4 marks]
This or That: tick the right answer
Which protocol guarantees packets arrive in order?
- UDP
- TCP
At which layer are IP addresses added?
- Network
- Link
Which gives guaranteed bandwidth for a whole call?
- Packet switching
- Circuit switching
Where does client side code run?
- In the user's browser
- On the web server
Which processing should check a payment?
- Server side
- Client side
Which lets many devices share one public IP address?
- Network address translation
- A web crawler
Which firewall method tracks whole connections?
- Packet filtering
- Stateful inspection
What does a search engine search when you type a query?
- Its index
- The whole web
Memory Match: match each term to its meaning
| Term | Meaning |
|---|---|
| A Encapsulation | 1 Turns domain names into IP addresses |
| B DNS | 2 Follows links to collect pages for indexing |
| C Proxy server | 3 Each layer adds its own header |
| D Web crawler | 4 A dedicated path for the whole communication |
| E Damping factor | 5 Hides client addresses and caches content |
| F Circuit switching | 6 Models a user who stops following links |
Sort It: tick one box in each row
Which layer of the TCP/IP stack does each card belong to?
| Statement | Application | Transport | Network | Link |
|---|---|---|---|---|
| TCP and UDP | ||||
| Ethernet and WiFi | ||||
| Splits data into segments | ||||
| Adds source and destination IP addresses | ||||
| Routes packets across networks | ||||
| IP and ICMP | ||||
| Adds port numbers | ||||
| HTTP and HTTPS | ||||
| Physical transmission on the local network | ||||
| DNS lookups | ||||
| SMTP and IMAP for email | ||||
| Adds MAC addresses |
Code Word: write the word that fits each clue
A small unit of data with addresses and a sequence number, routed on its own. (6 letters)
A program that follows links to fetch pages for a search engine's index. (7 letters)
What each layer adds to the data as it passes down the stack. (6 letters)
Link Up: find the three groups
These 12 tiles make 3 groups of 4. Write each group in the table, and what links its tiles.
- Logging users in
- Live character count
- Database queries
- Taking payments
- Final validation
- Instant form checks
- HTTP
- Dropdown menus
- Page animations
- IMAP
- SMTP
- FTP
| Group | The 4 tiles | What links them |
|---|---|---|
| Group 1 | ||
| Group 2 | ||
| Group 3 |
Bug Hunt: tick the statement that is wrong
In each set, two statements are true and one has a mistake in it.
- UDP resends any packet that goes missing.
- TCP guarantees delivery and puts packets in order.
- UDP is connectionless and faster than TCP.
- The transport layer adds port numbers.
- The network layer adds IP addresses and routes packets.
- The application layer adds MAC addresses.
- DNS resolves domain names into IP addresses.
- DNS results are cached, so repeated lookups are fast.
- A DNS lookup always starts again from the root servers.
- Client side code runs in the browser.
- Client side validation alone makes a form secure.
- Server side code is hidden from the user.
- PageRank treats each link to a page as a vote for that page.
- Votes from important pages count for more.
- Linking to more pages gives each one a bigger vote.
Brain game: Odd One Out
Three tiles in each set share a link. Tick the odd one out, then write what links the other three.
- Final validation
- HTTP
- IMAP
- FTP
What links the other three?
- Live character count
- Final validation
- Instant form checks
- Dropdown menus
What links the other three?
- Live character count
- Database queries
- Taking payments
- Final validation
What links the other three?
- Database queries
- HTTP
- IMAP
- FTP
What links the other three?
- Live character count
- Instant form checks
- HTTP
- Page animations
What links the other three?
- Logging users in
- Database queries
- Final validation
- FTP
What links the other three?
Brain game: Memory Flash, on paper
Which term means this? Write your answer from memory.
Models a user who stops following links
Turns domain names into IP addresses
Follows links to collect pages for indexing
Each layer adds its own header
A dedicated path for the whole communication
Hides client addresses and caches content
Brain game: Fact or Fib
Tick Fact if the statement is true and Fib if it is not.
In packet switching, packets from one message can take different routes.
- Fact
- Fib
Client side validation alone makes a form secure.
- Fact
- Fib
PageRank simply counts how many links point to a page.
- Fact
- Fib
DNS results are cached, so repeated lookups are fast.
- Fact
- Fib
Client side code runs in the browser.
- Fact
- Fib
Votes from important pages count for more.
- Fact
- Fib
A DNS lookup always starts again from the root servers.
- Fact
- Fib
The application layer adds MAC addresses.
- Fact
- Fib
PageRank treats each link to a page as a vote for that page.
- Fact
- Fib
Linking to more pages gives each one a bigger vote.
- Fact
- Fib
UDP resends any packet that goes missing.
- Fact
- Fib
DNS resolves domain names into IP addresses.
- Fact
- Fib
City Run
City Run is a race through a neon cyber city, played on screen. It asks 20 of the questions above, from the quiz, This or That, Memory Flash and Fact or Fib.
Neon Roll
Neon Roll is a ball rolling down an endless neon slope, played on screen. Every right answer keeps it rolling. It asks the questions above, from the quiz, This or That, Memory Flash and Fact or Fib.
Answers
Round 1: Quiz Blitz
- Transport TCP splits data into segments, adds port numbers and makes delivery reliable, which is the transport layer's job.
- A late packet is worse than a missing one, and UDP is faster UDP skips the checking and resending, so it is faster. For live video, waiting for a lost packet would only make things worse.
- True Each packet is routed independently and reassembled at the destination using sequence numbers.
- Application → Transport → Network → Link Data passes down through application, transport, network and link at the sender, gaining a header at each.
- HTTP; SMTP HTTP and SMTP serve user software. TCP and UDP are transport protocols and IP is network.
- Resolves domain names into IP addresses It works through root servers, top level domain servers and authoritative servers, caching results at every level.
- Users can disable JavaScript or send a crafted request Client side checks give quick feedback, but only the server can be trusted.
- False Each link is a vote weighted by the importance of the page casting it, and divided among that page's outgoing links.
- robots.txt robots.txt lists the paths a site asks crawlers not to visit.
- Sits between clients and the internet, hiding their addresses and caching content A proxy also filters requests, which is why schools and businesses use them.
- Modelling a user who eventually stops following links Usually 0.85, it models a surfer giving up and keeps the calculation converging.
- No central management or backup Peer to peer spreads the load, so there is no single point of failure, but nothing is managed or backed up centrally.
Round 2: Quick Fire
- Each layer can be developed or replaced independently
- Hardware and software from different makers can work together
- Faults can be isolated to one layer
Model answerEach layer can be developed or replaced independently without affecting the others, and hardware and software from different manufacturers can work together as long as they follow the rules of their layer.
- Each layer adds its own header
- The matching layer at the receiver removes it on the way up
Model answerEach layer adds its own header to the data as it passes down at the sender, and the matching layer at the receiver removes that header as the data passes back up.
- The user can disable JavaScript or change the code
- Or send a crafted request straight to the server
- So the server must validate the data too
Model answerThe user can disable JavaScript or edit the code in their browser, or send a crafted request straight to the server, so the checks can be bypassed and the server must validate the data again.
- Advantage: capacity is shared efficiently, and packets route around failures
- Disadvantage: packets can arrive out of order, with variable delay
Model answerPackets can take different routes, so they route around failures and the network capacity is shared efficiently, but packets can arrive out of order with variable delay.
Round 3: Big Think
- Each link to a page counts as a vote for it
- Votes from more important pages count for more
- A page's vote is divided among its outgoing links
- A damping factor models a user who stops following links
- It is usually 0.85 and keeps the calculation convergent
- Every page starts equal and the formula is applied repeatedly
Model answerEach link to a page counts as a vote for it, but votes are weighted, so a link from a page with a high rank counts for more. A page's vote is divided among all its outgoing links, so a page linking to a thousand others gives each very little. A damping factor, usually 0.85, models a user who eventually stops following links and keeps the calculation convergent. Every page starts with an equal rank and the formula is applied repeatedly until the values settle.
- Client server has a central server providing resources
- So backup, security and control are managed in one place
- But the server is a single point of failure and can be a bottleneck
- In peer to peer every computer is equal and shares resources directly
- So the load is spread, with no single point of failure
- But there is no central backup, and performance depends on which peers are online
Model answerIn a client server network a central server provides resources, so backup, security and control are managed in one place, but the server is a single point of failure and can become a bottleneck. In a peer to peer network every computer has equal status and shares resources directly, so the load is spread and there is no single point of failure, but there is no central backup and performance depends on which peers are online.
This or That
- TCP TCP is connection oriented: it checks, orders and resends. UDP sends and hopes.
- Network The network layer adds source and destination IP addresses. The link layer adds MAC addresses.
- Circuit switching A dedicated path is reserved for the whole call, even when nobody is speaking.
- In the user's browser Client side code runs in the browser, so it is fast but can be seen and changed by the user.
- Server side Anything that matters for security must happen on the server, where the user cannot change the code.
- Network address translation NAT maps many private addresses onto one public address.
- Stateful inspection Packet filtering looks at each header alone. Stateful inspection follows the whole conversation, so it is more effective.
- Its index Crawlers build an index ahead of time, so a query is answered from the index instantly.
Memory Match
- A 3 Encapsulation: Each layer adds its own header
- B 1 DNS: Turns domain names into IP addresses
- C 5 Proxy server: Hides client addresses and caches content
- D 2 Web crawler: Follows links to collect pages for indexing
- E 6 Damping factor: Models a user who stops following links
- F 4 Circuit switching: A dedicated path for the whole communication
Sort It
- Transport TCP and UDP These are the transport layer protocols.
- Link Ethernet and WiFi These carry the data across the local medium.
- Transport Splits data into segments The transport layer divides the data into segments.
- Network Adds source and destination IP addresses IP addressing is the network layer's job.
- Network Routes packets across networks Routing between networks happens at the network layer.
- Network IP and ICMP These are network layer protocols.
- Transport Adds port numbers Port numbers tell the receiver which application the data is for.
- Application HTTP and HTTPS Web protocols serve user software, so they sit in the application layer.
- Link Physical transmission on the local network The link layer handles sending bits across the local medium.
- Application DNS lookups DNS is an application layer service.
- Application SMTP and IMAP for email Email protocols are application layer protocols.
- Link Adds MAC addresses MAC addresses are used on the local link.
Code Word
- PACKET A small unit of data with addresses and a sequence number, routed on its own.
- CRAWLER A program that follows links to fetch pages for a search engine's index.
- HEADER What each layer adds to the data as it passes down the stack.
Link Up
- Application layer protocols HTTP; SMTP; FTP; IMAP
- Client side jobs Instant form checks; Page animations; Dropdown menus; Live character count
- Server side jobs Logging users in; Database queries; Taking payments; Final validation
Bug Hunt: the wrong statement, and why
- UDP resends any packet that goes missing. UDP gives no guarantee of delivery. It is TCP that resends lost packets.
- The application layer adds MAC addresses. MAC addresses are added by the link layer. The application layer serves user software such as browsers.
- A DNS lookup always starts again from the root servers. Results are cached at every level, so most lookups are answered without going back to the root.
- Client side validation alone makes a form secure. A user can disable JavaScript or send a crafted request, so the server must validate too.
- Linking to more pages gives each one a bigger vote. A page's vote is divided among its outgoing links, so linking to many pages gives each one less.
Odd One Out
- Final validation is the odd one out: it goes with Server side jobs. The other three: Application layer protocols.
- Final validation is the odd one out: it goes with Server side jobs. The other three: Client side jobs.
- Live character count is the odd one out: it goes with Client side jobs. The other three: Server side jobs.
- Database queries is the odd one out: it goes with Server side jobs. The other three: Application layer protocols.
- HTTP is the odd one out: it goes with Application layer protocols. The other three: Client side jobs.
- FTP is the odd one out: it goes with Application layer protocols. The other three: Server side jobs.
Memory Flash
- Damping factor Models a user who stops following links
- DNS Turns domain names into IP addresses
- Web crawler Follows links to collect pages for indexing
- Encapsulation Each layer adds its own header
- Circuit switching A dedicated path for the whole communication
- Proxy server Hides client addresses and caches content
Fact or Fib
- Fact In packet switching, packets from one message can take different routes.
- Fib Client side validation alone makes a form secure. The fix: A user can disable JavaScript or send a crafted request, so the server must validate too.
- Fib PageRank simply counts how many links point to a page. The fix: Each link is a vote weighted by the importance of the page casting it, and divided among that page's outgoing links.
- Fact DNS results are cached, so repeated lookups are fast.
- Fact Client side code runs in the browser.
- Fact Votes from important pages count for more.
- Fib A DNS lookup always starts again from the root servers. The fix: Results are cached at every level, so most lookups are answered without going back to the root.
- Fib The application layer adds MAC addresses. The fix: MAC addresses are added by the link layer. The application layer serves user software such as browsers.
- Fact PageRank treats each link to a page as a vote for that page.
- Fib Linking to more pages gives each one a bigger vote. The fix: A page's vote is divided among its outgoing links, so linking to many pages gives each one less.
- Fib UDP resends any packet that goes missing. The fix: UDP gives no guarantee of delivery. It is TCP that resends lost packets.
- Fact DNS resolves domain names into IP addresses.

