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.
Step
What happens
1
you type a URL into the browser
2
the browser asks a DNS server for the IP address
3
the DNS server sends the IP address back
4
the browser sends a request to the web server at that address
5
the web server sends the web page back to your browser
Worked examples
Step
Working
Result
Share for each tablet
40 ÷ 5
8 Mbps
File size in megabits
12 × 8
96 Mb
Time for one tablet
96 ÷ 8
12 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.
Address
Valid?
Reason
203.0.113.99
yes
four numbers, all from 0 to 255
198.51.100.256
no
256 is bigger than 255
192.0.2.12.3
no
five numbers, not four
192.0.2.0
yes
four 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.
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.
Say whether each address is valid or invalid and give the reason.
Label
Address
Valid or invalid?
Reason
A
203.0.113.17
?
?
B
192.0.2.256
?
?
C
198.51.100.4.1
?
?
D
192.0.2
?
?
E
198.51.100.255
?
?
A valid (four numbers, all 0–255). B invalid (256 is more than 255). C invalid (five numbers). D invalid (only three numbers). E valid (255 is the largest number allowed).
4
Choose Wi-Fi, Bluetooth or cellular data for each job and give a reason.
(a) Cellular data: there is no router on a country road, so the coach uses a mast. (b) Wi-Fi: the printer and the laptop are in the same building and the file may be large. (c) Bluetooth: the two devices are very close and the job is small.