AdvertisementYour brand could be hereYour brand hereOn every Darslab page · students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Computing

Content on servers

Week 12 · Unit 5: Digital content · 3 lessons
2

What happens when you click?

Computing 6: Unit 5, pp. 68–77
GoalDescribe how a request reaches a server and how the content comes back in packets.
New words
request · a message that asks a server for a filelink · a piece of text or a picture that takes you to a page or file when you click itpacket · a small piece of data that is sent across a networkreassemble · to put pieces back together in the right order
Explanation

When you click a link, your device sends a request. The request travels over the network and the internet to the server that stores the file. The server finds the file and sends it back. A big file is split into small packets. Each packet has a number. Packets can take different routes, so they may arrive in the wrong order. Your device puts them back in the right order and shows the content. This takes a little time, so a page or a picture may not appear at once. A large video has many more packets than a short message, so it takes longer when the network is slow or busy.

phonerouterinternetserver12
Worked examples
This is what happens from the click to the screen. Every step is a short job done by the device, the network or the server.
Packet arrived1st2nd3rd4th
number on it3142
place in the photo3rd1st4th2nd
Packets 1 to 4 of a photo arrive in a different order because they took different routes. The device uses the numbers to sort them, so the photo is complete and correct.
A short text message may be only one or two packets. A film clip may be thousands of packets. That is why a message appears at once and a film may take a moment to start.
Class activity

Packet game (no computer): write a sentence of eight words, such as ‘We are going to the market on Saturday’. Cut it into eight slips and write a number on the back of each. Mix the slips. A friend is the server and hands them to you one at a time in a random order. You are the device. Put the slips in order using the numbers and read the sentence aloud. Time how long it takes. Then try again with a sentence of sixteen words. Which one took longer? If you have a computer or tablet, open a large picture and a small picture on a page and notice which one appears first.

Practice
1
Fill in the gaps. When you click a link, your device sends a ___ to a ___. The server sends the file back in small ___.
2
Four packets of a message arrive in this order. In what order does the device put them, and why?
laptoprouter2413
3
Why does a long video take longer to start than a short text message?
4
Leo clicks a link and the page stays blank for a long time. Give two possible reasons.