Week 13 · Unit 7.3: Connections are made · 3 lessons
1
Where web pages live
Computing 7: Unit 7.3, pp. 82–111
GoalExplain what a web server is and say whether an IP address is valid.
New words
server · a powerful computer that stores files and sends them to other devices when they askweb server · a server that stores web pagesIP address · a number address, four numbers from 0 to 255 with full stops between them, that identifies a device on a networkunique · only one of its kind: no other device on the network has the same address
Explanation
When you open a web page, you are asking for files that are kept on a server. A server is a powerful computer that stores files and sends them to other devices when they ask. A server that holds web pages is called a web server. Many servers can be stacked in racks and kept together in a server farm. Each device that joins a network is given an IP address, rather like the number on a house door. An IP address has four numbers separated by full stops, and each number is a whole number from 0 to 255. No two devices on one network can share an address, so every address is unique.
Worked examples
First
Second
Third
Fourth
Four numbers?
All 0 to 255?
198
51
100
24
yes
yes
A valid address. The address 198.51.100.24 has four numbers, and every number is between 0 and 255, so it is valid.
Address
Valid?
Reason
203.0.113.256
no
256 is bigger than 255
192.0.2
no
only three numbers
198.51.100.9.4
no
five numbers
203.0.113.8
yes
four numbers, all from 0 to 255
Some invalid addresses and the reason each one is wrong.
Device name
IP address
tablet
192.0.2.21
tablet
192.0.2.22
printer
192.0.2.30
Why use a number and not a name? Two devices on one network might both be called “tablet”, but their addresses are different, so a message always reaches the right one.
Class activity
Our street (no computer): draw six paper houses and give each one an address from 192.0.2.1 to 192.0.2.6. Put a toy or a family member’s name in each house. Write short notes and “post” them by address only. Then break a rule on purpose: give two houses the same address and post a note. What goes wrong? Finally write one address that breaks a rule (for example 192.0.2.300) and let a partner say why it cannot exist. All the addresses in this lesson are made-up teaching addresses.
Practice
1
Is each address valid or invalid? Give the reason.
Address
Valid or invalid?
Reason
198.51.100.200
?
?
192.0.2.300
?
?
203.0.113.0
?
?
198.51.100
?
?
192.0.2.17.5
?
?
203.0.113.64
?
?
198.51.100.200 valid. 192.0.2.300 invalid: 300 is more than 255. 203.0.113.0 valid: 0 is allowed. 198.51.100 invalid: only three numbers. 192.0.2.17.5 invalid: five numbers. 203.0.113.64 valid.
2
Two devices in the table have the same address. Which two, and why is that a problem?
Device
IP address
laptop
192.0.2.5
phone
192.0.2.6
tablet
192.0.2.5
television
192.0.2.8
The laptop and the tablet both have 192.0.2.5. A message for that address could go to the wrong device, because the address is supposed to be unique.
3
Change one number in 203.0.113.287 so that the address becomes valid.
287 is too big. Any number from 0 to 255 in its place works, for example 203.0.113.87 or 203.0.113.255.
4
Why does every server in a server farm need its own IP address?
A user’s device has to reach one particular server. If two servers shared an address, the request could go to the wrong one. A unique address identifies each server.