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

Term 2 round-up

Week 21 · Review: Term 2 · 3 lessons
1

Review: online and found

Computing 7: Units 7.3–7.4, pp. 82–149
GoalWork out download times, check IP addresses and URLs, and follow a DNS look-up.
New words
bandwidth · how much data a connection can send in one second, measured in Kbps, Mbps or GbpsIP address · four numbers from 0 to 255, separated by dots, that identify one device on a networkdomain name · the readable name of a website, such as www.example.comDNS · the system that turns a domain name into an IP address
Explanation

The internet is a network of networks, and the web is one service that runs on it. A device gets online by a cable, or wirelessly by Wi-Fi, Bluetooth or cellular data, which all use radio waves. Bandwidth is shared between all the devices on a connection. To find a download time, change bytes into bits (1 byte = 8 bits) and divide the size in megabits by the speed in Mbps. An IP address has four numbers, and each is from 0 to 255. A URL is made of a protocol, a domain name and a path, and the last part of the domain name is the top-level domain (TLD). People type URLs because names are easier to remember than numbers, and the DNS turns the name into an IP address. If the name is not in the list, the browser shows a 404 error.

StepWhat happens
1you type a URL into the browser
2the browser asks a DNS server for the IP address
3the DNS server sends the IP address back
4the browser sends a request to the web server at that address
5the web server sends the web page back to your browser
Worked examples
StepWorkingResult
Share for each tablet40 ÷ 58 Mbps
File size in megabits12 × 896 Mb
Time for one tablet96 ÷ 812 seconds
A classroom link gives 40 Mbps. Five tablets start to download the same 12 MB file at once, and the link is shared equally. Each tablet gets 8 Mbps. If only two tablets were downloading, each would get 20 Mbps, and the time would fall to 96 ÷ 20 = 4.8 seconds.
AddressValid?Reason
203.0.113.99yesfour numbers, all from 0 to 255
198.51.100.256no256 is bigger than 255
192.0.2.12.3nofive numbers, not four
192.0.2.0yesfour numbers, and 0 is allowed
Four addresses from the reserved teaching ranges, checked one at a time. An address is valid only if it has exactly four numbers and every number is from 0 to 255. A zero is allowed, but a negative number or a number above 255 is not.
StartINPUT urlurl = art.example.org?yesnoOUTPUT 198.51.100.12url = maps.example.com?yesnoOUTPUT 203.0.113.30OUTPUT 404 errorEnd
A look-up as a flowchart. The input maps.example.com matches the second question, so the output is 203.0.113.30. The input art.example.net matches neither name, because net is a different TLD from org, so the output is 404 error.
Class activity

Download maths cards (no computer): make six cards with file sizes in MB (for example 2, 3, 4, 5, 6 and 9) and six cards with speeds in Mbps (for example 2, 4, 6, 8, 12 and 16). Turn over one card of each kind. Work out the time with the rule size × 8 ÷ speed and check your answer with a partner. Score a point for each correct answer. After ten rounds, list the pairs that gave a whole number of seconds and the pair that was slowest. If you have a computer or tablet, use the calculator to check your sums.

Practice
1
Work out the download time for each file. A byte is 8 bits.
FileSizeSpeedTime
sticker pack6 MB4 Mbps?
map file25 MB50 Mbps?
film clip45 MB30 Mbps?
2
Take the URL https://learn.example.com/maths/fractions.html apart.
PartYour answer
protocol?
domain name?
TLD?
path?
3
Say whether each address is valid or invalid and give the reason.
LabelAddressValid or invalid?Reason
A203.0.113.17??
B192.0.2.256??
C198.51.100.4.1??
D192.0.2??
E198.51.100.255??
4
Choose Wi-Fi, Bluetooth or cellular data for each job and give a reason.
(a) school coach on a country road(b) laptop printing to the library printer(c) earbuds linked to a phone in a pocket